1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3 * function.c: Include rtl-iter.h
4 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
5 callback to being a function that examines each subrtx itself.
6 Return the changed flag.
7 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8 (instantiate_virtual_regs): Update calls accordingly.
10 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12 * final.c: Include rtl-iter.h.
13 (mark_symbol_ref_as_used): Delete.
14 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
17 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19 * emit-rtl.c: Include rtl-iter.h.
20 (find_auto_inc): Turn from being a for_each_rtx callback to being
21 a function that examines each subrtx itself. Assume the first operand
22 to an RTX_AUTOINC is the automodified register.
23 (try_split): Update call accordingly.
25 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
27 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
28 Return a bool, inverting the result so that 0/false means "not ok".
29 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
31 (mem_loc_descriptor, add_const_value_attribute)
32 (resolve_addr_in_expr): Update calls accordingly.
34 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
36 * dwarf2out.c: Include rtl-iter.h.
37 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
38 Remove unused data parameter. Return a bool, inverting the result
39 so that 0/false means "not ok".
40 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
41 instead of for_each_rtx.
43 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
45 * dse.c: Include rtl-iter.h.
46 (check_mem_read_rtx): Change void * parameter to real type.
48 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
49 for_each_rtx. Don't handle null rtxes.
51 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
53 * df-problems.c: Include rtl-iter.h.
54 (find_memory): Turn from being a for_each_rtx callback to being
55 a function that examines each subrtx itself. Continue to look for
56 volatile references even after a nonvolatile one has been found.
57 (can_move_insns_across): Update calls accordingly.
59 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
61 * ddg.c (walk_mems_2, walk_mems_1): Delete.
62 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
63 to iterate over subrtxes. Return a bool rather than an int.
65 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
67 * ddg.c: Include rtl-iter.h.
68 (mark_mem_use_1): Rename to...
69 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
70 instead of for_each_rtx.
71 (mem_read_insn_p): Update accordingly.
73 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
75 * cse.c (change_cc_mode_args): Delete.
76 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
77 a function that examines each subrtx itself. Take the fields of
78 change_cc_mode_args as argument and return void.
79 (cse_change_cc_mode_insn): Update calls accordingly.
81 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
83 * cse.c (is_dead_reg): Change argument to const_rtx.
84 (dead_debug_insn_data): Delete.
85 (is_dead_debug_insn): Expand commentary. Turn from being a
86 for_each_rtx callback to being a function that examines
87 each subrtx itself. Take the fields of dead_debug_insn_data
89 (delete_trivially_dead_insns): Update call accordingly.
91 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
93 * cse.c (check_for_label_ref): Move earlier in file. Turn from
94 being a for_each_rtx callback to being a function that examines
96 (cse_extended_basic_block): Update call accordingly.
98 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
100 * cse.c (check_dependence_data): Delete.
101 (check_dependence): Change from being a for_each_rtx callback to being
102 a function that examines all subrtxes itself. Don't handle null rtxes.
103 (invalidate): Update call accordingly.
105 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
107 * cse.c: Include rtl-iter.h.
108 (approx_reg_cost_1): Delete.
109 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
110 Don't handle null rtxes.
112 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
114 * cfgcleanup.c: Include rtl-iter.h.
115 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
116 to being a function that examines each subrtx itself.
117 (thread_jump): Update accordingly.
119 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
121 * combine-stack-adj.c: Include rtl-iter.h.
122 (record_stack_refs_data): Delete.
123 (record_stack_refs): Turn from being a for_each_rtx callback
124 to being a function that examines each subrtx itself.
125 Take a pointer to the reflist. Invert sense of return value
126 so that true means success and false means failure. Don't
128 (combine_stack_adjustments_for_block): Update accordingly.
130 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
132 * combine.c (record_truncated_value): Turn from being a for_each_rtx
133 callback to a function that takes an rtx and returns a bool
134 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
137 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
139 * combine.c: Include rtl-iter.h.
140 (unmentioned_reg_p_1): Delete.
141 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
142 Don't handle null rtxes.
144 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
146 * calls.c: Include rtl-iter.h.
147 (internal_arg_pointer_based_exp_1): Delete.
148 (internal_arg_pointer_based_exp): Take a const_rtx.
149 Use FOR_EACH_SUBRTX to iterate over subrtxes.
151 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
153 * caller-save.c: Include rtl-iter.h.
154 (add_used_regs_1): Delete.
155 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
156 to iterate over subrtxes. Assert that any remaining pseudos
159 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
161 * bt-load.c: Include rtl-iter.h.
162 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
163 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
164 to iterate over subrtxes.
165 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
166 find_btr_use rather than btr_referenced_p.
168 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
170 * alias.c: Include rtl-iter.h.
171 (refs_newer_value_cb): Delete.
172 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
174 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
176 * rtl-iter.h: New file.
177 * rtlanal.c: Include it.
178 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
179 (generic_subrtx_iterator <T>::add_single_to_queue)
180 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
181 (generic_subrtx_iterator <T>::free_array): New functions.
182 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
183 (generic_subrtx_iterator <const_rtx_accessor>)
184 (generic_subrtx_iterator <rtx_var_accessor>
185 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
186 (setup_reg_subrtx_bounds): New function.
187 (init_rtlanal): Call it.
189 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
192 * config/sh/sh.md (ashlsi3): Handle negative shift count for
194 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
196 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
198 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
200 2014-08-27 David Malcolm <dmalcolm@redhat.com>
202 * rtl.h (JUMP_LABEL_AS_INSN): New.
204 2014-08-27 David Malcolm <dmalcolm@redhat.com>
206 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
208 (alloc_EXPR_LIST): Strengthen return type from rtx to
210 (remove_free_EXPR_LIST_node): Likewise for param.
211 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
212 from rtx to rtx_expr_list *.
213 * sched-int.h (struct deps_desc): Strengthen fields
214 "pending_read_mems" and "pending_write_mems" from rtx to
217 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
218 rtx to rtx_expr_list *.
219 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
220 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
222 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
223 from rtx to rtx_expr_list *.
224 * loop-iv.c (simplify_using_initial_values): Strengthen local
225 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
226 "pnote_next" from rtx * to rtx_expr_list **.
227 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
228 param "exprp" from rtx * to rtx_expr_list **.
229 (add_insn_mem_dependence): Strengthen local "mem_list" from
230 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
232 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
233 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
234 param "old_mems_p" from rtx * to rtx_expr_list **.
235 * var-tracking.c (struct adjust_mem_data): Strengthen field
236 "side_effects" from rtx to rtx_expr_list *.
237 (adjust_insn): Replace NULL_RTX with NULL when assigning to
239 (prepare_call_arguments): Likewise.
241 2014-08-27 David Malcolm <dmalcolm@redhat.com>
243 * function.h (struct rtl_data): Strengthen field
244 "x_stack_slot_list" from rtx to rtx_expr_list *.
246 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
247 when assigning to stack_slot_list.
249 2014-08-27 David Malcolm <dmalcolm@redhat.com>
251 * function.h (struct rtl_data): Strengthen field
252 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
253 * rtl.h (remove_node_from_expr_list): Strengthen second param from
254 rtx * to rtx_expr_list **.
256 * cfgbuild.c (make_edges): In loop over
257 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
258 rtx_expr_list *, and use methods of the latter class to clarify
260 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
261 rtx_expr_list *, and use methods of the latter class to clarify
263 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
264 * reload1.c (set_initial_label_offsets): Likewise for local "x".
265 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
266 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
267 to rtx_expr_list *. Use methods of the latter class to clarify
270 2014-08-27 David Malcolm <dmalcolm@redhat.com>
272 * function.h (struct expr_status): Strengthen field
273 "x_forced_labels" from rtx to rtx_expr_list *.
275 * cfgbuild.c (make_edges): Split local "x" into two locals,
276 strengthening one from rtx to rtx_expr_list *, and using methods
278 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
279 loop over forced_labels, introduce strengthen it from rtx to
280 rtx_expr_list *, using methods to clarify the code.
281 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
282 to rtx_expr_list *, using methods of said class to clarify the
284 * reload1.c (set_initial_label_offsets): Split local "x" into two
285 per-loop variables, strengthening the first from rtx to
286 rtx_expr_list * and using methods.
288 2014-08-27 David Malcolm <dmalcolm@redhat.com>
290 * coretypes.h (class rtx_expr_list): Add forward declaration.
291 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
292 * gengenrtl.c (special_rtx): Add EXPR_LIST.
293 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
294 invariant: GET_CODE (X) == EXPR_LIST.
295 (is_a_helper <rtx_expr_list *>::test): New.
296 (rtx_expr_list::next): New.
297 (rtx_expr_list::element): New.
298 (gen_rtx_EXPR_LIST): New.
300 2014-08-27 David Malcolm <dmalcolm@redhat.com>
302 * varasm.c (mark_constants): Convert a GET_CODE check into a
303 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
304 Use methods of rtx_sequence to clarify the code.
306 2014-08-27 David Malcolm <dmalcolm@redhat.com>
308 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
309 local "seq" via a checked cast, and use methods of rtx_sequence
310 to simplify the code.
312 2014-08-27 David Malcolm <dmalcolm@redhat.com>
314 * resource.c (mark_referenced_resources): Strengthen local
315 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
316 using methods of rtx_sequence to clarify the code.
317 (find_dead_or_set_registers): Within the switch statement, convert
318 a GET_CODE check to a dyn_cast, introducing local "seq". Within
319 the JUMP_P handling, introduce another local "seq", adding a
320 checked cast to rtx_sequence *. In both cases, use methods of
321 rtx_sequence to clarify the code.
322 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
323 via a checked cast, and use methods of rtx_sequence to simplify
326 2014-08-27 David Malcolm <dmalcolm@redhat.com>
328 * reorg.c (redundant_insn): In two places in the function, replace
329 a check of GET_CODE with a dyn_cast, introducing local "seq", and
330 usings methods of rtx_sequence to clarify the code.
332 2014-08-27 David Malcolm <dmalcolm@redhat.com>
334 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
335 local "seq" with a checked cast, and use methods of rtx_sequence
338 2014-08-27 David Malcolm <dmalcolm@redhat.com>
340 * function.c (contains): Introduce local "seq" for PATTERN (insn),
341 with a checked cast, in the region for where we know it's a
342 SEQUENCE. Use methods of rtx_sequence.
344 2014-08-27 David Malcolm <dmalcolm@redhat.com>
346 * final.c (get_attr_length_1): Replace GET_CODE check with a
347 dyn_cast, introducing local "seq" and the use of methods of
349 (shorten_branches): Likewise, introducing local "body_seq".
350 Strengthen local "inner_insn" from rtx to rtx_insn *.
351 (reemit_insn_block_notes): Replace GET_CODE check with a
352 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
353 Use methods of rtx_sequence.
354 (final_scan_insn): Likewise, introducing local "seq" for when
355 "body" is known to be a SEQUENCE, using its methods.
357 2014-08-27 David Malcolm <dmalcolm@redhat.com>
359 * except.c (can_throw_external): Strengthen local "seq" from rtx
360 to rtx_sequence *. Use methods of rtx_sequence.
361 (insn_nothrow_p): Likewise.
363 2014-08-27 David Malcolm <dmalcolm@redhat.com>
365 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
366 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
367 Use methods of rtx_sequence.
368 (scan_trace): Likewise for local "pat".
370 2014-08-27 David Malcolm <dmalcolm@redhat.com>
372 * coretypes.h (class rtx_sequence): Add forward declaration.
373 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
374 invariant: GET_CODE (X) == SEQUENCE.
375 (is_a_helper <rtx_sequence *>::test): New.
376 (is_a_helper <const rtx_sequence *>::test): New.
377 (rtx_sequence::len): New.
378 (rtx_sequence::element): New.
379 (rtx_sequence::insn): New.
381 2014-08-27 David Malcolm <dmalcolm@redhat.com>
383 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
385 (alloc_INSN_LIST): Strengthen return type from rtx to
387 (copy_INSN_LIST): Likewise for return type and param.
388 (concat_INSN_LIST): Likewise for both params and return type.
389 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
390 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
391 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
392 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
394 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
395 "implicit_sets", "control_uses", "clobbers" from rtx to
397 (struct deps_desc): Likewise for fields "pending_read_insns",
398 "pending_write_insns", "pending_jump_insns",
399 "last_pending_memory_flush", "last_function_call",
400 "last_function_call_may_noreturn", "sched_before_next_call",
401 "sched_before_next_jump".
402 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
403 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
405 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
406 from rtx to rtx_insn_list *.
407 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
410 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
412 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
414 (queue_insn): Likewise for local "link".
415 (struct haifa_saved_data): Strengthen field "insn_queue" from
416 rtx * to rtx_insn_list **.
417 (save_backtrack_point): Update allocation of save->insn_queue to
418 reflect the strengthening of elements from rtx to rtx_insn_list *.
419 (queue_to_ready): Strengthen local "link" from rtx to
420 rtx_insn_list *; use methods "next" and "insn" when traversing the
422 (early_queue_to_ready): Likewise for locals "link", "next_link",
424 (schedule_block): Update allocation of insn_queue to reflect the
425 strengthening of elements from rtx to rtx_insn_list *. Strengthen
426 local "link" from rtx to rtx_insn_list *, and use methods when
428 (add_to_speculative_block): Strengthen locals "twins" and
429 "next_node" from rtx to rtx_insn_list *, and use methods when
430 working with them. Strengthen local "twin" from rtx to
431 rtx_insn *, eliminating a checked cast.
432 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
433 from rtx to rtx_insn_list *, and use methods when working with
436 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
437 from rtx to rtx_insn_list *, adding a checked cast.
438 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
440 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
441 "newlink" from rtx to rtx_insn_list *. Strengthen local
442 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
443 from rtx to rtx_insn *.
444 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
445 from rtx to rtx_insn_list *. Use methods of the latter class.
446 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
447 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
448 (remove_free_INSN_LIST_node): Strengthen return type and local
449 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
450 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
451 rtx_insn_list *, using "insn" method.
453 * sched-deps.c (add_dependence_list): Strengthen param "list"
454 from rtx to rtx_insn_list *, and use methods when working with it.
455 (add_dependence_list_and_free): Strengthen param "listp" from
456 rtx * to rtx_insn_list **.
457 (remove_from_dependence_list): Strenghten param "listp" from rtx *
458 to rtx_insn_list **, and use methods when working with *listp.
459 (remove_from_both_dependence_lists): Strengthen param "listp" from
460 rtx * to rtx_insn_list **
461 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
462 to rtx_insn_list **. Eliminate local "link", in favor of two new
463 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
465 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
466 by introducing local "cond_deps".
467 (remove_from_deps): Strengthen param "insn" from rtx to
470 * sched-rgn.c (concat_insn_mem_list): Strengthen param
471 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
472 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
473 Use methods of rtx_insn_list.
475 * store-motion.c (struct st_expr): Strengthen fields
476 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
477 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
479 (find_moveable_store): Split out "tmp" into multiple more-tightly
480 scoped locals. Use methods of rtx_insn_list *.
481 (compute_store_table): Strengthen local "tmp" from rtx to
482 rtx_insn *. Use methods of rtx_insn_list *.
484 2014-08-27 David Malcolm <dmalcolm@redhat.com>
486 * coretypes.h (class rtx_insn_list): Add forward declaration.
487 * rtl.h (class rtx_insn_list): New subclass of rtx_def
488 (is_a_helper <rtx_insn_list *>::test): New.
489 (rtx_insn_list::next): New.
490 (rtx_insn_list::insn): New.
491 (gen_rtx_INSN_LIST): Add prototype.
492 * emit-rtl.c (gen_rtx_INSN_LIST): New.
493 * gengenrtl.c (special_rtx): Add INSN_LIST.
495 2014-08-27 David Malcolm <dmalcolm@redhat.com>
497 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
498 "prev" from rtx to rtx_insn *.
500 2014-08-27 David Malcolm <dmalcolm@redhat.com>
502 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
503 functions. Require merely an rtx for now, not an rtx_insn *.
504 (BLOCK_FOR_INSN): Likewise.
505 (INSN_LOCATION): Likewise.
506 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
508 2014-08-27 David Malcolm <dmalcolm@redhat.com>
510 * rtl.h (PATTERN): Convert this macro into a pair of inline
511 functions, for now, requiring const_rtx and rtx.
513 2014-08-27 David Malcolm <dmalcolm@redhat.com>
515 * target.def (unwind_emit): Strengthen param "insn" from rtx to
517 (final_postscan_insn): Likewise.
518 (adjust_cost): Likewise.
519 (adjust_priority): Likewise.
520 (variable_issue): Likewise.
521 (macro_fusion_pair_p): Likewise.
522 (dfa_post_cycle_insn): Likewise.
523 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
524 (first_cycle_multipass_issue): Likewise.
525 (dfa_new_cycle): Likewise.
526 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
527 (speculate_insn): Likewise for param "insn".
528 (gen_spec_check): Likewise for params "insn" and "label".
529 (get_insn_spec_ds): Likewise for param "insn".
530 (get_insn_checked_ds): Likewise.
531 (dispatch_do): Likewise.
532 (dispatch): Likewise.
533 (cannot_copy_insn_p): Likewise.
534 (invalid_within_doloop): Likewise.
535 (legitimate_combined_insn): Likewise.
539 * doc/tm.texi: Automatically updated to reflect changes to
542 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
544 (schedule_block): Likewise.
545 (sched_init): Likewise.
546 (sched_speculate_insn): Strengthen param "insn" from rtx to
548 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
550 * hooks.c (hook_bool_rtx_true): Rename to...
551 hook_bool_rtx_insn_true): ...this, and strengthen first param from
553 (hook_constcharptr_const_rtx_null): Rename to...
554 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
555 first param from const_rtx to const rtx_insn *.
556 (hook_bool_rtx_int_false): Rename to...
557 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
558 param from rtx to rtx_insn *.
559 (hook_void_rtx_int): Rename to...
560 (hook_void_rtx_insn_int): ...this, and strengthen first param from
563 * hooks.h (hook_bool_rtx_true): Rename to...
564 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
566 (hook_bool_rtx_int_false): Rename to...
567 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
568 param from rtx to rtx_insn *.
569 (hook_void_rtx_int): Rename to...
570 (hook_void_rtx_insn_int): ...this, and strengthen first param from
572 (hook_constcharptr_const_rtx_null): Rename to...
573 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
574 first param from const_rtx to const rtx_insn *.
576 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
577 and local "prev" from rtx to rtx_insn *.
579 * sched-int.h (sched_speculate_insn): Strengthen first param from
582 * sel-sched.c (create_speculation_check): Likewise for local "label".
583 * targhooks.c (default_invalid_within_doloop): Strengthen param
584 "insn" from const_rtx to const rtx_insn *.
585 * targhooks.h (default_invalid_within_doloop): Strengthen param
586 from const_rtx to const rtx_insn *.
588 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
589 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
591 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
593 (arc_invalid_within_doloop): Likewise, with const.
595 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
596 (arm_cannot_copy_insn_p): Likewise for param "insn".
597 (arm_unwind_emit): Likewise.
599 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
602 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
603 (c6x_variable_issue): Likewise. Removed now-redundant checked
605 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
607 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
608 Likewise for param "insn".
609 (epiphany_mode_after): Likewise.
610 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
611 params "insn", "dep_insn".
612 (epiphany_mode_needed): Likewise for param "insn".
613 (epiphany_mode_after): Likewise.
615 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
616 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
617 (ix86_avx_u128_mode_needed): Likewise.
618 (ix86_i387_mode_needed): Likewise.
619 (ix86_mode_needed): Likewise.
620 (ix86_avx_u128_mode_after): Likewise.
621 (ix86_mode_after): Likewise.
622 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
623 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
624 (ix86_adjust_priority): Likewise for param "insn".
625 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
626 (do_dispatch): Likewise.
627 (has_dispatch): Likewise.
628 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
630 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
631 reflect renaming of default hook implementation from
632 hook_constcharptr_const_rtx_null to
633 hook_constcharptr_const_rtx_insn_null.
634 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
636 (ia64_variable_issue): Likewise for param "insn".
637 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
638 (ia64_dfa_new_cycle): Likewise.
639 (ia64_get_insn_spec_ds): Likewise.
640 (ia64_get_insn_checked_ds): Likewise.
641 (ia64_speculate_insn): Likewise.
642 (ia64_gen_spec_check): Likewise for params "insn", "label".
643 (ia64_asm_unwind_emit): Likewise for param "insn".
645 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
647 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
649 (m68k_sched_variable_issue): Likewise for param "insn".
651 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
654 * config/microblaze/microblaze.c (microblaze_adjust_cost):
655 Likewise for params "insn", "dep".
657 * config/mips/mips.c (mips_adjust_cost): Likewise.
658 (mips_variable_issue): Likewise for param "insn".
659 (mips_final_postscan_insn): Likewise.
661 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
662 for params "insn", "dep".
664 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
666 (pa_adjust_priority): Likewise for param "insn".
668 * config/picochip/picochip.c (picochip_sched_adjust_cost):
669 Likewise for params "insn", "dep_insn".
671 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
673 (rs6000_variable_issue): Likewise.
674 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
675 (rs6000_debug_adjust_cost): Likewise.
676 (rs6000_adjust_priority): Likewise for param "insn".
677 (rs6000_use_sched_lookahead_guard): Likewise.
678 (get_next_active_insn): Likewise for return type and both params.
679 (redefine_groups): Likewise for params "prev_head_insn", "tail"
680 and locals "insn", "next_insn".
681 (pad_groups): Likewise.
683 * config/s390/s390.c (s390_adjust_priority): Likewise for param
685 (s390_cannot_copy_insn_p): Likewise.
686 (s390_sched_variable_issue): Likewise for third param, eliminating
688 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
689 default hook implementation from hook_constcharptr_const_rtx_null
690 to hook_constcharptr_const_rtx_insn_null.
692 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
693 from rtx to rtx_insn *.
694 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
695 (sh_variable_issue): Likewise for param "insn".
696 (sh_dfa_new_cycle): Likewise.
697 (sh_mode_needed): Likewise.
698 (sh_mode_after): Likewise.
700 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
701 params "insn", "dep_insn".
702 (hypersparc_adjust_cost): Likewise.
703 (sparc_adjust_cost): Likewise.
705 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
706 param, eliminated checked cast.
707 (spu_sched_adjust_cost): Likewise for first and third params.
709 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
710 params "insn" and "dep_insn" from rtx to rtx_insn *.
712 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
714 2014-08-27 David Malcolm <dmalcolm@redhat.com>
716 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
717 (set_is_load_p): ...this, updating to work on a SET pattern rather
719 (is_store_insn): Rename to...
720 (set_is_store_p): ...this, updating to work on a SET pattern
722 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
723 top of function to where it is needed. Rewrite the bogus
724 condition that checks for "insn" and "dep" being PARALLEL to
725 instead use single_set, introducing locals "insn_set" and
726 "dep_set". Given that we only ever returned "cost" for a non-pair
727 of SETs, bail out early if we don't have a pair of SET.
728 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
729 use the new locals "insn_set" and "dep_set", and update calls to
730 is_load_insn and is_store_insn to be calls to set_is_load_p and
733 2014-08-27 Guozhi Wei <carrot@google.com>
736 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
737 amount before using it.
739 2014-08-27 Richard Biener <rguenther@suse.de>
741 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
742 get_maxval_strlen inside a more useful API.
743 (gimple_fold_builtin_with_strlen): Remove and fold into ...
744 (gimple_fold_builtin): ... caller.
745 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
746 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
747 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
748 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
749 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
750 gimple_fold_builtin_sprintf): Adjust to compute maxval
753 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
756 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
758 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
759 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
760 Anna Tikhonova <anna.tikhonova@intel.com>
761 Ilya Tocar <ilya.tocar@intel.com>
762 Andrey Turetskiy <andrey.turetskiy@intel.com>
763 Ilya Verbin <ilya.verbin@intel.com>
764 Kirill Yukhin <kirill.yukhin@intel.com>
765 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
768 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
769 Use `concat_tg_mode' attribute to determine asm register size.
771 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
772 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
773 Anna Tikhonova <anna.tikhonova@intel.com>
774 Ilya Tocar <ilya.tocar@intel.com>
775 Andrey Turetskiy <andrey.turetskiy@intel.com>
776 Ilya Verbin <ilya.verbin@intel.com>
777 Kirill Yukhin <kirill.yukhin@intel.com>
778 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
781 (define_mode_iterator VI48_AVX512VL): New.
782 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
783 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
784 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
785 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
786 with VI1): Change mode iterator.
787 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
788 with VI_ULOADSTORE_BW_AVX512VL): New.
789 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
790 with VI_ULOADSTORE_F_AVX512VL): Ditto.
791 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
792 with VI1): Change mode iterator.
793 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
794 with VI_ULOADSTORE_BW_AVX512VL): New.
795 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
796 with VI_ULOADSTORE_F_AVX512VL): Ditto.
797 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
798 with VI1): Change mode iterator.
799 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
800 with VI_ULOADSTORE_BW_AVX512VL): New.
801 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
802 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
803 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
804 (define_insn "<avx512>_storedqu<mode>_mask" with
806 (define_insn "<avx512>_storedqu<mode>_mask" with
807 VI12_AVX512VL): Ditto.
809 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
810 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
811 Anna Tikhonova <anna.tikhonova@intel.com>
812 Ilya Tocar <ilya.tocar@intel.com>
813 Andrey Turetskiy <andrey.turetskiy@intel.com>
814 Ilya Verbin <ilya.verbin@intel.com>
815 Kirill Yukhin <kirill.yukhin@intel.com>
816 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
819 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
820 (define_mode_iterator VI48_AVX512BW): New.
821 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
822 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
823 with VI48_AVX2_48_AVX512F): New.
824 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
825 with VI2_AVX512VL): Ditto.
827 2014-08-27 Richard Biener <rguenther@suse.de>
830 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
831 (fold_builtin_3): Do not fold strcat_chk here.
832 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
834 (gimple_fold_builtin): Fold strcat_chk here.
836 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
838 * dwarf2out.h (dwarf2out_decl): Remove prototype.
839 * dwarf2out.c (dwarf2out_decl): Make static.
841 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
843 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
845 2014-08-26 David Malcolm <dmalcolm@redhat.com>
847 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
848 from rtx to rtx_insn *.
849 (cselib_lookup_from_insn): Likewise for final param.
850 (cselib_subst_to_values_from_insn): Likewise.
851 (cselib_add_permanent_equiv): Likewise.
853 * cselib.c (cselib_current_insn): Likewise for this variable.
854 (cselib_subst_to_values_from_insn): Likewise for param "insn".
855 (cselib_lookup_from_insn): Likewise.
856 (cselib_add_permanent_equiv): Likewise for param "insn" and local
857 "save_cselib_current_insn".
858 (cselib_process_insn): Replace use of NULL_RTX with NULL.
860 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
861 from rtx to rtx_insn *.
863 2014-08-26 David Malcolm <dmalcolm@redhat.com>
865 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
868 2014-08-26 David Malcolm <dmalcolm@redhat.com>
870 * df.h (df_dump_insn_problem_function): Strengthen first param of
871 this callback from const_rtx to const rtx_insn *.
872 (struct df_insn_info): Strengthen field "insn" from rtx to
874 (DF_REF_INSN): Eliminate this function, reinstating the older
876 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
877 (df_reg_defined): Likewise.
878 (df_find_use): Likewise.
879 (df_reg_used): Likewise.
880 (df_dump_insn_top): Strengthen param 1 from const_rtx to
882 (df_dump_insn_bottom): Likewise.
883 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
884 (df_insn_debug_regno): Likewise.
885 (debug_df_insn): Likewise.
886 (df_rd_simulate_one_insn): Likewise for param 2.
887 (df_word_lr_simulate_defs): Likewise for param 1.
888 (df_word_lr_simulate_uses): Likewise.
889 (df_md_simulate_one_insn): Likewise for param 2.
890 (df_simulate_find_noclobber_defs): Likewise for param 1.
891 (df_simulate_find_defs): Likewise.
892 (df_simulate_defs): Likewise.
893 (df_simulate_uses): Likewise.
894 (df_simulate_one_insn_backwards): Likewise for param 2.
895 (df_simulate_one_insn_forwards): Likewise.
896 (df_uses_create): Likewise for param 2.
897 (df_insn_create_insn_record): Likewise for param 1.
898 (df_insn_delete): Likewise.
899 (df_insn_rescan): Likewise.
900 (df_insn_rescan_debug_internal): Likewise.
901 (df_insn_change_bb): Likewise.
902 (df_notes_rescan): Likewise.
903 * rtl.h (remove_death): Likewise for param 2.
904 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
906 * sched-int.h (reemit_notes): Strengthen param from rtx to
908 * valtrack.h (propagate_for_debug): Likewise for param 1.
910 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
911 local "tmp_rtx" from const_rtx to const rtx_insn *.
912 * combine.c (remove_death): Strengthen param "insn" from rtx to
914 (move_deaths): Likewise for local "where_dead".
915 * cse.c (delete_trivially_dead_insns): Introduce local
916 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
917 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
919 (df_reg_defined): Likewise.
920 (df_find_use): Likewise.
921 (df_reg_used): Likewise.
922 (df_dump_insn_problem_data): Strengthen param "insn" from
923 const_rtx to const rtx_insn *.
924 (df_dump_insn_top): Likewise.
925 (df_dump_insn_bottom): Likewise.
926 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
927 (df_insn_debug_regno): Likewise.
928 (debug_df_insn): Likewise.
929 (DF_REF_INSN): Delete.
930 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
931 from rtx to rtx_insn *.
932 (df_chain_insn_top_dump): Strengthen param "insn" from
933 const_rtx to const rtx_insn *.
934 (df_chain_insn_bottom_dump): Likewise.
935 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
937 (df_word_lr_simulate_uses): Likewise.
938 (df_print_note): Likewise.
939 (df_remove_dead_and_unused_notes): Likewise.
940 (df_set_unused_notes_for_mw): Likewise.
941 (df_set_dead_notes_for_mw): Likewise.
942 (df_create_unused_note): Likewise.
943 (df_simulate_find_defs): Likewise.
944 (df_simulate_find_uses): Likewise.
945 (df_simulate_find_noclobber_defs): Likewise.
946 (df_simulate_defs): Likewise.
947 (df_simulate_uses): Likewise.
948 (df_simulate_one_insn_backwards): Likewise.
949 (df_simulate_one_insn_forwards): Likewise.
950 (df_md_simulate_one_insn): Likewise.
951 * df-scan.c (df_uses_create): Likewise.
952 (df_insn_create_insn_record): Likewise.
953 (df_insn_delete): Likewise.
954 (df_insn_rescan): Likewise.
955 (df_insn_rescan_debug_internal): Likewise.
956 (df_insn_change_bb): Likewise.
957 (df_notes_rescan): Likewise.
958 (df_refs_add_to_chains): Likewise.
959 (df_insn_refs_verify): Likewise.
960 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
961 when invoking df_insn_delete.
962 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
963 (set_unique_reg_note): Add checked cast.
964 * final.c (cleanup_subreg_operands): Likewise.
965 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
966 "insn" from rtx to rtx_insn *.
967 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
968 "last" from rtx to rtx_insn *.
969 * ira-emit.c (change_regs_in_insn): New function.
970 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
971 Invoke change_regs_in_insn rather than change_regs.
972 * ira.c (update_equiv_regs): Strengthen locals "insn",
973 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
974 for_each_rtx_in_insn rather than for_each_rtx.
975 * recog.c (confirm_change_group): Add checked casts.
976 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
978 (peep2_fill_buffer): Add checked cast.
979 * rtlanal.c (remove_note): Likewise.
980 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
981 locals "next" "end" from rtx to rtx_insn *.
983 2014-08-26 David Malcolm <dmalcolm@redhat.com>
985 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
987 (struct reg_use_data): Likewise for field "insn".
988 (insn_cost): Likewise for param.
989 (real_insn_for_shadow): Likewise for return type and param.
990 (increase_insn_priority): Likewise for param 1.
991 (debug_dependencies): Likewise for both params.
993 * haifa-sched.c (insn_delay): Likewise for param "insn".
994 (real_insn_for_shadow): Likewise for return type and param "insn".
995 (update_insn_after_change): Likewise for param "insn".
996 (recompute_todo_spec): Likewise for param "next" and locals "pro",
998 (insn_cost): Likewise for param "insn".
999 (increase_insn_priority): Likewise.
1000 (calculate_reg_deaths): Likewise.
1001 (setup_insn_reg_pressure_info): Likewise.
1002 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1003 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1004 (model_recompute): Likewise.
1005 (must_restore_pattern_p): Likewise for param "next".
1006 (model_excess_cost): Likewise for param "insn".
1007 (queue_remove): Likewise.
1008 (adjust_priority): Likewise for param "prev".
1009 (update_register_pressure): Likewise for param "insn".
1010 (setup_insn_max_reg_pressure): Likewise for local "insn".
1011 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1012 (model_add_to_schedule): Likewise.
1013 (model_reset_queue_indices): Likewise for local "insn".
1014 (unschedule_insns_until): Strengthen local "recompute_vec" from
1015 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1016 "con" from rtx to rtx_insn *.
1017 (restore_last_backtrack_point): Likewise for both locals "x". Add
1019 (estimate_insn_tick): Likewise for param "insn".
1020 (commit_schedule): Likewise for params "prev_head", "tail" and
1022 (verify_shadows): Likewise for locals "i1", "i2".
1023 (dump_insn_stream): Likewise for params "head", "tail" and locals
1024 "next_tail", "insn".
1025 (schedule_block): Likewise for locals "insn", "x". Add a checked
1027 (fix_inter_tick): Likewise for params "head", "tail".
1028 (create_check_block_twin): Likewise for local "jump".
1029 (haifa_change_pattern): Likewise for param "insn".
1030 (haifa_speculate_insn): Likewise.
1031 (dump_new_block_header): Likewise for params "head", "tail".
1032 (fix_jump_move): Likewise for param "jump".
1033 (move_block_after_check): Likewise.
1034 (sched_init_insn_luid): Likewise for param "insn".
1035 (sched_init_luids): Likewise for local "insn".
1036 (insn_luid): Likewise for param "insn".
1037 (init_h_i_d): Likewise.
1038 (haifa_init_h_i_d): Likewise for local "insn".
1039 (haifa_init_insn): Likewise for param "insn".
1040 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1042 (create_insn_reg_use): Likewise for param "insn".
1043 (setup_insn_reg_uses): Likewise. Add a checked cast.
1044 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1045 "tail" from rtx to rtx_insn *.
1046 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1047 "insn", "next_tail".
1049 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1051 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1052 from rtx to rtx_insn *.
1053 (model_add_to_schedule): Likewise for locals "start", "end",
1056 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1058 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1060 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1061 "to" and locals "insn", "next", "copy". Remove now-redundant
1064 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1066 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1067 rtx_insn * and param 4 from rtx * to rtx_insn **.
1068 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1069 param 2 from rtx * to rtx_insn **.
1071 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1072 rtx_insn * and final param from rtx * to rtx_insn **.
1074 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1075 from rtx to rtx_insn *.
1076 (try_head_merge_bb): Likewise for both locals named "move_upto".
1077 * df-problems.c (can_move_insns_across): Likewise for params
1078 "from", "to", "across_from", "across_to" and locals "insn",
1079 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1081 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1082 from rtx to rtx_insn *.
1083 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1084 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1085 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1087 (noce_try_abs): Likewise.
1088 (noce_get_condition): Likewise for param "jump". Strengthen param
1089 "earliest" from rtx * to rtx_insn **.
1090 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1092 (find_cond_trap): Likewise.
1093 (dead_or_predicable): Likewise for local "earliest".
1094 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1096 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1097 and local "prev". Strengthen param "earliest" from rtx * to
1099 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1100 Strengthen param "earliest" from rtx * to rtx_insn **.
1102 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1104 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1105 "to" and local "insn" from rtx to rtx_insn *.
1107 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1109 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1110 from rtx to rtx_insn *.
1111 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1112 (code_motion_path_driver): Likewise for local "last_insn".
1113 (simplify_changed_insns): Likewise for local "insn".
1115 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1117 * rtl.h (push_to_sequence): Strengthen param from rtx to
1119 (push_to_sequence2): Likewise for both params.
1120 (delete_insns_since): Likewise for param.
1121 (reorder_insns_nobb): Likewise for all three params.
1122 (set_new_first_and_last_insn): Likewise for both params.
1124 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1125 rtx_insn *. Remove now-redundant cast.
1126 (set_last_insn): Likewise.
1128 * builtins.c (expand_builtin_return): Strengthen local
1129 "call_fusage" from rtx to rtx_insn *.
1130 * cfgrtl.c (create_basic_block_structure): Likewise for local
1132 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1133 "first", "last" and local "insn".
1134 (delete_insns_since): Likewise for param "from".
1135 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1137 (push_to_sequence): Likewise for param "first" and local "last".
1138 (push_to_sequence2): Likewise for params "first" and "last".
1139 * lra.c (emit_add3_insn): Likewise for local "last".
1140 (lra_emit_add): Likewise.
1141 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1143 (process_address_1): Likewise for locals "insn", last".
1144 * modulo-sched.c (ps_first_note): Likewise for return type.
1145 * optabs.c (expand_binop_directly): Likewise for param "last".
1147 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1149 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1151 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1153 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1155 * function.h (struct sequence_stack): Strengthen fields "first"
1156 and "last" from rtx to rtx_insn *.
1157 (struct emit_status): Likewise for fields "x_first_insn" and
1160 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1161 (set_first_insn): Add checked cast.
1162 (get_last_insn): Remove now-redundant checked cast.
1163 (set_last_insn): Add checked cast.
1165 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1166 "saved_first" and "saved_last" from rtx to rtx_insn *.
1168 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1170 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1171 (unlink_insn_chain): Strengthen both params from rtx to
1174 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1176 (unlink_insn_chain): Likewise for params "first" and "last".
1177 Remove now-redundant checked cast.
1178 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1179 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1181 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1183 (add_insn): Likewise for param "insn" and local "prev".
1184 (add_insn_after_nobb): Likewise for both params and local "next".
1185 (add_insn_before_nobb): Likewise for both params and local "prev".
1186 (add_insn_after): Rename param "after" to "uncast_after",
1187 introducing local "after" with another checked cast.
1188 (add_insn_before): Rename params "insn" and "before", giving them
1189 "uncast_" prefixes, adding the old names back using checked casts.
1190 (emit_note_after): Likewise for param "after".
1191 (emit_note_before): Likewise for param "before".
1192 (emit_label): Add a checked cast.
1194 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1196 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1197 "insn" from rtx to rtx_insn *.
1199 * cselib.c (cselib_record_sets_hook): Likewise.
1201 * var-tracking.c (add_with_sets): Likewise, renaming back from
1202 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1205 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1207 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1208 and "header_" from rtx to rtx_insn *.
1209 (struct basic_block_d): Likewise for field "head_" within "x"
1210 field of union basic_block_il_dependent.
1211 (BB_HEAD): Drop function...
1212 (SET_BB_HEAD): ...and this function in favor of...
1213 (BB_HEAD): ...reinstate macro.
1214 (BB_END): Drop function...
1215 (SET_BB_END): ...and this function in favor of...
1216 (BB_END): ...reinstate macro.
1217 (BB_HEADER): Drop function...
1218 (SET_BB_HEADER): ...and this function in favor of...
1219 (BB_HEADER): ...reinstate macro.
1221 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1222 (fix_crossing_unconditional_branches): Likewise.
1223 * caller-save.c (save_call_clobbered_regs): Likewise.
1224 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1225 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1226 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1227 (merge_blocks_move_successor_nojumps): Likewise.
1228 (outgoing_edges_match): Update use of for_each_rtx to
1229 for_each_rtx_in_insn.
1230 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1231 (expand_gimple_cond): Likewise.
1232 (expand_gimple_tailcall): Likewise.
1233 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1235 (construct_exit_block): Drop use of SET_BB_END.
1236 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1238 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1239 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1240 SET_BB_HEAD and SET_BB_END.
1241 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1243 (rtl_delete_block): Drop use of SET_BB_HEAD.
1244 (rtl_split_block): Drop use of SET_BB_END.
1245 (emit_nop_for_unique_locus_between): Likewise.
1246 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1247 (block_label): Drop use of SET_BB_HEAD.
1248 (fixup_abnormal_edges): Drop use of SET_BB_END.
1249 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1250 (relink_block_chain): Likewise.
1251 (fixup_reorder_chain): Drop use of SET_BB_END.
1252 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1253 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1254 rtx_insn **. Drop use of SET_BB_HEADER.
1255 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1257 (BB_HEAD): Delete this function.
1258 (SET_BB_HEAD): Likewise.
1260 (SET_BB_END): Likewise.
1261 (BB_HEADER): Likewise.
1262 (SET_BB_HEADER): Likewise.
1263 * emit-rtl.c (add_insn_after): Rename param "insn" to
1264 "uncast_insn", adding a new local "insn" and a checked cast to
1265 rtx_insn *. Drop use of SET_BB_END.
1266 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1267 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1268 (reorder_insns): Drop use of SET_BB_END.
1269 (emit_insn_after_1): Strengthen param "first" and locals "last",
1270 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1271 (emit_pattern_after_noloc): Add checked cast.
1272 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1273 (restore_other_notes): Likewise.
1274 (move_insn): Likewise.
1275 (sched_extend_bb): Likewise.
1276 (fix_jump_move): Likewise.
1277 * ifcvt.c (noce_process_if_block): Likewise.
1278 (dead_or_predicable): Likewise.
1279 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1280 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1281 * sel-sched-ir.c (sel_move_insn): Likewise.
1282 * sel-sched.c (move_nop_to_previous_block): Likewise.
1284 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1286 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1288 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1290 * basic-block.h (create_basic_block_structure): Strengthen params
1291 1 "head" and 2 "end" from rtx to rtx_insn *.
1292 * cfgrtl.c (create_basic_block_structure): Likewise.
1293 (rtl_create_basic_block): Update casts from void * to rtx to
1294 rtx_insn *, so that we can pass them as rtx_insn * to
1295 create_basic_block_structure.
1296 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1298 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1300 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1302 (check_for_inc_dec): Strengthen param "insn" from rtx to
1305 * cselib.h (cselib_process_insn): Likewise.
1307 * cselib.c (cselib_record_sets): Likewise.
1308 (cselib_process_insn): Likewise.
1310 * dse.c (struct insn_info): Likewise for field "insn".
1311 (check_for_inc_dec_1): Likewise for local "insn".
1312 (check_for_inc_dec): Likewise for param "insn".
1313 (scan_insn): Likewise.
1314 (dse_step1): Likewise for local "insn".
1316 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1317 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1319 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1321 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1322 from rtx to rtx_insn *.
1323 (DEP_PRO): Delete this function and...
1324 (SET_DEP_PRO): ...this function in favor of...
1325 (DEP_PRO): ...reinstate this macro.
1326 (DEP_CON): Delete this function and...
1327 (SET_DEP_CON): ...this function in favor of...
1328 (DEP_CON): ...reinstate this old macro.
1329 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1330 (init_dep): Likewise.
1331 (set_priorities): Likewise for both params.
1332 (sd_copy_back_deps): Likewise for params 1 and 2.
1334 * haifa-sched.c (priority): Likewise for param "insn" and local
1336 (set_priorities): Likewise for params "head" and "tail" and local
1338 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1340 (add_to_speculative_block): Add a checked cast.
1341 (create_check_block_twin): Drop use of SET_DEP_CON.
1342 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1345 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1346 Drop use of SET_DEP_PRO
1347 (init_dep): Strengthen params "pro" and "con" from rtx to
1349 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1353 (SET_DEP_PRO): Delete.
1354 (SET_DEP_CON): Delete.
1356 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1358 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1359 from rtx to rtx_insn *.
1360 (VINSN_INSN_RTX): Eliminate rvalue function and...
1361 (SET_VINSN_INSN): ...lvalue function in favor of...
1362 (VINSN_INSN_RTX): reinstate this old macro.
1364 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1365 in favor of VINSN_INSN_RTX.
1366 (VINSN_INSN_RTX): Delete this function.
1367 (SET_VINSN_INSN_RTX): Likewise.
1369 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1371 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1372 (BND_TO): Delete this function and...
1373 (SET_BND_TO): ...this functions in favor of...
1374 (BND_TO): ...reinstating this macro.
1375 (struct _fence): Strengthen field "executing_insns" from
1376 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1377 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1378 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1379 and param "insn" from rtx to insn_t.
1380 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1383 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1385 (rtx_vec_t): Likewise.
1386 (struct sched_deps_info_def): Strengthen param of "start_insn"
1387 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1388 "note_mem_dep" callback and first param of "note_dep" callback.
1390 * haifa-sched.c (add_to_speculative_block): Strengthen param
1391 "insn" from rtx to rtx_insn *.
1392 (clear_priorities): Likewise.
1393 (calc_priorities): Likewise for local "insn".
1395 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1396 Remove redundant checked cast.
1397 (haifa_note_mem_dep): Likewise for param "pending_insn".
1398 (haifa_note_dep): Likewise for param "elem".
1399 (note_mem_dep): Likewise for param "e".
1400 (sched_analyze_1): Add checked casts.
1401 (sched_analyze_2): Likewise.
1403 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1404 from rtx to rtx_insn *.
1405 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1406 from vec<rtx> * to vec<rtx_insn *> *.
1408 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1410 (flist_add): Strengthen param "executing_insns" from
1411 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1412 (advance_deps_context): Remove now-redundant checked cast.
1413 (init_fences): Replace uses of NULL_RTX with NULL.
1414 (merge_fences): Strengthen params "last_scheduled_insn" and
1415 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1416 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1417 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1418 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1419 an instruction, rather than doing double-duty as a pattern.
1420 (return_nop_to_pool): Update for change of insn_t.
1421 (deps_init_id): Remove now-redundant checked cast.
1422 (struct sched_scan_info_def): Strengthen param of "init_insn"
1423 callback from rtx to insn_t.
1424 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1425 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1427 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1428 "end" from rtx to rtx_insn *.
1429 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1430 (rtx insn_rtx, bool force_unique_p)
1431 (BND_TO): Delete function.
1432 (SET_BND_TO): Delete function.
1434 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1436 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1437 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1439 (undo_transformations): Likewise for param "insn".
1440 (update_liveness_on_insn): Likewise.
1441 (compute_live_below_insn): Likewise for param "insn" and local
1443 (update_data_sets): Likewise for param "insn".
1444 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1445 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1446 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1448 (move_cond_jump): Likewise for param "insn".
1449 (move_cond_jump): Drop use of SET_BND_TO.
1450 (compute_av_set_on_boundaries): Likewise.
1451 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1452 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1453 from rtx to rtx_insn *.
1454 (maybe_emit_renaming_copy): Likewise for param "insn".
1455 (maybe_emit_speculative_check): Likewise.
1456 (handle_emitting_transformations): Likewise.
1457 (remove_insn_from_stream): Likewise.
1458 (code_motion_process_successors): Strengthen local "succ" from rtx
1461 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1463 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1464 ilist_t, not _xlist_t;
1465 (ILIST_INSN): Define in terms of new union field "insn".
1466 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1468 (struct _list_node): Add new field "insn" to the union, of type
1470 (ilist_add): Replace macro with an inline function, requiring an
1472 (ilist_remove): Define this macro directly in terms of
1473 _list_remove, rather than indirectly via _xlist_remove.
1474 (ilist_clear): Likewise, in terms of _list_clear rather than
1476 (ilist_is_in_p): Replace macro with an inline function, requiring
1478 (_list_iter_cond_insn): New function.
1479 (ilist_iter_remove): Define this macro directly in terms of
1480 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1481 (ilist_iterator): Define directly in terms of _list_iterator
1482 rather than indirectly through _xlist_iterator.
1483 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1484 than in terms of _FOR_EACH_X.
1485 (FOR_EACH_INSN_1): Likewise.
1487 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1491 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1492 DECL_HARD_REGISTER and return for invalid register specifications.
1493 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1494 DECL_HARD_REGISTER, call expand_one_error_var.
1495 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1496 CC_REGNUM with non-MODE_CC modes.
1497 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1499 2014-08-26 Marek Polacek <polacek@redhat.com>
1502 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1504 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1506 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1507 qi cost; add di cost.
1508 (cortexa57_addrcost_table): Likewise.
1510 2014-08-26 Marek Polacek <polacek@redhat.com>
1513 * expr.c (is_aligning_offset): Remove logical not.
1515 2014-08-26 Marek Polacek <polacek@redhat.com>
1518 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1519 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1521 2014-08-26 Richard Biener <rguenther@suse.de>
1523 PR tree-optimization/62175
1524 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1525 expand possibly trapping operations.
1527 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1529 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1530 "insn" from rtx to rtx_insn *.
1531 (permute_load): Likewise for param "insn".
1532 (permute_store): Likewise.
1533 (handle_special_swappables): Likewise for local "insn".
1534 (replace_swap_with_copy): Likewise for locals "insn" and
1536 (rs6000_analyze_swaps): Likewise for local "insn".
1538 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1540 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1543 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1545 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1546 "note_list" from rtx to rtx_insn *.
1547 (BB_NOTE_LIST): Replace this function and...
1548 (SET_BB_NOTE_LIST): ...this function with...
1549 (BB_NOTE_LIST): ...the former macro implementation.
1551 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1552 local "from_start" from rtx to rtx_insn *. Strengthen param
1553 "to_endp" from rtx * to rtx_insn **.
1555 * haifa-sched.c (concat_note_lists): Likewise.
1556 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1558 (sel_restore_notes): Likewise.
1559 (move_bb_info): Likewise.
1560 (BB_NOTE_LIST): Delete this function.
1561 (SET_BB_NOTE_LIST): Delete this function.
1562 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1563 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1565 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1567 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1568 from rtx * to rtx_insn **.
1569 (reorder2): Likewise.
1570 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1571 from rtx to rtx_insn *.
1573 * doc/tm.texi: Update mechanically for above change to target.def.
1575 * sched-int.h (note_list): Strengthen this variable from rtx to
1577 (remove_notes): Likewise for both params.
1578 (restore_other_notes): Likewise for return type and first param.
1579 (struct ready_list): Strengthen field "vec" from rtx * to
1581 (struct dep_replacement): Strenghten field "insn" from rtx to
1583 (struct deps_desc): Likewise for fields "last_debug_insn",
1585 (struct haifa_sched_info): Likewise for callback field
1586 "can_schedule_ready_p"'s param, for first param of "new_ready"
1587 callback field, for both params of "rank" callback field, for
1588 first field of "print_insn" callback field (with a const), for
1589 both params of "contributes_to_priority" callback, for param
1590 of "insn_finishes_block_p" callback, for fields "prev_head",
1591 "next_tail", "head", "tail", for first param of "add_remove_insn"
1592 callback, for first param of "begin_schedule_ready" callback, for
1593 both params of "begin_move_insn" callback, and for second param
1594 of "advance_target_bb" callback.
1595 (add_dependence): Likewise for params 1 and 2.
1596 (sched_analyze): Likewise for params 2 and 3.
1597 (deps_analyze_insn): Likewise for param 2.
1598 (ready_element): Likewise for return type.
1599 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1600 (try_ready): Strenghten param from rtx to rtx_insn *.
1601 (sched_emit_insn): Likewise for return type.
1602 (record_delay_slot_pair): Likewise for params 1 and 2.
1603 (add_delay_dependencies): Likewise for param.
1604 (contributes_to_priority): Likewise for both params.
1605 (find_modifiable_mems): Likewise.
1607 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1608 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1609 "first_older_only_insn" from rtx to rtx_insn *.
1610 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1613 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1614 "last_scheduled_iter0" from rtx to rtx_insn *.
1615 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1616 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1617 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1618 "insn" from rtx to rtx_insn *.
1619 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1621 (c6x_sched_reorder2): Strengthen param "ready" and locals
1622 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1623 "insn" from rtx to rtx_insn *.
1624 (c6x_variable_issue): Add a checked cast when assigning from insn
1625 to ss.last_scheduled_iter0.
1626 (split_delayed_branch): Strengthen param "insn" and local "i1"
1627 from rtx to rtx_insn *.
1628 (split_delayed_nonbranch): Likewise.
1629 (undo_split_delayed_nonbranch): Likewise for local "insn".
1630 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1631 "entry_after", "end_packet", "head_insn", "tail_insn",
1632 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1633 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1634 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1635 but add a checked cast on loop->start_label. Consolidate calls to
1636 avoid assigning result of gen_spkernel to "insn", now an
1639 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1640 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1642 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1643 rtx_insn **. Strengthen locals "top", "next" from rtx to
1645 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1646 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1647 (add_parameter_dependencies): Strengthen params "call", "head" and
1648 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1649 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1650 (add_dependee_for_func_arg): Likewise for param "arg" and local
1652 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1653 "tail" and locals "insn", "first_arg".
1655 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1656 for params "head", "tail" and locals "insn", "next", "next_tail".
1657 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1658 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1659 "insn", "lowest", "highest" from rtx to rtx_insn *.
1660 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1662 (ia64_sched_reorder2): Likewise.
1664 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1665 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1666 from rtx * to rtx_insn **.
1667 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1669 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1671 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1672 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1675 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1676 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1678 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1679 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1680 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1682 (vr4130_reorder): Likewise.
1683 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1685 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1687 (mips_sched_reorder): Likewise.
1688 (mips_sched_reorder2): Likewise.
1690 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1692 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1693 Strengthen local "tmp" from rtx to rtx_insn *.
1694 (rs6000_sched_reorder2): Likewise.
1696 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1697 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1698 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1699 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1701 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1702 "tmp2" from rtx to rtx_insn *.
1703 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1704 Strengthen local "insn" from rtx to rtx_insn *.
1705 (ready_reorder): Strengthen param "ready" from rtx * to
1706 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1707 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1708 (sh_reorder2): Likewise.
1710 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1711 local "insn" from rtx to rtx_insn *.
1713 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1715 (scheduled_insns): Strengthen this variable from vec<rtx> to
1717 (set_modulo_params): Likewise for locals "i1", "i2".
1718 (record_delay_slot_pair): Likewise for params "i1", "i2".
1719 (add_delay_dependencies): Likewise for param "insn".
1720 (cond_clobbered_p): Likewise.
1721 (recompute_todo_spec): Likewise for local "prev".
1722 (last_scheduled_insn): Likewise for this variable.
1723 (nonscheduled_insns_begin): Likewise.
1724 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1726 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1728 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1729 Strengthen local "insn" from rtx to rtx_insn *.
1730 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1731 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1732 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1733 (ready_remove_first): Likewise for return type and local "t".
1734 (ready_element): Likewise for return type.
1735 (ready_remove): Likewise for return type and local "t".
1736 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1737 (check_clobbered_conditions): Strengthen local "x" from rtx to
1738 rtx_insn *, adding a checked cast.
1739 (schedule_insn): Likewise for param "insn".
1740 (remove_notes): Likewise for params "head", "tail" and locals
1741 "next_tail", "insn", "next".
1742 (struct haifa_saved_data): Likewise for fields
1743 "last_scheduled_insn", "nonscheduled_insns_begin".
1744 (save_backtrack_point): Update for change to field "vec" of
1746 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1748 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1749 from rtx to rtx_insn *
1750 (resolve_dependencies): Strengthen param "insn" from rtx to
1752 (restore_other_notes): Likewise for return type, for param "head"
1753 and local "note_head".
1754 (undo_all_replacements): Likewise for local "insn".
1755 (first_nonscheduled_insn): Likewise for return type and local "insn".
1756 (queue_to_ready): Likewise for local "insn", adding checked casts.
1757 (early_queue_to_ready): Likewise for local "insn".
1758 (debug_ready_list_1): Strengthen local "p" from rtx * to
1760 (move_insn): Strengthen param "insn" and local "note" from rtx to
1762 (insn_finishes_cycle_p): Likewise for param "insn".
1763 (max_issue): Likewise for local "insn".
1764 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1766 (commit_schedule): Strengthen param "prev_head" and local "insn"
1767 from rtx to rtx_insn *
1768 (prune_ready_list): Likewise for local "insn".
1769 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1770 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1771 (set_priorities): Likewise for local "prev_head".
1772 (try_ready): Likewise for param "next".
1773 (fix_tick_ready): Likewise.
1774 (change_queue_index): Likewise.
1775 (sched_extend_ready_list): Update for change to field "vec" of
1777 (generate_recovery_code): Strengthen param "insn" from rtx to
1779 (begin_speculative_block): Likewise.
1780 (create_check_block_twin): Likewise for param "insn" and locals
1781 "label", "check", "twin". Introduce local "check_pat" to avoid
1782 "check" being used as a plain rtx before being used as an insn.
1783 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1784 extracting elements from ready_list.
1785 (sched_remove_insn): Strengthen param "insn" from rtx to
1787 (sched_emit_insn): Likewise for return type.
1788 (ready_remove_first_dispatch): Likewise for return type and local
1791 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1793 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1796 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1797 from rtx to rtx_insn *.
1798 (add_dependence_list): Likewise for param "insn". Add a checked
1800 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1801 to rtx_insn *. Strengthen param "list_p" from rtx * to
1803 (chain_to_prev_insn): Strengthen param "insn" and locals
1804 "prec_nonnote", "i" from rtx to rtx_insn *.
1805 (flush_pending_lists): Likewise for param "insn".
1806 (cur_insn): Likewise for this variable.
1807 (haifa_start_insn): Add a checked cast.
1808 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1809 (sched_analyze_reg): Likewise for param "insn".
1810 (sched_analyze_1): Likewise.
1811 (sched_analyze_2): Likewise. Add checked casts.
1812 (sched_analyze_insn): Likewise. Also for local "prev".
1813 (deps_analyze_insn): Likewise for param "insn".
1814 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1815 (add_dependence_1): Likewise for params "insn", "elem".
1816 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1817 (parse_add_or_inc): Likewise for param "insn".
1818 (find_inc): Likewise for local "inc_cand".
1819 (find_modifiable_mems): Likewise for params "head", "tail" and
1820 locals "insn", "next_tail".
1822 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1823 (begin_schedule_ready): Likewise for param "insn".
1824 (begin_move_insn): Likewise for params "insn" and "last".
1825 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1827 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1828 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1829 (ebb_add_remove_insn): Likewise for param "insn".
1830 (advance_target_bb): Likewise.
1832 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1834 (check_live): Likewise for param "insn".
1835 (init_ready_list): Likewise for local "insn".
1836 (can_schedule_ready_p): Likewise for param "insn".
1837 (begin_schedule_ready): Likewise.
1838 (new_ready): Likewise for param "next".
1839 (rgn_print_insn): Likewise for param "insn".
1840 (rgn_rank): Likewise for params "insn1", "insn2".
1841 (contributes_to_priority): Likewise for params "next", "insn".
1842 (rgn_insn_finishes_block_p): Likewise for param "insn".
1843 (add_branch_dependences): Likewise for params "head", "tail" and
1844 locals "insn", "last".
1845 (rgn_add_remove_insn): Likewise for param "insn".
1846 (advance_target_bb): Likewise.
1848 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1849 const_rtx to const rtx_insn *.
1851 * sel-sched-dump.h (sel_print_insn): Likewise.
1853 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1854 (deps_init_id): Likewise.
1856 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1857 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1860 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1862 * output.h (final_start_function): Strengthen param 1 from rtx to
1865 * final.c (final_start_function): Likewise, renaming back from
1866 "uncast_first" to "first", and dropping the checked cast from rtx
1869 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1871 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1872 * final.c (final): Likewise. Rename param back from
1873 "uncast_first" to "first" and eliminate the checked cast from rtx
1876 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1878 * output.h (shorten_branches): Strengthen param from rtx to
1881 * final.c (shorten_branches): Likewise, renaming param back from
1882 "uncast_first" to "first", and dropping the checked cast from rtx
1885 * genattr.c (gen_attr): Likewise when writing out the prototype of
1888 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1890 * sched-int.h (struct haifa_sched_info): Strengthen fields
1891 "prev_head" and "next_tail" from rtx to rtx_insn *.
1893 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1895 * rtl.h (rtx_jump_table_data::get_labels): New method.
1896 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1897 with use of the new rtx_jump_table_data::get_labels method.
1898 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1899 to rtx_jump_table_data *. Simplify by using get_labels method.
1900 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1901 a dyn_cast, introducing local "table", using it to replace
1902 label-lookup logic with a get_labels method call.
1903 (patch_jump_insn): Simplify using get_labels method.
1904 * dwarf2cfi.c (create_trace_edges): Likewise.
1905 * rtlanal.c (label_is_jump_target_p): Likewise.
1907 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1909 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1912 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1913 (unshare_all_rtl_again): Likewise, also for local "p".
1915 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1917 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1919 * cfgrtl.c (delete_insn_and_edges): Likewise.
1921 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1923 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1924 from rtx to rtx_insn *.
1926 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1928 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1930 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1931 locals "returnjump", "epilogue_end", "insn", "next".
1933 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1934 "returnjump" from rtx * to rtx_insn **.
1935 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1937 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1939 * basic-block.h (struct edge_def). Strengthen "r" within
1940 union edge_def_insns from rtx to rtx_insn *.
1942 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1943 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1945 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1946 from rtx to rtx_insn *.
1947 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1949 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1950 (reg_used_on_edge): Likewise.
1951 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1952 (gt_pch_nx): New overload for rtx_insn *&.
1953 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1954 from rtx to rtx_insn *.
1956 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1958 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1959 from rtx to rtx_insn *.
1960 (BB_FOOTER): Replace function with access macro.
1961 (SET_BB_FOOTER): Delete.
1963 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1965 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1966 (emit_barrier_after_bb): Likewise.
1967 (record_effective_endpoints): Likewise.
1968 (relink_block_chain): Likewise.
1969 (fixup_fallthru_exit_predecessor): Likewise.
1970 (cfg_layout_duplicate_bb): Likewise.
1971 (cfg_layout_split_block): Likewise.
1972 (cfg_layout_delete_block): Likewise.
1973 (cfg_layout_merge_blocks): Likewise.
1974 (BB_FOOTER): Delete function.
1975 (SET_BB_FOOTER): Delete function.
1976 * combine.c (update_cfg_for_uncondjump): Replace uses of
1977 SET_BB_FOOTER with BB_FOOTER.
1979 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1981 * except.h (struct eh_landing_pad_d): Strengthen field
1982 "landing_pad" from rtx to rtx_code_label *.
1984 * except.c (sjlj_emit_dispatch_table): Likewise for param
1986 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1988 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1990 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1991 first param from rtx to rtx_insn *.
1992 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1993 field "set_frame_ptr_insn".
1994 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1995 "csend" from rtx to rtx_code_label *.
1996 (xtensa_expand_atomic): Likewise for local "csloop".
1997 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1999 (xtensa_call_tls_desc): Likewise for return type and locals
2000 "call_insn", "insns".
2001 (xtensa_legitimize_tls_address): Likewise for local "insns".
2002 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2004 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2006 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2007 first param from rtx to rtx_insn *.
2008 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2011 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2013 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2014 Strengthen param 1 from rtx to rtx_insn *.
2015 (tilepro_output_cbranch): Likewise.
2016 (tilepro_adjust_insn_length): Likewise.
2017 (tilepro_final_prescan_insn): Likewise for sole param.
2019 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2020 Likewise for local "last".
2021 (cbranch_predicted_p): Likewise for param "insn".
2022 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2023 (tilepro_output_cbranch_with_opcode): Likewise.
2024 (tilepro_output_cbranch): Likewise.
2025 (frame_emit_load): Likewise for return type and locals "seq",
2027 (emit_sp_adjust): Likewise for return type and local "insn".
2028 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2030 (tilepro_adjust_insn_length): Likewise for param "insn".
2031 (next_insn_to_bundle): Likewise for return type and params
2033 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2034 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2036 (match_addli_pcrel): Likewise for param "insn".
2037 (replace_addli_pcrel): Likewise.
2038 (match_auli_pcrel): Likewise.
2039 (replace_auli_pcrel): Likewise.
2040 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2042 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2043 "queue", "next_queue", "prev".
2044 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2045 (tilepro_final_prescan_insn): Likewise for param "insn".
2047 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2049 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2050 Strengthen param 1 from rtx to rtx_insn *.
2051 (tilegx_output_cbranch): Likewise.
2052 (tilegx_adjust_insn_length): Likewise.
2053 (tilegx_final_prescan_insn): Likewise for sole param.
2055 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2057 (cbranch_predicted_p): Likewise for param "insn".
2058 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2059 (tilegx_output_cbranch_with_opcode): Likewise.
2060 (tilegx_output_cbranch): Likewise.
2061 (frame_emit_load): Likewise for return type.
2062 (set_frame_related_p): Likewise for locals "seq", "insn".
2063 (emit_sp_adjust): Likewise for return type, and for local "insn".
2064 Introduce local "pat" for use in place of "insn" where the latter
2065 isn't an instruction.
2066 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2067 from rtx to rtx_insn *.
2068 (tilegx_adjust_insn_length): Likewise for param "insn".
2069 (next_insn_to_bundle): Likewise for return type and params "r" and
2071 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2073 (replace_insns): Likewise for params "old_insn", "new_insns".
2074 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2076 (replace_mov_pcrel_step2): Likewise.
2077 (replace_mov_pcrel_step3): Likewise.
2078 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2080 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2081 "queue", "next_queue", "prev".
2082 (tilegx_output_mi_thunk): Likewise for local "insn".
2083 (tilegx_final_prescan_insn): Likewise for param "insn".
2085 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2087 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2089 (frame_emit_load): Likewise.
2090 (frame_emit_add_imm): Likewise, also for local "insn".
2091 (spu_expand_prologue): Likewise for local "insn".
2092 (struct spu_bb_info): Likewise for field "prop_jump".
2093 (emit_nop_for_insn): Likewise for param "insn" and local
2095 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2097 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2098 locals "hint", "insn".
2099 (get_branch_target): Likewise for param "branch".
2100 (insn_clobbers_hbr): Likewise for param "insn".
2101 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2102 locals "insn", "before_4", "before_16".
2103 (insert_hbrp): Likewise for local "insn".
2104 (spu_machine_dependent_reorg): Likewise for locals "branch",
2105 "insn", "next", "bbend".
2106 (uses_ls_unit): Likewise for param "insn".
2107 (get_pipe): Likewise.
2108 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2109 introducing a checked cast.
2110 (spu_sched_adjust_cost): Likewise for params "insn" and
2112 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2113 (spu_sms_res_mii): Likewise.
2115 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2117 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2118 from rtx to rtx_insn *.
2119 (output_cbranch): Likewise for param 6.
2120 (output_return): Likewise for param 1.
2121 (output_sibcall): Likewise.
2122 (output_v8plus_shift): Likewise.
2123 (output_v8plus_mult): Likewise.
2124 (output_v9branch): Likewise for param 7.
2125 (output_cbcond): Likewise for param 3.
2127 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2129 (sparc_legitimize_pic_address): Likewise.
2130 (sparc_emit_call_insn): Likewise.
2131 (emit_save_or_restore_regs): Likewise.
2132 (emit_window_save): Likewise for return type and local "insn".
2133 (sparc_expand_prologue): Likewise for local "insn".
2134 (sparc_flat_expand_prologue): Likewise.
2135 (output_return): Likewise for param "insn".
2136 (output_sibcall): Likewise for param "insn" and local "delay".
2137 (output_ubranch): Likewise for param "insn".
2138 (output_cbranch): Likewise.
2139 (output_cbcond): Likewise.
2140 (output_v9branch): Likewise.
2141 (output_v8plus_shift): Likewise.
2142 (sparc_output_mi_thunk): Likewise for local "insn".
2143 (get_some_local_dynamic_name): Likewise.
2144 (output_v8plus_mult): Likewise for param "insn".
2146 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2148 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2149 from rtx to rtx_insn *.
2150 (output_branchy_insn): Likewise for param 3.
2151 (output_far_jump): Likewise for param 1.
2152 (final_prescan_insn): Likewise.
2153 (sh_insn_length_adjustment): Likewise for sole param.
2155 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2156 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2158 (sh_emit_compare_and_set): Likewise for local "lab".
2159 (output_far_jump): Strengthen param "insn" and local "prev" from
2161 (output_branchy_insn): Likewise for param "insn" and local
2163 (output_ieee_ccmpeq): Likewise for param "insn".
2164 (struct label_ref_list_d): Strengthen field "label" from rtx to
2166 (pool_node): Likewise.
2167 (pool_window_label): Likewise for this global.
2168 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2169 (dump_table): Strengthen params "start", "barrier" and local
2170 "scan" from rtx to rtx_insn *.
2171 (broken_move): Likewise for param "insn".
2172 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2173 Strengthen param "first_mova" from rtx * to rtx_insn **.
2174 (mova_p): Likewise for param "insn".
2175 (fixup_mova): Likewise for param "mova".
2176 (find_barrier): Likewise for return type, params "mova" and
2177 "from", and locals "barrier_before_mova", "found_barrier",
2178 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2179 "label" from rtx to rtx_code_label *.
2180 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2182 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2183 (split_branches): Likewise for param "first" and local "insn".
2184 (final_prescan_insn): Likewise for param "insn".
2185 (sequence_insn_p): Likewise for locals "prev", "next".
2186 (sh_insn_length_adjustment): Likewise for param "insn".
2187 (sh_can_redirect_branch): Likewise for local "insn".
2188 (find_r0_life_regions): Likewise for locals "end", "insn".
2189 (sh_output_mi_thunk): Likewise for local "insns".
2191 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2193 * config/score/score.c (score_output_mi_thunk): Strengthen local
2194 "insn" from rtx to rtx_insn *.
2195 (score_prologue): Likewise.
2197 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2199 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2200 1 from rtx to rtx_insn *.
2201 (s390_emit_jump): Likewise for return type.
2202 (s390_emit_call): Likewise.
2203 (s390_load_got): Likewise.
2205 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2207 (s390_match_ccmode): Likewise for param "insn".
2208 (s390_emit_jump): Likewise for return type.
2209 (s390_split_branches): Likewise for local "label".
2210 (struct constant): Strengthen field "label" from rtx to
2212 (struct constant_pool): Likewise for field "label". Strengthen
2213 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2215 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2217 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2218 (s390_end_pool): Likewise.
2219 (s390_dump_pool): Likewise for local "insn".
2220 (s390_mainpool_start): Likewise.
2221 (s390_chunkify_start): Likewise.
2222 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2223 with insns. Strengthen locals "label", "jump", "barrier", "next",
2224 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2225 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2227 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2228 "jump", "label", "next_insn".
2229 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2230 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2232 (s390_load_got): Likewise for return type and local "insns".
2233 (s390_save_gprs_to_fprs): Likewise for local "insn".
2234 (s390_restore_gprs_from_fprs): Likewise.
2235 (pass_s390_early_mach::execute): Likewise.
2236 (s390_emit_prologue): Likewise for local "insns".
2237 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2239 (s390_emit_call): Strengthen return type and local "insn" from
2241 (s390_emit_tpf_eh_return): Likewise for local "insn".
2242 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2243 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2244 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2246 (s390_non_addr_reg_read_p): Likewise for param "insn".
2247 (find_cond_jump): Likewise for return type and param "insn".
2248 (s390_swap_cmp): Likewise for param "insn".
2249 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2250 "prev_insn", "next_insn".
2251 (s390_reorg): Likewise for locals "insn", "target".
2252 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2253 (s390_sched_variable_issue): For now, rename param "insn" to
2254 "uncast_insn", introducing a checked cast.
2255 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2257 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2258 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2260 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2262 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2263 param from rtx to rtx_insn *.
2264 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2266 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2268 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2269 4 from rtx to rtx_insn *.
2270 (rs6000_final_prescan_insn): Likewise for first param.
2271 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2273 (rs6000_get_some_local_dynamic_name): Likewise.
2274 (output_cbranch): Likewise for param "insn".
2275 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2276 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2277 (rs6000_emit_allocate_stack): Likewise for local "insn".
2278 (load_cr_save): Likewise.
2279 (restore_saved_cr): Likewise.
2280 (restore_saved_lr): Likewise.
2281 (emit_cfa_restores): Likewise.
2282 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2283 "deleted_debug_label".
2284 (rs6000_output_mi_thunk): Likewise for local "insn".
2285 (rs6000_final_prescan_insn): Likewise for param "insn".
2287 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2289 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2290 Strengthen param "insn" from rtx to rtx_insn *.
2291 * config/picochip/picochip.c (picochip_current_prescan_insn):
2292 Likewise for this variable.
2293 (picochip_final_prescan_insn): Likewise for param "insn".
2295 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2297 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2298 from rtx to rtx_insn *.
2299 (pa_output_indirect_call): Likewise.
2300 (pa_adjust_insn_length): Likewise.
2301 (pa_attr_length_millicode_call): Likewise.
2302 (pa_attr_length_call): Likewise.
2303 (pa_attr_length_indirect_call): Likewise.
2305 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2307 (pa_attr_length_millicode_call): Likewise.
2308 (pa_attr_length_call): Likewise.
2309 (pa_output_call): Likewise.
2310 (pa_attr_length_indirect_call): Likewise.
2311 (pa_output_indirect_call): Likewise.
2313 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2315 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2316 Strengthen first param from rtx to rtx_insn *.
2317 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2320 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2322 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2323 type from rtx to rtx_insn *.
2324 (mips_expand_call): Likewise.
2325 (mips_adjust_insn_length): Likewise for first param.
2326 (mips_output_conditional_branch): Likewise.
2327 (mips_output_order_conditional_branch): Likewise.
2328 (mips_final_prescan_insn): Likewise.
2330 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2331 rtx_insn * for the SEQUENCE case.
2332 (SEQ_END): Likewise.
2333 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2334 (mips_emit_call_insn): Likewise, also for local "insn".
2335 (mips16_gp_pseudo_reg): Likewise for local "scan".
2336 (mips16_build_call_stub): Likewise for return type and for local
2337 "insn". Introduce a new local "pattern" so that "insn" can indeed
2339 (mips_expand_call): Strengthen return type and local "insn" from
2341 (mips_block_move_loop): Strengthen local "label" from rtx to
2343 (mips_expand_synci_loop): Likewise for locals "label",
2345 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2347 (mips16e_collect_argument_saves): Likewise for locals "insn",
2349 (mips_find_gp_ref): Likewise for param of callback for "pred"
2350 param, and for local "insn".
2351 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2352 (mips_insn_has_flexible_gp_ref_p): Likewise.
2353 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2355 (mips_epilogue_set_cfa): Likewise for local "insn".
2356 (mips_expand_epilogue): Likewise.
2357 (mips_adjust_insn_length): Likewise for param "insn".
2358 (mips_output_conditional_branch): Likewise.
2359 (mips_output_order_conditional_branch): Likewise.
2360 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2361 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2362 "falu2_turn_enabled_insn".
2363 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2364 "done_label" from rtx to rtx_code_label *.
2365 (struct mips16_constant): Likewise for field "label".
2366 (mips16_add_constant): Likewise for return type.
2367 (mips16_emit_constants_1): Strengthen return type and param "insn"
2368 from rtx to rtx_insn *.
2369 (mips16_emit_constants): Likewise for param "insn".
2370 (mips16_insn_length): Likewise.
2371 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2372 to rtx_code_label *.
2373 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2374 from rtx to rtx_insn *.
2375 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2376 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2377 (r10k_simplify_address): Strengthen param "insn" and local
2378 "def_insn" from rtx to rtx_insn *.
2379 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2381 (r10k_needs_protection_p_1): Update target type of cast of data
2382 from to rtx to rtx_insn *.
2383 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2384 rtx * to rtx_insn **.
2385 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2387 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2388 (mips_call_expr_from_insn): Likewise for param "insn".
2389 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2390 (mips_find_pic_call_symbol): Likewise for param "insn".
2391 (mips_annotate_pic_calls): Likewise for local "insn".
2392 (mips_sim_insn): Likewise for this variable.
2393 (struct mips_sim): Likewise for field "insn" within elements of
2395 (mips_sim_wait_reg): Likewise for param "insn".
2396 (mips_sim_wait_regs): Likewise.
2397 (mips_sim_wait_units): Likewise.
2398 (mips_sim_wait_insn): Likewise.
2399 (mips_sim_issue_insn): Likewise.
2400 (mips_sim_finish_insn): Likewise.
2401 (mips_seq_time): Likewise for param "seq" and local "insn".
2402 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2403 locals "first", "second".
2404 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2405 "last", "last2", "next".
2406 (mips_avoid_hazard): Likewise for params "after", "insn".
2407 (mips_reorg_process_insns): Likewise for locals "insn",
2408 "last_insn", "subinsn", "next_insn".
2409 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2410 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2412 (mips_output_mi_thunk): Likewise for local "insn".
2413 (mips_final_prescan_insn): Likewise for param "insn".
2415 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2417 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2418 Strengthen return type and local "insns" from rtx to rtx_insn *.
2419 (microblaze_legitimize_tls_address): Likewise for local "insns".
2420 (microblaze_block_move_loop): Strengthen local "label" from rtx
2421 to rtx_code_label *.
2422 (microblaze_expand_prologue): Strengthen two locals named "insn"
2423 from rtx to rtx_insn *.
2424 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2425 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2426 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2427 to rtx_code_label *.
2429 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2431 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2432 param from rtx to rtx_insn *.
2433 (mep_reuse_lo): Likewise for third param.
2434 (mep_use_post_modify_p): Likewise for first param.
2435 (mep_core_address_length): Likewise.
2436 (mep_cop_address_length): Likewise.
2437 (mep_final_prescan_insn): Likewise.
2438 (mep_store_data_bypass_p): Likewise for both params.
2439 (mep_mul_hilo_bypass_p): Likewise.
2440 (mep_ipipe_ldc_p): Likewise for param.
2442 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2443 (mep_rewrite_mult): Likewise.
2444 (mep_rewrite_mulsi3): Likewise.
2445 (mep_rewrite_maddsi3): Likewise.
2446 (mep_reuse_lo_p_1): Likewise.
2447 (mep_reuse_lo_p): Likewise.
2448 (mep_frame_expr): Likewise.
2449 (mep_make_parallel): Likewise for both params.
2450 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2452 (mep_use_post_modify_p): Likewise for param "insn".
2453 (mep_core_address_length): Likewise.
2454 (mep_cop_address_length): Likewise.
2455 (mep_reg_set_in_function): Likewise for local "insn".
2456 (mep_asm_without_operands_p): Likewise.
2457 (F): Likewise for return type and param "x".
2458 (add_constant): Likewise for local "insn".
2459 (maybe_dead_move): Likewise for return type and local "insn".
2460 (mep_expand_prologue): Likewise for local "insn".
2461 (mep_final_prescan_insn): Likewise for param "insn".
2462 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2463 "next", "follow", "x".
2464 (mep_insert_repeat_label_last): Likewise for return type, param
2465 "last_insn", and locals "next", "prev". Strengthen param "label"
2466 from rtx to rtx_code_label *.
2467 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2469 (struct mep_doloop_end): Likewise for fields "insn" and
2471 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2472 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2473 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2475 (mep_invert_branch): Likewise for params "insn" and "after".
2476 (mep_reorg_erepeat): Likewise for param "insns" and locals
2477 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2478 "l" from rtx to rtx_code_label *.
2479 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2480 from rtx to rtx_insn *.
2481 (mep_reorg_addcombine): Likewise for param "insns" and locals
2483 (add_sp_insn_p): Likewise for param "insn".
2484 (mep_reorg_noframe): Likewise for param "insns" and locals
2485 "start_frame_insn", "end_frame_insn", "next".
2486 (mep_reorg): Likewise for local "insns".
2487 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2489 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2490 (mep_mul_hilo_bypass_p): Likewise.
2491 (mep_ipipe_ldc_p): Likewise for param "insn".
2492 (mep_make_bundle): Likewise for return type, param "cop" and local
2493 "insn", splitting out the latter into a new local "seq" for when it
2494 is a SEQUENCE rather than an insn.
2495 (core_insn_p): Likewise for param "insn".
2496 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2497 "last", "first", "note", "prev", "core_insn".
2499 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2501 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2503 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2504 (m68k_final_prescan_insn): Likewise for first param.
2506 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2507 (m68k_set_frame_related): Likewise for param "insn".
2508 (output_btst): Likewise for param "insn".
2509 (m68k_final_prescan_insn): Likewise.
2510 (m68k_move_to_reg): Likewise for local "insn".
2511 (m68k_call_tls_get_addr): Likewise for local "insns".
2512 (m68k_call_m68k_read_tp): Likewise.
2513 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2514 (m68k_output_mi_thunk): Likewise for local "insn".
2516 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2518 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2519 first param from rtx to rtx_insn *.
2520 (iq2000_adjust_insn_length): Likewise.
2521 (iq2000_output_conditional_branch): Likewise.
2522 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2523 "insn" and local "nop_insn".
2524 (iq2000_annotate_frame_insn): Likewise for param "insn".
2525 (iq2000_expand_prologue): Likewise for both locals "insn".
2526 (iq2000_adjust_insn_length): Likewise for param "insn".
2527 (iq2000_output_conditional_branch): Likewise.
2529 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2531 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2532 "insns" from rtx to rtx_insn *.
2533 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2534 (struct spill_fill_data): Likewise for field "init_after" and for
2535 elements of array field "prev_insn".
2536 (spill_restore_mem): Likewise for locals "insn", "first".
2537 (do_spill): Likewise for local "insn".
2538 (do_restore): Likewise.
2539 (ia64_expand_prologue): Likewise.
2540 (ia64_expand_epilogue): Likewise.
2541 (emit_insn_group_barriers): Likewise for locals "insn",
2543 (emit_all_insn_group_barriers): Likewise for locals "insn",
2545 (dfa_stop_insn): Likewise for this global.
2546 (dfa_pre_cycle_insn): Likewise.
2547 (ia64_nop): Likewise.
2548 (final_emit_insn_group_barriers): Likewise for locals "insn",
2550 (emit_predicate_relation_info): Likewise for locals "head", "n",
2552 (ia64_reorg): Likewise for local "insn".
2553 (ia64_output_mi_thunk): Likewise.
2554 (expand_vec_perm_interleave_2): Likewise for local "seq".
2556 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2558 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2559 param 1 "insn" from rtx to rtx_insn *.
2560 (ix86_use_lea_for_mov): Likewise.
2561 (ix86_avoid_lea_for_addr): Likewise.
2562 (ix86_split_lea_for_addr): Likewise.
2563 (ix86_lea_for_add_ok): Likewise.
2564 (ix86_output_call_insn): Likewise.
2566 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2567 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2568 (ix86_output_function_epilogue): Likewise for locals "insn",
2569 "deleted_debug_label".
2570 (legitimize_tls_address): Likewise for local "insn".
2571 (get_some_local_dynamic_name): Likewise.
2572 (increase_distance): Likewise for params "prev", "next".
2573 (distance_non_agu_define_in_bb): Likewise for params "insn",
2574 "start" and locals "prev", "next".
2575 (distance_non_agu_define): Likewise for param "insn".
2576 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2577 locals "next", "prev".
2578 (distance_agu_use): Likewise for param "insn".
2579 (ix86_lea_outperforms): Likewise.
2580 (ix86_ok_to_clobber_flags): Likewise.
2581 (ix86_avoid_lea_for_add): Likewise.
2582 (ix86_use_lea_for_mov): Likewise.
2583 (ix86_avoid_lea_for_addr): Likewise.
2584 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2585 (ix86_split_lea_for_addr): Likewise for param "insn".
2586 (ix86_lea_for_add_ok): Likewise for param "insn".
2587 (ix86_expand_carry_flag_compare): Likewise for local
2589 (ix86_expand_int_movcc): Likewise.
2590 (ix86_output_call_insn): Likewise for param "insn".
2591 (ix86_output_call_insn): Likewise for local "i".
2592 (x86_output_mi_thunk): Introduce local "insn", using it in place
2593 of "tmp" when dealing with insns.
2594 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2596 (ix86_pad_returns): Likewise for locals "ret", "prev".
2597 (ix86_count_insn_bb): Likewise for local "insn".
2598 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2599 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2600 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2601 (expand_vec_perm_interleave2): Likewise for local "seq".
2602 (expand_vec_perm_vperm2f128_vblend): Likewise.
2603 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2604 call to for_each_rtx with for_each_rtx_in_insn.
2606 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2608 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2609 "label" from rtx to rtx_code_label *.
2610 (ix86_expand_prologue): Likewise.
2611 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2613 (ix86_split_idivmod): Likewise for locals "end_label" and
2615 (ix86_expand_branch): Likewise for local "label2".
2616 (ix86_expand_aligntest): Likewise for return type and local "label".
2617 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2619 (expand_movmem_epilogue): Likewise for the various locals named
2621 (expand_setmem_epilogue): Likewise.
2622 (expand_small_movmem_or_setmem): Likewise for local "label".
2623 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2624 Strengthen param "done_label" from rtx * to rtx_code_label **.
2625 Strengthen locals "loop_label" and "label" from rtx to
2627 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2628 Likewise for locals "loop_label", "label".
2629 (ix86_expand_set_or_movmem): Likewise for locals "label",
2630 "jump_around_label", "hot_label".
2631 (ix86_expand_strlensi_unroll_1): Likewise for locals
2632 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2634 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2635 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2636 "label2", "jump_label".
2637 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2639 (ix86_expand_lfloorceil): Likewise for local "label".
2640 (ix86_expand_rint): Likewise.
2641 (ix86_expand_floorceildf_32): Likewise.
2642 (ix86_expand_floorceil): Likewise.
2643 (ix86_expand_rounddf_32): Likewise.
2644 (ix86_expand_trunc): Likewise.
2645 (ix86_expand_truncdf_32): Likewise.
2646 (ix86_expand_round): Likewise.
2648 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2650 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2651 first param from rtx to rtx_insn *.
2652 (h8300_insn_length_from_table): Likewise.
2653 * config/h8300/h8300.c (F): Likewise for return type and param
2655 (Fpa): Add a checked cast to rtx_insn *.
2656 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2658 (final_prescan_insn): Likewise for param "insn".
2659 (h8300_binary_length): Likewise.
2660 (h8300_insn_length_from_table): Likewise.
2662 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2664 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2665 Strengthen first param "insn" from rtx to rtx_insn *.
2667 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2669 (frame_insn): Likewise for return type. Introduce local "insn"
2670 for use in place of local "x" for use as an rtx_insn *.
2671 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2672 (epiphany_expand_prologue): Likewise for local "insn".
2673 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2674 * config/epiphany/resolve-sw-modes.c
2675 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2678 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2680 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2681 param from rtx to rtx_insn *.
2682 (c6x_final_prescan_insn): Likewise for first param.
2684 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2685 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2686 (c6x_expand_compare): Strengthen local "insns" from rtx to
2688 (c6x_get_unit_specifier): Likewise for param "insn".
2689 (c6x_print_unit_specifier_field): Likewise.
2690 (c6x_final_prescan_insn): Likewise.
2691 (emit_add_sp_const): Likewise for local "insn".
2692 (c6x_expand_prologue): Likewise.
2694 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2696 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2697 param 1 from rtx to rtx_insn *.
2698 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2699 the various locals named "insn".
2700 (expand_epilogue_reg_restore): Likewise.
2701 (frame_related_constant_load): Likewise.
2702 (add_to_reg): Likewise.
2703 (emit_link_insn): Likewise.
2704 (do_link): Likewise.
2705 (expand_interrupt_handler_prologue): Likewise.
2706 (branch_dest): Likewise for param "branch".
2707 (asm_conditional_branch): Likewise for param "insn".
2708 (gen_one_bundle): Likewise for elements of param "slot" and local
2710 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2711 elements of local "slot".
2712 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2713 "queue", "next_queue", "prev".
2714 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2715 (add_sched_insns_for_speculation): Likewise for local "insn".
2717 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2719 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2720 from rtx to rtx_insn *.
2721 (output_movhi): Likewise.
2722 (output_movsisf): Likewise.
2723 (avr_out_tstsi): Likewise.
2724 (avr_out_tsthi): Likewise.
2725 (avr_out_tstpsi): Likewise.
2726 (avr_out_compare): Likewise.
2727 (avr_out_compare64): Likewise.
2728 (avr_out_movpsi): Likewise.
2729 (ashlqi3_out): Likewise.
2730 (ashlhi3_out): Likewise.
2731 (ashlsi3_out): Likewise.
2732 (ashrqi3_out): Likewise.
2733 (ashrhi3_out): Likewise.
2734 (ashrsi3_out): Likewise.
2735 (lshrqi3_out): Likewise.
2736 (lshrhi3_out): Likewise.
2737 (lshrsi3_out): Likewise.
2738 (avr_out_ashlpsi3): Likewise.
2739 (avr_out_ashrpsi3): Likewise.
2740 (avr_out_lshrpsi3): Likewise.
2741 (avr_out_fract): Likewise.
2742 (avr_out_sbxx_branch): Likewise.
2743 (avr_out_round): Likewise.
2744 (avr_out_xload): Likewise.
2745 (avr_out_movmem): Likewise.
2746 (adjust_insn_length): Likewise.
2747 (avr_out_lpm): Likewise.
2748 (reg_unused_after): Likewise.
2749 (_reg_unused_after): Likewise.
2750 (avr_jump_mode): Likewise for second param.
2751 (jump_over_one_insn): Likewise for first param.
2752 (avr_final_prescan_insn): Likewise.
2753 (out_shift_with_cnt): Likewise for second param.
2755 * config/avr/avr.c (get_sequence_length): Likewise for param
2756 "insns" and local "insn".
2757 (emit_push_byte): Likewise for local "insn".
2758 (emit_push_sfr): Likewise.
2759 (avr_prologue_setup_frame): Likewise for locals "insn",
2760 "fp_plus_insns", "sp_plus_insns".
2761 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2763 (avr_jump_mode): Likewise for param "insn".
2764 (avr_final_prescan_insn): Likewise.
2765 (avr_find_unused_d_reg): Likewise.
2766 (avr_out_lpm_no_lpmx): Likewise.
2767 (avr_out_lpm): Likewise.
2768 (avr_out_xload): Likewise.
2769 (output_movqi): Likewise.
2770 (output_movhi): Likewise.
2771 (out_movqi_r_mr): Likewise.
2772 (out_movhi_r_mr): Likewise.
2773 (out_movsi_r_mr): Likewise.
2774 (out_movsi_mr_r): Likewise.
2775 (output_movsisf): Likewise.
2776 (avr_out_load_psi): Likewise.
2777 (avr_out_store_psi): Likewise.
2778 (avr_out_movpsi): Likewise.
2779 (out_movqi_mr_r): Likewise.
2780 (avr_out_movhi_mr_r_xmega): Likewise.
2781 (out_movhi_mr_r): Likewise.
2782 (compare_condition): Likewise for param "insn" and local "next".
2783 (compare_sign_p): Likewise for param "insn".
2784 (compare_diff_p): Likewise.
2785 (compare_eq_p): Likewise.
2786 (avr_out_compare): Likewise.
2787 (avr_out_compare64): Likewise.
2788 (avr_out_tsthi): Likewise.
2789 (avr_out_tstpsi): Likewise.
2790 (avr_out_tstsi): Likewise.
2791 (out_shift_with_cnt): Likewise.
2792 (ashlqi3_out): Likewise.
2793 (ashlhi3_out): Likewise.
2794 (avr_out_ashlpsi3): Likewise.
2795 (ashlsi3_out): Likewise.
2796 (ashrqi3_out): Likewise.
2797 (ashrhi3_out): Likewise.
2798 (avr_out_ashrpsi3): Likewise.
2799 (ashrsi3_out): Likewise.
2800 (lshrqi3_out): Likewise.
2801 (lshrhi3_out): Likewise.
2802 (avr_out_lshrpsi3): Likewise.
2803 (lshrsi3_out): Likewise.
2804 (avr_out_fract): Likewise.
2805 (avr_out_round): Likewise.
2806 (avr_adjust_insn_length): Likewise.
2807 (reg_unused_after): Likewise.
2808 (_reg_unused_after): Likewise.
2809 (avr_compare_pattern): Likewise.
2810 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2811 and locals "branch1", "branch2", "insn2", "jump".
2812 (avr_reorg): Likewise for local "insn".
2813 (avr_2word_insn_p): Likewise for param "insn".
2814 (jump_over_one_insn_p): Likewise.
2815 (avr_out_sbxx_branch): Likewise.
2816 (avr_out_movmem): Likewise.
2818 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2820 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2821 param from rtx to rtx_insn *.
2822 (thumb1_final_prescan_insn): Likewise.
2823 (thumb2_final_prescan_insn): Likewise.
2825 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2827 (struct minipool_node): Likewise for field "insn".
2828 (dump_minipool): Likewise for param "scan".
2829 (create_fix_barrier): Likewise for local "from". Strengthen local
2830 "label" from rtx to rtx_code_label *.
2831 (push_minipool_barrier): Strengthen param "insn" from rtx to
2833 (push_minipool_fix): Likewise.
2834 (note_invalid_constants): Likewise.
2835 (thumb2_reorg): Likewise for local "insn".
2836 (arm_reorg): Likewise.
2837 (thumb2_final_prescan_insn): Likewise for param
2838 "insn" and local "first_insn".
2839 (arm_final_prescan_insn): Likewise for param "insn" and locals
2840 "start_insn", "this_insn".
2841 (arm_debugger_arg_offset): Likewise for param "insn".
2842 (thumb1_emit_multi_reg_push): Likewise for return type and local
2844 (thumb1_final_prescan_insn): Likewise for param "insn".
2845 (thumb_far_jump_used_p): Likewise for local "insn".
2846 (thumb1_expand_prologue): Likewise.
2847 (arm_expand_epilogue_apcs_frame): Likewise.
2848 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2849 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2850 from rtx to rtx_code_label *.
2851 (arm_split_atomic_op): Likewise for local "label".
2852 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2854 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2856 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2857 first param from rtx to rtx_insn *.
2858 (arc_verify_short): Likewise.
2859 (arc_short_long): Likewise.
2860 (arc_need_delay): Likewise.
2862 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2864 (arc_ccfsm_advance): Likewise for param "insn" and locals
2865 "start_insn", "this_insn".
2866 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2867 (arc_ccfsm_post_advance): Likewise for param "insn".
2868 (arc_next_active_insn): Likewise for return type and param "insn".
2869 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2870 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2871 (output_short_suffix): Likewise for local "insn".
2872 (arc_final_prescan_insn): Likewise for param "insn". Remove
2873 now-redundant checked cast.
2874 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2875 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2876 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2877 for use where lc_set became an insn.
2878 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2880 (arc_get_insn_variants): Likewise for local "prev".
2881 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2883 (arc_predicate_delay_insns): Likewise for local "insn".
2884 (arc_pad_return): Likewise for local "prev". For now, add a
2885 checked cast when extracting the insn from "final_sequence".
2886 (arc_short_long): Likewise for param "insn".
2887 (arc_need_delay): Likewise for param "insn" and local "next".
2888 (arc_label_align): Likewise for locals "prev", "next".
2890 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2892 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2893 "insn" from rtx to rtx_insn *.
2894 (alpha_gp_save_rtx): Likewise for local "seq".
2895 (alpha_instantiate_decls): Likewise for local "top".
2896 (get_some_local_dynamic_name): Likewise for local "insn".
2897 (alpha_does_function_need_gp): Likewise.
2898 (set_frame_related_p): Likewise for return type and for locals
2900 (emit_frame_store_1): Likewise for local "insn".
2901 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2902 (alpha_end_function): Likewise for local "insn".
2903 (alpha_output_mi_thunk_osf): Likewise.
2904 (alphaev4_insn_pipe): Likewise for param "insn".
2905 (alphaev5_insn_pipe): Likewise.
2906 (alphaev4_next_group): Likewise for return type and param 1
2908 (alphaev5_next_group): Likewise.
2909 (alpha_align_insns_1): Likewise for return type and param 1 of
2910 callback param "next_group", and for locals "i", "next", "prev",
2911 "where", "where2", "insn".
2913 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2915 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2916 rather than modifying the stmt.
2918 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2920 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2921 cgraph_state conversion.
2923 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2925 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2926 Strengthen local "insns" from rtx to rtx_insn *.
2927 (aarch64_set_frame_expr): Likewise for local "insn".
2928 (aarch64_save_or_restore_fprs): Likewise.
2929 (aarch64_save_or_restore_callee_save_registers): Likewise.
2930 (aarch64_expand_prologue): Likewise.
2931 (aarch64_expand_epilogue): Likewise.
2932 (aarch64_output_mi_thunk): Likewise.
2933 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2934 "label2" from rtx to rtx_code_label *.
2935 (aarch64_split_atomic_op): Likewise for local "label".
2937 2014-08-25 Martin Liska <mliska@suse.cz>
2939 * cgraph.h (symtab_node):
2940 (bool needed_p (void)): created from decide_is_symbol_needed
2941 (bool referred_to_p (void)): created from referred_to_p
2942 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2943 * cgraph.h (cgraph_node):
2944 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2945 (void expand (void)): created from expand_function
2946 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2947 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2948 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2949 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2950 * cgraph.h (varpool_node):
2951 (static void add (tree decl): created from varpool_add_new_variable
2952 * cgraph.h (cgraph_edge):
2954 (void remove_caller (void)): created from cgraph_edge_remove_caller
2955 (void remove_callee (void)): created from cgraph_edge_remove_callee
2956 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2957 created from cgraph_set_call_stmt
2958 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2959 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2960 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2961 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2962 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2963 created from cgraph_speculative_call_info
2964 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2965 int freq_scale, bool update_original)): created from cgraph_clone_edge
2966 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2967 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2968 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2969 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2970 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2971 (static void rebuild_references (void)): created from cgraph_rebuild_references
2972 * cgraph.h (symbol_table):
2973 (create_reference): renamed from add_reference
2974 (maybe_create_reference): renamed from maybe_add_reference
2975 (void register_symbol (symtab_node *node)): new function
2976 (void clear_asm_symbols (void)): new function
2977 (void unregister (symtab_node *node)): new function
2978 (void release_symbol (cgraph_node *node, int uid)): new function
2979 (cgraph_node * allocate_cgraph_symbol (void)): new function
2980 (void initialize (void)): created from cgraph_init
2981 (symtab_node *first_symbol (void)):new function
2982 (asm_node *first_asm_symbol (void)):new function
2983 (symtab_node *first_defined_symbol (void)):new function
2984 (varpool_node *first_variable (void)):new function
2985 (varpool_node *next_variable (varpool_node *node)):new function
2986 (varpool_node *first_static_initializer (void)):new function
2987 (varpool_node *next_static_initializer (varpool_node *node)):new function
2988 (varpool_node *first_defined_variable (void)):new function
2989 (varpool_node *next_defined_variable (varpool_node *node)):new function
2990 (cgraph_node *first_defined_function (void)):new function
2991 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2992 (cgraph_node *first_function (void)):new function
2993 (cgraph_node *next_function (cgraph_node *node)):new function
2994 (cgraph_node *first_function_with_gimple_body (void)):new function
2995 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2996 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2997 created from symtab_remove_unreachable_nodes
2998 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2999 (void process_new_functions (void)): created from cgraph_process_new_functions
3000 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3001 (bool output_variables (void)): created from varpool_node::output_variables
3002 (void output_asm_statements (void)): created from output_asm_statements
3003 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3004 (void compile (void)): created from compile
3005 (void output_weakrefs (void)): created from output_weakrefs
3006 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3007 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3008 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3009 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3010 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3011 created from cgraph_next_function_with_gimple_body
3012 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3013 created from cgraph_remove_edge_removal_hook
3014 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3015 created from cgraph_add_node_removal_hook
3016 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3017 created from cgraph_remove_node_removal_hook
3018 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3019 created from varpool_add_node_removal_hook
3020 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3021 created from varpool_remove_node_removal_hook
3022 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3023 created from cgraph_add_function_insertion_hook
3024 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3025 created from cgraph_remove_function_insertion_hook
3026 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3027 created from varpool_add_variable_insertion_hook
3028 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3029 created from varpool_remove_variable_insertion_hook
3030 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3031 created from cgraph_add_edge_duplication_hook
3032 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3033 created from cgraph_remove_edge_duplication_hook
3034 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3035 created from cgraph_add_node_duplication_hook
3036 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3037 created from cgraph_remove_node_duplication_hook
3038 (void call_edge_removal_hooks (cgraph_edge *e)):
3039 created from cgraph_call_edge_removal_hooks
3040 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3041 created from call_function_insertion_hooks
3042 (void call_cgraph_removal_hooks (cgraph_node *node)):
3043 created from cgraph_call_node_removal_hooks
3044 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3045 created from cgraph_node::call_duplication_hooks
3046 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3047 created from cgraph_call_edge_duplication_hooks
3048 (void call_varpool_removal_hooks (varpool_node *node)):
3049 created from varpool_call_node_removal_hooks
3050 (void call_varpool_insertion_hooks (varpool_node *node)):
3051 created from varpool_call_variable_insertion_hooks
3052 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3053 created from insert_to_assembler_name_hash
3054 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3055 created from unlink_from_assembler_name_hash
3056 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3057 created from symtab_prevail_in_asm_name_hash
3058 (void symtab_initialize_asm_name_hash (void)):
3059 created from symtab_initialize_asm_name_hash
3060 (void change_decl_assembler_name (tree decl, tree name)):
3061 created from change_decl_assembler_name
3062 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3063 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3064 created from decl_assembler_name_hash
3065 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3066 created from decl_assembler_name_equal
3067 (static hashval_t hash_node_by_assembler_name (const void *p)):
3068 created from hash_node_by_assembler_name
3069 (static int eq_assembler_name (const void *p1, const void *p2)):
3070 created from eq_assembler_name
3072 2014-08-25 Marek Polacek <polacek@redhat.com>
3074 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3076 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3078 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3079 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3080 SWI1248_AVX512BW mode iterator.
3082 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3085 * config/sh/predicates.md (general_extend_operand): Disable
3086 TRUNCATE before reload completes.
3088 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3090 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3092 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3095 * config/sh/sh.opt (musermode): Allow negative form.
3096 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3097 targets that don't support it.
3098 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3099 Document -mno-usermode option.
3101 2014-08-24 Kito Cheng <kito@0xlab.org>
3103 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3104 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3105 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3106 * doc/tm.texi: Regenerate.
3108 2014-08-24 Kito Cheng <kito@0xlab.org>
3110 * ira.c: Fix typo in comment.
3112 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3114 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3115 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3117 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3120 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3121 last_address when the current function is a thunk.
3122 (pa_asm_output_mi_thunk): When we don't have named sections or they
3123 are not being used, check that thunk can reach the stub table with a
3126 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3128 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3130 (pass_web::execute): Likewise for local "insn".
3132 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3134 * var-tracking.c (struct micro_operation_def): Strengthen field
3135 "insn" from rtx to rtx_insn *.
3136 (struct emit_note_data_def): Likewise.
3137 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3138 (vt_stack_adjustments): Likewise for local "insn".
3139 (adjust_insn): Likewise for param "insn".
3140 (val_store): Likewise.
3141 (val_resolve): Likewise.
3142 (struct count_use_info): Likewise for field "insn".
3143 (log_op_type): Likewise for param "insn".
3144 (reverse_op): Likewise.
3145 (prepare_call_arguments): Likewise.
3146 (add_with_sets): The initial param takes an insn, but we can't
3147 yet strengthen it from rtx to rtx_insn * since it's used as a
3148 cselib_record_sets_hook callback. For now rename initial param
3149 from "insn" to "uncast_insn", and introduce a local "insn" of
3150 the stronger rtx_insn * type, with a checked cast.
3151 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3153 (emit_note_insn_var_location): Likewise.
3154 (emit_notes_for_changes): Likewise.
3155 (emit_notes_for_differences): Likewise.
3156 (next_non_note_insn_var_location): Likewise for return type and
3158 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3159 (vt_initialize): Likewise for local "insn".
3160 (delete_debug_insns): Likewise for locals "insn" and "next".
3162 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3164 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3166 (mark_constant_pool): Likewise for local "insn".
3168 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3170 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3172 (dead_debug_promote_uses): Likewise.
3173 (dead_debug_insert_temp): Likewise.
3175 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3177 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3178 from const_rtx to const rtx_insn *.
3179 (store_killed_after): Likewise. Strengthen locals "last", "act"
3180 from rtx to rtx_insn *.
3181 (store_killed_before): Strengthen param "insn" from const_rtx to
3182 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3183 (find_moveable_store): Strengthen param "insn" from rtx to
3185 (compute_store_table): Likewise for local "insn".
3186 (insert_insn_start_basic_block): Likewise for param "insn" and
3187 locals "prev", "before", "insn".
3188 (insert_store): For now, add a checked cast to rtx_insn * on the
3189 result of gen_move_insn.
3190 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3192 (replace_store_insn): Likewise. For now, add a checked cast to
3193 rtx_insn * on the result of gen_move_insn.
3195 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3197 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3199 (expand_sjlj_dispatch_table): Likewise.
3201 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3203 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3204 "insn" from rtx to rtx_insn *.
3206 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3208 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3209 "insn" from rtx to rtx_insn *.
3210 (dup_block_and_redirect): Likewise for param 3 "before".
3212 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3213 from rtx to rtx_insn *.
3214 (move_insn_for_shrink_wrap): Likewise.
3215 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3216 (dup_block_and_redirect): Likewise for param "before" and local
3218 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3220 (convert_to_simple_return): Likewise for local "start".
3222 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3223 Strengthen local "insn" from rtx to rtx_insn *, for use when
3224 invoking requires_stack_frame_p.
3226 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3228 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3230 (speculate_expr): Likewise for locals "orig_insn_rtx",
3232 (eq_transformed_insns): Likewise for locals "i1", "i2".
3233 (check_for_new_jump): Likewise for return type and local "end".
3234 (find_new_jump): Likewise for return type and local "jump".
3235 (sel_split_edge): Likewise for local "jump".
3236 (sel_create_recovery_block): Likewise.
3237 (sel_redirect_edge_and_branch_force): Likewise.
3238 (sel_redirect_edge_and_branch): Likewise.
3240 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3242 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3243 "new_insn" from rtx to rtx_insn *.
3244 (create_insn_rtx_with_rhs): Likewise for return type and for local
3246 (create_insn_rtx_with_lhs): Likewise.
3247 (create_speculation_check): Likewise for local "insn_rtx".
3248 (implicit_clobber_conflict_p): Likewise for local "insn".
3249 (get_expr_cost): Likewise.
3250 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3251 (move_cond_jump): Likewise for locals "next", "prev", "link",
3252 "head", "from", "to".
3254 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3256 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3257 "next" from rtx to rtx_insn *.
3258 (find_conditional_protection): Likewise for local "next".
3259 (is_conditionally_protected): Likewise for local "insn1".
3260 (is_pfree): Likewise for locals "insn1", "insn2".
3262 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3264 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3265 from rtx to rtx_insn *.
3267 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3268 locals "insn1", "insn2" from rtx to rtx_insn *.
3269 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3270 locals "insn", "prev", "last_jump", "next_tail".
3271 (schedule_ebb): Likewise for params "head", "tail".
3272 (schedule_ebbs): Likewise for locals "tail", "head".
3274 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3275 to rtx_insn on "last_insn" in one of the invocations of
3278 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3280 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3281 "elem", "insn" from rtx to rtx_insn *.
3282 (change_spec_dep_to_hard): Likewise.
3283 (get_back_and_forw_lists): Likewise for local "con".
3284 (sd_add_dep): Likewise for locals "elem", "insn".
3285 (sd_resolve_dep): Likewise for locals "pro", "con".
3286 (sd_unresolve_dep): Likewise.
3287 (sd_delete_dep): Likewise.
3288 (chain_to_prev_insn): Likewise for local "pro".
3289 (find_inc): Likewise for locals "pro", "con".
3291 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3293 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3295 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3297 (modified_between_p): Strengthen local "insn" from rtx to
3299 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3300 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3303 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3305 * resource.c (next_insn_no_annul): Strengthen local "next" from
3307 (mark_referenced_resources): Likewise for local "insn".
3309 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3311 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3313 (find_reloads): Likewise for param 1.
3314 (subst_reloads): Likewise for sole param.
3315 (find_equiv_reg): Likwise for param 2.
3316 (regno_clobbered_p): Likwise for param 2.
3317 (reload): Likewise for param 1.
3319 * caller-save.c (save_call_clobbered_regs): Strengthen local
3320 "insn" from rtx to rtx_insn *.
3321 (insert_one_insn): Likewise for local "insn".
3323 * reload.c (this_insn): Likewise for this global.
3324 (find_reloads): Likewise for param "insn".
3325 (find_reloads_toplev): Likewise.
3326 (find_reloads_address): Likewise.
3327 (subst_reg_equivs): Likewise.
3328 (update_auto_inc_notes): Likewise.
3329 (find_reloads_address_1): Likewise.
3330 (find_reloads_subreg_address): Likewise.
3331 (subst_reloads): Likewise.
3332 (find_equiv_reg): Likewise, also for local "p".
3333 (regno_clobbered_p): Likewise for param "insn".
3335 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3337 (spill_reg_store): Likewise for the elements of this array.
3338 (remove_init_insns): Likewise for local "equiv_insn".
3339 (will_delete_init_insn_p): Likewise for param "insn".
3340 (reload): Likewise for param ""first" and local "insn".
3341 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3343 (calculate_elim_costs_all_insns): Likewise.
3344 (delete_caller_save_insns): Likewise.
3345 (spill_failure): Likewise for param "insn".
3346 (delete_dead_insn): Likewise.
3347 (set_label_offsets): Likewise.
3348 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3350 (elimination_costs_in_insn): Likewise for param "insn".
3351 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3352 when referring to an insn.
3353 (set_initial_label_offsets): Likewise.
3354 (set_offsets_for_label): Strengthen param "insn" from rtx to
3356 (init_eliminable_invariants): Likewise for param "first" and local
3358 (fixup_eh_region_note): Likewise for param "insn".
3359 (reload_as_needed): Likewise for locals "prev", "insn",
3360 "old_next", "old_prev", "next".
3361 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3363 (reload_inheritance_insn): Strengthen elements of this array from
3365 (failed_reload): Likewise for param "insn".
3366 (choose_reload_regs): Likewise for local "insn". Replace use of
3367 NULL_RTX with NULL when referring to an insn.
3368 (input_reload_insns): Strengthen elements of this array from rtx
3370 (other_input_address_reload_insns): Likewise for this global.
3371 (other_input_reload_insns): Likewise for this global.
3372 (input_address_reload_insns): Likwise for the elements of this
3374 (inpaddr_address_reload_insns): Likwise for the elements of this
3376 (output_reload_insns): Likewise for the elements of this array.
3377 (output_address_reload_insns): Likewise for the elements of this
3379 (outaddr_address_reload_insns): Likewise for the elements of this
3381 (operand_reload_insns): Likewise for this global.
3382 (other_operand_reload_insns): Likewise for this global.
3383 (other_output_reload_insns): Likewise for the elements of this
3385 (new_spill_reg_store): Likewise for the elements of this
3387 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3388 Strengthen local "where" from rtx * to rtx_insn **.
3389 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3390 from rtx to rtx_insn *.
3391 (do_input_reload): Likewise for local "insn".
3392 (do_output_reload): Likewise for local "insn".
3393 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3394 (emit_insn_if_valid_for_reload): Likewise for return type and local
3395 "last". Add checked cast to rtx_insn when returning "insn" since
3396 this has been through emit_insn.
3397 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3398 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3399 returning "insn" since it's been through
3400 emit_insn_if_valid_for_reload at this point.
3401 (delete_output_reload): Strengthen param "insn" and locals
3402 "output_reload_insn", "i2" from rtx to rtx_insn *.
3403 (delete_address_reloads): Likewise for params "dead_insn",
3404 "current_insn" and locals "prev", "next".
3405 (delete_address_reloads_1): Likewise for params "dead_insn",
3406 "current_insn" and locals "prev", "i2".
3407 (inc_for_reload): Likewise for locals "last", "add_insn".
3408 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3411 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3412 param of this duplicate of the prototype from reload.h
3414 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3416 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3418 (regstat_bb_compute_calls_crossed): Likewise.
3420 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3422 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3424 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3426 (regrename_analyze): Strengthen local "insn" from rtx to
3428 (scan_rtx_reg): Likewise for param "insn".
3429 (scan_rtx_address): Likewise.
3430 (scan_rtx): Likewise.
3431 (restore_operands): Likewise.
3432 (record_out_operands): Likewise.
3433 (build_def_use): Likewise for local "insn". Replace use of
3434 NULL_RTX with NULL when dealing with an insn.
3436 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3438 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3439 * reginfo.c (reg_scan): Likewise, also for local "insn".
3440 (reg_scan_mark_refs): Likewise for param "insn".
3441 (init_subregs_of_mode): Likewise for local "insn".
3443 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3445 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3446 "insn" from rtx to rtx_insn *.
3447 (replace_oldest_value_reg): Likewise for param "insn".
3448 (replace_oldest_value_addr): Likewise.
3449 (replace_oldest_value_mem): Likewise.
3450 (apply_debug_insn_changes): Likewise for local "last_insn".
3451 (copyprop_hardreg_forward_1): Likewise for local "insn".
3453 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3455 * reg-stack.c (next_flags_user): Strengthen return type and param
3456 "insn" from rtx to rtx_insn *.
3457 (straighten_stack): Likewise for param "insn".
3458 (check_asm_stack_operands): Likewise.
3459 (remove_regno_note): Likewise.
3460 (emit_pop_insn): Likewise for return type, param "insn", local
3462 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3463 "limit" from rtx to rtx_insn *.
3464 (swap_to_top): Likewise for param "insn".
3465 (move_for_stack_reg): Likewise.
3466 (move_nan_for_stack_reg): Likewise.
3467 (swap_rtx_condition): Likewise.
3468 (compare_for_stack_reg): Likewise.
3469 (subst_all_stack_regs_in_debug_insn): Likewise.
3470 (subst_stack_regs_pat): Likewise, and local "insn2".
3471 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3473 (subst_stack_regs): Likewise.
3474 (change_stack): Likewise.
3475 (convert_regs_1): Likewise for locals "insn", "next".
3477 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3479 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3481 (combine_set_extension): Likewise for param "curr_insn".
3482 (transform_ifelse): Likewise for param "def_insn".
3483 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3484 from vec<rtx> * to vec<rtx_insn *> *.
3485 (is_cond_copy_insn): Likewise for param "insn".
3486 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3488 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3489 local "def_insn" from rtx to rtx_insn *.
3490 (get_sub_rtx): Likewise for param "def_insn".
3491 (merge_def_and_ext): Likewise.
3492 (combine_reaching_defs): Likewise.
3493 (add_removable_extension): Likewise for param "insn".
3494 (find_removable_extensions): Likewise for local "insn".
3495 (find_and_remove_re): Likewise for locals "curr_insn" and
3496 "def_insn". Strengthen locals "reinsn_del_list" and
3497 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3499 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3501 * recog.c (split_insn): Strengthen param "insn" and locals
3502 "first", "last" from rtx to rtx_insn *.
3503 (split_all_insns): Likewise for locals "insn", "next".
3504 (split_all_insns_noflow): Likewise.
3506 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3508 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3510 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3511 (debug_rtx_find): Likewise for param 1 "x".
3513 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3514 const_rtx to const rtx_insn *. Likewise for local "insn".
3515 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3516 (debug_rtx_find): Likewise for param 1 "x".
3517 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3518 from const_rtx to const rtx_insn * within the appropriate cases of
3519 the switch statement.
3521 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3522 Strengthen local "insns" from rtx to rtx_insn * since this is
3523 passed to a call to debug_rtx_list.
3525 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3527 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3530 * function.c (stack_protect_epilogue): Add checked cast to
3531 rtx_insn for now when invoking predict_insn_def.
3533 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3535 (predict_insn_def): Likewise.
3536 (rtl_predict_edge): Likewise for local "last_insn".
3537 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3539 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3541 (bb_estimate_probability_locally): Likewise for local "last_insn".
3542 (expensive_function_p): Likewise for local "insn".
3544 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3545 local "jmp", since this is used when invoking predict_insn_def.
3547 2014-08-22 Marek Polacek <polacek@redhat.com>
3550 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3552 2014-08-22 Marek Polacek <polacek@redhat.com>
3555 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3556 a comparison in parens.
3557 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3560 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3562 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3565 * cprop.c (fis_get_condition): Likewise.
3567 * postreload.c (reload_cse_regs): Likewise for param "first".
3568 (reload_cse_simplify): Likewise for param "insn".
3569 (reload_cse_regs_1): Likewise for local "insn".
3570 (reload_cse_simplify_set): Likewise for param "insn".
3571 (reload_cse_simplify_operands): Likewise.
3572 (struct reg_use): Likewise for field "insn".
3573 (reload_combine_purge_insn_uses): Likewise for param "insn".
3574 (fixup_debug_insns): Likewise for params "from", "to" and local
3576 (try_replace_in_use): Likewise for local "use_insn".
3577 (reload_combine_recognize_const_pattern): Likewise for param
3578 "insn" and locals "add_moved_after_insn", "use_insn".
3579 (reload_combine_recognize_pattern): Likewise for param "insn" and
3581 (reload_combine): Likewise for locals "insn", "prev".
3582 (reload_combine_note_use): Likewise for param "insn".
3583 (move2add_use_add2_insn): Likewise.
3584 (move2add_use_add3_insn): Likewise.
3585 (reload_cse_move2add): Likewise, also for local "next".
3586 (move2add_note_store): Likewise for local "insn".
3588 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3590 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3592 (struct unoccr): Likewise.
3593 (struct modifies_mem): Likewise.
3594 (alloc_mem): Likewise for local "insn".
3595 (insert_expr_in_table): Likewise for param "insn".
3596 (dump_expr_hash_table_entry): Likewise for local "insn".
3597 (oprs_unchanged_p): Likewise for param "insn".
3598 (load_killed_in_block_p): Likewise for local "setter".
3599 (record_last_reg_set_info): Likewise for param "insn".
3600 (record_last_reg_set_info_regno): Likewise.
3601 (record_last_mem_set_info): Likewise.
3602 (record_last_set_info): Likewise for local "last_set_insn".
3603 (record_opr_changes): Likewise for param "insn".
3604 (hash_scan_set): Likewise.
3605 (compute_hash_table): Likewise for local "insn".
3606 (get_avail_load_store_reg): Likewise for param "insn".
3607 (eliminate_partially_redundant_load): Likewise, also for locals
3608 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3610 (eliminate_partially_redundant_loads): Likewise for local "insn".
3612 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3614 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3616 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3617 (expand_twoval_unop): Likewise for locals entry_last", "last".
3618 (expand_twoval_binop): Likewise.
3619 (expand_twoval_binop_libfunc): Likewise for local "insns".
3620 (widen_leading): Likewise for local "last".
3621 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3622 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3623 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3624 (expand_parity): Likewise for locals "last" and "seq".
3625 (expand_ffs): Likewise for local "seq". Strengthen local
3626 "nonzero_label" from rtx to rtx_code_label *.
3627 (expand_absneg_bit): Strengthen local "insns" from rtx to
3629 (expand_unop_direct): Likewise for local "last".
3630 (expand_unop): Likewise for locals "last", "insns".
3631 (expand_abs_nojump): Likewise for local "last".
3632 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3633 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3635 (expand_copysign_absneg): Strengthen local "label" from rtx to
3637 (expand_copysign_bit): Strengthen local "insns" from rtx to
3639 (struct no_conflict_data): Likewise for fields "first", "insn".
3640 (emit_libcall_block_1): Likewise for param "insns" and locals
3641 "next", "last", "insn".
3642 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3643 on "insns" when invoking emit_libcall_block_1. Ultimately we
3644 want to strengthen insns itself.
3645 (prepare_cmp_insn): Strengthen local "last" from rtx to
3647 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3648 (prepare_float_lib_cmp): Likewise for local "insns".
3649 (emit_conditional_move): Likewise for local "last".
3650 (emit_conditional_add): Likewise.
3651 (have_sub2_insn): Likewise for local "seq".
3652 (expand_float): Likewise for local "insns". Strengthen locals
3653 "label", "neglabel" from rtx to rtx_code_label *.
3654 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3655 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3656 (expand_fixed_convert): Likewise for local "insns" (to
3658 (expand_sfix_optab): Likewise for local "last".
3659 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3660 to rtx_code_label *.
3661 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3662 from rtx to rtx_insn *.
3663 (expand_atomic_fetch_op): Likewise for local "insn".
3664 (maybe_legitimize_operand_same_code): Likewise for local "last".
3665 (maybe_legitimize_operands): Likewise.
3667 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3669 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3670 "insn" from rtx to rtx_insn *.
3671 (ps_rtl_insn): Likewise for return type.
3672 (doloop_register_get): Likewise for params "head", "tail" and
3673 locals "insn", "first_insn_not_to_check".
3674 (schedule_reg_move): Likewise for local "this_insn".
3675 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3676 of gen_move_insn for now.
3677 (reset_sched_times): Strengthen local "insn" from rtx to
3679 (permute_partial_schedule): Likewise.
3680 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3681 (dump_insn_location): Likewise for param "insn".
3682 (loop_canon_p): Likewise for local "insn".
3683 (sms_schedule): Likewise.
3684 (print_partial_schedule): Likewise.
3685 (ps_has_conflicts): Likewise.
3687 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3689 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3690 "tailp" from rtx * to rtx_insn **.
3692 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3693 from rtx to rtx_insn *.
3694 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3695 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3696 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3698 * modulo-sched.c (const_iteration_count): Strengthen return type
3699 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3700 use of NULL_RTX with NULL when working with insns.
3701 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3703 (sms_schedule): Likewise.
3704 * sched-rgn.c (init_ready_list): Likewise, also for locals
3705 "src_head" and "src_next_tail".
3706 (compute_block_dependences): Likewise.
3707 (free_block_dependencies): Likewise.
3708 (debug_rgn_dependencies): Likewise.
3709 (free_rgn_deps): Likewise.
3710 (compute_priorities): Likewise.
3711 (schedule_region): Likewise.
3712 * sel-sched.c (find_ebb_boundaries): Likewise.
3714 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3715 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3717 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3719 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3720 from rtx to rtx_insn *.
3721 (new_seginfo): Likewise for param "insn".
3722 (create_pre_exit): Likewise for locals "last_insn",
3723 "before_return_copy", "return_copy".
3724 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3727 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3729 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3730 from rtx to rtx_insn *.
3731 (lra_push_insn): Likewise for 1st param.
3732 (lra_push_insn_and_update_insn_regno_info): Likewise.
3733 (lra_pop_insn): Likewise for return type.
3734 (lra_invalidate_insn_data): Likewise for 1st param.
3735 (lra_set_insn_deleted): Likewise.
3736 (lra_delete_dead_insn): Likewise.
3737 (lra_process_new_insns): Likewise for first 3 params.
3738 (lra_set_insn_recog_data): Likewise for 1st param.
3739 (lra_update_insn_recog_data): Likewise.
3740 (lra_set_used_insn_alternative): Likewise.
3741 (lra_invalidate_insn_regno_info): Likewise.
3742 (lra_update_insn_regno_info): Likewise.
3743 (lra_former_scratch_operand_p): Likewise.
3744 (lra_eliminate_regs_1): Likewise.
3745 (lra_get_insn_recog_data): Likewise.
3747 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3750 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3752 (substitute_within_insn): New.
3753 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3754 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3755 Replace call to "substitute" with call to substitute_within_insn.
3757 * lra-constraints.c (curr_insn): Strengthen from rtx to
3759 (get_equiv_with_elimination): Likewise for param "insn".
3760 (match_reload): Strengthen params "before" and "after" from rtx *
3762 (emit_spill_move): Likewise for return type. Add a checked cast
3763 to rtx_insn * on result of gen_move_insn for now.
3764 (check_and_process_move): Likewise for local "before". Replace
3765 NULL_RTX with NULL when referring to insns.
3766 (process_addr_reg): Strengthen params "before" and "after" from
3767 rtx * to rtx_insn **.
3768 (insert_move_for_subreg): Likewise.
3769 (simplify_operand_subreg): Strengthen locals "before" and "after"
3770 from rtx to rtx_insn *.
3771 (process_address_1): Strengthen params "before" and "after" from
3772 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3774 (process_address): Strengthen params "before" and "after" from
3775 rtx * to rtx_insn **.
3776 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3777 (curr_insn_transform): Strengthen locals "before" and "after"
3778 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3780 (loc_equivalence_callback): Update cast of "data", changing
3781 resulting type from rtx to rtx_insn *.
3782 (substitute_pseudo_within_insn): New.
3783 (inherit_reload_reg): Strengthen param "insn" from rtx to
3784 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3785 NULL when referring to insns. Add a checked cast to rtx_insn *
3786 when using usage_insn to invoke lra_update_insn_regno_info.
3787 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3788 likewise for locals "restore", "save". Add checked casts to
3789 rtx_insn * when using usage_insn to invoke
3790 lra_update_insn_regno_info and lra_process_new_insns. Replace
3791 NULL_RTX with NULL when referring to insns.
3792 (split_if_necessary): Strengthen param "insn" from rtx to
3794 (update_ebb_live_info): Likewise for params "head", "tail" and local
3796 (get_last_insertion_point): Likewise for return type and local "insn".
3797 (get_live_on_other_edges): Likewise for local "last".
3798 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3799 "prev_insn", "next_insn", "restore".
3800 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3801 (undo_optional_reloads): Likewise for local "insn".
3803 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3805 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3807 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3809 (spill_pseudos): Likewise for local "insn".
3810 (init_elimination): Likewise.
3811 (process_insn_for_elimination): Likewise for param "insn".
3813 * lra-lives.c (curr_insn): Likewise.;
3815 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3816 (remove_pseudos): Likewise for param "insn".
3817 (spill_pseudos): Likewise for local "insn".
3818 (lra_final_code_change): Likewise for locals "insn", "curr".
3820 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3821 (lra_set_insn_deleted): Likewise.
3822 (lra_delete_dead_insn): Likewise, and for local "prev".
3823 (new_insn_reg): Likewise for param "insn".
3824 (lra_set_insn_recog_data): Likewise.
3825 (lra_update_insn_recog_data): Likewise.
3826 (lra_set_used_insn_alternative): Likewise.
3827 (get_insn_freq): Likewise.
3828 (invalidate_insn_data_regno_info): Likewise.
3829 (lra_invalidate_insn_regno_info): Likewise.
3830 (lra_update_insn_regno_info): Likewise.
3831 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3833 (lra_push_insn_1): Strengthen param "insn" from rtx to
3835 (lra_push_insn): Likewise.
3836 (lra_push_insn_and_update_insn_regno_info): Likewise.
3837 (lra_pop_insn): Likewise for return type and local "insn".
3838 (push_insns): Likewise for params "from", "to", and local "insn".
3839 (setup_sp_offset): Likewise for params "from", "last" and locals
3841 (lra_process_new_insns): Likewise for params "insn", "before",
3842 "after" and local "last".
3843 (struct sloc): Likewise for field "insn".
3844 (lra_former_scratch_operand_p): Likewise for param "insn".
3845 (remove_scratches): Likewise for locals "insn", "last".
3846 (check_rtl): Likewise for local "insn".
3847 (add_auto_inc_notes): Likewise for param "insn".
3848 (update_inc_notes): Likewise for local "insn".
3849 (lra): Replace NULL_RTX with NULL when referring to insn.
3851 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3853 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3855 (resolve_reg_notes): Likewise.
3856 (resolve_simple_move): Likewise for return type, param "insn", and
3857 locals "insns", "minsn".
3858 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3859 (resolve_use): Likewise.
3860 (resolve_debug): Likewise.
3861 (find_decomposable_shift_zext): Likewise.
3862 (resolve_shift_zext): Likewise for return type, param "insn", and
3863 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3864 (decompose_multiword_subregs): Likewise for local "insn",
3865 "orig_insn", "decomposed_shift", "end".
3867 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3869 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3870 param "insns" from rtx to rtx_insn *.
3872 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3874 (struct iv_to_split): Likewise.
3875 (loop_exit_at_end_p): Likewise for local "insn".
3876 (split_edge_and_insert): Likewise for param "insns".
3877 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3878 and locals "seq", "jump".
3879 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3880 "branch_code"; update invocations of compare_and_jump_seq to
3881 eliminate NULL_RTX in favor of NULL.
3882 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3884 (reset_debug_uses_in_loop): Likewise.
3885 (analyze_insn_to_expand_var): Likewise for param "insn".
3886 (analyze_iv_to_split_insn): Likewise.
3887 (analyze_insns_in_loop): Likewise for local "insn".
3888 (insert_base_initialization): Likewise for param
3889 "insn" and local "seq".
3890 (split_iv): Likewise for param "insn" and local "seq".
3891 (expand_var_during_unrolling): Likewise for param "insn".
3892 (insert_var_expansion_initialization): Likewise for local "seq".
3893 (combine_var_copies_in_loop_exit): Likewise.
3894 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3896 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3897 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3900 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3902 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3904 (iv_analyze_result): Likewise.
3905 (iv_analyze_expr): Likewise.
3908 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3909 local "def_insn" from rtx to rtx_insn *.
3910 (get_biv_step_1): Likewise for local "insn".
3911 (iv_analyze_expr): Likewise for param "insn".
3912 (iv_analyze_def): Likewise for local "insn".
3913 (iv_analyze_op): Likewise for param "insn".
3914 (iv_analyze): Likewise.
3915 (iv_analyze_result): Likewise.
3917 (suitable_set_for_replacement): Likewise.
3918 (simplify_using_initial_values): Likewise for local "insn".
3919 (iv_number_of_iterations): Likewise for param "insn".
3920 (check_simple_exit): Add checked cast to rtx_insn when invoking
3921 iv_number_of_iterations for now (until get_condition is
3924 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3925 "insn" from rtx to rtx_insn *.
3926 (analyze_insns_in_loop): Likewise for local "insn".
3928 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3930 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3932 (struct invariant): Likewise.
3933 (hash_invariant_expr_1): Likewise for param "insn".
3934 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3935 (find_exits): Likewise for local "insn".
3936 (create_new_invariant): Likewise for param "insn".
3937 (check_dependencies): Likewise.
3938 (find_invariant_insn): Likewise.
3939 (record_uses): Likewise.
3940 (find_invariants_insn): Likewise.
3941 (find_invariants_bb): Likewise for local "insn".
3942 (get_pressure_class_and_nregs): Likewise for param "insn".
3943 (calculate_loop_reg_pressure): Likewise for local "insn".
3945 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3947 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3949 (add_test): Likewise for locals "seq", "jump".
3950 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3952 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3954 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3956 (rebuild_jump_labels_chain): Likewise for param "chain".
3958 * cfgexpand.c (pass_expand::execute): Add checked cast to
3959 rtx_insn * when calling rebuild_jump_labels_chain in region where
3960 we know e->insns.r is non-NULL.
3962 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3964 (rebuild_jump_labels): Likewise.
3965 (rebuild_jump_labels_chain): Likewise for param "chain".
3966 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3967 (init_label_info): Likewise for param "f".
3968 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3969 "prev_nonjump_insn".
3970 (mark_all_labels): Likewise for param "f" and locals "insn",
3971 "prev_nonjump_insn".
3973 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3975 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3976 from rtx to rtx_insn *insn.
3977 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3978 (ira_add_allocno_copy): Likewise.
3979 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3981 (ira_create_copy): Likewise.
3982 (ira_add_allocno_copy): Likewise.
3983 (create_bb_allocnos): Likewise for local "insn".
3984 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3985 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3986 process_regs_for_copy for rtx_insn * param.
3987 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3988 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3989 process_regs_for_copy for rtx_insn * param.
3990 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3991 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3992 (record_operand_costs): Likewise.
3993 (scan_one_insn): Likewise for return type, and for param "insn".
3994 (process_bb_for_costs): Likewise for local "insn".
3995 (process_bb_node_for_hard_reg_moves): Likewise.
3996 * ira-emit.c (struct move): Likewise for field "insn".
3997 (create_move): Eliminate use of NULL_RTX when dealing with an
3999 (emit_move_list): Strengthen return type and locals "result",
4000 "insn" from rtx to rtx_insn *insn.
4001 (emit_moves): Likewise for locals "insns", "tmp".
4002 (ira_emit): Likewise for local "insn".
4003 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4005 (find_call_crossed_cheap_reg): Likewise.
4006 (process_bb_node_lives): Likewise for local "insn".
4007 * ira.c (decrease_live_ranges_number): Likewise.
4008 (compute_regs_asm_clobbered): Likewise.
4009 (build_insn_chain): Likewise.
4010 (find_moveable_pseudos): Likewise, also locals "def_insn",
4011 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4012 to rtx_insn **. Add a checked cast when assigning from
4013 "closest_use" into closest_uses array in a region where we know
4014 it's a non-NULL insn.
4015 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4017 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4018 "last_interesting_insn", "uin".
4019 (move_unallocated_pseudos): Likewise for locals "def_insn",
4020 "move_insn", "newinsn".
4022 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4024 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4025 Strengthen locals "done_label", "do_error" from rtx to
4027 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4028 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4030 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4031 "done_label", "do_error" to rtx_code_label * and local "last" to
4033 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4034 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4035 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4036 "after_lopart_neg", "do_overflow", "hipart_different" to
4037 rtx_code_label * and local "last" to rtx_insn *.
4039 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4041 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4042 "insn" and "move_insn" from rtx to rtx_insn *.
4044 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4046 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4048 (cheap_bb_rtx_cost_p): Likewise.
4049 (first_active_insn): Likewise for return type and local "insn".
4050 (last_active_insn): Likewise for return type and locals "insn",
4052 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4054 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4056 (noce_try_move): Likewise for local "seq".
4057 (noce_try_store_flag): Likewise.
4058 (noce_try_store_flag_constants): Likewise.
4059 (noce_try_addcc): Likewise.
4060 (noce_try_store_flag_mask): Likewise.
4061 (noce_try_cmove): Likewise.
4062 (noce_try_minmax): Likewise.
4063 (noce_try_abs): Likewise.
4064 (noce_try_sign_mask): Likewise.
4065 (noce_try_bitop): Likewise.
4066 (noce_can_store_speculate_p): Likewise for local "insn".
4067 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4069 (check_cond_move_block): Likewise for local "insn".
4070 (cond_move_convert_if_block): Likewise.
4071 (cond_move_process_if_block): Likewise for locals "seq",
4073 (noce_find_if_block): Likewise for local "jump".
4074 (merge_if_block): Likewise for local "last".
4075 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4076 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4077 (block_has_only_trap): Likewise for return type and local "trap".
4078 (find_if_case_1): Likewise for local "jump".
4079 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4082 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4084 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4085 "last_insn", "loop_end" from rtx to rtx_insn *.
4087 * hw-doloop.c (scan_loop): Likewise for local "insn".
4088 (discover_loop): Likewise for param "tail_insn".
4089 (discover_loops): Likewise for local "tail".
4091 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4092 cast to rtx_insn * when assigning from an rtx local to a
4093 hwloop_info's "last_insn" field.
4095 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4097 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4098 (add_delay_dependencies): Strengthen local "pro" from rtx to
4100 (recompute_todo_spec): Likewise.
4101 (dep_cost_1): Likewise for locals "insn", "used".
4102 (schedule_insn): Likewise for local "dbg".
4103 (schedule_insn): Likewise for locals "pro", "next".
4104 (unschedule_insns_until): Likewise for local "con".
4105 (restore_pattern): Likewise for local "next".
4106 (estimate_insn_tick): Likewise for local "pro".
4107 (resolve_dependencies): Likewise for local "next".
4108 (fix_inter_tick): Likewise.
4109 (fix_tick_ready): Likewise for local "pro".
4110 (add_to_speculative_block): Likewise for locals "check", "twin",
4112 (sched_extend_bb): Likewise for locals "end", "insn".
4113 (init_before_recovery): Likewise for local "x".
4114 (sched_create_recovery_block): Likewise for local "barrier".
4115 (create_check_block_twin): Likewise for local "pro".
4116 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4118 (unlink_bb_notes): Update for change to type of bb_header.
4119 Strengthen locals "prev", "label", "note", "next" from rtx to
4121 (clear_priorities): Likewise for local "pro".
4123 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4125 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4127 (test_insn): Likewise for this global.
4128 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4130 (oprs_anticipatable_p): Likewise.
4131 (oprs_available_p): Likewise.
4132 (insert_expr_in_table): Strengthen param "insn" from rtx to
4134 (hash_scan_set): Likewise.
4135 (hash_scan_clobber): Likewise.
4136 (hash_scan_call): Likewise.
4137 (hash_scan_insn): Likewise.
4138 (compute_hash_table_work): Likewise for local "insn".
4139 (process_insert_insn): Likewise for return type and local "pat".
4140 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4141 "pat", "pat_end", "maybe_cc0_setter".
4142 (pre_edge_insert): Likewise for local "insn".
4143 (pre_insert_copy_insn): Likewise for param "insn".
4144 (pre_insert_copies): Likewise for local "insn".
4145 (struct set_data): Likewise for field "insn".
4146 (single_set_gcse): Likewise for param "insn".
4147 (gcse_emit_move_after): Likewise.
4148 (pre_delete): Likewise for local "insn".
4149 (update_bb_reg_pressure): Likewise for param "from" and local
4151 (should_hoist_expr_to_dom): Likewise for param "from".
4152 (hoist_code): Likewise for local "insn".
4153 (get_pressure_class_and_nregs): Likewise for param "insn".
4154 (calculate_bb_reg_pressure): Likewise for local "insn".
4155 (compute_ld_motion_mems): Likewise.
4157 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4159 * genpeep.c (main): Rename param back from "uncast_ins1" to
4160 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4163 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4165 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4168 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4169 documentation to state it is only for VSX operations.
4171 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4172 constraint only active if VSX.
4174 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4175 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4178 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4180 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4181 Strengthen local "insn" from rtx to rtx_insn *.
4182 (use_killed_between): Likewise for param "target_insn".
4183 (all_uses_available_at): Likewise for param "target_insn" and
4185 (update_df_init): Likewise for params "def_insn", "insn".
4186 (update_df): Likewise for param "insn".
4187 (try_fwprop_subst): Likewise for param "def_insn" and local
4189 (free_load_extend): Likewise for param "insn".
4190 (forward_propagate_subreg): Likewise for param "def_insn" and
4192 (forward_propagate_asm): Likewise for param "def_insn" and local
4194 (forward_propagate_and_simplify): Likewise for param "def_insn"
4195 and local "use_insn".
4196 (forward_propagate_into): Likewise for locals "def_insn" and
4199 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4201 * function.c (emit_initial_value_sets): Strengthen local "seq"
4202 from rtx to rtx_insn *.
4203 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4205 (instantiate_virtual_regs): Likewise for local "insn".
4206 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4207 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4208 (expand_function_end): Likewise for locals "insn" and "seq".
4209 (epilogue_done): Likewise for local "insn".
4210 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4212 (reposition_prologue_and_epilogue_notes): Likewise for locals
4213 "insn", "last", "note", "first".
4214 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4215 (pass_match_asm_constraints::execute): Likewise for local "insn".
4217 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4219 * output.h (final_scan_insn): Strengthen return type from rtx to
4221 (final_forward_branch_p): Likewise for param.
4222 (current_output_insn): Likewise for this global.
4224 * final.c (rtx debug_insn): Likewise for this variable.
4225 (current_output_insn): Likewise.
4226 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4227 adding "insn" back in as an rtx_insn * with a checked cast, so
4228 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4230 (compute_alignments): Strengthen local "label" from rtx to
4232 (shorten_branches): Rename param from "first" to "uncast_first",
4233 introducing a new local rtx_insn * "first" using a checked cast to
4234 effectively strengthen "first" from rtx to rtx_insn * without
4235 affecting the type signature. Strengthen locals "insn", "seq",
4236 "next", "label" from rtx to rtx_insn *.
4237 (change_scope): Strengthen param "orig_insn" and local "insn" from
4239 (final_start_function): 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 local "insn" from rtx to
4244 (dump_basic_block_info): Strengthen param "insn" from rtx to
4246 (final): 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 locals "insn", "next"
4250 from rtx to rtx_insn *.
4251 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4253 (call_from_call_insn): Strengthen param "insn" from rtx to
4255 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4256 introducing a new local rtx_insn * "insn" using a checked cast to
4257 effectively strengthen "insn" from rtx to rtx_insn * without
4258 affecting the type signature. Strengthen return type and locals
4259 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4260 now-redundant checked cast to rtx_insn * from both invocations of
4261 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4262 introducing a local "call_insn" for use when invoking
4263 call_from_call_insn.
4264 (notice_source_line): Strengthen param "insn" from rtx to
4266 (leaf_function_p): Likewise for local "insn".
4267 (final_forward_branch_p): Likewise.
4268 (leaf_renumber_regs): Likewise for param "first".
4269 (rest_of_clean_state): Likewise for locals "insn" and "next".
4270 (self_recursive_call_p): Likewise for param "insn".
4271 (collect_fn_hard_reg_usage): Likewise for local "insn".
4272 (get_call_fndecl): Likewise for param "insn".
4273 (get_call_cgraph_rtl_info): Likewise.
4274 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4275 introducing a new local rtx_insn * "insn" using a checked cast to
4276 effectively strengthen "insn" from rtx to rtx_insn * without
4277 affecting the type signature.
4279 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4280 cast when assigning from param "insn" to current_output_insn.
4281 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4282 so that we can assign it back to current_output_insn.
4284 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4286 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4287 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4288 atmxt540s and atmxt540sreva devices.
4289 * config/avr/avr-tables.opt: Regenerate.
4290 * config/avr/t-multilib: Regenerate.
4291 * doc/avr-mmcu.texi: Regenerate.
4293 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4295 * expr.c (convert_move): Strengthen local "insns" from rtx to
4297 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4298 "top_label" from rtx to rtx_code_label *.
4299 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4301 (emit_single_push_insn): Likewise for locals "prev", "last".
4302 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4303 to rtx_code_label *.
4304 (store_constructor): Likewise for locals "loop_start", "loop_end".
4305 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4307 (expand_expr_real_2): Likewise.
4308 (expand_expr_real_1): Strengthen local "label" from rtx to
4311 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4313 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4314 from rtx to rtx_insn *.
4315 (store_bit_field_1): Likewise.
4316 (extract_bit_field_1): Likewise.
4317 (expand_mult_const): Likewise for local "insns".
4318 (expmed_mult_highpart): Strengthen local "label" from rtx to
4320 (expand_smod_pow2): Likewise.
4321 (expand_sdiv_pow2): Likewise.
4322 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4323 rtx_insn *. Strengthen locals "label", "label1", "label2",
4324 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4325 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4326 (emit_store_flag): Likewise.
4327 (emit_store_flag_force): Strengthen local "label" from rtx to
4329 (do_cmp_and_jump): Likewise for param "label".
4331 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4333 * explow.c (force_reg): Strengthen local "insn" from rtx to
4335 (adjust_stack_1): Likewise.
4336 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4337 "final_label", "available_label", "space_available" from rtx to
4339 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4340 (anti_adjust_stack_and_probe): Likewise.
4342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4344 * except.h (sjlj_emit_function_exit_after): Strengthen param
4345 "after" from rtx to rtx_insn *. This is only called with
4346 result of get_last_insn (in function.c) so type-change should be
4349 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4350 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4351 to rtx_insn *. These fields are only used from except.c so this
4352 type-change should be self-contained to this patch.
4354 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4355 local "last" from rtx to rtx_insn *.
4356 (dw2_build_landing_pads): Likewise for local "seq".
4357 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4358 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4359 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4361 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4363 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4364 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4365 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4366 referring to an insn. Strengthen local "dispatch_label" from
4367 rtx to rtx_code_label *.
4368 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4370 (expand_eh_return): Strengthen local "around_label" from
4371 rtx to rtx_code_label *.
4372 (convert_to_eh_region_ranges): Strengthen locals "iter",
4373 "last_action_insn", "first_no_action_insn",
4374 "first_no_action_insn_before_switch",
4375 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4377 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4379 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4380 from rtx to rtx_insn *.
4381 (cached_next_real_insn): Likewise.
4382 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4384 (dwarf2out_var_location): Strengthen locals "next_real",
4385 "next_note", "expected_next_loc_note", "last_start", "insn" from
4388 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4390 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4391 from rtx to rtx_insn *.
4392 (create_pseudo_cfg): Likewise for local "insn".
4394 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4396 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4397 from rtx to rtx_insn *.
4398 (df_bb_regno_last_def_find): Likewise.
4400 * df-problems.c (df_rd_bb_local_compute): Likewise.
4401 (df_lr_bb_local_compute): Likewise.
4402 (df_live_bb_local_compute): Likewise.
4403 (df_chain_remove_problem): Likewise.
4404 (df_chain_create_bb): Likewise.
4405 (df_word_lr_bb_local_compute): Likewise.
4406 (df_remove_dead_eq_notes): Likewise for param "insn".
4407 (df_note_bb_compute): Likewise for local "insn".
4408 (simulate_backwards_to_point): Likewise.
4409 (df_md_bb_local_compute): Likewise.
4411 * df-scan.c (df_scan_free_bb_info): Likewise.
4412 (df_scan_start_dump): Likewise.
4413 (df_scan_start_block): Likewise.
4414 (df_install_ref_incremental): Likewise for local "insn".
4415 (df_insn_rescan_all): Likewise.
4416 (df_reorganize_refs_by_reg_by_insn): Likewise.
4417 (df_reorganize_refs_by_insn_bb): Likewise.
4418 (df_recompute_luids): Likewise.
4419 (df_bb_refs_record): Likewise.
4420 (df_update_entry_exit_and_calls): Likewise.
4421 (df_bb_verify): Likewise.
4423 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4425 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4426 "first_note" from rtx to rtx_insn *.
4427 (get_node_of_insn): Likewise for param 2 "insn".
4428 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4430 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4432 (mem_write_insn_p): Likewise.
4433 (mem_access_insn_p): Likewise.
4434 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4435 (def_has_ccmode_p): Likewise for param "insn".
4436 (add_cross_iteration_register_deps): Likewise for locals
4437 "def_insn" and "use_insn".
4438 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4439 (build_intra_loop_deps): Likewise for local "src_insn".
4440 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4442 (get_node_of_insn): Likewise for param "insn".
4444 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4446 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4447 (deletable_insn_p): Strengthen param "insn" from rtx to
4448 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4449 find_call_stack_args, since this is guarded by CALL_P (insn).
4450 (marked_insn_p): Strengthen param "insn" from rtx to
4452 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4453 invoking find_call_stack_args, since this is guarded by
4455 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4456 rtx_insn *; we know this is an insn since this was called by
4458 (mark_nonreg_stores_2): Likewise.
4459 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4461 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4462 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4464 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4465 from rtx to rtx_insn *.
4466 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4468 (delete_unmarked_insns): Likewise for locals "insn", "next".
4469 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4470 (mark_reg_dependencies): Likewise for param "insn".
4471 (rest_of_handle_ud_dce): Likewise for local "insn".
4472 (word_dce_process_block): Likewise.
4473 (dce_process_block): Likewise.
4475 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4477 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4478 from rtx to rtx_insn *.
4479 (struct change_cc_mode_args): Likewise for field "insn".
4480 (this_insn): Strengthen from rtx to rtx_insn *.
4481 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4483 (validate_canon_reg): Strengthen param "insn" from rtx to
4485 (canon_reg): Likewise.
4486 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4488 (record_jump_equiv): Strengthen param "insn" from rtx to
4490 (try_back_substitute_reg): Likewise, also for locals "prev",
4492 (find_sets_in_insn): Likewise for param "insn".
4493 (canonicalize_insn): Likewise.
4494 (cse_insn): Likewise. Add a checked cast.
4495 (invalidate_from_clobbers): Likewise for param "insn".
4496 (invalidate_from_sets_and_clobbers): Likewise.
4497 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4499 (cse_prescan_path): Strengthen local "insn" from rtx to
4501 (cse_extended_basic_block): Likewise for locals "insn" and
4503 (cse_main): Likewise for param "f".
4504 (check_for_label_ref): Likewise for local "insn".
4505 (set_live_p): Likewise for second param ("insn").
4506 (insn_live_p): Likewise for first param ("insn") and for local
4508 (cse_change_cc_mode_insn): Likewise for first param "insn".
4509 (cse_change_cc_mode_insns): Likewise for first and second params
4511 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4513 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4516 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4517 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4518 Anna Tikhonova <anna.tikhonova@intel.com>
4519 Ilya Tocar <ilya.tocar@intel.com>
4520 Andrey Turetskiy <andrey.turetskiy@intel.com>
4521 Ilya Verbin <ilya.verbin@intel.com>
4522 Kirill Yukhin <kirill.yukhin@intel.com>
4523 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4525 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4527 * config/i386/sse.md
4528 (define_mode_iterator VI248_AVX2): Delete.
4529 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4530 (define_mode_iterator VI48_AVX2): Ditto.
4531 (define_insn <shift_insn><mode>3): Delete.
4532 (define_insn "<shift_insn><mode>3<mask_name>" with
4533 VI2_AVX2_AVX512BW): New.
4534 (define_insn "<shift_insn><mode>3<mask_name>" with
4537 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4538 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4539 Anna Tikhonova <anna.tikhonova@intel.com>
4540 Ilya Tocar <ilya.tocar@intel.com>
4541 Andrey Turetskiy <andrey.turetskiy@intel.com>
4542 Ilya Verbin <ilya.verbin@intel.com>
4543 Kirill Yukhin <kirill.yukhin@intel.com>
4544 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4546 * config/i386/sse.md
4547 (define_mode_iterator VI4F_BRCST32x2): New.
4548 (define_mode_attr 64x2_mode): Ditto.
4549 (define_mode_attr 32x2mode): Ditto.
4550 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4551 with VI4F_BRCST32x2): Ditto.
4552 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4553 with V16FI mode iterator): Ditto.
4554 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4556 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4557 with VI8F_BRCST64x2): Ditto.
4559 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4560 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4561 Anna Tikhonova <anna.tikhonova@intel.com>
4562 Ilya Tocar <ilya.tocar@intel.com>
4563 Andrey Turetskiy <andrey.turetskiy@intel.com>
4564 Ilya Verbin <ilya.verbin@intel.com>
4565 Kirill Yukhin <kirill.yukhin@intel.com>
4566 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4568 * config/i386/sse.md
4569 (define_mode_iterator VI8_AVX512VL): New.
4570 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4572 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4574 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4575 (define_mode_iterator V48_AVX512VL): New.
4576 (define_mode_iterator V12_AVX512VL): Ditto.
4577 (define_insn <avx512>_load<mode>_mask): Split into two similar
4578 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4579 Refactor output template.
4580 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4582 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4584 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4586 (reg_available_p): Likewise for param "insn".
4587 (insert_set_in_table): Likewise.
4588 (hash_scan_set): Likewise.
4589 (hash_scan_insn): Likewise.
4590 (make_set_regs_unavailable): Likewise.
4591 (compute_hash_table_work): Likewise for local "insn".
4592 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4594 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4595 (try_replace_reg): Likewise.
4596 (find_avail_set): Likewise.
4597 (cprop_jump): Likewise for params "setcc", "jump".
4598 (constprop_register): Likewise for param "insn".
4599 (cprop_insn): Likewise.
4600 (do_local_cprop): Likewise.
4601 (local_cprop_pass): Likewise for local "insn".
4602 (bypass_block): Likewise for params "setcc" and "jump".
4603 (bypass_conditional_jumps): Likewise for locals "setcc" and
4605 (one_cprop_pass): Likewise for local "insn".
4607 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4609 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4610 from rtx to rtx_insn *.
4611 (struct comparison): Likewise, also for field "prev_clobber".
4612 (conforming_compare): Likewise for param "insn".
4613 (arithmetic_flags_clobber_p): Likewise.
4614 (find_flags_uses_in_insn): Likewise.
4615 (find_comparison_dom_walker::before_dom_children): Likewise for
4616 locals "insn", "next", "last_clobber".
4617 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4619 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4621 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4622 "insn" from rtx to rtx_insn *.
4623 (single_set_for_csa): Likewise for param "insn".
4624 (record_one_stack_ref): Likewise.
4625 (try_apply_stack_adjustment): Likewise.
4626 (struct record_stack_refs_data): Likewise for field "insn".
4627 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4628 (prev_active_insn_bb): Likewise for return type and param "insn".
4629 (next_active_insn_bb): Likewise.
4630 (force_move_args_size_note): Likewise for params "prev" and "last"
4631 and locals "test", "next_candidate", "prev_candidate".
4632 (combine_stack_adjustments_for_block): Strengthen locals
4633 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4636 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4638 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4639 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4640 (subst_insn): Likewise for this variable.
4641 (added_links_insn): Likewise.
4642 (struct insn_link): Likewise for field "insn".
4643 (alloc_insn_link): Likewise for param "insn".
4644 (struct undobuf): Likewise for field "other_insn".
4645 (find_single_use): Likewise for param "insn" and local "next".
4646 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4647 (delete_noop_moves): Likewise for locals "insn", "next".
4648 (create_log_links): Likewise for locals "insn", "use_insn".
4649 Strengthen local "next_use" from rtx * to rtx_insn **.
4650 (insn_a_feeds_b): Likewise for params "a", "b".
4651 (combine_instructions): Likewise for param "f" and locals "insn",
4652 "next", "prev", "first", "last_combined_insn", "link", "link1",
4653 "temp". Replace use of NULL_RTX with NULL when referring to
4655 (setup_incoming_promotions): Likewise for param "first"
4656 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4657 (can_combine_p): Likewise for params "insn", "i3", "pred",
4658 "pred2", "succ", "succ2" and for local "p".
4659 (combinable_i3pat): Likewise for param "i3".
4660 (cant_combine_insn_p): Likewise for param "insn".
4661 (likely_spilled_retval_p): Likewise.
4662 (adjust_for_new_dest): Likewise.
4663 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4664 (try_combine): Likewise for return type and for params "i3", "i2",
4665 "i1", "i0", "last_combined_insn", and for locals "insn",
4666 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4667 "i0_insn". Eliminate local "tem" in favor of new locals
4668 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4669 checked cast for now to rtx_insn * on the return type of
4670 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4672 (find_split_point): Strengthen param "insn" from rtx to
4674 (simplify_set): Likewise for local "other_insn".
4675 (recog_for_combine): Likewise for param "insn".
4676 (record_value_for_reg): Likewise.
4677 (record_dead_and_set_regs_1): Likewise for local
4679 (record_dead_and_set_regs): Likewise for param "insn".
4680 (record_promoted_value): Likewise.
4681 (check_promoted_subreg): Likewise.
4682 (get_last_value_validate): Likewise.
4683 (reg_dead_at_p): Likewise.
4684 (move_deaths): Likewise for param "to_insn".
4685 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4686 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4687 in favor of new locals "tem_note" and "tem_insn", the latter being
4689 (distribute_links): Strengthen locals "place", "insn" from rtx to
4692 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4694 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4696 (can_delete_label_p): Require a const rtx_code_label * rather than
4698 (delete_insn): Add checked cast to rtx_code_label * when we know
4699 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4701 (delete_insn_chain): Strengthen locals "prev" and "current" from
4702 rtx to rtx_insn *. Add a checked cast when assigning from
4703 "finish" (strengthening the params will come later). Add a
4704 checked cast to rtx_note * in region where we know
4706 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4708 (compute_bb_for_insn): Likewise.
4709 (free_bb_for_insn): Likewise for local "insn".
4710 (compute_bb_for_insn): Likewise.
4711 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4712 local "insn" from rtx to rtx_insn *
4713 (flow_active_insn_p): Require a const rtx_insn * rather than a
4715 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4717 (can_fallthru): Likewise for locals "insn" and "insn2".
4718 (bb_note): Likewise for local "note".
4719 (first_insn_after_basic_block_note): Likewise for local "note" and
4721 (rtl_split_block): Likewise for locals "insn" and "next".
4722 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4724 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4725 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4727 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4728 them), "kill_from", "barrier", "new_insn".
4729 (patch_jump_insn): Likewise for params "insn", "old_label".
4730 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4731 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4732 "old_label", "new_label".
4733 (rtl_tidy_fallthru_edge): Likewise for local "q".
4734 (rtl_split_edge): Likewise for locals "before", "last".
4735 (commit_one_edge_insertion): Likewise for locals "before",
4736 "after", "insns", "tmp", "last", adding a checked cast where
4737 currently necessary.
4738 (commit_edge_insertions): Likewise.
4739 (rtl_dump_bb): Likewise for locals "insn", "last".
4740 (print_rtl_with_bb): Likewise for local "x".
4741 (rtl_verify_bb_insns): Likewise for local "x".
4742 (rtl_verify_bb_pointers): Likewise for local "insn".
4743 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4745 (rtl_verify_fallthru): Likewise for local "insn".
4746 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4747 (purge_dead_edges): Likewise for local "insn".
4748 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4749 (skip_insns_after_block): Likewise for return type and for locals
4750 "insn", "last_insn", "next_head", "prev".
4751 (record_effective_endpoints): Likewise for locals "next_insn",
4753 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4754 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4755 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4756 (duplicate_insn_chain): For now, add checked cast from rtx to
4757 rtx_insn * when returning insn.
4758 (cfg_layout_duplicate_bb): Likewise for local "insn".
4759 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4761 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4762 (rtl_block_empty_p): Likewise.
4763 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4764 "split_point", "last".
4765 (rtl_block_ends_with_call_p): Likewise for local "insn".
4766 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4768 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4769 "split_at_insn" from rtx to rtx_insn *.
4770 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4771 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4772 to const rtx_insn *.
4773 (rtl_account_profile_record): Likewise.
4775 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4777 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4779 (average_num_loop_insns): Likewise.
4780 (init_set_costs): Likewise for local "seq".
4781 (seq_cost): Likewise for param "seq", from const_rtx to const
4784 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4786 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4789 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4791 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4792 "f1" and "f2" from rtx * to rtx_insn **.
4793 (flow_find_head_matching_sequence): Likewise.
4795 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4796 "cbranch_insn" from rtx to rtx_insn *.
4797 (thread_jump): Likewise for local "insn".
4798 (try_forward_edges): Likewise for local "last".
4799 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4800 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4802 (can_replace_by): Likewise for params "i1", "i2".
4803 (old_insns_match_p): Likewise.
4804 (merge_notes): Likewise.
4805 (walk_to_nondebug_insn): Likewise for param "i1".
4806 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4807 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4808 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4809 (flow_find_head_matching_sequence): Strengthen params "f1" and
4810 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4811 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4813 (outgoing_edges_match): Likewise for locals "last1", "last2".
4814 (try_crossjump_to_edge): Likewise for local "insn".
4815 Replace call to for_each_rtx with for_each_rtx_in_insn.
4817 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4818 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4819 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4820 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4821 (try_optimize_cfg): Strengthen local "last" from rtx to
4823 (delete_dead_jumptables): Likewise for locals "insn", "next",
4826 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4827 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4828 "rtx else_first_tail", to reflect the basic-block.h changes above.
4830 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4832 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4834 (purge_dead_tablejump_edges): Likewise.
4835 (find_bb_boundaries): Likewise for locals "insn", "end",
4836 "flow_transfer_insn".
4838 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4840 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4841 "ins" and "prev" from rtx to rtx_insn *.
4843 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4845 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4847 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4848 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4850 (load_register_parameters): Likewise for local "before_arg".
4851 (check_sibcall_argument_overlap): Likewise for param "insn".
4852 (expand_call): Likewise for locals "normal_call_insns",
4853 "tail_call_insns", "insns", "before_call", "after_args",
4854 "before_arg", "last", "prev". Strengthen one of the "last" from
4855 rtx to rtx_call_insn *.
4856 (fixup_tail_calls): Strengthen local "insn" from rtx to
4858 (emit_library_call_value_1): Likewise for locals "before_call" and
4861 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4863 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4864 and "last" from rtx to rtx_insn *.
4865 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4866 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4868 (expand_errno_check): Strengthen local "lab" from rtx to
4870 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4872 (expand_builtin_mathfn_2): Likewise.
4873 (expand_builtin_mathfn_ternary): Likewise.
4874 (expand_builtin_mathfn_3): Likewise.
4875 (expand_builtin_interclass_mathfn): Likewise for local "last".
4876 (expand_builtin_int_roundingfn): Likewise for local "insns".
4877 (expand_builtin_int_roundingfn_2): Likewise.
4878 (expand_builtin_strlen): Likewise for local "before_strlen".
4879 (expand_builtin_strncmp): Likewise for local "seq".
4880 (expand_builtin_signbit): Likewise for local "last".
4881 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4882 from rtx to rtx_code_label *.
4883 (expand_stack_restore): Strengthen local "prev" from rtx to
4886 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4888 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4890 (struct btr_def_s): Likewise.
4891 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4893 (add_btr_def): Likewise.
4894 (new_btr_user): Likewise.
4895 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4897 (link_btr_uses): Likewise.
4898 (move_btr_def): Likewise for locals "insp", "old_insn",
4899 "new_insn". Add checked cast to rtx_insn * for now on result of
4901 (can_move_up): Strengthen param "insn" from const_rtx to
4904 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4906 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4908 (get_uncond_jump_length): Likewise for locals "label", "jump".
4909 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4911 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4912 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4913 (find_jump_block): Likewise for local "insn".
4914 (fix_crossing_conditional_branches): Likewise for locals
4915 "old_jump", "new_jump".
4916 (fix_crossing_unconditional_branches): Likewise for locals
4917 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4918 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4920 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4922 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4924 (struct mem_insn): Likewise for field "insn".
4925 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4926 (reg_next_inc_use): Likewise.
4927 (reg_next_def): Likewise.
4928 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4929 from rtx to rtx_insn *.
4930 (move_insn_before): Likewise for param "next_insn" and local "insns".
4931 (attempt_change): Likewise for local "mov_insn".
4932 (try_merge): Likewise for param "last_insn".
4933 (get_next_ref): Likewise for return type and local "insn".
4934 Strengthen param "next_array" from rtx * to rtx_insn **.
4935 (parse_add_or_inc): Strengthen param "insn" from rtx to
4937 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4939 (merge_in_block): Likewise for locals "insn", "curr",
4941 (pass_inc_dec::execute): Update allocations of the arrays to
4942 reflect the stronger types.
4944 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4946 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4947 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4948 from rtx to rtx_code_label *.
4950 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4952 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4955 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4957 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4958 generated a warning and prevented bootstrapping the compiler.
4960 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4962 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4965 * jump.c (delete_related_insns): Likewise, also for locals "next"
4968 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4970 * genautomata.c (output_internal_insn_latency_func): When writing
4971 the function "internal_insn_latency" to insn-automata.c,
4972 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4973 allowing the optional guard function of (define_bypass) clauses to
4974 expect a pair of rtx_insn *, rather than a pair of rtx.
4975 (output_insn_latency_func): When writing the function
4976 "insn_latency", add an "uncast_" prefix to params "insn" and
4977 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4978 using checked casts from the params, thus enabling the above
4979 change to the generated "internal_insn_latency" function.
4981 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4983 PR tree-optimization/62091
4984 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4985 handle correctly arrays.
4986 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4988 (record_known_type): Walk into inner type.
4989 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4990 condition on no type changes.
4992 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4994 * genattrtab.c (write_attr_get): Within the generated get_attr_
4995 functions, rename param "insn" to "uncast_insn" and reintroduce
4996 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4997 is an rtx_insn * within insn-attrtab.c
4999 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5001 * output.h (peephole): Strengthen return type from rtx to
5003 * rtl.h (delete_for_peephole): Likewise for both params.
5004 * genpeep.c (main): In generated "peephole" function, strengthen
5005 return type and local "insn" from rtx to rtx_insn *. For now,
5006 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5007 rtx_insn *, with a checked cast.
5008 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5009 locals "insn", "next", "prev" from rtx to rtx_insn *.
5011 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5013 PR tree-optimization/62112
5014 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5015 * gimple-iterator.h (gsi_replace): Return bool.
5016 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5017 moved from ref_may_alias_global_p.
5018 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5020 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5021 (stmt_kills_ref_p_1): Rename...
5022 (stmt_kills_ref_p): ... to this.
5023 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5024 stmt_kills_ref_p): Declare.
5025 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5026 Move the self-assignment case...
5027 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5029 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5031 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5033 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5034 "after". For now, don't strengthen param "trial", which requires
5035 adding checked casts when returning it.
5037 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5039 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5040 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5041 "var_location" hook from rtx to rtx_insn *.
5042 (debug_nothing_rtx): Delete in favor of...
5043 (debug_nothing_rtx_code_label): New prototype.
5044 (debug_nothing_rtx_rtx): Delete unused prototype.
5045 (debug_nothing_rtx_insn): New prototype.
5047 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5048 invoking debug_hooks->var_location (in two places, one in a NOTE
5049 case of a switch statement, the other guarded by a CALL_P
5050 conditional. Add checked cast to rtx_code_label * when invoking
5051 debug_hooks->label (within CODE_LABEL case of switch statement).
5053 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5054 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5055 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5056 (xcoff_debug_hooks): Likewise.
5057 * debug.c (do_nothing_debug_hooks): Likewise.
5058 (debug_nothing_rtx): Delete in favor of...
5059 (debug_nothing_rtx_insn): New function.
5060 (debug_nothing_rtx_rtx): Delete unused function.
5061 (debug_nothing_rtx_code_label): New function.
5062 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5063 debug_nothing_rtx to debug_nothing_rtx_code_label.
5064 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5066 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5067 debug_nothing_rtx to debug_nothing_rtx_insn.
5068 (sdbout_label): Strengthen param "insn" from rtx to
5070 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5071 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5072 "var_location" hook from debug_nothing_rtx to
5073 debug_nothing_rtx_insn.
5075 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5077 * recog.h (insn_output_fn): Update this function typedef to match
5078 the changes below to the generated output functions, strengthening
5079 the 2nd param from rtx to rtx_insn *.
5081 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5082 insn when invoking an output function, to match the new signature
5083 of insn_output_fn with a stronger second param.
5085 * genconditions.c (write_header): In the generated code for
5086 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5087 to match the other changes in this patch.
5089 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5090 the generated "gen_" functions from rtx to rtx_insn * within their
5093 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5094 the subfunctions within the generated "recog_", "split", "peephole2"
5095 function trees from rtx to rtx_insn *. For now, the top-level
5096 generated functions ("recog", "split", "peephole2") continue to
5097 take a plain rtx for "insn", to avoid introducing dependencies on
5098 other patches. Rename this 2nd param from "insn" to
5099 "uncast_insn", and reintroduce "insn" as a local variable of type
5100 rtx_insn *, initialized at the top of the generated function with
5101 a checked cast on "uncast_insn".
5102 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5103 the generated "gen_" functions from rtx to rtx_insn * within their
5106 * genoutput.c (process_template): Strengthen the 2nd param within
5107 the generated "output_" functions "insn" from rtx to rtx_insn *.
5109 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5111 * tree-profile.c (tree_profiling): Skip external functions
5112 when doing coverage instrumentation.
5113 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5115 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5117 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5118 (vec_mergee): Likewise.
5119 (vec_mergeo): Likewise.
5120 (vec_cntlz): Likewise.
5121 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5122 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5123 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5125 * doc/extend.texi: Document various forms of vec_cpsgn,
5126 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5127 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5128 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5129 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5130 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5132 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5134 * config/rs6000/rs6000.c (context.h): New include.
5135 (tree-pass.h): Likewise.
5136 (make_pass_analyze_swaps): New decl.
5137 (rs6000_option_override): Register pass_analyze_swaps.
5138 (swap_web_entry): New subsclass of web_entry_base (df.h).
5139 (special_handling_values): New enum.
5140 (union_defs): New function.
5141 (union_uses): Likewise.
5142 (insn_is_load_p): Likewise.
5143 (insn_is_store_p): Likewise.
5144 (insn_is_swap_p): Likewise.
5145 (rtx_is_swappable_p): Likewise.
5146 (insn_is_swappable_p): Likewise.
5147 (chain_purpose): New enum.
5148 (chain_contains_only_swaps): New function.
5149 (mark_swaps_for_removal): Likewise.
5150 (swap_const_vector_halves): Likewise.
5151 (adjust_subreg_index): Likewise.
5152 (permute_load): Likewise.
5153 (permute_store): Likewise.
5154 (handle_special_swappables): Likewise.
5155 (replace_swap_with_copy): Likewise.
5156 (dump_swap_insn_table): Likewise.
5157 (rs6000_analyze_swaps): Likewise.
5158 (pass_data_analyze_swaps): New pass_data.
5159 (pass_analyze_swaps): New rtl_opt_pass.
5160 (make_pass_analyze_swaps): New function.
5161 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5163 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5165 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5166 type from rtx to rtx_insn *.
5167 (create_copy_of_insn_rtx): Likewise.
5168 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5169 (create_copy_of_insn_rtx): Likewise, also for local "res".
5171 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5173 * rtl.h (find_first_parameter_load): Strengthen return type from
5175 * rtlanal.c (find_first_parameter_load): Strengthen return type
5176 from rtx to rtx_insn *. Add checked cast for now, to postpone
5177 strengthening the params.
5179 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5182 * diagnostic.c: Set default caret.
5183 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5185 * diagnostic.h (struct diagnostic_context):
5187 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5189 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5190 (sel_bb_head): Strengthen return type insn_t (currently just an
5192 (sel_bb_end): Likewise.
5194 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5195 (sel_bb_head): Strengthen return type and local "head" from
5196 insn_t (currently just an rtx) to rtx_insn *.
5197 (sel_bb_end): Likewise for return type.
5198 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5201 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5203 * basic-block.h (get_last_bb_insn): Strengthen return type from
5205 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5208 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5211 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5213 (diagnostic_report_diagnostic): ... from here.
5214 * toplev.c (general_init): Move code to c-family.
5216 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5218 * df.h (web_entry_base): Replace existing struct web_entry with a
5219 new class web_entry_base with only the predecessor member.
5220 (unionfind_root): Remove declaration and move to class member.
5221 (unionfind_union): Remove declaration and move to friend
5223 (union_defs): Remove declaration.
5224 * web.c (web_entry_base::unionfind_root): Modify to be member
5225 function and adjust accessors.
5226 (unionfind_union): Modify to be friend function and adjust
5228 (web_entry): New subclass of web_entry_base containing the reg
5230 (union_match_dups): Modify for struct -> class changes.
5231 (union_defs): Likewise.
5232 (entry_register): Likewise.
5233 (pass_web::execute): Likewise.
5235 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5237 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5238 builtin define __VEC_ELEMENT_REG_ORDER__.
5240 2014-08-20 Martin Jambor <mjambor@suse.cz>
5241 Wei Mi <wmi@google.com>
5245 * tree-ssa-operands.c (update_stmt_operands): Remove
5246 MODIFIED_NORETURN_CALLS.
5247 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5248 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5249 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5250 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5251 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5252 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5253 (gimple_call_set_ctrl_altering): New func.
5254 (gimple_call_ctrl_altering_p): Ditto.
5255 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5256 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5257 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5258 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5259 remove MODIFIED_NORETURN_CALLS.
5261 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5263 * coverage.c (coverage_compute_profile_id): Return non-0;
5264 also handle symbols with unique name.
5265 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5267 2014-08-20 Steve Ellcey <sellcey@mips.com>
5270 * doc/sourcebuild.texi (non_strict_align): New.
5272 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5274 * cgraphunit.c (ipa_passes, compile): Reshedule
5275 symtab_remove_unreachable_nodes passes; update comments.
5276 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5277 TODO_remove_functions before the pass; the functions ought to be
5279 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5280 TODO_remove_functions.
5281 * passes.c (pass_data_early_local_passes): Do not schedule function
5283 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5285 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5288 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5289 before setting the option.
5290 * diagnostic.c (diagnostic_classify_diagnostic): Record
5291 command-line status.
5293 2014-08-20 Richard Biener <rguenther@suse.de>
5296 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5297 to build uint{16,32,64}_type_node.
5299 2014-08-20 Terry Guo <terry.guo@arm.com>
5301 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5302 with immediate_operand.
5304 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5306 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5307 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5310 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5312 PR preprocessor/51303
5313 * incpath.c (remove_duplicates): Use cpp_warning.
5315 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5319 * doc/options.texi (CPP): Document it.
5320 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5321 * optc-gen.awk: Handle CPP.
5322 * opth-gen.awk: Likewise.
5324 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5326 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5328 (duplicate_insn_chain): Likewise.
5329 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5330 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5331 checked cast for now (until we can strengthen the params in the
5333 (duplicate_insn_chain): Likewise.
5335 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5337 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5339 (prev_cc0_setter): Likewise.
5341 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5342 rtx_insn *, adding checked casts for now as necessary.
5343 (prev_cc0_setter): Likewise.
5345 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5347 * expr.h (emit_move_insn): Strengthen return type from rtx to
5349 (emit_move_insn_1): Likewise.
5350 (emit_move_complex_push): Likewise.
5351 (emit_move_complex_parts): Likewise.
5353 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5354 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5356 (emit_move_complex_push): Strengthen return type from rtx to
5358 (emit_move_complex): Likewise, also for local "ret".
5359 (emit_move_ccmode): Likewise.
5360 (emit_move_multi_word): Likewise for return type and locals
5362 (emit_move_insn_1): Likewise for return type and locals "result",
5364 (emit_move_insn): Likewise for return type and local "last_insn".
5365 (compress_float_constant): Likewise.
5367 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5369 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5370 from rtx to rtx_insn *.
5372 * rtl.h (emit_insn_before): Likewise.
5373 (emit_insn_before_noloc): Likewise.
5374 (emit_insn_before_setloc): Likewise.
5375 (emit_jump_insn_before): Likewise.
5376 (emit_jump_insn_before_noloc): Likewise.
5377 (emit_jump_insn_before_setloc): Likewise.
5378 (emit_call_insn_before): Likewise.
5379 (emit_call_insn_before_noloc): Likewise.
5380 (emit_call_insn_before_setloc): Likewise.
5381 (emit_debug_insn_before): Likewise.
5382 (emit_debug_insn_before_noloc): Likewise.
5383 (emit_debug_insn_before_setloc): Likewise.
5384 (emit_label_before): Likewise.
5385 (emit_insn_after): Likewise.
5386 (emit_insn_after_noloc): Likewise.
5387 (emit_insn_after_setloc): Likewise.
5388 (emit_jump_insn_after): Likewise.
5389 (emit_jump_insn_after_noloc): Likewise.
5390 (emit_jump_insn_after_setloc): Likewise.
5391 (emit_call_insn_after): Likewise.
5392 (emit_call_insn_after_noloc): Likewise.
5393 (emit_call_insn_after_setloc): Likewise.
5394 (emit_debug_insn_after): Likewise.
5395 (emit_debug_insn_after_noloc): Likewise.
5396 (emit_debug_insn_after_setloc): Likewise.
5397 (emit_label_after): Likewise.
5398 (emit_insn): Likewise.
5399 (emit_debug_insn): Likewise.
5400 (emit_jump_insn): Likewise.
5401 (emit_call_insn): Likewise.
5402 (emit_label): Likewise.
5403 (gen_clobber): Likewise.
5404 (emit_clobber): Likewise.
5405 (gen_use): Likewise.
5406 (emit_use): Likewise.
5409 (emit_barrier_before): Strengthen return type from rtx to
5411 (emit_barrier_after): Likewise.
5412 (emit_barrier): Likewise.
5414 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5415 from rtx to rtx_insn *. Add checked casts for now when converting
5416 "last" from rtx to rtx_insn *.
5417 (emit_insn_before_noloc): Likewise for return type.
5418 (emit_jump_insn_before_noloc): Likewise.
5419 (emit_call_insn_before_noloc): Likewise.
5420 (emit_debug_insn_before_noloc): Likewise.
5421 (emit_barrier_before): Strengthen return type and local "insn"
5422 from rtx to rtx_barrier *.
5423 (emit_label_before): Strengthen return type from rtx to
5424 rtx_insn *. Add checked cast for now when returning param
5425 (emit_pattern_after_noloc): Strengthen return type from rtx to
5426 rtx_insn *. Add checked casts for now when converting "last" from
5428 (emit_insn_after_noloc): Strengthen return type from rtx to
5430 (emit_jump_insn_after_noloc): Likewise.
5431 (emit_call_insn_after_noloc): Likewise.
5432 (emit_debug_insn_after_noloc): Likewise.
5433 (emit_barrier_after): Strengthen return type from rtx to
5435 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5436 Add checked cast for now when converting "label" from rtx to
5438 (emit_pattern_after_setloc): Strengthen return type from rtx to
5439 rtx_insn *. Add checked casts for now when converting "last" from
5441 (emit_pattern_after): Strengthen return type from rtx to
5443 (emit_insn_after_setloc): Likewise.
5444 (emit_insn_after): Likewise.
5445 (emit_jump_insn_after_setloc): Likewise.
5446 (emit_jump_insn_after): Likewise.
5447 (emit_call_insn_after_setloc): Likewise.
5448 (emit_call_insn_after): Likewise.
5449 (emit_debug_insn_after_setloc): Likewise.
5450 (emit_debug_insn_after): Likewise.
5451 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5452 when converting "last" from rtx to rtx_insn *.
5453 (emit_pattern_before): Strengthen return type from rtx to
5455 (emit_insn_before_setloc): Likewise.
5456 (emit_insn_before): Likewise.
5457 (emit_jump_insn_before_setloc): Likewise.
5458 (emit_jump_insn_before): Likewise.
5459 (emit_call_insn_before_setloc): Likewise.
5460 (emit_call_insn_before): Likewise.
5461 (emit_debug_insn_before_setloc): Likewise.
5462 (emit_debug_insn_before): Likewise.
5463 (emit_insn): Strengthen return type and locals "last", "insn",
5464 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5465 within cases where we know we have an insn.
5466 (emit_debug_insn): Likewise.
5467 (emit_jump_insn): Likewise.
5468 (emit_call_insn): Strengthen return type and local "insn" from rtx
5470 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5471 a checked cast to rtx_insn * for now on "label".
5472 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5473 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5474 (emit_use): Likewise.
5475 (gen_use): Likewise, also for local "seq".
5476 (emit): Likewise for return type and local "insn".
5477 (rtx_insn): Likewise for return type and local "new_rtx".
5479 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5480 from rtx to rtx_barrier *.
5482 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5483 changed return type from rtx to rtx_insn *, we must update
5484 "emit_fn" type, and this in turn means updating...
5485 (frame_insn): ...this. Strengthen return type from rtx to
5486 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5488 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5490 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5491 rtx to rtx_jump_table_data *. Also for local.
5492 * rtl.h (emit_jump_table_data): Likewise.
5494 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5496 * basic-block.h (create_basic_block_structure): Strengthen third
5497 param "bb_note" from rtx to rtx_note *.
5498 * rtl.h (emit_note_before): Strengthen return type from rtx to
5500 (emit_note_after): Likewise.
5501 (emit_note): Likewise.
5502 (emit_note_copy): Likewise. Also, strengthen param similarly.
5503 * function.h (struct rtl_data): Strengthen field
5504 "x_stack_check_probe_note" from rtx to rtx_note *.
5506 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5507 from rtx to rtx_note *.
5508 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5509 "bb_note" from rtx to rtx_note *.
5510 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5511 when calling emit_note_copy.
5512 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5514 (emit_note_after): Likewise.
5515 (emit_note_before): Likewise.
5516 (emit_note_copy): Likewise. Also, strengthen param similarly.
5517 (emit_note): Likewise.
5518 * except.c (emit_note_eh_region_end): Likewise for return type.
5519 Strengthen local "next" from rtx to rtx_insn *.
5520 (convert_to_eh_region_ranges): Strengthen local "note"
5521 from rtx to rtx_note *.
5522 * final.c (change_scope): Likewise.
5523 (reemit_insn_block_notes): Likewise, for both locals named "note".
5524 Also, strengthen local "insn" from rtx to rtx_insn *.
5525 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5527 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5528 strengthen local "seq" from rtx to rtx_insn *.
5529 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5531 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5533 (get_bb_note_from_pool): Strengthen return type from rtx to
5535 (sel_create_basic_block): Strengthen local "new_bb_note" from
5536 insn_t to rtx_note *.
5537 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5538 "note" from rtx to rtx_note *.
5539 (emit_notes_in_bb): Likewise.
5541 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5543 * function.h (struct rtl_data): Strengthen field
5544 "x_parm_birth_insn" from rtx to rtx_insn *.
5545 * function.c (struct assign_parm_data_all): Strengthen fields
5546 "first_conversion_insn" and "last_conversion_insn" from rtx to
5549 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5551 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5552 to rtx_insn *; also for local "var_end_seq".
5553 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5554 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5556 (expand_gimple_cond): Likewise for locals "last2" and "last".
5557 (mark_transaction_restart_calls): Likewise for local "insn".
5558 (expand_gimple_stmt): Likewise for return type and locals "last"
5560 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5561 (avoid_complex_debug_insns): Likewise for param "insn".
5562 (expand_debug_locations): Likewise for locals "insn", "last",
5563 "prev_insn" and "insn2".
5564 (expand_gimple_basic_block): Likewise for local "last".
5565 (construct_exit_block): Likewise for locals "head", "end",
5567 (pass_expand::execute): Likewise for locals "var_seq",
5568 "var_ret_seq", "next".
5570 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5572 * asan.h (asan_emit_stack_protection): Strengthen return type from
5574 * asan.c (asan_emit_stack_protection): Likewise. Add local
5575 "insns" to hold the return value.
5577 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5579 * basic-block.h (bb_note): Strengthen return type from rtx to
5581 * sched-int.h (bb_note): Likewise.
5582 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5584 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5586 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5589 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5590 "insn" from rtx to rtx_insn *.
5591 (make_debug_insn_raw): Strengthen return type from rtx to
5592 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5593 (make_jump_insn_raw): Strengthen return type from rtx to
5594 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5595 (make_call_insn_raw): Strengthen return type from rtx to
5596 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5597 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5598 callback from rtx to rtx_insn *; likewise for local "insn" and
5599 "next", adding a checked cast to rtx_insn in the relevant cases of
5600 the switch statement.
5601 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5602 callback from rtx to rtx_insn *.
5603 (emit_pattern_after_setloc): Likewise.
5604 (emit_pattern_after): Likewise.
5605 (emit_pattern_before_setloc): Likewise.
5606 (emit_pattern_before): Likewise.
5608 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5610 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5612 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5613 accepting an rtx_insn *.
5614 (last_call_insn): Strengthen return type from rtx to
5617 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5619 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5620 "insns" from rtx to rtx_insn *.
5621 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5622 locals "insn" and "prev".
5624 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5626 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5627 rtx_jump_table_data **.
5629 * cfgbuild.c (make_edges): Introduce local "table", using it in
5630 place of "tmp" for jump table data.
5631 (find_bb_boundaries): Strengthen local "table" from rtx to
5632 rtx_jump_table_data *.
5633 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5634 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5635 (try_crossjump_to_edge): Likewise.
5636 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5638 (patch_jump_insn): Introduce local "table", using it in place of
5639 "tmp" for jump table data.
5640 (force_nonfallthru_and_redirect): Introduce local "table", so that
5641 call to tablejump_p can receive an rtx_jump_table_data **. Update
5642 logic around the call to overwrite "note" appropriately if
5643 tablejump_p returns non-zero.
5644 (get_last_bb_insn): Introduce local "table", using it in place of
5645 "tmp" for jump table data.
5646 * dwarf2cfi.c (create_trace_edges): Likewise.
5648 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5649 from rtx to rtx_jump_table_data *.
5650 (create_fix_barrier): Strengthen local "tmp" from rtx to
5651 rtx_jump_table_data *.
5652 (arm_reorg): Likewise for local "table".
5654 * config/s390/s390.c (s390_chunkify_start): Likewise.
5656 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5658 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5659 rtx to rtx_jump_table_data *.
5661 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5662 rtx_jump_table_data **. Add a checked cast when writing through
5663 the pointer: we know there that local "table" is non-NULL and that
5664 JUMP_TABLE_DATA_P (table) holds.
5665 (label_is_jump_target_p): Introduce local "table", using it in
5666 place of "tmp" for jump table data.
5668 2014-08-19 Marek Polacek <polacek@redhat.com>
5671 * doc/invoke.texi: Document -Wbool-compare.
5673 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5675 * rtl.h (entry_of_function): Strengthen return type from rtx to
5677 * cfgrtl.c (entry_of_function): Likewise.
5679 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5681 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5682 rtx_insn *, adding a checked cast for now.
5683 (get_last_insn): Likewise.
5685 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5687 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5690 * emit-rtl.c (gen_label_rtx): Likewise.
5692 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5694 * rtl.h (previous_insn): Strengthen return type from rtx to
5696 (next_insn): Likewise.
5697 (prev_nonnote_insn): Likewise.
5698 (prev_nonnote_insn_bb): Likewise.
5699 (next_nonnote_insn): Likewise.
5700 (next_nonnote_insn_bb): Likewise.
5701 (prev_nondebug_insn): Likewise.
5702 (next_nondebug_insn): Likewise.
5703 (prev_nonnote_nondebug_insn): Likewise.
5704 (next_nonnote_nondebug_insn): Likewise.
5705 (prev_real_insn): Likewise.
5706 (next_real_insn): Likewise.
5707 (prev_active_insn): Likewise.
5708 (next_active_insn): Likewise.
5710 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5711 rtx_insn *, adding a checked cast.
5712 (previous_insn): Likewise.
5713 (next_nonnote_insn): Likewise.
5714 (next_nonnote_insn_bb): Likewise.
5715 (prev_nonnote_insn): Likewise.
5716 (prev_nonnote_insn_bb): Likewise.
5717 (next_nondebug_insn): Likewise.
5718 (prev_nondebug_insn): Likewise.
5719 (next_nonnote_nondebug_insn): Likewise.
5720 (prev_nonnote_nondebug_insn): Likewise.
5721 (next_real_insn): Likewise.
5722 (prev_real_insn): Likewise.
5723 (next_active_insn): Likewise.
5724 (prev_active_insn): Likewise.
5726 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5727 param "stepfunc" so that it returns an rtx_insn * rather than an
5728 rtx, to track the change to prev_nonnote_insn_bb, which is the
5729 only function this is called with.
5730 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5732 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5734 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5737 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5739 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5740 (class rtx_nonjump_insn): Likewise.
5741 (class rtx_jump_insn): Likewise.
5742 (class rtx_call_insn): Likewise.
5743 (class rtx_jump_table_data): Likewise.
5744 (class rtx_barrier): Likewise.
5745 (class rtx_code_label): Likewise.
5746 (class rtx_note): Likewise.
5748 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5749 adding the invariant DEBUG_INSN_P (X).
5750 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5751 the invariant NONJUMP_INSN_P (X).
5752 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5753 the invariant JUMP_P (X).
5754 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5755 the invariant CALL_P (X).
5756 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5757 invariant JUMP_TABLE_DATA_P (X).
5758 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5759 invariant BARRIER_P (X).
5760 (class rtx_code_label): New, a subclass of rtx_insn, adding
5761 the invariant LABEL_P (X).
5762 (class rtx_note): New, a subclass of rtx_insn, adding
5763 the invariant NOTE_P(X).
5764 (is_a_helper <rtx_debug_insn *>::test): New.
5765 (is_a_helper <rtx_nonjump_insn *>::test): New.
5766 (is_a_helper <rtx_jump_insn *>::test): New.
5767 (is_a_helper <rtx_call_insn *>::test): New.
5768 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5769 overloaded for both rtx and rtx_insn *.
5770 (is_a_helper <rtx_barrier *>::test): New.
5771 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5772 for both rtx and rtx_insn *.
5773 (is_a_helper <rtx_note *>::test): New.
5775 2014-08-19 Marek Polacek <polacek@redhat.com>
5777 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5778 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5779 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5780 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5782 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5784 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5785 rtx_insn *. To help with transition, for now, convert from an
5786 access macro into a pair of functions: BND_TO, returning an
5788 (SET_BND_TO): New function, for use where BND_TO is used as an
5791 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5793 (BND_TO): New function, adding a checked cast.
5794 (SET_BND_TO): New function.
5796 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5798 (compute_av_set_on_boundaries): Likewise.
5800 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5802 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5803 destination if it is used in source.
5804 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5805 (*popcount<mode>2_falsedep_1): Likewise.
5807 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5810 * configure.ac: Set install_gold_as_default to no first.
5811 * configure: Regenerated.
5813 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5815 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5816 "note_list" field will eventually be an rtx_insn *. To help with
5817 transition, for now, convert from an access macro into a pair of
5818 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5819 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5822 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5823 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5825 * sel-sched-ir.c (init_bb): Likewise.
5826 (sel_restore_notes): Likewise.
5827 (move_bb_info): Likewise.
5828 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5829 (SET_BB_NOTE_LIST): New function.
5831 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5833 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5834 field will eventually be an rtx_insn *. To help with transition,
5835 for now, convert from an access macro into a pair of functions:
5836 VINSN_INSN_RTX, returning an rtx_insn *, and...
5837 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5838 is used as an lvalue.
5840 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5841 SET_VINSN_INSN_RTX where it's used as an lvalue.
5842 (VINSN_INSN_RTX): New function.
5843 (SET_VINSN_INSN_RTX): New function.
5845 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5847 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5848 eventually be rtx_insn *, but to help with transition, for now,
5849 convert from an access macro into a pair of functions: DEP_PRO
5850 returning an rtx_insn * and...
5851 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5852 lvalue, returning an rtx&.
5853 (DEP_CON): Analogous changes to DEP_PRO above.
5854 (SET_DEP_CON): Likewise.
5856 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5857 an lvalue to SET_DEP_CON.
5858 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5859 (sd_copy_back_deps): Likewise for DEP_CON.
5860 (DEP_PRO): New function, adding a checked cast for now.
5861 (DEP_CON): Likewise.
5862 (SET_DEP_PRO): New function.
5863 (SET_DEP_CON): Likewise.
5865 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5867 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5868 (extra_options): Add i386/cygwin.opt.
5869 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5870 (CPP_SPEC): Accept -pthread.
5872 (GOMP_SELF_SPECS): Update comment.
5873 * config/i386/cygwin.opt: New file for -pthread flag.
5875 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5877 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5878 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5879 that we can return an rtx_insn *.
5881 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5883 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5884 when building executables, not DLLs. Add --large-address-aware
5885 under the same conditions.
5886 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5887 when building executables, not DLLs. Add --large-address-aware
5888 under the same conditions when using -m32.
5890 * config/i386/cygwin-stdint.h: Throughout, make type
5891 definitions dependent on target architecture, not host.
5893 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5895 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5896 the return type from rtx to rtx_insn *, which will enable various
5897 conversions in followup patches. For now this is is done by a
5899 (NEXT_INSN): Likewise.
5900 (SET_PREV_INSN): Convert to an inline function. This is intended
5901 for use as an lvalue, and so returns an rtx& to allow in-place
5903 (SET_NEXT_INSN): Likewise.
5905 2014-07-08 Mark Wielaard <mjw@redhat.com>
5908 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5910 2014-08-19 Marek Polacek <polacek@redhat.com>
5913 * cgraphunit.c (handle_alias_pairs): Fix condition.
5915 2014-08-19 Richard Biener <rguenther@suse.de>
5917 * gimple-fold.c (fold_gimple_assign): Properly build a
5918 null-pointer constant when devirtualizing addresses.
5920 2014-07-07 Mark Wielaard <mjw@redhat.com>
5922 * dwarf2out.c (decl_quals): New function.
5923 (modified_type_die): Take one cv_quals argument instead of two,
5924 one for const and one for volatile.
5925 (add_type_attribute): Likewise.
5926 (generic_parameter_die): Call add_type_attribute with one modifier
5928 (base_type_for_mode): Likewise.
5929 (add_bounds_info): Likewise.
5930 (add_subscript_info): Likewise.
5931 (gen_array_type_die): Likewise.
5932 (gen_descr_array_type_die): Likewise.
5933 (gen_entry_point_die): Likewise.
5934 (gen_enumeration_type_die): Likewise.
5935 (gen_formal_parameter_die): Likewise.
5936 (gen_subprogram_die): Likewise.
5937 (gen_variable_die): Likewise.
5938 (gen_const_die): Likewise.
5939 (gen_field_die): Likewise.
5940 (gen_pointer_type_die): Likewise.
5941 (gen_reference_type_die): Likewise.
5942 (gen_ptr_to_mbr_type_die): Likewise.
5943 (gen_inheritance_die): Likewise.
5944 (gen_subroutine_type_die): Likewise.
5945 (gen_typedef_die): Likewise.
5946 (force_type_die): Likewise.
5948 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5950 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5952 * configure: Regenerate.
5954 2014-08-19 Richard Biener <rguenther@suse.de>
5956 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5957 DECL_EXTERNALs in BLOCKs as non-references.
5958 * tree-streamer-out.c (streamer_write_chain): Likewise.
5960 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5961 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5962 Anna Tikhonova <anna.tikhonova@intel.com>
5963 Ilya Tocar <ilya.tocar@intel.com>
5964 Andrey Turetskiy <andrey.turetskiy@intel.com>
5965 Ilya Verbin <ilya.verbin@intel.com>
5966 Kirill Yukhin <kirill.yukhin@intel.com>
5967 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5969 * config/i386/sse.md
5970 (define_mode_iterator VI48_AVX512F): Delete.
5971 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5972 (define_mode_iterator VI2_AVX512VL): Ditto.
5973 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5976 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5978 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5979 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5980 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5981 with VI48_AVX512F_AVX512VL): New.
5982 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5983 with VI2_AVX512VL): Ditto.
5985 2014-08-19 Marek Polacek <polacek@redhat.com>
5987 * doc/invoke.texi: Document -Wc99-c11-compat.
5989 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5991 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5993 (SET_PREV_INSN): New macro, for use as an lvalue.
5994 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5996 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5997 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5998 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5999 (fixup_abnormal_edges): Likewise.
6000 (unlink_insn_chain): Likewise.
6001 (fixup_reorder_chain): Likewise.
6002 (cfg_layout_delete_block): Likewise.
6003 (cfg_layout_merge_blocks): Likewise.
6004 * combine.c (update_cfg_for_uncondjump): Likewise.
6005 * emit-rtl.c (link_insn_into_chain): Likewise.
6006 (remove_insn): Likewise.
6007 (delete_insns_since): Likewise.
6008 (reorder_insns_nobb): Likewise.
6009 (emit_insn_after_1): Likewise.
6010 * final.c (rest_of_clean_state): Likewise.
6011 (final_scan_insn): Likewise.
6012 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6013 * haifa-sched.c (concat_note_lists): Likewise.
6014 (remove_notes): Likewise.
6015 (restore_other_notes): Likewise.
6016 (move_insn): Likewise.
6017 (unlink_bb_notes): Likewise.
6018 (restore_bb_notes): Likewise.
6019 * jump.c (delete_for_peephole): Likewise.
6020 * optabs.c (emit_libcall_block_1): Likewise.
6021 * reorg.c (emit_delay_sequence): Likewise.
6022 (fill_simple_delay_slots): Likewise.
6023 * sel-sched-ir.c (sel_move_insn): Likewise.
6024 (sel_remove_insn): Likewise.
6025 (get_bb_note_from_pool): Likewise.
6026 * sel-sched.c (move_nop_to_previous_block): Likewise.
6028 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6029 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6030 (c6x_gen_bundles): Likewise.
6031 (hwloop_optimize): Likewise.
6032 * config/frv/frv.c (frv_function_prologue): Likewise.
6033 (frv_register_nop): Likewise.
6034 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6035 (ia64_reorg): Likewise.
6036 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6037 (mep_make_bundle): Likewise.
6038 (mep_bundle_insns): Likewise.
6039 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6040 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6041 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6043 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6045 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6046 return type from rtx to rtx_insn *.
6048 (BB_HEADER): Likewise.
6049 (BB_FOOTER): Likewise.
6050 (SET_BB_HEAD): Convert to a function.
6051 (SET_BB_END): Likewise.
6052 (SET_BB_HEADER): Likewise.
6053 (SET_BB_FOOTER): Likewise.
6055 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6056 Strengthen the return type from rtx to rtx_insn *. For now, this
6057 is done by adding a checked cast, but this will eventually
6058 become a field lookup.
6060 (BB_HEADER): Likewise.
6061 (BB_FOOTER): Likewise.
6062 (SET_BB_HEAD): New function, from macro of same name. This is
6063 intended for use as an lvalue, and so returns an rtx& to allow
6064 in-place modification.
6065 (SET_BB_END): Likewise.
6066 (SET_BB_HEADER): Likewise.
6067 (SET_BB_FOOTER): Likewise.
6069 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6071 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6073 (SET_BB_HEAD): New macro, for use as a lvalue.
6074 (BB_END, SET_BB_END): Likewise.
6075 (BB_HEADER, SET_BB_HEADER): Likewise.
6076 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6078 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6079 of BB_* macros into SET_BB_* macros.
6080 (fix_crossing_unconditional_branches): Likewise.
6081 * caller-save.c (save_call_clobbered_regs): Likewise.
6082 (insert_one_insn): Likewise.
6083 * cfgbuild.c (find_bb_boundaries): Likewise.
6084 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6085 (outgoing_edges_match): Likewise.
6086 (try_optimize_cfg): Likewise.
6087 * cfgexpand.c (expand_gimple_cond): Likewise.
6088 (expand_gimple_tailcall): Likewise.
6089 (expand_gimple_basic_block): Likewise.
6090 (construct_exit_block): Likewise.
6091 * cfgrtl.c (delete_insn): Likewise.
6092 (create_basic_block_structure): Likewise.
6093 (rtl_delete_block): Likewise.
6094 (rtl_split_block): Likewise.
6095 (emit_nop_for_unique_locus_between): Likewise.
6096 (rtl_merge_blocks): Likewise.
6097 (block_label): Likewise.
6098 (try_redirect_by_replacing_jump): Likewise.
6099 (emit_barrier_after_bb): Likewise.
6100 (fixup_abnormal_edges): Likewise.
6101 (record_effective_endpoints): Likewise.
6102 (relink_block_chain): Likewise.
6103 (fixup_reorder_chain): Likewise.
6104 (fixup_fallthru_exit_predecessor): Likewise.
6105 (cfg_layout_duplicate_bb): Likewise.
6106 (cfg_layout_split_block): Likewise.
6107 (cfg_layout_delete_block): Likewise.
6108 (cfg_layout_merge_blocks): Likewise.
6109 * combine.c (update_cfg_for_uncondjump): Likewise.
6110 * emit-rtl.c (add_insn_after): Likewise.
6111 (remove_insn): Likewise.
6112 (reorder_insns): Likewise.
6113 (emit_insn_after_1): Likewise.
6114 * haifa-sched.c (get_ebb_head_tail): Likewise.
6115 (restore_other_notes): Likewise.
6116 (move_insn): Likewise.
6117 (sched_extend_bb): Likewise.
6118 (fix_jump_move): Likewise.
6119 * ifcvt.c (noce_process_if_block): Likewise.
6120 (dead_or_predicable): Likewise.
6121 * ira.c (update_equiv_regs): Likewise.
6122 * reg-stack.c (change_stack): Likewise.
6123 * sel-sched-ir.c (sel_move_insn): Likewise.
6124 * sel-sched.c (move_nop_to_previous_block): Likewise.
6126 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6127 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6129 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6131 * rtl.h (for_each_rtx_in_insn): New function.
6132 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6134 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6136 * coretypes.h (class rtx_insn): Add forward declaration.
6138 * rtl.h: Include is-a.h.
6139 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6140 workaround to ensure gengtype knows inheritance is occurring,
6141 whilst continuing to use the pre-existing special-casing for
6143 (class rtx_insn): New subclass of rtx_def, adding the
6144 invariant that we're dealing with something we can sanely use
6145 INSN_UID, NEXT_INSN, PREV_INSN on.
6146 (is_a_helper <rtx_insn *>::test): New.
6147 (is_a_helper <const rtx_insn *>::test): New.
6149 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6151 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6153 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6155 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6158 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6160 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6161 to BUILT_IN_UNREACHABLE.
6163 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6166 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6168 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6169 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6170 (ffs<mode>2): Do not expand with tzcnt for
6171 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6172 (ffssi2_no_cmove): Ditto.
6173 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6174 (ctz<mode>2): New expander.
6175 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6176 (*ctz<mode>2_falsedep): New insn.
6177 (*ctz<mode>2): Rename from ctz<mode>2.
6178 (clz<mode>2_lzcnt): New expander.
6179 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6180 (*clz<mode>2_lzcnt_falsedep): New insn.
6181 (*clz<mode>2): Rename from ctz<mode>2.
6182 (popcount<mode>2): New expander.
6183 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6184 (*popcount<mode>2_falsedep): New insn.
6185 (*popcount<mode>2): Rename from ctz<mode>2.
6186 (*popcount<mode>2_cmp): Remove.
6187 (*popcountsi2_cmp_zext): Ditto.
6189 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6191 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6192 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6193 * config/microblaze/microblaze.h
6194 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6196 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6199 * configure.ac: Set install_gold_as_default to no for
6201 * configure: Regenerated.
6203 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6205 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6206 * config.in: Add undef of HAVE_isl.
6207 * configure: Regenerate.
6208 * configure.ac: Add definition of HAVE_isl.
6209 * graphite-blocking.c: Add checking of HAVE_isl.
6210 * graphite-dependences.c: Likewise.
6211 * graphite-interchange.c: Likewise.
6212 * graphite-isl-ast-to-gimple.c: Likewise.
6213 * graphite-optimize-isl.c: Likewise.
6214 * graphite-poly.c: Likewise.
6215 * graphite-scop-detection.c: Likewise.
6216 * graphite-sese-to-poly.c: Likewise.
6217 * graphite.c: Likewise.
6218 * toplev.c: Replace the checking of HAVE_cloog with the checking
6221 2014-08-18 Richard Biener <rguenther@suse.de>
6223 PR tree-optimization/62090
6224 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6225 (fold_builtin_3): Do not fold snprintf.
6226 (fold_builtin_4): Likewise.
6227 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6228 moved from builtins.c.
6229 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6230 (gimple_fold_builtin): Do not fold sprintf here.
6232 2014-08-18 Richard Biener <rguenther@suse.de>
6234 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6236 (maybe_canonicalize_mem_ref_addr): ... this function.
6237 (fold_stmt_1): Apply it here before all simplification.
6239 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6242 * cgraph.h (cgraph_node::create_indirect_edge): Add
6243 compute_indirect_info param.
6244 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6245 indirect_info only when it is required.
6246 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6247 indirect_info fore cloned indirect edge.
6249 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6250 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6251 Anna Tikhonova <anna.tikhonova@intel.com>
6252 Ilya Tocar <ilya.tocar@intel.com>
6253 Andrey Turetskiy <andrey.turetskiy@intel.com>
6254 Ilya Verbin <ilya.verbin@intel.com>
6255 Kirill Yukhin <kirill.yukhin@intel.com>
6256 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6258 * config/i386/sse.md
6259 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6260 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6262 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6263 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6264 Anna Tikhonova <anna.tikhonova@intel.com>
6265 Ilya Tocar <ilya.tocar@intel.com>
6266 Andrey Turetskiy <andrey.turetskiy@intel.com>
6267 Ilya Verbin <ilya.verbin@intel.com>
6268 Kirill Yukhin <kirill.yukhin@intel.com>
6269 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6271 * config/i386/sse.md
6272 (define_mode_iterator VF1_AVX512VL): New.
6273 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6274 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6277 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6278 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6279 Anna Tikhonova <anna.tikhonova@intel.com>
6280 Ilya Tocar <ilya.tocar@intel.com>
6281 Andrey Turetskiy <andrey.turetskiy@intel.com>
6282 Ilya Verbin <ilya.verbin@intel.com>
6283 Kirill Yukhin <kirill.yukhin@intel.com>
6284 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6286 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6287 * config/i386/i386.md
6288 (define_code_iterator any_float): New.
6289 (define_code_attr floatsuffix): New.
6290 * config/i386/sse.md
6291 (define_mode_iterator VF1_128_256VL): New.
6292 (define_mode_iterator VF2_512_256VL): New.
6293 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6295 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6296 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6298 (define_mode_attr qq2pssuff): New.
6299 (define_mode_attr sselongvecmode): New.
6300 (define_mode_attr sselongvecmodelower): New.
6301 (define_mode_attr sseintvecmode3): New.
6302 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6304 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6305 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6306 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6307 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6309 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6310 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6311 Anna Tikhonova <anna.tikhonova@intel.com>
6312 Ilya Tocar <ilya.tocar@intel.com>
6313 Andrey Turetskiy <andrey.turetskiy@intel.com>
6314 Ilya Verbin <ilya.verbin@intel.com>
6315 Kirill Yukhin <kirill.yukhin@intel.com>
6316 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6318 * config/i386/sse.md
6319 (define_mode_iterator VF2_AVX512VL): New.
6320 (define_mode_attr sseintvecmode2): New.
6321 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6322 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6323 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6325 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6327 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6329 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6332 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6333 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6334 Anna Tikhonova <anna.tikhonova@intel.com>
6335 Ilya Tocar <ilya.tocar@intel.com>
6336 Andrey Turetskiy <andrey.turetskiy@intel.com>
6337 Ilya Verbin <ilya.verbin@intel.com>
6338 Kirill Yukhin <kirill.yukhin@intel.com>
6339 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6341 * config/i386/i386.md
6342 (define_insn "*movoi_internal_avx"): Add evex version.
6343 (define_insn "*movti_internal"): Ditto.
6345 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6346 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6347 Anna Tikhonova <anna.tikhonova@intel.com>
6348 Ilya Tocar <ilya.tocar@intel.com>
6349 Andrey Turetskiy <andrey.turetskiy@intel.com>
6350 Ilya Verbin <ilya.verbin@intel.com>
6351 Kirill Yukhin <kirill.yukhin@intel.com>
6352 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6354 * config/i386/i386.md
6355 (define_attr "isa"): Add avx512dq, noavx512dq.
6356 (define_attr "enabled"): Ditto.
6357 * config/i386/sse.md
6358 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6360 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6361 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6362 Anna Tikhonova <anna.tikhonova@intel.com>
6363 Ilya Tocar <ilya.tocar@intel.com>
6364 Andrey Turetskiy <andrey.turetskiy@intel.com>
6365 Ilya Verbin <ilya.verbin@intel.com>
6366 Kirill Yukhin <kirill.yukhin@intel.com>
6367 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6369 * config/i386/i386.c
6370 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6371 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6372 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6373 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6374 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6375 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6376 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6377 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6378 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6379 * config/i386/sse.md
6380 (define_mode_iterator VMOVE): Allow V4TI mode.
6381 (define_mode_iterator V_AVX512VL): New.
6382 (define_mode_iterator V): New handling for AVX512VL.
6383 (define_insn "avx512f_load<mode>_mask"): Delete.
6384 (define_insn "<avx512>_load<mode>_mask"): New.
6385 (define_insn "avx512f_store<mode>_mask"): Delete.
6386 (define_insn "<avx512>_store<mode>_mask"): New.
6389 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6392 * asan.c (instrument_derefs): Fix bitfield check.
6394 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6396 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6397 * config/rs6000/htm.md (ttest): Remove clobber.
6398 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6399 (and_operand): Reformat.
6400 (and_2rld_operand): New predicate.
6401 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6403 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6404 parameter. Handle AND directly.
6405 (rs6000_split_logical_di): Remove last parameter.
6406 (rs6000_split_logical): Remove last parameter. Remove obsolete
6408 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6409 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6410 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6411 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6412 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6413 and 5 anonymous splitters): Delete.
6414 (and<mode>3): New expander.
6415 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6416 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6417 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6418 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6419 (floatdisf2_internal1): Remove clobbers.
6420 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6421 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6422 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6423 (and<mode>3 for BOOL_128): Remove clobber.
6424 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6425 rs6000_split_logical.
6426 (*bool<mode>3_internal for BOOL_128): Adjust call of
6427 rs6000_split_logical.
6428 (*boolc<mode>3_internal1 for BOOL_128,
6429 *boolc<mode>3_internal2 for BOOL_128,
6430 *boolcc<mode>3_internal1 for BOOL_128,
6431 *boolcc<mode>3_internal2 for BOOL_128,
6432 *eqv<mode>3_internal1 for BOOL_128,
6433 *eqv<mode>3_internal2 for BOOL_128,
6434 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6435 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6437 (*vec_reload_and_reg_<mptrsize>): Delete.
6439 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6441 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6442 and split, *boolccsi3_internal3 and split): Delete.
6443 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6444 *boolccdi3_internal3 and split): Delete.
6445 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6446 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6448 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6450 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6451 and split, *boolcsi3_internal3 and split): Delete.
6452 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6453 *boolcdi3_internal3 and split): Delete.
6454 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6456 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6458 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6459 <'u'>: Also support printing the low-order 16 bits.
6460 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6461 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6462 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6463 *booldi3_internal3 and split): Delete.
6464 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6465 *bool<mode>3_dot2): New.
6466 (two anonymous define_splits for non_logical_cint_operand): Merge.
6468 2014-08-17 Marek Polacek <polacek@redhat.com>
6469 Manuel López-Ibáñez <manu@gcc.gnu.org>
6472 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6473 (diagnostic_show_locus): Don't print caret diagnostic
6474 if a column is larger than the line_width.
6476 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6478 * common.opt: Make the ISL AST generator to be the main code generator
6481 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6483 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6485 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6488 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6490 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6491 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6492 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6494 * config/pa/pa.md (begin_brtab): Delete insn.
6495 (end_brtab): Likewise.
6497 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6499 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6501 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6503 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6504 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6505 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6506 (get_dynamic_type): Remove.
6507 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6508 (clear_speculation): Bring to ipa-deivrt.h
6509 (get_class_context): Rename to ...
6510 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6511 (contains_type_p): Update.
6512 (get_dynamic_type): Rename to ...
6513 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6514 (possible_polymorphic_call_targets): UPdate.
6515 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6516 * ipa-prop.c (ipa_analyze_call_uses): Update.
6518 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6520 * doc/invoke.texi (SH options): Document missing processor variant
6521 options. Remove references to Hitachi. Undocument deprecated mspace
6524 2014-08-15 Jason Merrill <jason@redhat.com>
6526 * tree.c (type_hash_canon): Uncomment assert.
6528 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6530 * input.h (in_system_header_at): Add comment.
6532 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6535 * diagnostic.c (build_message_string): Make it extern.
6536 * diagnostic.h (build_message_string): Make it extern.
6538 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6540 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6541 load/store from/to non-floating class pseudo.
6543 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6545 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6547 2014-08-15 Richard Biener <rguenther@suse.de>
6549 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6550 (get_constraint_for_ssa_var): Remove dead code.
6551 (get_constraint_for_1): Adjust.
6552 (find_what_var_points_to): Likewise.
6553 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6555 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6558 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6559 (_mm512_mask_cmpge_epu32_mask): Ditto.
6560 (_mm512_cmpge_epu32_mask): Ditto.
6561 (_mm512_mask_cmpge_epi64_mask): Ditto.
6562 (_mm512_cmpge_epi64_mask): Ditto.
6563 (_mm512_mask_cmpge_epu64_mask): Ditto.
6564 (_mm512_cmpge_epu64_mask): Ditto.
6565 (_mm512_mask_cmple_epi32_mask): Ditto.
6566 (_mm512_cmple_epi32_mask): Ditto.
6567 (_mm512_mask_cmple_epu32_mask): Ditto.
6568 (_mm512_cmple_epu32_mask): Ditto.
6569 (_mm512_mask_cmple_epi64_mask): Ditto.
6570 (_mm512_cmple_epi64_mask): Ditto.
6571 (_mm512_mask_cmple_epu64_mask): Ditto.
6572 (_mm512_cmple_epu64_mask): Ditto.
6573 (_mm512_mask_cmplt_epi32_mask): Ditto.
6574 (_mm512_cmplt_epi32_mask): Ditto.
6575 (_mm512_mask_cmplt_epu32_mask): Ditto.
6576 (_mm512_cmplt_epu32_mask): Ditto.
6577 (_mm512_mask_cmplt_epi64_mask): Ditto.
6578 (_mm512_cmplt_epi64_mask): Ditto.
6579 (_mm512_mask_cmplt_epu64_mask): Ditto.
6580 (_mm512_cmplt_epu64_mask): Ditto.
6581 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6582 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6583 (_mm512_cmpneq_epu32_mask): Ditto.
6584 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6585 (_mm512_cmpneq_epi64_mask): Ditto.
6586 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6587 (_mm512_cmpneq_epu64_mask): Ditto.
6588 (_mm512_castpd_ps): Ditto.
6589 (_mm512_castpd_si512): Ditto.
6590 (_mm512_castps_pd): Ditto.
6591 (_mm512_castps_si512): Ditto.
6592 (_mm512_castsi512_ps): Ditto.
6593 (_mm512_castsi512_pd): Ditto.
6594 (_mm512_castpd512_pd128): Ditto.
6595 (_mm512_castps512_ps128): Ditto.
6596 (_mm512_castsi512_si128): Ditto.
6597 (_mm512_castpd512_pd256): Ditto.
6598 (_mm512_castps512_ps256): Ditto.
6599 (_mm512_castsi512_si256): Ditto.
6600 (_mm512_castpd128_pd512): Ditto.
6601 (_mm512_castps128_ps512): Ditto.
6602 (_mm512_castsi128_si512): Ditto.
6603 (_mm512_castpd256_pd512): Ditto.
6604 (_mm512_castps256_ps512): Ditto.
6605 (_mm512_castsi256_si512): Ditto.
6606 (_mm512_cmpeq_epu32_mask): Ditto.
6607 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6608 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6609 (_mm512_cmpeq_epu64_mask): Ditto.
6610 (_mm512_cmpgt_epu32_mask): Ditto.
6611 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6612 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6613 (_mm512_cmpgt_epu64_mask): Ditto.
6614 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6615 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6616 * config/i386/i386.c (enum ix86_builtins): Add
6617 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6618 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6619 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6620 (bdesc_args): Add __builtin_ia32_si512_256si,
6621 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6622 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6623 __builtin_ia32_pd512_pd.
6624 (ix86_expand_args_builtin): Handle new FTYPEs.
6625 * config/i386/sse.md (castmode): Add 512-bit modes.
6626 (AVX512MODE2P): New.
6627 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6628 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6630 2014-08-15 Richard Biener <rguenther@suse.de>
6632 * fold-const.c (tree_swap_operands_p): Put all constants
6633 last, also strip sign-changing NOPs when considering further
6634 canonicalization. Canonicalize also when optimizing for size.
6636 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6638 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6639 one_match > zero_match case to just before simple_sequence.
6641 2014-08-15 Richard Biener <rguenther@suse.de>
6643 * data-streamer.h (streamer_string_index, string_for_index):
6645 * data-streamer-out.c (streamer_string_index): Make static.
6646 * data-streamer-in.c (string_for_index): Likewise.
6647 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6648 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6650 2014-08-15 Richard Biener <rguenther@suse.de>
6652 PR tree-optimization/62031
6653 * tree-data-ref.c (dr_analyze_indices): Do not set
6654 DR_UNCONSTRAINED_BASE.
6655 (dr_may_alias_p): All indirect accesses have to go the
6656 formerly DR_UNCONSTRAINED_BASE path.
6657 * tree-data-ref.h (struct indices): Remove
6658 unconstrained_base member.
6659 (DR_UNCONSTRAINED_BASE): Remove.
6661 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6664 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6665 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6666 in OMP_CLAUSE_MAP in some outer target region.
6668 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6670 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6671 name_expansion_cache.
6672 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6673 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6674 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6675 (difference_cannot_overflow_p): New parameter. Use affine
6676 expansion for equality check.
6677 (iv_elimination_compare_lt): Pass new argument.
6679 2014-08-14 DJ Delorie <dj@redhat.com>
6681 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6682 variables to the accumulator.
6684 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6685 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6686 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6689 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6690 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6691 (umulqihi3_virt): Likewise.
6692 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6693 (umulqihi3_real): Likewise.
6695 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6697 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6699 PR tree-optimization/62091
6700 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6701 function_entry_reached.
6702 (walk_aliased_vdefs): Clear it here.
6703 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6705 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6707 * ipa-utils.h (compare_virtual_tables): Declare.
6708 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6710 2014-08-14 Marek Polacek <polacek@redhat.com>
6713 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6714 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6716 2014-08-14 Tom de Vries <tom@codesourcery.com>
6718 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6720 2014-08-14 Tom de Vries <tom@codesourcery.com>
6722 PR rtl-optimization/62004
6723 PR rtl-optimization/62030
6724 * ifcvt.c (rtx_interchangeable_p): New function.
6725 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6726 * emit-rtl.h (mem_attrs_eq_p): Declare.
6728 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6730 * graphite-scop-detection.c:
6731 Add inclusion of cp-tree.h.
6732 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6733 in case they are pointers to object types
6735 2014-08-14 Richard Biener <rguenther@suse.de>
6737 * BASE-VER: Change to 5.0.0
6739 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6740 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6741 Anna Tikhonova <anna.tikhonova@intel.com>
6742 Ilya Tocar <ilya.tocar@intel.com>
6743 Andrey Turetskiy <andrey.turetskiy@intel.com>
6744 Ilya Verbin <ilya.verbin@intel.com>
6745 Kirill Yukhin <kirill.yukhin@intel.com>
6746 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6748 * config/i386/sse.md (define_mode_attr avx512): New.
6749 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6751 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6752 (define_mode_attr ssse3_avx2): Ditto.
6753 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6754 (define_mode_attr avx2_avx512bw): New.
6755 (define_mode_attr ssedoublemodelower): New.
6756 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6758 (define_mode_attr ssebytemode): Allow V8DI modes.
6759 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6760 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6761 (define_mode_attr ssePSmode2): New.
6762 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6764 (define_mode_attr dbpsadbwmode): New.
6765 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6766 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6767 (vi8_sse4_1_avx2_avx512): New.
6768 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6770 (define_mode_attr blendbits): Move before its immediate use.
6772 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6773 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6774 Anna Tikhonova <anna.tikhonova@intel.com>
6775 Ilya Tocar <ilya.tocar@intel.com>
6776 Andrey Turetskiy <andrey.turetskiy@intel.com>
6777 Ilya Verbin <ilya.verbin@intel.com>
6778 Kirill Yukhin <kirill.yukhin@intel.com>
6779 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6781 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6782 * config/i386/subst.md
6783 (define_mode_iterator SUBST_V): Update.
6784 (define_mode_iterator SUBST_A): Ditto.
6785 (define_subst_attr "mask_operand7"): New.
6786 (define_subst_attr "mask_operand10"): New.
6787 (define_subst_attr "mask_operand_arg34") : New.
6788 (define_subst_attr "mask_expand_op3"): New.
6789 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6790 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6791 (define_subst_attr "mask_avx512vl_condition"): New.
6792 (define_subst_attr "round_mask_operand4"): Ditto.
6793 (define_subst_attr "round_mask_scalar_op3"): Delete.
6794 (define_subst_attr "round_mask_op4"): New.
6795 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6797 (define_subst_attr "round_modev8sf_condition"): New.
6798 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6800 (define_subst_attr "round_saeonly_mask_operand4"): New.
6801 (define_subst_attr "round_saeonly_mask_op4"): New.
6802 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6803 V8DImode, V16SImode.
6804 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6805 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6806 (define_subst_attr "mask_expand4_args"): New.
6807 (define_subst "mask_expand4"): New.
6809 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6810 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6811 Anna Tikhonova <anna.tikhonova@intel.com>
6812 Ilya Tocar <ilya.tocar@intel.com>
6813 Andrey Turetskiy <andrey.turetskiy@intel.com>
6814 Ilya Verbin <ilya.verbin@intel.com>
6815 Kirill Yukhin <kirill.yukhin@intel.com>
6816 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6818 * config/i386/i386.md
6819 (define_attr "isa"): Add avx512bw,noavx512bw.
6820 (define_attr "enabled"): Ditto.
6821 (define_split): Add 32/64-bit mask logic.
6822 (define_insn "*k<logic>qi"): New.
6823 (define_insn "*k<logic>hi"): New.
6824 (define_insn "*anddi_1"): Add mask version.
6825 (define_insn "*andsi_1"): Ditto.
6826 (define_insn "*<code><mode>_1"): Ditto.
6827 (define_insn "*<code>hi_1"): Ditto.
6828 (define_insn "kxnor<mode>"): New.
6829 (define_insn "kunpcksi"): New.
6830 (define_insn "kunpckdi"): New.
6831 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6832 (define_insn "*one_cmplhi2_1"): Ditto.
6834 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6835 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6836 Anna Tikhonova <anna.tikhonova@intel.com>
6837 Ilya Tocar <ilya.tocar@intel.com>
6838 Andrey Turetskiy <andrey.turetskiy@intel.com>
6839 Ilya Verbin <ilya.verbin@intel.com>
6840 Kirill Yukhin <kirill.yukhin@intel.com>
6841 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6843 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6846 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6847 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6848 Anna Tikhonova <anna.tikhonova@intel.com>
6849 Ilya Tocar <ilya.tocar@intel.com>
6850 Andrey Turetskiy <andrey.turetskiy@intel.com>
6851 Ilya Verbin <ilya.verbin@intel.com>
6852 Kirill Yukhin <kirill.yukhin@intel.com>
6853 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6855 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6857 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6858 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6859 xmm/ymm16+ when availble.
6860 * config/i386/i386.h
6861 (HARD_REGNO_NREGS): Add mask regs.
6862 (VALID_AVX512F_REG_MODE): Ditto.
6863 (VALID_AVX512F_REG_MODE) : Define.
6864 (VALID_MASK_AVX512BW_MODE): Ditto.
6865 (reg_class) (MASK_REG_P(X)): Define.
6866 * config/i386/i386.md: Do not split long moves with mask register,
6867 use kmovb if avx512bw is availible.
6868 (movdi_internal): Handle mask registers.
6870 2014-08-14 Richard Biener <rguenther@suse.de>
6872 PR tree-optimization/62081
6873 * tree-ssa-loop.c (pass_fix_loops): New pass.
6874 (pass_tree_loop::gate): Do not fixup loops here.
6875 * tree-pass.h (make_pass_fix_loops): Declare.
6876 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6878 2014-08-14 Richard Biener <rguenther@suse.de>
6880 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6881 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6883 2014-08-14 Richard Biener <rguenther@suse.de>
6885 PR tree-optimization/62090
6886 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6887 (fold_builtin_2): Do not fold sprintf.
6888 (fold_builtin_3): Likewise.
6889 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6890 moved from builtins.c.
6891 (gimple_fold_builtin): Fold sprintf.
6893 2014-08-14 Richard Biener <rguenther@suse.de>
6895 PR rtl-optimization/62079
6896 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6899 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6901 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6902 current_function_decl.
6904 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6906 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6907 cgraph_function_node to cgraph_node::function_symbol
6910 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6912 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6913 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6915 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6917 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6920 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6922 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6925 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6928 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6929 any registers that are used in mem_insn.
6931 2014-08-12 Steve Ellcey <sellcey@mips.com>
6933 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6935 2014-08-12 Steve Ellcey <sellcey@mips.com>
6937 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6938 (MULTILIB_DIRNAMES): Ditto.
6939 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6940 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6941 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6942 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6943 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6944 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6946 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6949 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6950 of __ARM_SIZEOF_WCHAR_T.
6952 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6955 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6956 Remove unnecessary attributes.
6958 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6960 * internal-fn.c (init_internal_fns): Fix off-by-one.
6962 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6963 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6964 Anna Tikhonova <anna.tikhonova@intel.com>
6965 Ilya Tocar <ilya.tocar@intel.com>
6966 Andrey Turetskiy <andrey.turetskiy@intel.com>
6967 Ilya Verbin <ilya.verbin@intel.com>
6968 Kirill Yukhin <kirill.yukhin@intel.com>
6969 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6971 * config/i386/i386.c (standard_sse_constant_opcode): Use
6972 vpxord/vpternlog if avx512 is availible.
6974 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6977 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6978 bitfields, that is when size doesn't match the size of type or the
6979 size of the constructor.
6981 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6983 * config/rs6000/constraints.md (wh constraint): New constraint,
6984 for FP registers if direct move is available.
6985 (wi constraint): New constraint, for VSX/FP registers that can
6986 handle 64-bit integers.
6987 (wj constraint): New constraint for VSX/FP registers that can
6988 handle 64-bit integers for direct moves.
6989 (wk constraint): New constraint for VSX/FP registers that can
6990 handle 64-bit doubles for direct moves.
6991 (wy constraint): Make documentation match implementation.
6993 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6994 scalar_in_vmx_p field to simplify tests of whether SFmode or
6995 DFmode can go in the Altivec registers.
6996 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6997 (rs6000_setup_reg_addr_masks): Likewise.
6998 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6999 field, and wh/wi/wj/wk constraints.
7000 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7001 the wh/wi/wj/wk constraints.
7002 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7003 upper registers, prefer VSX registers unless the operation is a
7004 memory operation with REG+OFFSET addressing.
7006 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7007 DImode. Change SFmode to use ww constraint instead of d to allow
7008 SF registers in the upper registers.
7011 (VSr5): Fix thinko in comment.
7012 (VSa): New mode attribute that is an alternative to wa, that
7013 returns the VSX register class that a mode can go in, but may not
7014 be the preferred register class.
7015 (VS_64dm): New mode attribute for appropriate register classes for
7016 referencing 64-bit elements of vectors for direct moves and normal
7018 (VS_64reg): Likewise.
7019 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7020 register allocator to only registers the data type can handle.
7021 (vsx_le_perm_load_<mode>): Likewise.
7022 (vsx_le_perm_store_<mode>): Likewise.
7023 (vsx_xxpermdi2_le_<mode>): Likewise.
7024 (vsx_xxpermdi4_le_<mode>): Likewise.
7025 (vsx_lxvd2x2_le_<mode>): Likewise.
7026 (vsx_lxvd2x4_le_<mode>): Likewise.
7027 (vsx_stxvd2x2_le_<mode>): Likewise.
7028 (vsx_add<mode>3): Likewise.
7029 (vsx_sub<mode>3): Likewise.
7030 (vsx_mul<mode>3): Likewise.
7031 (vsx_div<mode>3): Likewise.
7032 (vsx_tdiv<mode>3_internal): Likewise.
7033 (vsx_fre<mode>2): Likewise.
7034 (vsx_neg<mode>2): Likewise.
7035 (vsx_abs<mode>2): Likewise.
7036 (vsx_nabs<mode>2): Likewise.
7037 (vsx_smax<mode>3): Likewise.
7038 (vsx_smin<mode>3): Likewise.
7039 (vsx_sqrt<mode>2): Likewise.
7040 (vsx_rsqrte<mode>2): Likewise.
7041 (vsx_tsqrt<mode>2_internal): Likewise.
7042 (vsx_fms<mode>4): Likewise.
7043 (vsx_nfma<mode>4): Likewise.
7044 (vsx_eq<mode>): Likewise.
7045 (vsx_gt<mode>): Likewise.
7046 (vsx_ge<mode>): Likewise.
7047 (vsx_eq<mode>_p): Likewise.
7048 (vsx_gt<mode>_p): Likewise.
7049 (vsx_ge<mode>_p): Likewise.
7050 (vsx_xxsel<mode>): Likewise.
7051 (vsx_xxsel<mode>_uns): Likewise.
7052 (vsx_copysign<mode>3): Likewise.
7053 (vsx_float<VSi><mode>2): Likewise.
7054 (vsx_floatuns<VSi><mode>2): Likewise.
7055 (vsx_fix_trunc<mode><VSi>2): Likewise.
7056 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7057 (vsx_x<VSv>r<VSs>i): Likewise.
7058 (vsx_x<VSv>r<VSs>ic): Likewise.
7059 (vsx_btrunc<mode>2): Likewise.
7060 (vsx_b2trunc<mode>2): Likewise.
7061 (vsx_floor<mode>2): Likewise.
7062 (vsx_ceil<mode>2): Likewise.
7063 (vsx_<VS_spdp_insn>): Likewise.
7064 (vsx_xscvspdp): Likewise.
7065 (vsx_xvcvspuxds): Likewise.
7066 (vsx_float_fix_<mode>2): Likewise.
7067 (vsx_set_<mode>): Likewise.
7068 (vsx_extract_<mode>_internal1): Likewise.
7069 (vsx_extract_<mode>_internal2): Likewise.
7070 (vsx_extract_<mode>_load): Likewise.
7071 (vsx_extract_<mode>_store): Likewise.
7072 (vsx_splat_<mode>): Likewise.
7073 (vsx_xxspltw_<mode>): Likewise.
7074 (vsx_xxspltw_<mode>_direct): Likewise.
7075 (vsx_xxmrghw_<mode>): Likewise.
7076 (vsx_xxmrglw_<mode>): Likewise.
7077 (vsx_xxsldwi_<mode>): Likewise.
7078 (vsx_xscvdpspn): Tighten constraints to only use register classes
7080 (vsx_xscvspdpn): Likewise.
7081 (vsx_xscvdpspn_scalar): Likewise.
7083 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7084 wj, and wk constraints.
7085 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7086 general purpose registers.
7088 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7090 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7091 DImode instead of wm. Use wk constraint for direct move of DFmode
7093 (extendsidi2_lfiwax): Likewise.
7096 (movdi_internal64): Likewise.
7098 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7099 wk constraints. Make the wy constraint documentation match them
7102 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7104 Replacement of isl_int by isl_val
7105 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7106 (compute_bounds_for_param): use isl_val instead of isl_int
7107 (compute_bounds_for_loop): likewise
7108 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7109 (build_linearized_memory_access): use isl_val instead of isl_int
7110 (pdr_stride_in_loop): likewise
7111 * graphite-optimize-isl.c:
7112 (getPrevectorMap): use isl_val instead of isl_int
7114 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7115 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7116 (extern the_isl_ctx): declare
7117 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7118 (extract_affine_gmp): likewise
7120 (build_loop_iteration_domains): likewise
7121 (add_param_constraints): likewise
7123 2014-08-11 Richard Biener <rguenther@suse.de>
7125 PR tree-optimization/62075
7126 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7127 handle uses in patterns.
7129 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7130 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7131 Anna Tikhonova <anna.tikhonova@intel.com>
7132 Ilya Tocar <ilya.tocar@intel.com>
7133 Andrey Turetskiy <andrey.turetskiy@intel.com>
7134 Ilya Verbin <ilya.verbin@intel.com>
7135 Kirill Yukhin <kirill.yukhin@intel.com>
7136 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7138 * common/config/i386/i386-common.c
7139 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7140 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7141 (ix86_handle_option): Handle OPT_mavx512vl.
7142 * config/i386/cpuid.h (bit_AVX512VL): Define.
7143 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7144 set -mavx512vl accordingly.
7145 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7146 OPTION_MASK_ISA_AVX512VL.
7147 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7148 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7149 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7150 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7151 * config/i386/i386.h (TARGET_AVX512VL): Define.
7152 (TARGET_AVX512VL_P(x)): Ditto.
7153 * config/i386/i386.opt: Add mavx512vl.
7155 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7157 PR tree-optimization/62073
7158 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7161 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7162 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7163 Anna Tikhonova <anna.tikhonova@intel.com>
7164 Ilya Tocar <ilya.tocar@intel.com>
7165 Andrey Turetskiy <andrey.turetskiy@intel.com>
7166 Ilya Verbin <ilya.verbin@intel.com>
7167 Kirill Yukhin <kirill.yukhin@intel.com>
7168 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7170 * common/config/i386/i386-common.c
7171 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7172 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7173 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7174 (ix86_handle_option): Handle OPT_mavx512bw.
7175 * config/i386/cpuid.h (bit_AVX512BW): Define.
7176 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7177 set -mavx512bw accordingly.
7178 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7179 OPTION_MASK_ISA_AVX512BW.
7180 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7181 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7182 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7183 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7184 * config/i386/i386.h (TARGET_AVX512BW): Define.
7185 (TARGET_AVX512BW_P(x)): Ditto.
7186 * config/i386/i386.opt: Add mavx512bw.
7188 2014-08-11 Richard Biener <rguenther@suse.de>
7190 PR tree-optimization/62070
7191 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7192 Remove SSA checking.
7194 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7196 * asan.c (asan_check_flags): New enum.
7197 (build_check_stmt_with_calls): Removed function.
7198 (build_check_stmt): Split inlining logic to
7199 asan_expand_check_ifn.
7200 (instrument_derefs): Rename parameter.
7201 (instrument_mem_region_access): Rename parameter.
7202 (instrument_strlen_call): Likewise.
7203 (asan_expand_check_ifn): New function.
7204 (asan_instrument): Remove old code.
7205 (pass_sanopt::execute): Change handling of
7206 asan-instrumentation-with-call-threshold.
7207 (asan_clear_shadow): Fix formatting.
7208 (asan_function_start): Likewise.
7209 (asan_emit_stack_protection): Likewise.
7210 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7212 * internal-fn.c (expand_ASAN_CHECK): New function.
7213 * internal-fn.def (ASAN_CHECK): New internal function.
7214 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7216 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7217 * tree.c: Small comment fix.
7219 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7221 * gimple.c (gimple_call_fnspec): Support internal functions.
7222 (gimple_call_return_flags): Use const.
7223 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7224 * internal-fn.def: Add fnspec information.
7225 * internal-fn.h (internal_fn_fnspec): New function.
7226 (init_internal_fns): Declare new function.
7227 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7228 (init_internal_fns): New function.
7229 * tree-core.h: Update macro call.
7230 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7232 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7234 * lto-streamer.h (struct output_block::symbol): Change from
7235 struct symtab_node to plain symtab_node.
7236 (referenced_from_this_partition_p): Change first parameter
7237 from struct symtab_node to plain symtab_node.
7239 2014-08-10 Marek Polacek <polacek@redhat.com>
7242 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7244 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7246 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7247 DECL correctly; do not give up on types in static storage.
7249 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7251 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7253 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7255 * graphite-isl-ast-to-gimple.c:
7256 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7258 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7260 2014-08-08 Guozhi Wei <carrot@google.com>
7262 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7264 2014-08-08 Cary Coutant <ccoutant@google.com>
7266 * dwarf2out.c (get_skeleton_type_unit): Remove.
7267 (output_skeleton_debug_sections): Remove skeleton type units.
7268 (output_comdat_type_unit): Likewise.
7269 (dwarf2out_finish): Likewise.
7271 2014-08-07 Yi Yang <ahyangyi@google.com>
7273 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7275 2014-08-08 Richard Biener <rguenther@suse.de>
7277 * lto-streamer.h (struct lto_input_block): Make it a class
7279 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7280 (struct lto_function_header, struct lto_simple_header,
7281 struct lto_simple_header_with_strings,
7282 struct lto_decl_header, struct lto_function_header): Make
7283 a simple inheritance hieararchy. Remove unused fields.
7284 (struct lto_asm_header): Remove.
7285 * lto-streamer-out.c (produce_asm): Adjust.
7286 (lto_output_toplevel_asms): Likewise.
7287 (produce_asm_for_decls): Likewise.
7288 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7289 * data-streamer-in.c (string_for_index): Likewise.
7290 * ipa-inline-analysis.c (inline_read_section): Likewise.
7291 * ipa-prop.c (ipa_prop_read_section): Likewise.
7292 (read_replacements_section): Likewise.
7293 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7294 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7295 (lto_destroy_simple_input_block): Likewise.
7296 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7297 (lto_input_toplevel_asms): Likewise.
7299 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7300 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7301 Anna Tikhonova <anna.tikhonova@intel.com>
7302 Ilya Tocar <ilya.tocar@intel.com>
7303 Andrey Turetskiy <andrey.turetskiy@intel.com>
7304 Ilya Verbin <ilya.verbin@intel.com>
7305 Kirill Yukhin <kirill.yukhin@intel.com>
7306 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7308 * common/config/i386/i386-common.c
7309 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7310 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7311 (ix86_handle_option): Handle OPT_mavx512dq.
7312 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7313 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7314 set -mavx512dq accordingly.
7315 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7316 OPTION_MASK_ISA_AVX512DQ.
7317 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7318 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7319 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7320 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7321 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7322 (TARGET_AVX512DQ_P(x)): Ditto.
7323 * config/i386/i386.opt: Add mavx512dq.
7325 2014-08-08 Richard Biener <rguenther@suse.de>
7327 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7328 target_percent, target_percent_s): Export.
7329 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7330 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7331 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7332 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7333 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7334 Move to gimple-fold.c.
7335 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7337 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7338 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7339 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7340 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7341 (rewrite_call_expr_array): Remove.
7342 (fold_builtin_sprintf_chk): Likewise.
7343 (fold_builtin_snprintf_chk): Likewise.
7344 (fold_builtin_varargs): Remove handling of sprintf_chk,
7345 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7346 (gimple_fold_builtin_sprintf_chk): Remove.
7347 (gimple_fold_builtin_snprintf_chk): Likewise.
7348 (gimple_fold_builtin_varargs): Likewise.
7349 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7350 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7351 * gimple.c (gimple_seq_add_seq_without_update): New function.
7352 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7353 * gimple-fold.c: Include output.h.
7354 (gsi_replace_with_seq_vops): New function, split out from ...
7355 (gimplify_and_update_call_from_tree): ... here.
7356 (replace_call_with_value): New function.
7357 (replace_call_with_call_and_fold): Likewise.
7358 (var_decl_component_p): Moved from builtins.c.
7359 (gimple_fold_builtin_memory_op): Moved from builtins.c
7360 fold_builtin_memory_op and rewritten to GIMPLE.
7361 (gimple_fold_builtin_memset): Likewise.
7362 (gimple_fold_builtin_strcpy): Likewise.
7363 (gimple_fold_builtin_strncpy): Likewise.
7364 (gimple_fold_builtin_strcat): Likewise.
7365 (gimple_fold_builtin_fputs): Likewise.
7366 (gimple_fold_builtin_memory_chk): Likewise.
7367 (gimple_fold_builtin_stxcpy_chk): Likewise.
7368 (gimple_fold_builtin_stxncpy_chk): Likewise.
7369 (gimple_fold_builtin_snprintf_chk): Likewise.
7370 (gimple_fold_builtin_sprintf_chk): Likewise.
7371 (gimple_fold_builtin_strlen): New function.
7372 (gimple_fold_builtin_with_strlen): New function split out from
7373 gimple_fold_builtin.
7374 (gimple_fold_builtin): Change signature and handle
7375 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7376 here. Call gimple_fold_builtin_with_strlen.
7377 (gimple_fold_call): Adjust.
7379 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7381 * calls.c (precompute_arguments): Check
7382 promoted_for_signed_and_unsigned_p and set the promoted mode.
7383 (promoted_for_signed_and_unsigned_p): New function.
7384 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7385 and set the promoted mode.
7386 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7387 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7388 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7391 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7393 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7394 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7395 (expand_call): Likewise.
7396 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7397 to get promoted mode.
7398 * combine.c (record_promoted_value): Skip > 0 comparison with
7399 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7400 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7401 of SUBREG_PROMOTED_UNSIGNED_P.
7402 (convert_modes): Likewise.
7403 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7404 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7405 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7406 SUBREG_PROMOTED_UNSIGNED_SET.
7407 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7408 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7409 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7410 SUBREG_PROMOTED_SET.
7411 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7412 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7413 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7414 of SUBREG_PROMOTED_UNSIGNED_P.
7415 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7416 (SUBREG_PROMOTED_SET): New define.
7417 (SUBREG_PROMOTED_GET): Likewise.
7418 (SUBREG_PROMOTED_SIGN): Likewise.
7419 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7420 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7421 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7422 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7423 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7424 (nonzero_bits1): Skip > 0 comparison with the results as
7425 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7426 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7427 of !SUBREG_PROMOTED_UNSIGNED_P.
7428 * simplify-rtx.c (simplify_unary_operation_1): Use new
7429 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7430 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7431 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7432 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7434 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7436 * ipa-devirt.c: Include gimple-pretty-print.h
7437 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7439 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7440 (get_polymorphic_call_info): Fix return value
7441 (type_change_info): New sturcture based on ipa-prop
7443 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7444 based on ipa-prop variant.
7445 (extr_type_from_vtbl_ptr_store): New function
7446 based on ipa-prop variant.
7447 (record_known_type): New function.
7448 (check_stmt_for_type_change): New function.
7449 (get_dynamic_type): New function.
7450 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7451 * tree-ssa-pre.c: ipa-utils.h
7452 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7453 machinery; sanity check with ipa-prop devirtualization.
7454 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7457 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7459 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7460 * alias.c, cfgexpand.c, cgraphbuild.c,
7461 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7462 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7463 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7464 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7465 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7466 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7467 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7468 dse.c, except.c, gengtype.c, gimple-expr.c,
7469 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7470 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7471 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7472 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7473 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7474 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7476 * pointer-set.c: Remove file.
7477 * pointer-set.h: Remove file.
7479 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7481 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7482 * config/arm/types.md (f_sels, f_seld): Delete.
7484 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7486 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7487 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7488 (aarch64_movdi_<mode>high): Likewise.
7489 (aarch64_mov<mode>high_di): Likewise.
7490 (aarch64_movdi_<mode>low): Likewise.
7491 (aarch64_mov<mode>low_di): Likewise.
7492 (aarch64_movtilow_tilow): Likewise.
7493 Add comment explaining usage of fp,simd attributes and of
7494 TARGET_FLOAT and TARGET_SIMD.
7496 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7497 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7499 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7500 Use MOVN when one of the half-words is 0xffff.
7502 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7504 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7506 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7508 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7509 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7510 (rfs_str): String corresponding to RFS_* constants.
7511 (rank_for_schedule_stats_t): New typedef.
7512 (rank_for_schedule_stats): New static variable.
7513 (rfs_result): New static function.
7514 (rank_for_schedule): Track statistics for deciding heuristics.
7515 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7517 (ready_sort): Use them for debug printouts.
7518 (schedule_block): Init statistics state. Print statistics on
7519 rank_for_schedule decisions.
7521 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7523 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7525 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7527 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7530 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7532 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7533 function to not conflict.
7534 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7535 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7536 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7537 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7538 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7541 2014-08-07 Marek Polacek <polacek@redhat.com>
7543 * fold-const.c (fold_binary_loc): Add folding of
7544 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7546 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7548 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7549 instead of type size.
7550 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7552 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7554 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7555 (*thumb1_movqi_insn): Likewise.
7556 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7558 2014-08-07 Tom de Vries <tom@codesourcery.com>
7560 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7561 (glibc_2_11_or_earlier): Remove effective-target keywords.
7563 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7565 * config/arm/arm.c (bdesc_2arg): Fix typo.
7566 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7568 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7570 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7572 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7575 * haifa-sched.c (advance_one_cycle): Fix dump.
7576 (schedule_block): Don't advance cycle if we are already at the
7577 beginning of the cycle.
7579 2014-08-06 Martin Jambor <mjambor@suse.cz>
7582 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7584 2014-08-06 Richard Biener <rguenther@suse.de>
7587 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7589 (lto_input_tree): Pop SCCs here.
7591 2014-08-06 Richard Biener <rguenther@suse.de>
7593 PR tree-optimization/61320
7594 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7595 handle misaligned loads.
7597 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7599 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7600 (aarch64_expand_vec_perm_const): Check for dup before zip.
7602 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7604 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7605 CONST_INT_P instead of GET_CODE and compare.
7606 (aarch64_select_cc_mode): Likewise.
7607 (aarch64_print_operand): Likewise.
7608 (aarch64_rtx_costs): Likewise.
7609 (aarch64_simd_valid_immediate): Likewise.
7610 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7611 (aarch64_simd_emit_pair_result_insn): Likewise.
7613 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7615 * gdbhooks.py (find_gcc_source_dir): New helper function.
7616 (class PassNames): New class, locating and parsing passes.def.
7617 (class BreakOnPass): New command "break-on-pass".
7619 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7621 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7624 2014-08-05 Richard Biener <rguenther@suse.de>
7626 PR rtl-optimization/61672
7627 * emit-rtl.h (mem_attrs_eq_p): Declare.
7628 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7629 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7630 * cfgcleanup.c (merge_memattrs): Likewise.
7633 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7635 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7636 rather than singleton vectors.
7637 (vqdmlsls_lane_s32): Likewise.
7639 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7641 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7642 Use VSDQ_HSI mode iterator.
7643 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7644 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7645 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7646 Use BUILTIN_VDQHS macro.
7647 (sqrdmulh_laneq): Likewise.
7648 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7649 (vqdmlals_laneq_s32): Likewise.
7650 (vqdmlslh_laneq_s16): Likewise.
7651 (vqdmlsls_laneq_s32): Likewise.
7652 (vqdmulhh_laneq_s16): Likewise.
7653 (vqdmulhs_laneq_s32): Likewise.
7654 (vqrdmulhh_laneq_s16): Likewise.
7655 (vqrdmulhs_laneq_s32): Likewise.
7657 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7659 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7660 (vmuld_laneq_f64): Likewise.
7661 (vmuls_laneq_f32): Likewise.
7662 (vmul_n_f64): Likewise.
7663 (vmuld_lane_f64): Reimplement in C.
7664 (vmuls_lane_f32): Likewise.
7666 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7668 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7670 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7672 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7674 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7675 (rbitsi2): Likewise.
7676 (*arm_rev): Set predicable and predicable_short_it attributes.
7678 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7680 * convert.c (convert_to_integer): Guard transformation to lrint by
7683 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7685 * config/aarch64/aarch64-builtins.c
7686 (aarch64_simd_builtin_type_mode): Delete.
7687 (v8qi_UP): Remap to V8QImode.
7688 (v4hi_UP): Remap to V4HImode.
7689 (v2si_UP): Remap to V2SImode.
7690 (v2sf_UP): Remap to V2SFmode.
7691 (v1df_UP): Remap to V1DFmode.
7692 (di_UP): Remap to DImode.
7693 (df_UP): Remap to DFmode.
7694 (v16qi_UP):V16QImode.
7695 (v8hi_UP): Remap to V8HImode.
7696 (v4si_UP): Remap to V4SImode.
7697 (v4sf_UP): Remap to V4SFmode.
7698 (v2di_UP): Remap to V2DImode.
7699 (v2df_UP): Remap to V2DFmode.
7700 (ti_UP): Remap to TImode.
7701 (ei_UP): Remap to EImode.
7702 (oi_UP): Remap to OImode.
7703 (ci_UP): Map to CImode.
7704 (xi_UP): Remap to XImode.
7705 (si_UP): Remap to SImode.
7706 (sf_UP): Remap to SFmode.
7707 (hi_UP): Remap to HImode.
7708 (qi_UP): Remap to QImode.
7709 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7710 (VAR1): Build builtin name.
7711 (aarch64_init_simd_builtins): Remove dead code.
7713 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7715 * graphite-isl-ast-to-gimple.c:
7716 (set_options): New function.
7717 (scop_to_isl_ast): Add calling of set_options.
7719 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7721 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7722 (analyze_iv_to_split_insn): Don't initialize them.
7723 (get_ivts_expr): Removed.
7724 (allocate_basic_variable, insert_base_initialization): Use
7725 SET_SRC instead of *get_ivts_expr.
7726 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7728 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7730 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7731 (translate_isl_ast_for_loop): Add checking of the
7732 flag_loop_parallelize_all.
7733 (ast_build_before_for): New function.
7734 (scop_to_isl_ast): Add checking of the
7735 flag_loop_parallelize_all.
7736 * graphite-dependences.c: Move the defenition of the
7737 scop_get_dependences from graphite-optimize-isl.c to this file.
7738 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7739 (carries_deps): Add checking of the x's value.
7740 * graphite-optimize-isl.c: Move the defenition of the
7741 scop_get_dependences to graphite-dependences.c.
7742 * graphite-poly.h: Add declarations of scop_get_dependences
7745 2014-08-04 Rohit <rohitarulraj@freescale.com>
7748 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7750 (alt_reg_names): Likewise.
7751 (rs6000_dwarf_register_span): For SPE high registers, replace
7752 dwarf register numbers with GCC hard register numbers.
7753 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7754 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7755 register number for the corresponding GCC hard register number.
7756 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7757 newly added GCC hard register numbers for SPE high registers.
7758 (DWARF_FRAME_REGISTERS): Likewise.
7759 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7760 (DWARF_FRAME_REGNUM): Likewise.
7761 (FIXED_REGISTERS): Likewise.
7762 (CALL_USED_REGISTERS): Likewise.
7763 (CALL_REALLY_USED_REGISTERS): Likewise.
7764 (REG_ALLOC_ORDER): Likewise.
7765 (enum reg_class): Likewise.
7766 (REG_CLASS_NAMES): Likewise.
7767 (REG_CLASS_CONTENTS): Likewise.
7768 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7770 2014-08-04 Richard Biener <rguenther@suse.de>
7772 * gimple-fold.h (gimple_fold_builtin): Remove.
7773 * gimple-fold.c (gimple_fold_builtin): Make static.
7774 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7775 fold_stmt, not gimple_fold_builtin.
7777 2014-08-04 Martin Liska <mliska@suse.cz>
7779 * cgraph.h (csi_end_p): Removed.
7780 (csi_next): Likewise.
7781 (csi_node): Likewise.
7782 (csi_start): Likewise.
7783 (cgraph_node_in_set_p): Likewise.
7784 (cgraph_node_set_size): Likewise.
7785 (vsi_end_p): Likewise.
7786 (vsi_next): Likewise.
7787 (vsi_node): Likewise.
7788 (vsi_start): Likewise.
7789 (varpool_node_set_size): Likewise.
7790 (cgraph_node_set_nonempty_p): Likewise.
7791 (varpool_node_set_nonempty_p): Likewise.
7792 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7794 * ipa-inline-transform.c: Likewise.
7795 * ipa-utils.c (cgraph_node_set_new): Removed.
7796 (cgraph_node_set_add): Likewise.
7797 (cgraph_node_set_remove): Likewise.
7798 (cgraph_node_set_find): Likewise.
7799 (dump_cgraph_node_set): Likewise.
7800 (debug_cgraph_node_set): Likewise.
7801 (free_cgraph_node_set): Likewise.
7802 (varpool_node_set_new): Likewise.
7803 (varpool_node_set_add): Likewise.
7804 (varpool_node_set_remove): Likewise.
7805 (varpool_node_set_find): Likewise.
7806 (dump_varpool_node_set): Likewise.
7807 (free_varpool_node_set): Likewise.
7808 (debug_varpool_node_set): Likewise.
7809 * tree-emutls.c (struct tls_var_data):
7810 (emutls_index): Removed.
7811 (emutls_decl): Likewise.
7812 (gen_emutls_addr): Function implementation uses newly added
7813 hash_map<varpool_node *, tls_var_data>.
7814 (clear_access_vars): Likewise.
7815 (create_emultls_var): Likewise.
7816 (ipa_lower_emutls): Likewise.
7817 (reset_access): New function.
7819 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7821 * config/i386/i386.c (ix86_option_override_internal): Add
7822 PTA_RDRND and PTA_MOVBE for bdver4.
7824 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7825 James Greenhalgh <james.greenhalgh@arm.com>
7827 * doc/md.texi (clrsb): Document.
7828 (clz): Change reference to x into operand 1.
7830 (popcount): Likewise.
7832 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7835 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7836 move to subtarget in serial version if result is ignored.
7838 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7839 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7841 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7842 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7843 (sched_analyze_insn): Update use of try_group_insn to
7844 sched_macro_fuse_insns.
7845 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7846 arguments that are not conditional jumps.
7848 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7850 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7851 family information. Handle BTVER2 cpu with cpuid family value.
7853 2014-08-04 Tom de Vries <tom@codesourcery.com>
7855 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7856 (glibc_2_11_or_earlier): Document effective-target keywords.
7858 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7860 * ipa-devirt.c (odr_type_warn_count): Add type.
7861 (possible_polymorphic_call_targets): Set it.
7862 (ipa_devirt): Use it.
7864 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7866 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7868 * ipa-devirt.c: Include hash-map.h
7869 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7870 (clear_speculation): Break out of ...
7871 (get_class_context): ... here; speed up handling obviously useless
7873 (odr_type_warn_count, decl_warn_count): New structures.
7874 (final_warning_record): New structure.
7875 (final_warning_records): New static variable.
7876 (possible_polymorphic_call_targets): Cleanup handling of
7877 speculative info; do not build speculation when user do not care;
7878 record info about warnings when asked for.
7879 (add_decl_warning): New function.
7880 (type_warning_cmp): New function.
7881 (decl_warning_cmp): New function.
7882 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7883 (gate): Enable pass when warnings are requested.
7884 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7887 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7889 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7891 (hash_map::remove): New method.
7892 (hash_map::traverse): New method.
7893 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7894 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7895 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7896 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7897 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7898 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7901 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7903 * hash-set.h: new File.
7904 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7905 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7906 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7907 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7908 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7909 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7910 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7911 varpool.c: Use hash_set instead of pointer_set.
7913 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7915 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7917 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7919 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7920 for frame access when strict_p is false.
7922 2014-08-01 Renlin Li <renlin.li@arm.com>
7923 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7925 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7926 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7927 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7929 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7931 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7932 aarch64_mem_pair_offset.
7934 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7936 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7938 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7939 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7941 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7943 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7945 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7948 * cgraphunit.c (analyze_functions): Use get_create rather than get
7949 for decls which are clones of abstract functions.
7951 2014-08-01 Martin Liska <mliska@suse.cz>
7953 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7954 * ipa-prop.h (count_formal_params): Global function created from static.
7955 * ipa-prop.c (count_formal_params): Likewise.
7956 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7957 profiles for semantically equivalent functions.
7958 * passes.c (do_per_function): If we load body of a function
7959 during WPA, this condition should behave same.
7960 * varpool.c (ctor_for_folding): More tolerant assert for variable
7961 aliases created during WPA.
7963 2014-08-01 Martin Liska <mliska@suse.cz>
7965 * doc/invoke.texi (Options That Control Optimization): Documentation
7966 for -foptimize-strlen introduced. Optimization levels default options
7969 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7971 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7972 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7973 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7975 * stor-layout.h (min_align_of_type): New prototype.
7976 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7977 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7979 * ubsan.c: Include builtins.h.
7980 (ubsan_expand_bounds_ifn): Change return type to bool,
7982 (ubsan_expand_null_ifn): Change return type to bool, change
7983 argument to gimple_stmt_iterator *. Handle both null and alignment
7984 sanitization, take type from ckind argument's type rather than
7986 (instrument_member_call): Removed.
7987 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7988 Handle both null and alignment sanitization, don't say whole
7989 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7990 call instead of 2 argument.
7991 (instrument_null): Adjust instrument_mem_ref caller. Don't
7992 instrument calls here.
7993 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7995 * stor-layout.c (min_align_of_type): New function.
7996 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7997 Or it into SANITIZE_UNDEFINED.
7998 * doc/invoke.texi (-fsanitize=alignment): Document.
8000 2014-07-31 Andi Kleen <ak@linux.intel.com>
8002 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8004 2014-07-31 Andi Kleen <ak@linux.intel.com>
8006 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8008 (vn_reference_compute_hash): Dito.
8009 (vn_nary_op_compute_hash): Dito.
8010 (vn_phi_compute_hash): Dito.
8011 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8013 2014-07-31 Andi Kleen <ak@linux.intel.com>
8015 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8016 Rename to inchash:add_expr_commutative. Convert to inchash.
8017 (iterative_hash_hashable_expr): Rename to
8018 inchash:add_hashable_expr. Convert to inchash.
8019 (avail_expr_hash): Dito.
8021 2014-07-31 Andi Kleen <ak@linux.intel.com>
8023 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8026 2014-07-31 Andi Kleen <ak@linux.intel.com>
8028 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8030 2014-07-31 Andi Kleen <ak@linux.intel.com>
8032 * Makefile.in (OBJS): Add rtlhash.o
8033 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8034 (loc_checksum): Dito.
8035 (loc_checksum_ordered): Dito.
8036 (hash_loc_operands): Dito.
8038 (hash_loc_list): Dito.
8039 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8040 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8041 * rtlhash.c: New file.
8042 * rtlhash.h: New file.
8044 2014-07-31 Andi Kleen <ak@linux.intel.com>
8046 * inchash.h (inchash): Change inchash class to namespace.
8047 (class hash): ... Rename from inchash.
8048 (add_object): Move from macro to class template.
8049 * lto-streamer-out.c (hash_tree): Change inchash
8051 * tree.c (build_type_attribute_qual_variant): Dito.
8052 (type_hash_list): Dito.
8053 (attribute_hash_list): Dito.
8054 (iterative_hstate_expr): Rename to inchash::add_expr
8055 (build_range_type_1): Change inchash to inchash::hash
8056 and use hash::add_expr.
8057 (build_array_type_1): Dito.
8058 (build_function_type): Dito
8059 (build_method_type_directly): Dito.
8060 (build_offset_type): Dito.
8061 (build_complex_type): Dito.
8062 (make_vector_type): Dito.
8063 * tree.h (iterative_hash_expr): Dito.
8065 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8067 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8069 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8071 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8072 correct alphabetical position.
8073 (vpaddd_f64): Rewrite using builtins.
8074 (vpaddd_s64): Move to correct alphabetical position.
8077 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8080 * config/sh/sh.c (sh_legitimate_address_p,
8081 sh_legitimize_reload_address): Handle reg+reg address modes when
8082 ALLOW_INDEXED_ADDRESS is false.
8083 * config/sh/predicates.md (general_movsrc_operand,
8084 general_movdst_operand): Likewise.
8086 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8088 * config/aarch64/aarch64-builtins.c
8089 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8092 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8094 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8095 the generated mask based on BYTES_BIG_ENDIAN.
8096 (aarch64_simd_check_vect_par_cnst_half): New.
8097 * config/aarch64/aarch64-protos.h
8098 (aarch64_simd_check_vect_par_cnst_half): New.
8099 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8100 the check out to aarch64_simd_check_vect_par_cnst_half.
8101 (vect_par_cnst_lo_half): Likewise.
8102 * config/aarch64/aarch64-simd.md
8103 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8104 (move_hi_quad_<mode>): Always generate a low mask.
8106 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8108 * doc/invoke.texi (AVR Options): Add documentation about
8109 __AVR_DEVICE_NAME__ built-in macro.
8111 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8114 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8115 constraints are satisfied.
8116 (<shift>di3_neon): Likewise.
8118 2014-07-31 Richard Biener <rguenther@suse.de>
8120 PR tree-optimization/61964
8121 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8122 by structural equality.
8124 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8126 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8127 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8128 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8130 * gcc.c (sanitize_spec_function): Support new option.
8131 (SANITIZER_SPEC): Remove now redundant check.
8132 * opts.c (common_handle_option): Support new option.
8133 (finish_options): Check for incompatibilities.
8134 * toplev.c (process_options): Split userspace-specific checks.
8136 2014-07-31 Richard Biener <rguenther@suse.de>
8138 * lto-streamer.h (struct output_block): Remove global.
8139 (struct data_in): Remove labels, num_named_labels and
8141 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8142 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8144 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8147 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8148 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8149 (isolate_path): New argument to avoid inserting a trap.
8150 (find_implicit_erroneous_behaviour): Handle returning the address
8151 of a local variable.
8152 (find_explicit_erroneous_behaviour): Likewise.
8154 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8157 * toplev.c (init_random_seed): Move piece of code never called to
8159 (set_random_seed): see above.
8161 2014-07-31 Tom de Vries <tom@codesourcery.com>
8163 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8165 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8167 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8168 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8170 2014-07-31 Richard Biener <rguenther@suse.de>
8172 * data-streamer.h (streamer_write_data_stream): Declare here,
8174 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8175 * lto-cgraph.c (lto_output_node): Adjust.
8176 (lto_output_varpool_node): Likewise.
8177 * data-streamer-out.c (streamer_string_index): Likewise.
8178 (streamer_write_data_stream, lto_append_block): Move from ...
8179 * lto-section-out.c (lto_output_data_stream,
8180 lto_append_block): ... here.
8182 2014-07-30 Mike Stump <mikestump@comcast.net>
8184 * configure.ac: Also check for popen.
8185 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8186 * configure: Regenerate.
8187 * config.in: Regenerate.
8189 2014-07-30 Martin Jambor <mjambor@suse.cz>
8191 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8192 parameter to gimple.
8194 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8196 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8197 address as second parameter to __tpf_eh_return routine.
8199 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8201 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8204 2014-07-30 Tom Tromey <tromey@redhat.com>
8207 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8208 * doc/extend.texi (Type Attributes): Document designated_init
8211 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8213 * graphite-isl-ast-to-gimple.c:
8214 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8215 (gcc_expression_from_isl_expression): Pass type to
8216 gcc_expression_from_isl_ast_expr_id.
8218 2014-07-30 Richard Biener <rguenther@suse.de>
8220 * lto-streamer.h (lto_write_data): New function.
8221 * langhooks.c (lhd_append_data): Do not free block.
8222 * lto-section-out.c (lto_write_data): New function writing
8223 raw data to the current section.
8224 (lto_write_stream): Adjust for langhook semantic change.
8225 (lto_destroy_simple_output_block): Write header directly.
8226 * lto-opts.c (lto_write_options): Write options directly.
8227 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8228 (lto_output_toplevel_asms): Likewise.
8229 (copy_function_or_variable): Copy data directly.
8230 (write_global_references): Output index table directly.
8231 (lto_output_decl_state_refs): Likewise.
8232 (write_symbol): Write data directly.
8233 (produce_symtab): Adjust.
8234 (produce_asm_for_decls): Output header and refs directly.
8236 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8238 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8239 to speculative_targets
8240 (get_class_context): Fix handling of contextes without outer type;
8241 avoid matching non-polymorphic types in LTO.
8242 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8243 parameter to speculative_targetsp; handle speculation.
8244 (dump_possible_polymorphic_call_targets): Update dumping.
8246 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8248 * common.opt (Wodr): Enable by default.
8250 2014-07-29 Olivier Hainque <hainque@adacore.com>
8252 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8254 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8257 * gengtype.c (strtoken): New function.
8258 (create_user_defined_type): Replace strtok with strtoken.
8260 2014-07-29 Nathan Sidwell <nathan@acm.org>
8262 * gcov-io.c (gcov_var): Make hidden.
8263 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8264 (gcov_do_dump): Declare.
8265 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8267 2014-07-29 Martin Jambor <mjambor@suse.cz>
8269 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8270 parameter to gimple.
8271 (sra_modify_assign): Likewise.
8273 2014-07-29 Richard Biener <rguenther@suse.de>
8276 * expr.c (expand_expr_real_2): Revert last change.
8278 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8280 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8281 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8282 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8284 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8285 (contains_type_p): Forward declare.
8286 (polymorphic_call_target_hasher::hash): Hash speculative info.
8287 (polymorphic_call_target_hasher::equal): Compare speculative info.
8288 (get_class_context): Handle speuclation.
8289 (contains_type_p): Update.
8290 (get_polymorphic_call_info_for_decl): Update.
8291 (walk_ssa_copies): Break out from ...
8292 (get_polymorphic_call_info): ... here; set speculative context
8294 * ipa-prop.c (ipa_write_indirect_edge_info,
8295 ipa_read_indirect_edge_info): Stream speculative context.
8296 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8297 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8298 SPECULATIVE_MAYBE_DERIVED_TYPE).
8299 (possible_polymorphic_call_targets overriders): Update.
8300 (dump_possible_polymorphic_call_targets overriders): Update.
8301 (dump_possible_polymorphic_call_target_p overriders): Update.
8303 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8305 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8306 ipa-devirt path; fix thinko there.
8308 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8310 * config/i386/i386.c (ix86_return_in_memory): Replace one
8311 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8313 2014-07-28 Marek Polacek <polacek@redhat.com>
8315 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8317 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8319 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8320 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8321 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8322 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8323 (USE_LD_AS_NEEDED): Likewise.
8324 (ASM_APP_ON): Likewise.
8325 (ASM_APP_OFF): Likewise.
8326 (TARGET_POSIX_IO): Likewise.
8327 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8328 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8329 (USE_LD_AS_NEEDED): Likewise.
8330 (ASM_APP_ON): Likewise.
8331 (ASM_APP_OFF): Likewise.
8332 (TARGET_POSIX_IO): Likewise.
8334 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8337 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8338 operators other than the equality operators.
8340 2014-07-28 Richard Biener <rguenther@suse.de>
8343 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8344 sure to register SImode ones, not only >= word_mode ones.
8345 * expr.c (expand_expr_real_2): When expanding -ftrapv
8346 binops do not use OPTAB_LIB_WIDEN.
8348 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8351 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8352 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8353 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8354 inserting them in the insn stream.
8356 2014-07-28 Marek Polacek <polacek@redhat.com>
8359 * common.opt (Wodr): Add Var.
8361 2014-07-28 Richard Biener <rguenther@suse.de>
8363 PR tree-optimization/61921
8364 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8365 if there is a varpool node before dereferencing it.
8367 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8369 * graphite-sese-to-poly.c:
8370 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8371 id of the pbb), which contains pointer to the pbb1.
8373 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8375 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8377 * graphite-isl-ast-to-gimple.c:
8378 (graphite_create_new_guard): New function.
8379 (translate_isl_ast_node_if): New function.
8380 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8382 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8384 2014-07-27 Anthony Green <green@moxielogic.com>
8386 * config.gcc: Add moxie-*-moxiebox* configuration.
8387 * config/moxie/moxiebox.h: New file.
8389 2014-07-26 Andrew Pinski <apinski@cavium.com>
8391 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8392 from the read only register.
8394 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8396 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8397 as the allocation class if it isn't likely to be spilled.
8399 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8401 * rtl.h (tls_referenced_p): Declare.
8402 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8403 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8404 (mips_cannot_force_const_mem): Use tls_referenced_p.
8405 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8406 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8407 instead of pa_tls_referenced_p.
8408 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8409 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8410 (pa_legitimate_constant_p): Likewise.
8411 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8412 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8413 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8414 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8415 rs6000_tls_referenced_p.
8416 (rs6000_tls_symbol_ref_1): Delete.
8418 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8421 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8422 Optimize inverse of a VEC_CONCAT.
8424 2014-07-25 Xinliang David Li <davidxl@google.com>
8426 * params.def: New parameter.
8427 * coverage.c (get_coverage_counts): Check new flag.
8428 (coverage_compute_profile_id): Check new flag.
8429 (coverage_begin_function): Check new flag.
8430 (coverage_end_function): Check new flag.
8431 * value-prof.c (coverage_node_map_initialized_p): New function.
8432 (init_node_map): Populate map with all functions.
8433 * doc/invoke.texi: Document new parameter.
8435 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8436 Richard Biener <rguenther@suse.de>
8438 * lto-streamer-out.c (struct sccs): Turn to ...
8439 (class DFS): ... this one; refactor the DFS walk so it can
8440 be re-done on per-SCC basis.
8441 (DFS::DFS): New constructor.
8442 (DFS::~DFS): New destructor.
8443 (hash_tree): Add new MAP argument holding in-SCC hash values;
8444 remove POINTER_TYPE hashing hack.
8445 (scc_entry_compare): Rename to ...
8446 (DFS::scc_entry_compare): ... this one.
8447 (hash_scc): Rename to ...
8448 (DFS::hash_scc): ... this one; pass output_block instead
8449 of streamer_cache; work harder to get unique and stable SCC
8451 (DFS_write_tree): Rename to ...
8452 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8453 (lto_output_tree): Update.
8455 2014-07-25 Andi Kleen <ak@linux.intel.com>
8457 * lto-streamer-out.c (hash_tree): Convert to inchash.
8459 2014-07-25 Andi Kleen <ak@linux.intel.com>
8461 * tree.c (build_type_attribute_qual_variant): Use inchash.
8462 (type_hash_list): Dito.
8463 (attribute_hash_list): Dito
8464 (iterative_hstate_expr): Dito.
8465 (iterative_hash_expr): Dito.
8466 (build_range_type_1): Dito.
8467 (build_array_type_1): Dito.
8468 (build_function_type): Dito.
8469 (build_method_type_directly): Dito.
8470 (build_offset_type): Dito.
8471 (build_complex_type): Dito.
8472 (make_vector_type): Dito.
8473 * tree.h (iterative_hash_expr): Add compat wrapper.
8474 (iterative_hstate_expr): Add.
8476 2014-07-25 Andi Kleen <ak@linux.intel.com>
8478 * Makefile.in (OBJS): Add inchash.o.
8479 (PLUGIN_HEADERS): Add inchash.h.
8480 * ipa-devirt.c: Include inchash.h.
8481 * lto-streamer-out.c: Dito.
8482 * tree-ssa-dom.c: Dito.
8483 * tree-ssa-pre.c: Dito.
8484 * tree-ssa-sccvn.c: Dito.
8485 * tree-ssa-tail-merge.c: Dito.
8487 * tree.c (iterative_hash_hashval_t): Move to ...
8488 (iterative_hash_host_wide_int): Move to ...
8489 * inchash.c: Here. New file.
8490 * tree.h (iterative_hash_hashval_t): Move to ...
8491 (iterative_hash_host_wide_int): Move to ...
8492 * inchash.h: Here. New file.
8494 2014-07-25 Richard Biener <rguenther@suse.de>
8498 * fold-const.c (native_encode_int): Add and handle offset
8499 parameter to do partial encodings of expr.
8500 (native_encode_fixed): Likewise.
8501 (native_encode_real): Likewise.
8502 (native_encode_complex): Likewise.
8503 (native_encode_vector): Likewise.
8504 (native_encode_string): Likewise.
8505 (native_encode_expr): Likewise.
8506 * fold-const.c (native_encode_expr): Add offset parameter
8508 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8509 (fold_ctor_reference): Handle all reads from tcc_constant
8512 2014-07-25 Richard Biener <rguenther@suse.de>
8514 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8517 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8519 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8521 2014-07-24 Kyle McMartin <kyle@redhat.com>
8523 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8525 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8527 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8529 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8531 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8532 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8533 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8535 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8537 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8538 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8539 aggregate types. Instead, *all* aggregate types, except for single-
8540 element or homogeneous float/vector aggregates, are quadword-aligned
8541 if required by their type alignment. Issue -Wpsabi note when a type
8542 is now treated differently than before.
8544 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8546 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8547 does not fit fully into floating-point registers, and there is still
8548 space in the register parameter area, use GPRs to pass those parts
8549 of the argument. Issue -Wpsabi note if any parameter is now treated
8550 differently than before.
8551 (rs6000_arg_partial_bytes): Update.
8553 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8555 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8557 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8559 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8560 * toplev.c (initialize_rtl): Don't use it. Move previously
8561 "language-dependent" calls to...
8562 (backend_init): ...here.
8563 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8564 Assert that RTL initialization hasn't happend yet.
8566 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8568 PR rtl-optimization/61629
8569 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8570 they have already been initialized.
8572 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8575 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8576 DECL_INCOMING_RTL and entry_parm.
8577 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8578 * calls.c (load_register_parameters): Likewise argument values.
8579 (emit_library_call_value_1, store_one_arg): Likewise argument
8581 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8583 * explow.c (validize_mem): Modify the argument in-place.
8585 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8587 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8588 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8590 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8592 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8593 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8595 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8597 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8598 (aarch64_save_callee_saves): New parameter "skip_wb".
8599 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8601 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8603 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8605 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8607 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8609 * graphite-isl-ast-to-gimple.c:
8610 (graphite_create_new_loop): Add calling of isl_id_free to properly
8611 decrement reference counts.
8613 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8615 2014-07-24 Martin Liska <mliska@suse.cz>
8616 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8618 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8619 (rs6000_code_end): Likewise.
8621 2014-07-24 Martin Liska <mliska@suse.cz>
8623 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8624 symtab_node funtion used.
8625 (rs6000_xcoff_declare_object_name): Likewise.
8627 2014-07-24 Martin Liska <mliska@suse.cz>
8629 * cgraphunit.c (compile): Correct function used.
8631 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8633 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8636 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8639 * varasm.c (bss_initializer_p): Handle offlined ctors.
8640 (align_variable, get_variable_align): Likewise.
8641 (make_decl_one_only): Likewise.
8642 (default_binds_local_p_1): Likewise.
8643 (decl_binds_to_current_def_p): Likewise.
8644 (get_variable_section): Get constructor if it is offlined.
8645 (assemble_variable_contents): Sanity check that the caller
8646 streamed in the ctor in LTO.
8648 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8650 * graphite-isl-ast-to-gimple.c:
8651 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8652 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8653 isl_ast_op_pdiv_r to the different case.
8655 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8657 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8660 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8661 when flag_errno_math is on.
8663 2014-07-24 Martin Liska <mliska@suse.cz>
8665 * cgraph.h (varpool_node):
8666 (availability get_availability (void)):
8667 created from cgraph_variable_initializer_availability
8668 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8669 created from: cgraph_variable_initializer_availability
8670 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8671 (void finalize_named_section_flags (void)):
8672 created from varpool_finalize_named_section_flags
8673 (bool assemble_decl (void)): created from varpool_assemble_decl
8674 (void analyze (void)): created from varpool_analyze_node
8675 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8676 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8677 (void remove_initializer (void)): created from varpool_remove_initializer
8678 (tree get_constructor (void)): created from varpool_get_constructor
8679 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8680 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8681 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8682 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8683 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8684 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8685 (static bool output_variables (void)): created from varpool_output_variables
8686 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8687 created from varpool_extra_name_alias
8688 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8689 (static void dump_varpool (FILE *f)): created from dump_varpool
8690 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8691 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8692 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8693 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8694 (void assemble_aliases (void)): created from assemble_aliases
8696 2014-07-24 Martin Liska <mliska@suse.cz>
8698 * cgraph.h (symtab_node):
8699 (void register_symbol (void)): created from symtab_register_node
8700 (void remove (void)): created from symtab_remove_node
8701 (void dump (FILE *f)): created from dump_symtab_node
8702 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8703 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8704 (struct ipa_ref *add_reference (symtab_node *referred_node,
8705 enum ipa_ref_use use_type)): created from add_reference
8706 (struct ipa_ref *add_reference (symtab_node *referred_node,
8707 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8708 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8709 gimple stmt)): created from maybe_add_reference
8710 (bool semantically_equivalent_p (symtab_node *target)): created from
8711 symtab_semantically_equivalent_p
8712 (void remove_from_same_comdat_group (void)): created from
8713 remove_from_same_comdat_group
8714 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8715 symtab_add_to_same_comdat_group
8716 (void dissolve_same_comdat_group_list (void)): created from
8717 symtab_dissolve_same_comdat_group_list
8718 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8719 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8720 created from symtab_alias_ultimate_target
8721 (inline symtab_node *next_defined_symbol (void)): created from
8722 symtab_next_defined_symbol
8723 (bool resolve_alias (symtab_node *target)): created from
8724 symtab_resolve_alias
8725 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8726 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8727 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8728 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8729 (void set_section (const char *section)): created from set_section_1
8730 (enum availability get_availability (void)): created from symtab_node_availability
8731 (void make_decl_local (void)): created from symtab_make_decl_local
8732 (bool real_symbol_p (void)): created from symtab_read_node
8733 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8734 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8735 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8736 symtab_in_same_comdat_p;
8737 (bool address_taken_from_non_vtable_p (void)): created from
8738 address_taken_from_non_vtable_p
8739 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8740 (static void dump_table (FILE *)): created from dump_symtab
8741 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8742 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8743 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8744 symtab_used_from_object_file_p
8745 (void dump_base (FILE *)): created from dump_symtab_base
8746 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8747 (void unregister (void)): created from symtab_unregister_node
8748 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8749 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8750 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8751 symtab_nonoverwritable_alias_1
8752 * cgraph.h (cgraph_node):
8753 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8754 created from cgraph_remove_node_and_inline_clones
8755 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8756 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8757 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8758 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8759 created from cgraph_function_node
8760 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8761 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8762 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8763 created from cgraph_create_clone
8764 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8765 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8766 created from cgraph_create_virtual_clone
8767 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8768 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8769 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8770 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8771 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8772 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8773 created from cgraph_function_version_info
8774 (struct cgraph_function_version_info *insert_new_function_version (void)):
8775 created from insert_new_cgraph_node_version
8776 (struct cgraph_function_version_info *function_version (void)): created from
8777 get_cgraph_node_version
8778 (void analyze (void)): created from analyze_function
8779 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8780 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8781 tree real_alias) cgraph_add_thunk
8782 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8783 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8784 created from cgraph_function_or_thunk_node
8785 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8786 created from expand_thunk
8787 (void reset (void)): created from cgraph_reset_node
8788 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8789 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8790 (void remove (void)): created from cgraph_remove_node
8791 (void dump (FILE *f)): created from dump_cgraph_node
8792 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8793 (bool get_body (void)): created from cgraph_get_body
8794 (void release_body (void)): created from cgraph_release_function_body
8795 (void unnest (void)): created from cgraph_unnest_node
8796 (void make_local (void)): created from cgraph_make_node_local
8797 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8798 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8799 gcov_type count, int freq)): created from cgraph_create_edge
8800 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8801 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8802 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8803 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8804 created from cgraph_create_edge_including_clones
8805 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8806 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8807 (void remove_callers (void)): created from cgraph_node_remove_callers
8808 (void remove_callees (void)): created from cgraph_node_remove_callees
8809 (enum availability get_availability (void)): created from cgraph_function_body_availability
8810 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8811 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8812 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8813 (void call_duplication_hooks (cgraph_node *node2)): created from
8814 cgraph_call_node_duplication_hooks
8815 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8816 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8817 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8818 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8819 (void call_function_insertion_hooks (void)):
8820 created from cgraph_call_function_insertion_hooks
8821 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8822 (bool local_p (void)): created from cgraph_local_node
8823 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8824 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8825 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8826 (inline bool only_called_directly_or_aliased_p (void)):
8827 created from cgraph_only_called_directly_or_aliased_p
8828 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8829 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8830 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8831 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8832 (bool can_remove_if_no_direct_calls_p (void)):
8833 created from cgraph_can_remove_if_no_direct_calls_p
8834 (inline bool has_gimple_body_p (void)):
8835 created from cgraph_function_with_gimple_body_p
8836 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8837 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8838 (static inline void debug_cgraph (void)): created from debug_cgraph
8839 (static void record_function_versions (tree decl1, tree decl2)):
8840 created from record_function_versions
8841 (static void delete_function_version (tree decl)):
8842 created from delete_function_version
8843 (static void add_new_function (tree fndecl, bool lowered)):
8844 created from cgraph_add_new_function
8845 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8846 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8847 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8848 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8849 (static cgraph_node *get_for_asmname (tree asmname)):
8850 created from cgraph_node_for_asm
8851 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8852 created from cgraph_same_body_alias
8853 (static bool used_from_object_file_p_worker (cgraph_node *node,
8854 void *): new function
8855 (static bool non_local_p (cgraph_node *node, void *)):
8856 created from cgraph_non_local_node_p_1
8857 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8858 created from verify_cgraph
8859 (static bool make_local (cgraph_node *node, void *)):
8860 created from cgraph_make_node_local
8861 (static cgraph_node *create_alias (tree alias, tree target)):
8862 created from cgraph_create_function_alias
8863 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8864 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8865 created from cgraph_create_edge_1
8866 * cgraph.h (varpool_node):
8867 (void remove (void)): created from varpool_remove_node
8868 (void dump (FILE *f)): created from dump_varpool_node
8870 2014-07-24 Richard Biener <rguenther@suse.de>
8873 * tree-ssa-structalias.c (create_variable_info_for_1):
8874 Use varpool_get_constructor.
8875 (create_variable_info_for): Likewise.
8877 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8879 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8880 subtract outgoing area size when restoring stack_pointer_rtx.
8882 2014-07-24 Nick Clifton <nickc@redhat.com>
8884 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8885 that operations are taking place in parallel.
8886 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8888 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8890 * omp-low.c (extract_omp_for_data): Add missing break statement.
8892 2014-07-24 Richard Biener <rguenther@suse.de>
8894 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8895 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8896 and adjust MOVE_RATIO query accordingly.
8897 (estimate_num_insns): Adjust callers.
8898 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8899 * ipa-cp.c (gather_context_independent_values,
8900 estimate_local_effects): Likewise.
8901 * ipa-split.c (consider_split): Likewise.
8903 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8905 * config/i386/driver-i386.c: Remove names of unused arguments and
8906 unnecessary unused attributes.
8907 * config/i386/host-mingw32.c: Likewise.
8908 * config/i386/i386.c: Likewise.
8909 * config/i386/winnt-stubs.c: Likewise.
8910 * config/i386/winnt.c: Likewise.
8912 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8914 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8915 (aarch64_gen_loadwb_pair): New helper function.
8916 (aarch64_expand_epilogue): Simplify code using new helper functions.
8917 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8919 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8921 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8922 (aarch64_gen_storewb_pair): New helper function.
8923 (aarch64_expand_prologue): Simplify code using new helper functions.
8924 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8926 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8928 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8929 Rename to aarch64_save_callee_saves, remove restore code.
8930 (aarch64_restore_callee_saves): New function.
8932 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8934 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8935 (aarch64_save_callee_saves): New function to handle reg save
8936 for both core and vectore regs.
8938 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8940 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8941 (aarch64_gen_store_pair): New helper function.
8942 (aarch64_save_or_restore_callee_save_registers)
8943 (aarch64_save_or_restore_fprs): Use new helper functions.
8945 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8947 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8948 (aarch64_save_or_restore_callee_save_registers)
8949 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8951 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8953 * config/aarch64/aarch64.c
8954 (aarch64_save_or_restore_callee_save_registers)
8955 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8957 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8959 * config/aarch64/aarch64.c
8960 (aarch64_save_or_restore_callee_save_registers)
8961 (aarch64_save_or_restore_fprs): Remove 'increment'.
8963 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8965 * config/aarch64/aarch64.c
8966 (aarch64_save_or_restore_callee_save_registers)
8967 (aarch64_save_or_restore_fprs): Use register offset in
8968 cfun->machine->frame.reg_offset.
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): Remove base_rtx.
8976 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8978 * config/aarch64/aarch64.c
8979 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8980 to 'start_offset'. Remove local variable 'start_offset'.
8982 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8984 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8985 type to HOST_WIDE_INT.
8987 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8989 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8990 (aarch64_save_or_restore_fprs)
8991 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8993 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8995 * config/arm/t-rtems-eabi: Add
8996 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8997 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8998 mbig-endian/mthumb/march=armv7-r, and
8999 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9002 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9003 Chris Johns <chrisj@rtems.org>
9004 Joel Sherrill <joel.sherrill@oarcorp.com>
9006 * config.gcc: Add nios2-*-rtems*.
9007 * config/nios2/rtems.h: New file.
9008 * gcc/config/nios2/t-rtems: New file.
9010 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9013 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9014 constant numbers, not general constants.
9015 (rs6000_expand_vector_init): Ditto.
9017 2014-07-23 Nathan Sidwell <nathan@acm.org>
9019 * gcov-tool.c (gcov_list): Declare here.
9020 (set_gcov_list): Remove.
9021 (gcov_output_files): Set gcov_list directly.
9023 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9025 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9027 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9029 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9030 callee-saved registers are available for padding purpose
9031 and r3 is not mandatory, then prefer use those callee-saved
9034 2014-07-23 Richard Biener <rguenther@suse.de>
9036 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9037 * combine.c: Include statistics.h and params.h.
9038 (combine_instructions): Guard three and four insn combines
9039 with max-combine-insns value. Record statistics for combines
9041 * doc/invoke.texi (max-combine-insns): Document new param.
9043 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9045 * graphite-isl-ast-to-gimple.c:
9046 (translate_isl_ast_node_block): New function.
9047 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9049 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9050 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9052 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9054 * graphite-isl-ast-to-gimple.c:
9055 (get_max_schedule_dimensions): New function.
9056 (extend_schedule): Likewise.
9057 (generate_isl_schedule): Add calling of extend_schedule and
9058 get_max_schedule_dimensions.
9060 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9062 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9063 (case UNSPEC): Handle UNSPEC_RBIT.
9065 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9067 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9068 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9070 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9072 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9074 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9076 * graphite-isl-ast-to-gimple.c:
9077 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9079 (build_iv_mapping): New function.
9080 (translate_isl_ast_node_user): Likewise.
9081 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9083 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9084 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9085 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9087 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9090 * config/arm/arm.md (setmem): New pattern.
9091 * config/arm/arm-protos.h (struct tune_params): New fields.
9092 (arm_gen_setmem): New prototype.
9093 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9094 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9095 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9096 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9097 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9098 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9099 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9100 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9101 (arm_const_inline_cost): New function.
9102 (arm_block_set_max_insns): New function.
9103 (arm_block_set_non_vect_profit_p): New function.
9104 (arm_block_set_vect_profit_p): New function.
9105 (arm_block_set_unaligned_vect): New function.
9106 (arm_block_set_aligned_vect): New function.
9107 (arm_block_set_unaligned_non_vect): New function.
9108 (arm_block_set_aligned_non_vect): New function.
9109 (arm_block_set_vect, arm_gen_setmem): New functions.
9111 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9113 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9115 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9118 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9119 out of #ifdef __OPTIMIZE__.
9121 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9123 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9124 different trapping status if -fnon-call-exceptions is enabled.
9126 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9128 * expr.c (store_field): Handle VOIDmode for calls that return values
9129 in multiple locations.
9131 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9133 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9134 (altivec_vsldoi_<mode>): Likewise.
9136 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9138 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9139 to the number of characters in the line.
9141 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9143 * graphite-isl-ast-to-gimple.c: Add using of
9144 build_nonstandard_integer_type instead of int128_integer_type_node.
9146 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9148 * toplev.c (output_stack_usage): Adjust the location of the warning.
9150 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9152 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9153 (*membar_storeload): Disable for LEON3.
9155 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9157 PR rtl-optimization/61461
9158 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9160 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9163 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9164 Fix instruction constraint.
9165 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9167 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9169 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9171 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9173 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9174 GNU coding standards.
9175 (nds32_register_move_cost): Likewise.
9176 (nds32_memory_move_cost): Likewise.
9177 (nds32_address_cost): Likewise.
9179 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9181 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9183 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9185 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9186 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9187 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9188 (HAVE_sync_compare_and_swapqi): Define.
9189 (HAVE_sync_compare_and_swaphi): Likewise.
9190 (HAVE_sync_compare_and_swapsi): Likewise.
9192 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9194 * config/mips/p5600.md: Add missing cpu tests.
9196 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9198 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9199 (vmla_f64): Likewise.
9200 (vfms_f64): Likewise.
9201 (vmls_f64): Likewise.
9203 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9205 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9206 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9208 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9210 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9211 (vmlal_high_lane_s32): Likewise.
9212 (vmlal_high_lane_u16): Likewise.
9213 (vmlal_high_lane_u32): Likewise.
9214 (vmlsl_high_lane_s16): Likewise.
9215 (vmlsl_high_lane_s32): Likewise.
9216 (vmlsl_high_lane_u16): Likewise.
9217 (vmlsl_high_lane_u32): Likewise.
9219 2014-07-17 Terry Guo <terry.guo@arm.com>
9221 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9222 (alus_reg): Renamed to alus_sreg.
9223 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9224 from alu_reg to alu_sreg. Change type of dsp instructions from
9225 alu_reg to alu_dsp_reg.
9226 * config/arm/thumb1.md: Likewise.
9227 * config/arm/thumb2.md: Likewise.
9228 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9229 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9230 with alu_sreg and alus_sreg.
9231 * config/arm/arm1026ejs.md (alu_op): Likewise.
9232 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9233 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9234 * config/arm/fa526.md (526_alu_op): Likewise.
9235 * config/arm/fa606te.md (606te_alu_op): Likewise.
9236 * config/arm/fa626te.md (626te_alu_op): Likewise.
9237 * config/arm/fa726te.md (726te_alu_op): Likewise.
9238 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9239 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9240 alu_sreg, alu_dsp_reg and alus_sreg.
9241 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9242 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9243 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9244 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9245 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9246 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9247 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9248 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9249 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9250 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9251 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9252 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9253 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9254 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9255 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9256 alus_reg to alus_sreg.
9258 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9260 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9263 2014-07-17 Richard Biener <rguenther@suse.de>
9265 PR rtl-optimization/61801
9266 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9267 don't set reg_pending_barrier if it appears in a debug-insn.
9269 2014-07-16 DJ Delorie <dj@redhat.com>
9271 * config/rx/rx.c (rx_option_override): Fix alignment values.
9272 (rx_align_for_label): Likewise.
9274 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9277 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9278 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9279 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9281 (cris_print_index, cris_print_operand, cris_constant_index_p)
9282 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9283 (cris_address_cost): Ditto last CONSTANT_P.
9284 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9285 callers changed. Yield cris_offsettable_symbol for non-PIC
9286 constant symbolic expressions including labels. Yield cris_unspec
9288 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9289 target to pic_offset_table_rtx for calls that will likely go
9290 through PLT, const0_rtx when they can't. All callers changed.
9291 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9292 symbolic expressions to be PICified. Remove second, redundant,
9293 assert on can_create_pseudo_p returning non-zero. Use
9294 replace_equiv_address_nv, not replace_equiv_address, for final
9296 * config/cris/cris.md ("movsi"): Move variable t to pattern
9297 toplevel. Adjust assert for new cris_symbol_type member. Use
9298 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9299 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9301 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9302 ("call", "call_value"): Use second incoming operand as a marker
9303 for pic-offset-table-register being used.
9304 ("*expanded_call_non_v32", "*expanded_call_v32")
9305 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9306 second incoming operand to CALL, match cris_call_type_marker.
9307 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9308 ("*expanded_call_side"): Ditto. Fix typo in comment.
9309 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9311 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9312 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9313 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9314 users changed. Add members cris_offsettable_symbol and cris_unspec.
9315 (cris_symbol_type): Rename from cris_pic_symbol_type.
9316 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9318 * config/cris/cris-protos.h (cris_symbol_type_of,
9319 cris_expand_pic_call_address): Adjust prototypes.
9320 (cris_legitimate_constant_p): New prototype.
9322 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9323 an existing tmake_file. Don't add t-slibgcc and t-linux.
9325 2014-07-17 Jason Merrill <jason@redhat.com>
9328 * symtab.c (symtab_remove_from_same_comdat_group): Also
9329 set_comdat_group to NULL_TREE.
9330 (verify_symtab): Fix diagnostic.
9332 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9335 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9337 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9339 Support location tracking for built-in macro tokens
9340 * input.h (is_location_from_builtin_token): New function declaration.
9341 * input.c (is_location_from_builtin_token): New function definition.
9342 * toplev.c (general_init): Tell libcpp what the pre-defined
9343 spelling location for built-in tokens is.
9345 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9347 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9348 on the FUNCTION_DECL.
9350 2014-07-16 Richard Biener <rguenther@suse.de>
9353 * doc/extend.texi (always_inline): Clarify.
9355 2014-07-15 Eric Christopher <echristo@gmail.com>
9357 * doc/invoke.texi (Link Options): Document -z option.
9359 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9361 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9362 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9364 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9366 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9368 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9370 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9371 varpool_assemble_decl.
9372 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9375 2014-07-15 Michael Matz <matz@suse.de>
9377 PR rtl-optimization/61772
9378 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9380 2014-07-15 Richard Biener <rguenther@suse.de>
9382 * opts.c (default_options_table): Disable bit-ccp at -Og.
9384 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9386 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9388 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9390 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9391 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9392 call langhook for unknown declaration.
9393 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9394 * tree.h (DECL_ARGUMENTS): Update.
9395 * print-tree.c (print_node): Update.
9396 * tree-core.h (tree_decl_non_common): Remove arguments.
9397 (tree_function_decl): Add arguments.
9399 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9401 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9403 2014-07-14 Richard Biener <rguenther@suse.de>
9405 PR tree-optimization/61779
9406 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9407 simplifying a condition.
9409 2014-07-14 Richard Biener <rguenther@suse.de>
9411 * builtins.c (c_strlen): Make only_value == 2 really only
9412 affect warning generation.
9414 2014-07-14 Richard Biener <rguenther@suse.de>
9416 PR tree-optimization/61757
9417 PR tree-optimization/61783
9418 PR tree-optimization/61787
9419 * tree-ssa-dom.c (record_equality): Revert canonicalization
9420 change and add comment.
9421 (propagate_rhs_into_lhs): Revert previous fix, removing
9422 loop depth restriction again.
9424 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9426 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9427 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9428 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9429 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9430 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9431 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9432 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9434 2014-07-14 Richard Biener <rguenther@suse.de>
9436 * cgraph.h (decl_in_symtab_p): Make inline.
9438 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9441 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9444 * config/i386/i386.c (classify_argument): Don't merge classes above
9447 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9449 * cgraph.h (symtab_node): Add nonzero_address.
9450 (decl_in_symtab_p): Break out from ...
9451 (symtab_get_node): ... here.
9452 * fold-const.c: Include cgraph.h
9453 (tree_single_nonzero_warnv_p): Use symtab to determine
9454 if symbol is non-zero.
9455 * symtab.c (symtab_node::nonzero_address): New method.
9457 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9459 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9460 forgotten in previous commit.
9462 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9464 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9466 * ipa-devirt.c: Include stor-layout.h and intl.h
9467 (odr_subtypes_equivalent_p): New function.
9468 (warn_odr): New function.
9469 (warn_type_mismatch): New function.
9470 (odr_types_equivalent_p): New function.
9471 (add_type_duplicate): Use it.
9472 * common.opt (Wodr): New flag.
9473 * doc/invoke.texi (Wodr): Document new warning.
9475 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9477 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9478 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9479 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9480 (varpool_get_constructor): Push CTORS_IN timevar.
9481 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9483 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9485 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9486 Remove VOID_FTYPE_PUSHORT.
9487 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9488 Change code to USHORT_FTYPE_VOID.
9489 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9490 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9491 (ix86_atomic_assign_expand_fenv): Update for
9492 __builtin_ia32_fnstsw changes.
9493 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9494 (fnstsw): Change operand 0 to nonimmediate operand.
9496 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9498 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9499 (varpool_get_constructor): New function.
9500 (varpool_ctor_useable_for_folding_p): Break out from ...
9501 (ctor_for_folding): ... here; use varpool_get_constructor.
9502 (varpool_assemble_decl): Likewise.
9503 * lto-streamer.h (struct output_block): Turn cgraph_node
9505 (lto_input_variable_constructor): Declare.
9506 * ipa-visibility.c (function_and_variable_visibility): Use
9507 varpool_get_constructor.
9508 * cgraph.h (varpool_get_constructor): Declare.
9509 (varpool_ctor_useable_for_folding_p): New function.
9510 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9511 parameter; return error_mark_node for non-trivial constructors.
9512 (lto_write_tree_1, DFS_write_tree): Update use of
9513 get_symbol_initial_value.
9514 (output_function): Update initialization of symbol.
9515 (output_constructor): New function.
9516 (copy_function): Rename to ..
9517 (copy_function_or_variable): ... this one; handle vars too.
9518 (lto_output): Output variable sections.
9519 * lto-streamer-in.c (input_constructor): New function.
9520 (lto_read_body): Rename from ...
9521 (lto_read_body_or_constructor): ... this one; handle vars too.
9522 (lto_input_variable_constructor): New function.
9523 * ipa-prop.c (ipa_prop_write_jump_functions,
9524 ipa_prop_write_all_agg_replacement): Update.
9525 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9526 (output_cgraph_opt_summary): Set symbol to NULL.
9528 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9530 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9531 non-polymorphic types.
9532 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9533 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9534 of types is not polymorphic.
9536 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9538 * lra-constraints.c (remove_inheritance_pseudos): Process
9539 destination pseudo too.
9541 2014-07-11 Rong Xu <xur@google.com>
9543 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9546 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9548 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9549 * config/avr/avr-devices.c (AVR_MCU): Same.
9550 (avr_mcu_types): add text start value to end of device list.
9551 * config/avr/avr-mcus.def: Add text section start for all devices.
9552 (ata5782): Add new avr5 device.
9554 * config/avr/avr-tables.opt: Regenerate.
9555 * config/avr/avr.h: Add declaration for text section start handler.
9556 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9558 (LINK_SPEC): Include text section start handler to linker spec.
9559 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9560 pass -Ttext option to linker if the text section start for the device
9562 * config/avr/t-multilib: Regenerate.
9563 * doc/avr-mmcu.texi: Regenerate.
9565 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9567 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9568 * config/rs6000/aix52.h (LINK_SPEC): Same.
9569 * config/rs6000/aix53.h (LINK_SPEC): Same.
9570 * config/rs6000/aix61.h (LINK_SPEC): Same.
9571 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9573 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9575 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9576 (graphite_verify): New function.
9577 (ivs_params_clear): New function.
9578 (gcc_expression_from_isl_ast_expr_id): New function.
9579 (gcc_expression_from_isl_expr_int): New function.
9580 (binary_op_to_tree): New function.
9581 (ternary_op_to_tree): New function.
9582 (unary_op_to_tree): New function.
9583 (nary_op_to_tree): New function.
9584 (gcc_expression_from_isl_expr_op): New function.
9585 (gcc_expression_from_isl_expression): New function.
9586 (graphite_create_new_loop): New function.
9587 (translate_isl_ast_for_loop): New function.
9588 (get_upper_bound): New function.
9589 (graphite_create_new_loop_guard): New function.
9590 (translate_isl_ast_node_for): New function.
9591 (translate_isl_ast): New function.
9592 (add_parameters_to_ivs_params): New function.
9593 (scop_to_isl_ast): New parameter ip.
9594 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9596 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9598 * config/xtensa/predicates.md (call expander): Update for
9599 DECL_SECTION_NAME being string.
9601 2014-07-11 Richard Biener <rguenther@suse.de>
9604 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9605 can be implemented with a single load followed by a single store.
9606 (c_strlen): Only warn when only_value is not 2.
9608 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9610 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9612 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9615 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9616 (*movhi_bytes): Likewise.
9617 (*arm_movqi_insn): Likewise.
9619 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9622 * config/alpha/alpha.c: Include tree-pass.h, context.h
9624 (pass_data_handle_trap_shadows): New pass.
9625 (pass_handle_trap_shadows::gate): New pass gate function.
9626 (make_pass_handle_trap_shadows): New function.
9627 (rest_of_handle_trap_shadows): Ditto.
9629 (alpha_align_insns_1): Rename from alpha_align_insns.
9630 (pass_data_align_insns): New pass.
9631 (pass_align_insns::gate): New pass gate function.
9632 (make_pass_aling_insns): New function.
9633 (rest_of_align_insns): Ditto.
9634 (alpha_align_insns): Ditto.
9636 (alpha_option_override): Declare handle_trap_shadows info
9637 and align_insns_info. Register handle_trap_shadows and align_insns
9639 (alpha_reorg): Do not call alpha_trap_shadows and
9640 alpha_align_insn from here.
9642 (alpha_pad_function_end): Do not skip BARRIERs.
9644 2014-07-10 Rong Xu <xur@google.com>
9646 Add gcov-tool: an offline gcda profile processing tool support.
9647 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9648 (gcov_is_error): Ditto.
9649 (gcov_read_string): Ditto.
9650 (gcov_read_sync): Ditto.
9651 * gcov-io.h: Move counter defines to gcov-counter.def.
9652 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9653 * coverage.c: Ditto.
9654 * gcov-tool.c: Offline gcda profile processing tool.
9655 (unlink_gcda_file): Remove one gcda file.
9656 (unlink_profile_dir): Remove gcda files from the profile path.
9657 (gcov_output_files): Output gcda files to an output dir.
9658 (profile_merge): Merge two profiles in directory.
9659 (print_merge_usage_message): Print merge usage.
9660 (merge_usage): Print merge usage and exit.
9661 (do_merge): Driver for profile merge sub-command.
9662 (profile_rewrite): Rewrite profile.
9663 (print_rewrite_usage_message): Print rewrite usage.
9664 (rewrite_usage): Print rewrite usage and exit.
9665 (do_rewrite): Driver for profile rewrite sub-command.
9666 (print_usage): Print gcov-info usage and exit.
9667 (print_version): Print gcov-info version.
9668 (process_args): Process arguments.
9669 (main): Main routine for gcov-tool.
9670 * Makefile.in: Build and install gcov-tool.
9671 * gcov-counter.def: New file split from gcov-io.h.
9672 * doc/gcc.texi: Include gcov-tool.texi.
9673 * doc/gcov-tool.texi: Document for gcov-tool.
9675 2014-07-10 Richard Biener <rguenther@suse.de>
9677 PR tree-optimization/61757
9678 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9679 (propagate_rhs_into_lhs): Revert part of last change.
9681 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9683 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9686 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9689 * function.c (allocate_struct_function): Revert r188667 change.
9691 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9693 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9695 * doc/install.texi: Remove links to defunct package providers for
9698 2014-07-09 Tom de Vries <tom@codesourcery.com>
9700 * final.c (get_call_fndecl): Declare.
9701 (self_recursive_call_p): New function.
9702 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9704 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9706 * ipa-devirt.c (record_node): Walk through aliases.
9708 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9710 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9712 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9715 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9717 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9719 * ipa-visibility.c (function_and_variable_visibility): Remove
9720 temporary hack disabling local aliases on AIX.
9722 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9724 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9725 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9727 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9729 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9730 * rs6000/rs6000.c: Inline output of .set instruction.
9731 (declare_alias_data): New struct.
9732 (rs6000_declare_alias): New function.
9733 (rs6000_xcoff_declare_function_name): Use it.
9734 (rs6000_xcoff_declare_object_name): New function.
9735 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9736 (ASM_OUTPUT_DEF): Turn to empty definition.
9738 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9741 * hash-table.h: use hash_table::value_type instead of
9742 Descriptor::value_type in the return types of several methods.
9744 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9746 * tree-pass.h (pass_data): Remove has_execute member.
9747 * passes.c (execute_one_pass): Don't check pass->has_execute.
9748 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9749 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9750 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9751 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9752 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9753 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9754 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9755 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9756 gimple-low.c, gimple-ssa-isolate-paths.c,
9757 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9758 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9759 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9760 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9761 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9762 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9763 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9764 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9765 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9766 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9767 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9768 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9769 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9770 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9771 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9772 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9773 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9774 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9775 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9776 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9777 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9778 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9779 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9780 web.c: Remove initializer for pass_data::has_execute.
9782 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9784 * graphite-htab.h: Use hash_map instead of hash_table.
9785 * graphite-clast-to-gimple.c: Adjust.
9786 * passes.c: Use hash_map instead of hash_table.
9788 * sese.h: Remove now unused code.
9790 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9793 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9796 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9798 PR rtl-optimization/61673
9799 * combine.c (simplify_comparison): Test just mode's sign bit
9800 in tmode rather than the sign bit and any bits above it.
9802 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9804 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9805 Add __isl_give to the declaration.
9806 (generate_isl_schedule): Likewise.
9807 (scop_to_isl_ast): Likewise.
9809 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9811 * config/arm/arm.c (cortexa5_extra_costs): New table.
9812 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9814 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9816 PR tree-optimization/61725
9817 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9818 range, use range_includes_zerop_p instead of integer_zerop on
9819 vr0->min, only use log2 of max if min is not negative.
9821 2014-07-08 Richard Biener <rguenther@suse.de>
9823 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9824 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9825 restriction on loop depth difference.
9826 (record_equality): Likewise.
9827 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9828 (loop_depth_of_name): Remove.
9829 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9830 restriction on loop depth difference.
9831 (init_copy_prop): Likewise.
9833 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9835 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9837 (walk_aliased_vdefs): Likewise.
9838 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9839 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9840 (detect_type_change_from_memory_writes): Check if entry was reached.
9842 2014-07-08 Richard Biener <rguenther@suse.de>
9844 PR tree-optimization/61681
9845 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9846 NONLOCAL inside ESCAPED.
9848 2014-07-08 Richard Biener <rguenther@suse.de>
9850 PR tree-optimization/61680
9851 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9852 Handle properly all read-write dependences with group accesses.
9854 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9856 PR tree-optimization/61576
9857 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9858 block containing reduction statement is predecessor of phi basi block.
9860 2014-07-08 Marek Polacek <polacek@redhat.com>
9863 * fold-const.c (round_up_loc): Change the parameter type.
9865 * fold-const.h (round_up_loc): Adjust declaration.
9866 * stor-layout.c (finalize_record_size): Check for too large types.
9868 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9870 * symtab.c: Include calls.h.
9871 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9873 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9875 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9876 little-endian code generation.
9877 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9878 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9879 (spe_evmergehilo): Rename to...
9880 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9881 (spe_evmergelo): Rename to...
9882 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9883 (spe_evmergelohi): Rename to...
9884 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9885 (spe_evmergehi, spe_evmergehilo): New expanders.
9886 (spe_evmergelo, spe_evmergelohi): Likewise.
9887 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9888 (*frob_tf_ti): Likewise.
9889 (*frob_<mode>_di_2): Likewise.
9890 (*frob_tf_di_8_2): Likewise.
9891 (*frob_di_<mode>): Likewise.
9892 (*frob_ti_tf): Likewise.
9893 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9894 (*frob_ti_<mode>_8_2): Likewise.
9895 (*frob_ti_tf_2): Likewise.
9896 (mov_si<mode>_e500_subreg0): Rename to...
9897 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9899 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9900 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9901 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9902 the big endianness only.
9903 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9904 (*mov_si<mode>_e500_subreg0_2): Rename to...
9905 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9906 big big endianness only.
9907 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9908 (*mov_si<mode>_e500_subreg4): Rename to...
9909 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9911 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9912 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9913 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9914 the big endianness only.
9915 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9917 (*mov_si<mode>_e500_subreg4_2): Rename to...
9918 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9920 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9921 (*mov_sitf_e500_subreg8): Rename to...
9922 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9924 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9925 (*mov_sitf_e500_subreg8_2): Rename to...
9926 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9928 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9929 (*mov_sitf_e500_subreg12): Rename to...
9930 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9932 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9933 (*mov_sitf_e500_subreg12_2): Rename to...
9934 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9936 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9938 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9940 * asan.c (instrument_strlen_call): Do not instrument first byte
9941 in strlen if already instrumented.
9943 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9945 * config/arm/arm.opt (mwords-little-endian): Delete.
9946 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9947 of TARGET_LITTLE_WORDS.
9948 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9949 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9951 * doc/invoke.texi: Remove references to -mwords-little-endian.
9953 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9955 * expmed.c (struct init_expmed_rtl): Change all fields but
9956 pow2 and cint from struct rtx_def to rtx.
9957 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9958 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9961 2014-07-06 Marek Polacek <polacek@redhat.com>
9964 * doc/invoke.texi: Document -Wsizeof-array-argument.
9966 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9968 * wide-int.h (wide_int_storage): Change declaration from struct
9971 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9973 * cgraph.c (cgraph_create_indirect_edge): Update call of
9974 get_polymorphic_call_info.
9975 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9976 (possible_polymorphic_call_targets): Add parameter call.
9977 (decl_maybe_in_construction_p): New predicate.
9978 (get_polymorphic_call_info): Add parameter call;
9979 use decl_maybe_in_construction_p.
9980 * gimple-fold.c (fold_gimple_assign): Update use of
9981 possible_polymorphic_call_targets.
9982 (gimple_fold_call): Likewise.
9983 * ipa-prop.c: Inlcude calls.h
9984 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9985 (param_type_may_change_p): New predicate.
9986 (detect_type_change_from_memory_writes): Break out from ...
9987 (detect_type_change): ... this one; use param_type_may_change_p.
9988 (detect_type_change_ssa): Use param_type_may_change_p.
9989 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9991 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9994 * config/arm/arm-protos.h (arm_legitimate_address_p,
9995 arm_is_constant_pool_ref): Add prototypes.
9996 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9997 (arm_is_constant_pool_ref) New function.
9998 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9999 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10000 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10001 operand. Remove pool_range and neg_pool_range attributes.
10002 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10003 pool_range and neg_pool_range attributes.
10004 * config/arm/constraints.md (Uh): New constraint.
10005 (Uq): Don't allow constant pool references.
10007 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10009 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10010 (move_lo_quad_internal_be_<mode>): Likewise.
10011 (move_lo_quad_<mode>): Convert to define_expand.
10012 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10013 (aarch64_simd_move_hi_quad_be_<mode>): New.
10014 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10015 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10016 (aarch64_combinez_be<mode>): New.
10017 (aarch64_combine<mode>): Convert to define_expand.
10018 (aarch64_combine_internal<mode>): New.
10019 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10021 2014-07-04 Tom de Vries <tom@codesourcery.com>
10023 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10024 combination of earlyclobber and read/write modifiers.
10026 2014-07-04 Tom de Vries <tom@codesourcery.com>
10028 * config/aarch64/aarch64-simd.md
10029 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10031 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10034 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10036 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10038 PR middle-end/61654
10039 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10041 PR tree-optimization/61684
10042 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10043 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10045 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10046 Kito Cheng <kito@0xlab.org>
10047 Monk Chiang <sh.chiang04@gmail.com>
10049 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10050 (nds32_symbol_load_store_p): Move to ...
10051 (nds32_fp_as_gp_check_available): Move to ...
10052 * config/nds32/nds32-fp-as-gp.c: ... here.
10053 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10054 extern declaration.
10056 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10057 Kito Cheng <kito@0xlab.org>
10058 Monk Chiang <sh.chiang04@gmail.com>
10060 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10061 (nds32_expand_store_multiple): Move to ...
10062 (nds32_expand_movmemqi): Move to ...
10063 * config/nds32/nds32-memory-manipulation.c: ... here.
10065 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10066 Kito Cheng <kito@0xlab.org>
10067 Monk Chiang <sh.chiang04@gmail.com>
10069 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10070 (nds32_output_casesi_pc_relative): Move to ...
10071 (nds32_output_casesi): Move to ...
10072 (nds32_mem_format): Move to ...
10073 (nds32_output_16bit_store): Move to ...
10074 (nds32_output_16bit_load): Move to ...
10075 (nds32_output_32bit_store): Move to ...
10076 (nds32_output_32bit_load): Move to ...
10077 (nds32_output_32bit_load_s): Move to ...
10078 (nds32_output_stack_push): Move to ...
10079 (nds32_output_stack_pop): Move to ...
10080 * config/nds32/nds32-md-auxiliary.c: ... here.
10082 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10083 Ling-Hua Tseng <uranus@tinlans.org>
10085 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10086 the purpose of this file.
10088 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10089 Kito Cheng <kito@0xlab.org>
10090 Monk Chiang <sh.chiang04@gmail.com>
10092 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10093 (nds32_address_cost): Move implementation to ...
10094 * config/nds32/nds32-cost.c: ... here.
10095 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10096 (nds32_address_cost_impl): Declare.
10098 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10099 Kito Cheng <kito@0xlab.org>
10100 Monk Chiang <sh.chiang04@gmail.com>
10102 * config/nds32/nds32.c
10103 (nds32_consecutive_registers_load_store_p): Move to ...
10104 (nds32_valid_multiple_load_store): Move to ...
10105 (nds32_valid_stack_push_pop): Move to ...
10106 (nds32_can_use_bclr_p): Move to ...
10107 (nds32_can_use_bset_p): Move to ...
10108 (nds32_can_use_btgl_p): Move to ...
10109 (nds32_can_use_bitci_p): Move to ...
10110 * config/nds32/nds32-predicates.c: ... here.
10112 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10113 Kito Cheng <kito@0xlab.org>
10114 Monk Chiang <sh.chiang04@gmail.com>
10116 * config/nds32/nds32.c
10117 (nds32_expand_builtin_null_ftype_reg): Move to ...
10118 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10119 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10120 (nds32_init_builtins): Move implementation to ...
10121 (nds32_expand_builtin): Move implementation to ...
10122 * config/nds32/nds32-intrinsic.c: ... here.
10123 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10124 (nds32_expand_builtin_impl): Declare.
10126 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10127 Kito Cheng <kito@0xlab.org>
10128 Monk Chiang <sh.chiang04@gmail.com>
10130 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10131 (nds32_emit_section_tail_template): Move to ...
10132 (nds32_emit_isr_jmptbl_section): Move to ...
10133 (nds32_emit_isr_vector_section): Move to ...
10134 (nds32_emit_isr_reset_conten): Move to ...
10135 (nds32_check_isr_attrs_conflict): Move to ...
10136 (nds32_construct_isr_vectors_information): Move to ...
10137 (nds32_asm_file_start): Move implementation to ...
10138 (nds32_asm_file_end): Move implementation to ...
10139 * config/nds32/nds32-isr.c: ... here.
10140 * config/nds32/nds32-protos.h
10141 (nds32_check_isr_attrs_conflict): Declare.
10142 (nds32_construct_isr_vectors_information): Declare.
10143 (nds32_asm_file_start_for_isr): Declare.
10144 (nds32_asm_file_end_for_isr): Declare.
10146 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10147 Kito Cheng <kito@0xlab.org>
10148 Monk Chiang <sh.chiang04@gmail.com>
10150 * config.gcc (nds32*): Add new modules to extra_objs.
10151 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10152 (nds32be-*-*): Likewise.
10153 * config/nds32/nds32-cost.c: New file.
10154 * config/nds32/nds32-fp-as-gp.c: New file.
10155 * config/nds32/nds32-intrinsic.c: New file.
10156 * config/nds32/nds32-isr.c: New file.
10157 * config/nds32/nds32-md-auxiliary.c: New file.
10158 * config/nds32/nds32-memory-manipulation.c: New file.
10159 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10160 * config/nds32/nds32-predicates.c: New file.
10161 * config/nds32/t-nds32: New file.
10163 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10165 PR tree-optimization/61682
10166 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10167 using cases and when one of the operands is equal to 1.
10169 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10171 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10172 ashr<mode>3): Correct mode of operands[2].
10173 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10174 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10175 Correct mode of operands[2]. Fix split condition.
10177 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10179 * arm.md (arch): Add armv6_or_vfpv3.
10180 (arch_enabled): Add test for the above.
10181 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10183 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10185 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10187 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10188 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10189 HWI 1 and negate the unsigned value.
10190 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10191 use AND instead of shift.
10192 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10194 2014-07-03 Marek Polacek <polacek@redhat.com>
10196 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10197 (-fsanitize=float-divide-by-zero): Move to the table with
10198 -fsanitize=undefined suboptions.
10199 (-fsanitize=float-cast-overflow): Likewise.
10201 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10203 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10204 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10207 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10209 * loop-invariant.c (struct invariant): Add a new member: eqno;
10210 (find_identical_invariants): Update eqno;
10211 (create_new_invariant): Init eqno;
10212 (get_inv_cost): Compute comp_cost with eqno;
10214 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10216 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10217 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10218 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10219 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10220 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10222 2014-07-02 Christian Bruel <christian.bruel@st.com>
10226 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10227 (make_preds_opaque): Delete.
10228 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10229 (commit_mode_sets): New function.
10230 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10231 Process all modes at once.
10232 * basic-block.h (pre_edge_lcm_avs): Declare.
10233 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10234 Call clear_aux_for_edges. Fix comments.
10235 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10236 (pre_edge_rev_lcm): Idem.
10237 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10239 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10240 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10242 * config/i386/i386.c (x96_emit_mode_set): Idem.
10243 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10244 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10245 (fpscr_toggle) Disallow from delay slot.
10246 * target.def (emit_mode_set): Add prev_mode parameter.
10247 * doc/tm.texi: Regenerate.
10249 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10251 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10254 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10256 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10257 vtable_pointer_value_to_vtable): Constify.
10258 (contains_polymorphic_type_p): Declare.
10259 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10260 vtable_pointer_value_to_vtable): Constify.
10261 (contains_polymorphic_type_p): New predicate.
10262 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10264 (ipa_set_ancestor_jf): Likewise.
10265 (detect_type_change): Return false in easy cases.
10266 (compute_complex_assign_jump_func): Require type to contain
10268 (compute_known_type_jump_func): Likewise.
10270 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10272 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10274 (type_in_anonymous_namespace_p): Constify argument.
10275 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10276 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10277 (main_odr_variant): New function.
10278 (hash_type_name): Make static; update assert; do not ICE on
10280 (types_same_for_odr): Bring here from tree.c; simplify and remove
10281 old structural comparing code that doesn't work for templates.
10282 (odr_hasher::equal): Update assert.
10283 (add_type_duplicate): Return true when bases should be computed;
10284 replace incomplete loader by complete; do not output duplicated
10285 warnings; do not ICE on non-records; set odr_violated flag.
10286 (get_odr_type): Be ready to replace incomplete type by complete
10287 one; work on ODR variants instead of main variants; reorder item
10288 in array so bases have still smaller indexes.
10289 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10290 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10292 2014-07-01 Cary Coutant <ccoutant@google.com>
10294 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10296 (resolve_addr_in_expr): When replacing the rtx in a location list
10297 entry, get a new address table entry.
10298 (dwarf2out_finish): Call index_location_lists even if there are no
10299 addr_index_table entries yet.
10301 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10303 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10304 change for not being obvious.
10306 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10308 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10311 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10313 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10314 (vcagt_f64): Likewise.
10315 (vcale_f64): Likewise.
10316 (vcaled_f64): Likewise.
10317 (vcales_f32): Likewise.
10318 (vcalt_f64): Likewise.
10319 (vcaltd_f64): Likewise.
10320 (vcalts_f32): Likewise.
10322 2014-07-01 Marek Polacek <polacek@redhat.com>
10324 * doc/invoke.texi: Document -Wint-conversion.
10326 2014-07-01 Marek Polacek <polacek@redhat.com>
10329 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10331 2014-07-01 Martin Liska <mliska@suse.cz>
10333 IPA REF alias refactoring
10334 * cgraph.h (iterate_direct_aliases): New function.
10335 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10336 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10337 FOR_EACH_ALIAS added.
10338 (cgraph_for_node_and_aliases): Likewise.
10339 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10340 * ipa-inline.c (reset_edge_caches): Likewise.
10341 (update_caller_keys): Likewise.
10342 * trans-mem.c (ipa_tm_execute): Likewise.
10343 *varpool.c (varpool_analyze_node): Likewise.
10344 (varpool_for_node_and_aliases): Likewise.
10345 * ipa-ref.h (first_alias): New function.
10346 (last_alias): Likewise.
10347 (has_aliases_p): Likewise.
10348 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10349 is sensitive to IPA_REF_ALIASes.
10350 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10351 are put at the beginning of the list.
10352 (symtab_node::iterate_direct_aliases): New function.
10354 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10357 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10359 (write_ts_type_common_tree_pointers): Do not stream fields not set
10360 for incomplete types; do not stream duplicated fields for variants;
10361 sanity check that variant and type match.
10362 (write_ts_type_non_common_tree_pointers): Likewise.
10363 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10364 TYPE_SIZE whether type is complete.
10365 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10366 write_ts_type_common_tree_pointers
10367 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10369 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10371 * var-tracking.c (add_stores): Return instead of asserting if old
10372 and new values for conditional store are the same.
10374 2014-06-30 Richard Henderson <rth@redhat.com>
10378 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10379 the cfg if there were any changes.
10380 * passes.def: Revert move of peephole2 after reorder_blocks;
10381 move duplicate_computed_gotos before peephole2.
10383 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10385 * except.c (emit_note_eh_region_end): New helper function.
10386 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10387 emit EH_REGION_END note.
10388 * jump.c (cleanup_barriers): Do not split a call and its
10389 corresponding CALL_ARG_LOCATION note.
10391 2014-06-30 Jeff Law <law@redhat.com>
10393 PR tree-optimization/61607
10394 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10395 deeper into the SSA_NAME_VALUE chain.
10397 2014-06-30 Marek Polacek <polacek@redhat.com>
10399 * convert.c (convert_to_integer): Don't instrument conversions if the
10400 function has no_sanitize_undefined attribute.
10401 * ubsan.c: Don't run the ubsan pass if the function has
10402 no_sanitize_undefined attribute.
10404 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10406 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10407 -fsanitize=undefined suboptions.
10409 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10411 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10412 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10413 against bigendian and adjust indices.
10415 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10417 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10419 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10422 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10423 Add alternative; make early clobber. Adjust both split patterns
10424 to use operand 0 as the working register.
10426 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10428 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10429 as ira_object_id_map might be NULL, or 1.
10431 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10433 * loop-invariant.c (get_inv_cost): Handle register class.
10434 (gain_for_invariant): Check the register pressure of the inv
10435 and its overlapped register class, other than all.
10437 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10439 * doc/invoke.texi (Optimize Options): Fix descriptions of
10440 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10442 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10444 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10447 2014-06-29 Tobias Grosser <tobias@grosser.es>
10450 * graphite-isl-ast-to-gimple.c: Add missing guards.
10452 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10454 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10455 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10456 * flag-types.h: Add new enum fgraphite_generator.
10457 * graphite-isl-ast-to-gimple.c: New.
10458 * graphite-isl-ast-to-gimple.h: New.
10459 * graphite.c (graphite_transform_loops): Add choice of Graphite
10460 code generator, which depends on flag_graphite_code_gen.
10462 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10464 * graphite-dependences.c (subtract_commutative_associative_deps):
10465 Add NULL checking of the following variables: must_raw_no_source,
10466 may_raw_no_source, must_war_no_source, may_war_no_source,
10467 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10468 must_war, may_war, must_waw, may_waw.
10470 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10472 * graphite-clast-to-gimple.c: gloog is renamed to
10473 graphite_regenerate_ast_cloog. gloog_error is renamed to
10474 graphite_regenerate_error.
10475 * graphite-clast-to-gimple.h: The definition of the struct
10476 bb_pbb_def is moved to graphite-htab.h.
10477 Add inclusion of the hash-table.h.
10478 * graphite-htab.h: The declaration of the function gloog is moved
10479 to graphite-clast-to-gimple.h and renamed to
10480 graphite_regenerate_ast_cloog.
10481 * graphite.c (graphite_transform_loops): gloog is renamed
10482 to graphite_regenerate_ast_cloog.
10484 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10486 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10488 (write_ts_type_common_tree_pointers): Do not stream fields not set
10489 for incomplete types; do not stream duplicated fields for variants;
10490 sanity check that variant and type match.
10491 (write_ts_type_non_common_tree_pointers): Likewise.
10492 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10493 TYPE_SIZE whether type is complete.
10494 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10495 write_ts_type_common_tree_pointers
10496 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10498 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10500 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10502 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10504 * tree-inline.c (remap_type_1): Do not duplicate fields
10505 that are shared in between type and its main variant.
10507 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10509 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10511 (ipa_set_ancestor_jf) Likewise.
10512 (check_stmt_for_type_change): Check that we work on main variant.
10513 (detect_type_change): Look into main variant.
10514 (compute_known_type_jump_func): Check that main variant has BINFO.
10516 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10518 * ipa-devirt.c (set_type_binfo): New function.
10519 (add_type_duplicate): Use it.
10520 (get_odr_type): Sanity check that binfos points to main variants.
10521 (get_class_context): Be sure the context's outer_type is main variant.
10522 (contains_type_p): Walk main variant.
10523 (get_polymorphic_call_info_for_decl): Set outer_type to be
10525 (get_polymorphic_call_info): Likewise.
10526 (possible_polymorphic_call_targets): Sanity check that we operate
10529 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10531 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10533 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10535 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10536 accidental change due to wide-int branch merge.
10538 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10540 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10541 compressed debug support.
10542 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10543 * configure: Regenerate.
10544 * config.in: Regenerate.
10545 * common.opt (compressed_debug_sections): New enum.
10546 (gz, gz=): New options.
10547 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10548 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10549 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10550 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10551 LINK_COMPRESS_DEBUG_SPEC.
10552 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10553 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10554 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10555 (Debugging Options): Document -gz[=type].
10557 2014-06-27 Martin Jambor <mjambor@suse.cz>
10560 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10561 args_to_skip, use those from node instead. Copy args_to_skip and
10562 combined_args_to_skip from node to the new thunk.
10563 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10564 (cgraph_create_virtual_clone): Moved computation of
10565 combined_args_to_skip...
10566 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10568 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10570 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10571 redundant diagnostic machinary.
10573 2014-06-27 Richard Biener <rguenther@suse.de>
10575 * tree-ssa-math-opts.c (bswap_replace): Fix
10576 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10578 2014-06-27 Martin Liska <mliska@suse.cz>
10580 * gimple.h (gimple_location_safe): New function introduced.
10581 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10582 of gimple_location_safe replaces gimple_location.
10583 (gimple_fold_call): Likewise.
10584 * ipa-devirt.c (ipa_devirt): Likewise.
10585 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10586 * ipa.c (walk_polymorphic_call_targets): Likewise.
10587 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10589 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10591 PR tree-optimization/57233
10592 PR tree-optimization/61299
10593 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10595 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10596 would be lowered to scalar shifts, check if corresponding
10597 shifts and vector BIT_IOR_EXPR are supported and don't lower
10598 or lower just to narrower vector type in that case.
10599 * expmed.c (expand_shift_1): Fix up handling of vector
10600 shifts and rotates.
10602 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10605 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10607 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10609 * doc/invoke.texi (-fsemantic-interposition): Document.
10610 * common.opt (fsemantic-interposition): New flag.
10611 * varasm.c (decl_replaceable_p): Use it.
10613 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10616 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10617 extraction other than index 3.
10619 2014-06-26 Teresa Johnson <tejohnson@google.com>
10621 * doc/invoke.texi: Fix typo.
10622 * dumpfile.c: Add support for documented -fdump-* options
10623 optimized/missed/note/optall.
10625 2014-06-26 Martin Jambor <mjambor@suse.cz>
10627 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10628 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10629 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10630 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10631 * opts.c (default_options_optimization): Set
10632 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10633 * doc/invoke.texi (allow-load-data-races)
10634 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10635 (allow-store-data-races): Document the new default.
10637 2014-06-26 Martin Jambor <mjambor@suse.cz>
10639 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10640 renamed to ipa_impossible_devirt_target. Fix typo.
10641 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10642 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10643 ipa_impossible_devirt_target.
10645 2014-06-26 Richard Biener <rguenther@suse.de>
10647 PR tree-optimization/61607
10648 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10649 explaining why we restrict copies on loop depth.
10650 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10652 (record_equivalences_from_phis): Instead add it here.
10654 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10656 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10657 (LTO_WRAPPER_OBJS): New variable.
10658 (lto-wrapper$(exeext)): Use it.
10659 * collect2.c: Include "collect-utils.h".
10660 (verbose, debug): Remove variables.
10661 (at_file_supplied): No longer static.
10662 (tool_name): New variable.
10663 (do_wait, fork_execute, maybe_unlink): Don't declare.
10664 (tool_cleanup): No longer static.
10665 (notice): Remove function.
10666 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10667 fork_execute calls.
10668 (collect_wait, do_wait, collect_execute): Remove functions.
10669 (maybe_unlink): No longer static.
10670 * collect2.h (verbose, debug): Don't declare.
10671 (at_file_supplied): Declare.
10672 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10674 (collect_execute): Replace with implementation from collect2, plus a
10675 new arg use_atfile. All callers changed.
10676 (collect_wait): Replace with implementation from collect2.
10677 (maybe_unlink_file): Remove function.
10678 (fork_execute): Replace with implementation from collect2, plus a
10679 new arg use_atfile. All callers changed.
10680 (do_wait): Add call to utils_cleanup to the error path.
10681 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10682 (tool_cleanup): Adjust declarations.
10683 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10684 * tlink.c: Include "collect-utils.h".
10685 (tlink_execute): New arg use_atfile. All callers changed.
10686 (tlink_init, tlink_execute): Remove declarations.
10688 * collect-utils.c (save_temps): New variable.
10689 (do_wait): Use it instead of debug. Use fatal_error.
10690 * collect-utils.h (save_temps): Declare.
10691 * collect2.c (verbose): Rename from vflag. All uses changed.
10692 (tool_cleanup): New function, copied from collect_atexit.
10693 (collect_atexit, handler): Just call it.
10694 * collect2.h (verbose): Declaration renamed from vflag.
10695 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10698 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10699 (lto-wrapper$(exeext)): Link with collect-utils.o.
10700 * collect-utils.c: New file.
10701 * collect-utils.h: New file.
10702 * lto-wrapper.c: Include "collect-utils.h".
10703 (args_name): Delete variable.
10704 (tool_name): New variable.
10705 (tool_cleanup): New function.
10706 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10707 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10708 (fork_execute): Remove functions.
10710 2014-06-26 Nick Clifton <nickc@redhat.com>
10712 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10714 * doc/extend.texi (Function Attributes): Fix typo in description
10715 of RX vector attribute.
10717 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10719 * config.gcc (supported_defaults): Error when passing either
10720 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10722 2014-06-26 Richard Biener <rguenther@suse.de>
10724 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10725 propagating volatile pointers.
10727 2014-06-26 Richard Biener <rguenther@suse.de>
10729 PR tree-optimization/61607
10730 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10731 loop if we redirected its latch edge.
10732 (thread_block_1): Do not cancel loops prematurely.
10734 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10736 * toplev.c (backend_init_target): Move init_emit_regs and
10738 (backend_init) ... here; skip ira_init_once and backend_init_target.
10739 (target_reinit) ... and here; clear
10740 this_target_rtl->lang_dependent_initialized.
10741 (lang_dependent_init_target): Clear
10742 this_target_rtl->lang_dependent_initialized;
10743 break out rtl initialization to ...
10744 (initialize_rtl): ... here; call also backend_init_target
10746 * toplev.h (initialize_rtl): New function.
10747 * function.c: Include toplev.h
10748 (init_function_start): Call initialize_rtl.
10749 * rtl.h (target_rtl): Add target_specific_initialized,
10750 lang_dependent_initialized.
10752 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10753 Jakub Jelinek <jakub@redhat.com>
10755 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10757 2014-06-25 Tom de Vries <tom@codesourcery.com>
10759 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10761 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10763 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10764 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10765 Issue a strict overflow warning if appropriate.
10767 2014-06-25 Martin Liska <mliska@suse.cz>
10769 IPA REF refactoring
10770 * Makefile.in: Removed header file (ipa-ref-inline.h).
10771 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10773 (cgraph_speculative_call_info): Likewise.
10774 (cgraph_for_node_thunks_and_aliases): Likewise.
10775 (cgraph_for_node_and_aliases): Likewise.
10776 (verify_cgraph_node): Likewise.
10777 * cgraph.h: Batch of IPA REF functions become member functions of
10778 symtab_node: add_reference, maybe_add_reference, clone_references,
10779 clone_referring, clone_reference, find_reference,
10780 remove_stmt_references, remove_all_references,
10781 remove_all_referring, dump_references, dump_referring,
10782 has_alias_p, iterate_reference, iterate_referring.
10783 * cgraphbuild.c (record_reference): New IPA REF function used.
10784 (record_type_list): Likewise.
10785 (record_eh_tables): Likewise.
10786 (mark_address): Likewise.
10787 (mark_load): Likewise.
10788 (mark_store): Likewise.
10789 (pass_build_cgraph_edges): Likewise.
10790 (rebuild_cgraph_edge): Likewise.
10791 (cgraph_rebuild_references): Likewise.
10792 (pass_remove_cgraph_callee_edges): Likewise.
10793 * cgraphclones.c (cgraph_clone_node): Likewise.
10794 (cgraph_create_virtual_clone): Likewise.
10795 (cgraph_materialize_clone): Likewise.
10796 (cgraph_materialize_all_clones): Likewise.
10797 * cgraphunit.c (cgraph_reset_node): Likewise.
10798 (cgraph_reset_node): Likewise.
10799 (analyze_function): Likewise.
10800 (assemble_thunks_and_aliases): Likewise.
10801 (expand_function): Likewise.
10802 * ipa-comdats.c (propagate_comdat_group): Likewise.
10803 (enqueue_references): Likewise.
10804 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10805 (create_specialized_node): Likewise.
10806 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10807 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10808 * ipa-inline.c (reset_edge_caches): Likewise.
10809 (update_caller_keys): Likewise.
10810 (execute): Likewise.
10811 * ipa-prop.c (remove_described_reference): Likewise.
10812 (propagate_controlled_uses): Likewise.
10813 (ipa_edge_duplication_hook): Likewise.
10814 (ipa_modify_call_arguments): Likewise.
10815 * ipa-pure-const.c (propagate_pure_const): Likewise.
10816 * ipa-ref-inline.h: Header file removed, functions moved
10817 to symtab_node class.
10818 * ipa-ref.c (remove_reference): New class member function.
10819 (cannot_lead_to_return): New class member function.
10820 (referring_ref_list): Likewise.
10821 (referred_ref_list): Likewise.
10822 Rest of functions moved to symtab_node class.
10823 * ipa-ref.h: New member functions remove_reference,
10824 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10826 ipa_ref_list class has new member functions: first_reference,
10827 first_referring, clear, nreferences.
10828 * ipa-reference.c (analyze_function): New IPA REF function used.
10829 (write_node_summary_p): Likewise.
10830 (ipa_reference_write_optimization_summary): Likewise.
10831 * ipa-split.c (split_function): Likewise.
10832 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10833 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10834 (function_and_variable_visibility): Likewise.
10835 * ipa.c (has_addr_references_p): Likewise.
10836 (process_references): Argument type changed.
10837 (symtab_remove_unreachable_nodes): New IPA REF function used.
10838 (process_references): Likewise.
10839 (set_writeonly_bit): Likewise.
10840 * lto-cgraph.c: Implementation of new symtab_node member functions
10841 that uses new IPA REF functions.
10842 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10844 * lto-streamer-out.c (output_symbol_p): Likewise.
10845 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10847 * symtab.c: Implementation of new IPA REF API.
10848 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10849 (ipa_tm_create_version): Likewise.
10850 (ipa_tm_execute): Likewise.
10851 * tree-emutls.c (gen_emutls_addr): Likewise.
10852 * tree-inline.c (copy_bb): Likewise.
10853 (delete_unreachable_blocks_update_callgraph): Likewise.
10854 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10855 (varpool_for_node_and_aliases): Likewise.
10857 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10859 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10861 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10864 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10865 tree_node * instead of tree_node *.
10867 (print_fold_checksum): Likewise.
10868 (fold_check_failed): Likewise.
10869 (debug_fold_checksum): Likewise.
10870 (fold_build1_stat_loc): Likewise.
10871 (fold_build2_stat_loc): Likewise.
10872 (fold_build3_stat_loc): Likewise.
10873 (fold_build_call_array_loc): Likewise.
10875 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10877 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10878 implementation with call to...
10879 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10881 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10884 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10886 PR tree-optimization/57742
10887 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10888 after replacing the statement.
10890 2014-06-25 Nick Clifton <nickc@redhat.com>
10892 * config/v850/v850.c (GHS_default_section_names): Change to const
10894 (GHS_current_section_names): Likewise.
10895 (v850_insert_attributes): Do not build strings, just assign the
10896 names directly. Change the type of 'chosen_section' to const
10898 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10899 directly to the array entry.
10900 * config/v850/v850.h (GHS_default_section_names): Change to const
10902 (GHS_current_section_names): Likewise.
10904 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10906 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10907 (LANG_HOOKS_DECLS): Add it.
10908 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10910 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10911 * langhooks.h (struct lang_hooks_for_decls): Add
10912 omp_clause_linear_ctor hook.
10913 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10914 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10915 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10916 combined simd loop use omp_clause_linear_ctor hook.
10918 2014-06-24 Cong Hou <congh@google.com>
10920 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10921 pattern recognition.
10922 (type_conversion_p): PROMOTION is true if it's a type promotion
10923 conversion, and false otherwise. Return true if the given expression
10924 is a type conversion one.
10925 * tree-vectorizer.h: Adjust the number of patterns.
10926 * tree.def: Add SAD_EXPR.
10927 * optabs.def: Add sad_optab.
10928 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10929 * expr.c (expand_expr_real_2): Likewise.
10930 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10931 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10932 * optabs.c (optab_for_tree_code): Likewise.
10933 * tree-cfg.c (estimate_operator_cost): Likewise.
10934 * tree-ssa-operands.c (get_expr_operands): Likewise.
10935 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10936 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10937 * doc/generic.texi: Add document for SAD_EXPR.
10938 * doc/md.texi: Add document for ssad and usad.
10940 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10942 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10943 qualification in cast.
10945 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10947 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10948 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10949 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10950 (tree_function_decl): ... here.
10951 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10952 streaming of vindex to ...
10953 (write_ts_function_decl_tree_pointers): ... here.
10954 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10955 Do not stream DECL_VINDEX.
10956 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10958 2014-06-24 Catherine Moore <clm@codesourcery.com>
10959 Sandra Loosemore <sandra@codesourcery.com>
10961 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10962 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10963 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10965 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10967 * doc/invoke.texi (Warning Options): Remove duplicated
10968 -Wmaybe-uninitialized.
10970 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10972 PR tree-optimization/57742
10973 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10974 (handle_builtin_malloc, handle_builtin_memset): New functions.
10975 (strlen_optimize_stmt): Call them.
10976 * passes.def: Move strlen after loop+dom but before vrp.
10978 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10981 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10982 model family 6 CPU with has_longmode never use a CPU without
10985 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10988 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10991 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10993 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10994 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10996 * hash-map.h: New file.
10997 * ipa-comdats.c: Use hash_map instead of pointer_map.
10999 * lto-section-out.c: Adjust.
11000 * lto-streamer.h: Replace pointer_map with hash_map.
11001 * symtab.c (verify_symtab): Likewise.
11002 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11003 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11004 * tree-streamer.h: Likewise.
11005 * tree-streamer.c: Adjust.
11006 * pointer-set.h: Remove pointer_map.
11008 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11010 * hash-table.h: Add a template arg to choose between storing values
11011 and storing pointers to values, and then provide partial
11012 specializations for both.
11013 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11014 should store, not the type values should point to.
11015 * tree-into-ssa.c (var_info_hasher): Likewise.
11016 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11017 * tree-complex.c: Adjust.
11018 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11019 table instead of int_tree_map *.
11020 * tree-parloops.c: Adjust.
11021 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11022 type is being stored.
11023 * tree-vectorizer.c: Adjust.
11025 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11027 * hash-table.h: Remove a layer of indirection from hash_table so that
11028 it contains the hash table's data instead of a pointer to the data.
11029 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11030 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11031 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11032 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11033 fold-const.c, gcse.c, ggc-common.c,
11034 gimple-ssa-strength-reduction.c, gimplify.c,
11035 graphite-clast-to-gimple.c, graphite-dependences.c,
11036 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11037 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11038 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11039 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11040 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11041 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11042 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11043 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11044 tree-ssa-live.c, tree-ssa-loop-im.c,
11045 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11046 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11047 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11048 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11049 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11050 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11051 vtable-verify.c, vtable-verify.h: Adjust.
11053 2014-06-24 Richard Biener <rguenther@suse.de>
11055 PR tree-optimization/61572
11056 * tree-ssa-sink.c (statement_sink_location): Do not sink
11057 loads from hard registers.
11059 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11061 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11062 not mentioned in clauses use private clause if the iterator is
11063 declared in #pragma omp for simd, and when adding lastprivate
11064 instead, add it to the outer #pragma omp for too. Diagnose
11065 if the variable is private in outer context. For simd collapse > 1
11066 loops, replace all iterators with temporaries.
11067 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11068 same even in collapse > 1 loops.
11070 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11071 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11073 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11074 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11076 (gimplify_adjust_omp_clauses): Likewise.
11077 * omp-low.c (lower_rec_simd_input_clauses,
11078 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11079 safelen the same as safelen(1).
11080 * tree-nested.c (convert_nonlocal_omp_clauses,
11081 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11082 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11083 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11084 Fixup handling of GIMPLE_OMP_TARGET.
11085 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11088 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11090 PR tree-optimization/61554
11091 * tree-ssa-propagate.c: Include "bitmap.h".
11092 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11093 properly update constructor/destructor.
11094 (substitute_and_fold_dom_walker::before_dom_children):
11095 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11096 need_eh_cleaup instead.
11097 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11100 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11102 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11103 * tree-pass.h (make_pass_ipa_single_use): New pass.
11104 * cgraph.h (used_by_single_function): New flag.
11105 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11107 * passes.def (pass_ipa_single_use): Scedule.
11108 * ipa.c (BOTTOM): New macro.
11109 (meet): New function
11110 (propagate_single_user): New function.
11111 (ipa_single_use): New function.
11112 (pass_data_ipa_single_use): New pass.
11113 (pass_ipa_single_use): New pass.
11114 (pass_ipa_single_use::gate): New gate.
11115 (make_pass_ipa_single_use): New function.
11117 2014-06-23 Kai Tietz <ktietz@redhat.com>
11120 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11121 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11123 2014-06-23 Richard Biener <rguenther@suse.de>
11125 * tree-ssa-loop.c (gate_loop): New function.
11126 (pass_tree_loop::gate): Call it.
11127 (pass_data_tree_no_loop, pass_tree_no_loop,
11128 make_pass_tree_no_loop): New.
11129 * tree-vectorizer.c: Include tree-scalar-evolution.c
11130 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11132 (pass_slp_vectorize::clone): New method.
11133 * timevar.def (TV_TREE_NOLOOP): New.
11134 * tree-pass.h (make_pass_tree_no_loop): Declare.
11135 * passes.def (pass_tree_no_loop): New pass group with
11138 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11141 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11142 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11144 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11146 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11147 "yes" where needed.
11149 2014-06-23 Alan Modra <amodra@gmail.com>
11152 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11153 to zero on debug statements.
11155 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11158 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11159 Ignore third operand if present by marking qualifier_internal.
11161 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11163 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11165 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11166 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11167 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11168 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11169 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11170 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11171 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11172 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11173 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11174 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11175 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11176 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11177 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11178 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11179 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11180 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11181 logic in GCC vector extensions
11183 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11184 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11185 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11186 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11187 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11188 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11189 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11190 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11191 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11192 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11194 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11196 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11199 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11200 (vget_low_s64): Use __GET_LOW macro.
11201 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11202 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11203 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11204 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11205 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11207 (vcombine_s64): Use GCC vector extensions; remove cast.
11208 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11209 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11210 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11211 Fix type signature; remove cast.
11213 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11216 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11218 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11220 (BUILTIN_VD1): New.
11221 (BUILTIN_VD_RE): Remove.
11222 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11223 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11224 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11225 variant but not df.
11226 (vreinterpretv1df*, vreinterpret*v1df): New.
11227 (vreinterpretdf*, vreinterpret*df): Remove.
11228 * config/aarch64/aarch64-simd.md (aarch64_create,
11229 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11230 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11232 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11233 (vcreate_f64): Remove cast, use v1df builtin.
11234 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11235 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11236 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11237 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11238 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11239 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11240 add range check using __builtin_aarch64_im_lane_boundsi.
11241 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11242 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11243 type signature, use gcc vector extensions.
11244 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11245 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11246 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11247 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11248 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11249 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11250 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11251 vreinterpret_u64_f64): Use v1df builtin not df.
11253 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11255 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11258 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11260 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11263 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11265 * loop-invariant.c (pre_check_invariant_p): New function.
11266 (find_invariant_insn): Call pre_check_invariant_p.
11268 2014-06-22 Richard Henderson <rth@redhat.com>
11271 * compare-elim.c (struct comparison): Add eh_note.
11272 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11273 a redundant comparison in a different EH region. Purge EH edges if
11276 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11278 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11279 (var_shift): Use it.
11280 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11281 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11282 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11283 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11284 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11285 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11286 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11287 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11288 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11289 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11290 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11291 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11292 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11293 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11294 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11295 *rotldi3_internal15be): Use the new attribute. Merge register and
11296 integer alternatives.
11298 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11300 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11301 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11302 split, *ashrdi3_internal3 and split): Delete, merge into...
11303 (ashr<mode>3): New expander.
11304 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11305 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11307 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11309 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11310 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11311 *rotldi3_internal3 and split): Delete, merge into...
11312 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11313 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11314 Use "rotlw" extended mnemonic.
11316 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11318 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11319 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11320 and split, *ashldi3_internal3 and split): Delete, merge into...
11321 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11322 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11324 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11326 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11327 (lshrsi3, two anonymous define_insns and define_splits,
11328 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11329 *lshrdi3_internal3 and split): Delete, merge into...
11330 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11331 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11333 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11335 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11336 Remove "O" alternative.
11338 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11340 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11341 (mips_move_from_gpr_cost): Likewise.
11342 (mips_register_move_cost): Update accordingly.
11343 (mips_secondary_reload_class): Remove name of in_p.
11345 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11348 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11349 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11351 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11353 * config/nios2/nios2.c: Include "builtins.h".
11355 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11357 * cgraph.h (tls_model_names): New variable.
11358 * print-tree.c (print_node): Simplify.
11359 * varpool.c (tls_model_names): New variable.
11360 (dump_varpool_node): Output tls model.
11362 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11364 * ipa-visibility.c (function_and_variable_visibility): Disable
11365 temporarily local aliases for some targets.
11367 2014-06-20 Marek Polacek <polacek@redhat.com>
11369 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11370 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11371 into SANITIZE_UNDEFINED.
11372 * doc/invoke.texi: Describe -fsanitize=bounds.
11373 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11374 functions created in the FEs.
11375 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11376 (expand_UBSAN_BOUNDS): New function.
11377 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11378 * internal-fn.h: Don't define internal functions here.
11379 * opts.c (common_handle_option): Add -fsanitize=bounds.
11380 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11381 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11382 * tree-core.h: Define internal functions here.
11383 (struct tree_base): Add ifn field.
11384 * tree-pretty-print.c: Include "internal-fn.h".
11385 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11386 * tree.c (get_callee_fndecl): Likewise.
11387 (build_call_expr_internal_loc): New function.
11388 * tree.def (CALL_EXPR): Update description.
11389 * tree.h (CALL_EXPR_IFN): Define.
11390 (build_call_expr_internal_loc): Declare.
11391 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11393 (ubsan_type_descriptor): Change bool parameter to enum
11394 ubsan_print_style. Adjust the code. Add handling of
11396 (ubsan_expand_bounds_ifn): New function.
11397 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11398 (ubsan_build_overflow_builtin): Likewise.
11399 (instrument_bool_enum_load): Likewise.
11400 (ubsan_instrument_float_cast): Likewise.
11401 * ubsan.h (enum ubsan_print_style): New enum.
11402 (ubsan_expand_bounds_ifn): Declare.
11403 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11405 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11407 * config/rs6000/rs6000.md: Append `DONE' to preparation
11408 statements of `bswap' pattern splitters.
11410 2014-06-20 Tom de Vries <tom@codesourcery.com>
11412 * target.def (call_fusage_contains_non_callee_clobbers): Update
11414 * doc/tm.texi: Regenerate.
11416 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11417 Max Ostapenko <m.ostapenko@partner.samsung.com>
11420 * asan.c (instrument_strlen_call): Fixed instrumentation of
11423 2014-06-20 Martin Jambor <mjambor@suse.cz>
11426 * ipa-prop.c (impossible_devirt_target): New function.
11427 (try_make_edge_direct_virtual_call): Use it, also instead of
11430 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11431 Max Ostapenko <m.ostapenko@partner.samsung.com>
11434 * asan.c (build_check_stmt): Add condition.
11436 2014-06-20 Martin Jambor <mjambor@suse.cz>
11439 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11442 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11444 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11446 (VCONQ): Make comment more helpful.
11448 * config/aarch64/aarch64-simd.md
11449 (aarch64_sqdmulh_lane<mode>):
11450 Use VCOND for operands 2. Update lane checking and flipping logic.
11451 (aarch64_sqrdmulh_lane<mode>): Likewise.
11452 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11453 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11454 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11455 attribute of operand 3 to VCOND.
11456 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11457 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11458 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11459 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11460 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11461 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11463 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11464 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11465 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11466 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11467 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11468 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11469 operand to VCOND. Update lane flipping and bounds checking logic.
11470 (aarch64_sqdmlal2_lane<mode>): Likewise.
11471 (aarch64_sqdmlsl_lane<mode>): Likewise.
11472 (aarch64_sqdmull_lane<mode>): Likewise.
11473 (aarch64_sqdmull2_lane<mode>): Likewise.
11474 (aarch64_sqdmlal_laneq<mode>):
11475 Replace VCON usage with VCONQ.
11476 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11477 (aarch64_sqdmlal2_laneq<mode>): Emit
11478 aarch64_sqdmlal2_laneq<mode>_internal insn.
11479 Replace VCON with VCONQ.
11480 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11481 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11482 (aarch64_sqdmull_laneq<mode>): Emit
11483 aarch64_sqdmull_laneq<mode>_internal insn.
11484 Replace VCON with VCONQ.
11485 (aarch64_sqdmull2_laneq<mode>): Emit
11486 aarch64_sqdmull2_laneq<mode>_internal insn.
11487 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11488 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11489 of 3rd argument to int16x4_t.
11490 (vqdmlalh_lane_s16): Likewise.
11491 (vqdmlslh_lane_s16): Likewise.
11492 (vqdmull_high_lane_s16): Likewise.
11493 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11494 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11495 (vqdmlsl_lane_s16): Likewise.
11496 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11497 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11498 (vqdmlals_lane_s32): Likewise.
11499 (vqdmlsls_lane_s32): Likewise.
11500 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11501 (vqdmulls_lane_s32): Likewise.
11502 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11503 (vqdmlsl_lane_s32): Likewise.
11504 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11505 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11506 (vqrdmulhh_lane_s16): Likewise.
11507 (vqdmlsl_high_lane_s16): Likewise.
11508 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11509 (vqdmlsl_high_lane_s32): Likewise.
11510 (vqrdmulhs_lane_s32): Likewise.
11512 2014-06-20 Tom de Vries <tom@codesourcery.com>
11514 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11515 get_call_reg_set_usage.
11517 2014-06-20 Tom de Vries <tom@codesourcery.com>
11519 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11520 it contains all call_used_regs.
11522 2014-06-20 Tom de Vries <tom@codesourcery.com>
11524 * final.c (collect_fn_hard_reg_usage): Add and use variable
11525 function_used_regs.
11527 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11529 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11530 (set_init_priority, get_init_priority, set_fini_priority,
11531 get_fini_priority): New methods.
11532 * tree.c (init_priority_for_decl): Remove.
11533 (init_ttree): Do not initialize init priority.
11534 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11535 (decl_priority_info): Remove.
11536 (decl_init_priority_insert): Rewrite.
11537 (decl_fini_priority_insert): Rewrite.
11538 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11539 tree_priority_map_marked_p): Remove.
11540 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11541 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11542 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11543 not output priorities.
11544 (pack_ts_function_decl_value_fields): Likewise.
11545 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11546 not input priorities.
11547 (unpack_ts_function_decl_value_fields): Likewise.
11548 * symtab.c (symbol_priority_map): Declare.
11549 (init_priority_hash): Declare.
11550 (symtab_unregister_node): Unregister from priority hash, too.
11551 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11553 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11554 (symbol_priority_info): New function.
11555 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11557 * tree-core.h (tree_priority_map): Remove.
11559 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11561 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11562 0xff to uint64_t before shifting it up.
11564 2014-06-20 Julian Brown <julian@codesourcery.com>
11565 Chung-Lin Tang <cltang@codesourcery.com>
11567 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11568 TARGET_THUMB1_ONLY. Add comments.
11570 2014-06-19 Tom de Vries <tom@codesourcery.com>
11572 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11573 return type to void.
11574 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11576 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11578 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11579 as "move", from depends_on.
11581 2014-06-19 Terry Guo <terry.guo@arm.com>
11583 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11586 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11588 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11590 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11592 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11595 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11596 addresses here if reload in progress or completed.
11598 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11600 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11601 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11602 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11603 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11604 (mips_register_priority): New function that implements the target
11605 hook TARGET_REGISTER_PRIORITY.
11606 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11607 (mips_lra_p): Likewise for TARGET_LRA_P.
11608 (TARGET_REGISTER_PRIORITY): Define macro.
11609 (TARGET_SPILL_CLASS): Likewise.
11610 (TARGET_LRA_P): Likewise.
11611 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11613 (REG_CLASS_NAMES): Likewise.
11614 (REG_CLASS_CONTENTS): Likewise.
11615 (BASE_REG_CLASS): Use M16_SP_REGS.
11616 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11617 New set attribute to enable alternatives depending on the register
11619 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11620 (*lea64): Disable pattern for MIPS16.
11621 * config/mips/mips.opt (mlra): New option.
11623 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11625 * lra-constraints.c (base_to_reg): New function.
11626 (process_address): Use new function.
11628 2014-06-18 Tom de Vries <tom@codesourcery.com>
11630 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11631 * config/aarch64/aarch64.c
11632 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11633 (aarch64_emit_call_insn): New function.
11634 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11636 * config/aarch64/aarch64.md (define_expand "call_internal")
11637 (define_expand "call_value_internal", define_expand "sibcall_internal")
11638 (define_expand "sibcall_value_internal"): New.
11639 (define_expand "call", define_expand "call_value")
11640 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11641 expand variant and aarch64_emit_call_insn.
11643 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11644 Tom de Vries <tom@codesourcery.com>
11646 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11647 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11649 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11650 clobbers to CALL_INSN_FUNCTION_USAGE.
11651 (define_expand "sibcall_internal")
11652 (define_expand "sibcall_value_internal"): New.
11653 (define_expand "call", define_expand "call_value"): Add argument to
11654 arm_emit_call_insn.
11655 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11656 (define_expand "sibcall_value"): Use sibcall_value_internal and
11657 arm_emit_call_insn.
11659 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11661 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11663 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11665 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11668 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11670 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11671 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11672 annotations. Fix DWARF information.
11674 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11676 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11677 __udivmoddi4, and fixups for negative operands.
11679 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11681 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11683 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11685 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11688 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11690 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11693 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11695 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11696 describing register usage on function entry and exit.
11698 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11700 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11701 (__aeabi_ldivmod): Fix whitespace.
11703 2014-06-18 Andreas Schwab <schwab@suse.de>
11705 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11706 Remove blank line after @item.
11708 2014-06-18 Richard Henderson <rth@redhat.com>
11711 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11713 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11715 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11716 POST_MODIFY for neon loads and stores.
11717 (arm_print_operand): Output post-index register for neon loads and
11720 2014-06-18 Richard Biener <rguenther@suse.de>
11722 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11724 2014-06-18 Richard Biener <rguenther@suse.de>
11726 * tree-pass.h (make_pass_dce_loop): Remove.
11727 * passes.def: Replace pass_dce_loop with pass_dce.
11728 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11729 changed free niter estimates and reset the scev cache.
11730 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11731 make_pass_dce_loop): Remove.
11732 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11733 (fini_copy_prop): Return whether something changed. Always
11734 let substitute_and_fold perform DCE and free niter estimates
11735 and reset the scev cache if so.
11736 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11737 (pass_data_copy_prop): Do not unconditionally schedule
11738 cleanup-cfg or update-ssa.
11740 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11742 PR tree-optimization/61518
11743 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11744 reduction var is used in reduction stmt or phi-function only.
11746 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11748 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11750 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11752 PR tree-optimization/61517
11753 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11754 whose rhs's first tree is the source expression instead of the
11756 (find_bswap_or_nop): Likewise.
11757 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11758 gimple stmt whose rhs's first tree is the source. In the memory source
11759 case, move the stmt to be replaced close to one of the original load to
11760 avoid the problem of a store between the load and the stmt's original
11762 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11765 2014-06-18 Andreas Schwab <schwab@suse.de>
11767 PR rtl-optimization/54555
11768 * postreload.c (move2add_use_add2_insn): Substitute
11769 STRICT_LOW_PART only if it is cheaper.
11771 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11773 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11774 Do not use unspec as call operand. Use memory_operand instead of
11775 memory_nox32_operand and add "m" operand constraint. Disable
11776 pattern for TARGET_X32.
11777 (*sibcall_pop_memory): Ditto.
11778 (*sibcall_value_memory): Ditto.
11779 (*sibcall_value_pop_memory): Ditto.
11780 (sibcall peepholes): Merge SImode and DImode patterns using
11781 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11782 Disable pattern for TARGET_X32. Check if eliminated register is
11783 really dead after call insn. Generate call RTX without unspec operand.
11784 (sibcall_value peepholes): Ditto.
11785 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11786 instead of memory_nox32_operand. Check if eliminated register is
11787 really dead after call insn. Generate call RTX without unspec operand.
11788 (sibcall_value_pop peepholes): Ditto.
11789 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11791 2014-06-18 Terry Guo <terry.guo@arm.com>
11794 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11797 2014-06-18 Olivier Hainque <hainque@adacore.com>
11799 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11800 memorization of the end of block source location.
11801 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11802 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11803 end source location info we have on the block entry/exit code we
11806 2014-06-18 Richard Biener <rguenther@suse.de>
11808 * common.opt (fssa-phiopt): New option.
11809 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11811 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11812 * doc/invoke.texi (-fssa-phiopt): Document.
11814 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11816 * genattrtab.c (n_bypassed): New variable.
11817 (process_bypasses): Initialise n_bypassed.
11818 Count number of bypassed reservations.
11819 (make_automaton_attrs): Allocate space for bypassed reservations
11820 rather than number of bypasses.
11822 2014-06-18 Richard Biener <rguenther@suse.de>
11824 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11825 we propagated anything.
11826 (substitute_and_fold_dom_walker::before_dom_children): Something
11827 changed if we propagated into PHI arguments.
11828 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11831 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11833 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11835 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11836 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11837 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11838 Introduces alternative way of loads group permutaions.
11839 (vect_transform_grouped_load): Try alternative way of permutations.
11841 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11843 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11844 changed in ORT_TARGET region, don't jump to do_outer.
11845 (struct gimplify_adjust_omp_clauses_data): New type.
11846 (gimplify_adjust_omp_clauses_1): Adjust for data being
11847 a struct gimplify_adjust_omp_clauses_data pointer instead
11848 of tree *. Pass pre_p as a new argument to
11849 lang_hooks.decls.omp_finish_clause hook.
11850 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11851 splay_tree_foreach to pass both list_p and pre_p.
11852 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11853 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11854 gimplify_adjust_omp_clauses callers.
11855 * langhooks.c (lhd_omp_finish_clause): New function.
11856 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11857 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11858 * langhooks.h (struct lang_hooks_for_decls): Add a new
11859 gimple_seq * argument to omp_finish_clause hook.
11860 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11861 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11862 (scan_omp_parallel, lower_omp_for): When adding
11863 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11864 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11865 * tree-nested.c (convert_nonlocal_omp_clauses,
11866 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11867 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11869 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11871 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11872 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11874 2014-06-17 Xinliang David Li <davidxl@google.com>
11876 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11877 * passes.c (pass_init_dump_file): Do not set initialize
11878 flag to false unconditionally.
11880 2014-06-17 Richard Biener <rguenther@suse.de>
11882 * genopinit.c (main): Use vec<>::qsort method.
11883 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11885 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11887 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11889 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11890 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11891 (mips_move_to_gpr_cost): Remove ST_REGS case.
11892 (mips_move_from_gpr_cost): Likewise.
11893 (mips_register_move_cost): Likewise.
11894 (mips_secondary_reload_class): Likewise.
11896 2014-06-17 Richard Biener <rguenther@suse.de>
11898 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11899 (pass_all_optimizations): Move 3rd copy-prop pass from after
11900 fre to before ifcombine/phiopt.
11902 2014-06-17 Richard Biener <rguenther@suse.de>
11904 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11905 and allow all blocks to be forwarders.
11907 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11910 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11911 variable 'size'; calculate 'size' right in the front; use
11912 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11913 pcum->aapcs_stack_words.
11915 2014-06-17 Nick Clifton <nickc@redhat.com>
11917 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11918 (umulhi3, mulsidi3, umulsidi3): Likewise.
11920 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11922 PR middle-end/61508
11923 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11924 check for section name.
11926 2014-06-17 Richard Biener <rguenther@suse.de>
11928 * tree-ssa-propagate.c: Include domwalk.h.
11929 (substitute_and_fold): Outline main worker into a domwalker ...
11930 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11931 Schedule stmts we can fully propagate for removal. Remove
11933 (substitute_and_fold): Apply a dominator walk to perform
11934 substitution. Process stmts scheduled for removal here.
11936 2014-06-17 Richard Biener <rguenther@suse.de>
11938 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11939 of PHI node moving.
11941 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11943 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11944 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11945 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11946 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11947 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11949 (get_fpscr) : Likewise.
11951 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11953 PR rtl-optimization/61325
11954 * lra-constraints.c (valid_address_p): Add forward declaration.
11955 (simplify_operand_subreg): Check address validity before and after
11956 alter_reg of memory subreg.
11958 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11960 * config/i386/i386.c (decide_alg): Correctly handle
11961 maximum size of stringop algorithm.
11963 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11965 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11967 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11969 PR rtl-optimization/61522
11970 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11972 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11975 * symtab.c (symtab_node::reset_section): New method.
11976 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11978 * cgraph.h (reset_section): Declare.
11979 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11980 do not consider comdat locals.
11981 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11983 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11984 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11985 reset sections of symbols dragged out of the comdats.
11986 (function_and_variable_visibility): Reset sections of
11989 2014-06-16 Richard Biener <rguenther@suse.de>
11991 PR tree-optimization/61482
11992 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11993 [-INF(OVF), +INF(OVF)] range.
11995 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11997 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11998 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11999 handling 32-bit multiplication.
12001 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12003 PR middle-end/61430
12004 * lra-lives.c (process_bb_lives): Skip creating copy during
12005 insn scan when src/dest has constrained to same regno.
12007 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12009 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12010 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12012 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12014 * asan.c (check_func): New function.
12015 (maybe_create_ssa_name): Likewise.
12016 (build_check_stmt_with_calls): Likewise.
12017 (use_calls_p): Likewise.
12018 (report_error_func): Change interface.
12019 (build_check_stmt): Allow non-integer lengths; add support
12021 (asan_instrument): Likewise.
12022 (instrument_mem_region_access): Moved code to build_check_stmt.
12023 (instrument_derefs): Likewise.
12024 (instrument_strlen_call): Likewise.
12025 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12026 * doc/invoke.texi: Describe new parameter.
12027 * params.def: Define new parameter.
12028 * params.h: Likewise.
12029 * sanitizer.def: Describe new builtins.
12031 2014-06-16 Richard Biener <rguenther@suse.de>
12033 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12034 Make all defs available at the end.
12035 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12037 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12040 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12042 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12045 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12046 initialization. Replace remaining use of uid.
12048 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12050 * c-family/c-common.c (handle_tls_model_attribute): Use
12051 set_decl_tls_model.
12052 * c-family/c-common.c (handle_tls_model_attribute): Use
12053 set_decl_tls_model.
12054 * cgraph.h (struct varpool_node): Add tls_model.
12055 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12056 * tree.h (DECL_TLS_MODEL): Update.
12057 (DECL_THREAD_LOCAL_P): Check that variable is static.
12058 (decl_tls_model): Declare.
12059 (set_decl_tls_model): Declare.
12060 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12061 set symbol prorperties.
12062 (get_emutls_init_templ_addr): Cleanup.
12063 (new_emutls_decl): Update.
12064 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12065 (lto_input_varpool_node): Likewise.
12066 * lto-streamer-out.c (hash_tree): Likewise.
12067 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12068 not stream DECL_TLS_MODEL.
12069 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12070 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12072 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12074 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12076 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12078 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12079 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12081 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12082 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12083 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12084 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12085 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12086 (df_get_artificial_defs, df_get_artificial_uses)
12087 (df_single_def, df_single_use): Update accordingly.
12088 (df_refs_chain_dump): Take the first element in a linked list as
12089 parameter, rather than a pointer to an array of pointers.
12090 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12091 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12092 (df_chain_create_bb_process_use): Likewise.
12093 (df_md_bb_local_compute_process_def): Likewise.
12094 * fwprop.c (process_defs, process_uses): Likewise.
12095 (register_active_defs, update_uses): Likewise.
12096 (forward_propagate_asm): Update for new df_ref linking.
12097 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12098 (df_null_ref_rec, df_null_mw_rec): Likewise.
12099 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12101 (df_scan_free_bb_info): Remove check for null artificial_defs.
12102 (df_install_ref_incremental): Adjust for new df_ref linking.
12103 Use a single-element insertion rather than a full sort.
12104 (df_ref_chain_delete_du_chain): Take the first element
12105 in a linked list as parameter, rather than a pointer to an array of
12107 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12108 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12109 (df_insn_info_delete): Remove check for null defs and call to
12110 df_scan_free_mws_vec.
12111 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12112 null rather than df_null_*_rec.
12113 (df_insn_rescan_debug_internal): Likewise, and update null
12114 checks in the same way. Remove check for null defs.
12115 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12116 Move a single element rather doing a full sort.
12117 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12119 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12120 Initialize df_ref and df_mw_hardreg lists to null rather than
12122 (df_ref_compare): Take df_refs as parameter, transferring the
12123 old interface to...
12124 (df_ref_ptr_compare): ...this new function.
12125 (df_sort_and_compress_refs): Update accordingly.
12126 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12127 old interface to...
12128 (df_mw_ptr_compare): ...this new function.
12129 (df_sort_and_compress_mws): Update accordingly.
12130 (df_install_refs, df_install_mws): Return a linked list rather than
12131 an array of pointers.
12132 (df_refs_add_to_chains): Assert that old lists are empty rather
12134 (df_insn_refs_verify): Don't handle null defs speciailly.
12135 * web.c (union_match_dups): Update for new df_ref linking.
12137 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12139 * df.h (df_ref_create, df_ref_remove): Delete.
12140 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12141 (df_ref_remove): Likewise.
12143 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12145 * df.h (df_single_def, df_single_use): New functions.
12146 * ira.c (find_moveable_pseudos): Use them.
12148 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12150 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12151 * df-problems.c (df_note_bb_compute): Use it.
12152 * regstat.c (regstat_bb_compute_ri): Likewise.
12154 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12156 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12157 * cse.c (cse_extended_basic_block): Use them.
12158 * dce.c (mark_artificial_use): Likewise.
12159 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12160 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12161 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12162 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12163 (df_simulate_initialize_backwards): Likewise.
12164 (df_simulate_finalize_backwards): Likewise.
12165 (df_simulate_initialize_forwards): Likewise.
12166 (df_md_simulate_artificial_defs_at_top): Likewise.
12167 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12168 * regrename.c (init_rename_info): Likewise.
12169 * regstat.c (regstat_bb_compute_ri): Likewise.
12170 (regstat_bb_compute_calls_crossed): Likewise.
12172 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12174 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12175 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12176 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12177 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12178 * combine.c (create_log_links): Likewise.
12179 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12180 (try_eliminate_compare): Likewise.
12181 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12182 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12183 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12184 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12185 (word_dce_process_block, dce_process_block): Likewise.
12186 * ddg.c (def_has_ccmode_p): Likewise.
12187 * df-core.c (df_bb_regno_first_def_find): Likewise.
12188 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12189 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12190 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12191 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12192 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12193 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12194 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12195 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12196 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12197 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12198 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12199 * fwprop.c (local_ref_killed_between_p): Likewise.
12200 (all_uses_available_at, free_load_extend): Likewise.
12201 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12202 * hw-doloop.c (scan_loop): Likewise.
12203 * ifcvt.c (dead_or_predicable): Likewise.
12204 * init-regs.c (initialize_uninitialized_regs): Likewise.
12205 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12206 (process_bb_node_lives): Likewise.
12207 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12208 (find_moveable_pseudos): Likewise.
12209 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12210 * recog.c (peep2_find_free_register): Likewise.
12211 * ree.c (get_defs): Likewise.
12212 * regstat.c (regstat_bb_compute_ri): Likewise.
12213 (regstat_bb_compute_calls_crossed): Likewise.
12214 * sched-deps.c (find_inc, find_mem): Likewise.
12215 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12216 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12217 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12218 (prepare_shrink_wrap): Likewise.
12219 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12220 * web.c (union_defs, pass_web::execute): Likewise.
12221 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12222 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12224 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12226 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12227 to inheritance pseudos.
12228 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12230 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12233 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12234 (BU_MISC_2): Rename to ...
12235 (BU_LDBL128_2): ... this.
12236 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12237 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12238 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12239 RS6000_BTM_LDBL128.
12240 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12241 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12242 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12243 (unpacktf_1): Likewise.
12244 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12245 (__builtin_longdouble_dw1): Likewise.
12246 * doc/sourcebuild.texi (longdouble128): Document.
12248 2014-06-13 Jeff Law <law@redhat.com>
12250 PR rtl-optimization/61094
12251 PR rtl-optimization/61446
12252 * ree.c (combine_reaching_defs): Get the mode for the copy from
12253 the extension insn rather than the defining insn.
12255 2014-06-13 Dehao Chen <dehao@google.com>
12257 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12259 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12261 * doc/install.texi (--enable-linker-plugin-configure-flags)
12262 (--enable-linker-plugin-flags): Document new flags.
12264 2014-06-13 Martin Jambor <mjambor@suse.cz>
12267 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12268 cache_token if returning early.
12270 2014-06-13 Nick Clifton <nickc@redhat.com>
12272 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12273 requested alignment is active.
12274 (LABEL_ALIGN): Likewise.
12275 (LOOP_ALIGN): Likewise.
12277 2014-06-13 Richard Biener <rguenther@suse.de>
12279 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12280 Rewrite to propagate the VN result into all uses where
12281 possible and to remove stmts becoming dead because of that.
12282 (eliminate): Generalize stmt removal handling, remove in
12283 reverse dominator order to support proper debug stmt
12284 generation. Update stmts before removing stmts.
12285 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12287 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12289 PR tree-optimization/61375
12290 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12291 symbolic number cannot be represented in an uint64_t.
12292 (find_bswap_or_nop_1): Likewise.
12294 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12296 * symtab.c (symtab_node::reset_section): New method.
12297 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12299 * cgraph.h (reset_section): Declare.
12300 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12301 do not consider comdat locals.
12302 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12304 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12305 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12306 reset sections of symbols dragged out of the comdats.
12307 (function_and_variable_visibility): Reset sections of
12310 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12312 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12313 to use symtab and decl_binds_to_current_def_p
12314 * tree-vectorizer.c (increase_alignment): Increase alignment
12315 of alias target, too.
12317 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12319 PR middle-end/61486
12320 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12321 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12322 if outer combined construct is distribute.
12323 (gimplify_omp_for): For OMP_DISTRIBUTE set
12324 gimplify_omp_ctxp->distribute.
12325 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12326 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12327 mapping into decl map.
12329 2014-06-12 Jason Merrill <jason@redhat.com>
12331 * common.opt (fabi-version): Change default to 0.
12333 2014-06-12 Jason Merrill <jason@redhat.com>
12335 * toplev.c (process_options): Reject -fabi-version=1.
12337 2014-06-12 Jeff Law <law@redhat.com>
12339 PR tree-optimization/61009
12340 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12341 value when we stop processing a block due to problematic PHIs.
12343 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12345 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12346 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12347 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12348 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12349 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12350 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12351 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12352 are not in the spec.
12354 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12357 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12358 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12361 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12363 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12365 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12368 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12369 loading from address spaces.
12371 2014-06-12 Martin Liska <mliska@suse.cz>
12374 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12375 statement is reachable.
12377 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12379 * symtab.c (section_hash): New hash.
12380 (symtab_unregister_node): Clear section before freeing.
12381 (hash_section_hash_entry): New haser.
12382 (eq_sections): New function.
12383 (symtab_node::set_section_for_node): New method.
12384 (set_section_1): Update.
12385 (symtab_node::set_section): Take string instead of tree as parameter.
12386 (symtab_resolve_alias): Update.
12387 * cgraph.h (section_hash_entry_d): New structure.
12388 (section_hash_entry): New typedef.
12389 (cgraph_node): Change comdat_group_ to x_comdat_group,
12390 change section_ to x_section and turn into section_hash_entry;
12391 update accestors; put set_section_for_node offline.
12392 * tree.c (decl_section_name): Turn into string.
12393 (set_decl_section_name): Change parameter to be string.
12394 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12395 * sdbout.c (sdbout_one_type): Update.
12396 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12397 * varasm.c (IN_NAMED_SECTION, get_named_section,
12398 resolve_unique_section, hot_function_section, get_named_text_section,
12399 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12400 make_decl_rtl, default_unique_section): Update.
12401 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12402 (c6x_elf_unique_section): Update.
12403 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12404 * config/pa/pa.c (pa_function_section): Update.
12405 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12406 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12407 * config/arc/arc.c (arc_in_small_data_p): Update.
12408 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12409 * config/mcore/mcore.c (mcore_unique_section): Update.
12410 * config/mips/mips.c (mips16_build_function_stub): Update.
12411 (mips16_build_call_stub): Update.
12412 (mips_function_rodata_section): Update.
12413 (mips_in_small_data_p): Update.
12414 * config/score/score.c (score_in_small_data_p): Update.
12415 * config/rx/rx.c (rx_in_small_data): Update.
12416 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12417 (rs6000_xcoff_asm_named_section): Update.
12418 (rs6000_xcoff_unique_section): Update.
12419 * config/frv/frv.c (frv_string_begins_with): Update.
12420 (frv_in_small_data_p): Update.
12421 * config/v850/v850.c (v850_encode_data_area): Update.
12422 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12423 (bfin_handle_l1_data_attribute): Update.
12424 (bfin_handle_l2_attribute): Update.
12425 * config/mep/mep.c (mep_unique_section): Update.
12426 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12428 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12429 (h8300_handle_tiny_data_attribute): Update.
12430 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12431 (m32r_in_small_data_p): Update.
12432 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12433 * config/i386/i386.c (ix86_in_large_data_p): Update.
12434 * config/i386/winnt.c (i386_pe_unique_section): Update.
12435 * config/darwin.c (darwin_function_section): Update.
12436 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12437 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12438 (new_emutls_decl): Update.
12439 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12440 input_varpool_node): Update.
12441 (ead_string_cst): Turn to ...
12442 (read_string): ... this one.
12443 * dwarf2out.c (secname_for_decl): Update.
12444 * asan.c (asan_protect_global): Update.
12446 2014-06-11 DJ Delorie <dj@redhat.com>
12448 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12450 * config/rx/rx.c (rx_option_override): Likewise.
12451 (rx_align_for_label): Likewise.
12453 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12455 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12457 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12460 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12462 * common.md: New file.
12463 * doc/md.texi: Update description of generic, machine-independent
12465 * config/s390/constraints.md (e): Delete.
12466 * Makefile.in (md_file): Include common.md.
12467 * config/m32c/t-m32c (md_file): Likewise.
12468 * genpreds.c (general_mem): New array.
12469 (generic_constraint_letters): Remove constraints now defined by
12471 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12472 Allow the first character to be '<' or '>' as well.
12473 * genoutput.c (general_mem): New array.
12474 (indep_constraints): Remove constraints now defined by common.md.
12475 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12476 Remove special handling of 'm'.
12477 * ira-costs.c (record_reg_classes): Remove special handling of
12478 constraints now defined by common.md.
12479 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12480 * ira-lives.c (single_reg_class): Likewise.
12481 (ira_implicitly_set_insn_hard_regs): Likewise.
12482 * lra-constraints.c (reg_class_from_constraints): Likewise.
12483 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12484 * postreload.c (reload_cse_simplify_operands): Likewise.
12485 * reload.c (push_secondary_reload, scratch_reload_class)
12486 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12487 * reload1.c (maybe_fix_stack_asms): Likewise.
12488 * targhooks.c (default_secondary_reload): Likewise.
12489 * stmt.c (parse_output_constraint): Likewise.
12490 * recog.c (preprocess_constraints): Likewise.
12491 (constrain_operands, peep2_find_free_register): Likewise.
12492 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12493 must be handled specially.
12495 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12497 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12498 * genpreds.c (have_const_dbl_constraints): Delete.
12499 (add_constraint): Don't set it.
12500 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12501 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12502 constraints using the lookup_constraint logic.
12503 * ira-lives.c (single_reg_class): Likewise.
12504 * ira.c (ira_setup_alts): Likewise.
12505 * lra-constraints.c (process_alt_operands): Likewise.
12506 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12507 * reload.c (find_reloads): Likewise.
12509 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12511 * genpreds.c (const_int_start, const_int_end): New variables.
12512 (choose_enum_order): Output CONST_INT constraints before memory
12514 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12516 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12517 * ira.c (ira_setup_alts): Likewise.
12518 * lra-constraints.c (process_alt_operands): Likewise.
12519 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12520 * reload.c (find_reloads): Likewise.
12522 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12524 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12525 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12526 * recog.c (preprocess_constraints): Update accordingly.
12528 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12530 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12531 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12532 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12533 * genpreds.c (print_type_tree): New function.
12534 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12535 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12536 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12537 Write out enum constraint_type and get_constraint_type.
12538 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12539 constraint_num rather than a constraint string.
12540 (satisfies_address_constraint_p): Likewise.
12541 (reg_class_from_constraints): Avoid old constraint macros.
12542 (process_alt_operands, process_address_1): Likewise.
12543 (curr_insn_transform): Likewise.
12544 * ira-costs.c (record_reg_classes): Likewise.
12545 (record_operand_costs): Likewise.
12546 * ira-lives.c (single_reg_class): Likewise.
12547 (ira_implicitly_set_insn_hard_regs): Likewise.
12548 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12549 * postreload.c (reload_cse_simplify_operands): Likewise.
12550 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12551 (constrain_operands, peep2_find_free_register): Likewise.
12552 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12553 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12554 * reload1.c (maybe_fix_stack_asms): Likewise.
12555 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12556 * targhooks.c (default_secondary_reload): Likewise.
12557 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12558 to EXTRA_CONSTRAINT_STR.
12559 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12561 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12563 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12564 (write_constraint_satisfied_p_array): ...this new function.
12565 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12567 (write_insn_preds_c): Update accordingly.
12569 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12571 * genpreds.c (write_lookup_constraint): Rename to...
12572 (write_lookup_constraint_1): ...this.
12573 (write_lookup_constraint_array): New function.
12574 (write_tm_preds_h): Define lookup_constraint as an inline function
12575 that uses write_lookup_constraint_array where possible.
12576 (write_insn_preds_c): Update for the changes above.
12578 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12580 * doc/md.texi (regclass_for_constraint): Rename to...
12581 (reg_class_for_constraint): ...this.
12582 * genpreds.c (num_constraints, enum_order, register_start)
12583 (register_end, satisfied_start, memory_start, memory_end)
12584 (address_start, address_end): New variables.
12585 (add_constraint): Count the number of constraints.
12586 (choose_enum_order): New function.
12587 (write_enum_constraint_num): Iterate over enum_order.
12588 (write_regclass_for_constraint): Rename to...
12589 (write_reg_class_for_constraint_1): ...this and update output
12591 (write_constraint_satisfied_p): Rename to...
12592 (write_constraint_satisfied_p_1): ...this and update output
12593 accordingly. Do nothing if all extra constraints are register
12595 (write_insn_extra_memory_constraint): Delete.
12596 (write_insn_extra_address_constraint): Delete.
12597 (write_range_function): New function.
12598 (write_tm_preds_h): Define constraint_satisfied_p and
12599 reg_class_for_constraint as inline functions that do a range check
12600 before calling the out-of-line function. Use write_range_function
12601 to implement insn_extra_{register,memory,address}_constraint,
12602 the first of which is new.
12603 (write_insn_preds_c): Update after above changes to write_* functions.
12604 (main): Call choose_enum_order.
12606 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12608 PR tree-optimization/61306
12609 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12610 expression instead of its size.
12611 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12612 false to prevent optimization when the result is unpredictable due to
12613 arithmetic right shift of signed type with highest byte is set.
12614 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12615 (init_symbolic_number): Likewise.
12616 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12617 when the result is unpredictable due to sign extension.
12619 2014-06-11 Terry Guo <terry.guo@arm.com>
12621 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12622 (*thumb1_addsi3): Ditto.
12623 (*thumb_subdi3): Ditto.
12624 (thumb1_subsi3_insn): Ditto.
12625 (*thumb_mulsi3): Ditto.
12626 (*thumb_mulsi3_v6): Ditto.
12627 (*thumb1_andsi3_insn): Ditto.
12628 (thumb1_bicsi3): Ditto.
12629 (*thumb1_iorsi3_insn): Ditto.
12630 (*thumb1_xorsi3_insn): Ditto.
12631 (*thumb1_ashlsi3): Ditto.
12632 (*thumb1_ashrsi3): Ditto.
12633 (*thumb1_lshrsi3): Ditto.
12634 (*thumb1_rotrsi3): Ditto.
12635 (*thumb1_negdi2): Ditto.
12636 (*thumb1_negsi2): Ditto.
12637 (*thumb1_abssi2): Ditto.
12638 (*thumb1_neg_abssi2): Ditto.
12639 (*thumb1_one_cmplsi2): Ditto.
12640 (*thumb1_zero_extendhisi2): Ditto.
12641 (*thumb1_zero_extendqisi2): Ditto.
12642 (*thumb1_zero_extendqisi2_v6): Ditto.
12643 (thumb1_extendhisi2): Ditto.
12644 (thumb1_extendqisi2): Ditto.
12645 (*thumb1_movdi_insn): Ditto.
12646 (*thumb1_movsi_insn): Ditto.
12647 (*thumb1_movhi_insn): Ditto.
12648 (thumb_movhi_clobber): Ditto.
12649 (*thumb1_movqi_insn): Ditto.
12650 (*thumb1_movhf): Ditto.
12651 (*thumb1_movsf_insn): Ditto.
12652 (*thumb_movdf_insn): Ditto.
12653 (movmem12b): Ditto.
12655 (cbranchqi4): Ditto.
12656 (cbranchsi4_insn): Ditto.
12657 (cbranchsi4_scratch): Ditto.
12658 (*negated_cbranchsi4): Ditto.
12659 (*tbit_cbranch): Ditto.
12660 (*tlobits_cbranch): Ditto.
12661 (*tstsi3_cbranch): Ditto.
12662 (*cbranchne_decr1): Ditto.
12663 (*addsi3_cbranch): Ditto.
12664 (*addsi3_cbranch_scratch): Ditto.
12665 (*thumb_cmpdi_zero): Ditto.
12666 (cstoresi_eq0_thumb1): Ditto.
12667 (cstoresi_ne0_thumb1): Ditto.
12668 (*cstoresi_eq0_thumb1_insn): Ditto.
12669 (*cstoresi_ne0_thumb1_insn): Ditto.
12670 (cstoresi_nltu_thumb1): Ditto.
12671 (cstoresi_ltu_thumb1): Ditto.
12672 (thumb1_addsi3_addgeu): Ditto.
12673 (*thumb_jump): Ditto.
12674 (*call_reg_thumb1_v5): Ditto.
12675 (*call_reg_thumb1): Ditto.
12676 (*call_value_reg_thumb1_v5): Ditto.
12677 (*call_value_reg_thumb1): Ditto.
12678 (*call_insn): Ditto.
12679 (*call_value_insn): Ditto.
12680 (thumb1_casesi_internal_pic): Ditto.
12681 (thumb1_casesi_dispatch): Ditto.
12682 (*thumb1_indirect_jump): Ditto.
12683 (prologue_thumb1_interwork): Ditto.
12684 (*epilogue_insns): Ditto.
12685 (consttable_1): Ditto.
12686 (consttable_2): Ditto.
12687 (tablejump): Ditto.
12688 (*thumb1_tablejump): Ditto.
12689 (thumb_eh_return): Ditto.
12690 (define_peephole2): Two of them are thumb1 only and got moved into
12691 new file thumb1.md.
12692 (define_split): Six of them are thumb1 only and got moved into new
12694 * config/arm/thumb1.md: New file comprised of above thumb1 only
12697 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12699 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12700 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12702 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12703 (aarch64_crc_builtin_datum): New struct.
12704 (aarch64_crc_builtin_data): New.
12705 (aarch64_init_crc32_builtins): New function.
12706 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12707 (aarch64_crc32_expand_builtin): New.
12708 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12709 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12710 __ARM_FEATURE_CRC32 when appropriate.
12711 (TARGET_CRC32): Define.
12712 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12713 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12714 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12715 (aarch64_<crc_variant>): New pattern.
12716 * config/aarch64/arm_acle.h: New file.
12717 * config/aarch64/iterators.md (CRC): New int iterator.
12718 (crc_variant, crc_mode): New int attributes.
12719 * doc/aarch64-acle-intrinsics.texi: New file.
12720 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12721 Include aarch64-acle-intrinsics.texi.
12723 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12725 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12726 check for stores group of length 3.
12727 (vect_permute_store_chain): New permutations for stores group of
12729 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12730 of vec_perm_shuffle for the new permutations.
12732 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12734 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12735 table rewriting temporarily on targets not supporting ONE_ONLY.
12737 2014-06-11 Richard Biener <rguenther@suse.de>
12739 PR middle-end/61437
12741 2014-06-04 Richard Biener <rguenther@suse.de>
12743 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12744 TREE_PUBLIC and DECL_EXTERNAL decls.
12746 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12748 * varasm.c (set_implicit_section): New function.
12749 (resolve_unique_section): Use it to set implicit section
12751 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12752 (default_function_section): Likewise.
12753 (decl_binds_to_current_def_p): Constify argument.
12754 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12755 * asan.c (asan_protect_global): Use
12756 symtab_get_node (decl)->implicit_section.
12757 * symtab.c (dump_symtab_base): Dump implicit sections.
12758 (verify_symtab_base): Verify sanity of sectoins and comdats.
12759 (symtab_resolve_alias): Alias share the section of its target.
12760 (set_section_1): New function.
12761 (symtab_node::set_section): Move here, recurse to aliases.
12762 (verify_symtab): Check for duplicated symtab lists.
12763 * tree-core.h (implicit_section_name_p): Remove.
12764 * tree-vect-data-refs.c: Include varasm.h.
12765 (vect_can_force_dr_alignment_p): Fix conditional on when
12766 decl bints to current definition; use
12767 symtab_get_node (decl)->implicit_section.
12768 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12769 * cgraph.h (struct symtab_node): Add implicit_section.
12770 (set_section): Rename to ...
12771 (set_section_for_node): ... this one.
12772 (set_section): Declare.
12773 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12774 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12775 input_overwrite_node, input_varpool_node): Stream implicit_section.
12776 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12777 removal; it will fail in LTO.
12779 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12781 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12782 Change second alternative type to f_mcr.
12783 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12784 and 12th alternatives' types to f_mcr and f_mrc.
12785 (*movdi_aarch64): Same for 12th and 13th alternatives.
12786 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12787 (aarch64_movtilow_tilow): Change type to fmov.
12789 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12791 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12792 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12794 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12796 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12798 (aarch64_sqrdmulh_lane<mode>): Likewise.
12799 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12800 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12801 (aarch64_sqdmulh_laneq<mode>): New expander.
12802 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12803 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12804 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12805 (aarch64_sqdmulh_lane<mode>): New expander.
12806 (aarch64_sqrdmulh_lane<mode>): Likewise.
12807 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12808 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12809 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12810 (aarch64_sqdmlal_laneq<mode>): Likewise.
12811 (aarch64_sqdmlsl_lane<mode>): Likewise.
12812 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12813 (aarch64_sqdmlal2_lane<mode>): Likewise.
12814 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12815 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12816 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12817 (aarch64_sqdmull_lane<mode>): Likewise.
12818 (aarch64_sqdmull_laneq<mode>): Likewise.
12819 (aarch64_sqdmull2_lane<mode>): Likewise.
12820 (aarch64_sqdmull2_laneq<mode>): Likewise.
12822 2014-06-10 Richard Biener <rguenther@suse.de>
12824 PR tree-optimization/61438
12825 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12826 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12827 insertion of IVs if running PRE.
12828 (eliminate): Adjust.
12829 (pass_pre::execute): Likewise.
12830 (pass_fre::execute): Likewise.
12832 2014-06-10 Richard Biener <rguenther@suse.de>
12834 PR middle-end/61456
12835 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12836 Do not use the main variant for the type comparison.
12837 (ncr_compar): Likewise.
12838 (nonoverlapping_component_refs_p): Likewise.
12840 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12842 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12843 REG_CFA_RESTORE mode.
12845 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12847 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12848 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12849 expand_vec_perm_pblendv.
12851 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12853 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12855 Simplify description of __crc32d and __crc32cd intrinsics.
12856 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12859 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12862 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12863 * config.in: Regenerate.
12864 * configure: Likewise.
12866 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12868 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12870 (intersect_static_var_sets): Remove.
12871 (propagate): Do not prune local statics.
12873 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12876 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12877 Set lastprivate_firstprivate even if omp_private_outer_ref
12878 langhook returns true.
12879 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12880 langhook, call unshare_expr on new_var and call
12881 build_outer_var_ref to get the last argument.
12883 2014-06-10 Marek Polacek <polacek@redhat.com>
12886 * doc/extend.texi: Add cindex for transparent_union.
12888 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12890 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12891 init_symbolic_number ().
12893 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12895 PR middle-end/61141
12896 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12897 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12898 (verify_rtl_sharing): Likewise.
12900 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12903 * tree.c (build_qualified_type): Use a canonical type for
12906 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12908 * config/arm/arm-modes.def: Remove XFmode.
12910 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12913 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12914 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12915 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12916 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12917 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12918 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12919 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12920 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12921 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12923 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12925 * tree-core.h (tree_decl_with_vis): Remove section_name.
12927 2014-06-09 Kito Cheng <kito@0xlab.org>
12929 * ira.c (ira): Don't call init_caller_save if LRA enabled
12930 since LRA use its own infrastructure to handle that.
12932 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12934 * symtab.c (dump_symtab_base): Update dumping.
12935 (symtab_make_decl_local): Clear only DECL_COMDAT.
12936 * tree-vect-data-refs.c (Check that variable is static before
12937 tampering with sections.
12938 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12939 (cgraph_create_virtual_clone): Likewise.
12940 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12941 (decl_section_name, set_decl_section_name): New accessors.
12942 (find_decls_types_r): Do not walk section name
12943 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12944 (decl_comdat_group, decl_comdat_group_id): Constify.
12945 (decl_section_name, set_decl_section_name): Update.
12946 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12947 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12948 (cgraph_make_node_local_1): Clear section and comdat group.
12949 * cgraph.h (set_comdat_group): Sanity check.
12950 (get_section, set_section): New.
12951 * ipa-comdats.c (ipa_comdats): Use get_section.
12952 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12953 * lto-streamer-out.c: Do not follow section names.
12954 * c-family/c-common.c (handle_section_attribute): Update.
12955 * lto-cgraph.c (lto_output_node): Output section.
12956 (lto_output_varpool_node): Likewise.
12957 (read_comdat_group): Rename to ...
12958 (read_identifier): ... this one.
12959 (read_string_cst): New function.
12960 (input_node, input_varpool_node): Input section names.
12961 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12962 (new_emutls_decl): Update.
12963 (secname_for_decl): Check section names only of static vars.
12964 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12965 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12966 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12967 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12968 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12969 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12970 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12971 * config/v850/v850.c (v850_insert_attributes): Likewise.
12972 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12974 (h8300_handle_tiny_data_attribute): Likewise.
12975 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12976 (bfin_handle_l2_attribute): Likewise.
12978 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12980 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12981 remove static initializer.
12983 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12985 * varasm.c (use_blocks_for_decl_p): Check symbol table
12986 instead of alias attribute.
12987 (place_block_symbol): Recurse on aliases.
12989 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12991 * ipa-visibility.c: Include varasm.h
12992 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12994 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12996 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12997 outputting aliases.
12999 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13001 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13002 from test_insn into GGC space escape via SET_SRC.
13004 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13006 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13007 call statement, if any.
13008 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13009 statements, if any. Tidy up.
13011 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13014 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13015 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13016 handles swapping the two 64-bit double words on little endian
13017 systems. Include V1TImode and optionally TImode in VSX_LE so that
13018 these types are properly swapped. Change all of the insns and
13019 splits that do the 64-bit swaps to use VSX_LE.
13020 (vsx_le_perm_load_<mode>): Likewise.
13021 (vsx_le_perm_store_<mode>): Likewise.
13022 (splitters for little endian memory operations): Likewise.
13023 (vsx_xxpermdi2_le_<mode>): Likewise.
13024 (vsx_lxvd2x2_le_<mode>): Likewise.
13025 (vsx_stxvd2x2_le_<mode>): Likewise.
13027 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13030 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13031 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13032 and corresponding splitters. Zero extend general register
13033 or memory input operand to XMM temporary. Enable for
13034 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13035 (floatunssi<mode>2): Update expander predicate.
13037 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13039 PR rtl-optimization/61325
13040 * lra-constraints.c (process_address_1): Check scale equal to one
13041 to prevent transformation: base + scale * index => base + new_reg.
13043 2014-06-06 Richard Biener <rguenther@suse.de>
13045 PR tree-optimization/59299
13046 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13048 (nearest_common_dominator_of_uses): Likewise.
13049 (statement_sink_location): Adjust. Support sinking loads.
13051 2014-06-06 Martin Jambor <mjambor@suse.cz>
13053 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13054 (build_agg_jump_func_from_list): Likewise.
13055 (determine_known_aggregate_parts): Renamed to
13056 determine_locally_known_aggregate_parts. Moved some functionality
13057 to the two functions above, removed bound checks.
13059 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13061 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13062 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13063 (aarch64_progress_pointer): Likewise.
13064 (aarch64_copy_one_part_and_move_pointers): Likewise.
13065 (aarch64_expand_movmen): Likewise.
13066 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13067 * config/aarch64/aarch64.md (movmem<mode>): New.
13069 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13071 * targhooks.c (default_add_stmt_cost): Call target specific
13072 hook instead of default one.
13074 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13076 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13077 endianness instead of host endianness.
13078 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13081 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13084 * function.c (instantiate_decls): Process the saved static chain.
13085 (expand_function_start): If not optimizing, save the static chain
13087 * tree-nested.c (convert_all_function_calls): Always create the static
13088 chain for nested functions if not optimizing.
13090 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13092 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13094 2014-06-06 Richard Biener <rguenther@suse.de>
13096 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13097 (construct_init_block): Likewise.
13098 (construct_exit_block): Likewise.
13099 (pass_expand::execute): Likewise.
13100 * graphite.c (graphite_transforms): Replace check for current_loops
13101 with a check for > 1 loops.
13102 (pass_graphite_transforms::execute): Adjust.
13103 * ipa-split.c (split_function): Remove check for current_loops.
13104 * omp-low.c (expand_parallel_call): Likewise.
13105 (expand_omp_for_init_counts): Likewise.
13106 (extract_omp_for_update_vars): Likewise.
13107 (expand_omp_for_generic): Likewise.
13108 (expand_omp_sections): Likewise.
13109 (expand_omp_target): Likewise.
13110 * tracer.c (tail_duplicate): Likewise.
13111 (pass_tracer::execute): Likewise.
13112 * trans-mem.c (expand_transaction): Likewise.
13113 * tree-complex.c (expand_complex_div_wide): Likewise.
13114 * tree-eh.c (lower_resx): Likewise.
13115 (cleanup_empty_eh_merge_phis): Likewise.
13116 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13117 current_loops with a check for > 1 loops.
13118 (pass_predcom::execute): Adjust.
13119 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13120 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13121 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13122 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13123 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13124 * tree-switch-conversion.c (process_switch): Likewise.
13125 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13126 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13127 (execute_vrp): Likewise.
13128 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13130 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13132 * rtl.h (insn_location): Declare.
13133 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13134 with UNKNOWN_LOCATION.
13135 * emit-rtl.c (insn_location): New function.
13136 * final.c (notice_source_line): Check that the instruction has a
13137 location before retrieving it and use insn_location.
13138 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13139 * print-rtl.c (print_rtx): Likewise.
13141 2014-06-06 Richard Biener <rguenther@suse.de>
13143 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13145 2014-06-06 Christian Bruel <christian.bruel@st.com>
13147 PR tree-optimization/43934
13148 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13151 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13153 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13154 return NO_REGS for extra address and memory constraints. Handle
13155 operands that match (or are equivalent to something that matches)
13156 extra constant constraints. Ignore other non-register operands.
13158 2014-06-06 Alan Modra <amodra@gmail.com>
13161 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13162 * doc/tm.texi: Regenerate.
13163 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13164 Use throughout in place of REG_PARM_STACK_SPACE.
13165 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13166 "incoming" param. Pass to rs6000_function_parms_need_stack.
13167 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13168 prototype_p when incoming. Use function decl when incoming
13169 to handle K&R style functions.
13170 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13171 (INCOMING_REG_PARM_STACK_SPACE): Define.
13173 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13176 * cfgexpand.c (expand_debug_expr): Use address space of nested
13177 TREE_TYPE for ADDR_EXPR and MEM_REF.
13179 2014-06-05 Jeff Law <law@redhat.com>
13181 PR tree-optimization/61289
13182 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13183 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13184 looking for those which match LHS. All callers changed.
13185 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13186 parameters and code which manipulated them. All callers changed.
13187 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13188 and DST_MAP parameters. Simplify invalidation code by just calling
13189 invalidate_equivalences. All callers changed.
13190 (thread_across_edge): Simplify now that we don't need to maintain
13191 the map of equivalences to invalidate.
13193 2014-06-05 Kai Tietz <ktietz@redhat.com>
13194 Richard Henderson <rth@redhat.com>
13197 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13198 checking for !TARGET_X32.
13199 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13200 (sibcall_intern): New define_insn, plus required peepholes.
13201 (sibcall_pop_intern): Likewise.
13202 (sibcall_value_intern): Likewise.
13203 (sibcall_value_pop_intern): Likewise.
13205 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13207 * tree-inline.c (tree_function_versioning): Check DF info existence
13208 before accessing it.
13210 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13212 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13214 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13215 aarch64_frame hard_fp_offset and frame_size.
13216 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13217 frame_size; remove original_frame_size.
13218 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13219 (aarch64_initial_elimination_offset): Remove frame_size and
13220 offset. Use aarch64_frame frame_size.
13222 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13223 Jiong Wang <jiong.wang@arm.com>
13224 Renlin <renlin.li@arm.com>
13226 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13227 initialization of R30 offset. Update offset. Iterate core
13228 regisers upto X30. Remove X29, X30 specific code.
13230 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13231 Jiong Wang <jiong.wang@arm.com>
13233 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13234 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13235 (aarch64_register_saved_on_entry): Adjust test.
13237 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13239 * config/aarch64/aarch64.h (machine_function): Move
13240 saved_varargs_size from here...
13241 (aarch64_frame): ... to here.
13243 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13244 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13245 (aarch64_initial_elimination_offset)
13246 (aarch64_setup_incoming_varargs): Adjust location of
13247 saved_varargs_size.
13249 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13251 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13254 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13255 Prachi Godbole <Prachi.Godbole@imgtec.com>
13257 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13258 mips32r5 entry to use PROCESSOR_P5600.
13259 * config/mips/mips-tables.opt: Regenerate.
13260 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13261 * config/mips/mips.c (mips_fmadd_bypass): New function.
13262 (mips_rtx_cost_data): Add costs for p5600.
13263 (mips_issue_rate): Add support for p5600.
13264 (mips_multipass_dfa_lookahead): Likewise.
13265 * config/mips/mips.h (TUNE_P5600): New define.
13266 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13267 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13268 * config/mips/mips.md: Include p5600.md.
13269 (processor): Add p5600.
13270 * config/mips/p5600.md: New file.
13272 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13274 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13275 * config/i386/predicates.md (palignr_operand): New.
13276 Indicates if permutation is suitable for palignr instruction.
13278 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13280 PR tree-optimization/61319
13281 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13282 stmt belongs to loop.
13284 2014-06-05 Richard Biener <rguenther@suse.de>
13286 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13287 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13288 (lookup_tmp_var): Adjust.
13289 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13291 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13293 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13295 2014-06-05 Marek Polacek <polacek@redhat.com>
13298 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13300 2014-06-04 Tom de Vries <tom@codesourcery.com>
13302 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13305 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13307 PR tree-optimization/61385
13308 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13310 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13312 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13313 changed to use fatal_error.
13314 (main): Ensure lto_wrapper_cleanup is run atexit.
13316 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13318 * lra-constraints.c (valid_address_p): Move earlier in file.
13319 (address_eliminator): New structure.
13320 (satisfies_memory_constraint_p): New function.
13321 (satisfies_address_constraint_p): Likewise.
13322 (process_alt_operands, process_address, curr_insn_transform): Use them.
13324 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13326 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13328 (target_lra_int, default_target_lra_int, this_target_lra_int)
13329 (op_alt_data): Delete.
13330 * lra.h (lra_init): Delete.
13331 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13332 (init_insn_code_data_once): Remove op_alt_data handling.
13333 (finish_insn_code_data_once): Likewise.
13334 (init_op_alt_data): Delete.
13335 (get_static_insn_data): Initialize operand_alternative to null.
13336 (free_insn_recog_data): Cast operand_alternative before freeing it.
13337 (setup_operand_alternative): Take the operand_alternative as
13338 parameter and assume it isn't already cached in the static
13340 (lra_set_insn_recog_data): Update accordingly.
13341 (lra_init): Delete.
13342 * ira.c (ira_init): Don't call lra_init.
13343 * target-globals.h (this_target_lra_int): Declare.
13344 (target_globals): Remove lra_int.
13345 (restore_target_globals): Update accordingly.
13346 * target-globals.c: Don't include lra-int.h.
13347 (default_target_globals, save_target_globals): Remove lra_int.
13349 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13351 * recog.h (operand_alternative): Convert reg_class, reject,
13352 matched and matches into bitfields.
13353 (preprocess_constraints): New overload.
13354 (preprocess_insn_constraints): New function.
13355 (preprocess_constraints): Take the insn as parameter.
13356 (recog_op_alt): Change into a pointer.
13357 (target_recog): Add x_op_alt.
13358 * recog.c (asm_op_alt): New variable.
13359 (recog_op_alt): Change into a pointer.
13360 (preprocess_constraints): New overload, replacing the old function
13361 definition with one that doesn't use global state.
13362 (preprocess_insn_constraints): New function.
13363 (preprocess_constraints): Use them. Take the insn as parameter.
13364 Use asm_op_alt for asms.
13365 (recog_init): Free existing x_op_alt entries.
13366 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13368 (make_early_clobber_and_input_conflicts): Likewise.
13369 (process_bb_node_lives): Pass the insn to process_constraints.
13370 * reg-stack.c (check_asm_stack_operands): Likewise.
13371 (subst_asm_stack_regs): Likewise.
13372 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13373 * regrename.c (build_def_use): Likewise.
13374 * sched-deps.c (sched_analyze_insn): Likewise.
13375 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13376 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13377 (note_invalid_constants): Likewise.
13378 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13379 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13382 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13384 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13385 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13387 (make_early_clobber_and_input_conflicts): Likewise.
13388 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13390 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13392 * recog.h (alternative_class): New function.
13393 (which_op_alt): Return a const recog_op_alt.
13394 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13395 (subst_asm_stack_regs): Likewise.
13396 * config/arm/arm.c (note_invalid_constants): Likewise.
13397 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13398 the operand_alternative; use alternative class instead.
13399 * sel-sched.c (get_reg_class): Likewise.
13400 * regrename.c (build_def_use): Likewise.
13401 (hide_operands, restore_operands, record_out_operands): Update type
13404 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13406 * recog.h (recog_op_alt): Convert to a flat array.
13407 (which_op_alt): New function.
13408 * recog.c (recog_op_alt): Convert to a flat array.
13409 (preprocess_constraints): Update accordingly, grouping all
13410 operands of the same alternative together, rather than the
13412 * ira-lives.c (check_and_make_def_conflict): Likewise.
13413 (make_early_clobber_and_input_conflicts): Likewise.
13414 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13415 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13416 (subst_asm_stack_regs): Likewise.
13417 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13418 * regrename.c (hide_operands, record_out_operands): Likewise.
13419 (build_def_use): Likewise.
13420 * sel-sched.c (get_reg_class): Likewise.
13421 * config/arm/arm.c (note_invalid_constants): Likewise.
13423 2014-06-04 Jason Merrill <jason@redhat.com>
13427 * gimplify.c (gimplify_arg): Non-static.
13428 * gimplify.h: Declare it.
13430 2014-06-04 Richard Biener <rguenther@suse.de>
13432 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13433 TREE_PUBLIC and DECL_EXTERNAL decls.
13435 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13437 * regcprop.c (copyprop_hardreg_forward_1): Account for
13438 HARD_REGNO_CALL_PART_CLOBBERED.
13440 2014-06-04 Richard Biener <rguenther@suse.de>
13442 * configure.ac: Check whether the underlying type of int64_t
13443 is long or long long.
13444 * configure: Regenerate.
13445 * config.in: Likewise.
13446 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13447 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13449 2014-06-04 Richard Biener <rguenther@suse.de>
13451 PR tree-optimization/60098
13452 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13454 (dse_optimize_stmt): Simplify, now that we found a kill
13457 2014-06-04 Richard Biener <rguenther@suse.de>
13459 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13460 of accesses with non-invariant address.
13462 2014-06-04 Martin Liska <mliska@suse.cz>
13464 * cgraph.h (cgraph_make_wrapper): New function introduced.
13465 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13466 * ipa-inline.h (inline_analyze_function): The function is global.
13467 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13469 2014-06-04 Martin Liska <mliska@suse.cz>
13471 * tree.h (private_lookup_attribute_starting): New function.
13472 (lookup_attribute_starting): Likewise.
13473 * tree.c (private_lookup_attribute_starting): Likewise.
13475 2014-06-04 Martin Liska <mliska@suse.cz>
13477 * cgraph.h (expand_thunk): New argument added.
13478 (address_taken_from_non_vtable_p): New global function.
13479 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13480 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13481 * cgraphunit.c (analyze_function): Likewise.
13482 (assemble_thunks_and_aliases): Argument added to call.
13483 (expand_thunk): New argument forces to produce GIMPLE thunk.
13485 2014-06-04 Martin Liska <mliska@suse.cz>
13487 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13488 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13489 * profile.c (branch_prob): Likewise.
13491 2014-06-04 Martin Jambor <mjambor@suse.cz>
13494 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13495 handler for switch on an ipa_ref_use enum.
13496 * ipa-reference.c (analyze_function): Likewise.
13498 2014-06-04 Kai Tietz <ktietz@redhat.com>
13500 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13501 from old call-instruction.
13503 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13505 * config/aarch64/aarch64.c (aarch64_classify_address)
13506 (aarch64_legitimize_reload_address): Support full addressing modes
13508 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13509 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13511 2014-06-03 Andrew Pinski <apinski@cavium.com>
13513 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13516 2014-06-03 Andrew Pinski <apinski@cavium.com>
13518 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13519 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13521 2014-06-03 Kai Tietz <ktietz@redhat.com>
13523 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13526 2014-06-03 Dehao Chen <dehao@google.com>
13528 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13531 2014-06-03 Marek Polacek <polacek@redhat.com>
13534 * doc/invoke.texi: Document -Wswitch-bool.
13535 * function.c (stack_protect_epilogue): Cast controlling expression of
13537 * gengtype.c (walk_type): Generate switch expression with its
13538 controlling expression cast to int.
13540 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13542 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13544 * config/avr/avr-tables.opt: Regenerate.
13545 * config/avr/t-multilib: Regenerate.
13546 * doc/avr-mmcu.texi: Regenerate.
13548 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13549 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13551 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13552 (ata6617c, ata664251): Add new avr35 devices.
13553 (ata6612c): Add new avr4 device.
13554 (ata6613c, ata6614q): Add new avr5 devices.
13555 * config/avr/avr-tables.opt: Regenerate.
13556 * config/avr/t-multilib: Regenerate.
13557 * doc/avr-mmcu.texi: Regenerate.
13559 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13561 * gcc/config/aarch64/aarch64-builtins.c
13562 (aarch64_types_binop_ssu_qualifiers): New static data.
13563 (TYPES_BINOP_SSU): Define.
13564 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13565 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13566 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13567 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13568 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13569 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13570 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13571 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13572 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13573 suffix to builtin function name, remove cast.
13574 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13575 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13576 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13578 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13580 * gcc/config/aarch64/aarch64-builtins.c
13581 (aarch64_types_binop_uus_qualifiers,
13582 aarch64_types_shift_to_unsigned_qualifiers,
13583 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13584 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13585 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13586 sqshlu_n, uqshl_n): Update qualifiers.
13587 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13588 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13589 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13590 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13591 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13592 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13593 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13594 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13595 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13596 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13597 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13598 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13599 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13600 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13601 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13602 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13603 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13604 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13605 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13606 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13607 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13608 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13609 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13610 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13611 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13612 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13613 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13615 2014-06-03 Teresa Johnson <tejohnson@google.com>
13617 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13619 2014-06-02 Jason Merrill <jason@redhat.com>
13622 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13624 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13626 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13629 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13631 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13633 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13634 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13635 * config/aarch64/iterators.md (REVERSE): New iterator.
13636 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13637 (rev_op): New int_attribute.
13638 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13639 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13640 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13641 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13642 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13643 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13644 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13645 Replace temporary __asm__ with __builtin_shuffle.
13647 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13649 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13651 * config/mips/mips-tables.opt: Regenerate.
13652 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13653 to use mips_isa_rev rather than ISA_MIPS32R2.
13654 * config/mips/mips.h (ISA_MIPS32R3): New define.
13655 (ISA_MIPS32R5): New define.
13656 (ISA_MIPS64R3): New define.
13657 (ISA_MIPS64R5): New define.
13658 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13659 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13660 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13662 (MIPS_ISA_SYNCI_SPEC): Likewise.
13663 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13664 (LINK_SPEC): Added mips32r3 and mips32r5.
13665 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13666 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13667 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13668 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13669 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13670 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13671 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13673 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13675 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13677 * config/mips/mips.opt (mxpa): New option.
13678 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13681 2014-06-03 Martin Jambor <mjambor@suse.cz>
13684 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13687 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13689 PR tree-optimization/61328
13690 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13691 initialization from find_bswap_or_nop_1.
13692 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13693 in source_expr2 before using the size value the function sets. Also
13694 make use of init_symbolic_number () in both the old place and
13695 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13696 doing recursion in the GIMPLE_BINARY_RHS case.
13698 2014-06-03 Richard Biener <rguenther@suse.de>
13700 PR tree-optimization/61383
13701 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13704 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13706 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13707 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13708 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13709 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13711 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13712 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13713 * system.h: ...here and make it unconditional.
13714 * target.def (conditional_register_usage): Mention
13715 define_register_constraint instead of old-style constraint macros.
13716 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13717 * doc/tm.texi: Regenerate.
13718 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13719 protected by !USE_MD_CONSTRAINTS.
13720 * config/frv/frv.md: Remove quote from old version of documentation.
13721 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13722 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13723 CONST_DOUBLE_OK_FOR_LETTER.
13724 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13726 2014-06-02 Andrew Pinski <apinski@cavium.com>
13728 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13729 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13730 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13731 file whose name depends on -mabi= and -mbig-endian.
13732 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13733 Handle LP64 better and handle ilp32 too.
13734 (MULTILIB_OPTIONS): Delete.
13735 (MULTILIB_DIRNAMES): Delete.
13737 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13739 * expr.h: Remove prototypes of functions defined in builtins.c.
13740 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13741 Remove prototypes of functions defined in builtins.c.
13742 * builtins.h: Update prototype list to include all exported functions.
13743 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13744 no_c99_libc_has_function): Move to targhooks.c
13745 (build_string_literal, build_call_expr_loc_array,
13746 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13748 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13749 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13750 no_c99_libc_has_function): Relocate from builtins.c.
13751 * tree.c: Include builtins.h.
13752 (build_call_expr_loc_array, build_call_expr_loc_vec,
13753 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13755 * fold-const.h (fold_fma): Move prototype to builtins.h.
13756 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13757 * asan.c: Include builtins.h.
13758 * cfgexpand.c: Likewise.
13759 * convert.c: Likewise.
13760 * emit-rtl.c: Likewise.
13761 * except.c: Likewise.
13762 * expr.c: Likewise.
13763 * fold-const.c: Likewise.
13764 * gimple-fold.c: Likewise.
13765 * gimple-ssa-strength-reduction.c: Likewise.
13766 * gimplify.c: Likewise.
13767 * ipa-inline.c: Likewise.
13768 * ipa-prop.c: Likewise.
13769 * lto-streamer-out.c: Likewise.
13770 * stmt.c: Likewise.
13771 * tree-inline.c: Likewise.
13772 * tree-object-size.c: Likewise.
13773 * tree-sra.c: Likewise.
13774 * tree-ssa-ccp.c: Likewise.
13775 * tree-ssa-forwprop.c: Likewise.
13776 * tree-ssa-loop-ivcanon.c: Likewise.
13777 * tree-ssa-loop-ivopts.c: Likewise.
13778 * tree-ssa-math-opts.c: Likewise.
13779 * tree-ssa-reassoc.c: Likewise.
13780 * tree-ssa-threadedge.c: Likewise.
13781 * tree-streamer-in.c: Likewise.
13782 * tree-vect-data-refs.c: Likewise.
13783 * tree-vect-patterns.c: Likewise.
13784 * tree-vect-stmts.c: Likewise.
13785 * config/aarch64/aarch64.c: Likewise.
13786 * config/alpha/alpha.c: Likewise.
13787 * config/arc/arc.c: Likewise.
13788 * config/arm/arm.c: Likewise.
13789 * config/avr/avr.c: Likewise.
13790 * config/bfin/bfin.c: Likewise.
13791 * config/c6x/c6x.c: Likewise.
13792 * config/cr16/cr16.c: Likewise.
13793 * config/cris/cris.c: Likewise.
13794 * config/epiphany/epiphany.c: Likewise.
13795 * config/fr30/fr30.c: Likewise.
13796 * config/frv/frv.c: Likewise.
13797 * config/h8300/h8300.c: Likewise.
13798 * config/i386/i386.c: Likewise.
13799 * config/i386/winnt.c: Likewise.
13800 * config/ia64/ia64.c: Likewise.
13801 * config/iq2000/iq2000.c: Likewise.
13802 * config/lm32/lm32.c: Likewise.
13803 * config/m32c/m32c.c: Likewise.
13804 * config/m32r/m32r.c: Likewise.
13805 * config/m68k/m68k.c: Likewise.
13806 * config/mcore/mcore.c: Likewise.
13807 * config/mep/mep.c: Likewise.
13808 * config/microblaze/microblaze.c: Likewise.
13809 * config/mips/mips.c: Likewise.
13810 * config/mmix/mmix.c: Likewise.
13811 * config/mn10300/mn10300.c: Likewise.
13812 * config/moxie/moxie.c: Likewise.
13813 * config/msp430/msp430.c: Likewise.
13814 * config/nds32/nds32.c: Likewise.
13815 * config/pa/pa.c: Likewise.
13816 * config/pdp11/pdp11.c: Likewise.
13817 * config/picochip/picochip.c: Likewise.
13818 * config/rl78/rl78.c: Likewise.
13819 * config/rs6000/rs6000.c: Likewise.
13820 * config/rx/rx.c: Likewise.
13821 * config/s390/s390.c: Likewise.
13822 * config/score/score.c: Likewise.
13823 * config/sh/sh.c: Likewise.
13824 * config/sparc/sparc.c: Likewise.
13825 * config/spu/spu.c: Likewise.
13826 * config/stormy16/stormy16.c: Likewise.
13827 * config/tilegx/tilegx.c: Likewise.
13828 * config/tilepro/tilepro.c: Likewise.
13829 * config/v850/v850.c: Likewise.
13830 * config/vax/vax.c: Likewise.
13831 * config/xtensa/xtensa.c: Likewise.
13833 2014-06-02 Jeff Law <law@redhat.com>
13835 PR rtl-optimization/61094
13836 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13837 was marked as do_no_reextend. If a copy is needed to eliminate
13838 an extension, then mark it as do_not_reextend.
13840 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13842 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13844 2014-06-02 Richard Henderson <rth@redhat.com>
13847 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13848 addresses inside asms. Use output_operand_lossage instead of
13851 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13854 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13855 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13857 2014-06-02 Tom de Vries <tom@codesourcery.com>
13859 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13860 case that x has VOIDmode.
13862 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13864 * varasm.c (copy_constant): Delete function.
13865 (build_constant_desc): Don't call it.
13867 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13870 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13871 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13872 with immediate_operand.
13874 2014-06-02 Andreas Schwab <schwab@suse.de>
13876 * config/ia64/ia64.c
13877 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13878 pending_data_specs first.
13880 2014-06-02 Richard Biener <rguenther@suse.de>
13882 PR tree-optimization/61378
13883 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13884 valueized_anything.
13886 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13888 * config/i386/constraints.md (Bw): Rename from 'w'.
13889 (Bz): Rename from 'z'.
13890 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13892 2014-06-01 Kai Tietz <ktietz@redhat.com>
13895 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13896 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13897 instead of m constraint.
13899 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13901 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13902 a separate alternative where the scratch operand 2 is marked as
13905 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13907 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13908 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13909 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13910 and __builtins_arm_get_fpscr.
13911 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13912 __builtins_arm_get_fpscr.
13913 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13914 __builtins_arm_ldfpscr.
13915 (arm_atomic_assign_expand_fenv): New function.
13916 * config/arm/vfp.md (set_fpscr): New pattern.
13917 (get_fpscr) : Likewise.
13918 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13920 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13921 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13923 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13925 * asan.c (report_error_func): Add SLOW_P argument, use
13926 BUILT_IN_ASAN_*_N if set.
13927 (build_check_stmt): Likewise.
13928 (instrument_derefs): If T has insufficient alignment,
13929 force same handling as for odd sizes.
13931 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13932 BUILT_IN_ASAN_REPORT_STORE_N): New.
13933 * asan.c (struct asan_mem_ref): Change access_size type to
13935 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13936 update_mem_ref_hash_table): Likewise.
13937 (asan_mem_ref_hasher::hash): Hash in a HWI.
13938 (report_error_func): Change size_in_bytes argument to HWI.
13939 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13941 (build_shadow_mem_access): New function.
13942 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13943 Handle size_in_bytes not power of two or larger than 16.
13944 (instrument_derefs): Don't give up if size_in_bytes is not
13945 power of two or is larger than 16.
13947 2014-05-30 Kai Tietz <ktietz@redhat.com>
13950 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13951 for sibling-tail-calls.
13952 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13954 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13955 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13957 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13959 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13960 * config/avr/avr-tables.opt: Regenerate.
13961 * config/avr/t-multilib: Regenerate.
13962 * doc/avr-mmcu.texi: Regenerate.
13964 2014-05-30 Ian Lance Taylor <iant@google.com>
13966 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13969 2014-05-30 Tom de Vries <tom@codesourcery.com>
13971 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13974 2014-05-30 Tom de Vries <tom@codesourcery.com>
13976 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13977 * lra.c (initialize_lra_reg_info_element): Add init of
13978 actual_call_used_reg_set field.
13979 (lra): Call lra_create_live_ranges before lra_inheritance for
13981 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13983 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13984 instead of call_used_reg_set for -fuse-caller-save.
13985 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13987 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13989 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13991 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13993 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13995 * ira.c (ira_get_dup_out_num): Check for output operands at
13996 the start of the loop. Handle cases where an included alternative
13997 follows an excluded one.
13999 2014-05-29 Mike Stump <mikestump@comcast.net>
14002 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14003 post ld passes when lto is used.
14005 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14007 PR rtl-optimization/61325
14008 * lra-constraints.c (process_address): Rename to process_address_1.
14009 (process_address): New function.
14011 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14013 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14014 TYPES_BINOPV): New static data.
14015 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14017 * config/aarch64/aarch64-simd.md (aarch64_ext,
14018 aarch64_im_lane_boundsi): New patterns.
14019 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14021 (aarch64_evpc_ext): New function.
14023 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14025 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14026 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14027 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14028 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14029 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14031 2014-05-29 Tom de Vries <tom@codesourcery.com>
14033 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14035 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14036 Richard Sandiford <rdsandiford@googlemail.com>
14038 * arm/iterators.md (shiftable_ops): New code iterator.
14039 (t2_binop0, arith_shift_insn): New code attributes.
14040 * arm/predicates.md (shift_nomul_operator): New predicate.
14041 * arm/arm.md (insn_enabled): Delete.
14042 (enabled): Remove insn_enabled test.
14043 (*arith_shiftsi): Delete. Replace with ...
14044 (*<arith_shift_insn>_multsi): ... new pattern.
14045 (*<arith_shift_insn>_shiftsi): ... new pattern.
14046 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14048 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14049 Tom de Vries <tom@codesourcery.com>
14051 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14052 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14054 (mips_split_call): Use POST_CALL_TMP_REG.
14055 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14057 2014-05-29 Tom de Vries <tom@codesourcery.com>
14059 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14060 with #ifdef STACK_REGS.
14062 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14064 * varasm.c (get_variable_section): Walk aliases.
14065 (place_block_symbol): Walk aliases.
14067 2014-05-28 Tom de Vries <tom@codesourcery.com>
14070 2014-05-28 Tom de Vries <tom@codesourcery.com>
14072 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14073 * lra.c (initialize_lra_reg_info_element): Add init of
14074 actual_call_used_reg_set field.
14075 (lra): Call lra_create_live_ranges before lra_inheritance for
14077 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14079 * lra-constraints.c (need_for_call_save_p): Use
14080 actual_call_used_reg_set instead of call_used_reg_set for
14082 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14084 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14086 * doc/md.texi: Document that the % constraint character must
14087 be at the beginning of the string.
14088 * genoutput.c (validate_insn_alternatives): Check that '=',
14089 '+' and '%' only appear at the beginning of a constraint.
14090 * ira.c (commutative_constraint_p): Delete.
14091 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14092 at the start of the string.
14093 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14095 * config/arm/neon.md (bicdi3_neon): Likewise.
14096 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14097 (slt_si, sltu_si): Likewise.
14098 * config/vax/vax.md (sbcdi3): Likewise.
14099 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14100 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14101 (mul64): Move '%' to beginning of constraint.
14102 * config/arm/arm.md (*xordi3_insn): Likewise.
14103 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14104 (xorsi3): Likewise.
14106 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14108 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14110 2014-05-28 Jason Merrill <jason@redhat.com>
14113 * cgraph.h (symtab_node::get_comdat_group_id): New.
14114 * cgraphunit.c (analyze_functions): Call it.
14115 * symtab.c (dump_symtab_node): Likewise.
14116 * tree.c (decl_comdat_group_id): New.
14117 * tree.h: Declare it.
14118 * lto-streamer-out.c (write_symbol): Use it.
14119 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14121 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14123 PR bootstrap/PR61146
14124 * wide-int.cc: Do not include longlong.h when compiling with clang.
14126 2014-05-28 Richard Biener <rguenther@suse.de>
14128 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14129 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14130 (vrp_visit_assignment_or_call): Print less vertical space.
14131 (vrp_visit_stmt): Likewise.
14132 (vrp_visit_phi_node): Likewise. For a PHI argument with
14133 VR_VARYING range consider recording it as copy.
14135 2014-05-28 Richard Biener <rguenther@suse.de>
14138 2014-05-28 Richard Biener <rguenther@suse.de>
14140 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14142 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14144 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14145 sufficiently aligned and an offset is used at the same time.
14146 (expand_expr_real_1): Likewise.
14148 2014-05-28 Richard Biener <rguenther@suse.de>
14150 PR middle-end/61045
14151 * fold-const.c (fold_comparison): When folding
14152 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14153 the sign of the remaining constant operand stays the same.
14155 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14157 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14158 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14159 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14161 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14162 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14163 (m32bit-doubles) Likewise.
14164 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14165 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14168 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14170 * configure.ac ($gcc_cv_ld_clearcap): New test.
14171 * configure: Regenerate.
14172 * config.in: Regenerate.
14173 * config/sol2.opt (mclear-hwcap): New option.
14174 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14175 * config/sol2-clearcap.map: Moved here from
14176 testsuite/gcc.target/i386/clearcap.map.
14177 * config/sol2-clearcapv2.map: Move here from
14178 gcc.target/i386/clearcapv2.map.
14179 * config/t-sol2 (install): Depend on install-clearcap-map.
14180 (install-clearcap-map): New target.
14181 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14184 2014-05-28 Richard Biener <rguenther@suse.de>
14186 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14187 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14188 ... here and remove the rest.
14189 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14191 2014-05-28 Richard Biener <rguenther@suse.de>
14193 PR tree-optimization/61335
14194 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14195 new range fails, drop to varying.
14197 2014-05-28 Olivier Hainque <hainque@adacore.com>
14199 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14200 (CPP_SPEC): Add entry for -mcpu=8548.
14201 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14202 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14204 2014-05-28 Tom de Vries <tom@codesourcery.com>
14206 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14207 * lra.c (initialize_lra_reg_info_element): Add init of
14208 actual_call_used_reg_set field.
14209 (lra): Call lra_create_live_ranges before lra_inheritance for
14211 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14213 * lra-constraints.c (need_for_call_save_p): Use
14214 actual_call_used_reg_set instead of call_used_reg_set for
14216 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14218 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14219 Tom de Vries <tom@codesourcery.com>
14221 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14223 (@item -fuse-caller-save): New item.
14225 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14226 Tom de Vries <tom@codesourcery.com>
14228 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14229 OPT_fuse_caller_save.
14231 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14232 Tom de Vries <tom@codesourcery.com>
14234 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14235 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14236 get_call_reg_set_usage.
14237 * resource.c (mark_set_resources, mark_target_live_regs): Use
14238 get_call_reg_set_usage.
14239 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14241 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14242 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14243 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14244 * ira-build.c (ira_create_allocno): Init
14245 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14246 (create_cap_allocno, propagate_allocno_info)
14247 (propagate_some_info_from_allocno)
14248 (copy_info_to_removed_store_destinations): Handle
14249 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14250 * ira-costs.c (ira_tune_allocno_costs): Use
14251 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14253 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14254 Tom de Vries <tom@codesourcery.com>
14256 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14257 and function_used_regs_valid fields.
14258 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14259 find_all_hard_reg_sets.
14260 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14261 (get_call_reg_set_usage): New function.
14262 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14263 * regs.h (get_call_reg_set_usage): Declare.
14265 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14268 * config/dbx.h (License): Add Runtime Library Exception.
14269 * config/newlib-stdint.h (License): Same.
14270 * config/rtems.h (License): Same
14271 * config/initfini-array.h (License): Same
14272 * config/v850/v850.h (License): Same.
14273 * config/v850/v850-opts.h (License): Same
14274 * config/v850/rtems.h (License): Same.
14276 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14279 * doc/extend.texi (Local Labels): Note that label differences are
14280 not supported for AVR.
14282 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14283 Olivier Hainque <hainque@adacore.com>
14285 * rtl.h (set_for_reg_notes): Declare.
14286 * emit-rtl.c (set_for_reg_notes): New function.
14287 (set_unique_reg_note): Use it.
14288 * optabs.c (add_equal_note): Likewise
14290 2014-05-27 Andrew Pinski <apinski@cavium.com>
14292 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14293 Use <w> for the register in assembly template.
14294 (stack_protect_test): Use the mode of operands[0] for the result.
14295 (stack_protect_test_<mode>): Use <w> for the register
14296 in assembly template.
14298 2014-05-27 DJ Delorie <dj@redhat.com>
14300 * config/rx/rx.c (add_vector_labels): New.
14301 (rx_output_function_prologue): Call it.
14302 (rx_handle_func_attribute): Don't require empty arguments.
14303 (rx_handle_vector_attribute): New.
14304 (rx_attribute_table): Add "vector" attribute.
14305 * doc/extend.texi (interrupt, vector): Document new/changed
14306 RX-specific attributes.
14308 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14310 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14312 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14313 predicate to detect a negative quotient.
14315 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14317 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14318 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14319 Add X - Y CMP 0 to X CMP Y transformation.
14320 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14322 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14324 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14327 2014-05-27 Steve Ellcey <sellcey@mips.com>
14329 * config/mips/mips.c: Add include of cgraph.h.
14331 2014-05-27 Richard Biener <rguenther@suse.de>
14333 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14335 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14338 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14339 * config/arm/arm-cores.def (License): Same.
14340 * config/arm/arm-opts.h (License): Same.
14341 * config/arm/aout.h (License): Same.
14342 * config/arm/bpabi.h (License): Same.
14343 * config/arm/elf.h (License): Same.
14344 * config/arm/linux-elf.h (License): Same.
14345 * config/arm/linux-gas.h (License): Same.
14346 * config/arm/netbsd-elf.h (License): Same.
14347 * config/arm/uclinux-eabi.h (License): Same.
14348 * config/arm/uclinux-elf.h (License): Same.
14349 * config/arm/vxworks.h (License): Same.
14351 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14353 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14354 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14355 (arm_init_neon_builtins): Handle NEON_BSWAP.
14356 Define required type nodes.
14357 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14358 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14359 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14360 * config/arm/iterators.md (VDQHSD): New mode iterator.
14362 2014-05-27 Richard Biener <rguenther@suse.de>
14364 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14365 Try using literal operands when comparing value-ranges failed.
14367 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14369 * ira.c (commutative_operand): Adjust for change to recog_data.
14370 [Missing from previous commit.]
14372 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14374 * system.h (TEST_BIT): New macro.
14375 * recog.h (alternative_mask): New type.
14376 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14377 (recog_data_d): Replace alternative_enabled_p array with
14378 enabled_alternatives.
14379 (target_recog): New structure.
14380 (default_target_recog, this_target_recog): Declare.
14381 (get_enabled_alternatives, recog_init): Likewise.
14382 * recog.c (default_target_recog, this_target_recog): New variables.
14383 (get_enabled_alternatives): New function.
14384 (extract_insn): Use it.
14385 (recog_init): New function.
14386 (preprocess_constraints, constrain_operands): Adjust for change to
14388 * postreload.c (reload_cse_simplify_operands): Likewise.
14389 * reload.c (find_reloads): Likewise.
14390 * ira-costs.c (record_reg_classes): Likewise.
14391 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14392 all alternatives after a disabled one would be skipped.
14393 (ira_implicitly_set_insn_hard_regs): Likewise.
14394 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14395 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14396 with enabled_alternatives.
14397 * lra.c (free_insn_recog_data): Update accordingly.
14398 (lra_update_insn_recog_data): Likewise.
14399 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14400 * lra-constraints.c (process_alt_operands): Likewise. Handle
14401 only_alternative as part of the enabled mask.
14402 * target-globals.h (this_target_recog): Declare.
14403 (target_globals): Add a recog field.
14404 (restore_target_globals): Restore this_target_recog.
14405 * target-globals.c: Include recog.h.
14406 (default_target_globals): Initialize recog field.
14407 (save_target_globals): Likewise.
14408 * reginfo.c (reinit_regs): Call recog_init.
14409 * toplev.c (backend_init_target): Likewise.
14411 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14413 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14414 rather than any named insn's code.
14416 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14419 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14420 * config/arm/arm-cores.def (License): Same.
14422 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14424 * tree.h (decl_comdat_group): Declare.
14425 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14426 * tree.c (decl_comdat_group): Here.
14428 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14430 PR rtl-optimization/61222
14431 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14432 the shift, truncate the PLUS operand to the result mode.
14434 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14437 * config/i386/i386.c (ix86_rtx_costs)
14438 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14441 2014-05-26 Martin Jambor <mjambor@suse.cz>
14443 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14446 2014-05-26 Richard Biener <rguenther@suse.de>
14448 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14449 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14450 Provide specializations.
14451 (wi::int_traits <HOST_WIDE_INT>,
14452 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14454 2014-05-26 Alan Modra <amodra@gmail.com>
14457 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14458 params and return a bool. Remove dead code. Update comment.
14459 Assert we have a const_int source. Remove bogus code from
14460 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14461 handling of constants > 2G and reg_equal note, from..
14462 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14463 return value. Update comment. If we can, use a new pseudo
14464 for intermediate calculations.
14465 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14467 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14468 call to rs6000_emit_set_const in splitter.
14469 (movdi_internal64+2, +3): Likewise.
14471 2014-05-26 Richard Biener <rguenther@suse.de>
14473 * system.h: Define __STDC_FORMAT_MACROS before
14474 including inttypes.h.
14475 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14476 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14477 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14478 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14479 HOST_WIDEST_INT_C): Remove.
14480 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14481 if C99 inttypes.h is not available.
14482 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14483 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14484 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14485 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14486 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14487 (struct output_info): Likewise.
14488 (print_statistics): Adjust.
14489 (dump_bitmap_statistics): Likewise.
14490 * bt-load.c (migrate_btr_defs): Print with PRId64.
14491 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14492 (MAX_SAFE_MULTIPLIER): Adjust.
14493 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14494 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14495 dump_cgraph_node): Likewise.
14496 * final.c (dump_basic_block_info): Likewise.
14497 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14498 * gcov.c (format_gcov): Likewise.
14499 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14501 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14502 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14503 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14504 Use PRId64 for dumping.
14505 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14506 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14507 (add_allocno_hard_regs): Adjust.
14508 * loop-doloop.c (doloop_modify): Print using PRId64.
14509 * loop-iv.c (inverse): Compute in uint64_t.
14510 (determine_max_iter, iv_number_of_iterations): Likewise.
14511 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14512 Print using PRId64.
14513 * lto-streamer-out.c (write_symbol): Use uint64_t.
14514 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14515 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14516 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14517 * modulo-sched.c (const_iteration_count): Use int64_t.
14518 (sms_schedule): Dump using PRId64.
14519 * predict.c (dump_prediction): Likewise.
14520 * pretty-print.h (pp_widest_integer): Remove.
14521 * profile.c (get_working_sets, is_edge_inconsistent,
14522 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14523 * tree-pretty-print.c (pp_double_int): Remove case handling
14524 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14525 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14527 (pass_optimize_bswap::execute): Remove restriction on hosts.
14528 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14529 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14530 * tree.c (widest_int_cst_value): Remove.
14531 * tree.h (widest_int_cst_value): Likewise.
14532 * value-prof.c (dump_histogram_value): Print using PRId64.
14533 * gengtype.c (main): Also inject int64_t.
14534 * ggc-page.c (struct max_alignment): Use int64_t.
14535 * alloc-pool.c (struct allocation_object_def): Likewise.
14536 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14538 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14539 * doc/tm.texi: Regenerated.
14540 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14541 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14542 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14543 mmix_output_register_setting): Use [u]int64_t in prototypes.
14544 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14545 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14546 mmix_output_octa, mmix_output_shifted_value): Adjust.
14547 (mmix_intval): Adjust. Remove unreachable case.
14548 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14550 2014-05-26 Richard Biener <rguenther@suse.de>
14552 * configure.ac: Drop __int64 type check. Insist that we
14553 found uint64_t and int64_t.
14554 * hwint.h (HOST_BITS_PER___INT64): Remove.
14555 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14556 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14557 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14558 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14559 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14560 for dst_q_src_df_rms_cdt.
14561 * configure: Regenerate.
14562 * config.in: Likewise.
14564 2014-05-26 Michael Tautschnig <mt@debian.org>
14567 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14568 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14570 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14572 PR rtl-optimization/61278
14573 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14575 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14577 PR rtl-optimization/61220
14578 Part of PR rtl-optimization/61225
14579 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14580 insn; skip split_edge for a block with only one successor.
14582 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14584 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14587 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14589 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14590 (update_vtable_references): New function.
14591 (function_and_variable_visibility): Rewrite also vtable initializers.
14592 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14594 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14596 * ggc.h (ggc_grow): New function.
14597 * ggc-none.c (ggc_grow): New function.
14598 * ggc-page.c (ggc_grow): Likewise.
14600 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14602 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14603 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14604 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14605 varpool_externally_visible_p, can_replace_by_local_alias,
14606 update_visibility_by_resolution_info, function_and_variable_visibility,
14607 pass_data_ipa_function_and_variable_visibility,
14608 make_pass_ipa_function_and_variable_visibility,
14609 whole_program_function_and_variable_visibility,
14610 pass_data_ipa_whole_program_visibility,
14611 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14612 * cgraph.h (cgraph_local_node_p): Declare.
14613 * ipa-visibility.c: New file.
14614 * Makefile.in (OBJS): Add ipa-visiblity.o
14616 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14618 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14619 that var decl is available.
14621 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14623 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14624 symtab_node pointer.
14625 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14626 (find_decls_types_r): Do not walk COMDAT_GROUP.
14627 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14628 * varasm.c (make_decl_one_only): Use set_comdat_group;
14629 create node if needed.
14630 * ipa-inline-transform.c (save_inline_function_body): Update
14631 way we decl->symtab mapping.
14632 * symtab.c (symtab_hash, hash_node, eq_node
14633 symtab_insert_node_to_hashtable): Remove.
14634 (symtab_register_node): Update.
14635 (symtab_unregister_node): Update.
14636 (symtab_get_node): Reimplement as inline function.
14637 (symtab_add_to_same_comdat_group): Update.
14638 (symtab_dissolve_same_comdat_group_list): Update.
14639 (dump_symtab_base): Update.
14640 (verify_symtab_base): Update.
14641 (symtab_make_decl_local): Update.
14642 (fixup_same_cpp_alias_visibility): Update.
14643 (symtab_nonoverwritable_alias): Update.
14644 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14645 * ipa.c (update_visibility_by_resolution_info): UPdate.
14646 * bb-reorder.c: Include cgraph.h
14647 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14648 with comdat groups.
14649 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14650 * cgraph.c (cgraph_get_create_node): Update.
14651 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14653 (symtab_get_node): Make inline.
14654 (symtab_insert_node_to_hashtable): Remove.
14655 (symtab_can_be_discarded): Update.
14656 (decl_comdat_group): New function.
14657 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14659 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14661 (read_comdat_group): New function.
14662 (input_node, input_varpool_node): Use it.
14663 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14665 * mips.c (mips_start_unique_function): Likewise.
14666 (ix86_code_end): Likewise.
14667 (rs6000_code_end): Likweise.
14668 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14670 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14672 * gengtype-state.c (fatal_reading_state): Bring offline.
14673 * optabs.c (widening_optab_handler): Bring offline.
14674 * optabs.h (widening_optab_handler): Likewise.
14675 * final.c (get_attr_length_1): Likewise.
14677 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14679 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14681 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14683 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14684 (ppc440-compare): Include shift with dot.
14685 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14686 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14688 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14690 (e6500_sfx2): Include it.
14691 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14692 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14693 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14694 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14695 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14696 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14697 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14698 *lshiftrt_internal1le, *lshiftrt_internal1be,
14699 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14700 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14701 *rotldi3_internal10le, *rotldi3_internal10be,
14702 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14703 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14704 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14705 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14706 define_insns): Use type "shift" in the appropriate alternatives.
14708 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14710 * config/rs6000/rs6000.md (type): Add "logical". Delete
14712 (dot): Adjust comment.
14713 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14714 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14715 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14716 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14717 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14718 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14719 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14720 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14722 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14723 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14724 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14725 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14726 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14727 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14728 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14729 * config/rs6000/8540.md (ppc8540_su): Adjust.
14730 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14731 cell-cmp-microcoded): Adjust.
14732 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14733 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14734 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14735 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14736 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14737 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14738 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14739 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14740 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14742 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14743 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14744 Adjust. Adjust comment.
14745 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14746 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14748 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14750 * config/rs6000/rs6000.md (type): Add "add".
14751 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14752 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14753 define_insns): Use it.
14754 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14756 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14757 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14758 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14759 * config/rs6000/601.md (ppc601-integer): Adjust.
14760 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14761 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14762 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14763 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14764 * config/rs6000/8540.md (ppc8540_su): Adjust.
14765 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14766 cell-cmp-microcoded): Adjust.
14767 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14768 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14769 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14770 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14771 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14772 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14773 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14774 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14775 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14777 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14778 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14779 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14780 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14782 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14784 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14785 "delayed_compare", "var_delayed_compare".
14786 (var_shift): New attribute.
14787 (cell_micro): Adjust.
14788 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14789 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14790 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14791 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14792 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14793 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14794 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14795 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14796 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14797 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14798 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14799 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14800 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14801 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14802 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14803 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14804 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14805 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14806 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14807 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14808 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14809 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14810 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14811 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14812 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14814 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14815 * config/rs6000/440.md (ppc440-integer): Adjust.
14816 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14817 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14818 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14819 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14820 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14821 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14822 * config/rs6000/8540.md (ppc8540_su): Adjust.
14823 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14824 cell-cmp-microcoded): Adjust.
14825 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14826 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14827 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14828 e500mc64_delayed): Adjust.
14829 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14830 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14831 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14832 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14833 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14834 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14835 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14836 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14837 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14839 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14840 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14842 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14844 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14845 (bits): New mode_attr.
14846 (idiv_ldiv): Delete mode_attr.
14847 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14848 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14849 rs6000_adjust_priority, is_nonpipeline_insn,
14850 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14852 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14853 * config/rs6000/440.md (ppc440-idiv): Adjust.
14854 * config/rs6000/476.md (ppc476-idiv): Adjust.
14855 * config/rs6000/601.md (ppc601-idiv): Adjust.
14856 * config/rs6000/603.md (ppc603-idiv): Adjust.
14857 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14858 ppc620-ldiv): Adjust.
14859 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14860 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14861 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14862 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14863 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14864 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14865 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14866 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14867 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14868 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14869 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14870 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14871 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14872 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14873 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14874 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14875 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14876 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14878 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14880 * config/rs6000/rs6000.md (type): Delete "insert_word",
14881 "insert_dword". Add "insert".
14882 (size): Update comment.
14883 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14884 insn_must_be_first_in_group): Adjust.
14885 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14886 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14887 *insvsi_internal6, insvdi_internal): Adjust.
14889 * config/rs6000/40x.md (ppc403-integer): Adjust.
14890 * config/rs6000/440.md (ppc440-integer): Adjust.
14891 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14892 * config/rs6000/601.md (ppc601-integer): Adjust.
14893 * config/rs6000/603.md (ppc603-integer): Adjust.
14894 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14895 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14896 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14897 * config/rs6000/8540.md (ppc8540_su): Adjust.
14898 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14899 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14900 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14901 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14902 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14903 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14904 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14905 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14906 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14907 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14908 * config/rs6000/power7.md (power7-integer): Adjust.
14909 * config/rs6000/power8.md (power8-1cyc): Adjust.
14910 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14911 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14913 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14915 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14916 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14917 (size): New attribute.
14918 (dot): New attribute.
14919 (cell_micro): Adjust.
14920 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14921 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14922 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14923 umuldi3_highpart): Adjust.
14924 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14925 rs6000_adjust_priority, is_nonpipeline_insn,
14926 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14928 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14929 ppc405-imul3): Adjust.
14930 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14931 * config/rs6000/476.md (ppc476-imul): Adjust.
14932 * config/rs6000/601.md (ppc601-imul): Adjust.
14933 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14934 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14935 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14936 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14937 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14939 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14940 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14941 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14942 cell-imul): Adjust.
14943 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14944 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14945 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14946 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14947 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14948 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14949 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14950 power4-lmul, power4-imul, power4-imul3): Adjust.
14951 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14952 power5-lmul, power5-imul, power5-imul3): Adjust.
14953 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14954 power6-lmul, power6-imul, power6-imul3): Adjust.
14955 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14956 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14958 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14959 rs64a-lmul): Adjust.
14960 * config/rs6000/titan.md (titan_imul): Adjust.
14962 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14964 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14965 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14966 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14967 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14968 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14969 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14970 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14971 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14972 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14973 * config/rs6000/titan.md: Delete nonsensical comment.
14974 (titan_imul): Add type imul3.
14975 (titan_mulhw): Remove type imul3; add type halfmul.
14977 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14979 * config/rs6000/rs6000.md (type): Reorder, reformat.
14981 2014-05-23 Martin Jambor <mjambor@suse.cz>
14983 PR tree-optimization/53787
14984 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14985 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14986 analysis_done, update all uses.
14987 * ipa-prop.c: Include domwalk.h
14988 (param_analysis_info): Removed.
14989 (param_aa_status): New type.
14990 (ipa_bb_info): Likewise.
14991 (func_body_info): Likewise.
14992 (ipa_get_bb_info): New function.
14993 (aa_overwalked): Likewise.
14994 (find_dominating_aa_status): Likewise.
14995 (parm_bb_aa_status_for_bb): Likewise.
14996 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14997 (load_from_unmodified_param): Accept func_body_info as a parameter
14998 instead of parms_ainfo.
14999 (parm_ref_data_preserved_p): Changed to use new param AA info.
15000 (parm_ref_data_pass_through_p): Likewise.
15001 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15002 (compute_complex_assign_jump_func): Changed to use new param AA info.
15003 (compute_complex_ancestor_jump_func): Likewise.
15004 (ipa_compute_jump_functions_for_edge): Likewise.
15005 (ipa_compute_jump_functions): Removed.
15006 (ipa_compute_jump_functions_for_bb): New function.
15007 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15009 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15010 and info, moved variable declarations down.
15011 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15013 (ipa_analyze_stmt_uses): Likewise.
15014 (ipa_analyze_params_uses): Removed.
15015 (ipa_analyze_params_uses_in_bb): New function.
15016 (ipa_analyze_controlled_uses): Likewise.
15017 (free_ipa_bb_info): Likewise.
15018 (analysis_dom_walker): New class.
15019 (ipa_analyze_node): Handle node-specific forbidden analysis,
15020 initialize and free func_body_info, use dominator walker.
15021 (ipcp_modif_dom_walker): New class.
15022 (ipcp_transform_function): Create and free func_body_info, use
15023 ipcp_modif_dom_walker, moved a lot of functionality there.
15025 2014-05-23 Marek Polacek <polacek@redhat.com>
15026 Jakub Jelinek <jakub@redhat.com>
15028 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15029 * gcc.c (sanitize_spec_function): Likewise.
15030 * convert.c (convert_to_integer): Include "ubsan.h". Add
15031 floating-point to integer instrumentation.
15032 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15033 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15034 SANITIZE_NONDEFAULT.
15035 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15036 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15037 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15038 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15039 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15040 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15041 float/double/long double.
15042 (ubsan_instrument_float_cast): New function.
15043 * ubsan.h (ubsan_instrument_float_cast): Declare.
15045 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15047 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15049 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15050 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15051 Adjust for tailcalling through registers.
15052 * config/aarch64/aarch64.h (enum reg_class): New caller save
15054 (REG_CLASS_NAMES): Likewise.
15055 (REG_CLASS_CONTENTS): Likewise.
15056 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15057 Allow tailcalling without decls.
15059 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15061 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15062 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15064 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15065 gsi, and variables v_* to v*.
15067 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15069 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15071 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15073 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15074 * omp-low.c: Update accordingly.
15076 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15077 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15078 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15079 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15080 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15081 GF_OMP_TARGET_KIND_UPDATE.
15083 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15084 Explicitly enumerate the expected region types.
15086 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15089 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15090 documentation; the old documentation didn't clearly state the
15091 constraints on the contents of the pointed-to storage.
15093 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15095 Fix bootstrap error on ia64
15096 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15097 Return default value.
15099 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15101 PR tree-optimization/54733
15102 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15104 (find_bswap_or_nop_load): New.
15105 (find_bswap_1): Renamed to ...
15106 (find_bswap_or_nop_1): This. Also add support for memory source.
15107 (find_bswap): Renamed to ...
15108 (find_bswap_or_nop): This. Also add support for memory source and
15109 detection of bitwise operations equivalent to load in target
15111 (execute_optimize_bswap): Likewise. Also move its leading comment back
15112 in place and split statement transformation into ...
15113 (bswap_replace): This.
15115 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15117 PR rtl-optimization/61215
15118 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15119 simplify_gen_subreg until final substitution.
15121 2014-05-23 Alan Modra <amodra@gmail.com>
15124 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15125 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15126 Use "Y" constraint rather than "m".
15128 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15130 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15132 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15133 New function declaration.
15134 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15135 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15136 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15137 (aarch64_init_builtins) : Initialize builtins
15138 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15139 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15140 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15141 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15142 and __builtins_aarch64_set_fpsr.
15143 (aarch64_atomic_assign_expand_fenv): New function.
15144 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15145 (get_fpcr) : Likewise.
15146 (set_fpsr) : Likewise.
15147 (get_fpsr) : Likewise.
15148 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15149 and UNSPECV_SET_FPSR.
15150 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15151 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15152 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15154 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15156 PR rtl-optimization/60969
15157 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15158 constraints. Set up mem cost for NO_REGS case.
15160 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15162 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15164 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15166 * config/darwin.c: Include "lto-section-names.h".
15167 (LTO_SEGMENT_NAME): Don't define.
15168 * config/i386/winnt.c: Include "lto-section-names.h".
15169 * lto-streamer.c: Include "lto-section-names.h".
15170 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15171 * lto-wrapper.c: Include "lto-section-names.h".
15172 (LTO_SECTION_NAME_PREFIX): Don't define.
15173 * lto-section-names.h: New file.
15174 * cgraphunit.c: Include "lto-section-names.h".
15176 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15178 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15180 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15183 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15185 2014-05-22 Nick Clifton <nickc@redhat.com>
15187 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15189 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15191 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15192 -> (T)A transformation to integer types.
15194 2014-05-22 Teresa Johnson <tejohnson@google.com>
15196 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15197 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15198 (gcov_rewrite): Use gcov_nonruntime_assert.
15199 (gcov_open): Ditto.
15200 (gcov_write_words): Ditto.
15201 (gcov_write_length): Ditto.
15202 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15203 gcc_assert from IN_LIBGCOV code.
15204 (gcov_read_summary): Use gcov_error to flag profile corruption.
15205 (gcov_sync): Use gcov_nonruntime_assert.
15206 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15207 (gcov_histo_index): Use gcov_nonruntime_assert.
15208 (static void gcov_histogram_merge): Ditto.
15209 (compute_working_sets): Ditto.
15210 * gcov-io.h (gcov_nonruntime_assert): Define.
15211 (gcov_error): Define for !IN_LIBGCOV
15213 2014-05-22 Richard Biener <rguenther@suse.de>
15215 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15216 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15217 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15218 and deallocation site.
15219 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15220 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15221 passing through the incoming points-to set.
15222 (handle_lhs_call): Use flags argument instead of recomputing it.
15223 (find_func_aliases_for_call): Call handle_lhs_call with proper
15226 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15228 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15229 all padding bits in REAL_VALUE_TYPE are cleared.
15231 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15233 Cleanup and improve multipass_dfa_lookahead_guard
15234 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15235 (core2i7_first_cycle_multipass_begin,)
15236 (core2i7_first_cycle_multipass_issue,)
15237 (core2i7_first_cycle_multipass_backtrack): Update signature.
15238 * config/ia64/ia64.c
15239 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15240 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15241 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15243 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15244 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15246 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15248 * doc/tm.texi: Regenerate.
15250 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15251 * haifa-sched.c (ready_try): Make signed to allow negative values.
15252 (rebug_ready_list_1): Update.
15253 (choose_ready): Simplify.
15254 (sched_extend_ready_list): Update.
15256 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15258 Remove IA64 speculation tweaking flags
15259 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15260 speculation tuning flags.
15261 (msched-prefer-non-data-spec-insns,)
15262 (msched-prefer-non-control-spec-insns): Obsolete options.
15263 * haifa-sched.c (choose_ready): Remove handling of
15264 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15265 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15266 and PREFER_NON_DATA_SPEC.
15267 * sel-sched.c (process_spec_exprs): Remove handling of
15268 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15270 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15272 Improve scheduling debug output
15273 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15274 (advance_one_cycle): Update.
15275 (schedule_insn, queue_to_ready): Add debug printouts.
15276 (debug_ready_list_1): New static function.
15277 (debug_ready_list): Update.
15278 (max_issue): Add debug printouts.
15279 (dump_insn_stream): New static function.
15280 (schedule_block): Use it. Also better indent printouts.
15282 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15284 Fix sched_insn debug counter
15285 * haifa-sched.c (schedule_insn): Update.
15286 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15287 (save_backtrack_point, restore_backtrack_point): Update.
15288 (first_nonscheduled_insn): New static function.
15289 (queue_to_ready, choose_ready): Use it.
15290 (schedule_block): Init nonscheduled_insns_begin.
15291 (sched_emit_insn): Update.
15294 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15296 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15298 (aarch64_secondary_reload) : LikeWise.
15299 (aarch64_class_max_nregs) : Remove CORE_REGS.
15300 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15301 (REG_CLASS_NAMES) : Likewise.
15302 (REG_CLASS_CONTENTS) : LikeWise.
15303 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15305 2014-05-21 Guozhi Wei <carrot@google.com>
15308 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15310 (vqdmulhq_n_s16): Likewise.
15312 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15314 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15316 2014-05-21 Marek Polacek <polacek@redhat.com>
15319 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15321 2014-05-21 Martin Jambor <mjambor@suse.cz>
15323 * doc/invoke.texi (Optimize Options): Document parameters
15324 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15325 ipa-cp-array-index-hint-bonus.
15327 2014-05-21 Mark Wielaard <mjw@redhat.com>
15330 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15331 version >= 3 or not strict DWARF.
15332 * langhooks.h (struct lang_hooks_for_types): Add
15333 enum_underlying_base_type.
15334 * langhooks.c (lhd_enum_underlying_base_type): New function.
15335 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15336 enum_underlying_base_type.
15337 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15338 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15339 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15341 2014-05-21 Richard Biener <rguenther@suse.de>
15343 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15345 2014-05-21 John Marino <gnugcc@marino.st>
15347 * config.gcc (*-*-dragonfly*): New target.
15348 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15349 * configure: Regenerate.
15350 * config/dragonfly-stdint.h: New.
15351 * config/dragonfly.h: New.
15352 * config/dragonfly.opt: New.
15353 * config/i386/dragonfly.h: New.
15354 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15356 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15358 * tree.def (VOID_CST): New.
15359 * tree-core.h (TI_VOID): New.
15360 * tree.h (void_node): New.
15361 * tree.c (tree_node_structure_for_code, tree_code_size)
15362 (iterative_hash_expr): Handle VOID_CST.
15363 (build_common_tree_nodes): Initialize void_node.
15365 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15367 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15369 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15371 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15374 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15375 flag_reorder_blocks_and_partition.
15376 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15378 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15381 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15383 (*addc_r_t): Add new insn_and_split.
15385 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15387 PR middle-end/61252
15388 * omp-low.c (handle_simd_reference): New function.
15389 (lower_rec_input_clauses): Use it. Defer adding reference
15390 initialization even for reduction without placeholder if in simd,
15391 handle it properly later on.
15393 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15395 PR tree-optimization/60899
15396 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15397 assume all static symbols will have definition wile parsing and
15398 check the do have definition later in compilation; check that
15399 variable referring symbol will be output before concluding that
15400 reference is safe; be conservative for referring local statics;
15401 be more precise about when comdat is output in other partition.
15403 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15406 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15408 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15409 (ipa_inline): Loop inline_to_all_callers until no more aliases
15412 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15414 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15415 set writeonly flag only for vars actually written to.
15417 2014-05-20 Dehao Chen <dehao@google.com>
15419 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15420 and callee count to get clone count.
15421 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15422 count in copy_body.
15424 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15426 PR rtl-optimization/61243
15427 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15429 2014-05-20 Xinliang David Li <davidxl@google.com>
15431 * cgraphunit.c (walk_polymorphic_call_targets): Add
15432 dbgcnt and fopt-info support.
15433 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15434 * ipa-devirt.c (ipa_devirt): Ditto.
15435 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15436 * ipa.c (walk_polymorphic_call_targets): Ditto.
15437 * gimple-fold.c (fold_gimple_assign): Ditto.
15438 (gimple_fold_call): Ditto.
15439 * dbgcnt.def: New counter.
15441 2014-05-20 DJ Delorie <dj@redhat.com>
15443 * config/msp430/msp430.md (split): Don't allow subregs when
15444 splitting SImode adds.
15445 (andneghi): Fix subtraction logic.
15446 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15448 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15450 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15452 * except.c (switch_to_exception_section, resolve_unique_section,
15453 get_named_text_section, default_function_rodata_section,
15454 align_variable, get_block_for_decl, default_section_type_flags):
15455 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15456 * symtab.c (symtab_add_to_same_comdat_group,
15457 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15458 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15460 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15461 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15462 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15463 (c6x_function_in_section_p): Likewise.
15464 * config/darwin.c (machopic_select_section): Likewise.
15465 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15466 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15467 * config/mep/mep.c (mep_select_section): LIkewise.
15468 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15470 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15472 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15473 EH region of calls to pure functions that can throw an exception.
15474 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15475 (copy_reference_ops_from_call): Also copy the EH region of the call if
15476 it can throw an exception.
15478 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15480 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15481 nested VEC_SELECTs that are inverses of each other.
15483 2014-05-20 Richard Biener <rguenther@suse.de>
15485 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15486 (extract_and_process_scc_for_name): not here.
15487 (cond_dom_walker::before_dom_children): Only process
15488 stmts that end the BB in interesting ways.
15489 (run_scc_vn): Mark param uses as visited.
15491 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15493 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15496 2014-05-20 Nick Clifton <nickc@redhat.com>
15498 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15499 (msp430_gimplify_va_arg_expr): New function.
15500 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15502 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15503 operand 0 in order to prevent confusion about the number of
15504 registers involved.
15506 2014-05-20 Richard Biener <rguenther@suse.de>
15508 PR tree-optimization/61221
15509 * tree-ssa-pre.c (el_to_update): Remove.
15510 (eliminate_dom_walker::before_dom_children): Handle released
15511 VDEFs by value-numbering them to the associated VUSE. Update
15512 stmt immediately for substituted call address.
15513 (eliminate): Remove delayed stmt updating code.
15514 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15515 possibly late re-numbered vuses.
15516 (vn_reference_lookup_2): Adjust.
15517 (vn_reference_lookup_pieces): Likewise.
15518 (vn_reference_lookup): Likewise.
15520 2014-05-20 Richard Biener <rguenther@suse.de>
15522 * config.gcc: Remove need_64bit_hwint.
15523 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15524 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15526 * config.in: Regenerate.
15527 * configure: Likewise.
15529 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15531 * doc/extend.texi: Create Label Attributes section,
15532 move all label attributes into it and reference it.
15534 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15536 * arm.c (thumb1_reorg): When scanning backwards skip anything
15537 that's not a proper insn.
15539 2014-05-19 Richard Biener <rguenther@suse.de>
15541 PR tree-optimization/61221
15542 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15543 Do nothing for unreachable blocks.
15544 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15545 Improve unreachability detection.
15547 2014-05-19 Richard Biener <rguenther@suse.de>
15549 PR tree-optimization/61209
15550 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15552 2014-05-19 Nick Clifton <nickc@redhat.com>
15554 * except.c (init_eh): Fix computation of builtin setjmp buffer
15555 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15557 2014-05-19 Richard Biener <rguenther@suse.de>
15559 PR tree-optimization/61184
15560 * tree-vrp.c (is_negative_overflow_infinity): Use
15561 TREE_OVERFLOW_P and do that check first.
15562 (is_positive_overflow_infinity): Likewise.
15563 (is_overflow_infinity): Likewise.
15564 (vrp_operand_equal_p): Properly treat operands with
15565 differing overflow as not equal.
15567 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15569 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15570 shift simplification where it was intended.
15572 2014-05-19 Christian Bruel <christian.bruel@st.com>
15575 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15577 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15580 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15583 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15585 * reg-notes.def (CROSSING_JUMP): Likewise.
15586 * rtl.h (rtx_def): Update comment for jump flag.
15587 (CROSSING_JUMP_P): Define.
15588 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15589 of a REG_CROSSING_JUMP note.
15590 * cfghooks.c (tidy_fallthru_edges): Likewise.
15591 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15592 * emit-rtl.c (try_split): Likewise.
15593 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15594 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15595 * jump.c (redirect_jump_2): Likewise.
15596 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15597 (relax_delay_slots): Likewise.
15598 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15599 (bbit_di): Likewise.
15600 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15601 * config/sh/sh.md (jump_compact): Likewise.
15602 * bb-reorder.c (rotate_loop): Likewise.
15603 (pass_duplicate_computed_gotos::execute): Likewise.
15604 (add_reg_crossing_jump_notes): Rename to...
15605 (update_crossing_jump_flags): ...this.
15606 (pass_partition_blocks::execute): Update accordingly.
15608 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15610 * tree.h: Remove extraneous template <>.
15612 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15614 * ipa.c (symtab_remove_unreachable_nodes): Remove
15615 symbol from comdat group if its body was eliminated.
15616 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15617 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15618 (symtab_unregister_node): ... this one.
15619 (verify_symtab_base): More strict checking of comdats.
15620 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15622 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15624 * tree-pass.h (make_pass_ipa_comdats): New pass.
15625 * timevar.def (TV_IPA_COMDATS): New timevar.
15626 * passes.def (pass_ipa_comdats): Add.
15627 * Makefile.in (OBJS): Add ipa-comdats.o
15628 * ipa-comdats.c: New file.
15630 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15632 * ipa.c (update_visibility_by_resolution_info): New function.
15633 (function_and_variable_visibility): Use it.
15635 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15637 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15639 (FOR_EACH_DEFINED_SYMBOL): New macro.
15640 (varpool_first_static_initializer, varpool_next_static_initializer,
15641 varpool_first_defined_variable, varpool_next_defined_variable):
15643 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15645 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15647 * ggc-page.c (ggc_handle_finalizers): Add comment.
15649 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15651 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15652 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15653 (ggc_internal_cleared_alloc): Likewise.
15654 * ggc-page.c (finalizer): New class.
15655 (vec_finalizer): Likewise.
15656 (globals::finalizers): New member.
15657 (globals::vec_finalizers): Likewise.
15658 (ggc_internal_alloc): Record the finalizer if any for the block being
15660 (ggc_handle_finalizers): New function.
15661 (ggc_collect): Call ggc_handle_finalizers.
15662 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15664 (ggc_internal_cleared_alloc): Likewise.
15665 (finalize): New function.
15666 (need_finalization_p): Likewise.
15667 (ggc_alloc): Install the type's destructor as the finalizer if it
15668 might do something.
15669 (ggc_cleared_alloc): Likewise.
15670 (ggc_vec_alloc): Likewise.
15671 (ggc_cleared_vec_alloc): Likewise.
15673 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15675 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15677 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15679 * alias.c (record_alias_subset): Adjust.
15680 * bitmap.c (bitmap_element_allocate): Likewise.
15681 (bitmap_gc_alloc_stat): Likewise.
15682 * cfg.c (init_flow): Likewise.
15683 (alloc_block): Likewise.
15684 (unchecked_make_edge): Likewise.
15685 * cfgloop.c (alloc_loop): Likewise.
15686 (flow_loops_find): Likewise.
15687 (rescan_loop_exit): Likewise.
15688 * cfgrtl.c (init_rtl_bb_info): Likewise.
15689 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15690 (cgraph_allocate_node): Likewise.
15691 (cgraph_create_edge_1): Likewise.
15692 (cgraph_allocate_init_indirect_info): Likewise.
15693 * cgraphclones.c (cgraph_clone_edge): Likewise.
15694 * cgraphunit.c (add_asm_node): Likewise.
15695 (init_lowered_empty_function): Likewise.
15696 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15697 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15698 (alpha_use_linkage): Likewise.
15699 * config/arc/arc.c (arc_init_machine_status): Likewise.
15700 * config/arm/arm.c (arm_init_machine_status): Likewise.
15701 * config/avr/avr.c (avr_init_machine_status): Likewise.
15702 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15703 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15704 * config/cris/cris.c (cris_init_machine_status): Likewise.
15705 * config/darwin.c (machopic_indirection_name): Likewise.
15706 (darwin_build_constant_cfstring): Likewise.
15707 (darwin_enter_string_into_cfstring_table): Likewise.
15708 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15709 * config/frv/frv.c (frv_init_machine_status): Likewise.
15710 * config/i386/i386.c (get_dllimport_decl): Likewise.
15711 (ix86_init_machine_status): Likewise.
15712 (assign_386_stack_local): Likewise.
15713 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15714 (i386_pe_maybe_record_exported_symbol): Likewise.
15715 (i386_pe_record_stub): Likewise.
15716 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15717 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15718 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15719 (m32c_note_pragma_address): Likewise.
15720 * config/mep/mep.c (mep_init_machine_status): Likewise.
15721 (mep_note_pragma_flag): Likewise.
15722 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15723 (mips16_local_alias): Likewise.
15724 (mips_init_machine_status): Likewise.
15725 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15726 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15727 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15728 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15729 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15730 * config/pa/pa.c (pa_init_machine_status): Likewise.
15731 (pa_get_deferred_plabel): Likewise.
15732 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15733 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15734 (rs6000_init_machine_status): Likewise.
15735 (output_toc): Likewise.
15736 * config/s390/s390.c (s390_init_machine_status): Likewise.
15737 * config/score/score.c (score_output_external): Likewise.
15738 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15739 * config/spu/spu.c (spu_init_machine_status): Likewise.
15740 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15741 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15742 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15743 * coverage.c (coverage_end_function): Likewise.
15744 * dbxout.c (dbxout_init): Likewise.
15745 * doc/gty.texi: Don't mention variable_size attribute.
15746 * dwarf2cfi.c (new_cfi): Adjust.
15747 (new_cfi_row): Likewise.
15748 (copy_cfi_row): Likewise.
15749 (create_cie_data): Likewise.
15750 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15751 (new_loc_descr): Likewise.
15752 (find_AT_string_in_table): Likewise.
15753 (add_addr_table_entry): Likewise.
15754 (new_die): Likewise.
15755 (add_var_loc_to_decl): Likewise.
15756 (clone_die): Likewise.
15757 (clone_as_declaration): Likewise.
15758 (break_out_comdat_types): Likewise.
15759 (new_loc_list): Likewise.
15760 (add_loc_descr_to_each): Likewise.
15761 (add_location_or_const_value_attribute): Likewise.
15762 (add_linkage_name): Likewise.
15763 (lookup_filename): Likewise.
15764 (dwarf2out_var_location): Likewise.
15765 (new_line_info_table): Likewise.
15766 (dwarf2out_init): Likewise.
15767 (mem_loc_descriptor): Likewise.
15768 (loc_descriptor): Likewise.
15769 (add_const_value_attribute): Likewise.
15770 (tree_add_const_value_attribute): Likewise.
15771 (comp_dir_string): Likewise.
15772 (dwarf2out_vms_debug_main_pointer): Likewise.
15773 (string_cst_pool_decl): Likewise.
15774 * emit-rtl.c (set_mem_attrs): Likewise.
15775 (get_reg_attrs): Likewise.
15776 (start_sequence): Likewise.
15777 (init_emit): Likewise.
15778 (init_emit_regs): Likewise.
15779 * except.c (init_eh_for_function): Likewise.
15780 (gen_eh_region): Likewise.
15781 (gen_eh_region_catch): Likewise.
15782 (gen_eh_landing_pad): Likewise.
15783 (add_call_site): Likewise.
15784 * function.c (add_frame_space): Likewise.
15785 (insert_temp_slot_address): Likewise.
15786 (assign_stack_temp_for_type): Likewise.
15787 (get_hard_reg_initial_val): Likewise.
15788 (allocate_struct_function): Likewise.
15789 (prepare_function_start): Likewise.
15790 (types_used_by_var_decl_insert): Likewise.
15791 * gengtype.c (variable_size_p): Remove function.
15792 (enum alloc_quantity): Remove enum.
15793 (write_typed_alloc_def): Remove function.
15794 (write_typed_struct_alloc_def): Likewise.
15795 (write_typed_typedef_alloc_def): Likewise.
15796 (write_typed_alloc_defns): Likewise.
15798 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15799 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15800 * ggc.h (ggc_alloc): new function.
15801 (ggc_cleared_alloc): Likewise.
15802 (ggc_vec_alloc): Template on type of vector element, and remove
15803 element size argument.
15804 (ggc_cleared_vec_alloc): Likewise.
15805 * gimple.c (gimple_build_omp_for): Adjust.
15806 (gimple_copy): Likewise.
15807 * ipa-cp.c (get_replacement_map): Likewise.
15808 (find_aggregate_values_for_callers_subset): Likewise.
15809 (known_aggs_to_agg_replacement_list): Likewise.
15810 * ipa-devirt.c (get_odr_type): Likewise.
15811 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15812 (read_agg_replacement_chain): Likewise.
15813 * loop-iv.c (get_simple_loop_desc): Likewise.
15814 * lto-cgraph.c (input_node_opt_summary): Likewise.
15815 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15816 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15817 (input_eh_region): Likewise.
15818 (input_eh_lp): Likewise.
15819 (input_cfg): Likewise.
15820 * optabs.c (set_optab_libfunc): Likewise.
15821 (init_tree_optimization_optabs): Likewise.
15822 (set_conv_libfunc): Likewise.
15823 * passes.c (do_per_function_toporder): Likewise.
15824 * rtl.h: Don't use variable_size gty attribute.
15825 * sese.c (if_region_set_false_region): Adjust.
15826 * stringpool.c (gt_pch_save_stringpool): Likewise.
15827 * target-globals.c (save_target_globals): Likewise.
15828 * toplev.c (general_init): Likewise.
15829 * trans-mem.c (record_tm_replacement): Likewise.
15830 (split_bb_make_tm_edge): Likewise.
15831 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15832 * tree-data-ref.h (lambda_vector_new): Likewise.
15833 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15834 * tree-iterator.c (tsi_link_before): Likewise.
15835 (tsi_link_after): Likewise.
15836 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15837 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15838 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15839 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15840 * tree-ssa.c (init_tree_ssa): Adjust.
15841 * tree-ssanames.c (set_range_info): Likewise.
15842 (get_ptr_info): Likewise.
15843 (duplicate_ssa_name_ptr_info): Likewise.
15844 (duplicate_ssa_name_range_info): Likewise.
15845 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15846 (unpack_ts_fixed_cst_value_fields): Likewise.
15847 * tree.c (build_fixed): Likewise.
15848 (build_real): Likewise.
15849 (build_string): Likewise.
15850 (decl_priority_info): Likewise.
15851 (decl_debug_expr_insert): Likewise.
15852 (decl_value_expr_insert): Likewise.
15853 (decl_debug_args_insert): Likewise.
15854 (type_hash_add): Likewise.
15855 (build_omp_clause): Likewise.
15856 * ubsan.c (decl_for_type_insert): Likewise.
15857 * varasm.c (get_unnamed_section): Likewise.
15858 (get_noswitch_section): Likewise.
15859 (get_section): Likewise.
15860 (get_block_for_section): Likewise.
15861 (create_block_symbol): Likewise.
15862 (build_constant_desc): Likewise.
15863 (create_constant_pool): Likewise.
15864 (force_const_mem): Likewise.
15865 (record_tm_clone_pair): Likewise.
15866 * varpool.c (varpool_create_empty_node): Likewise.
15868 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15870 * dwarf2out.c (tree_add_const_value_attribute): Call
15871 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15872 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15873 instead of ggc_internal_<x>alloc_stat.
15874 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15875 (ggc_realloc): Likewise.
15876 * ggc-none.c (ggc_internal_alloc): Likewise.
15877 (ggc_internal_cleared_alloc): Likewise.
15878 * ggc-page.c: Likewise.
15879 * ggc.h (ggc_internal_alloc_stat): Likewise.
15880 (ggc_internal_alloc): Remove macro.
15881 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15882 (ggc_internal_cleared_alloc): Remove macro.
15883 (GGC_RESIZEVEC): Adjust.
15884 (ggc_resizevar): Remove macro.
15885 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15886 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15887 (ggc_internal_vec_cleared_alloc): Remove macro.
15888 (ggc_alloc_atomic_stat): Drop _stat suffix.
15889 (ggc_alloc_atomic): Remove macro.
15890 (ggc_alloc_cleared_atomic): Remove macro.
15891 (ggc_alloc_string_stat): Drop _stat suffix.
15892 (ggc_alloc_string): Remove macro.
15893 (ggc_alloc_rtx_def_stat): Adjust.
15894 (ggc_alloc_tree_node_stat): Likewise.
15895 (ggc_alloc_cleared_tree_node_stat): Likewise.
15896 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15897 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15898 * gimple.c (gimple_build_omp_for): Likewise.
15899 (gimple_copy): Likewise.
15900 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15901 * toplev.c (realloc_for_line_map): Adjust.
15902 * tree-data-ref.h (lambda_vector_new): Likewise.
15903 * tree-phinodes.c (allocate_phi_node): Likewise.
15904 * tree.c (grow_tree_vec_stat): Likewise.
15905 * vec.h (va_gc::reserve): Adjust.
15907 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15909 * config/microblaze/microblaze.c (break_handler): New Declaration.
15910 (microblaze_break_function_p,microblaze_is_break_handler): New.
15911 (compute_frame_size): Use microblaze_break_function_p.
15912 Add the test of break_handler.
15913 (microblaze_function_prologue) : Add the test of variable
15914 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15915 (microblaze_function_epilogue) : Add the test of break_handler.
15916 (microblaze_globalize_label) : Add the test of break_handler.
15917 Check the name by BREAK_HANDLER_NAME.
15919 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15921 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15922 microblaze_is_break_handler test.
15923 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15924 Use SYMBOL_REF_DECL.
15926 * config/microblaze/microblaze-protos.h
15927 (microblaze_break_function_p,microblaze_is_break_handler):
15930 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15931 new MicroBlaze break_handler functions.
15933 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15935 * doc/extend.texi (Size of an asm): Move node text according
15936 to its @menu entry position.
15938 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15940 PR tree-optimization/61140
15941 PR tree-optimization/61150
15942 PR tree-optimization/61197
15943 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15945 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15947 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15949 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15951 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15952 __SIZEOF_INT128__ is defined.
15954 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15956 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15957 (rs6000_delegitimize_address): Use it.
15959 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15961 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15962 inplace argument. Store the new address in the original MEM when true.
15963 * emit-rtl.c (change_address_1): Likewise.
15964 (adjust_address_1, adjust_automodify_address_1, offset_address):
15965 Update accordingly.
15966 * rtl.h (plus_constant): Add an inplace argument.
15967 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15968 when true. Avoid generating (plus X (const_int 0)).
15969 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15970 in-place. Pass true to plus_constant.
15971 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15973 2014-05-16 Dehao Chen <dehao@google.com>
15975 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15977 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15980 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15982 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15984 2014-05-16 Dehao Chen <dehao@google.com>
15986 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15987 optimize_function_for_size_p.
15988 * regs.h (REG_FREQ_FROM_BB): Likewise.
15990 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15993 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15994 negt_reg_operand cases.
15995 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15997 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15999 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16001 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16004 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16007 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16009 * tree-cfg.c (dump_function_to_file): Dump the return type of
16010 functions, in a line to itself before the function body, mimicking
16011 the layout of a C function.
16013 2014-05-16 Dehao Chen <dehao@google.com>
16015 * cfghooks.c (make_forwarder_block): Use direct computation to
16016 get fall-through edge's count and frequency.
16018 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16020 * config/arc/arc.c (arc_init): Fix typo in error message.
16021 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16022 (split_stack_prologue_scratch_regno): Likewise.
16023 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16024 word from error message.
16026 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16028 * ira-costs.c: Fix typo in comment.
16030 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16032 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16034 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16036 * varpool.c (dump_varpool_node): Dump write-only flag.
16037 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16039 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16040 write-only variables.
16041 * ipa.c (process_references): New function.
16042 (set_readonly_bit): New function.
16043 (set_writeonly_bit): New function.
16044 (clear_addressable_bit): New function.
16045 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16046 fix handling of aliases.
16047 * cgraph.h (struct varpool_node): Add writeonly flag.
16049 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16051 PR rtl-optimization/60969
16052 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16053 Calculate costs for this case.
16055 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16057 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16058 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16060 2014-05-16 Richard Biener <rguenther@suse.de>
16062 PR tree-optimization/61194
16063 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16064 bool patterns ending in a COND_EXPR.
16066 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16068 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16070 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16072 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16073 where we were unable to cost an RTX.
16075 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16077 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16080 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16081 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16083 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16085 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16086 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16088 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16089 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16091 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16092 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16094 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16097 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16098 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16100 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16103 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16104 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16106 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16107 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16109 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16110 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16112 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16113 rotates and shifts.
16115 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16116 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16118 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16119 ZERO_EXTEND and SIGN_EXTEND better.
16121 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16122 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16124 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16125 logical operations.
16127 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16128 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16130 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16131 costs when costing loads and stores to memory.
16133 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16134 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16136 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16139 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16141 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16143 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16144 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16146 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16148 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16150 (aarch64_rtx_mult_cost): New.
16151 (aarch64_rtx_costs): Use it, refactor as appropriate.
16153 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16154 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16156 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16157 emit instructions, return number of instructions which would
16159 (aarch64_add_constant): Update call to aarch64_build_constant.
16160 (aarch64_output_mi_thunk): Likewise.
16161 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16164 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16166 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16167 (TARGET_RTX_COSTS): Call it.
16169 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16171 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16172 (cortexa57_vector_cost): Likewise.
16173 (cortexa57_tunings): Use them.
16175 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16177 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16178 (cpu_addrcost_table): Use it.
16179 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16180 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16183 2014-05-16 Richard Biener <rguenther@suse.de>
16185 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16186 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16187 (visit_phi): Ignore edges marked as not executable.
16188 (class cond_dom_walker): New.
16189 (cond_dom_walker::before_dom_children): Value-number
16190 control statements and mark successor edges as not
16191 executable if possible.
16192 (run_scc_vn): First walk all control statements in
16193 dominator order, marking edges as not executable.
16194 * tree-inline.c (copy_edges_for_bb): Be not confused
16195 about random edge flags.
16197 2014-05-16 Richard Biener <rguenther@suse.de>
16199 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16201 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16204 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16205 (__TM_simple_begin): Use it.
16206 (__TM_begin): Likewise.
16208 2014-05-15 Martin Jambor <mjambor@suse.cz>
16211 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16212 type_preserved flag when the indirect edge is polymorphic.
16214 2014-05-15 Martin Jambor <mjambor@suse.cz>
16216 PR tree-optimization/61090
16217 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16218 build_ref_for_model.
16220 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16222 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16223 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16225 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16227 PR tree-optimization/61158
16228 * fold-const.c (fold_binary_loc): If X is zero-extended and
16229 shiftc >= prec, make sure zerobits is all ones instead of
16230 invoking undefined behavior.
16232 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16234 * regcprop.h: New file.
16235 * regcprop.c (skip_debug_insn_p): New decl.
16236 (replace_oldest_value_reg): Check skip_debug_insn_p.
16237 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16238 * shrink-wrap.c: Include regcprop.h.
16239 (prepare_shrink_wrap): Call
16240 copyprop_hardreg_forward_bb_without_debug_insn.
16242 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16244 * shrink-wrap.h: Update comment.
16245 * shrink-wrap.c: Update comment.
16246 (next_block_for_reg): Rename to live_edge_for_reg.
16247 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16248 (move_insn_for_shrink_wrap): Split live_edge.
16249 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16251 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16253 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16255 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16256 * config/sparc/sparc.md (fptype_ut699): New attribute.
16257 (in_branch_delay): Return false if -mfix-ut699 is specified and
16258 fptype_ut699 is set to single.
16259 (truncdfsf2): Add fptype_ut699 attribute.
16260 (fix_truncdfsi2): Likewise.
16261 (floatsisf2): Change fptype attribute.
16262 (fix_truncsfsi2): Likewise.
16263 (negtf2_notv9): Delete.
16264 (negtf2_v9): Likewise.
16265 (negtf2_hq): New instruction.
16266 (negtf2): New instruction and splitter.
16267 (negdf2_notv9): Rewrite.
16268 (abstf2_notv9): Delete.
16269 (abstf2_hq_v9): Likewise.
16270 (abstf2_v9): Likewise.
16271 (abstf2_hq): New instruction.
16272 (abstf2): New instruction and splitter.
16273 (absdf2_notv9): Rewrite.
16275 2014-05-14 Cary Coutant <ccoutant@google.com>
16278 * opts.c (common_handle_option): Don't special-case "-g".
16279 (set_debug_level): Default to at least level 2 with "-g".
16281 2014-05-14 DJ Delorie <dj@redhat.com>
16283 * config/msp430/msp430.c (msp430_builtin): Add
16284 MSP430_BUILTIN_DELAY_CYCLES.
16285 (msp430_init_builtins): Register void __delay_cycles(long long).
16286 (msp430_builtin_decl): Add it.
16287 (cg_magic_constant): New.
16288 (msp430_expand_delay_cycles): New.
16289 (msp430_expand_builtin): Call it.
16290 (msp430_print_operand_raw): Change integer printing from "int" to
16292 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16293 (delay_cycles_start): New.
16294 (delay_cycles_end): New.
16295 (delay_cycles_32): New.
16296 (delay_cycles_32x): New.
16297 (delay_cycles_16): New.
16298 (delay_cycles_16x): New.
16299 (delay_cycles_2): New.
16300 (delay_cycles_1): New.
16301 * doc/extend.texi: Document __delay_cycles().
16303 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16305 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16306 length attribute computation.
16308 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16311 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16313 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16316 * config/sparc/sparc.md: Fix types of low and high in DI constant
16317 splitter. Use gen_int_mode in some other splitters.
16319 2014-05-14 Martin Jambor <mjambor@suse.cz>
16322 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16324 2014-05-14 James Norris <jnorris@codesourcery.com>
16326 * omp-low.c (expand_parallel_call): Remove shadow variable.
16327 (expand_omp_taskreg): Likewise.
16329 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16331 * common/config/i386/i386-common.c
16332 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16333 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16334 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16335 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16336 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16337 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16338 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16339 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16340 xsavecintrin.h, xsavesintrin.h.
16341 (x86_64-*-*): Ditto.
16342 * config/i386/clflushoptintrin.h: New.
16343 * config/i386/xsavecintrin.h: Ditto.
16344 * config/i386/xsavesintrin.h: Ditto.
16345 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16346 (bit_XSAVES): Ditto.
16347 (bit_XSAVES): Ditto.
16348 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16349 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16351 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16352 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16353 OPTION_MASK_ISA_XSAVES.
16354 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16355 -mxsavec, -mxsaves.
16356 (PTA_CLFLUSHOPT) Define.
16357 (PTA_XSAVEC): Ditto.
16358 (PTA_XSAVES): Ditto.
16359 (ix86_option_override_internal): Handle new options.
16360 (ix86_valid_target_attribute_inner_p): Ditto.
16361 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16362 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16363 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16364 (bdesc_special_args): Add __builtin_ia32_xsaves,
16365 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16366 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16367 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16368 (ix86_expand_builtin): Handle new builtins.
16369 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16370 (TARGET_CLFLUSHOPT_P): Ditto.
16371 (TARGET_XSAVEC): Ditto.
16372 (TARGET_XSAVEC_P): Ditto.
16373 (TARGET_XSAVES): Ditto.
16374 (TARGET_XSAVES_P): Ditto.
16375 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16376 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16377 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16379 (ANY_XRSTOR64): Ditto.
16381 (xrstor): Change into <xrstor>.
16382 (xrstor_rex64): Change into <xrstor>_rex64.
16383 (xrstor64): Change into <xrstor>64
16385 * config/i386/i386.opt (mclflushopt): New.
16388 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16390 * doc/invoke.texi: Document new options.
16392 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16394 PR rtl-optimization/60866
16395 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16396 Default it to -1. Pass it down to init_simplejump_data.
16397 (init_simplejump_data): New parameter old_seqno. Pass it down
16398 to get_seqno_for_a_jump.
16399 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16400 initializing new jump seqno as a last resort. Add comment.
16401 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16402 jump and pass it down to sel_init_new_insn.
16403 (sel_redirect_edge_and_branch_force): Likewise.
16405 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16407 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16408 shifted values to avoid build warning.
16410 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16412 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16413 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16414 (cfg_layout_merge_blocks): Likewise.
16415 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16417 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16419 PR rtl-optimization/60901
16420 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16421 bb predecessor belongs to the same scheduling region. Adjust comment.
16423 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16425 * doc/sourcebuild.texi: (dfp_hw): Document.
16426 (p8vector_hw): Likewise.
16427 (powerpc_eabi_ok): Likewise.
16428 (powerpc_elfv2): Likewise.
16429 (powerpc_htm_ok): Likewise.
16430 (ppc_recip_hw): Likewise.
16431 (vsx_hw): Likewise.
16433 2014-05-13 Cary Coutant <ccoutant@google.com>
16435 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16437 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16439 * gengtype-parse.c (require3): Eliminate in favor of...
16441 (require_template_declaration): Update to support optional single *
16444 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16445 (create_user_defined_type): Handle a single level of explicit
16446 pointerness within template arguments.
16447 (struct write_types_data): Add field "kind".
16448 (filter_type_name): Handle "*" character.
16449 (write_user_func_for_structure_ptr): Require a write_types_data
16450 rather than just a prefix string, so that we can look up the kind
16451 of the wtd and use it as an index into wrote_user_func_for_ptr,
16452 ensuring that such functions are written at most once. Support
16453 subclasses by invoking the marking function of the ultimate base class.
16454 (write_user_func_for_structure_body): Require a write_types_data
16455 rather than just a prefix string, so that we can pass this to
16456 write_user_func_for_structure_ptr.
16457 (write_func_for_structure): Likewise.
16458 (ggc_wtd): Add initializer of new "kind" field.
16459 (pch_wtd): Likewise.
16461 * gengtype.h (enum write_types_kinds): New.
16462 (struct type): Add field wrote_user_func_for_ptr to the "s"
16465 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16467 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16468 instead of const_binop.
16469 (fold_binary_loc): Likewise.
16471 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16473 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16474 calculation to match get_ref_base_and_extent.
16476 2014-05-13 Catherine Moore <clm@codesourcery.com>
16477 Sandra Loosemore <sandra@codesourcery.com>
16479 * configure.ac: Fix assembly for explicit JALR relocation check.
16480 * configure: Regenerate.
16482 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16484 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16485 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16486 Remove associated type declarations and initialisations.
16487 (arm_expand_neon_builtin): Likewise.
16488 (neon_emit_pair_result_insn): Delete.
16489 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16490 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16491 (neon_vzip<mode>): Likewise.
16492 (neon_vuzp<mode>): Likewise.
16494 2014-05-13 Richard Biener <rguenther@suse.de>
16497 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16498 it needs revisiting whether the call still may be tail-called.
16500 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16502 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16503 * rtl.h (block_symbol): Reduce number of fields to 2.
16504 (rtx_def): Add u2.symbol_ref_flags.
16505 (SYMBOL_REF_FLAGS): Use it.
16506 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16507 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16508 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16509 Lower index of SYMBOL_REF_DATA.
16510 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16511 Print SYMBOL_REF_FLAGS at the same time.
16512 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16514 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16516 * rtl.def (VAR_LOCATION): Remove "i" field.
16517 * rtl.h (rtx_def): Add u2.var_location_status.
16518 (PAT_VAR_LOCATION_STATUS): Use it.
16519 (gen_rtx_VAR_LOCATION): Declare.
16520 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16521 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16522 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16524 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16526 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16527 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16529 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16531 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16532 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16533 * rtl.h (rtx_def): Add insn_uid to u2 field.
16534 (RTX_FLAG_CHECK8): Delete in favor of...
16535 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16536 (INSN_DELETED_P): Update accordingly.
16537 (INSN_UID): Use u2.insn_uid.
16538 (INSN_CHAIN_CODE_P): Define.
16539 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16540 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16541 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16542 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16543 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16544 indices accordingly.
16545 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16546 Update indices for insn-chain rtxes.
16547 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16548 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16549 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16550 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16551 * combine.c (try_combine): Likewise.
16552 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16554 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16556 * rtl.def (REG): Remove middle field.
16557 * rtl.h (rtx_def): Add orignal_regno to u2.
16558 (ORIGINAL_REGNO): Use it instead of field 1.
16559 (REG_ATTRS): Lower field index accordingly.
16560 * gengtype.c (adjust_field_rtx_def): Remove handling of
16561 ORIGINAL_REGNO. Move REG_ATTRS index down.
16562 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16563 code that prints the REGNO.
16565 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16567 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16570 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16572 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16574 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16576 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16577 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16579 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16581 * config/aarch64/aarch64-protos.h
16582 (aarch64_hard_regno_caller_save_mode): New prototype.
16583 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16585 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16587 2014-05-13 Christian Bruel <christian.bruel@st.com>
16589 * target.def (mode_switching): New hook vector.
16590 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16591 (mode_exit, modepriority_to_mode): Likewise.
16592 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16593 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16594 * target.h: Include tm.h and hard-reg-set.h.
16595 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16596 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16597 * doc/tm.texi Regenerate.
16598 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16599 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16600 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16601 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16602 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16603 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16604 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16605 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16606 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16607 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16608 (ix86_emit_mode_set): Hookify.
16609 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16611 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16612 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16613 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16614 (epiphany_mode_priority_to_mode): Remove declaration.
16615 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16616 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16617 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16619 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16620 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16621 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16623 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16626 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16627 is const0_rtx, return immediately. Don't test count == 0 when
16630 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16632 * Makefile.in: add shrink-wrap.o.
16633 * config/i386/i386.c: include "shrink-wrap.h"
16634 * function.c: Likewise.
16635 (requires_stack_frame_p, next_block_for_reg,
16636 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16637 dup_block_and_redirect): Move to shrink-wrap.c
16638 (thread_prologue_and_epilogue_insns): Extract three code segments
16639 as functions in shrink-wrap.c
16640 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16642 * shrink-wrap.c: New file.
16643 * shrink-wrap.h: New file.
16645 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16647 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16648 reference to Solaris.
16650 2014-05-12 Mike Stump <mikestump@comcast.net>
16653 * genattrtab.c (filename): Add.
16654 (convert_set_attr_alternative): Improve error message.
16655 (check_defs): Restore read_md_filename for error messages.
16656 (gen_insn): Save filename.
16658 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16660 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16661 -fno-local-ivars and -fivar-visibility.
16662 * c-family/c.opt: Make -Wshadow also implicitly enable
16665 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16667 * doc/tm.texi: Remove reference to deleted macro.
16668 * doc/tm.texi.in: Likewise.
16670 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16673 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16676 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16679 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16680 * config/arm/aout.h (License): Same.
16681 * config/arm/bpabi.h (License): Same.
16682 * config/arm/elf.h (License): Same.
16683 * config/arm/linux-elf.h (License): Same.
16684 * config/arm/linux-gas.h (License): Same.
16685 * config/arm/netbsd-elf.h (License): Same.
16686 * config/arm/uclinux-eabi.h (License): Same.
16687 * config/arm/uclinux-elf.h (License): Same.
16688 * config/arm/vxworks.h (License): Same.
16690 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16692 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16693 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16694 number of operands to 3.
16695 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16696 * tree-nested.c (convert_nonlocal_omp_clauses,
16697 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16698 * gimplify.c (gimplify_scan_omp_clauses): Handle
16699 OMP_CLAUSE_LINEAR_STMT.
16700 * omp-low.c (lower_rec_input_clauses): Fix typo.
16701 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16702 cast between Fortran boolean_type_node and C _Bool if
16705 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16707 PR tree-optimization/61136
16708 * wide-int.h (multiple_of_p): Define a version that doesn't return
16710 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16711 integer_zerop/const_binop pair.
16712 (multiple_of_p): Likewise, converting both operands to widest_int
16715 2014-05-09 Teresa Johnson <tejohnson@google.com>
16717 * cgraphunit.c (analyze_functions): Use correct dump file.
16719 2014-05-09 Florian Weimer <fweimer@redhat.com>
16721 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16723 (stack_protect_return_slot_p): New function.
16724 (expand_used_vars): Call stack_protect_decl_p and
16725 stack_protect_return_slot_p for -fstack-protector-strong.
16727 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16728 Andrew Haley <aph@redhat.com>
16729 Richard Sandiford <rdsandiford@googlemail.com>
16731 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16734 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16736 PR middle-end/61111
16737 * fold-const.c (fold_binary_loc): Changed width of mask.
16739 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16741 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16742 unsigned int initializers for regno_in, regno_out.
16744 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16747 * config/avr/avr.md (cc): Add new attribute set_vzn.
16748 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16749 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16750 with INC, DEC or NEG.
16751 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16752 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16753 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16755 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16758 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16760 * wide-int.cc (UTItype): Define.
16761 (UDWtype): Define for appropriate W_TYPE_SIZE.
16763 2014-05-09 Richard Biener <rguenther@suse.de>
16765 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16766 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16767 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16768 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16769 ssa_propagate): Adjust.
16771 2014-05-08 Jeff Law <law@redhat.com>
16773 PR tree-optimization/61009
16774 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16775 tri-state rather than a boolean. When a block is too big to
16776 thread through, inform caller via negative return value.
16777 (thread_across_edge): If a block was too big for normal threading,
16778 then it's too big for a joiner too, so remove temporary equivalences
16779 and return immediately.
16781 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16782 Matthias Klose <doko@ubuntu.com>
16785 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16787 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16790 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16792 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16795 * config/alpha/alpha.c: Include gimple-iterator.h.
16796 (alpha_gimple_fold_builtin): New function. Move
16797 ALPHA_BUILTIN_UMULH folding from ...
16798 (alpha_fold_builtin): ... here.
16799 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16801 2014-05-08 Wei Mi <wmi@google.com>
16804 * config/i386/i386.c (ix86_compute_frame_layout): Update
16805 preferred_stack_boundary for call, expanded from tls descriptor.
16806 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16807 to depend on SP register.
16808 (*tls_local_dynamic_base_32_gnu): Ditto.
16809 (*tls_local_dynamic_32_once): Ditto.
16810 (tls_global_dynamic_64_<mode>): Set
16811 ix86_tls_descriptor_calls_expanded_in_cfun.
16812 (tls_local_dynamic_base_64_<mode>): Ditto.
16813 (tls_global_dynamic_32): Set
16814 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16815 to depend on SP register.
16816 (tls_local_dynamic_base_32): Ditto.
16818 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16820 * config/arm/arm_neon.h: Update comment.
16821 * config/arm/neon-docgen.ml: Delete.
16822 * config/arm/neon-gen.ml: Delete.
16823 * doc/arm-neon-intrinsics.texi: Update comment.
16825 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16827 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16829 (vand, vorr, veor, vorn, vbic): Remove.
16830 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16832 (neon_vsub_unspec): Likewise.
16833 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16835 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16837 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16838 (vadd_s16): Likewise.
16839 (vadd_s32): Likewise.
16840 (vadd_f32): Likewise.
16841 (vadd_u8): Likewise.
16842 (vadd_u16): Likewise.
16843 (vadd_u32): Likewise.
16844 (vadd_s64): Likewise.
16845 (vadd_u64): Likewise.
16846 (vaddq_s8): Likewise.
16847 (vaddq_s16): Likewise.
16848 (vaddq_s32): Likewise.
16849 (vaddq_s64): Likewise.
16850 (vaddq_f32): Likewise.
16851 (vaddq_u8): Likewise.
16852 (vaddq_u16): Likewise.
16853 (vaddq_u32): Likewise.
16854 (vaddq_u64): Likewise.
16855 (vmul_s8): Likewise.
16856 (vmul_s16): Likewise.
16857 (vmul_s32): Likewise.
16858 (vmul_f32): Likewise.
16859 (vmul_u8): Likewise.
16860 (vmul_u16): Likewise.
16861 (vmul_u32): Likewise.
16862 (vmul_p8): Likewise.
16863 (vmulq_s8): Likewise.
16864 (vmulq_s16): Likewise.
16865 (vmulq_s32): Likewise.
16866 (vmulq_f32): Likewise.
16867 (vmulq_u8): Likewise.
16868 (vmulq_u16): Likewise.
16869 (vmulq_u32): Likewise.
16870 (vsub_s8): Likewise.
16871 (vsub_s16): Likewise.
16872 (vsub_s32): Likewise.
16873 (vsub_f32): Likewise.
16874 (vsub_u8): Likewise.
16875 (vsub_u16): Likewise.
16876 (vsub_u32): Likewise.
16877 (vsub_s64): Likewise.
16878 (vsub_u64): Likewise.
16879 (vsubq_s8): Likewise.
16880 (vsubq_s16): Likewise.
16881 (vsubq_s32): Likewise.
16882 (vsubq_s64): Likewise.
16883 (vsubq_f32): Likewise.
16884 (vsubq_u8): Likewise.
16885 (vsubq_u16): Likewise.
16886 (vsubq_u32): Likewise.
16887 (vsubq_u64): Likewise.
16888 (vand_s8): Likewise.
16889 (vand_s16): Likewise.
16890 (vand_s32): Likewise.
16891 (vand_u8): Likewise.
16892 (vand_u16): Likewise.
16893 (vand_u32): Likewise.
16894 (vand_s64): Likewise.
16895 (vand_u64): Likewise.
16896 (vandq_s8): Likewise.
16897 (vandq_s16): Likewise.
16898 (vandq_s32): Likewise.
16899 (vandq_s64): Likewise.
16900 (vandq_u8): Likewise.
16901 (vandq_u16): Likewise.
16902 (vandq_u32): Likewise.
16903 (vandq_u64): Likewise.
16904 (vorr_s8): Likewise.
16905 (vorr_s16): Likewise.
16906 (vorr_s32): Likewise.
16907 (vorr_u8): Likewise.
16908 (vorr_u16): Likewise.
16909 (vorr_u32): Likewise.
16910 (vorr_s64): Likewise.
16911 (vorr_u64): Likewise.
16912 (vorrq_s8): Likewise.
16913 (vorrq_s16): Likewise.
16914 (vorrq_s32): Likewise.
16915 (vorrq_s64): Likewise.
16916 (vorrq_u8): Likewise.
16917 (vorrq_u16): Likewise.
16918 (vorrq_u32): Likewise.
16919 (vorrq_u64): Likewise.
16920 (veor_s8): Likewise.
16921 (veor_s16): Likewise.
16922 (veor_s32): Likewise.
16923 (veor_u8): Likewise.
16924 (veor_u16): Likewise.
16925 (veor_u32): Likewise.
16926 (veor_s64): Likewise.
16927 (veor_u64): Likewise.
16928 (veorq_s8): Likewise.
16929 (veorq_s16): Likewise.
16930 (veorq_s32): Likewise.
16931 (veorq_s64): Likewise.
16932 (veorq_u8): Likewise.
16933 (veorq_u16): Likewise.
16934 (veorq_u32): Likewise.
16935 (veorq_u64): Likewise.
16936 (vbic_s8): Likewise.
16937 (vbic_s16): Likewise.
16938 (vbic_s32): Likewise.
16939 (vbic_u8): Likewise.
16940 (vbic_u16): Likewise.
16941 (vbic_u32): Likewise.
16942 (vbic_s64): Likewise.
16943 (vbic_u64): Likewise.
16944 (vbicq_s8): Likewise.
16945 (vbicq_s16): Likewise.
16946 (vbicq_s32): Likewise.
16947 (vbicq_s64): Likewise.
16948 (vbicq_u8): Likewise.
16949 (vbicq_u16): Likewise.
16950 (vbicq_u32): Likewise.
16951 (vbicq_u64): Likewise.
16952 (vorn_s8): Likewise.
16953 (vorn_s16): Likewise.
16954 (vorn_s32): Likewise.
16955 (vorn_u8): Likewise.
16956 (vorn_u16): Likewise.
16957 (vorn_u32): Likewise.
16958 (vorn_s64): Likewise.
16959 (vorn_u64): Likewise.
16960 (vornq_s8): Likewise.
16961 (vornq_s16): Likewise.
16962 (vornq_s32): Likewise.
16963 (vornq_s64): Likewise.
16964 (vornq_u8): Likewise.
16965 (vornq_u16): Likewise.
16966 (vornq_u32): Likewise.
16967 (vornq_u64): Likewise.
16969 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16971 * wide-int.cc (UTItype): Define.
16972 (UDWtype): Define for appropriate W_TYPE_SIZE.
16974 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16976 PR tree-optimization/59100
16977 * tree-ssa-phiopt.c: Include tree-inline.h.
16978 (neutral_element_p, absorbing_element_p): New functions.
16979 (value_replacement): Handle conditional binary operations with a
16980 neutral or absorbing element.
16982 2014-05-08 Richard Biener <rguenther@suse.de>
16984 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16985 folding the expression.
16986 (valueize_expr): Remove.
16987 (visit_reference_op_load): Do not valueize the result of
16989 (simplify_binary_expression): Likewise.
16990 (simplify_unary_expression): Likewise.
16992 2014-05-08 Richard Biener <rguenther@suse.de>
16994 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16995 looking at TYPE_ARG_TYPES.
16997 2014-05-08 Richard Biener <rguenther@suse.de>
16999 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17000 pointer propagation special-case.
17002 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17004 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17005 core part of address expressions.
17007 2014-05-08 Alan Modra <amodra@gmail.com>
17010 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17011 loads and stores when -mno-strict-align at any alignment.
17012 (expand_block_clear): Similarly. Also correct calculation of
17015 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17017 PR middle-end/39246
17018 * tree-complex.c (expand_complex_move): Keep line info when expanding
17020 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17021 of complex expression. Use new argument to display correct location
17022 for values coming from phi statement.
17023 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17024 (warn_uninitialized_phi): Pass location of phi argument to
17026 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17027 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17029 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17031 * config/rs6000/predicates.md (indexed_address_mem): New.
17032 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17033 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17034 fpstore_ux, fpstore_u.
17035 (sign_extend, indexed, update): New.
17036 (cell_micro): Adjust.
17037 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17038 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17039 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17040 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17041 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17042 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17043 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17044 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17045 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17046 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17047 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17048 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17049 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17050 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17051 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17053 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17054 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17055 *vsx_extract_<mode>_store): Adjust.
17056 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17057 is_cracked_insn, insn_must_be_first_in_group,
17058 insn_must_be_last_in_group): Adjust.
17060 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17062 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17063 ppc440-fpstore): Adjust.
17064 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17065 ppc476-fpstore): Adjust.
17066 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17067 ppc601-fpstore): Adjust.
17068 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17070 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17072 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17073 ppc7450-fpstore): Adjust.
17074 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17075 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17076 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17078 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17079 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17080 cell-fpstore, cell-fpstore-update): Adjust.
17081 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17082 ppce300c3_store, ppce300c3_fpstore): Adjust.
17083 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17084 e500mc_fpstore): Adjust.
17085 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17086 e500mc64_store, e500mc64_fpstore): Adjust.
17087 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17088 e5500_fpstore): Adjust.
17089 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17090 e6500_fpstore): Adjust.
17091 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17093 * config/rs6000/power4.md (power4-load, power4-load-ext,
17094 power4-load-ext-update, power4-load-ext-update-indexed,
17095 power4-load-update-indexed, power4-load-update, power4-fpload,
17096 power4-fpload-update, power4-store, power4-store-update,
17097 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17099 * config/rs6000/power5.md (power5-load, power5-load-ext,
17100 power5-load-ext-update, power5-load-ext-update-indexed,
17101 power5-load-update-indexed, power5-load-update, power5-fpload,
17102 power5-fpload-update, power5-store, power5-store-update,
17103 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17105 * config/rs6000/power6.md (power6-load, power6-load-ext,
17106 power6-load-update, power6-load-update-indexed,
17107 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17108 power6-fpload-update, power6-store, power6-store-update,
17109 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17111 * config/rs6000/power7.md (power7-load, power7-load-ext,
17112 power7-load-update, power7-load-update-indexed,
17113 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17114 power7-fpload-update, power7-store, power7-store-update,
17115 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17117 * config/rs6000/power8.md (power8-load, power8-load-update,
17118 power8-load-ext, power8-load-ext-update, power8-fpload,
17119 power8-fpload-update, power8-store, power8-store-update-indexed,
17120 power8-fpstore, power8-fpstore-update): Adjust.
17121 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17123 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17124 titan_lsu_store, titan_lsu_fpstore): Adjust.
17125 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17127 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17130 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17131 unrolled byte insns. Emit address increments after move insns.
17133 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17135 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17136 const_gimple, rather than a gimple.
17137 (gimple_call_builtin_p): Likewise, for the three variants.
17139 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17140 (gimple_call_builtin_p): Likewise, for the three variants.
17142 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17144 PR tree-optimization/61095
17145 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17147 2014-05-07 Richard Biener <rguenther@suse.de>
17149 PR tree-optimization/61034
17150 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17151 (maybe_skip_until): Use translate to take into account
17152 lattices when trying to do disambiguations.
17153 (get_continuation_for_phi_1): Likewise.
17154 (get_continuation_for_phi): Adjust for added translate arguments.
17155 (walk_non_aliased_vuses): Likewise.
17156 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17157 (walk_non_aliased_vuses): Likewise.
17158 (call_may_clobber_ref_p_1): Declare.
17159 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17160 calls. Stop early if we are only supposed to disambiguate.
17161 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17163 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17165 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17166 Emit an error when the function has arguments.
17168 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17170 * cfgloop.h (unswitch_loops): Remove.
17171 * doc/passes.texi: Remove references to loop-unswitch.c
17172 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17174 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17176 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17177 check for loads group of length 3.
17178 (vect_permute_load_chain): New permutations for loads group of
17180 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17181 of vec_perm_shuffle for the new permutations.
17183 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17185 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17186 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17187 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17188 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17189 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17190 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17191 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17192 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17194 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17196 * loop-unswitch.c: Delete.
17198 2014-05-07 Richard Biener <rguenther@suse.de>
17200 * config.gcc: Always set need_64bit_hwint to yes.
17202 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17204 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17205 of using optimize_size.
17207 2014-05-06 Mike Stump <mikestump@comcast.net>
17209 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17211 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17213 * config/i386/sse.md (*mov<mode>_internal)
17214 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17215 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17216 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17217 (*<code><mode>3, *andnot<mode>3<mask_name>)
17218 (<mask_codefor><code><mode>3<mask_name>): Only consider
17219 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17221 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17224 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17226 * lra-constraints.c (valid_address_p): Move earlier in file.
17227 Add a constraint argument to the address_info version.
17228 (satisfies_memory_constraint_p): New function.
17229 (satisfies_address_constraint_p): Likewise.
17230 (process_alt_operands, curr_insn_transform): Use them.
17231 (process_address): Pass the constraint to valid_address_p when
17232 checking address operands.
17234 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17236 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17237 to their respective blocks. Fix inadvertent use of "node".
17239 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17241 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17243 (init_emit_once): ...here.
17244 * rtl.h (init_derived_machine_modes): Declare.
17245 * toplev.c (do_compile): Call it even if no_backend.
17247 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17248 Mike Stump <mikestump@comcast.net>
17249 Richard Sandiford <rdsandiford@googlemail.com>
17250 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17252 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17253 (rtx_equal_for_memref_p): Update comment.
17254 (adjust_offset_for_component_ref): Use wide-int interfaces.
17255 * builtins.c (get_object_alignment_2): Likewise.
17256 (c_readstr): Likewise.
17257 (target_char_cast): Add comment.
17258 (determine_block_size): Use wide-int interfaces.
17259 (expand_builtin_signbit): Likewise.
17260 (fold_builtin_int_roundingfn): Likewise.
17261 (fold_builtin_bitop): Likewise.
17262 (fold_builtin_bswap): Likewise.
17263 (fold_builtin_logarithm): Use signop.
17264 (fold_builtin_pow): Likewise.
17265 (fold_builtin_memory_op): Use wide-int interfaces.
17266 (fold_builtin_object_size): Likewise.
17267 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17268 nb_iterations_estimate.
17269 (record_niter_bound): Use wide-int interfaces.
17270 (get_estimated_loop_iterations_int): Likewise.
17271 (get_estimated_loop_iterations): Likewise.
17272 (get_max_loop_iterations): Likewise.
17273 * cfgloop.h: Include wide-int.h.
17274 (struct nb_iter_bound): Change bound to widest_int.
17275 (struct loop): Change nb_iterations_upper_bound and
17276 nb_iterations_estimate to widest_int.
17277 (record_niter_bound): Switch to use widest_int.
17278 (get_estimated_loop_iterations): Likewise.
17279 (get_max_loop_iterations): Likewise.
17280 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17281 update for wide-int.
17282 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17283 * combine.c (try_combine): Likewise.
17284 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17285 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17287 (aarch64_float_const_representable_p): Likewise.
17288 * config/arc/arc.c: Include wide-int.h.
17289 (arc_can_use_doloop_p): Use wide-int interfaces.
17290 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17291 (vfp3_const_double_index): Likewise.
17292 * config/avr/avr.c (avr_out_round): Likewise.
17293 (avr_fold_builtin): Likewise.
17294 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17295 (bfin_can_use_doloop_p): Likewise.
17296 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17297 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17298 * config/i386/i386.c: Include wide-int.h.
17299 (ix86_data_alignment): Use wide-int interfaces.
17300 (ix86_local_alignment): Likewise.
17301 (ix86_emit_swsqrtsf): Update real_from_integer.
17302 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17303 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17304 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17305 (zero_constant): Likewise.
17306 (input_operand): Likewise.
17307 (splat_input_operand): Likewise.
17308 (non_logical_cint_operand): Change const_double to const_wide_int.
17309 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17310 (easy_altivec_constant): Remove comment.
17311 (paired_expand_vector_init): Use CONSTANT_P.
17312 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17313 (rs6000_emit_move): Update checks.
17314 (rs6000_aggregate_candidate): Use wide-int interfaces.
17315 (rs6000_expand_ternop_builtin): Likewise.
17316 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17317 (rs6000_assemble_integer): Likewise.
17318 (rs6000_hash_constant): Likewise.
17319 (output_toc): Likewise.
17320 (rs6000_rtx_costs): Likewise.
17321 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17322 * config/rs6000/rs6000-c.c: Include wide-int.h.
17323 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17324 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17325 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17326 Handle CONST_WIDE_INT.
17327 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17328 Use tree_fits_uhwi_p.
17329 * config/sparc/sparc.c: Include wide-int.h.
17330 (sparc_fold_builtin): Use wide-int interfaces.
17331 * config/vax/vax.c: Include wide-int.h.
17332 (vax_float_literal): Use real_from_integer.
17333 * coretypes.h (struct hwivec_def): New.
17335 (const_hwivec): New.
17336 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17337 (equiv_constant): Handle CONST_WIDE_INT.
17338 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17339 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17340 * dbxout.c (stabstr_U): Use wide-int interfaces.
17341 (dbxout_type): Update to use cst_fits_shwi_p.
17342 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17343 (TARGET_SUPPORTS_WIDE_INT): Add default.
17344 * dfp.c: Include wide-int.h.
17345 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17346 decimal_real_to_integer.
17347 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17348 decimal_real_to_integer.
17349 * doc/generic.texi (Constant expressions): Update for wide_int.
17350 * doc/rtl.texi (const_double): Likewise.
17351 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17352 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17353 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17354 (REAL_VALUE_FROM_INT): Remove.
17355 (TARGET_SUPPORTS_WIDE_INT): New.
17356 * doc/tm.texi: Regenerate.
17357 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17358 * double-int.h: Include wide-int.h.
17359 (struct wi::int_traits): New.
17360 * dwarf2out.c (get_full_len): New.
17361 (dw_val_equal_p): Add case dw_val_class_wide_int.
17362 (size_of_loc_descr): Likewise.
17363 (output_loc_operands): Likewise.
17364 (insert_double): Remove.
17365 (insert_wide_int): New.
17366 (add_AT_wide): New.
17367 (print_die): Add case dw_val_class_wide_int.
17368 (attr_checksum): Likewise.
17369 (attr_checksum_ordered): Likewise.
17370 (same_dw_val_p): Likewise.
17371 (size_of_die): Likewise.
17372 (value_format): Likewise.
17373 (output_die): Likewise.
17374 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17376 (clz_loc_descriptor): Use wide-int interfaces.
17377 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17378 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17379 (round_up_to_align): Use wide-int interfaces.
17380 (field_byte_offset): Likewise.
17381 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17382 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17383 CONST_DOUBLE handling. Use wide-int interfaces.
17384 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17385 (gen_enumeration_type_die): Use add_AT_wide.
17386 (hash_loc_operands): Add case dw_val_class_wide_int.
17387 (compare_loc_operands): Likewise.
17388 * dwarf2out.h: Include wide-int.h.
17389 (wide_int_ptr): New.
17390 (enum dw_val_class): Add dw_val_class_wide_int.
17391 (struct dw_val_struct): Add val_wide.
17392 * emit-rtl.c (const_wide_int_htab): New.
17393 (const_wide_int_htab_hash): New.
17394 (const_wide_int_htab_eq): New.
17395 (lookup_const_wide_int): New.
17396 (const_double_htab_hash): Use wide-int interfaces.
17397 (const_double_htab_eq): Likewise.
17398 (rtx_to_double_int): Conditionally compile for wide-int.
17399 (immed_double_int_const): Rename to immed_wide_int_const and
17400 update for wide-int.
17401 (immed_double_const): Conditionally compile for wide-int.
17402 (init_emit_once): Use wide-int interfaces.
17403 * explow.c (plus_constant): Likewise.
17404 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17405 (lshift_value): Use wide-int interfaces.
17406 (expand_mult): Likewise.
17407 (choose_multiplier): Likewise.
17408 (expand_smod_pow2): Likewise.
17409 (make_tree): Likewise.
17410 * expr.c (convert_modes): Consolidate handling of constants.
17411 Use wide-int interfaces.
17412 (emit_group_load_1): Add note.
17413 (store_expr): Update comment.
17414 (get_inner_reference): Use wide-int interfaces.
17415 (expand_constructor): Update comment.
17416 (expand_expr_real_2): Use wide-int interfaces.
17417 (expand_expr_real_1): Likewise.
17418 (reduce_to_bit_field_precision): Likewise.
17419 (const_vector_from_tree): Likewise.
17420 * final.c: Include wide-int-print.h.
17421 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17422 * fixed-value.c: Include wide-int.h.
17423 (fixed_from_string): Use wide-int interfaces.
17424 (fixed_to_decimal): Likewise.
17425 (fixed_convert_from_real): Likewise.
17426 (real_convert_from_fixed): Likewise.
17427 * fold-const.h (mem_ref_offset): Return an offset_int.
17428 (div_if_zero_remainder): Remove code parameter.
17429 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17430 Use wide-int interfaces.
17431 (may_negate_without_overflow_p): Use wide-int interfaces.
17432 (negate_expr_p): Likewise.
17433 (fold_negate_expr): Likewise.
17434 (int_const_binop_1): Likewise.
17435 (const_binop): Likewise.
17436 (fold_convert_const_int_from_int): Likewise.
17437 (fold_convert_const_int_from_real): Likewise.
17438 (fold_convert_const_int_from_fixed): Likewise.
17439 (fold_convert_const_fixed_from_int): Likewise.
17440 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17441 (sign_bit_p): Use wide-int interfaces.
17442 (make_range_step): Likewise.
17443 (build_range_check): Likewise. Pass an integer of the correct type
17444 instead of using integer_one_node.
17445 (range_predecessor): Pass an integer of the correct type instead
17446 of using integer_one_node.
17447 (range_successor): Likewise.
17448 (merge_ranges): Likewise.
17449 (unextend): Use wide-int interfaces.
17450 (extract_muldiv_1): Likewise.
17451 (fold_div_compare): Likewise.
17452 (fold_single_bit_test): Likewise.
17453 (fold_sign_changed_comparison): Likewise.
17454 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17455 (fold_plusminus_mult_expr): Use wide-int interfaces.
17456 (native_encode_int): Likewise.
17457 (native_interpret_int): Likewise.
17458 (fold_unary_loc): Likewise.
17459 (pointer_may_wrap_p): Likewise.
17460 (size_low_cst): Likewise.
17461 (mask_with_tz): Likewise.
17462 (fold_binary_loc): Likewise.
17463 (fold_ternary_loc): Likewise.
17464 (multiple_of_p): Likewise.
17465 (tree_call_nonnegative_warnv_p): Update calls to
17466 tree_int_cst_min_precision and real_from_integer.
17467 (fold_negate_const): Use wide-int interfaces.
17468 (fold_abs_const): Likewise.
17469 (fold_relational_const): Use tree_int_cst_lt.
17470 (round_up_loc): Use wide-int interfaces.
17471 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17472 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17473 * gengtype.c: Remove include of double-int.h.
17474 (do_typedef): Use wide-int interfaces.
17475 (open_base_files): Add wide-int.h.
17476 (main): Add offset_int and widest_int typedefs.
17477 * gengtype-lex.l: Handle "^".
17478 (CXX_KEYWORD): Add "static".
17479 * gengtype-parse.c (require3): New.
17480 (require_template_declaration): Handle constant template arguments
17481 and nested templates.
17482 * gengtype-state.c: Don't include "double-int.h".
17483 * genpreds.c (write_one_predicate_function): Update comment.
17484 (write_tm_constrs_h): Add check for hval and lval use in
17486 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17487 (add_to_sequence): Likewise.
17488 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17489 and const_double_operand.
17490 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17492 * gimple-fold.c (get_base_constructor): Likewise.
17493 (fold_array_ctor_reference): Likewise.
17494 (fold_nonarray_ctor_reference): Likewise.
17495 (fold_const_aggregate_ref_1): Likewise.
17496 (gimple_val_nonnegative_real_p): Likewise.
17497 (gimple_fold_indirect_ref): Likewise.
17498 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17499 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17500 (struct slsr_cand_d): Change index to be widest_int.
17501 (struct incr_info_d): Change incr to be widest_int.
17502 (alloc_cand_and_find_basis): Use wide-int interfaces.
17503 (slsr_process_phi): Likewise.
17504 (backtrace_base_for_ref): Likewise. Return a widest_int.
17505 (restructure_reference): Take a widest_int instead of a double_int.
17506 (slsr_process_ref): Use wide-int interfaces.
17507 (create_mul_ssa_cand): Likewise.
17508 (create_mul_imm_cand): Likewise.
17509 (create_add_ssa_cand): Likewise.
17510 (create_add_imm_cand): Take a widest_int instead of a double_int.
17511 (slsr_process_add): Use wide-int interfaces.
17512 (slsr_process_cast): Likewise.
17513 (slsr_process_copy): Likewise.
17514 (dump_candidate): Likewise.
17515 (dump_incr_vec): Likewise.
17516 (replace_ref): Likewise.
17517 (cand_increment): Likewise. Return a widest_int.
17518 (cand_abs_increment): Likewise.
17519 (replace_mult_candidate): Take a widest_int instead of a double_int.
17520 (replace_unconditional_candidate): Use wide-int interfaces.
17521 (incr_vec_index): Take a widest_int instead of a double_int.
17522 (create_add_on_incoming_edge): Likewise.
17523 (create_phi_basis): Use wide-int interfaces.
17524 (replace_conditional_candidate): Likewise.
17525 (record_increment): Take a widest_int instead of a double_int.
17526 (record_phi_increments): Use wide-int interfaces.
17527 (phi_incr_cost): Take a widest_int instead of a double_int.
17528 (lowest_cost_path): Likewise.
17529 (total_savings): Likewise.
17530 (analyze_increments): Use wide-int interfaces.
17531 (ncd_with_phi): Take a widest_int instead of a double_int.
17532 (ncd_of_cand_and_phis): Likewise.
17533 (nearest_common_dominator_for_cands): Likewise.
17534 (insert_initializers): Use wide-int interfaces.
17535 (all_phi_incrs_profitable): Likewise.
17536 (replace_one_candidate): Likewise.
17537 (replace_profitable_candidates): Likewise.
17538 * godump.c: Include wide-int-print.h.
17539 (go_output_typedef): Use wide-int interfaces.
17540 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17541 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17542 (build_loop_iteration_domains): Likewise.
17543 * hooks.h: Include wide-int.h rather than double-int.h.
17544 (hook_bool_dint_dint_uint_bool_true): Delete.
17545 (hook_bool_wint_wint_uint_bool_true): Declare.
17546 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17547 (hook_bool_wint_wint_uint_bool_true): New.
17548 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17550 (ubsan_expand_si_overflow_mul_check): Likewise.
17551 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17552 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17553 (get_ancestor_addr_info): Likewise.
17554 (ipa_modify_call_arguments): Likewise.
17555 * loop-doloop.c (doloop_modify): Likewise.
17556 (doloop_optimize): Likewise.
17557 * loop-iv.c (iv_number_of_iterations): Likewise.
17558 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17559 (unroll_loop_constant_iterations): Likewise.
17560 (decide_unroll_runtime_iterations): Likewise.
17561 (unroll_loop_runtime_iterations): Likewise.
17562 (decide_peel_simple): Likewise.
17563 (decide_unroll_stupid): Likewise.
17564 * lto-streamer-in.c (streamer_read_wi): Add.
17565 (input_cfg): Use wide-int interfaces.
17566 (lto_input_tree_1): Likewise.
17567 * lto-streamer-out.c (streamer_write_wi): Add.
17568 (hash_tree): Use wide-int interfaces.
17569 (output_cfg): Likewise.
17570 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17571 (GTFILES): Add wide-int.h and signop.h.
17572 (TAGS): Look for .cc files too.
17573 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17574 * optabs.c (expand_subword_shift): Likewise.
17575 (expand_doubleword_shift): Likewise.
17576 (expand_absneg_bit): Likewise.
17577 (expand_copysign_absneg): Likewise.
17578 (expand_copysign_bit): Likewise.
17579 * postreload.c (reload_cse_simplify_set): Likewise.
17580 * predict.c (predict_iv_comparison): Likewise.
17581 * pretty-print.h: Include wide-int-print.h.
17583 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17584 * print-tree.c: Include wide-int-print.h.
17585 (print_node_brief): Use wide-int interfaces.
17586 (print_node): Likewise.
17587 * read-rtl.c (validate_const_wide_int): New.
17588 (read_rtx_code): Add CONST_WIDE_INT case.
17589 * real.c: Include wide-int.h.
17590 (real_to_integer2): Delete.
17591 (real_to_integer): New function, returning a wide_int.
17592 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17593 (ten_to_ptwo): Update call to real_from_integer.
17594 (real_digit): Likewise.
17595 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17596 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17597 (REAL_VALUE_TO_INT): Delete.
17598 (real_to_integer): Declare a wide-int form.
17599 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17600 * recog.c (const_int_operand): Improve comment.
17601 (const_scalar_int_operand): New.
17602 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17603 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17604 (split_double): Likewise.
17605 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17606 (rtx_size): Likewise.
17607 (rtx_alloc_stat_v): New.
17608 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17609 (cwi_output_hex): New.
17610 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17611 (cwi_check_failed_bounds): New.
17612 * rtl.def (CONST_WIDE_INT): New.
17613 * rtl.h: Include <utility> and wide-int.h.
17614 (struct hwivec_def): New.
17615 (CWI_GET_NUM_ELEM): New.
17616 (CWI_PUT_NUM_ELEM): New.
17617 (struct rtx_def): Add num_elem and hwiv.
17618 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17619 (CASE_CONST_UNIQUE): Likewise.
17620 (CASE_CONST_ANY): Likewise.
17621 (CONST_SCALAR_INT_P): Likewise.
17622 (CONST_WIDE_INT_P): New.
17624 (HWIVEC_CHECK): New.
17625 (cwi_check_failed_bounds): New.
17627 (HWIVEC_CHECK): New.
17628 (CONST_WIDE_INT_VEC) New.
17629 (CONST_WIDE_INT_NUNITS) New.
17630 (CONST_WIDE_INT_ELT) New.
17631 (rtx_mode_t): New type.
17632 (wi::int_traits <rtx_mode_t>): New.
17634 (wi::min_value): New.
17635 (wi::max_value): New.
17637 (const_wide_int_alloc): New.
17638 (immed_wide_int_const): New.
17639 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17640 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17641 * signop.h: New file.
17642 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17643 (simplify_const_unary_operation): Use wide-int interfaces.
17644 (simplify_binary_operation_1): Likewise.
17645 (simplify_const_binary_operation): Likewise.
17646 (simplify_const_relational_operation): Likewise.
17647 (simplify_immed_subreg): Likewise.
17648 * stmt.c (expand_case): Likewise.
17649 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17650 signop rather than a bool.
17651 * stor-layout.c (layout_type): Use wide-int interfaces.
17652 (initialize_sizetypes): Update calls to
17653 set_min_and_max_values_for_integral_type.
17654 (set_min_and_max_values_for_integral_type): Take a signop rather
17655 than a bool. Use wide-int interfaces.
17656 (fixup_signed_type): Update accordingly. Remove
17657 HOST_BITS_PER_DOUBLE_INT limit.
17658 (fixup_unsigned_type): Likewise.
17659 * system.h (STATIC_CONSTANT_P): New.
17660 (STATIC_ASSERT): New.
17661 * target.def (can_use_doloop_p): Take widest_ints rather than
17663 * target.h: Include wide-int.h rather than double-int.h.
17664 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17666 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17667 rather than INT_CST_LT_UNSIGNED.
17668 (can_use_doloop_if_innermost): Take widest_ints rather than
17670 * tree-affine.c: Include wide-int-print.h.
17671 (double_int_ext_for_comb): Delete.
17672 (wide_int_ext_for_comb): New.
17673 (aff_combination_zero): Use wide-int interfaces.
17674 (aff_combination_const): Take a widest_int instead of a double_int.
17675 (aff_combination_elt): Use wide-int interfaces.
17676 (aff_combination_scale): Take a widest_int instead of a double_int.
17677 (aff_combination_add_elt): Likewise.
17678 (aff_combination_add_cst): Likewise.
17679 (aff_combination_add): Use wide-int interfaces.
17680 (aff_combination_convert): Likewise.
17681 (tree_to_aff_combination): Likewise.
17682 (add_elt_to_tree): Take a widest_int instead of a double_int.
17683 (aff_combination_to_tree): Use wide-int interfaces.
17684 (aff_combination_remove_elt): Likewise.
17685 (aff_combination_add_product): Take a widest_int instead of
17687 (aff_combination_mult): Use wide-int interfaces.
17688 (aff_combination_expand): Likewise.
17689 (double_int_constant_multiple_p): Delete.
17690 (wide_int_constant_multiple_p): New.
17691 (aff_combination_constant_multiple_p): Take a widest_int pointer
17692 instead of a double_int pointer.
17693 (print_aff): Use wide-int interfaces.
17694 (get_inner_reference_aff): Take a widest_int pointer
17695 instead of a double_int pointer.
17696 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17697 * tree-affine.h: Include wide-int.h.
17698 (struct aff_comb_elt): Change type of coef to widest_int.
17699 (struct affine_tree_combination): Change type of offset to widest_int.
17700 (double_int_ext_for_comb): Delete.
17701 (wide_int_ext_for_comb): New.
17702 (aff_combination_const): Use widest_int instead of double_int.
17703 (aff_combination_scale): Likewise.
17704 (aff_combination_add_elt): Likewise.
17705 (aff_combination_constant_multiple_p): Likewise.
17706 (get_inner_reference_aff): Likewise.
17707 (aff_comb_cannot_overlap_p): Likewise.
17708 (aff_combination_zero_p): Use wide-int interfaces.
17709 * tree.c: Include tree.h.
17710 (init_ttree): Use make_int_cst.
17711 (tree_code_size): Removed code for INTEGER_CST case.
17712 (tree_size): Add INTEGER_CST case.
17713 (make_node_stat): Update comment.
17714 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17715 (build_int_cst_type): Use wide-int interfaces.
17716 (double_int_to_tree): Likewise.
17717 (double_int_fits_to_tree_p): Delete.
17718 (force_fit_type_double): Delete.
17719 (force_fit_type): New.
17720 (int_cst_hash_hash): Use wide-int interfaces.
17721 (int_cst_hash_eq): Likewise.
17722 (build_int_cst_wide): Delete.
17723 (wide_int_to_tree): New.
17724 (cache_integer_cst): Use wide-int interfaces.
17725 (build_low_bits_mask): Likewise.
17726 (cst_and_fits_in_hwi): Likewise.
17727 (real_value_from_int_cst): Likewise.
17728 (make_int_cst_stat): New.
17729 (integer_zerop): Use wide_int interfaces.
17730 (integer_onep): Likewise.
17731 (integer_all_onesp): Likewise.
17732 (integer_pow2p): Likewise.
17733 (integer_nonzerop): Likewise.
17734 (tree_log2): Likewise.
17735 (tree_floor_log2): Likewise.
17736 (tree_ctz): Likewise.
17737 (int_size_in_bytes): Likewise.
17738 (mem_ref_offset): Return an offset_int rather than a double_int.
17739 (build_type_attribute_qual_variant): Use wide_int interfaces.
17740 (type_hash_eq): Likewise
17741 (tree_int_cst_equal): Likewise.
17742 (tree_int_cst_lt): Delete.
17743 (tree_int_cst_compare): Likewise.
17744 (tree_fits_shwi_p): Use wide_int interfaces.
17745 (tree_fits_uhwi_p): Likewise.
17746 (tree_int_cst_sign_bit): Likewise.
17747 (tree_int_cst_sgn): Likewise.
17748 (tree_int_cst_min_precision): Take a signop rather than a bool.
17749 (simple_cst_equal): Use wide_int interfaces.
17750 (compare_tree_int): Likewise.
17751 (iterative_hash_expr): Likewise.
17752 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17754 (get_type_static_bounds): Use wide_int interfaces.
17755 (tree_int_cst_elt_check_failed): New.
17756 (build_common_tree_nodes): Reordered to set prec before filling in
17758 (int_cst_value): Check cst_and_fits_in_hwi.
17759 (widest_int_cst_value): Use wide_int interfaces.
17760 (upper_bound_in_type): Likewise.
17761 (lower_bound_in_type): Likewise.
17762 (num_ending_zeros): Likewise.
17763 (drop_tree_overflow): Likewise.
17764 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17765 (gen_conditions_for_pow_cst_base): Likewise.
17766 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17767 (group_case_labels_stmt): Use wide-int interfaces.
17768 (verify_gimple_assign_binary): Likewise.
17769 (print_loop): Likewise.
17770 * tree-chrec.c (tree_fold_binomial): Likewise.
17771 * tree-core.h (struct tree_base): Add int_length.
17772 (struct tree_int_cst): Change rep of value.
17773 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17774 (dr_may_alias_p): Likewise.
17775 (max_stmt_executions_tree): Likewise.
17776 * tree.def (INTEGER_CST): Update comment.
17777 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17778 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17779 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17780 (dequeue_and_dump): Use wide-int interfaces.
17781 * tree.h: Include wide-int.h.
17782 (NULL_TREE): Moved to earlier loc in file.
17783 (TREE_INT_CST_ELT_CHECK): New.
17784 (tree_int_cst_elt_check_failed): New.
17786 (TREE_INT_CST): Delete.
17787 (TREE_INT_CST_LOW): Use wide-int interfaces.
17788 (TREE_INT_CST_HIGH): Delete.
17789 (TREE_INT_CST_NUNITS): New.
17790 (TREE_INT_CST_EXT_NUNITS): Likewise.
17791 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17792 (TREE_INT_CST_ELT): Likewise.
17793 (INT_CST_LT): Delete.
17794 (tree_int_cst_elt_check): New (two forms).
17795 (type_code_size): Update comment.
17796 (make_int_cst_stat, make_int_cst): New.
17797 (tree_to_double_int): Delete.
17798 (double_int_fits_to_tree_p): Delete.
17799 (force_fit_type_double): Delete.
17800 (build_int_cstu): Replace with out-of-line function.
17801 (build_int_cst_wide): Delete.
17802 (tree_int_cst_lt): Define inline.
17803 (tree_int_cst_le): New.
17804 (tree_int_cst_compare): Define inline.
17805 (tree_int_cst_min_precision): Take a signop rather than a bool.
17806 (wi::int_traits <const_tree>): New.
17807 (wi::int_traits <tree>): New.
17808 (wi::extended_tree): New.
17809 (wi::int_traits <wi::extended_tree>): New.
17810 (wi::to_widest): New.
17811 (wi::to_offset): New.
17812 (wi::fits_to_tree_p): New.
17813 (wi::min_value): New.
17814 (wi::max_value): New.
17815 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17816 (copy_tree_body_r): Likewise.
17817 * tree-object-size.c (compute_object_offset): Likewise.
17818 (addr_object_size): Likewise.
17819 * tree-predcom.c: Include wide-int-print.h.
17820 (struct dref_d): Change type of offset to widest_int.
17821 (dump_dref): Call wide-int printer.
17822 (aff_combination_dr_offset): Use wide-int interfaces.
17823 (determine_offset): Take a widest_int pointer rather than a
17824 double_int pointer.
17825 (split_data_refs_to_components): Use wide-int interfaces.
17826 (suitable_component_p): Likewise.
17827 (order_drefs): Likewise.
17828 (add_ref_to_chain): Likewise.
17829 (valid_initializer_p): Likewise.
17830 (determine_roots_comp): Likewise.
17831 * tree-pretty-print.c: Include wide-int-print.h.
17832 (dump_generic_node): Use wide-int interfaces.
17833 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17834 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17835 (move_fixed_address_to_symbol): Likewise.
17836 (move_hint_to_base): Likewise.
17837 (move_pointer_to_base): Likewise.
17838 (move_variant_to_index): Likewise.
17839 (most_expensive_mult_to_index): Likewise.
17840 (addr_to_parts): Likewise.
17841 (copy_ref_info): Likewise.
17842 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17843 (indirect_refs_may_alias_p): Likewise.
17844 (stmt_kills_ref_p_1): Likewise.
17845 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17846 * tree-ssa-ccp.c: Update comment at top of file. Include
17848 (struct prop_value_d): Change type of mask to widest_int.
17849 (extend_mask): New function.
17850 (dump_lattice_value): Use wide-int interfaces.
17851 (get_default_value): Likewise.
17852 (set_constant_value): Likewise.
17853 (set_value_varying): Likewise.
17854 (valid_lattice_transition): Likewise.
17855 (set_lattice_value): Likewise.
17856 (value_to_double_int): Delete.
17857 (value_to_wide_int): New.
17858 (get_value_from_alignment): Use wide-int interfaces.
17859 (get_value_for_expr): Likewise.
17860 (do_dbg_cnt): Likewise.
17861 (ccp_finalize): Likewise.
17862 (ccp_lattice_meet): Likewise.
17863 (bit_value_unop_1): Use widest_ints rather than double_ints.
17864 (bit_value_binop_1): Likewise.
17865 (bit_value_unop): Use wide-int interfaces.
17866 (bit_value_binop): Likewise.
17867 (bit_value_assume_aligned): Likewise.
17868 (evaluate_stmt): Likewise.
17869 (ccp_fold_stmt): Likewise.
17870 (visit_cond_stmt): Likewise.
17871 (ccp_visit_stmt): Likewise.
17872 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17873 (constant_pointer_difference): Likewise.
17874 (associate_pointerplus): Likewise.
17875 (combine_conversions): Likewise.
17876 * tree-ssa-loop.h: Include wide-int.h.
17877 (struct tree_niter_desc): Change type of max to widest_int.
17878 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17879 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17880 (remove_redundant_iv_tests): Likewise.
17881 (canonicalize_loop_induction_variables): Likewise.
17882 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17883 (constant_multiple_of): Take a widest_int pointer instead of
17884 a double_int pointer.
17885 (get_computation_aff): Use wide-int interfaces.
17886 (ptr_difference_cost): Likewise.
17887 (difference_cost): Likewise.
17888 (get_loop_invariant_expr_id): Likewise.
17889 (get_computation_cost_at): Likewise.
17890 (iv_elimination_compare_lt): Likewise.
17891 (may_eliminate_iv): Likewise.
17892 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17893 instead of double_int.
17894 (max_loop_iterations): Likewise.
17895 (max_stmt_executions): Likewise.
17896 (estimated_stmt_executions): Likewise.
17897 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17898 (split_to_var_and_offset): Use wide-int interfaces.
17899 (determine_value_range): Likewise.
17900 (bound_difference_of_offsetted_base): Likewise.
17901 (bounds_add): Take a widest_int instead of a double_int.
17902 (number_of_iterations_ne_max): Use wide-int interfaces.
17903 (number_of_iterations_ne): Likewise.
17904 (number_of_iterations_lt_to_ne): Likewise.
17905 (assert_loop_rolls_lt): Likewise.
17906 (number_of_iterations_lt): Likewise.
17907 (number_of_iterations_le): Likewise.
17908 (number_of_iterations_cond): Likewise.
17909 (number_of_iterations_exit): Likewise.
17910 (finite_loop_p): Likewise.
17911 (derive_constant_upper_bound_assign): Likewise.
17912 (derive_constant_upper_bound): Return a widest_int.
17913 (derive_constant_upper_bound_ops): Likewise.
17914 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17915 (record_estimate): Take a widest_int rather than a double_int.
17916 (record_nonwrapping_iv): Use wide-int interfaces.
17917 (double_int_cmp): Delete.
17918 (wide_int_cmp): New.
17919 (bound_index): Take a widest_int rather than a double_int.
17920 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17921 (maybe_lower_iteration_bound): Likewise.
17922 (estimate_numbers_of_iterations_loop): Likewise.
17923 (estimated_loop_iterations): Take a widest_int pointer than than
17924 a double_int pointer.
17925 (estimated_loop_iterations_int): Use wide-int interfaces.
17926 (max_loop_iterations): Take a widest_int pointer than than
17927 a double_int pointer.
17928 (max_loop_iterations_int): Use wide-int interfaces.
17929 (max_stmt_executions): Take a widest_int pointer than than
17930 a double_int pointer.
17931 (estimated_stmt_executions): Likewise.
17932 (n_of_executions_at_most): Use wide-int interfaces.
17933 (scev_probably_wraps_p): Likewise.
17934 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17935 to real_to_integer.
17936 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17938 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17939 double_ints. Adjust for trailing_wide_ints <3> representation.
17940 (set_nonzero_bits): Likewise.
17941 (get_range_info): Return wide_ints rather than double_ints.
17942 Adjust for trailing_wide_ints <3> representation.
17943 (get_nonzero_bits): Likewise.
17944 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17946 * tree-ssanames.h (struct range_info_def): Replace min, max and
17947 nonzero_bits with a trailing_wide_ints <3>.
17948 (set_range_info): Use wide_int_refs rather than double_ints.
17949 (set_nonzero_bits): Likewise.
17950 (get_range_info): Return wide_ints rather than double_ints.
17951 (get_nonzero_bits): Likewise.
17952 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17953 * tree-ssa-pre.c (phi_translate_1): Likewise.
17954 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17955 (acceptable_pow_call): Likewise.
17956 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17958 (vn_reference_fold_indirect): Likewise.
17959 (vn_reference_maybe_forwprop_address): Likewise.
17960 (valueize_refs_1): Likewise.
17961 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17962 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17963 tree_int_cst_lt and tree_int_cst_le.
17964 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17966 (streamer_alloc_tree): Likewise.
17967 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17968 (streamer_write_tree_header): Likewise.
17969 (streamer_write_integer_cst): Likewise.
17970 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17971 (build_constructors): Likewise.
17972 (array_value_type): Likewise.
17973 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17974 (vect_check_gather): Likewise.
17975 * tree-vect-generic.c (build_replicated_const): Likewise.
17976 (expand_vector_divmod): Likewise.
17977 * tree-vect-loop.c (vect_transform_loop): Likewise.
17978 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17979 (vect_do_peeling_for_alignment): Likewise.
17980 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17981 * tree-vrp.c: Include wide-int.h.
17982 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17983 (extract_range_from_assert): Use wide-int interfaces.
17984 (vrp_int_const_binop): Likewise.
17985 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17986 double_int pointers.
17987 (ranges_from_anti_range): Use wide-int interfaces.
17988 (quad_int_cmp): Delete.
17989 (quad_int_pair_sort): Likewise.
17990 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17991 (extract_range_from_unary_expr_1): Likewise.
17992 (adjust_range_with_scev): Likewise.
17993 (masked_increment): Take and return wide_ints rather than double_ints.
17994 (register_edge_assert_for_2): Use wide-int interfaces.
17995 (check_array_ref): Likewise.
17996 (search_for_addr_array): Likewise.
17997 (maybe_set_nonzero_bits): Likewise.
17998 (union_ranges): Pass an integer of the correct type instead of
17999 using integer_one_node.
18000 (intersect_ranges): Likewise.
18001 (simplify_truth_ops_using_ranges): Likewise.
18002 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18003 (range_fits_type_p): Likewise.
18004 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18006 (simplify_conversion_using_ranges): Use wide-int interfaces.
18007 (simplify_float_conversion_using_ranges): Likewise.
18008 (vrp_finalize): Likewise.
18009 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18010 (gimple_stringops_transform): Likewise.
18011 * varasm.c (decode_addr_const): Likewise.
18012 (const_hash_1): Likewise.
18013 (const_rtx_hash_1): Likewise
18014 (output_constant): Likewise.
18015 (array_size_for_constructor): Likewise.
18016 (output_constructor_regular_field): Likewise.
18017 (output_constructor_bitfield): Likewise.
18018 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18019 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18021 * gencheck.c: Define BITS_PER_UNIT.
18022 * wide-int.cc: New.
18024 * wide-int-print.cc: New.
18025 * wide-int-print.h: New.
18027 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18029 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18031 2014-05-06 Richard Biener <rguenther@suse.de>
18033 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18034 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18035 (TODO_verify_all): Adjust.
18036 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18037 TODO_verify_stmts and TODO_verify_rtl_sharing.
18038 * bb-reorder.c: Likewise.
18039 * cfgexpand.c: Likewise.
18040 * cprop.c: Likewise.
18042 * function.c: Likewise.
18043 * fwprop.c: Likewise.
18044 * gcse.c: Likewise.
18045 * gimple-ssa-isolate-paths.c: Likewise.
18046 * gimple-ssa-strength-reduction.c: Likewise.
18047 * ipa-split.c: Likewise.
18048 * loop-init.c: Likewise.
18049 * loop-unroll.c: Likewise.
18050 * lower-subreg.c: Likewise.
18051 * modulo-sched.c: Likewise.
18052 * postreload-gcse.c: Likewise.
18053 * predict.c: Likewise.
18054 * recog.c: Likewise.
18055 * sched-rgn.c: Likewise.
18056 * store-motion.c: Likewise.
18057 * tracer.c: Likewise.
18058 * trans-mem.c: Likewise.
18059 * tree-call-cdce.c: Likewise.
18060 * tree-cfg.c: Likewise.
18061 * tree-cfgcleanup.c: Likewise.
18062 * tree-complex.c: Likewise.
18063 * tree-eh.c: Likewise.
18064 * tree-emutls.c: Likewise.
18065 * tree-if-conv.c: Likewise.
18066 * tree-into-ssa.c: Likewise.
18067 * tree-loop-distribution.c: Likewise.
18068 * tree-object-size.c: Likewise.
18069 * tree-parloops.c: Likewise.
18070 * tree-pass.h: Likewise.
18071 * tree-sra.c: Likewise.
18072 * tree-ssa-ccp.c: Likewise.
18073 * tree-ssa-copy.c: Likewise.
18074 * tree-ssa-copyrename.c: Likewise.
18075 * tree-ssa-dce.c: Likewise.
18076 * tree-ssa-dom.c: Likewise.
18077 * tree-ssa-dse.c: Likewise.
18078 * tree-ssa-forwprop.c: Likewise.
18079 * tree-ssa-ifcombine.c: Likewise.
18080 * tree-ssa-loop-ch.c: Likewise.
18081 * tree-ssa-loop-ivcanon.c: Likewise.
18082 * tree-ssa-loop.c: Likewise.
18083 * tree-ssa-math-opts.c: Likewise.
18084 * tree-ssa-phiopt.c: Likewise.
18085 * tree-ssa-phiprop.c: Likewise.
18086 * tree-ssa-pre.c: Likewise.
18087 * tree-ssa-reassoc.c: Likewise.
18088 * tree-ssa-sink.c: Likewise.
18089 * tree-ssa-strlen.c: Likewise.
18090 * tree-ssa-tail-merge.c: Likewise.
18091 * tree-ssa-uncprop.c: Likewise.
18092 * tree-switch-conversion.c: Likewise.
18093 * tree-tailcall.c: Likewise.
18094 * tree-vect-generic.c: Likewise.
18095 * tree-vectorizer.c: Likewise.
18096 * tree-vrp.c: Likewise.
18097 * tsan.c: Likewise.
18098 * var-tracking.c: Likewise.
18099 * bt-load.c: Likewise.
18100 * cfgcleanup.c: Likewise.
18101 * combine-stack-adj.c: Likewise.
18102 * combine.c: Likewise.
18103 * compare-elim.c: Likewise.
18104 * config/epiphany/resolve-sw-modes.c: Likewise.
18105 * config/i386/i386.c: Likewise.
18106 * config/mips/mips.c: Likewise.
18107 * config/s390/s390.c: Likewise.
18108 * config/sh/sh_treg_combine.cc: Likewise.
18109 * config/sparc/sparc.c: Likewise.
18112 * final.c: Likewise.
18113 * ifcvt.c: Likewise.
18114 * mode-switching.c: Likewise.
18115 * passes.c: Likewise.
18116 * postreload.c: Likewise.
18118 * reg-stack.c: Likewise.
18119 * regcprop.c: Likewise.
18120 * regrename.c: Likewise.
18123 2014-05-06 Richard Biener <rguenther@suse.de>
18125 PR middle-end/61070
18126 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18127 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18129 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18132 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18134 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18135 Tom de Vries <tom@codesourcery.com>
18137 * target.def (call_fusage_contains_non_callee_clobbers): New
18139 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18141 (@node Miscellaneous Register Hooks): New node.
18142 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18143 * doc/tm.texi: Regenerate.
18145 2014-05-05 Marek Polacek <polacek@redhat.com>
18148 * opts.c (common_handle_option): Call error_at instead of warning_at.
18150 2014-05-05 Richard Biener <rguenther@suse.de>
18152 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18153 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18154 under the TODO_verify_il umbrella.
18156 2014-05-05 Richard Biener <rguenther@suse.de>
18158 * passes.c (execute_function_todo): Move TODO_verify_flow under
18159 the TODO_verify_ul umbrella.
18161 2014-05-05 Richard Biener <rguenther@suse.de>
18163 PR middle-end/61010
18164 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18165 X & CST away from a CST that is the mask of a mode.
18167 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18169 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18170 int argument to enum machine_mode.
18171 (picochip_class_max_nregs): Ditto.
18172 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18173 (picochip_class_max_nregs): Ditto.
18175 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18177 * target.def: Add new target hook.
18178 * doc/tm.texi: Regenerate.
18179 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18180 * targhooks.c (default_keep_leaf_when_profiled): New function.
18182 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18183 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18185 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18187 PR tree-optimization/60363
18188 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18189 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18190 (update_destination_phis): New parameter.
18191 (create_edge_and_update_destination_phis): Ditto.
18192 (ssa_fix_duplicate_block_edges): Pass new arguments.
18193 (thread_single_edge): Ditto.
18195 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18197 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18198 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18199 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18200 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18201 Use RS6000_BTM_HARD_FLOAT.
18202 (BU_MISC_2): Likewise.
18203 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18204 RS6000_BTM_HARD_FLOAT.
18205 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18206 is explicitly used.
18207 (rs6000_invalid_builtin): Add hard floating builtin support.
18208 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18209 hard float builtins.
18210 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18212 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18214 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18215 Add missing function* argument.
18217 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18219 * lra-constraints.c (valid_address_p): Move earlier in file.
18220 Add a constraint argument to the address_info version.
18221 (satisfies_memory_constraint_p): New function.
18222 (satisfies_address_constraint_p): Likewise.
18223 (process_alt_operands, curr_insn_transform): Use them.
18224 (process_address): Pass the constraint to valid_address_p when
18225 checking address operands.
18227 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18229 * config/mips/mips.c (mips_isa_rev): New variable.
18230 (mips_set_architecture): Set it.
18231 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18233 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18234 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18235 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18236 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18237 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18238 conditions in terms of mips_isa_rev.
18239 (mips_isa_rev): Declare.
18241 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18243 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18244 (prob_unlikely, prob_likely): Make variables const.
18246 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18248 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18250 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18252 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18254 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18256 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18257 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18258 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18260 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18261 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18263 Replace usage of ROUND_REG with sh_round_reg.
18264 Use CEIL instead of ROUND_ADVANCE.
18266 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18269 * config/sh/sh.c: Include stdlib headers before everything else.
18271 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18273 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18274 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18275 (gimplify_adjust_omp_clauses): Simd region is never
18276 directly nested in combined parallel. Instead, for linear
18277 with copyin/copyout, if in combined for simd loop, make decl
18278 firstprivate/lastprivate on OMP_FOR.
18279 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18280 expand_omp_for_static_chunk): When setting endvar, also set
18281 fd->loop.v to the same value.
18283 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18285 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18287 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18289 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18292 2014-05-02 Marek Polacek <polacek@redhat.com>
18294 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18296 2014-05-02 Kito Cheng <kito@0xlab.org>
18298 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18299 to a C expression marco.
18300 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18301 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18302 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18303 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18304 HONOR_REG_ALLOC_ORDER.
18305 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18307 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18309 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18311 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18313 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18315 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18317 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18318 (convert_scalar_cond_reduction): Likewise.
18319 (predicate_scalar_phi): Add recognition and transformation
18320 of simple conditioanl reduction to be vectorizable.
18322 2014-05-01 Marek Polacek <polacek@redhat.com>
18325 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18327 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18329 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18330 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18331 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18332 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18333 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18334 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18335 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18336 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18338 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18340 * config/arc/arc.opt (mlra): Move comment above option name
18341 to avoid mis-parsing as language options.
18343 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18345 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18346 * config/sol2.h: ... here.
18347 * config/sol2-10.h: Remove.
18349 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18350 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18351 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18352 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18353 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18354 * config/sol2.h: ... here.
18355 (SECTION_NAME_FORMAT): Don't redefine.
18356 (STARTFILE_ARCH32_SPEC): Rename to ...
18357 (STARTFILE_ARCH_SPEC): ... this.
18358 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18359 * config/sparc/sol2.h: ... here.
18360 (SECTION_NAME_FORMAT): Don't undef.
18361 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18362 (SUBTARGET_EXTRA_SPECS): Remove.
18363 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18365 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18366 (MD_STARTFILE_PREFIX): Remove.
18367 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18368 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18369 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18370 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18371 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18372 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18373 * config/i386/sol2.h: ... here.
18374 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18375 * config/i386/sol2-bi.h: Remove.
18376 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18377 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18379 * config/i386/t-sol2-64: Rename to ...
18380 * config/i386/t-sol2: ... this.
18381 * config/sparc/t-sol2-64: Rename to ...
18382 * config/sparc/t-sol2: ... this.
18384 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18385 sol2_tm_file_head, sol2_tm_file_tail.
18386 Include ${cpu_type}/sol2.h before sol2.h.
18388 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18389 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18390 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18391 Reflect i386/t-sol2-64 renaming.
18392 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18393 Reflect sparc/t-sol2-64 renaming.
18395 2014-04-30 Richard Biener <rguenther@suse.de>
18397 * passes.c (execute_function_todo): Move TODO_verify_stmts
18398 and TODO_verify_ssa under the TODO_verify_il umbrella.
18399 * tree-ssa.h (verify_ssa): Adjust prototype.
18400 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18401 we should verify SSA operands.
18402 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18403 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18404 whether we should verify whether not throwing stmts have EH info.
18405 * graphite-scop-detection.c (create_sese_edges): Adjust.
18406 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18407 * tree-eh.c (lower_try_finally_switch): Do not add the
18408 default case label twice.
18410 2014-04-30 Marek Polacek <polacek@redhat.com>
18412 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18413 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18414 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18415 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18417 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18419 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18420 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18421 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18422 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18423 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18424 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18425 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18426 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18428 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18430 * tree-cfg.c (dump_function_to_file): Dump the return type of
18431 functions, in a line to itself before the function body, mimicking
18432 the layout of a C function.
18434 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18436 PR tree-optimization/60971
18437 * tree-tailcall.c (process_assignment): Reject conversions which
18440 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18442 * calls.c (initialize_argument_information): Always treat
18443 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18444 (expand_call): Likewise.
18445 (emit_library_call_calue_1): Likewise.
18446 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18447 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18450 2014-04-29 Nick Clifton <nickc@redhat.com>
18452 * config/msp430/msp430.md (umulsidi): Fix typo.
18453 (mulhisi3): Enable even inside interrupt handlers.
18454 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18455 bigger return address pushed in large mode.
18457 2014-04-29 Nick Clifton <nickc@redhat.com>
18459 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18460 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18462 * config/m32r/m32r.c (init_reg_tables): Likewise.
18463 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18464 enum to hold the modes.
18466 2014-04-29 Richard Biener <rguenther@suse.de>
18468 * dominance.c (free_dominance_info): Add overload with
18469 function parameter.
18470 (dom_info_state): Likewise.
18471 (dom_info_available_p): Likewise.
18472 * basic-block.h (free_dominance_info, dom_info_state,
18473 dom_info_available_p): Declare overloads.
18474 * passes.c (execute_function_todo): Verify that verifiers
18475 don't change dominator info state. Drop dominator info
18476 for IPA pass invocations.
18477 * cgraph.c (release_function_body): Restore asserts that
18478 dominator information is released.
18480 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18482 * doc/invoke.texi: Fix typo.
18483 * tree-vrp.c: Fix typos.
18484 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18486 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18488 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18490 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18492 * config/aarch64/aarch64-builtins.c
18493 (aarch64_types_storestruct_lane_qualifiers): New.
18494 (TYPES_STORESTRUCT_LANE): Likewise.
18495 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18496 (st3_lane): Likewise.
18497 (st4_lane): Likewise.
18498 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18499 (vec_store_lanesci_lane<mode>): Likewise.
18500 (vec_store_lanesxi_lane<mode>): Likewise.
18501 (aarch64_st2_lane<VQ:mode>): Likewise.
18502 (aarch64_st3_lane<VQ:mode>): Likewise.
18503 (aarch64_st4_lane<VQ:mode>): Likewise.
18504 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18505 * config/aarch64/arm_neon.h
18506 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18507 use new macro arguments.
18508 (__ST3_LANE_FUNC): Likewise.
18509 (__ST4_LANE_FUNC): Likewise.
18510 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18511 (V_THREE_ELEM): Likewise.
18512 (V_FOUR_ELEM): Likewise.
18514 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18516 * doc/gimple.texi: Replace the description of the now-defunct
18517 union gimple_statement_d with a diagram showing the
18518 gimple_statement_base class hierarchy and its relationships to
18519 the GSS_ and GIMPLE_ enums.
18521 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18523 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18524 * config/aarch64/aarch64.c
18525 (aarch64_cannot_change_mode_class): Weaken conditions.
18526 (aarch64_modes_tieable_p): New.
18527 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18529 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18531 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18532 (loadsync_<mode>): Change mode.
18533 (load_quadpti, store_quadpti): New.
18534 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18535 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18537 2014-04-28 Martin Jambor <mjambor@suse.cz>
18539 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18540 same alias type as the original statement.
18541 (subreplacement_assignment_data): New type.
18542 (handle_unscalarized_data_in_subtree): New type of parameter,
18543 generate new memory accesses with same alias type as the original
18545 (load_assign_lhs_subreplacements): Likewise.
18546 (sra_modify_constructor_assign): Generate new memory accesses with
18547 same alias type as the original statement.
18549 2014-04-28 Richard Biener <rguenther@suse.de>
18551 * tree-pass.h (TODO_verify_il): Define.
18552 (TODO_verify_all): Complete properly.
18553 * passes.c (execute_function_todo): Move existing loop-closed
18554 SSA verification under TODO_verify_il.
18555 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18556 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18557 Fix tree sharing issue.
18559 2014-04-28 Richard Biener <rguenther@suse.de>
18561 PR middle-end/60092
18562 * builtins.def (DEF_C11_BUILTIN): Add.
18563 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18564 * coretypes.h (enum function_class): Add function_c11_misc.
18565 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18566 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18567 (call_may_clobber_ref_p_1): Likewise.
18568 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18569 (mark_all_reaching_defs_necessary_1): Likewise.
18570 (propagate_necessity): Likewise.
18571 (eliminate_unnecessary_stmts): Likewise.
18572 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18574 2014-04-28 Richard Biener <rguenther@suse.de>
18576 * tree-vrp.c (vrp_var_may_overflow): Remove.
18577 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18578 with overflow immediately bump to one before that value and
18579 let iteration figure out overflow status.
18581 2014-04-28 Richard Biener <rguenther@suse.de>
18583 * configure.ac: Do valgrind header checks unconditionally.
18584 Add --enable-valgrind-annotations.
18585 * system.h: Guard valgrind header inclusion with
18586 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18587 * alloc-pool.c (pool_alloc, pool_free): Use
18588 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18589 to guard possibly dead code.
18590 * config.in: Regenerated.
18591 * configure: Likewise.
18593 2014-04-28 Jeff Law <law@redhat.com>
18595 PR tree-optimization/60902
18596 * tree-ssa-threadedge.c
18597 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18598 over real defs when invalidating outputs from statements that do not
18599 produce useful outputs for threading.
18601 2014-04-28 Richard Biener <rguenther@suse.de>
18603 PR tree-optimization/60979
18604 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18605 SCOPs that end in a block with a successor with abnormal
18608 2014-04-28 Richard Biener <rguenther@suse.de>
18610 * tree-pass.h (execute_pass_list): Adjust prototype.
18611 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18612 (do_per_function): Change callback signature, push all actual
18613 work to the callbals.
18614 (do_per_function_toporder): Likewise.
18615 (execute_function_dump): Adjust.
18616 (execute_function_todo): Likewise.
18617 (clear_last_verified): Likewise.
18618 (verify_curr_properties): Likewise.
18619 (update_properties_after_pass): Likewise.
18620 (execute_pass_list_1): Split out from ...
18621 (execute_pass_list): ... here. Adjust.
18622 (execute_ipa_pass_list): Likewise.
18623 * cgraphunit.c (cgraph_add_new_function): Adjust.
18624 (analyze_function): Likewise.
18625 (expand_function): Likewise.
18626 * cgraph.c (release_function_body): Free dominance info
18627 here instead of asserting it was magically freed elsewhere.
18629 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18631 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18632 * configure: Regenerate.
18633 * config/sparc/sparc.opt (muser-mode): New option.
18634 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18636 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18637 * doc/invoke.texi (SPARC options): Document -muser-mode.
18639 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18641 * cselib.c (find_slot_memmode): Delete.
18642 (cselib_hasher): Change compare_type to a struct.
18643 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18645 (preserve_constants_and_equivs): Adjust for new compare_type.
18646 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18647 (wrap_constant): Delete.
18648 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18650 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18652 * doc/install.texi (Building with profile feedback): Remove
18655 2014-04-26 Tom de Vries <tom@codesourcery.com>
18657 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18660 2014-04-25 Cary Coutant <ccoutant@google.com>
18663 * dwarf2out.c (should_move_die_to_comdat): A type definition
18664 can contain a subprogram definition, but don't move it to a
18666 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18667 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18669 (clone_tree_hash): Rename to...
18670 (clone_tree_partial): ...this; change callers. Copy
18671 DW_TAG_subprogram DIEs as declarations.
18672 (copy_decls_walk): Don't copy children of a declaration into a
18675 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18678 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18681 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18683 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18684 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18686 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18689 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18691 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18693 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18695 PR tree-optimization/60930
18696 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18697 creating a multiply candidate by folding two constant
18698 multiplicands when the result overflows.
18700 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18702 PR tree-optimization/60960
18703 * tree-vect-generic.c (expand_vector_operation): Only call
18704 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18706 2014-04-25 Tom de Vries <tom@codesourcery.com>
18708 * expr.c (clobber_reg_mode): New function.
18709 * expr.h (clobber_reg): New function.
18711 2014-04-25 Tom de Vries <tom@codesourcery.com>
18713 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18716 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18717 Tom de Vries <tom@codesourcery.com>
18719 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18721 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18722 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18723 new argument to find_all_hard_reg_sets call.
18725 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18727 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18728 Use HOST_WIDE_INT_C for mask literal.
18729 (aarch_rev16_shleft_mask_imm_p): Likewise.
18731 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18734 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18736 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18738 PR preprocessor/56540
18739 * config/i386/i386-c.c (ix86_target_macros): Define
18740 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18742 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18744 * configure.ac (tga_func): Remove.
18745 (LIB_TLS_SPEC): Remove.
18746 * configure: Regenerate.
18747 * config.in: Regenerate.
18748 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18750 2014-04-25 Richard Biener <rguenther@suse.de>
18753 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18754 call stmt use/clobber sets during stmt walk instead of
18755 walking the possibly incomplete set of caller edges.
18757 2014-04-25 Richard Biener <rguenther@suse.de>
18760 * passes.c (apply_ipa_transforms): Inline into only caller ...
18761 (execute_one_pass): ... here. Properly bring in function
18762 bodies for nodes we want to apply IPA transforms to.
18764 2014-04-24 Cong Hou <congh@google.com>
18766 PR tree-optimization/60896
18767 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18768 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18769 (vect_mark_pattern_stmts): Set the def type of all statements in
18770 PATTERN_DEF_SEQ as vect_internal_def.
18772 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18774 * doc/extend.texi (PowerPC Built-in Functions): Document new
18775 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18776 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18778 * config/rs6000/predicates.md (const_0_to_3_operand): New
18779 predicate to match 0..3 integer constants.
18781 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18782 to support adding miscellaneous builtin functions.
18783 (BU_DFP_MISC_2): Likewise.
18784 (BU_P7_MISC_1): Likewise.
18785 (BU_P7_MISC_2): Likewise.
18786 (BU_P8V_MISC_3): Likewise.
18787 (BU_MISC_1): Likewise.
18788 (BU_MISC_2): Likewise.
18789 (DIVWE): Add extended divide builtin functions.
18790 (DIVWEO): Likewise.
18791 (DIVWEU): Likewise.
18792 (DIVWEUO): Likewise.
18794 (DIVDEO): Likewise.
18795 (DIVDEU): Likewise.
18796 (DIVDEUO): Likewise.
18797 (DXEX): Add decimal floating-point builtin functions.
18799 (DDEDPD): Likewise.
18800 (DDEDPDQ): Likewise.
18801 (DENBCD): Likewise.
18802 (DENBCDQ): Likewise.
18806 (DSCLIQ): Likewise.
18808 (DSCRIQ): Likewise.
18809 (CDTBCD): Add new BCD builtin functions.
18810 (CBCDTD): Likewise.
18811 (ADDG6S): Likewise.
18812 (BCDADD): Likewise.
18813 (BCDADD_LT): Likewise.
18814 (BCDADD_EQ): Likewise.
18815 (BCDADD_GT): Likewise.
18816 (BCDADD_OV): Likewise.
18817 (BCDSUB): Likewise.
18818 (BCDSUB_LT): Likewise.
18819 (BCDSUB_EQ): Likewise.
18820 (BCDSUB_GT): Likewise.
18821 (BCDSUB_OV): Likewise.
18822 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18823 (UNPACK_TD): Likewise.
18824 (PACK_TF): Likewise.
18825 (UNPACK_TF): Likewise.
18826 (UNPACK_TF_0): Likewise.
18827 (UNPACK_TF_1): Likewise.
18828 (PACK_V1TI): Likewise.
18829 (UNPACK_V1TI): Likewise.
18831 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18832 support for decimal floating point builtin functions.
18833 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18834 functions that take constant arguments.
18835 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18836 (rs6000_init_builtins): Setup long double, _Decimal64, and
18837 _Decimal128 types for new builtin functions.
18838 (builtin_function_type): Set the unsigned flags appropriately for
18839 the new builtin functions.
18840 (rs6000_opt_masks): Add support for decimal floating point builtin
18843 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18844 floating point builtin functions.
18845 (RS6000_BTM_COMMON): Likewise.
18846 (RS6000_BTI_long_double): Likewise.
18847 (RS6000_BTI_dfloat64): Likewise.
18848 (RS6000_BTI_dfloat128): Likewise.
18849 (long_double_type_internal_node): Likewise.
18850 (dfloat64_type_internal_node): Likewise.
18851 (dfloat128_type_internal_node): Likewise.
18853 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18854 2.07 bcd arithmetic instructions.
18855 (UNSPEC_BCDSUB): Likewise.
18856 (UNSPEC_BCD_OVERFLOW): Likewise.
18857 (UNSPEC_BCD_ADD_SUB): Likewise.
18858 (bcd_add_sub): Likewise.
18859 (BCD_TEST): Likewise.
18860 (bcd<bcd_add_sub>): Likewise.
18861 (bcd<bcd_add_sub>_test): Likewise.
18862 (bcd<bcd_add_sub>_test2): Likewise.
18863 (bcd<bcd_add_sub>_<code>): Likewise.
18864 (peephole2 for combined bcd ops): Likewise.
18866 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18867 decimal floating point builtin functions.
18868 (UNSPEC_DENBCD): Likewise.
18869 (UNSPEC_DXEX): Likewise.
18870 (UNSPEC_DIEX): Likewise.
18871 (UNSPEC_DSCLI): Likewise.
18872 (UNSPEC_DSCRI): Likewise.
18873 (D64_D128): Likewise.
18874 (dfp_suffix): Likewise.
18875 (dfp_ddedpd_<mode>): Likewise.
18876 (dfp_denbcd_<mode>): Likewise.
18877 (dfp_dxex_<mode>): Likewise.
18878 (dfp_diex_<mode>): Likewise.
18879 (dfp_dscli_<mode>): Likewise.
18880 (dfp_dscri_<mode>): Likewise.
18882 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18884 (UNSPEC_CDTBCD): Likewise.
18885 (UNSPEC_CBCDTD): Likewise.
18886 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18887 (UNSPEC_DIVEO): Likewise.
18888 (UNSPEC_DIVEU): Likewise.
18889 (UNSPEC_DIVEUO): Likewise.
18890 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18891 pack/unpack 128-bit types.
18892 (UNSPEC_PACK_128BIT): Likewise.
18893 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18894 (udiv<mode>3): Use idiv_ldiv mode attribute.
18895 (div<mode>3): Likewise.
18896 (addg6s): Add new BCD builtin functions.
18897 (cdtbcd): Likewise.
18898 (cbcdtd): Likewise.
18899 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18900 (div_extend): Likewise.
18901 (div<div_extend>_<mode>"): Likewise.
18902 (FP128_64): Add support for new builtin functions to pack/unpack
18904 (unpack<mode>): Likewise.
18905 (unpacktf_0): Likewise.
18906 (unpacktf_1): Likewise.
18907 (unpack<mode>_dm): Likewise.
18908 (unpack<mode>_nodm): Likewise.
18909 (pack<mode>): Likewise.
18910 (unpackv1ti): Likewise.
18911 (packv1ti): Likewise.
18913 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18915 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18918 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18920 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18921 * gimplify.c (omp_is_private): Change last argument's type to int.
18922 Only diagnose lastprivate if the simd argument is 1, only diagnose
18923 linear if the simd argument is 2.
18924 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18925 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18926 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18927 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18928 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18929 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18930 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18931 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18932 * tree-nested.c (convert_nonlocal_omp_clauses,
18933 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18935 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18938 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18941 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18943 * flag-types.h (enum ivar_visibility): Add.
18945 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18947 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18948 function * argument.
18950 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18952 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18954 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18955 Tom de Vries <tom@codesourcery.com>
18957 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18958 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18960 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18961 * emit-rtl.c (try_split): Same.
18963 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18964 Tom de Vries <tom@codesourcery.com>
18966 * common.opt (fuse-caller-save): New option.
18968 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18970 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18971 elements for big-endian.
18973 2014-04-24 Richard Biener <rguenther@suse.de>
18975 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18976 during TER and instead use the sepops interface for expanding
18977 non-GIMPLE_SINGLE_RHS.
18979 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18981 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18982 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18984 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18986 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18987 assembler 64-bit option.
18988 * configure: Regenerate.
18990 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18992 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18993 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18994 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18995 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18996 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18998 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19000 * config/aarch64/aarch64-builtins.c
19001 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19002 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19003 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19004 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19006 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19007 (Vrevsuff): New mode attribute.
19009 2014-04-24 Terry Guo <terry.guo@arm.com>
19011 * config/arm/arm.h (machine_function): Define variable
19012 after_arm_reorg here.
19013 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19014 (arm_split_constant): Update the way to access variable
19016 (arm_reorg): Ditto.
19017 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19019 2014-04-23 Tom de Vries <tom@codesourcery.com>
19021 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19023 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19025 * is-a.h: Update comments to reflect the following changes to the
19026 "pointerness" of the API, making the template parameter match the
19027 return type, allowing use of is-a.h with typedefs of pointers.
19028 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19029 that the return type matches the parameter to the is_a_helper.
19031 (dyn_cast): Likewise.
19033 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19034 pointer from the is-a.h API.
19036 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19037 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19039 (is_a_helper <varpool_node>::test): Likewise, convert to...
19040 (is_a_helper <varpool_node *>::test): ...this.
19042 (varpool_first_variable): Update for removal of implicit pointer
19043 from the is-a.h API.
19044 (varpool_next_variable): Likewise.
19045 (varpool_first_static_initializer): Likewise.
19046 (varpool_next_static_initializer): Likewise.
19047 (varpool_first_defined_variable): Likewise.
19048 (varpool_next_defined_variable): Likewise.
19049 (cgraph_first_defined_function): Likewise.
19050 (cgraph_next_defined_function): Likewise.
19051 (cgraph_first_function): Likewise.
19052 (cgraph_next_function): Likewise.
19053 (cgraph_first_function_with_gimple_body): Likewise.
19054 (cgraph_next_function_with_gimple_body): Likewise.
19055 (cgraph_alias_target): Likewise.
19056 (varpool_alias_target): Likewise.
19057 (cgraph_function_or_thunk_node): Likewise.
19058 (varpool_variable_node): Likewise.
19059 (symtab_real_symbol_p): Likewise.
19060 * cgraphunit.c (referred_to_p): Likewise.
19061 (analyze_functions): Likewise.
19062 (handle_alias_pairs): Likewise.
19063 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19064 * gimple-ssa.h (gimple_vuse_op): Likewise.
19065 (gimple_vdef_op): Likewise.
19066 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19067 * gimple.c (gimple_build_asm_1): Likewise.
19068 (gimple_build_try): Likewise.
19069 (gimple_build_resx): Likewise.
19070 (gimple_build_eh_dispatch): Likewise.
19071 (gimple_build_omp_for): Likewise.
19072 (gimple_omp_for_set_clauses): Likewise.
19074 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19075 (is_a_helper <gimple_statement_asm *>::test): ...this.
19076 (is_a_helper <gimple_statement_bind>::test): Convert to...
19077 (is_a_helper <gimple_statement_bind *>::test): ...this.
19078 (is_a_helper <gimple_statement_call>::test): Convert to...
19079 (is_a_helper <gimple_statement_call *>::test): ...this.
19080 (is_a_helper <gimple_statement_catch>::test): Convert to...
19081 (is_a_helper <gimple_statement_catch *>::test): ...this.
19082 (is_a_helper <gimple_statement_resx>::test): Convert to...
19083 (is_a_helper <gimple_statement_resx *>::test): ...this.
19084 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19085 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19086 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19087 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19088 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19089 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19090 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19091 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19092 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19093 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19094 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19095 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19096 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19097 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19098 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19099 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19100 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19101 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19102 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19103 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19104 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19105 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19106 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19107 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19108 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19109 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19110 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19111 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19112 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19113 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19114 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19115 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19116 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19117 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19118 (is_a_helper <gimple_statement_phi>::test): Convert to...
19119 (is_a_helper <gimple_statement_phi *>::test): ...this.
19120 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19121 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19122 (is_a_helper <gimple_statement_try>::test): Convert to...
19123 (is_a_helper <gimple_statement_try *>::test): ...this.
19124 (is_a_helper <gimple_statement_wce>::test): Convert to...
19125 (is_a_helper <gimple_statement_wce *>::test): ...this.
19126 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19127 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19128 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19129 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19130 (is_a_helper <const gimple_statement_call>::test): Convert to...
19131 (is_a_helper <const gimple_statement_call *>::test): ...this.
19132 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19133 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19134 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19135 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19136 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19137 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19138 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19139 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19140 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19142 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19144 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19146 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19148 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19149 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19150 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19152 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19153 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19155 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19156 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19157 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19158 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19159 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19160 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19162 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19163 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19164 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19165 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19167 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19168 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19169 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19170 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19171 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19172 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19173 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19174 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19175 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19176 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19177 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19178 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19179 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19180 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19181 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19182 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19184 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19186 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19187 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19189 (gimple_use_ops): Update for removal of implicit pointer from the
19191 (gimple_set_use_ops): Likewise.
19192 (gimple_vuse): Likewise.
19193 (gimple_vdef): Likewise.
19194 (gimple_vuse_ptr): Likewise.
19195 (gimple_vdef_ptr): Likewise.
19196 (gimple_set_vuse): Likewise.
19197 (gimple_set_vdef): Likewise.
19198 (gimple_omp_return_set_lhs): Likewise.
19199 (gimple_omp_return_lhs): Likewise.
19200 (gimple_omp_return_lhs_ptr): Likewise.
19201 (gimple_call_fntype): Likewise.
19202 (gimple_call_set_fntype): Likewise.
19203 (gimple_call_set_internal_fn): Likewise.
19204 (gimple_call_use_set): Likewise.
19205 (gimple_call_clobber_set): Likewise.
19206 (gimple_bind_vars): Likewise.
19207 (gimple_bind_set_vars): Likewise.
19208 (gimple_bind_body_ptr): Likewise.
19209 (gimple_bind_set_body): Likewise.
19210 (gimple_bind_add_stmt): Likewise.
19211 (gimple_bind_block): Likewise.
19212 (gimple_bind_set_block): Likewise.
19213 (gimple_asm_ninputs): Likewise.
19214 (gimple_asm_noutputs): Likewise.
19215 (gimple_asm_nclobbers): Likewise.
19216 (gimple_asm_nlabels): Likewise.
19217 (gimple_asm_input_op): Likewise.
19218 (gimple_asm_input_op_ptr): Likewise.
19219 (gimple_asm_output_op): Likewise.
19220 (gimple_asm_output_op_ptr): Likewise.
19221 (gimple_asm_set_output_op): Likewise.
19222 (gimple_asm_clobber_op): Likewise.
19223 (gimple_asm_set_clobber_op): Likewise.
19224 (gimple_asm_label_op): Likewise.
19225 (gimple_asm_set_label_op): Likewise.
19226 (gimple_asm_string): Likewise.
19227 (gimple_catch_types): Likewise.
19228 (gimple_catch_types_ptr): Likewise.
19229 (gimple_catch_handler_ptr): Likewise.
19230 (gimple_catch_set_types): Likewise.
19231 (gimple_catch_set_handler): Likewise.
19232 (gimple_eh_filter_types): Likewise.
19233 (gimple_eh_filter_types_ptr): Likewise.
19234 (gimple_eh_filter_failure_ptr): Likewise.
19235 (gimple_eh_filter_set_types): Likewise.
19236 (gimple_eh_filter_set_failure): Likewise.
19237 (gimple_eh_must_not_throw_fndecl): Likewise.
19238 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19239 (gimple_eh_else_n_body_ptr): Likewise.
19240 (gimple_eh_else_e_body_ptr): Likewise.
19241 (gimple_eh_else_set_n_body): Likewise.
19242 (gimple_eh_else_set_e_body): Likewise.
19243 (gimple_try_eval_ptr): Likewise.
19244 (gimple_try_cleanup_ptr): Likewise.
19245 (gimple_try_set_eval): Likewise.
19246 (gimple_try_set_cleanup): Likewise.
19247 (gimple_wce_cleanup_ptr): Likewise.
19248 (gimple_wce_set_cleanup): Likewise.
19249 (gimple_phi_capacity): Likewise.
19250 (gimple_phi_num_args): Likewise.
19251 (gimple_phi_result): Likewise.
19252 (gimple_phi_result_ptr): Likewise.
19253 (gimple_phi_set_result): Likewise.
19254 (gimple_phi_arg): Likewise.
19255 (gimple_phi_set_arg): Likewise.
19256 (gimple_resx_region): Likewise.
19257 (gimple_resx_set_region): Likewise.
19258 (gimple_eh_dispatch_region): Likewise.
19259 (gimple_eh_dispatch_set_region): Likewise.
19260 (gimple_omp_critical_name): Likewise.
19261 (gimple_omp_critical_name_ptr): Likewise.
19262 (gimple_omp_critical_set_name): Likewise.
19263 (gimple_omp_for_clauses): Likewise.
19264 (gimple_omp_for_clauses_ptr): Likewise.
19265 (gimple_omp_for_set_clauses): Likewise.
19266 (gimple_omp_for_collapse): Likewise.
19267 (gimple_omp_for_index): Likewise.
19268 (gimple_omp_for_index_ptr): Likewise.
19269 (gimple_omp_for_set_index): Likewise.
19270 (gimple_omp_for_initial): Likewise.
19271 (gimple_omp_for_initial_ptr): Likewise.
19272 (gimple_omp_for_set_initial): Likewise.
19273 (gimple_omp_for_final): Likewise.
19274 (gimple_omp_for_final_ptr): Likewise.
19275 (gimple_omp_for_set_final): Likewise.
19276 (gimple_omp_for_incr): Likewise.
19277 (gimple_omp_for_incr_ptr): Likewise.
19278 (gimple_omp_for_set_incr): Likewise.
19279 (gimple_omp_for_pre_body_ptr): Likewise.
19280 (gimple_omp_for_set_pre_body): Likewise.
19281 (gimple_omp_parallel_clauses): Likewise.
19282 (gimple_omp_parallel_clauses_ptr): Likewise.
19283 (gimple_omp_parallel_set_clauses): Likewise.
19284 (gimple_omp_parallel_child_fn): Likewise.
19285 (gimple_omp_parallel_child_fn_ptr): Likewise.
19286 (gimple_omp_parallel_set_child_fn): Likewise.
19287 (gimple_omp_parallel_data_arg): Likewise.
19288 (gimple_omp_parallel_data_arg_ptr): Likewise.
19289 (gimple_omp_parallel_set_data_arg): Likewise.
19290 (gimple_omp_task_clauses): Likewise.
19291 (gimple_omp_task_clauses_ptr): Likewise.
19292 (gimple_omp_task_set_clauses): Likewise.
19293 (gimple_omp_task_child_fn): Likewise.
19294 (gimple_omp_task_child_fn_ptr): Likewise.
19295 (gimple_omp_task_set_child_fn): Likewise.
19296 (gimple_omp_task_data_arg): Likewise.
19297 (gimple_omp_task_data_arg_ptr): Likewise.
19298 (gimple_omp_task_set_data_arg): Likewise.
19299 (gimple_omp_taskreg_clauses): Likewise.
19300 (gimple_omp_taskreg_clauses_ptr): Likewise.
19301 (gimple_omp_taskreg_set_clauses): Likewise.
19302 (gimple_omp_taskreg_child_fn): Likewise.
19303 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19304 (gimple_omp_taskreg_set_child_fn): Likewise.
19305 (gimple_omp_taskreg_data_arg): Likewise.
19306 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19307 (gimple_omp_taskreg_set_data_arg): Likewise.
19308 (gimple_omp_task_copy_fn): Likewise.
19309 (gimple_omp_task_copy_fn_ptr): Likewise.
19310 (gimple_omp_task_set_copy_fn): Likewise.
19311 (gimple_omp_task_arg_size): Likewise.
19312 (gimple_omp_task_arg_size_ptr): Likewise.
19313 (gimple_omp_task_set_arg_size): Likewise.
19314 (gimple_omp_task_arg_align): Likewise.
19315 (gimple_omp_task_arg_align_ptr): Likewise.
19316 (gimple_omp_task_set_arg_align): Likewise.
19317 (gimple_omp_single_clauses): Likewise.
19318 (gimple_omp_single_clauses_ptr): Likewise.
19319 (gimple_omp_single_set_clauses): Likewise.
19320 (gimple_omp_target_clauses): Likewise.
19321 (gimple_omp_target_clauses_ptr): Likewise.
19322 (gimple_omp_target_set_clauses): Likewise.
19323 (gimple_omp_target_child_fn): Likewise.
19324 (gimple_omp_target_child_fn_ptr): Likewise.
19325 (gimple_omp_target_set_child_fn): Likewise.
19326 (gimple_omp_target_data_arg): Likewise.
19327 (gimple_omp_target_data_arg_ptr): Likewise.
19328 (gimple_omp_target_set_data_arg): Likewise.
19329 (gimple_omp_teams_clauses): Likewise.
19330 (gimple_omp_teams_clauses_ptr): Likewise.
19331 (gimple_omp_teams_set_clauses): Likewise.
19332 (gimple_omp_sections_clauses): Likewise.
19333 (gimple_omp_sections_clauses_ptr): Likewise.
19334 (gimple_omp_sections_set_clauses): Likewise.
19335 (gimple_omp_sections_control): Likewise.
19336 (gimple_omp_sections_control_ptr): Likewise.
19337 (gimple_omp_sections_set_control): Likewise.
19338 (gimple_omp_for_set_cond): Likewise.
19339 (gimple_omp_for_cond): Likewise.
19340 (gimple_omp_atomic_store_set_val): Likewise.
19341 (gimple_omp_atomic_store_val): Likewise.
19342 (gimple_omp_atomic_store_val_ptr): Likewise.
19343 (gimple_omp_atomic_load_set_lhs): Likewise.
19344 (gimple_omp_atomic_load_lhs): Likewise.
19345 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19346 (gimple_omp_atomic_load_set_rhs): Likewise.
19347 (gimple_omp_atomic_load_rhs): Likewise.
19348 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19349 (gimple_omp_continue_control_def): Likewise.
19350 (gimple_omp_continue_control_def_ptr): Likewise.
19351 (gimple_omp_continue_set_control_def): Likewise.
19352 (gimple_omp_continue_control_use): Likewise.
19353 (gimple_omp_continue_control_use_ptr): Likewise.
19354 (gimple_omp_continue_set_control_use): Likewise.
19355 (gimple_transaction_body_ptr): Likewise.
19356 (gimple_transaction_label): Likewise.
19357 (gimple_transaction_label_ptr): Likewise.
19358 (gimple_transaction_set_body): Likewise.
19359 (gimple_transaction_set_label): Likewise.
19361 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19362 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19363 * ipa-ref.c (ipa_record_reference): Likewise.
19364 * ipa-reference.c (analyze_function): Likewise.
19365 (ipa_reference_write_optimization_summary): Likewise.
19366 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19367 (address_taken_from_non_vtable_p): Likewise.
19368 (comdat_can_be_unshared_p_1): Likewise.
19369 * lto-cgraph.c (lto_output_ref): Likewise.
19370 (add_references): Likewise.
19371 (compute_ltrans_boundary): Likewise.
19372 (output_symtab): Likewise.
19373 (input_ref): Likewise.
19374 (input_cgraph_1): Likewise.
19375 (output_cgraph_opt_summary): Likewise.
19376 * lto-streamer-out.c (lto_output): Likewise.
19377 (output_symbol_p): Likewise.
19378 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19379 (lsei_start_function_in_partition): Likewise.
19380 (lsei_next_variable_in_partition): Likewise.
19381 (lsei_start_variable_in_partition): Likewise.
19382 * symtab.c (insert_to_assembler_name_hash): Likewise.
19383 (unlink_from_assembler_name_hash): Likewise.
19384 (symtab_unregister_node): Likewise.
19385 (symtab_remove_node): Likewise.
19386 (dump_symtab_node): Likewise.
19387 (verify_symtab_base): Likewise.
19388 (verify_symtab_node): Likewise.
19389 (symtab_make_decl_local): Likewise.
19390 (symtab_alias_ultimate_target): Likewise.
19391 (symtab_resolve_alias): Likewise.
19392 (symtab_get_symbol_partitioning_class): Likewise.
19393 * tree-phinodes.c (allocate_phi_node): Likewise.
19394 (reserve_phi_args_for_new_edge): Likewise.
19395 (remove_phi_args): Likewise.
19396 * varpool.c (varpool_node_for_asm): Likewise.
19397 (varpool_remove_unreferenced_decls): Likewise.
19399 2014-04-23 Jeff Law <law@redhat.com>
19401 PR tree-optimization/60902
19402 * tree-ssa-threadedge.c
19403 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19404 invalidate outputs from statements that do not produce useful
19405 outputs for threading.
19407 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19409 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19410 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19411 machine descriptions for Stack Smashing Protector.
19413 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19415 * aarch64.md (<optab>_rol<mode>3): New pattern.
19416 (<optab>_rolsi3_uxtw): Likewise.
19417 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19419 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19421 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19422 (arm_cortex_a12_tune): Likewise.
19424 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19426 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19428 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19430 * config/arm/arm.md (arm_rev16si2): New pattern.
19431 (arm_rev16si2_alt): Likewise.
19432 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19434 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19436 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19437 (rev16<mode>2_alt): Likewise.
19438 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19439 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19440 (aarch_rev16_shleft_mask_imm_p): Likewise.
19441 (aarch_rev16_p_1): Likewise.
19442 (aarch_rev16_p): Likewise.
19443 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19444 (aarch_rev16_shright_mask_imm_p): Likewise.
19445 (aarch_rev16_shleft_mask_imm_p): Likewise.
19447 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19449 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19450 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19452 (cortex_a53_extra_costs): Likewise.
19453 (cortex_a57_extra_costs): Likewise.
19454 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19455 (cortexa7_extra_costs): Likewise.
19456 (cortexa8_extra_costs): Likewise.
19457 (cortexa12_extra_costs): Likewise.
19458 (cortexa15_extra_costs): Likewise.
19459 (v7m_extra_costs): Likewise.
19460 (arm_new_rtx_costs): Handle BSWAP.
19462 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19464 * config/arm/arm.c (cortexa8_extra_costs): New table.
19465 (arm_cortex_a8_tune): New tuning struct.
19466 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19468 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19470 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19472 2014-04-23 Richard Biener <rguenther@suse.de>
19474 * Makefile.in (OBJS): Remove loop-unswitch.o.
19475 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19476 * passes.def (pass_rtl_unswitch): Likewise.
19477 * loop-init.c (gate_rtl_unswitch): Likewise.
19478 (rtl_unswitch): Likewise.
19479 (pass_data_rtl_unswitch): Likewise.
19480 (pass_rtl_unswitch): Likewise.
19481 (make_pass_rtl_unswitch): Likewise.
19482 * rtl.h (reversed_condition): Likewise.
19483 (compare_and_jump_seq): Likewise.
19484 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19486 * loop-unroll.c (compare_and_jump_seq): Likewise.
19488 2014-04-23 Richard Biener <rguenther@suse.de>
19490 PR tree-optimization/60903
19491 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19492 commented code block.
19493 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19494 loop flags to newly created BBs and edges.
19496 2014-04-23 Nick Clifton <nickc@redhat.com>
19498 * config/msp430/msp430.c (msp430_handle_option): Move function
19500 (msp430_option_override): Simplify mcu and mcpu option handling.
19501 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19502 support for -mhwmult command line option.
19503 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19504 -mhwmult command line option.
19505 (msp430_hwmult_enabled): Delete.
19506 (msp43o_output_labelref): Add support for -mhwmult command line option.
19507 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19508 (umulsidi3): Likewise.
19509 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19510 (mcpu, mlarge, msmall): Likewise.
19511 (mhwmult): New option.
19512 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19514 (msp430_is_f5_mcu): Remove prototype.
19515 (msp430_use_f5_series_hwmult): Add prototype.
19516 * config/msp430/msp430-opts.h: New file.
19517 * common/config/msp430: New directory.
19518 * common/config/msp430/msp430-common.c: New file.
19519 * config.gcc (msp430): Remove target_has_targetm_common.
19520 * doc/invoke.texi: Document -mhwmult command line option.
19522 2014-04-23 Nick Clifton <nickc@redhat.com>
19524 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19525 default-manifest.o if it can be found in the search path.
19526 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19528 2014-04-23 Terry Guo <terry.guo@arm.com>
19530 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19532 2014-04-23 Richard Biener <rguenther@suse.de>
19534 PR middle-end/60895
19535 * tree-inline.c (declare_return_variable): Use mark_addressable.
19537 2014-04-23 Richard Biener <rguenther@suse.de>
19539 PR middle-end/60891
19540 * loop-init.c (loop_optimizer_init): Make sure to apply
19541 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19543 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19546 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19548 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19549 if flag_sanitize_undefined_trap_on_error.
19550 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19551 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19552 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19553 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19554 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19555 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19556 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19557 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19558 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19559 * ubsan.c (ubsan_instrument_unreachable): Return
19560 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19561 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19562 if flag_sanitize_undefined_trap_on_error and
19563 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19564 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19565 instrument_bool_enum_load): Emit __builtin_trap () if
19566 flag_sanitize_undefined_trap_on_error and
19567 __builtin_handle_*_abort () if !flag_sanitize_recover.
19568 * doc/invoke.texi (-fsanitize-recover,
19569 -fsanitize-undefined-trap-on-error): Document.
19571 2014-04-22 Christian Bruel <christian.bruel@st.com>
19573 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19574 Force immediates to SImode.
19576 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19578 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19579 (lroundsfsi2): New.
19580 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19581 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19582 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19583 (nios2_fpu_insn): Add entry for round.
19584 (N2FPU_NO_ERRNO_P): Define.
19585 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19587 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19589 2014-04-22 Richard Henderson <rth@redhat.com>
19591 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19592 (add<GPI>3_compare0): Remove leading * from name.
19593 (add<GPI>3_carryin): Likewise.
19594 (sub<GPI>3_compare0): Likewise.
19595 (sub<GPI>3_carryin): Likewise.
19596 (<su_optab>mulditi3): New expander.
19597 (multi3): New expander.
19598 (madd<GPI>): Remove leading * from name.
19600 2014-04-22 Martin Jambor <mjambor@suse.cz>
19602 * cgraphclones.c (cgraph_function_versioning): Copy
19603 ipa_transforms_to_apply instead of asserting it is empty.
19605 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19608 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19609 on count_exp to get mode.
19611 2014-04-22 Andrew Pinski <apinski@cavium.com>
19613 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19614 Handle TLS for ILP32.
19615 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19616 (tlsie_small_<mode>): this and handle PTR.
19617 (tlsie_small_sidi): New pattern.
19618 (tlsle_small): Change to an expand to handle ILP32.
19619 (tlsle_small_<mode>): New pattern.
19620 (tlsdesc_small): Rename to ...
19621 (tlsdesc_small_<mode>): this and handle PTR.
19623 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19625 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19627 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19629 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19630 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19631 (aarch64_types_signed_poly_qualifiers): Likewise.
19632 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19633 (aarch64_types_poly_signed_qualifiers): Likewise.
19634 (TYPES_REINTERP_SS): Type macro added.
19635 (TYPES_REINTERP_SU): Likewise.
19636 (TYPES_REINTERP_SP): Likewise.
19637 (TYPES_REINTERP_US): Likewise.
19638 (TYPES_REINTERP_PS): Likewise.
19639 (aarch64_fold_builtin): New expression folding added.
19640 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19641 Declarations removed.
19642 (REINTERP_SS): Declarations added.
19643 (REINTERP_US): Likewise.
19644 (REINTERP_PS): Likewise.
19645 (REINTERP_SU): Likewise.
19646 (REINTERP_SP): Likewise.
19647 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19648 (vreinterpretq_p8_f64): Likewise.
19649 (vreinterpret_p16_f64): Likewise.
19650 (vreinterpretq_p16_f64): Likewise.
19651 (vreinterpret_f32_f64): Likewise.
19652 (vreinterpretq_f32_f64): Likewise.
19653 (vreinterpret_f64_f32): Likewise.
19654 (vreinterpret_f64_p8): Likewise.
19655 (vreinterpret_f64_p16): Likewise.
19656 (vreinterpret_f64_s8): Likewise.
19657 (vreinterpret_f64_s16): Likewise.
19658 (vreinterpret_f64_s32): Likewise.
19659 (vreinterpret_f64_s64): Likewise.
19660 (vreinterpret_f64_u8): Likewise.
19661 (vreinterpret_f64_u16): Likewise.
19662 (vreinterpret_f64_u32): Likewise.
19663 (vreinterpret_f64_u64): Likewise.
19664 (vreinterpretq_f64_f32): Likewise.
19665 (vreinterpretq_f64_p8): Likewise.
19666 (vreinterpretq_f64_p16): Likewise.
19667 (vreinterpretq_f64_s8): Likewise.
19668 (vreinterpretq_f64_s16): Likewise.
19669 (vreinterpretq_f64_s32): Likewise.
19670 (vreinterpretq_f64_s64): Likewise.
19671 (vreinterpretq_f64_u8): Likewise.
19672 (vreinterpretq_f64_u16): Likewise.
19673 (vreinterpretq_f64_u32): Likewise.
19674 (vreinterpretq_f64_u64): Likewise.
19675 (vreinterpret_s64_f64): Likewise.
19676 (vreinterpretq_s64_f64): Likewise.
19677 (vreinterpret_u64_f64): Likewise.
19678 (vreinterpretq_u64_f64): Likewise.
19679 (vreinterpret_s8_f64): Likewise.
19680 (vreinterpretq_s8_f64): Likewise.
19681 (vreinterpret_s16_f64): Likewise.
19682 (vreinterpretq_s16_f64): Likewise.
19683 (vreinterpret_s32_f64): Likewise.
19684 (vreinterpretq_s32_f64): Likewise.
19685 (vreinterpret_u8_f64): Likewise.
19686 (vreinterpretq_u8_f64): Likewise.
19687 (vreinterpret_u16_f64): Likewise.
19688 (vreinterpretq_u16_f64): Likewise.
19689 (vreinterpret_u32_f64): Likewise.
19690 (vreinterpretq_u32_f64): Likewise.
19692 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19694 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19695 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19696 (vreinterpret_p8_s8): Likewise.
19697 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19698 (vreinterpret_p8_s16): Likewise.
19699 (vreinterpret_p8_s32): Likewise.
19700 (vreinterpret_p8_s64): Likewise.
19701 (vreinterpret_p8_f32): Likewise.
19702 (vreinterpret_p8_u8): Likewise.
19703 (vreinterpret_p8_u16): Likewise.
19704 (vreinterpret_p8_u32): Likewise.
19705 (vreinterpret_p8_u64): Likewise.
19706 (vreinterpret_p8_p16): Likewise.
19707 (vreinterpretq_p8_s8): Likewise.
19708 (vreinterpretq_p8_s16): Likewise.
19709 (vreinterpretq_p8_s32): Likewise.
19710 (vreinterpretq_p8_s64): Likewise.
19711 (vreinterpretq_p8_f32): Likewise.
19712 (vreinterpretq_p8_u8): Likewise.
19713 (vreinterpretq_p8_u16): Likewise.
19714 (vreinterpretq_p8_u32): Likewise.
19715 (vreinterpretq_p8_u64): Likewise.
19716 (vreinterpretq_p8_p16): Likewise.
19717 (vreinterpret_p16_s8): Likewise.
19718 (vreinterpret_p16_s16): Likewise.
19719 (vreinterpret_p16_s32): Likewise.
19720 (vreinterpret_p16_s64): Likewise.
19721 (vreinterpret_p16_f32): Likewise.
19722 (vreinterpret_p16_u8): Likewise.
19723 (vreinterpret_p16_u16): Likewise.
19724 (vreinterpret_p16_u32): Likewise.
19725 (vreinterpret_p16_u64): Likewise.
19726 (vreinterpret_p16_p8): Likewise.
19727 (vreinterpretq_p16_s8): Likewise.
19728 (vreinterpretq_p16_s16): Likewise.
19729 (vreinterpretq_p16_s32): Likewise.
19730 (vreinterpretq_p16_s64): Likewise.
19731 (vreinterpretq_p16_f32): Likewise.
19732 (vreinterpretq_p16_u8): Likewise.
19733 (vreinterpretq_p16_u16): Likewise.
19734 (vreinterpretq_p16_u32): Likewise.
19735 (vreinterpretq_p16_u64): Likewise.
19736 (vreinterpretq_p16_p8): Likewise.
19737 (vreinterpret_f32_s8): Likewise.
19738 (vreinterpret_f32_s16): Likewise.
19739 (vreinterpret_f32_s32): Likewise.
19740 (vreinterpret_f32_s64): Likewise.
19741 (vreinterpret_f32_u8): Likewise.
19742 (vreinterpret_f32_u16): Likewise.
19743 (vreinterpret_f32_u32): Likewise.
19744 (vreinterpret_f32_u64): Likewise.
19745 (vreinterpret_f32_p8): Likewise.
19746 (vreinterpret_f32_p16): Likewise.
19747 (vreinterpretq_f32_s8): Likewise.
19748 (vreinterpretq_f32_s16): Likewise.
19749 (vreinterpretq_f32_s32): Likewise.
19750 (vreinterpretq_f32_s64): Likewise.
19751 (vreinterpretq_f32_u8): Likewise.
19752 (vreinterpretq_f32_u16): Likewise.
19753 (vreinterpretq_f32_u32): Likewise.
19754 (vreinterpretq_f32_u64): Likewise.
19755 (vreinterpretq_f32_p8): Likewise.
19756 (vreinterpretq_f32_p16): Likewise.
19757 (vreinterpret_s64_s8): Likewise.
19758 (vreinterpret_s64_s16): Likewise.
19759 (vreinterpret_s64_s32): Likewise.
19760 (vreinterpret_s64_f32): Likewise.
19761 (vreinterpret_s64_u8): Likewise.
19762 (vreinterpret_s64_u16): Likewise.
19763 (vreinterpret_s64_u32): Likewise.
19764 (vreinterpret_s64_u64): Likewise.
19765 (vreinterpret_s64_p8): Likewise.
19766 (vreinterpret_s64_p16): Likewise.
19767 (vreinterpretq_s64_s8): Likewise.
19768 (vreinterpretq_s64_s16): Likewise.
19769 (vreinterpretq_s64_s32): Likewise.
19770 (vreinterpretq_s64_f32): Likewise.
19771 (vreinterpretq_s64_u8): Likewise.
19772 (vreinterpretq_s64_u16): Likewise.
19773 (vreinterpretq_s64_u32): Likewise.
19774 (vreinterpretq_s64_u64): Likewise.
19775 (vreinterpretq_s64_p8): Likewise.
19776 (vreinterpretq_s64_p16): Likewise.
19777 (vreinterpret_u64_s8): Likewise.
19778 (vreinterpret_u64_s16): Likewise.
19779 (vreinterpret_u64_s32): Likewise.
19780 (vreinterpret_u64_s64): Likewise.
19781 (vreinterpret_u64_f32): Likewise.
19782 (vreinterpret_u64_u8): Likewise.
19783 (vreinterpret_u64_u16): Likewise.
19784 (vreinterpret_u64_u32): Likewise.
19785 (vreinterpret_u64_p8): Likewise.
19786 (vreinterpret_u64_p16): Likewise.
19787 (vreinterpretq_u64_s8): Likewise.
19788 (vreinterpretq_u64_s16): Likewise.
19789 (vreinterpretq_u64_s32): Likewise.
19790 (vreinterpretq_u64_s64): Likewise.
19791 (vreinterpretq_u64_f32): Likewise.
19792 (vreinterpretq_u64_u8): Likewise.
19793 (vreinterpretq_u64_u16): Likewise.
19794 (vreinterpretq_u64_u32): Likewise.
19795 (vreinterpretq_u64_p8): Likewise.
19796 (vreinterpretq_u64_p16): Likewise.
19797 (vreinterpret_s8_s16): Likewise.
19798 (vreinterpret_s8_s32): Likewise.
19799 (vreinterpret_s8_s64): Likewise.
19800 (vreinterpret_s8_f32): Likewise.
19801 (vreinterpret_s8_u8): Likewise.
19802 (vreinterpret_s8_u16): Likewise.
19803 (vreinterpret_s8_u32): Likewise.
19804 (vreinterpret_s8_u64): Likewise.
19805 (vreinterpret_s8_p8): Likewise.
19806 (vreinterpret_s8_p16): Likewise.
19807 (vreinterpretq_s8_s16): Likewise.
19808 (vreinterpretq_s8_s32): Likewise.
19809 (vreinterpretq_s8_s64): Likewise.
19810 (vreinterpretq_s8_f32): Likewise.
19811 (vreinterpretq_s8_u8): Likewise.
19812 (vreinterpretq_s8_u16): Likewise.
19813 (vreinterpretq_s8_u32): Likewise.
19814 (vreinterpretq_s8_u64): Likewise.
19815 (vreinterpretq_s8_p8): Likewise.
19816 (vreinterpretq_s8_p16): Likewise.
19817 (vreinterpret_s16_s8): Likewise.
19818 (vreinterpret_s16_s32): Likewise.
19819 (vreinterpret_s16_s64): Likewise.
19820 (vreinterpret_s16_f32): Likewise.
19821 (vreinterpret_s16_u8): Likewise.
19822 (vreinterpret_s16_u16): Likewise.
19823 (vreinterpret_s16_u32): Likewise.
19824 (vreinterpret_s16_u64): Likewise.
19825 (vreinterpret_s16_p8): Likewise.
19826 (vreinterpret_s16_p16): Likewise.
19827 (vreinterpretq_s16_s8): Likewise.
19828 (vreinterpretq_s16_s32): Likewise.
19829 (vreinterpretq_s16_s64): Likewise.
19830 (vreinterpretq_s16_f32): Likewise.
19831 (vreinterpretq_s16_u8): Likewise.
19832 (vreinterpretq_s16_u16): Likewise.
19833 (vreinterpretq_s16_u32): Likewise.
19834 (vreinterpretq_s16_u64): Likewise.
19835 (vreinterpretq_s16_p8): Likewise.
19836 (vreinterpretq_s16_p16): Likewise.
19837 (vreinterpret_s32_s8): Likewise.
19838 (vreinterpret_s32_s16): Likewise.
19839 (vreinterpret_s32_s64): Likewise.
19840 (vreinterpret_s32_f32): Likewise.
19841 (vreinterpret_s32_u8): Likewise.
19842 (vreinterpret_s32_u16): Likewise.
19843 (vreinterpret_s32_u32): Likewise.
19844 (vreinterpret_s32_u64): Likewise.
19845 (vreinterpret_s32_p8): Likewise.
19846 (vreinterpret_s32_p16): Likewise.
19847 (vreinterpretq_s32_s8): Likewise.
19848 (vreinterpretq_s32_s16): Likewise.
19849 (vreinterpretq_s32_s64): Likewise.
19850 (vreinterpretq_s32_f32): Likewise.
19851 (vreinterpretq_s32_u8): Likewise.
19852 (vreinterpretq_s32_u16): Likewise.
19853 (vreinterpretq_s32_u32): Likewise.
19854 (vreinterpretq_s32_u64): Likewise.
19855 (vreinterpretq_s32_p8): Likewise.
19856 (vreinterpretq_s32_p16): Likewise.
19857 (vreinterpret_u8_s8): Likewise.
19858 (vreinterpret_u8_s16): Likewise.
19859 (vreinterpret_u8_s32): Likewise.
19860 (vreinterpret_u8_s64): Likewise.
19861 (vreinterpret_u8_f32): Likewise.
19862 (vreinterpret_u8_u16): Likewise.
19863 (vreinterpret_u8_u32): Likewise.
19864 (vreinterpret_u8_u64): Likewise.
19865 (vreinterpret_u8_p8): Likewise.
19866 (vreinterpret_u8_p16): Likewise.
19867 (vreinterpretq_u8_s8): Likewise.
19868 (vreinterpretq_u8_s16): Likewise.
19869 (vreinterpretq_u8_s32): Likewise.
19870 (vreinterpretq_u8_s64): Likewise.
19871 (vreinterpretq_u8_f32): Likewise.
19872 (vreinterpretq_u8_u16): Likewise.
19873 (vreinterpretq_u8_u32): Likewise.
19874 (vreinterpretq_u8_u64): Likewise.
19875 (vreinterpretq_u8_p8): Likewise.
19876 (vreinterpretq_u8_p16): Likewise.
19877 (vreinterpret_u16_s8): Likewise.
19878 (vreinterpret_u16_s16): Likewise.
19879 (vreinterpret_u16_s32): Likewise.
19880 (vreinterpret_u16_s64): Likewise.
19881 (vreinterpret_u16_f32): Likewise.
19882 (vreinterpret_u16_u8): Likewise.
19883 (vreinterpret_u16_u32): Likewise.
19884 (vreinterpret_u16_u64): Likewise.
19885 (vreinterpret_u16_p8): Likewise.
19886 (vreinterpret_u16_p16): Likewise.
19887 (vreinterpretq_u16_s8): Likewise.
19888 (vreinterpretq_u16_s16): Likewise.
19889 (vreinterpretq_u16_s32): Likewise.
19890 (vreinterpretq_u16_s64): Likewise.
19891 (vreinterpretq_u16_f32): Likewise.
19892 (vreinterpretq_u16_u8): Likewise.
19893 (vreinterpretq_u16_u32): Likewise.
19894 (vreinterpretq_u16_u64): Likewise.
19895 (vreinterpretq_u16_p8): Likewise.
19896 (vreinterpretq_u16_p16): Likewise.
19897 (vreinterpret_u32_s8): Likewise.
19898 (vreinterpret_u32_s16): Likewise.
19899 (vreinterpret_u32_s32): Likewise.
19900 (vreinterpret_u32_s64): Likewise.
19901 (vreinterpret_u32_f32): Likewise.
19902 (vreinterpret_u32_u8): Likewise.
19903 (vreinterpret_u32_u16): Likewise.
19904 (vreinterpret_u32_u64): Likewise.
19905 (vreinterpret_u32_p8): Likewise.
19906 (vreinterpret_u32_p16): Likewise.
19907 (vreinterpretq_u32_s8): Likewise.
19908 (vreinterpretq_u32_s16): Likewise.
19909 (vreinterpretq_u32_s32): Likewise.
19910 (vreinterpretq_u32_s64): Likewise.
19911 (vreinterpretq_u32_f32): Likewise.
19912 (vreinterpretq_u32_u8): Likewise.
19913 (vreinterpretq_u32_u16): Likewise.
19914 (vreinterpretq_u32_u64): Likewise.
19915 (vreinterpretq_u32_p8): Likewise.
19916 (vreinterpretq_u32_p16): Likewise.
19918 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19920 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19922 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19924 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19925 (vqnegd_s64): Likewise.
19926 (vqabs_s64): Likewise.
19927 (vqabsd_s64): Likewise.
19929 2014-04-22 Richard Henderson <rth@redhat.com>
19931 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19932 computation to the top of the loop.
19934 2014-04-22 Renlin <renlin.li@arm.com>
19935 Jiong Wang <jiong.wang@arm.com>
19937 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19938 * config/aarch64/aarch64.c (aarch64_layout_frame)
19939 (aarch64_initial_elimination_offset): Likewise.
19941 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19943 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19946 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19948 * machmode.h (bitwise_mode_for_mode): Declare.
19949 * stor-layout.h (bitwise_type_for_mode): Likewise.
19950 * stor-layout.c (bitwise_mode_for_mode): New function.
19951 (bitwise_type_for_mode): Likewise.
19952 * builtins.c (fold_builtin_memory_op): Use it instead of
19953 int_mode_for_mode and build_nonstandard_integer_type.
19955 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19957 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19958 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19959 (*-*-solaris2*): Simplify.
19960 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19961 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19962 *-*-solaris2.9* handling.
19964 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19966 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19967 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19968 handling, simplify.
19969 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19970 * configure: Regenerate.
19972 * config/i386/sol2-9.h: Remove.
19974 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19975 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19976 Remove Solaris 9 references.
19978 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19980 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19981 (floatuns<GPI:mode><GPF:mode>2): Remove.
19982 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19983 and floatuns conversions.
19984 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19985 and floatuns conversions.
19986 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19987 (w1,w2): New mode attributes for inequal width conversions.
19989 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19991 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19992 the output asm format.
19994 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19996 * config/aarch64/aarch64-simd.md
19997 (aarch64_cm<optab>di): Always split.
19998 (*aarch64_cm<optab>di): New.
19999 (aarch64_cmtstdi): Always split.
20000 (*aarch64_cmtstdi): New.
20002 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20004 PR tree-optimization/60823
20005 * omp-low.c (ipa_simd_modify_function_body): Go through
20006 all SSA_NAMEs and for those refering to vector arguments
20007 which are going to be replaced adjust SSA_NAME_VAR and,
20008 if it is a default definition, change it into a non-default
20009 definition assigned at the beginning of function from new_decl.
20010 (ipa_simd_modify_stmt_ops): Rewritten.
20011 * tree-dfa.c (set_ssa_default_def): When removing default def,
20012 check for NULL loc instead of NULL *loc.
20014 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20016 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20017 restrictions on core registers for DImode values in Thumb2.
20019 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20021 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20022 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20024 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20026 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20027 (*iordi_notzesidi_di): Likewise.
20028 (*iordi_notsesidi_di): Likewise.
20030 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20032 * config/arm/arm-protos.h (tune_params): New struct members.
20033 * config/arm/arm.c: Initialise tune_params per processor.
20034 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20035 for speed, based on new tune_params.
20037 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20039 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20040 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20041 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20042 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20043 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20044 (vrnda_f64): Likewise.
20045 (vrndi_f64): Likewise.
20046 (vrndm_f64): Likewise.
20047 (vrndn_f64): Likewise.
20048 (vrndp_f64): Likewise.
20049 (vrndx_f64): Likewise.
20051 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20053 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20054 GET_MODE_SIZE argument is enum machine_mode.
20056 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20059 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20060 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20062 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20064 PR middle-end/60281
20065 * asan.c (asan_emit_stack_protection): Force the base to align to
20066 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20067 appropriate bits if STRICT_ALIGNMENT.
20068 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20070 (expand_used_vars): Leave a space in the stack frame for alignment
20071 if STRICT_ALIGNMENT.
20073 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20075 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20077 (gimple_store_p): Likewise.
20078 (gimple_assign_load_p): Likewise.
20079 (gimple_assign_cast_p): Likewise.
20080 (gimple_clobber_p): Likewise.
20082 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20083 rather than a gimple.
20084 (gimple_assign_cast_p): Likewise.
20086 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20089 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20090 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20092 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20093 more debug information for E500 if -mdebug=reg.
20095 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20098 * config/i386/i386.c (ix86_expand_builtin)
20099 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20100 register for target RTX.
20101 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20103 2014-04-18 Cong Hou <congh@google.com>
20105 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20106 the widen-mult pattern by handling two operands with different sizes,
20107 and operands whose size is smaller than half of the result type.
20109 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20111 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20112 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20113 (do_estimate_edge_time): Compute it.
20114 * ipa-inline.c (want_inline_small_function_p): Bypass
20115 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20117 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20119 * ipa-inline.c (spec_rem): New static variable.
20120 (dump_overall_stats): New function.
20121 (dump_inline_stats): New function.
20123 2014-04-18 Richard Henderson <rth@redhat.com>
20125 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20126 to GET_MODE_SIZE, not a reg_class_t.
20128 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20130 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20131 (vsx_xxmrglw_<mode>): Likewise.
20133 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20136 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20137 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20138 (rs6000_init_hard_regno_mode_ok): Likewise.
20140 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20142 * ipa-inline.c (inline_small_functions): Account only non-cold
20144 * doc/invoke.texi (inline-unit-growth): Update documentation.
20146 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20148 * config/rs6000/rs6000.md (addti3, subti3): New.
20150 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20153 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20154 comment. Check optimize_insn_for_size_p instead of
20155 optimize_insn_for_speed_p.
20157 2014-04-17 Martin Jambor <mjambor@suse.cz>
20159 * gimple-iterator.c (gsi_start_edge): New function.
20160 * gimple-iterator.h (gsi_start_edge): Declare.
20161 * tree-sra.c (single_non_eh_succ): New function.
20162 (disqualify_ops_if_throwing_stmt): Renamed to
20163 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20164 having one non-EH successor BB.
20165 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20166 generate loads into replacements.
20167 (sra_modify_assign): Likewise and and also use the simple path for
20169 (sra_modify_function_body): Commit statements on edges.
20171 2014-04-17 Richard Biener <rguenther@suse.de>
20173 PR middle-end/60849
20174 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20175 comparison results and add clarifying comment.
20177 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20179 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20180 (blank_mode): Initialize it.
20181 (emit_mode_size_inline, emit_mode_nunits_inline,
20182 emit_mode_inner_inline): New functions.
20183 (emit_insn_modes_h): Call them and surround their output with
20184 #if GCC_VERSION >= 4001 ... #endif.
20185 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20186 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20187 mode_* arrays if the argument is __builtin_constant_p.
20188 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20189 is enum machine_mode.
20191 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20193 * passes.c (opt_pass::execute): Adjust.
20194 (pass_manager::execute_pass_mode_switching): Likewise.
20195 (early_local_passes::execute): Likewise.
20196 (execute_one_pass): Pass cfun to the pass's execute method.
20197 * tree-pass.h (opt_pass::execute): Add function * argument.
20198 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20199 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20200 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20201 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20202 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20203 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20204 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20205 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20206 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20207 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20208 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20209 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20210 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20211 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20212 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20213 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20214 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20215 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20216 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20217 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20218 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20219 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20220 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20221 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20222 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20223 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20224 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20225 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20226 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20229 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20231 * passes.c (opt_pass::gate): Take function * argument.
20232 (gate_all_early_local_passes): Merge into
20233 (early_local_passes::gate): this.
20234 (gate_all_early_optimizations): Merge into
20235 (all_early_optimizations::gate): this.
20236 (gate_all_optimizations): Mege into
20237 (all_optimizations::gate): this.
20238 (gate_all_optimizations_g): Merge into
20239 (all_optimizations_g::gate): this.
20240 (gate_rest_of_compilation): Mege into
20241 (rest_of_compilation::gate): this.
20242 (gate_postreload): Merge into
20243 (postreload::gate): this.
20244 (dump_one_pass): Pass cfun to the pass's gate method.
20245 (execute_ipa_summary_passes): Likewise.
20246 (execute_one_pass): Likewise.
20247 (ipa_write_summaries_2): Likewise.
20248 (ipa_write_optimization_summaries_1): Likewise.
20249 (ipa_read_summaries_1): Likewise.
20250 (ipa_read_optimization_summaries_1): Likewise.
20251 (execute_ipa_stmt_fixups): Likewise.
20252 * tree-pass.h (opt_pass::gate): Add function * argument.
20253 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20254 combine-stack-adj.c, combine.c, compare-elim.c,
20255 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20256 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20257 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20258 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20259 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20260 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20261 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20262 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20263 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20264 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20265 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20266 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20267 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20268 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20269 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20270 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20271 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20272 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20273 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20274 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20275 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20276 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20277 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20278 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20279 var-tracking.c, vtable-verify.c, web.c: Adjust.
20281 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20283 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20284 * configure: Regenerate.
20286 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20288 * passes.c (dump_one_pass): don't check pass->has_gate.
20289 (execute_ipa_summary_passes): Likewise.
20290 (execute_one_pass): Likewise.
20291 (ipa_write_summaries_2): Likewise.
20292 (ipa_write_optimization_summaries_1): Likewise.
20293 (ipa_read_optimization_summaries_1): Likewise.
20294 (execute_ipa_stmt_fixups): Likewise.
20295 * tree-pass.h (pass_data::has_gate): Remove.
20296 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20297 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20298 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20299 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20300 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20301 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20302 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20303 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20304 gimple-low.c, gimple-ssa-isolate-paths.c,
20305 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20306 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20307 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20308 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20309 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20310 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20311 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20312 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20313 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20314 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20315 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20316 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20317 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20318 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20319 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20320 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20321 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20322 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20323 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20324 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20325 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20326 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20329 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20331 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20333 * passes.c (pass_manager::register_dump_files_1): Merge into
20334 (pass_manager::register_dump_files): this, and remove its handling of
20335 properties since the pass always has the properties anyway.
20336 (pass_manager::pass_manager): Adjust.
20338 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20340 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20341 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20342 dealing with properties.
20343 (pass_manager::register_dump_files): Adjust.
20345 2014-03-20 Mark Wielaard <mjw@redhat.com>
20347 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20348 then represent the bound as normal constant value.
20350 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20353 Forward port from 4.8 branch
20354 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20356 * config/i386/bmiintrin.h (_blsi_u32): New.
20357 (_blsi_u64): Ditto.
20358 (_blsr_u32): Ditto.
20359 (_blsr_u64): Ditto.
20360 (_blsmsk_u32): Ditto.
20361 (_blsmsk_u64): Ditto.
20362 (_tzcnt_u32): Ditto.
20363 (_tzcnt_u64): Ditto.
20365 2014-04-17 Kito Cheng <kito@0xlab.org>
20367 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20369 2014-04-17 Richard Biener <rguenther@suse.de>
20371 PR middle-end/60849
20372 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20373 boolean results for comparisons.
20375 2014-04-17 Richard Biener <rguenther@suse.de>
20377 PR tree-optimization/60836
20378 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20379 initial PHI args to be gimple values.
20381 2014-04-17 Richard Biener <rguenther@suse.de>
20383 PR tree-optimization/60841
20384 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20385 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20386 of stmts to SLP build.
20387 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20388 (vect_analyze_slp): Likewise.
20389 (vect_analyze_slp_instance): Likewise.
20390 (vect_build_slp_tree): Limit overall SLP tree growth.
20391 * tree-vectorizer.h (vect_analyze_data_refs,
20392 vect_analyze_slp): Adjust prototypes.
20394 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20396 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20399 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20401 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20402 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20403 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20404 for TARGET_SLOW_PSHUFB
20406 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20408 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20409 * config/i386/i386.c (intel_cost): Ditto.
20411 2014-04-17 Joey Ye <joey.ye@arm.com>
20413 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20415 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20417 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20418 with -fuse-profile.
20420 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20422 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20423 (type_all_derivations_known_p): New predicate.
20424 (type_all_ctors_visible_p): New predicate.
20425 (type_possibly_instantiated_p): New predicate.
20426 (get_odr_type): Compute all_derivations_known.
20427 (dump_odr_type): Dump the flag.
20428 (maybe_record_type): Cleanup.
20429 (record_target_from_binfo): Add bases_to_consider array;
20430 record bases for types w/o instances and skip CXX destructor.
20431 (possible_polymorphic_call_targets_1): Add bases_to_consider
20432 and consider_construction parameters; check if type may have instance.
20433 (get_polymorphic_call_info): Set maybe_in_construction to true
20434 when we know nothing.
20435 (record_targets_from_bases): Skip CXX destructors; they are
20436 never called for types in construction.
20437 (possible_polymorphic_call_targets): Do not record target when
20438 type may not have instance.
20440 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20443 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20444 external aliases alive, too.
20446 2014-04-16 Andrew Pinski <apinski@cavium.com>
20448 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20451 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20453 * final.c (compute_alignments): Do not apply loop alignment to a block
20454 falling through to the exit.
20456 2014-04-16 Catherine Moore <clm@codesourcery.com>
20458 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20459 Adjust constraints for microMIPS store patterns.
20461 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20463 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20465 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20467 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20468 (append_use): Run at -O0.
20469 (append_vdef): Likewise.
20470 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20471 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20473 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20475 PR tree-optimization/60844
20476 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20477 (propagate_op_to_single_use, remove_visited_stmt_chain,
20478 linearize_expr, repropagate_negates, reassociate_bb): Use it
20479 instead of gsi_remove.
20481 2014-04-16 Martin Jambor <mjambor@suse.cz>
20483 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20484 ipa_transforms_to_apply.
20485 (cgraph_function_versioning): Assert that old_node has empty
20486 ipa_transforms_to_apply.
20487 * trans-mem.c (ipa_tm_create_version): Likewise.
20488 * tree-inline.c (tree_function_versioning): Do not duplicate
20489 ipa_transforms_to_apply.
20491 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20494 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20496 Pass necessary as flags on 64-bit Solaris/x86.
20497 Use lowercase relocs for x86_64-*-*.
20498 * configure: Regenerate.
20500 2014-04-15 Jan Hubicka <jh@suse.cz>
20502 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20503 (maybe_record_node, likely_target_p): Use it.
20505 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20508 Revert following patch
20510 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20513 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20514 software floating point or no floating point registers, do not
20515 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20516 in GPRs that occurs after we tested for GPRs that would never be
20519 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20520 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20521 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20522 specifically allow DDmode, since that does not use the SPE SIMD
20525 2014-03-21 Mark Wielaard <mjw@redhat.com>
20527 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20528 as unsigned or int depending on type and value used.
20530 2014-04-15 Richard Biener <rguenther@suse.de>
20532 PR rtl-optimization/56965
20533 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20534 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20536 * alias.c (true_dependence_1): Do not call
20537 nonoverlapping_component_refs_p.
20538 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20539 nonoverlapping_component_refs_p.
20540 (indirect_refs_may_alias_p): Likewise.
20542 2014-04-15 Teresa Johnson <tejohnson@google.com>
20544 * cfg.c (dump_bb_info): Fix flags check.
20545 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20547 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20549 PR rtl-optimization/60663
20550 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20553 2014-04-15 Richard Biener <rguenther@suse.de>
20555 * lto-streamer.h (LTO_major_version): Bump to 4.
20557 2014-04-15 Richard Biener <rguenther@suse.de>
20559 * common.opt (lto_partition_model): New enum.
20560 (flto-partition=): Merge separate options with a single with argument,
20561 add -flto-partition=one support.
20562 * flag-types.h (enum lto_partition_model): Declare.
20563 * opts.c (finish_options): Remove duplicate -flto-partition=
20565 * lto-wrapper.c (run_gcc): Adjust.
20567 2014-04-15 Richard Biener <rguenther@suse.de>
20569 * alias.c (ncr_compar): New function.
20570 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20572 2014-04-15 Richard Biener <rguenther@suse.de>
20574 * alias.c (record_component_aliases): Do not walk BINFOs.
20576 2014-04-15 Richard Biener <rguenther@suse.de>
20578 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20579 Add struct function argument and adjust.
20580 (find_func_aliases_for_call): Likewise.
20581 (find_func_aliases): Likewise.
20582 (find_func_clobbers): Likewise.
20583 (intra_create_variable_infos): Likewise.
20584 (compute_points_to_sets): Likewise.
20585 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20587 2014-04-15 Richard Biener <rguenther@suse.de>
20589 * tree.c (iterative_hash_expr): Use enum tree_code_class
20590 to store TREE_CODE_CLASS.
20591 (tree_block): Likewise.
20592 (tree_set_block): Likewise.
20593 * tree.h (fold_build_pointer_plus_loc): Use
20594 convert_to_ptrofftype_loc.
20596 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20599 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20602 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20604 * cfgloop.h (struct loop): Move force_vectorize down.
20605 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20606 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20607 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20608 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20609 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20610 * tree-core.h (enum annot_expr_kind): Add new kind values.
20611 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20612 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20614 * tree.def (ANNOTATE_EXPR): Tweak comment.
20616 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20618 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20621 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20623 * tree.h (TYPE_IDENTIFIER): Declare.
20624 * tree.c (subrange_type_for_debug_p): Use it.
20625 * godump.c (go_format_type): Likewise.
20626 * dwarf2out.c (is_cxx_auto, modified_type_die,
20627 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20628 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20630 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20633 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20635 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20637 * config/i386/i386.c (examine_argument): Return bool. Return true if
20638 parameter should be passed in memory.
20639 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20640 (construct_container): Update calls to examine_argument.
20641 (function_arg_advance_64): Ditto.
20642 (return_in_memory_32): Merge with ix86_return_in_memory.
20643 (return_in_memory_64): Ditto.
20644 (return_in_memory_ms_64): Ditto.
20646 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20648 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20649 * coverage.c (coverage_compute_profile_id): Handle externally visible
20652 2014-04-14 Martin Jambor <mjambor@suse.cz>
20654 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20655 DECL_DISREGARD_INLINE_LIMITS functions.
20657 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20660 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20662 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20665 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20666 optimize_insn_for_speed_p instead of
20667 optimize_function_for_speed_p.
20669 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20671 * doc/invoke.texi (free): Document AArch64.
20673 2014-04-14 Richard Biener <rguenther@suse.de>
20675 PR tree-optimization/60042
20676 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20677 (insert_into_preds_of_block): Do not prevent PHI insertion
20678 for REFERENCE exprs here ...
20679 (eliminate_dom_walker::before_dom_children): ... but prevent
20680 their use here under similar conditions when applied to the
20681 IL after PRE optimizations.
20683 2014-04-14 Richard Biener <rguenther@suse.de>
20685 * passes.def: Move early points-to after early SRA.
20687 2014-04-14 Richard Biener <rguenther@suse.de>
20689 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20690 check for which sign-changes we allow when forwarding
20691 a converted value into a switch.
20693 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20695 * stor-layout.c (place_field): Finalize non-constant offset for the
20698 2014-04-14 Richard Biener <rguenther@suse.de>
20700 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20702 (expand_switch_using_bit_tests_p): Likewise.
20703 (process_switch): Compute and pass on speed_p based on the
20705 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20706 optimize_bb_for_speed_p.
20708 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20710 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20711 * function.h (struct function): Rename has_force_vect_loops into
20712 has_force_vectorize_loops.
20713 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20714 (input_struct_function_base): Likewise.
20715 * lto-streamer-out.c (output_cfg): Likewise.
20716 (output_struct_function_base): Likewise.
20717 * omp-low.c (expand_omp_simd): Likewise.
20718 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20719 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20720 (version_loop_for_if_conversion): Likewise.
20721 (tree_if_conversion): Likewise.
20722 (main_tree_if_conversion): Likewise.
20723 (gate_tree_if_conversion): Likewise.
20724 * tree-inline.c (copy_loops): Likewise.
20725 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20726 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20727 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20728 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20729 * tree-vectorizer.c (vectorize_loops): Likewise.
20730 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20732 2014-04-14 Richard Biener <rguenther@suse.de>
20735 * lto-streamer-out.c (wrap_refs): New function.
20736 (lto_output): Wrap symbol references in global initializes in
20737 type-preserving MEM_REFs.
20739 2014-04-14 Christian Bruel <christian.bruel@st.com>
20741 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20743 2014-04-14 Christian Bruel <christian.bruel@st.com>
20745 * config/sh/sh.md (setmemqi): New expand pattern.
20746 * config/sh/sh.h (CLEAR_RATIO): Define.
20747 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20748 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20750 2014-04-14 Richard Biener <rguenther@suse.de>
20752 PR middle-end/55022
20753 * fold-const.c (negate_expr_p): Don't negate directional rounding
20755 (fold_negate_expr): Likewise.
20757 2014-04-14 Richard Biener <rguenther@suse.de>
20759 PR tree-optimization/59817
20760 PR tree-optimization/60453
20761 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20762 recursion to catch all CHRECs in the scalar evolution and restrict
20763 the predicate for the remains appropriately.
20765 2014-04-12 Catherine Moore <clm@codesourcery.com>
20767 * config/mips/constraints.md: Add new register constraint "kb".
20768 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20769 (*movhi_internal): Likewise.
20770 (*movqi_internal): Likewise.
20771 * config/mips/mips.h (M16_STORE_REGS): New register class.
20772 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20773 (REG_CLASS_CONTENTS): Likewise.
20774 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20776 2014-04-11 Tobias Burnus <burnus@net-b.de>
20779 * doc/invoke.texi (-Wformat-signedness): Document it.
20780 (Wformat=2): Mention that this enables -Wformat-signedness.
20782 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20784 * common/config/epiphany/epiphany-common.c
20785 (epiphany_option_optimization_table): Enable section anchors by
20786 default at -O1 or higher.
20787 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20788 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20789 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20790 carries no extra cost.
20791 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20792 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20793 * config/epiphany/predicates.md (memclob_operand): New predicate.
20794 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20795 Use memclob_operand predicate and X constraint for operand 3.
20797 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20799 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20800 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20803 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20805 PR rtl-optimization/60651
20806 * mode-switching.c (optimize_mode_switching): Make sure to emit
20807 sets of a lower numbered entity before sets of a higher numbered
20808 entity to a mode of the same or lower priority.
20809 When creating a seginfo for a basic block that starts with a code
20810 label, move the insertion point past the code label.
20811 (new_seginfo): Document and enforce requirement that
20812 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20813 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20814 * doc/tm.texi: Regenerate.
20816 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20819 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20821 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20823 * BASE-VER: Set to 4.10.0.
20825 2014-04-11 Tobias Burnus <burnus@net-b.de>
20828 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20829 * doc/gcc.texi (Service): Update description in the @menu
20830 * doc/invoke.texi (Option Summary): Remove misplaced and
20833 2014-04-11 Steve Ellcey <sellcey@mips.com>
20834 Jakub Jelinek <jakub@redhat.com>
20836 PR middle-end/60556
20837 * expr.c (convert_move): Use emit_store_flag_force instead of
20838 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20841 2014-04-11 Richard Biener <rguenther@suse.de>
20843 PR middle-end/60797
20844 * varasm.c (assemble_alias): Avoid endless error reporting
20845 recursion by setting TREE_ASM_WRITTEN.
20847 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20849 * config/s390/s390.md: Add a splitter for NOT rtx.
20851 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20853 PR rtl-optimization/60663
20854 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20856 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20857 Jakub Jelinek <jakub@redhat.com>
20860 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20861 flag from decl_node to node.
20863 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20866 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20867 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20868 ameliorating the cases where it can be.
20870 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20873 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20875 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20876 (loadsync_<mode>): Change mode.
20877 (load_quadpti, store_quadpti): New.
20878 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20879 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20880 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20882 2014-04-09 Cong Hou <congh@google.com>
20885 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20888 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20890 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20891 instead of vnor to exploit possible fusion opportunity in the
20893 (altivec_expand_vec_perm_const_le): Likewise.
20895 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20897 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20898 (loadsync_<mode>): Change mode.
20899 (load_quadpti, store_quadpti): New.
20900 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20901 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20903 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20906 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20907 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20908 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20910 2014-04-08 Richard Biener <rguenther@suse.de>
20912 PR middle-end/60706
20913 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20914 a 64bit widest int print double-int similar to on HWI64 hosts.
20916 2014-04-08 Richard Biener <rguenther@suse.de>
20918 PR tree-optimization/60785
20919 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20920 default defs properly.
20922 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20924 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20925 (Weffc++): Likewise.
20927 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20929 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20930 set completep to false rather than true.
20932 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20935 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20936 ARM_TARGET2_DWARF_FORMAT.
20938 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20941 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20942 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20945 2014-04-07 Richard Biener <rguenther@suse.de>
20947 PR tree-optimization/60766
20948 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20949 (may_eliminate_iv): Convert cand_value_at result to desired type.
20951 2014-04-07 Jason Merrill <jason@redhat.com>
20954 * common.opt (-fno-gnu-unique): Add.
20955 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20957 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20959 * haifa-sched.c: Fix outdated function reference and minor
20960 grammar errors in introductory comment.
20962 2014-04-07 Richard Biener <rguenther@suse.de>
20964 PR middle-end/60750
20965 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20966 for noreturn calls.
20967 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20969 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20972 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20973 size accounting for thunks.
20974 (pa_asm_output_mi_thunk): Use final_start_function() and
20975 final_end_function() to output function start and end directives.
20977 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20979 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20980 device specific ISA/ feature information. Remove short_sp and
20981 errata_skip ds. Add avr_device_specific_features enum to have device
20983 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20984 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20985 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20986 updated device specific info.
20987 * config/avr/avr-mcus.def: Merge device specific details to
20988 dev_attribute field.
20989 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20991 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20992 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20993 assembler if RMW isa supported by current device.
20994 * config/avr/genmultilib.awk: Update as device info structure changed.
20995 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20997 2014-04-04 Cong Hou <congh@google.com>
20999 PR tree-optimization/60656
21000 * tree-vect-stmts.c (supportable_widening_operation):
21001 Fix a bug that elements in a vector with vect_used_by_reduction
21002 property are incorrectly reordered when the operation on it is not
21003 consistant with the one in reduction operation.
21005 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21007 PR rtl-optimization/60155
21008 * gcse.c (record_set_data): New function.
21009 (single_set_gcse): New function.
21010 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21011 (hoist_code): Likewise.
21012 (get_pressure_class_and_nregs): Likewise.
21014 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21016 * explow.c (probe_stack_range): Emit a final optimization blockage.
21018 2014-04-04 Anthony Green <green@moxielogic.com>
21020 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21023 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21026 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21027 flags are set only during streaming.
21028 * ipa.c (process_references, walk_polymorphic_call_targets,
21029 symtab_remove_unreachable_nodes): Drop bodies of always inline
21030 after early inlining.
21031 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21033 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21034 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21037 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21040 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21043 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21045 (cortex_a53_fdivd): Likewise.
21047 2014-04-04 Martin Jambor <mjambor@suse.cz>
21050 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21051 Adjust all callers.
21052 * cgraph.c (clone_of_p): Also return true if thunks match.
21053 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21054 cgraph_function_or_thunk_node and an obsolete comment.
21055 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21057 (build_function_decl_skip_args): Likewise.
21058 (set_new_clone_decl_and_node_flags): New function.
21059 (duplicate_thunk_for_node): Likewise.
21060 (redirect_edge_duplicating_thunks): Likewise.
21061 (cgraph_clone_node): New parameter args_to_skip, pass it to
21062 redirect_edge_duplicating_thunks which is called instead of
21063 cgraph_redirect_edge_callee.
21064 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21065 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21067 2014-04-04 Jeff Law <law@redhat.com>
21070 * config/arm/predicates.md (const_int_I_operand): New predicate.
21071 (const_int_M_operand): Similarly.
21072 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21074 (insv_t2, extv_reg, extzv_t2): Likewise.
21075 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21076 (pop_multiple_with_writeback_and_return): Likewise.
21077 (vfp_pop_multiple_with_writeback): Likewise
21079 2014-04-04 Richard Biener <rguenther@suse.de>
21082 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21083 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21085 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21086 * gimplify.c (gimple_add_tmp_var_fn): New function.
21087 * gimple-expr.h (create_tmp_reg_fn): Declare.
21088 * gimple-expr.c (create_tmp_reg_fn): New function.
21089 * gimple-low.c (record_vars_into): Don't change cfun.
21090 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21091 code generation without cfun.
21093 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21096 * Makefile.in (install-driver): Fix shell scripting.
21098 2014-04-03 Cong Hou <congh@google.com>
21100 PR tree-optimization/60505
21101 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21102 threshold of number of iterations below which no vectorization
21104 * tree-vect-loop.c (new_loop_vec_info):
21105 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21106 * tree-vect-loop.c (vect_analyze_loop_operations):
21107 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21108 * tree-vect-loop.c (vect_transform_loop):
21109 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21110 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21111 of iterations of the loop and see if we should build the epilogue.
21113 2014-04-03 Richard Biener <rguenther@suse.de>
21115 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21116 (streamer_tree_cache_create): Adjust.
21117 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21118 to allow optional nodes array.
21119 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21120 (streamer_tree_cache_append): Likewise.
21121 (streamer_tree_cache_create): Create nodes array optionally
21122 as specified by parameter.
21123 * lto-streamer-out.c (create_output_block): Avoid maintaining
21124 the node array in the writer cache.
21125 (DFS_write_tree): Remove assertion.
21126 (produce_asm_for_decls): Free the out decl state hash table early.
21127 * lto-streamer-in.c (lto_data_in_create): Adjust for
21128 streamer_tree_cache_create prototype change.
21130 2014-04-03 Richard Biener <rguenther@suse.de>
21132 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21133 set TREE_CHAIN to NULL_TREE.
21135 2014-04-03 Richard Biener <rguenther@suse.de>
21137 PR tree-optimization/60740
21138 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21139 over all GIMPLE_COND operands.
21141 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21143 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21144 (Weffc++): Remove Scott's numbering, merge lists and reference
21147 2014-04-03 Nick Clifton <nickc@redhat.com>
21149 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21152 2014-04-03 Martin Jambor <mjambor@suse.cz>
21154 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21155 mention gcc_unreachable before failing.
21156 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21159 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21162 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21163 inconsistent code and instead mark the context inconsistent.
21164 (possible_polymorphic_call_targets): For inconsistent contexts
21165 return empty complete list.
21167 2014-04-02 Anthony Green <green@moxielogic.com>
21169 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21170 (extendqisi2, extendhisi2): Define.
21171 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21172 (WCHAR_TYPE): Change to unsigned int.
21174 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21176 PR tree-optimization/60733
21177 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21178 insertion point for PHI candidates to be the end of the feeding
21179 block for the PHI argument.
21181 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21183 PR rtl-optimization/60650
21184 * lra-constraints.c (process_alt_operands): Decrease reject for
21185 earlyclobber matching.
21187 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21189 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21191 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21193 * config/spu/spu.c (pad_bb): Do not crash when the last
21194 insn is CODE_FOR_blockage.
21196 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21198 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21199 lies outside the target mode.
21201 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21204 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21205 software floating point or no floating point registers, do not
21206 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21207 in GPRs that occurs after we tested for GPRs that would never be
21210 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21211 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21212 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21213 specifically allow DDmode, since that does not use the SPE SIMD
21216 2014-04-02 Richard Biener <rguenther@suse.de>
21218 PR middle-end/60729
21219 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21220 MODE_INTs. Properly use negv_optab.
21221 (expand_abs): Likewise.
21223 2014-04-02 Richard Biener <rguenther@suse.de>
21226 * Makefile.in (install-driver): Guard extra installs with special
21229 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21231 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21232 Document vec_vgbbd.
21234 2014-04-01 Richard Henderson <rth@redhat.com>
21237 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21238 alternative enabled before register allocation.
21240 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21242 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21243 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21245 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21246 (nios2_got_address): Update nios2_large_got_address call site.
21247 (nios2_delegitimize_address): New function.
21248 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21249 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21250 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21252 2014-04-01 Martin Husemann <martin@duskware.de>
21254 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21257 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21259 PR rtl-optimization/60604
21260 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21261 check from register_operand.
21262 (register_operand): Redefine in terms of general_operand.
21263 (nonmemory_operand): Use register_operand for the non-constant cases.
21265 2014-04-01 Richard Biener <rguenther@suse.de>
21267 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21269 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21271 * doc/invoke.texi (mapp-regs): Clarify.
21273 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21275 * config/i386/avx512fintrin.h (__v32hi): Define type.
21276 (__v64qi): Likewise.
21277 (_mm512_set1_epi8): Define.
21278 (_mm512_set1_epi16): Define.
21279 (_mm512_set4_epi32): Define.
21280 (_mm512_set4_epi64): Define.
21281 (_mm512_set4_pd): Define.
21282 (_mm512_set4_ps): Define.
21283 (_mm512_setr4_epi64): Define.
21284 (_mm512_setr4_epi32): Define.
21285 (_mm512_setr4_pd): Define.
21286 (_mm512_setr4_ps): Define.
21287 (_mm512_setzero_epi32): Define.
21289 2014-03-31 Martin Jambor <mjambor@suse.cz>
21291 PR middle-end/60647
21292 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21293 callsite_arguments_match_p. Updated all callers. Also check types of
21294 corresponding formal parameters and actual arguments.
21295 (not_all_callers_have_enough_arguments_p) Renamed to
21296 some_callers_have_mismatched_arguments_p.
21298 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21300 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21302 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21305 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21308 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21310 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21311 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21313 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21314 Use FMAMODE_NOVF512 mode iterator.
21315 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21316 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21317 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21318 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21320 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21321 Use VF_128_256 mode iterator.
21322 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21325 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21327 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21328 static chain if needed.
21330 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21333 * lra-constraints.c (index_part_to_reg): New.
21334 (process_address): Use it.
21336 2014-03-27 Jeff Law <law@redhat.com>
21337 Jakub Jelinek <jakub@redhat.com>
21340 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21341 gen_rtx_{PLUS,MULT} to build up the address expression.
21343 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21344 creating non-canonical RTL.
21346 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21349 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21350 functions; reorganize to make cheap checks first.
21351 (inline_small_functions): Do not estimate growth when dumping;
21353 * ipa-inline.h (inline_summary): Add min_size.
21354 (growth_likely_positive): New function.
21355 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21356 (set_cond_stmt_execution_predicate): Cleanup.
21357 (estimate_edge_size_and_time): Compute min_size.
21358 (estimate_calls_size_and_time): Likewise.
21359 (estimate_node_size_and_time): Likewise.
21360 (inline_update_overall_summary): Update min_size.
21361 (do_estimate_edge_time): Likewise.
21362 (do_estimate_edge_size): Update.
21363 (do_estimate_edge_hints): Update.
21364 (growth_likely_positive): New function.
21366 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21369 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21370 also if addr has VOIDmode.
21372 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21374 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21375 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21377 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21378 instructions as well as AdvancedSIMD loads.
21380 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21382 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21383 Use crypto_aese type.
21384 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21385 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21386 crypto_aese, crypto_aesmc. Move to types.md.
21387 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21389 * config/arm/iterators.md (crypto_type): Likewise.
21391 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21393 * cgraph.c: Include expr.h and tree-dfa.h.
21394 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21397 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21400 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21401 regs from checking multi-reg pseudos.
21403 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21405 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21407 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21409 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21410 if it would clobber the stack pointer, even temporarily.
21412 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21414 * mode-switching.c: Make small adjustments to the top comment.
21416 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21418 * config/rs6000/constraints.md (wD constraint): New constraint to
21419 match the constant integer to get the top DImode/DFmode out of a
21420 vector in a VSX register.
21422 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21423 match the constant integer to get the top DImode/DFmode out of a
21424 vector in a VSX register.
21426 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21429 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21432 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21433 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21435 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21436 Optimize vec_extract of 64-bit values, where the value being
21437 extracted is in the top word, where we can use scalar
21438 instructions. Add direct move and store support. Combine the big
21439 endian/little endian vector select load support into a single insn.
21440 (vsx_extract_<mode>_internal1): Likewise.
21441 (vsx_extract_<mode>_internal2): Likewise.
21442 (vsx_extract_<mode>_load): Likewise.
21443 (vsx_extract_<mode>_store): Likewise.
21444 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21445 combined into vsx_extract_<mode>_load.
21446 (vsx_extract_<mode>_one_le): Likewise.
21448 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21449 define the top 64-bit vector element.
21451 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21454 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21455 Document vec_vbpermq builtin.
21458 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21459 enable use of xxsldwi and xxpermdi builtin functions.
21460 (vec_xxpermdi): Likewise.
21462 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21463 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21465 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21467 PR rtl-optimization/60650
21468 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21470 (find_spills_for): New.
21471 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21472 Spill all pseudos on the second iteration.
21474 2014-03-27 Marek Polacek <polacek@redhat.com>
21477 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21480 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21482 * config/s390/s390.c (s390_can_use_return_insn): Check for
21483 call-saved FPRs on 31 bit.
21485 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21487 PR middle-end/60682
21488 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21489 if they need regimplification, just drop them instead of
21490 calling gimple_regimplify_operands on them.
21492 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21495 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21496 (aarch64_frame_pointer_required): Adjust logic.
21497 (aarch64_can_eliminate): Adjust logic.
21498 (aarch64_override_options_after_change): Adjust logic.
21500 2014-03-27 Dehao Chen <dehao@google.com>
21502 * ipa-inline.c (early_inliner): Update node's inline info.
21504 2014-03-26 Dehao Chen <dehao@google.com>
21506 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21507 compiler inserted conditional jumps for NAN float check.
21509 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21511 * ubsan.h (ubsan_create_data): Change second argument's type
21512 to const location_t *.
21513 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21515 (ubsan_create_data): Change second argument to const location_t *PLOC.
21516 Create Loc field whenever PLOC is non-NULL.
21517 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21518 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21522 * real.c (real_to_integer2): Change type of low to UHWI.
21524 2014-03-26 Tobias Burnus <burnus@net-b.de>
21526 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21527 (CILK_SELF_SPECS): New define.
21528 (driver_self_specs): Use it.
21530 2014-03-26 Richard Biener <rguenther@suse.de>
21532 * tree-pretty-print.c (percent_K_format): Implement special
21533 case for LTO and its stripped down BLOCK tree.
21535 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21538 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21540 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21541 one range is range_int_cst_p, but not both, at least optimize
21542 addition/subtraction of 0 and multiplication by 0 or 1.
21543 * gimple-fold.c (gimple_fold_call): Fold
21544 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21545 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21546 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21548 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21550 PR rtl-optimization/60452
21551 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21552 <case REG>: Return 1 for invalid offsets from the frame pointer.
21554 2014-03-26 Marek Polacek <polacek@redhat.com>
21557 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21560 2014-03-26 Marek Polacek <polacek@redhat.com>
21563 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21566 2014-03-26 Marek Polacek <polacek@redhat.com>
21569 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21570 multiplication in unsigned type.
21572 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21574 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21576 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21578 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21580 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21583 * cif-code.def (UNREACHABLE) New code.
21584 * ipa-inline.c (inline_small_functions): Skip edges to
21585 __builtlin_unreachable.
21586 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21587 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21588 predicate to __bulitin_unreachable.
21589 (set_cond_stmt_execution_predicate): Fix issue when
21590 invert_tree_comparison returns ERROR_MARK.
21591 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21592 propagate to inline clones.
21593 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21595 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21596 * cgraphclones.c (cgraph_clone_node): If call destination is already
21597 ureachable, do not redirect it back.
21598 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21601 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21603 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21604 Do not modify inline clones.
21606 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21608 * config/i386/i386.md (general_sext_operand): New mode attr.
21609 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21610 don't generate (sign_extend (const_int)).
21611 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21612 operands[2]. Use We constraint instead of <i> and
21613 <general_sext_operand> predicate instead of <general_operand>.
21614 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21615 * config/i386/constraints.md (We): New constraint.
21616 * config/i386/predicates.md (x86_64_sext_operand,
21617 sext_operand): New predicates.
21619 2014-03-25 Martin Jambor <mjambor@suse.cz>
21622 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21623 inconsistent devirtualizations to __builtin_unreachable.
21625 2014-03-25 Marek Polacek <polacek@redhat.com>
21628 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21630 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21632 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21633 order of elements for big-endian.
21635 2014-03-25 Richard Biener <rguenther@suse.de>
21637 PR middle-end/60635
21638 * gimplify-me.c (gimple_regimplify_operands): Update the
21641 2014-03-25 Martin Jambor <mjambor@suse.cz>
21644 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21645 (lto_output_varpool_node): Likewise.
21646 (input_overwrite_node): Likewise.
21647 (input_varpool_node): Likewise.
21649 2014-03-25 Richard Biener <rguenther@suse.de>
21651 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21652 (run_gcc): Likewise.
21654 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21656 * combine.c (simplify_compare_const): Add MODE argument.
21657 Handle mode_width 0 as very large mode_width.
21658 (try_combine, simplify_comparison): Adjust callers.
21660 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21661 type to avoid signed integer overflow.
21662 * explow.c (plus_constant): Likewise.
21664 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21666 * doc/generic.texi: Correct typos.
21668 2014-03-24 Tobias Burnus <burnus@net-b.de>
21670 * doc/invoke.texi (-flto): Expand section about
21671 using static libraries with LTO.
21673 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21675 PR rtl-optimization/60501
21676 * optabs.def (addptr3_optab): New optab.
21677 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21678 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21679 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21681 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21683 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21685 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21687 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21690 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21691 (_mm256_undefined_ps): Define.
21692 (_mm256_undefined_pd): Define.
21693 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21694 (_mm_undefined_pd): Define.
21695 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21696 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21697 (_mm512_undefined_ps): Define.
21698 (_mm512_undefined_pd): Define.
21699 Use _mm*_undefined_*.
21700 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21702 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21704 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21705 (lshr_simd): DI mode added.
21706 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21707 (aarch64_ushr_simddi): Likewise.
21708 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21709 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21710 (vshrd_n_u64): Likewise.
21712 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21714 * Makefile.in (s-macro_list): Depend on cc1.
21716 2014-03-23 Teresa Johnson <tejohnson@google.com>
21718 * ipa-utils.c (ipa_print_order): Use specified dump file.
21720 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21722 PR rtl-optimization/60601
21723 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21725 * gcc.c (eval_spec_function): Initialize save_growing_value.
21727 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21730 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21731 code == MINUS_EXPR, never swap op0 with op1.
21733 * toplev.c (init_local_tick): Avoid signed integer multiplication
21735 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21736 shift by first operand's bitsize.
21738 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21741 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21742 redefine to 1 or 0.
21743 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21744 TARGET_ISA_64BIT_P(x).
21746 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21748 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21749 pattern for vector nor instead of subtract from splat(-1).
21750 (altivec_expand_vec_perm_const_le): Likewise.
21752 2014-03-21 Richard Henderson <rth@twiddle.net>
21755 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21756 related insns after epilogue_completed.
21758 2014-03-21 Martin Jambor <mjambor@suse.cz>
21761 * cgraph.h (symtab_node): New flag body_removed.
21762 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21763 when removing bodies.
21764 * symtab.c (dump_symtab_base): Dump body_removed flag.
21765 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21766 had their bodies removed.
21768 2014-03-21 Martin Jambor <mjambor@suse.cz>
21771 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21774 2014-03-21 Richard Biener <rguenther@suse.de>
21776 PR tree-optimization/60577
21777 * tree-core.h (struct tree_base): Document nothrow_flag use
21778 in DECL_NONALIASED.
21779 * tree.h (DECL_NONALIASED): New.
21780 (may_be_aliased): Adjust.
21781 * coverage.c (build_var): Set DECL_NONALIASED.
21783 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21785 * expr.c (expand_expr_real_1): Remove outdated comment.
21787 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21789 PR middle-end/60597
21790 * ira.c (adjust_cleared_regs): Call copy_rtx on
21791 *reg_equiv[REGNO (loc)].src_p before passing it to
21792 simplify_replace_fn_rtx.
21795 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21796 into CONST, put pic register as first operand of PLUS. Use
21797 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21799 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21801 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21803 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21805 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21806 around for store forwarding issue in the FPU on the UT699.
21807 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21808 loads and operations if -mfix-ut699 is specified.
21809 (divtf3_hq): Tweak attribute.
21810 (sqrttf2_hq): Likewise.
21812 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21814 * calls.c (store_one_arg): Remove incorrect const qualification on the
21815 type of the temporary.
21816 * cfgexpand.c (expand_return): Likewise.
21817 * expr.c (expand_constructor): Likewise.
21818 (expand_expr_real_1): Likewise.
21820 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21822 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21825 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21828 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21830 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21832 * config/arm/aarch-common-protos.h
21833 (alu_cost_table): Fix spelling of "extend".
21834 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21836 2014-03-19 Richard Biener <rguenther@suse.de>
21838 PR middle-end/60553
21839 * tree-core.h (tree_type_common): Re-order pointer members
21840 to reduce recursion depth during GC walks.
21842 2014-03-19 Marek Polacek <polacek@redhat.com>
21845 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21846 before accessing it.
21848 2014-03-19 Richard Biener <rguenther@suse.de>
21851 * lto-streamer-in.c (input_function): In WPA stage do not drop
21854 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21856 PR tree-optimization/60559
21857 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21858 with build_zero_cst assignment.
21860 2014-03-18 Kai Tietz <ktietz@redhat.com>
21862 PR rtl-optimization/56356
21863 * sdbout.c (sdbout_parms): Verify that parms'
21864 incoming argument is valid.
21865 (sdbout_reg_parms): Likewise.
21867 2014-03-18 Richard Henderson <rth@redhat.com>
21870 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21871 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21872 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21874 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21876 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21877 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21878 Italicize plugin event names in description. Explain that
21879 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21880 Remind that no GCC functions should be called after PLUGIN_FINISH.
21881 Explain what pragmas with expansion are.
21883 2014-03-18 Martin Liska <mliska@suse.cz>
21885 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21886 gimple call statement is update.
21887 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21888 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21890 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21893 * ubsan.c (ubsan_instrument_unreachable): Call
21894 initialize_sanitizer_builtins.
21895 (ubsan_pass): Likewise.
21898 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21899 varpool_finalize_decl instead of rest_of_decl_compilation.
21901 2014-03-18 Richard Biener <rguenther@suse.de>
21903 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21904 by using bitmap_and_compl instead of bitmap_and_compl_into.
21905 (df_rd_transfer_function): Likewise.
21907 2014-03-18 Richard Biener <rguenther@suse.de>
21909 * doc/lto.texi (fresolution): Fix typo.
21911 2014-03-18 Richard Biener <rguenther@suse.de>
21913 * doc/invoke.texi (flto): Update for changes in 4.9.
21915 2014-03-18 Richard Biener <rguenther@suse.de>
21917 * doc/loop.texi: Remove section on the removed lambda framework.
21918 Update loop docs with recent changes in preserving loop structure.
21920 2014-03-18 Richard Biener <rguenther@suse.de>
21922 * doc/lto.texi (-fresolution): Document.
21924 2014-03-18 Richard Biener <rguenther@suse.de>
21926 * doc/contrib.texi: Adjust my name.
21928 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21931 * internal-fn.c: Include diagnostic-core.h.
21932 (expand_BUILTIN_EXPECT): New function.
21933 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21934 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21935 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21936 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21937 IFN_BUILTIN_EXPECT.
21938 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21939 Revert 3 argument __builtin_expect code.
21940 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21941 * gimple-fold.c (gimple_fold_call): Likewise.
21942 * tree.h (fold_builtin_expect): New prototype.
21943 * builtins.c (build_builtin_expect_predicate): Add predictor
21944 argument, if non-NULL, create 3 argument __builtin_expect.
21945 (fold_builtin_expect): No longer static. Add ARG2 argument,
21946 pass it through to build_builtin_expect_predicate.
21947 (fold_builtin_2): Adjust caller.
21948 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21949 * internal-fn.def (BUILTIN_EXPECT): New.
21951 2014-03-18 Tobias Burnus <burnus@net-b.de>
21954 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21955 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21956 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21958 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21961 * predict.c (combine_predictions_for_bb): Fix up formatting.
21962 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21963 fill what it points to if non-NULL.
21964 (tree_predict_by_opcode): Adjust caller, use the predictor.
21965 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21967 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21969 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21970 proper constant for the store mode.
21972 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21974 * symtab.c (change_decl_assembler_name): Fix transparent alias
21975 chain construction.
21977 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21979 * config/aarch64/aarch64.c: Correct the comments about the
21980 aarch64 stack layout.
21982 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21984 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21985 check for GF_OMP_FOR_KIND_FOR.
21987 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21989 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21990 ymm and zmm register names.
21992 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21995 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21996 note creation for the 2010-08-31 changes.
21998 2014-03-17 Marek Polacek <polacek@redhat.com>
22000 PR middle-end/60534
22001 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22002 as -fno-tree-loop-vectorize.
22003 (expand_omp_simd): Likewise.
22005 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22007 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22008 (eligible_for_call_delay): New prototype.
22009 * config/sparc/sparc.c (tls_call_delay): Rename into...
22010 (eligible_for_call_delay): ...this. Return false if the instruction
22011 cannot be put in the delay slot of a branch.
22012 (eligible_for_restore_insn): Simplify.
22013 (eligible_for_return_delay): Return false if the instruction cannot be
22014 put in the delay slot of a branch and simplify.
22015 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22016 put in the delay slot of a branch.
22017 * config/sparc/sparc.md (fix_ut699): New attribute.
22018 (tls_call_delay): Delete.
22019 (in_call_delay): Reimplement.
22020 (eligible_for_sibcall_delay): Rename into...
22021 (in_sibcall_delay): ...this.
22022 (eligible_for_return_delay): Rename into...
22023 (in_return_delay): ...this.
22024 (in_branch_delay): Reimplement.
22025 (in_uncond_branch_delay): Delete.
22026 (in_annul_branch_delay): Delete.
22028 2014-03-14 Richard Henderson <rth@redhat.com>
22031 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22032 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22033 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22034 (floathi splitters): Remove.
22035 (float<SWI48x>xf2): New pattern.
22036 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22037 code that tried to handle DImode for 32-bit, but which was excluded
22038 by the pattern's condition. Drop allocation of stack temporary.
22039 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22040 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22041 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22042 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22043 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22044 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22045 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22046 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22047 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22048 (*float<SWI48x><X87MODEF>2_i387): Remove.
22049 (all float _with_temp splitters): Remove.
22050 (*float<SWI48x><MODEF>2_i387): New pattern.
22051 (*float<SWI48><MODEF>2_sse): New pattern.
22052 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22053 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22055 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22056 Marek Polacek <polacek@redhat.com>
22058 PR middle-end/60484
22059 * common.opt (dump_base_name_prefixed): New Variable.
22060 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22061 if x_dump_base_name_prefixed is already set, set it at the end.
22063 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22065 PR rtl-optimization/60508
22066 * lra-constraints.c (get_reload_reg): Add new parameter
22068 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22069 Pass the new parameter values.
22071 2014-03-14 Richard Biener <rguenther@suse.de>
22073 * common.opt: Revert unintented changes from r205065.
22074 * opts.c: Likewise.
22076 2014-03-14 Richard Biener <rguenther@suse.de>
22078 PR middle-end/60518
22079 * cfghooks.c (split_block): Properly adjust all loops the
22080 block was a latch of.
22082 2014-03-14 Martin Jambor <mjambor@suse.cz>
22085 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22088 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22091 * config/avr/avr.c (avr_set_current_function): Pass function name
22092 through default_strip_name_encoding before sanity checking instead
22093 of skipping the first char of the assembler name.
22095 2014-03-13 Richard Henderson <rth@redhat.com>
22098 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22099 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22100 * config/i386/i386-protos.h: Likewise.
22101 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22102 in the expander instead of a splitter.
22103 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22104 any possibility of requiring a memory.
22105 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22106 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22107 (fp branch splitters): Update for ix86_split_fp_branch.
22108 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22109 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22110 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22111 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22112 (*fop_<MODEF>_3_i387): Likewise.
22113 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22114 (splitters for the fop_* register patterns): Remove.
22115 (fscalexf4_i387): Rename from *fscalexf4_i387.
22116 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22118 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22120 PR tree-optimization/59779
22121 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22122 type for bitsize and maxsize instead of HOST_WIDE_INT.
22124 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22126 PR rtl-optimization/57320
22127 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22128 the CFG after thread_prologue_and_epilogue_insns.
22130 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22132 PR rtl-optimization/57189
22133 * lra-constraints.c (process_alt_operands): Disfavor spilling
22136 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22138 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22140 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22142 PR tree-optimization/59025
22143 PR middle-end/60418
22144 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22145 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22147 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22150 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22151 calls of avr_out_plus_1.
22153 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22155 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22156 BB's single pred and update the father loop's latch info later.
22158 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22160 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22164 (VEC_base): Likewise.
22165 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22166 registers, we need to swap double words in little endian mode.
22168 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22169 to be a container mode for 128-bit integer operations added in ISA
22170 2.07. Unlike TImode and PTImode, the preferred register set is
22171 the Altivec/VMX registers for the 128-bit operations.
22173 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22175 (rs6000_split_128bit_ok_p): Likewise.
22177 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22178 macros for creating ISA 2.07 normal and overloaded builtin
22179 functions with 3 arguments.
22180 (BU_P8V_OVERLOAD_3): Likewise.
22181 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22182 for use as overloaded functions.
22183 (VPERM_1TI_UNS): Likewise.
22184 (VSEL_1TI): Likewise.
22185 (VSEL_1TI_UNS): Likewise.
22186 (ST_INTERNAL_1ti): Likewise.
22187 (LD_INTERNAL_1ti): Likewise.
22188 (XXSEL_1TI): Likewise.
22189 (XXSEL_1TI_UNS): Likewise.
22190 (VPERM_1TI): Likewise.
22191 (VPERM_1TI_UNS): Likewise.
22192 (XXPERMDI_1TI): Likewise.
22193 (SET_1TI): Likewise.
22194 (LXVD2X_V1TI): Likewise.
22195 (STXVD2X_V1TI): Likewise.
22196 (VEC_INIT_V1TI): Likewise.
22197 (VEC_SET_V1TI): Likewise.
22198 (VEC_EXT_V1TI): Likewise.
22199 (EQV_V1TI): Likewise.
22200 (NAND_V1TI): Likewise.
22201 (ORC_V1TI): Likewise.
22202 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22203 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22204 overloaded builtin.
22205 (VADDUQM): Likewise.
22206 (VSUBCUQ): Likewise.
22207 (VADDEUQM): Likewise.
22208 (VADDECUQ): Likewise.
22209 (VSUBEUQM): Likewise.
22210 (VSUBECUQ): Likewise.
22212 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22213 __int128_t and __uint128_t types.
22214 (__uint128_type): Likewise.
22215 (altivec_categorize_keyword): Add support for vector __int128_t,
22216 vector __uint128_t, vector __int128, and vector unsigned __int128
22217 as a container type for TImode operations that need to be done in
22218 VSX/Altivec registers.
22219 (rs6000_macro_to_expand): Likewise.
22220 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22221 to support 128-bit integer instructions vaddcuq, vadduqm,
22222 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22223 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22225 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22226 for V1TImode, and set up preferences to use VSX/Altivec registers.
22227 Setup VSX reload handlers.
22228 (rs6000_debug_reg_global): Likewise.
22229 (rs6000_init_hard_regno_mode_ok): Likewise.
22230 (rs6000_preferred_simd_mode): Likewise.
22231 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22232 (easy_altivec_constant): Likewise.
22233 (output_vec_const_move): Likewise.
22234 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22236 (rs6000_expand_vector_extract): Likewise.
22237 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22239 (rs6000_const_vec): Add support for V1TImode.
22240 (rs6000_emit_le_vsx_load): Swap double words when loading or
22241 storing TImode/V1TImode.
22242 (rs6000_emit_le_vsx_store): Likewise.
22243 (rs6000_emit_le_vsx_move): Likewise.
22244 (rs6000_emit_move): Add support for V1TImode.
22245 (altivec_expand_ld_builtin): Likewise.
22246 (altivec_expand_st_builtin): Likewise.
22247 (altivec_expand_vec_init_builtin): Likewise.
22248 (altivec_expand_builtin): Likewise.
22249 (rs6000_init_builtins): Add support for V1TImode type. Add
22250 support for ISA 2.07 128-bit integer builtins. Define type names
22251 for the VSX/Altivec vector types.
22252 (altivec_init_builtins): Add support for overloaded vector
22253 functions with V1TImode type.
22254 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22255 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22257 (rs6000_split_128bit_ok_p): Likewise.
22258 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22259 __int128_t and vector __uint128_t.
22261 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22262 and mode attributes.
22264 (VSX_M2): Likewise.
22269 (VS_scalar): Likewise.
22270 (VS_double): Likewise.
22271 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22273 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22274 we support the ISA 2.07 128-bit integer arithmetic instructions.
22275 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22276 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22277 and TImode types for use with the builtin functions.
22278 (V1TI_type_node): Likewise.
22279 (unsigned_V1TI_type_node): Likewise.
22280 (intTI_type_internal_node): Likewise.
22281 (uintTI_type_internal_node): Likewise.
22283 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22284 128-bit builtin functions.
22285 (UNSPEC_VADDEUQM): Likewise.
22286 (UNSPEC_VADDECUQ): Likewise.
22287 (UNSPEC_VSUBCUQ): Likewise.
22288 (UNSPEC_VSUBEUQM): Likewise.
22289 (UNSPEC_VSUBECUQ): Likewise.
22290 (VM): Add V1TImode to vector mode iterators.
22292 (VI_unit): Likewise.
22293 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22294 (altivec_vaddcuq): Likewise.
22295 (altivec_vsubuqm): Likewise.
22296 (altivec_vsubcuq): Likewise.
22297 (altivec_vaddeuqm): Likewise.
22298 (altivec_vaddecuq): Likewise.
22299 (altivec_vsubeuqm): Likewise.
22300 (altivec_vsubecuq): Likewise.
22302 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22304 (BOOL_128): Likewise.
22305 (BOOL_REGS_OUTPUT): Likewise.
22306 (BOOL_REGS_OP1): Likewise.
22307 (BOOL_REGS_OP2): Likewise.
22308 (BOOL_REGS_UNARY): Likewise.
22309 (BOOL_REGS_AND_CR0): Likewise.
22311 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22312 128-bit integer builtin support.
22313 (vec_vadduqm): Likewise.
22314 (vec_vaddecuq): Likewise.
22315 (vec_vaddeuqm): Likewise.
22316 (vec_vsubecuq): Likewise.
22317 (vec_vsubeuqm): Likewise.
22318 (vec_vsubcuq): Likewise.
22319 (vec_vsubuqm): Likewise.
22321 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22322 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22323 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22324 128-bit integer add/subtract to ISA 2.07.
22326 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22328 * config/arc/arc.c (arc_predicate_delay_insns):
22329 Fix third argument passed to conditionalize_nonjump.
22331 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22333 * config/aarch64/aarch64-builtins.c
22334 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22335 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22336 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22337 instead of __builtin_lfloor.
22338 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22340 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22342 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22343 (tree_ssa_ifcombine_bb_1): New function.
22344 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22345 is an empty forwarder block to then_bb or vice versa and then_bb
22346 and else_bb are effectively swapped.
22348 2014-03-12 Christian Bruel <christian.bruel@st.com>
22351 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22352 REG_CFA_DEF_CFA note.
22353 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22354 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22356 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22358 PR tree-optimization/60454
22359 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22361 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22363 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22364 Do not define target_cpu_default2 to generic.
22365 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22366 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22367 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22369 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22370 Marc Glisse <marc.glisse@inria.fr>
22372 PR tree-optimization/60502
22373 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22374 instead of build_low_bits_mask.
22376 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22378 PR middle-end/60482
22379 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22380 if there are multiple uses, but op doesn't live on E edge.
22381 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22382 clobber stmts before __builtin_unreachable.
22384 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22386 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22387 hard_frame_pointer_rtx.
22388 * cse.c (cse_insn): Remove volatile check.
22389 * cselib.c (cselib_process_insn): Likewise.
22390 * dse.c (scan_insn): Likewise.
22392 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22394 * config/arc/arc.c (conditionalize_nonjump): New function,
22396 (arc_ifcvt): ... this.
22397 (arc_predicate_delay_insns): Use it.
22399 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22401 * config/arc/predicates.md (extend_operand): During/after reload,
22402 allow const_int_operand.
22403 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22404 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22405 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22407 (umulsi3_highpart_i): Likewise.
22409 2014-03-11 Richard Biener <rguenther@suse.de>
22411 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22412 Add asserts to guard possible wrong-code bugs.
22414 2014-03-11 Richard Biener <rguenther@suse.de>
22416 PR tree-optimization/60429
22417 PR tree-optimization/60485
22418 * tree-ssa-structalias.c (set_union_with_increment): Properly
22419 take into account all fields that overlap the shifted vars.
22420 (do_sd_constraint): Likewise.
22421 (do_ds_constraint): Likewise.
22422 (get_constraint_for_ptr_offset): Likewise.
22424 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22426 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22427 (nios2_compute_frame_layout):
22428 Add calculation of cfun->machine->fp_save_offset.
22429 (nios2_expand_prologue): Correct setting of frame pointer register
22431 (nios2_expand_epilogue): Update recovery of stack pointer from
22432 frame pointer accordingly.
22433 (nios2_initial_elimination_offset): Update calculation of offset
22434 for eliminating to HARD_FRAME_POINTER_REGNUM.
22436 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22439 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22440 cgraph_get_create_node on VAR_DECLs.
22442 2014-03-10 Richard Biener <rguenther@suse.de>
22444 PR middle-end/60474
22445 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22447 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22449 * config/vms/vms.opt (vms_float_format): New variable.
22451 2014-03-08 Tobias Burnus <burnus@net-b.de>
22453 * doc/invoke.texi (-fcilkplus): Update implementation status.
22455 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22456 Richard Biener <rguenther@suse.de>
22458 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22459 consistently accross all TUs.
22460 (run_gcc): Enable -fshort-double automatically at link at link-time
22461 and disallow override.
22463 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22466 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22467 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22468 if they can't be used.
22470 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22472 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22473 for Solaris 11/x86 ld.
22474 * configure: Regenerate.
22476 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22478 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22479 (LIB_TLS_SPEC): Save as ld_tls_libs.
22480 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22481 (HAVE_AS_IX86_TLSLDM): New test.
22482 * configure, config.in: Regenerate.
22483 * config/i386/i386.c (legitimize_tls_address): Fall back to
22484 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22485 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22486 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22487 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22489 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22491 * common.opt (fira-loop-pressure): Mark as optimization.
22493 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22495 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22496 an OpenMP mappable type.
22498 2014-03-06 Matthias Klose <doko@ubuntu.com>
22500 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22501 MULTILIB_OSDIRNAMES is not defined.
22503 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22504 Meador Inge <meadori@codesourcery.com>
22507 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22508 (arm_legitimize_address): Call legitimize_tls_address for any
22509 arm_tls_referenced_p expression, handle constant addend. Call it
22510 before testing for !TARGET_ARM.
22511 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22513 2014-03-06 Richard Biener <rguenther@suse.de>
22515 PR middle-end/60445
22519 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22521 * tree-streamer.c (record_common_node): Assert we don't record
22522 nodes with type double.
22523 (preload_common_node): Skip type double, complex double and double
22524 pointer since it is now frontend dependent due to fshort-double option.
22526 2014-03-06 Richard Biener <rguenther@suse.de>
22528 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22529 or -fno-lto is specified and the linker has full plugin support.
22530 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22531 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22532 * lto-wrapper.c (merge_and_complain): Merge compile-time
22533 optimization levels.
22534 (run_gcc): And pass it through to the link options.
22536 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22540 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22542 * cselib.c (remove_useless_values): Skip to avoid quadratic
22543 behavior if the condition moved from...
22544 (cselib_process_insn): ... here holds.
22546 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22549 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22550 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22553 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22554 (TM_H): Add x86-tune.def.
22556 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22558 * config/aarch64/aarch64.c (generic_tunings):
22559 Use cortexa57_extra_costs.
22561 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22564 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22565 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22566 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22569 2014-03-04 Heiher <r@hev.cc>
22571 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22572 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22574 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22576 * config/i386/predicates.md (const2356_operand): Change to ...
22577 (const2367_operand): ... this.
22578 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22580 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22581 (*avx512pf_scatterpf<mode>sf): Ditto.
22582 (avx512pf_scatterpf<mode>df): Ditto.
22583 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22584 (*avx512pf_scatterpf<mode>df): Ditto.
22585 * config/i386/i386.c (ix86_expand_builtin): Update
22586 incorrect hint operand error message.
22588 2014-03-04 Richard Biener <rguenther@suse.de>
22590 * lto-section-in.c (lto_get_section_data): Fix const cast.
22592 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22594 * tree-streamer.c (record_common_node): Assert we don't record
22595 nodes with type double.
22596 (preload_common_node): Skip type double, complex double and double
22597 pointer since it is now frontend dependent due to fshort-double option.
22599 2014-03-04 Richard Biener <rguenther@suse.de>
22602 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22603 (lto_input_toplevel_asms): Likewise.
22604 * lto-section-in.c (lto_get_section_data): Instead do it here
22607 2014-03-04 Richard Biener <rguenther@suse.de>
22609 PR tree-optimization/60382
22610 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22611 dead PHIs a reduction.
22613 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22615 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22617 (_mm_prefetch): Move out of GCC target("sse") pragma.
22618 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22619 GCC target("prfchw") pragma.
22620 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22622 * config/i386/i386.c (ix86_option_override_internal): Enable
22623 -mprfchw with -mprefetchwt1.
22625 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22627 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22630 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22632 * opts.h (CL_PCH_IGNORE): Define.
22633 * targhooks.c (option_affects_pch_p):
22634 Return false for options that have CL_PCH_IGNORE set.
22635 * opt-functions.awk: Process PchIgnore.
22636 * doc/options.texi: Document PchIgnore.
22638 * config/arc/arc.opt (misize): Add PchIgnore property.
22640 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22642 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22643 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22644 constraint on constants to permit them being loaded into
22645 GENERAL_REGS or BASE_REGS.
22647 2014-03-03 Nick Clifton <nickc@redhat.com>
22649 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22650 anti-cacnonical alternatives.
22651 (negandhi3_real): New pattern.
22652 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22654 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22656 * config/avr/avr-mcus.def: Remove atxmega16x1.
22657 * config/avr/avr-tables.opt: Regenerate.
22658 * config/avr/t-multilib: Regenerate.
22659 * doc/avr-mmcu.texi: Regenerate.
22661 2014-03-03 Tobias Grosser <tobias@grosser.es>
22662 Mircea Namolaru <mircea.namolaru@inria.fr>
22664 PR tree-optimization/58028
22665 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22668 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22670 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22671 not handled by recognizers.
22673 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22675 PR middle-end/60175
22676 * function.c (expand_function_end): Don't emit
22677 clobber_return_register sequence if clobber_after is a BARRIER.
22678 * cfgexpand.c (construct_exit_block): Append instructions before
22679 return_label to prev_bb.
22681 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22683 * config/rs6000/constraints.md: Document reserved use of "wc".
22685 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22688 * ipa.c (function_and_variable_visibility): When dissolving comdat
22689 group, also set all symbols to local.
22691 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22696 2013-12-14 Jan Hubicka <jh@suse.cz>
22697 PR middle-end/58477
22698 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22700 2014-03-02 Jon Beniston <jon@beniston.com>
22706 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22707 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22708 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22709 (simple_return, *simple_return): New patterns
22710 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22711 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22713 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22715 * dwarf2out.c (gen_subprogram_die): Tidy.
22717 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22720 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22721 (*mov_t_msb_neg_negc): ... this new insn.
22723 2014-02-28 Jason Merrill <jason@redhat.com>
22726 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22729 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22732 * dwarf2out.c (decltype_auto_die): New static.
22733 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22734 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22735 (is_cxx_auto): Likewise.
22737 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22739 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22740 we are not using general regs only.
22742 2014-02-28 Richard Biener <rguenther@suse.de>
22745 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22746 previous fix and only allow to remove trivial pre-headers
22747 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22748 (remove_forwarder_block): Properly update the latch of a loop.
22750 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22753 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22754 (cselib_preserved_hash_table): New.
22755 (preserve_constants_and_equivs): Move preserved vals to it.
22756 (cselib_find_slot): Look it up first.
22757 (cselib_init): Initialize it.
22758 (cselib_finish): Release it.
22759 (dump_cselib_table): Dump it.
22761 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22764 * cselib.c (remove_useless_values): Skip to avoid quadratic
22765 behavior if the condition moved from...
22766 (cselib_process_insn): ... here holds.
22768 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22771 * var-tracking.c (vt_initialize): Apply the same condition to
22772 preserve the CFA base value.
22774 2014-02-28 Joey Ye <joey.ye@arm.com>
22777 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22778 if reload in progress or completed.
22780 2014-02-28 Tobias Burnus <burnus@net-b.de>
22782 PR middle-end/60147
22783 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22786 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22788 * doc/tm.texi.in (Condition Code Status): Update documention for
22789 relative locations of cc0-setter and cc0-user.
22791 2014-02-27 Jeff Law <law@redhat.com>
22793 PR rtl-optimization/52714
22794 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22795 into two independent simple sets, if I3 is a jump, ensure the
22796 pattern we place into I3 is a (set (pc) ...).
22798 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22799 Jeff Law <law@redhat.com>
22801 PR rtl-optimization/49847
22802 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22803 are in different blocks.
22804 * doc/tm.texi (Condition Code Status): Update documention for
22805 relative locations of cc0-setter and cc0-user.
22807 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22810 * lra.c (lra_emit_add): Check SUBREG too.
22812 2014-02-27 Andreas Schwab <schwab@suse.de>
22814 * config/m68k/m68k.c (m68k_option_override): Disable
22815 -flive-range-shrinkage for classic m68k.
22816 (m68k_override_options_after_change): Likewise.
22818 2014-02-27 Marek Polacek <polacek@redhat.com>
22820 PR middle-end/59223
22821 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22822 -Wmaybe-uninitialized.
22824 2014-02-27 Alan Modra <amodra@gmail.com>
22827 * reload1.c (emit_input_reload_insns): When reload_override_in,
22828 set old to rl->in_reg when rl->in_reg is a subreg.
22830 2014-02-26 Richard Biener <rguenther@suse.de>
22833 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22835 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22837 * common/config/i386/predicates.md (const1256_operand): Remove.
22838 (const2356_operand): New.
22839 (const_1_to_2_operand): Remove.
22840 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22841 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22842 (*avx512pf_gatherpf<mode>sf): Ditto.
22843 (avx512pf_gatherpf<mode>df): Ditto.
22844 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22845 (*avx512pf_gatherpf<mode>df): Ditto.
22846 (avx512pf_scatterpf<mode>sf): Ditto.
22847 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22848 (*avx512pf_scatterpf<mode>sf): Ditto.
22849 (avx512pf_scatterpf<mode>df): Ditto.
22850 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22851 (*avx512pf_scatterpf<mode>df): Ditto.
22852 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22854 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22856 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22857 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22858 (_mm512_mask_testn_epi64_mask): Move to ...
22859 * config/i386/avx512cdintrin.h: Here.
22860 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22861 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22862 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22863 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22864 TARGET_AVX512F from TARGET_AVX512CD.
22866 2014-02-26 Richard Biener <rguenther@suse.de>
22869 * ipa.c (walk_polymorphic_call_targets): Properly guard
22870 call to inline_update_overall_summary.
22872 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22875 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22876 and latches only if requested. Fix latch if it is removed.
22877 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22878 LOOPS_HAVE_PREHEADERS.
22880 2014-02-25 Andrew Pinski <apinski@cavium.com>
22882 * builtins.c (expand_builtin_thread_pointer): Create a new target
22883 when the target is NULL.
22885 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22887 PR rtl-optimization/60317
22888 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22889 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22890 * lra-assigns.c: Include params.h.
22891 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22892 other reload pseudos considerations.
22894 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22896 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22897 to use canonical form for nor<mode>3.
22899 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22902 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22905 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22907 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22908 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22909 (ix86_handle_option): Handle OPT_mprefetchwt1.
22910 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22911 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22913 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22914 OPTION_MASK_ISA_PREFETCHWT1.
22915 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22916 (PTA_PREFETCHWT1): New.
22917 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22918 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22919 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22920 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22921 (*prefetch_avx512pf_<mode>_: Change into ...
22922 (*prefetch_prefetchwt1_<mode>: This.
22923 * config/i386/i386.opt (mprefetchwt1): New.
22924 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22925 (_mm_prefetch): Handle intent to write.
22926 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22928 2014-02-25 Richard Biener <rguenther@suse.de>
22930 PR middle-end/60291
22931 * emit-rtl.c (mem_attrs_htab): Remove.
22932 (mem_attrs_htab_hash): Likewise.
22933 (mem_attrs_htab_eq): Likewise.
22934 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22935 (init_emit_once): Do not allocate mem_attrs_htab.
22937 2014-02-25 Richard Biener <rguenther@suse.de>
22940 * lto-opts.c (lto_write_options): Output non-explicit conservative
22941 -fwrapv, -fno-trapv and -fno-strict-overflow.
22942 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22943 (run_gcc): And pass them through.
22945 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22947 * sel-sched.c (calculate_new_fences): New parameter ptime.
22948 Calculate it as a maximum over all fence cycles.
22949 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22950 Print the final schedule timing when sched_verbose.
22952 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22954 PR rtl-optimization/60292
22955 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22956 bit fot the fence instruction.
22958 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22960 * calls.h: Fix typo in comment.
22962 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22964 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22965 adjusting offsetable addresses.
22967 2014-02-24 Guozhi Wei <carrot@google.com>
22969 * sparseset.h (sparseset_pop): Fix the wrong index.
22971 2014-02-24 Walter Lee <walt@tilera.com>
22973 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22974 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22976 * common/config/tilegx/tilegx-common.c
22977 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22978 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22979 (LINK_SPEC): Ditto.
22980 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22981 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22982 (tilegx_gimplify_va_arg_expr): Handle big endian.
22983 (tilegx_expand_unaligned_load): Ditto.
22984 (tilegx_expand_unaligned_store): Ditto.
22985 (TARGET_RETURN_IN_MSB): New.
22986 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22987 (TARGET_ENDIAN_DEFAULT): New.
22988 (TARGET_BIG_ENDIAN): Handle big endian.
22989 (BYTES_BIG_ENDIAN): Ditto.
22990 (WORDS_BIG_ENDIAN): Ditto.
22991 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22992 (ENDIAN_SPEC): New.
22993 (EXTRA_SPECS): New.
22994 * config/tilegx/tilegx.md (extv): Handle big endian.
22996 (insn_st<n>): Ditto.
22997 (insn_st<n>_add<bitsuffix>): Ditto.
22998 (insn_stnt<n>): Ditto.
22999 (insn_stnt<n>_add<bitsuffix>):Ditto.
23000 (vec_interleave_highv8qi): Handle big endian.
23001 (vec_interleave_highv8qi_be): New.
23002 (vec_interleave_highv8qi_le): New.
23003 (insn_v1int_h): Handle big endian.
23004 (vec_interleave_lowv8qi): Handle big endian.
23005 (vec_interleave_lowv8qi_be): New.
23006 (vec_interleave_lowv8qi_le): New.
23007 (insn_v1int_l): Handle big endian.
23008 (vec_interleave_highv4hi): Handle big endian.
23009 (vec_interleave_highv4hi_be): New.
23010 (vec_interleave_highv4hi_le): New.
23011 (insn_v2int_h): Handle big endian.
23012 (vec_interleave_lowv4hi): Handle big endian.
23013 (vec_interleave_lowv4hi_be): New.
23014 (vec_interleave_lowv4hi_le): New.
23015 (insn_v2int_l): Handle big endian.
23016 (vec_interleave_highv2si): Handle big endian.
23017 (vec_interleave_highv2si_be): New.
23018 (vec_interleave_highv2si_le): New.
23019 (insn_v4int_h): Handle big endian.
23020 (vec_interleave_lowv2si): Handle big endian.
23021 (vec_interleave_lowv2si_be): New.
23022 (vec_interleave_lowv2si_le): New.
23023 (insn_v4int_l): Handle big endian.
23024 * config/tilegx/tilegx.opt (mbig-endian): New option.
23025 (mlittle-endian): New option.
23026 * doc/install.texi: Document tilegxbe-linux.
23027 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23029 2014-02-24 Martin Jambor <mjambor@suse.cz>
23032 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23033 there are no parameter descriptors.
23035 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23037 PR rtl-optimization/60268
23038 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23039 initialization to ...
23040 (sched_rgn_init): ... here.
23041 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23043 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23045 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23048 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23050 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23053 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23055 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23056 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23058 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23060 * config/microblaze/predicates.md: Add cmp_op predicate.
23061 * config/microblaze/microblaze.md: Add branch_compare instruction
23062 which uses cmp_op predicate and emits cmp insn before branch.
23063 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23064 to microblaze_expand_conditional_branch and consolidate logic.
23065 (microblaze_expand_conditional_branch): emit branch_compare
23066 insn instead of handling cmp op separate from branch insn.
23068 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23070 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23073 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23075 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23076 define_insn with define_expand and new define_insn
23077 *altivec_lve<VI_char>x_internal.
23078 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23079 and new define_insn *altivec_stve<VI_char>x_internal.
23080 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23082 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23084 (altivec_expand_stvex_be): New function.
23086 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23088 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23089 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23090 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23091 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23093 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23096 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23097 instead of emit_move_insn.
23099 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23101 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23102 vspltw with vsldoi.
23103 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23104 gen_altivec_vsumsws.
23106 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23108 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23109 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23110 (altivec_lvxl_<mode>): New define_expand incorporating
23111 -maltivec=be semantics where needed.
23112 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23113 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23114 semantics where needed.
23115 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23116 (altivec_stvx_<mode>): New define_expand incorporating
23117 -maltivec=be semantics where needed.
23118 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23119 VM2 iterator instead of V4SI.
23120 (altivec_stvxl_<mode>): New define_expand incorporating
23121 -maltivec=be semantics where needed.
23122 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23123 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23124 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23125 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23126 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23127 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23128 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23129 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23130 ALTIVEC_BUILTIN_STVXL.
23131 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23132 (altivec_expand_stvx_be): Likewise.
23133 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23134 (altivec_expand_lvx_be): Likewise.
23135 (altivec_expand_stvx_be): Likewise.
23136 (altivec_expand_builtin): Add cases for
23137 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23138 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23139 (altivec_init_builtins): Add definitions for
23140 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23141 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23143 2014-02-21 Catherine Moore <clm@codesourcery.com>
23145 * doc/invoke.texi (mvirt, mno-virt): Document.
23146 * config/mips/mips.opt (mvirt): New option.
23147 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23149 2014-02-21 Richard Biener <rguenther@suse.de>
23151 PR tree-optimization/60276
23152 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23153 (STMT_VINFO_MIN_NEG_DIST): New macro.
23154 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23155 STMT_VINFO_MIN_NEG_DIST.
23156 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23157 made for negative dependence distances still hold.
23159 2014-02-21 Richard Biener <rguenther@suse.de>
23161 PR middle-end/60291
23162 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23163 DECL_INITIAL for globals not in the current function context.
23165 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23167 PR tree-optimization/56490
23168 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23169 * tree-ssa-uninit.c: Include params.h.
23170 (compute_control_dep_chain): Add num_calls argument, return false
23171 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23172 num_calls to recursive call.
23173 (find_predicates): Change dep_chain into normal array,
23174 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23175 variable and adjust compute_control_dep_chain caller.
23176 (find_def_preds): Likewise.
23178 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23180 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23181 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23183 2014-02-21 Nick Clifton <nickc@redhat.com>
23185 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23186 (pushhi1): Likewise.
23187 (popqi1): Add mode to pre_dec.
23188 (pophi1): Likewise.
23190 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23192 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23193 mode for mask of V8SFmode permutation.
23195 2014-02-20 Richard Henderson <rth@redhat.com>
23198 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23199 a new pseudo for OLDVAL.
23201 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23204 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23205 gen_reg_rtx if d->testing_p.
23206 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23207 if d->testing_p and we will certainly return true.
23208 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23211 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23213 * emit-rtl.c (gen_reg_rtx): Assert that
23214 crtl->emit.regno_pointer_align_length is non-zero.
23216 2014-02-20 Richard Henderson <rth@redhat.com>
23219 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23220 on failure the store back into EXPECT.
23222 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23223 Sandra Loosemore <sandra@codesourcery.com>
23225 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23226 * config/nios2/nios2.c (nios2_function_profiler): Add
23227 -fPIC (flag_pic == 2) support.
23228 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23229 (nios2_large_offset_p): New function.
23230 (nios2_unspec_reloc_p): Move up position, update to use
23231 nios2_large_offset_p.
23232 (nios2_unspec_address): Remove function.
23233 (nios2_unspec_offset): New function.
23234 (nios2_large_got_address): New function.
23235 (nios2_got_address): Add large offset support.
23236 (nios2_legitimize_tls_address): Update usage of removed and new
23238 (nios2_symbol_binds_local_p): New function.
23239 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23240 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23241 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23242 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23243 processing for (const (unspec ...)).
23244 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23246 2014-02-20 Richard Biener <rguenther@suse.de>
23248 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23249 doing the substitution.
23250 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23252 2014-02-20 Martin Jambor <mjambor@suse.cz>
23255 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23256 info when checking whether lattices are bottom.
23258 2014-02-20 Richard Biener <rguenther@suse.de>
23260 PR middle-end/60221
23261 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23264 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23267 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23268 parameter specifying the scaling.
23269 (inline_call): Update.
23270 (want_inline_recursively): Guard division by zero.
23271 (recursive_inlining): Update.
23272 * ipa-inline.h (clone_inlined_nodes): Update.
23274 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23277 * config/i386/i386.c (classify_argument): Pass structures of size
23278 64 bytes or less in register.
23280 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23281 Kirill Yukhin <kirill.yukhin@intel.com>
23283 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23284 (_mm_rcp28_round_ss): Ditto.
23285 (_mm_rsqrt28_round_sd): Ditto.
23286 (_mm_rsqrt28_round_ss): Ditto.
23287 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23288 (_mm_rcp14_round_ss): Ditto.
23289 (_mm_rsqrt14_round_sd): Ditto.
23290 (_mm_rsqrt14_round_ss): Ditto.
23291 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23292 the first input operand, get rid of match_dup.
23293 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23295 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23297 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23298 operand as the first input operand, set type attribute.
23299 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23300 Set type attribute.
23301 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23302 operand as the first input operand, set type attribute.
23304 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23306 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23309 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23312 * config/i386/i386.c (construct_container): Remove TFmode check
23313 for X86_64_INTEGER_CLASS.
23315 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23318 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23319 only when -Wpsabi is enabled.
23321 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23324 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23325 passing arrays in registers are the same as for structs, so remove the
23326 special case for them.
23328 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23330 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23331 destination type, extract only the valid bits if the source type is not
23332 integral and has a different mode.
23334 2014-02-19 Richard Biener <rguenther@suse.de>
23337 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23340 2014-02-19 Richard Biener <rguenther@suse.de>
23343 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23344 (ipa_modify_call_arguments): Emit an argument load explicitely and
23345 preserve virtual SSA form there and for the replacement call.
23346 Do not update SSA form nor free dominance info.
23348 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23350 * ipa.c (function_and_variable_visibility): Also clear WEAK
23351 flag when disolving COMDAT_GROUP.
23353 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23355 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23356 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23357 not devirtualizing.
23358 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23359 do more sanity checks.
23360 (detect_type_change): Return true when giving up early.
23361 (compute_complex_assign_jump_func): Fix type parameter of
23362 ipa_set_ancestor_jf.
23363 (compute_complex_ancestor_jump_func): Likewise.
23364 (update_jump_functions_after_inlining): Fix updating of
23366 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23368 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23370 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23371 inline clones when edge disappears.
23373 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23376 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23377 Split 64-bit moves into 2 patterns. Do not allow the use of
23378 direct move for TDmode in little endian, since the decimal value
23379 has little endian bytes within a word, but the 64-bit pieces are
23380 ordered in a big endian fashion, and normal subreg's of TDmode are
23382 (mov<mode>_64bit_dm): Likewise.
23383 (movtd_64bit_nodm): Likewise.
23385 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23387 PR tree-optimization/60174
23388 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23389 statement of an SSA_NAME that occurs in an abnormal PHI node.
23391 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23394 * final.c (SEEN_BB): Remove.
23395 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23396 (final_scan_insn): Don't force_source_line on second
23397 NOTE_INSN_BASIC_BLOCK.
23399 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23402 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23403 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23404 (type_natural_mode): Warn ABI change when %zmm register is not
23405 available for AVX512F vector value passing.
23407 2014-02-18 Kai Tietz <ktietz@redhat.com>
23410 * config/i386/i386.c (ix86_expand_prologue): Use value in
23411 rax register as displacement when restoring %r10 or %rax.
23412 Fix wrong offset when restoring both registers.
23414 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23416 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23417 assertion with conditional return.
23419 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23420 Uros Bizjak <ubizjak@gmail.com>
23423 * config/i386/driver-i386.c (host_detect_local_cpu): If
23424 YMM state is not saved by the OS, also clear has_f16c. Move
23425 CPUID 0x80000001 handling before YMM state saving checking.
23427 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23429 PR rtl-optimization/58960
23430 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23431 factored out from ...
23432 (sched_init): ... here.
23433 (free_global_sched_pressure_data): New, factored out from ...
23434 (sched_finish): ... here.
23435 * sched-int.h (free_global_sched_pressure_data): Declare.
23436 * sched-rgn.c (nr_regions_initial): New static global.
23437 (haifa_find_rgns): Initialize it.
23438 (schedule_region): Disable sched-pressure for the newly
23441 2014-02-17 Richard Biener <rguenther@suse.de>
23443 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23444 release SSA defs of pattern stmts.
23446 2014-02-17 Richard Biener <rguenther@suse.de>
23448 * tree-inline.c (expand_call_inline): Release the virtual
23449 operand defined by the call we are about to inline.
23451 2014-02-17 Richard Biener <rguenther@suse.de>
23453 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23455 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23456 Ilya Tocar <ilya.tocar@intel.com>
23458 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23459 arguments order in builtin.
23460 (_mm512_permutexvar_epi64): Ditto.
23461 (_mm512_mask_permutexvar_epi64): Ditto
23462 (_mm512_maskz_permutexvar_epi32): Ditto
23463 (_mm512_permutexvar_epi32): Ditto
23464 (_mm512_mask_permutexvar_epi32): Ditto
23466 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23468 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23469 (p8_vmrgow): Likewise.
23471 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23473 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23476 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23479 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23480 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23481 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23482 using direct move instructions on ISA 2.07. Also adjust
23483 instruction length for 64-bit.
23484 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23485 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23487 2014-02-15 Alan Modra <amodra@gmail.com>
23491 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23492 find_replacement on parts of insn rtl that might be reloaded.
23494 2014-02-15 Richard Biener <rguenther@suse.de>
23496 PR tree-optimization/60183
23497 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23498 (tree_ssa_phiprop): Calculate and free post-dominators.
23500 2014-02-14 Jeff Law <law@redhat.com>
23502 PR rtl-optimization/60131
23503 * ree.c (get_extended_src_reg): New function.
23504 (combine_reaching_defs): Use it rather than assuming location of REG.
23505 (find_and_remove_re): Verify first operand of extension is
23506 a REG before adding the insns to the copy list.
23508 2014-02-14 Roland McGrath <mcgrathr@google.com>
23510 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23511 * configure: Regenerated.
23512 * config.in: Regenerated.
23513 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23514 instead of ASM_SHORT.
23516 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23517 Richard Earnshaw <rearnsha@arm.com>
23519 PR rtl-optimization/59535
23520 * lra-constraints.c (process_alt_operands): Encourage alternative
23521 when unassigned pseudo class is superset of the alternative class.
23522 (inherit_reload_reg): Don't inherit when optimizing for code size.
23523 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23524 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23525 modes not less than 4 for Thumb1.
23527 2014-02-14 Kyle McMartin <kyle@redhat.com>
23530 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23532 2014-02-14 Richard Biener <rguenther@suse.de>
23534 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23535 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23536 Do not strip INDIRECT_REFs.
23538 2014-02-14 Richard Biener <rguenther@suse.de>
23541 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23542 DECL_FUNCTION_SPECIFIC_TARGET.
23543 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23544 * tree-streamer-out.c (pack_ts_target_option): Remove.
23545 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23546 (write_ts_function_decl_tree_pointers): Do not stream
23547 DECL_FUNCTION_SPECIFIC_TARGET.
23548 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23549 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23550 (lto_input_ts_function_decl_tree_pointers): Do not stream
23551 DECL_FUNCTION_SPECIFIC_TARGET.
23553 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23555 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23556 (get_initial_def_for_induction, vectorizable_induction): Ignore
23557 debug stmts when looking for exit_phi.
23558 (vectorizable_live_operation): Fix up condition.
23560 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23562 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23563 nreverse() because it changes the content of original tree list.
23565 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23567 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23568 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23570 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23572 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23573 GNU coding standards.
23575 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23578 * dwarf2out.c (gen_subprogram_die): Don't call
23579 add_calling_convention_attribute if subr_die is old_die.
23581 2014-02-13 Sharad Singhai <singhai@google.com>
23583 * doc/optinfo.texi: Fix order of nodes.
23585 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23587 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23588 operands[2], not operands[3].
23590 2014-02-13 Richard Biener <rguenther@suse.de>
23593 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23594 mention the possibility of an in-tree build.
23595 (CLooG): Update recommended version to 0.18.1, mention the
23596 possibility of an in-tree build and clarify that the ISL
23597 bundled with CLooG does not work.
23599 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23602 * expr.c (compress_float_constant): If x is a hard register,
23603 extend into a pseudo and then move to x.
23605 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23607 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23608 caused by bad second argument to warning_at() with -mhotpatch and
23609 nested functions (e.g. with gfortran).
23611 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23613 * opts.c (option_name): Remove "enabled by default" rider.
23615 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23617 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23619 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23620 Uros Bizjak <ubizjak@gmail.com>
23623 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23624 * configure: Regenerated.
23626 2014-02-12 Richard Biener <rguenther@suse.de>
23628 * vec.c (vec_prefix::calculate_allocation): Move as
23629 inline variant to vec.h.
23630 (vec_prefix::calculate_allocation_1): New out-of-line version.
23631 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23632 (vec_prefix::m_has_auto_buf): Rename to ...
23633 (vec_prefix::m_using_auto_storage): ... this.
23634 (vec_prefix::calculate_allocation): Inline the easy cases
23635 and dispatch to calculate_allocation_1 which doesn't need the
23637 (va_heap::reserve): Use gcc_checking_assert.
23638 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23639 m_using_auto_storage.
23640 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23642 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23643 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23644 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23646 2014-02-12 Richard Biener <rguenther@suse.de>
23648 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23649 when we found a dependence.
23651 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23653 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23655 (maybe_fold_stmt): ... into this new function.
23656 * omp-low.c (lower_omp): Update comment.
23658 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23661 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23664 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23666 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23667 identifiers in comments.
23668 (cortexa53_extra_costs): Likewise.
23669 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23670 (cortexa7_extra_costs): Likewise.
23671 (cortexa12_extra_costs): Likewise.
23672 (cortexa15_extra_costs): Likewise.
23673 (v7m_extra_costs): Likewise.
23675 2014-02-12 Richard Biener <rguenther@suse.de>
23677 PR middle-end/60092
23678 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23679 of posix_memalign being successful.
23680 (lower_stmt): Restrict lowering of posix_memalign to when
23681 -ftree-bit-ccp is enabled.
23683 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23685 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23687 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23689 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23691 PR rtl-optimization/60116
23692 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23693 other_insn once the combination has been validated.
23695 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23698 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23700 * ipa-devirt.c: Include demangle.h
23701 (odr_violation_reported): New static variable.
23702 (add_type_duplicate): Update odr_violations.
23703 (maybe_record_node): Add completep parameter; update it.
23704 (record_target_from_binfo): Add COMPLETEP parameter;
23705 update it as needed.
23706 (possible_polymorphic_call_targets_1): Likewise.
23707 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23708 rename FINAL to COMPLETE.
23709 (record_targets_from_bases): Sanity check we found the binfo;
23710 fix COMPLETEP updating.
23711 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23712 parameter, fix computing of COMPLETEP.
23713 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23714 at LTO time do demangling.
23715 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23716 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23718 (gimple_get_virt_method_for_binfo): Likewise.
23719 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23720 gimple_get_virt_method_for_vtable): Update prototypes.
23722 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23725 * genautomata.c (add_presence_absence): Fix typo with
23726 {final_}presence_list.
23728 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23731 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23732 for VSX/Altivec vectors that land in GPR registers.
23734 2014-02-11 Richard Henderson <rth@redhat.com>
23735 Jakub Jelinek <jakub@redhat.com>
23738 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23739 around drhs if type conversion to lacc->type is not useless.
23741 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23743 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23745 (cortex-a57.cortex-a53): Likewise.
23746 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23748 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23750 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23753 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23755 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23756 add_options_for_arm_vfp3.
23758 2014-02-11 Jeff Law <law@redhat.com>
23760 PR middle-end/54041
23761 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23762 object with an undesirable mode.
23764 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23767 * config/i386/sol2-9.h: New file.
23768 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23769 *-*-solaris2.9*): Use it.
23771 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23773 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23774 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23776 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23778 * config/microblaze/microblaze.c: Extend mcpu version format
23780 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23782 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23784 2014-02-10 Richard Henderson <rth@redhat.com>
23787 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23788 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23789 ms-abi vs -mno-accumulate-outgoing-args.
23790 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23791 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23794 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23796 PR middle-end/60080
23797 * cfgexpand.c (expand_asm_operands): Attach source location to
23798 ASM_INPUT rtx objects.
23799 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23801 2014-02-10 Nick Clifton <nickc@redhat.com>
23803 * config/mn10300/mn10300.c (popcount): New function.
23804 (mn10300_expand_prologue): Include saved registers in stack usage
23807 2014-02-10 Jeff Law <law@redhat.com>
23809 PR middle-end/52306
23810 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23811 when changing the SET_DEST of a prior insn to avoid an input reload.
23813 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23815 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23816 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23817 -mcall-openbsd, or -mcall-linux.
23818 (CC1_ENDIAN_BIG_SPEC): Remove.
23819 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23820 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23821 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23822 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23823 and %cc1_endian_default.
23824 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23826 2014-02-10 Richard Biener <rguenther@suse.de>
23828 PR tree-optimization/60115
23829 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23830 MEM_REF handling. Properly verify that the accesses are not
23831 out of the objects bound.
23833 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23835 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23838 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23840 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23841 proper constants and fix formatting.
23842 (possible_polymorphic_call_targets): Fix formatting.
23844 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23845 Ilya Tocar <ilya.tocar@intel.com>
23847 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23848 (_mm512_loadu_epi32): Renamed into...
23849 (_mm512_loadu_si512): This.
23850 (_mm512_storeu_epi32): Renamed into...
23851 (_mm512_storeu_si512): This.
23852 (_mm512_maskz_ceil_ps): Removed.
23853 (_mm512_maskz_ceil_pd): Ditto.
23854 (_mm512_maskz_floor_ps): Ditto.
23855 (_mm512_maskz_floor_pd): Ditto.
23856 (_mm512_floor_round_ps): Ditto.
23857 (_mm512_floor_round_pd): Ditto.
23858 (_mm512_ceil_round_ps): Ditto.
23859 (_mm512_ceil_round_pd): Ditto.
23860 (_mm512_mask_floor_round_ps): Ditto.
23861 (_mm512_mask_floor_round_pd): Ditto.
23862 (_mm512_mask_ceil_round_ps): Ditto.
23863 (_mm512_mask_ceil_round_pd): Ditto.
23864 (_mm512_maskz_floor_round_ps): Ditto.
23865 (_mm512_maskz_floor_round_pd): Ditto.
23866 (_mm512_maskz_ceil_round_ps): Ditto.
23867 (_mm512_maskz_ceil_round_pd): Ditto.
23868 (_mm512_expand_pd): Ditto.
23869 (_mm512_expand_ps): Ditto.
23870 * config/i386/i386.c (ix86_builtins): Remove
23871 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23872 (bdesc_args): Ditto.
23873 * config/i386/predicates.md (const1256_operand): New.
23874 (const_1_to_2_operand): Ditto.
23875 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23876 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23877 (*avx512pf_gatherpf<mode>sf): Ditto.
23878 (avx512pf_gatherpf<mode>df): Ditto.
23879 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23880 (*avx512pf_gatherpf<mode>df): Ditto.
23881 (avx512pf_scatterpf<mode>sf): Ditto.
23882 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23883 (*avx512pf_scatterpf<mode>sf): Ditto.
23884 (avx512pf_scatterpf<mode>df): Ditto.
23885 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23886 (*avx512pf_scatterpf<mode>df): Ditto.
23887 (avx512f_expand<mode>): Removed.
23888 (<shift_insn><mode>3<mask_name>): Change predicate type.
23890 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23892 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23893 not at the end of datarefs vector use ordered_remove to avoid
23894 reordering datarefs vector.
23897 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23898 mark local addressable non-static vars as GOVD_PRIVATE
23899 instead of GOVD_LOCAL.
23900 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23901 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23904 PR middle-end/60092
23905 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23906 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23907 assume_aligned or alloc_align attributes.
23908 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23909 arguments. Handle also assume_aligned and alloc_align attributes.
23910 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23911 calls to functions with assume_aligned or alloc_align attributes.
23912 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23914 2014-02-08 Terry Guo <terry.guo@arm.com>
23916 * doc/invoke.texi: Document ARM -march=armv7e-m.
23918 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23920 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23921 flag on __cilkrts_rethrow builtin.
23924 * ipa-cp.c (determine_versionability): Fail at -O0
23925 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23926 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23929 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23932 * tree-inline.c (copy_forbidden): Fail for
23933 __attribute__((optimize (0))) functions.
23935 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23937 * varpool.c: Include pointer-set.h.
23938 (varpool_remove_unreferenced_decls): Variables in other partitions
23939 will not be output; be however careful to not lose information
23940 about partitioning.
23942 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23944 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23945 lookup in the vtable constructor.
23947 2014-02-07 Jeff Law <law@redhat.com>
23950 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23951 define_insn_and_split.
23953 * ipa-inline.c (inline_small_functions): Fix typos.
23955 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23957 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23958 (s390_can_use_return_insn): Declare.
23959 * config/s390/s390.h (EPILOGUE_USES): Define.
23960 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23962 (s390_chunkify_start): Handle return JUMP_LABELs.
23963 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23964 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23965 (s390_can_use_return_insn): New functions.
23966 (s390_fix_long_loop_prediction): Handle conditional returns.
23967 (TARGET_SET_UP_BY_PROLOGUE): Define.
23968 * config/s390/s390.md (ANY_RETURN): New code iterator.
23969 (*creturn, *csimple_return, return, simple_return): New patterns.
23971 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23973 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23974 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23975 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23976 REG_CFA_RESTORE list when deciding not to restore a register.
23978 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23980 * config/s390/s390.c: Include tree-pass.h and context.h.
23981 (s390_early_mach): New function, split out from...
23982 (s390_emit_prologue): ...here.
23983 (pass_data_s390_early_mach): New pass structure.
23984 (pass_s390_early_mach): New class.
23985 (s390_option_override): Create and register early_mach pass.
23986 Move to end of file.
23988 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23990 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23991 to match for the exit block.
23993 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23995 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23996 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23997 Reject misaligned operands.
23999 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24001 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24003 2014-02-07 Richard Biener <rguenther@suse.de>
24005 PR middle-end/60092
24006 * gimple-low.c (lower_builtin_posix_memalign): New function.
24007 (lower_stmt): Call it to lower posix_memalign in a way
24008 to make alignment info accessible.
24010 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24013 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24014 __builtin_setjmp_receiver.
24016 2014-02-07 Richard Biener <rguenther@suse.de>
24018 PR middle-end/60092
24019 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24020 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24021 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24022 Handle BUILT_IN_POSIX_MEMALIGN.
24023 (find_func_clobbers): Likewise.
24024 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24025 (call_may_clobber_ref_p_1): Likewise.
24027 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24030 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24033 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24036 * lto-cgraph.c (lto_output_node): Use
24037 symtab_get_symbol_partitioning_class.
24038 (lto_output_varpool_node): likewise.
24039 (symtab_get_symbol_partitioning_class): Move here from
24040 lto/lto-partition.c
24041 * cgraph.h (symbol_partitioning_class): Likewise.
24042 (symtab_get_symbol_partitioning_class): Declare.
24044 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24046 * ggc.h (ggc_internal_cleared_alloc): New macro.
24047 * vec.h (vec_safe_copy): Handle memory stats.
24048 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24049 * target-globals.c (save_target_globals): Likewise.
24051 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24054 * expr.c (emit_move_resolve_push): Export; be bit more selective
24055 on when to clear alias set.
24056 * expr.h (emit_move_resolve_push): Declare.
24057 * function.h (struct function): Add tail_call_marked.
24058 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24059 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24060 * config/i386/i386.md (TImode move expander): De not call
24062 (FP push expanders): Preserve memory attributes.
24063 * config/i386/sse.md (push<mode>1): Remove.
24064 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24065 (ix86_expand_push): Remove.
24066 * config/i386/mmx.md (push<mode>1): Remove.
24068 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24070 PR rtl-optimization/60030
24071 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24072 lopart with paradoxical subreg before shifting it up by hprec.
24074 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24076 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24077 Remove extra newline at end of file.
24078 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24079 (arm_issue_rate): Handle cortexa57.
24080 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24081 (cortex-a57.cortex-a53): Likewise.
24083 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24086 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24087 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24089 (arm_expand_prologue): Adjust all callers.
24090 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24091 info, registers also at the lowest numbered registers side. Use
24092 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24096 * var-tracking.c (adjust_mems): Before adding a SET to
24097 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24099 2014-02-06 Alan Modra <amodra@gmail.com>
24102 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24103 change SDmode to DDmode when lra_in_progress.
24105 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24107 PR middle-end/59150
24108 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24109 free_data_ref on the dr first, and before goto again also set dr
24110 to the next dr. For simd_lane_access, free old datarefs[i] before
24111 overwriting it. For get_vectype_for_scalar_type failure, don't
24112 free_data_ref if simd_lane_access.
24114 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24117 * tree.h (opts_for_fn): New inline function.
24118 (opt_for_fn): Define.
24119 * config/i386/i386.c (ix86_function_regparm): Use
24120 opt_for_fn (decl, optimize) instead of optimize.
24122 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24124 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24125 for SYMBOL_REF in large memory model.
24127 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24129 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24130 and crypto support.
24131 (cortex-a57): Likewise.
24132 (cortex-a57.cortex-a53): Likewise.
24134 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24135 Kugan Vivekanandarajah <kuganv@linaro.org>
24137 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24139 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24141 2014-02-06 Richard Biener <rguenther@suse.de>
24143 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24144 set_loop_copy and initialize_original_copy_tables.
24146 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24148 * config/aarch64/aarch64-simd.md
24149 (aarch64_ashr_simddi): Change QI to SI.
24151 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24152 Jakub Jelinek <jakub@redhat.com>
24154 PR middle-end/60013
24155 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24158 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24160 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24161 CODE_FOR_altivec_vpku[hw]um to
24162 CODE_FOR_altivec_vpku[hw]um_direct.
24163 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24164 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24165 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24166 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24168 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24170 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24171 generation for -maltivec=be.
24172 (altivec_vsumsws): Simplify redundant test.
24174 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24176 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24177 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24178 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24179 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24180 gen_altivec_vpkuwum.
24181 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24183 (altivec_vpks<VI_char>ss): Likewise.
24184 (altivec_vpks<VI_char>us): Likewise.
24185 (altivec_vpku<VI_char>us): Likewise.
24186 (altivec_vpku<VI_char>um): Likewise.
24187 (altivec_vpku<VI_char>um_direct): New (copy of
24188 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24190 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24191 target is little endian and -maltivec=be is not specified.
24192 (*altivec_vupkhs<VU_char>_direct): New (copy of
24193 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24194 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24195 target is little endian and -maltivec=be is not specified.
24196 (*altivec_vupkls<VU_char>_direct): New (copy of
24197 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24198 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24199 little endian and -maltivec=be is not specified.
24200 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24201 little endian and -maltivec=be is not specified.
24203 2014-02-05 Richard Henderson <rth@redhat.com>
24206 * combine-stack-adj.c: Revert r206943.
24207 * sched-int.h (struct deps_desc): Add last_args_size.
24208 * sched-deps.c (init_deps): Initialize it.
24209 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24210 contain REG_ARGS_SIZE notes.
24212 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24214 * lto-cgraph.c (asm_nodes_output): Make global.
24215 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24216 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24217 (driver_handle_option): Handle OPT_fwpa.
24219 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24222 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24223 a comment typo and formatting issue. If odr_hash hasn't been
24224 created, return vNULL and set *completep to false.
24226 PR middle-end/57499
24227 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24228 bb with no successors.
24230 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24233 * doc/invoke.texi (-march): Clarify documentation for ARM.
24234 (-mtune): Likewise.
24237 2014-02-05 Richard Biener <rguenther@suse.de>
24239 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24240 when not vectorizing because of too many alias checks.
24241 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24242 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24244 2014-02-05 Nick Clifton <nickc@redhat.com>
24246 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24247 accept extended registers in any mode when compiling for the MN10300.
24249 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24251 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24252 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24253 sanitization attributes.
24254 (can_inline_edge_p): Likewise.
24255 (sanitize_attrs_match_for_inline_p): New function.
24257 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24259 * ipa-prop.c (detect_type_change): Shor circuit testing of
24260 type changes on THIS pointer.
24262 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24265 * config/pa/pa.c (legitimize_tls_address): Return original address
24266 if not passed a SYMBOL_REF rtx.
24267 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24269 (pa_emit_move_sequence): Simplify TLS source operands.
24270 (pa_legitimate_constant_p): Reject all TLS constants.
24271 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24272 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24274 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24276 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24277 groups when we know they are controlled by LTO.
24278 * varasm.c (default_binds_local_p_1): If object is in other partition,
24279 it will be resolved locally.
24281 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24283 * config/host-linux.c (linux_gt_pch_use_address): Don't
24284 use SSIZE_MAX because it is not always defined.
24286 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24289 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24290 threshold for pseudo splitting.
24291 (update_ebb_live_info): Process call argument hard registers and
24292 hard registers from insn definition too.
24293 (max_small_class_regs_num): New constant.
24294 (inherit_in_ebb): Update live hard regs through EBBs. Update
24295 reloads_num only for small register classes. Don't split for
24298 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24301 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24304 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24306 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24307 visibility is safe.
24309 2014-02-04 Marek Polacek <polacek@redhat.com>
24311 * gdbinit.in (pel): Define.
24313 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24315 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24318 2014-02-04 Richard Biener <rguenther@suse.de>
24321 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24322 in function context local.
24323 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24324 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24325 similar to LTO_imported_decl_ref.
24327 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24329 PR tree-optimization/60002
24330 * cgraphclones.c (build_function_decl_skip_args): Clear
24331 DECL_LANG_SPECIFIC.
24333 PR tree-optimization/60023
24334 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24335 false to gsi_replace.
24336 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24337 has been in some EH region and vec_stmt could throw, add
24338 vec_stmt into the same EH region.
24339 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24340 has no lhs, ignore it.
24341 * internal-fn.c (expand_MASK_LOAD): Likewise.
24344 * tree-inline.c (copy_forbidden): Fail for
24345 __attribute__((optimize (0))) functions.
24348 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24349 is set, copy one less argument.
24350 (expand_simd_clones): Don't subtract clone_info->inbranch
24351 from simd_clone_struct_alloc argument.
24353 PR rtl-optimization/57915
24354 * recog.c (simplify_while_replacing): If all unary/binary/relational
24355 operation arguments are constant, attempt to simplify those.
24357 PR middle-end/59261
24358 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24359 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24361 2014-02-04 Richard Biener <rguenther@suse.de>
24363 PR tree-optimization/60012
24364 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24365 TBAA disambiguation to all DDRs.
24367 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24370 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24371 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24373 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24376 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24378 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24380 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24381 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24383 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24386 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24387 to figure out targets of polymorphic calls with known decl.
24388 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24389 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24390 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24391 (get_polymorphic_call_info): ... here.
24392 (get_polymorphic_call_info_from_invariant): New function.
24394 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24396 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24397 lookup via vtable pointer; check for type consistency
24398 and turn inconsitent facts into UNREACHABLE.
24399 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24400 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24401 type inconsistent querries; return UNREACHABLE instead.
24403 2014-02-03 Richard Henderson <rth@twiddle.net>
24406 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24407 already processed this node.
24408 (normalize_one_pred_1): Pass along mark_set.
24409 (normalize_one_pred): Create and destroy a pointer_set_t.
24410 (normalize_one_pred_chain): Likewise.
24412 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24414 PR gcov-profile/58602
24415 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24417 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24420 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24421 -fno-devirtualize; try to devirtualize by the knowledge of
24422 virtual table pointer given by aggregate propagation.
24423 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24424 (ipa_print_node_jump_functions): Dump also offset that
24425 is relevant for polymorphic calls.
24426 (determine_known_aggregate_parts): Add arg_type parameter; use it
24427 instead of determining the type from pointer type.
24428 (ipa_compute_jump_functions_for_edge): Update call of
24429 determine_known_aggregate_parts.
24430 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24431 (gimple_get_virt_method_for_binfo): ... here; simplify using
24432 vtable_pointer_value_to_vtable.
24433 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24434 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24435 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24436 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24438 (vtable_pointer_value_to_binfo): ... here.
24439 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24441 2014-02-03 Teresa Johnson <tejohnson@google.com>
24443 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24444 redef of outer loop index variable.
24446 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24450 * doc/extend.texi (Function Attributes): Typo.
24452 2014-02-03 Cong Hou <congh@google.com>
24454 PR tree-optimization/60000
24455 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24456 if the vectorized statement is a store. A store statement can only
24457 appear at the end of pattern statements.
24459 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24461 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24462 (ix86_option_override_internal): Default long double to 64-bit for
24463 32-bit Bionic and to 128-bit for 64-bit Bionic.
24465 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24466 TARGET_LONG_DOUBLE_128 is true.
24467 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24469 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24470 (mlong-double-64): Negate -mlong-double-128.
24471 (mlong-double-128): New option.
24473 * config/i386/i386-c.c (ix86_target_macros): Define
24474 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24476 * doc/invoke.texi: Document -mlong-double-128.
24478 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24480 PR rtl-optimization/60024
24481 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24483 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24485 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24487 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24489 PR rtl-optimization/57662
24490 * sel-sched.c (code_motion_path_driver): Do not mark already not
24491 existing blocks in the visiting bitmap.
24493 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24495 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24496 on the insn being emitted.
24498 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24499 Will Deacon <will.deacon@arm.com>
24501 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24503 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24505 * config/arm/arm-tables.opt: Regenerate.
24507 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24509 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24510 for vector types other than V16QImode.
24511 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24512 define_expand, and call altivec_expand_vec_perm_le when producing
24513 code with little endian element order.
24514 (*altivec_vperm_<mode>_internal): New insn having previous
24515 behavior of altivec_vperm_<mode>.
24516 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24517 altivec_expand_vec_perm_le when producing code with little endian
24519 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24520 behavior of altivec_vperm_<mode>_uns.
24522 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24524 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24525 (altivec_vsumsws): Add handling for -maltivec=be with a little
24527 (altivec_vsumsws_direct): New.
24528 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24529 gen_altivec_vsumsws.
24531 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24533 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24534 vtable_pointer_value_to_binfo): New functions.
24535 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24536 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24538 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24540 * config/nios2/nios2.md (load_got_register): Initialize GOT
24541 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24542 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24544 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24546 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24547 preserverd by passthrough, do not propagate the type.
24549 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24551 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24552 (mips_atomic_assign_expand_fenv): New function.
24553 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24555 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24557 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24558 (__builtin_mips_set_fcsr): Likewise.
24559 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24560 MIPS_USI_FTYPE_VOID.
24561 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24562 (mips16_expand_set_fcsr): Likewise.
24563 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24564 (mips16_set_fcsr_stub): Likewise.
24565 (mips16_get_fcsr_one_only_stub): New class.
24566 (mips16_set_fcsr_one_only_stub): Likewise.
24567 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24568 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24569 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24570 (hard_float): New availability predicate.
24571 (mips_builtins): Add get_fcsr and set_fcsr.
24572 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24573 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24574 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24575 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24576 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24579 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24581 * config/mips/mips.c (mips_one_only_stub): New class.
24582 (mips_need_mips16_rdhwr_p): Replace with...
24583 (mips16_rdhwr_stub): ...this new variable.
24584 (mips16_stub_call_address): New function.
24585 (mips16_rdhwr_one_only_stub): New class.
24586 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24587 (mips_output_mips16_rdhwr): Delete.
24588 (mips_finish_stub): New function.
24589 (mips_code_end): Use it to handle rdhwr stubs.
24591 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24594 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24595 when calculating size of integer atomic types.
24597 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24599 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24601 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24603 PR tree-optimization/60003
24604 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24605 * profile.c (branch_prob): Use gimple_call_builtin_p
24606 to check for BUILT_IN_SETJMP_RECEIVER.
24607 * tree-inline.c (copy_bb): Call notice_special_calls.
24609 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24612 * lra-constraints.c (process_alt_operands): Update reload_sum only
24615 2014-01-31 Richard Henderson <rth@redhat.com>
24617 PR middle-end/60004
24618 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24619 until after else_eh is processed.
24621 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24623 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24624 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24625 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24626 in smmintrin.h, remove them.
24627 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24628 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24629 * config/i386/i386.md (ROUND_SAE): Fix value.
24630 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24631 (const48_operand): New.
24632 * config/i386/subst.md (round), (round_expand): Use
24633 const_4_or_8_to_11_operand.
24634 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24636 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24638 * config/i386/constraints.md (Yk): Swap meaning with k.
24639 * config/i386/i386.md (movhi_internal): Change Yk to k.
24640 (movqi_internal): Ditto.
24641 (*k<logic><mode>): Ditto.
24644 (kandn<mode>): Ditto.
24645 (*<code>hi_1): Ditto.
24646 (*<code>qi_1): Ditto.
24647 (kxnor<mode>): Ditto.
24648 (kortestzhi): Ditto.
24649 (kortestchi): Ditto.
24651 (*one_cmplhi2_1): Ditto.
24652 (*one_cmplqi2_1): Ditto.
24653 * config/i386/sse.md (): Change k to Yk.
24654 (avx512f_load<mode>_mask): Ditto.
24655 (avx512f_blendm<mode>): Ditto.
24656 (avx512f_store<mode>_mask): Ditto.
24657 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24658 (avx512f_storedqu<mode>_mask): Ditto.
24659 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24661 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24662 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24663 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24664 (avx512f_maskcmp<mode>3): Ditto.
24665 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24666 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24667 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24668 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24669 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24670 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24671 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24672 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24673 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24674 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24675 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24676 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24677 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24678 (vec_extract_lo_<mode>_maskm): Ditto.
24679 (vec_extract_hi_<mode>_maskm): Ditto.
24680 (avx512f_vternlog<mode>_mask): Ditto.
24681 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24682 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24683 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24684 (avx512f_<code>v8div16qi2_mask): Ditto.
24685 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24686 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24687 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24688 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24689 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24690 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24691 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24692 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24693 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24694 (avx512cd_maskb_vec_dupv8di): Ditto.
24695 (avx512cd_maskw_vec_dupv16si): Ditto.
24696 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24697 (avx512f_vpermi2var<mode>3_mask): Ditto.
24698 (avx512f_vpermi2var<mode>3_mask): Ditto.
24699 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24700 (*avx512f_gathersi<mode>): Ditto.
24701 (*avx512f_gathersi<mode>_2): Ditto.
24702 (*avx512f_gatherdi<mode>): Ditto.
24703 (*avx512f_gatherdi<mode>_2): Ditto.
24704 (*avx512f_scattersi<mode>): Ditto.
24705 (*avx512f_scatterdi<mode>): Ditto.
24706 (avx512f_compress<mode>_mask): Ditto.
24707 (avx512f_compressstore<mode>_mask): Ditto.
24708 (avx512f_expand<mode>_mask): Ditto.
24709 * config/i386/subst.md (mask): Change k to Yk.
24710 (mask_scalar_merge): Ditto.
24713 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24715 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24717 2014-01-31 Richard Biener <rguenther@suse.de>
24719 PR middle-end/59990
24720 * builtins.c (fold_builtin_memory_op): Make sure to not
24721 use a floating-point mode or a boolean or enumeral type for
24722 the copy operation.
24724 2014-01-30 DJ Delorie <dj@redhat.com>
24726 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24727 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24728 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24729 whenever main() has an epilogue.
24731 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24733 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24734 unused variable "field".
24735 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24736 (vsx_mergeh_<mode>): Likewise.
24737 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24738 (altivec_vmrghh): Likewise.
24739 (altivec_vmrghw): Likewise.
24740 (altivec_vmrglb): Likewise.
24741 (altivec_vmrglh): Likewise.
24742 (altivec_vmrglw): Likewise.
24743 (altivec_vspltb): Add missing uses.
24744 (altivec_vsplth): Likewise.
24745 (altivec_vspltw): Likewise.
24746 (altivec_vspltsf): Likewise.
24748 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24751 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24752 frame related instructions.
24754 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24756 PR rtl-optimization/59959
24757 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24758 any reload of register whose subreg is invalid.
24760 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24762 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24763 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24764 Add missing return type - void.
24766 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24768 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24769 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24770 remove element index adjustment for endian (now handled in vsx.md
24772 (altivec_expand_vec_perm_const): Use
24773 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24774 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24775 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24776 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24777 define_expand and a new define_insn *altivec_vspltb_internal;
24778 adjust for -maltivec=be on a little endian target.
24779 (altivec_vspltb_direct): New.
24780 (altivec_vsplth): Divide into a define_expand and a new
24781 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24782 little endian target.
24783 (altivec_vsplth_direct): New.
24784 (altivec_vspltw): Divide into a define_expand and a new
24785 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24786 little endian target.
24787 (altivec_vspltw_direct): New.
24788 (altivec_vspltsf): Divide into a define_expand and a new
24789 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24790 a little endian target.
24792 2014-01-30 Richard Biener <rguenther@suse.de>
24794 PR tree-optimization/59993
24795 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24796 can propagate form the earlier stmt and avoid the transform
24797 when the intermediate result is needed.
24799 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24801 * README.Portability: Fix typo.
24803 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24805 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24806 comparison_operator with ordered_comparison_operator.
24808 2014-01-30 Nick Clifton <nickc@redhat.com>
24810 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24811 Rename to mn10300_store_multiple_regs.
24812 * config/mn10300/mn10300.c: Likewise.
24813 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24814 store_multiple_regs.
24815 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24816 Call mn10300_store_multiple_regs.
24818 2014-01-30 Nick Clifton <nickc@redhat.com>
24819 DJ Delorie <dj@redhat.com>
24821 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24822 %fp 2 to keep registers after it properly word-aligned.
24823 (rl78_alloc_physical_registers_umul): Handle the case where both
24824 input operands are the same.
24826 2014-01-30 Richard Biener <rguenther@suse.de>
24828 PR tree-optimization/59903
24829 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24832 2014-01-30 Jason Merrill <jason@redhat.com>
24835 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24838 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24840 2014-01-30 Richard Biener <rguenther@suse.de>
24842 PR tree-optimization/59951
24843 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24845 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24848 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24849 SFmode to DFmode case.
24851 2014-01-29 DJ Delorie <dj@redhat.com>
24853 * config/msp430/msp430.opt (-minrt): New.
24854 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24856 (ENDFILE_SPEC): Likewise.
24858 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24860 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24861 (estimate_function_body_sizes): Use it.
24863 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24866 * dwarf2out.c (is_cxx_auto): New.
24867 (is_base_type): Use it.
24868 (gen_type_die_with_usage): Likewise.
24870 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24872 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24873 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24874 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24875 -maltivec=be with LE targets.
24876 (vsx_mergeh_<mode>): Likewise.
24877 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24878 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24879 (altivec_vmrghb): Replace with define_expand and new
24880 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24881 (altivec_vmrghb_direct): New define_insn.
24882 (altivec_vmrghh): Replace with define_expand and new
24883 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24884 (altivec_vmrghh_direct): New define_insn.
24885 (altivec_vmrghw): Replace with define_expand and new
24886 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24887 (altivec_vmrghw_direct): New define_insn.
24888 (*altivec_vmrghsf): Adjust for endianness.
24889 (altivec_vmrglb): Replace with define_expand and new
24890 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24891 (altivec_vmrglb_direct): New define_insn.
24892 (altivec_vmrglh): Replace with define_expand and new
24893 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24894 (altivec_vmrglh_direct): New define_insn.
24895 (altivec_vmrglw): Replace with define_expand and new
24896 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24897 (altivec_vmrglw_direct): New define_insn.
24898 (*altivec_vmrglsf): Adjust for endianness.
24899 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24900 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24901 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24902 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24903 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24904 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24905 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24906 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24908 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24910 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24911 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24914 2014-01-29 Richard Biener <rguenther@suse.de>
24916 PR tree-optimization/58742
24917 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24918 associate_pointerplus_align.
24919 (associate_pointerplus_diff): New function.
24920 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24921 and associate_pointerplus_diff.
24923 2014-01-29 Richard Biener <rguenther@suse.de>
24925 * lto-streamer.h (LTO_major_version): Bump to 3.
24926 (LTO_minor_version): Reset to 0.
24928 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24930 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24931 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24932 (arm_file_start): Generate correct asm header for armv7ve.
24933 * config/arm/bpabi.h: Add multilib support for armv7ve.
24934 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24935 and cortex-a15 to armv7ve.
24936 * config/arm/t-aprofile: Add multilib support for armv7ve.
24937 * doc/invoke.texi: Document -march=armv7ve.
24939 2014-01-29 Richard Biener <rguenther@suse.de>
24941 PR tree-optimization/58742
24942 * tree-ssa-forwprop.c (associate_plusminus): Return true
24943 if we changed sth, defer EH cleanup to ...
24944 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24945 (simplify_mult): New function.
24947 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24949 PR middle-end/59917
24950 PR tree-optimization/59920
24951 * tree.c (build_common_builtin_nodes): Remove
24952 __builtin_setjmp_dispatcher initialization.
24953 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24954 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24955 instead of gsi_after_labels + manually skipping debug stmts.
24956 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24957 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24958 * tree-inline.c (copy_edges_for_bb): Remove
24959 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24960 argument. Ignore computed_goto_p stmts. Don't call
24961 make_abnormal_goto_edges. If a call might need abnormal edges
24962 for non-local gotos, see if it already has an edge to
24963 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24964 with true argument, don't do anything then, otherwise add
24965 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24966 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24968 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24969 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24970 (lower_stmt): Don't set data->calls_builtin_setjmp.
24971 (lower_builtin_setjmp): Adjust comment.
24972 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24973 * tree-cfg.c (found_computed_goto): Remove.
24974 (factor_computed_gotos): Remove.
24975 (make_goto_expr_edges): Return bool, true for computed gotos.
24976 Don't call make_abnormal_goto_edges.
24977 (build_gimple_cfg): Don't set found_computed_goto, don't call
24978 factor_computed_gotos.
24979 (computed_goto_p): No longer static.
24980 (make_blocks): Don't set found_computed_goto.
24981 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24982 (make_edges): If make_goto_expr_edges returns true, push bb
24983 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24984 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24985 vector. Record mapping between bbs and OpenMP regions if there
24986 are any, adjust make_gimple_omp_edges caller. Call
24987 handle_abnormal_edges.
24988 (make_abnormal_goto_edges): Remove.
24989 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24990 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24991 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24992 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24993 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24994 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24995 filling *region also set *region_idx to (*region)->entry->index.
24998 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24999 For REGs set ORIGINAL_REGNO.
25001 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25003 * doc/md.texi: Mention that a target shouldn't implement
25004 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25007 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25009 PR tree-optimization/59594
25010 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25011 a copy of the datarefs vector rather than the vector itself.
25013 2014-01-28 Jason Merrill <jason@redhat.com>
25016 * dwarf2out.c (auto_die): New static.
25017 (gen_type_die_with_usage): Handle C++1y 'auto'.
25018 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25021 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25024 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25025 (SPEC_X32): Likewise.
25026 (SPEC_64): Likewise.
25027 * config/i386/i386.c (ix86_option_override_internal): Turn off
25028 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25030 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25031 * config/i386/i386.h (TARGET_16BIT): New macro.
25032 (TARGET_16BIT_P): Likewise.
25033 * config/i386/i386.opt: Add m16.
25034 * doc/invoke.texi: Document -m16.
25036 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25038 PR preprocessor/59935
25039 * input.c (location_get_source_line): Bail out on when line number
25040 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25042 2014-01-28 Richard Biener <rguenther@suse.de>
25044 PR tree-optimization/58742
25045 * tree-ssa-forwprop.c (associate_plusminus): Handle
25046 pointer subtraction of the form (T)(P + A) - (T)P.
25048 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25050 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25053 2014-01-28 Richard Biener <rguenther@suse.de>
25056 2014-01-28 Richard Biener <rguenther@suse.de>
25058 PR rtl-optimization/45364
25059 PR rtl-optimization/59890
25060 * var-tracking.c (local_get_addr_clear_given_value): Handle
25061 already cleared slot.
25062 (val_reset): Handle not allocated local_get_addr_cache.
25063 (vt_find_locations): Use post-order on the inverted CFG.
25065 2014-01-28 Richard Biener <rguenther@suse.de>
25067 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25069 2014-01-28 Richard Biener <rguenther@suse.de>
25071 PR rtl-optimization/45364
25072 PR rtl-optimization/59890
25073 * var-tracking.c (local_get_addr_clear_given_value): Handle
25074 already cleared slot.
25075 (val_reset): Handle not allocated local_get_addr_cache.
25076 (vt_find_locations): Use post-order on the inverted CFG.
25078 2014-01-28 Alan Modra <amodra@gmail.com>
25080 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25081 * configure.ac <recursive call for build != host>: Define
25082 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25083 and LD_FOR_BUILD too.
25084 * configure: Regenerate.
25086 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25088 * config/i386/i386.c (get_builtin_code_for_version): Separate
25089 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25090 Broadwell from Haswell.
25092 2014-01-27 Steve Ellcey <sellcey@mips.com>
25094 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25095 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25096 * config/mips/mips.c (mips_option_override): Change setting
25098 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25099 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25100 Change from Mask to Var.
25102 2014-01-27 Jeff Law <law@redhat.com>
25104 * ipa-inline.c (inline_small_functions): Fix typo.
25106 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25108 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25109 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25110 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25111 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25112 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25113 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25114 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25115 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25116 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25117 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25118 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25119 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25120 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25121 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25122 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25123 (_mm512_storeu_epi64): Ditto.
25124 (_mm512_cmpge_epi32_mask): Ditto.
25125 (_mm512_cmpge_epu32_mask): Ditto.
25126 (_mm512_cmpge_epi64_mask): Ditto.
25127 (_mm512_cmpge_epu64_mask): Ditto.
25128 (_mm512_cmple_epi32_mask): Ditto.
25129 (_mm512_cmple_epu32_mask): Ditto.
25130 (_mm512_cmple_epi64_mask): Ditto.
25131 (_mm512_cmple_epu64_mask): Ditto.
25132 (_mm512_cmplt_epi32_mask): Ditto.
25133 (_mm512_cmplt_epu32_mask): Ditto.
25134 (_mm512_cmplt_epi64_mask): Ditto.
25135 (_mm512_cmplt_epu64_mask): Ditto.
25136 (_mm512_cmpneq_epi32_mask): Ditto.
25137 (_mm512_cmpneq_epu32_mask): Ditto.
25138 (_mm512_cmpneq_epi64_mask): Ditto.
25139 (_mm512_cmpneq_epu64_mask): Ditto.
25140 (_mm512_expand_pd): Ditto.
25141 (_mm512_expand_ps): Ditto.
25142 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25143 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25144 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25145 * config/i386/i386.c (ix86_builtins): Add
25146 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25147 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25148 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25149 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25150 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25151 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25152 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25153 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25154 IX86_BUILTIN_PMOVUSQW512_MEM.
25155 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25156 __builtin_ia32_pmovsqd512mem_mask,
25157 __builtin_ia32_pmovqd512mem_mask,
25158 __builtin_ia32_pmovusqw512mem_mask,
25159 __builtin_ia32_pmovsqw512mem_mask,
25160 __builtin_ia32_pmovqw512mem_mask,
25161 __builtin_ia32_pmovusdw512mem_mask,
25162 __builtin_ia32_pmovsdw512mem_mask,
25163 __builtin_ia32_pmovdw512mem_mask,
25164 __builtin_ia32_pmovqb512mem_mask,
25165 __builtin_ia32_pmovusqb512mem_mask,
25166 __builtin_ia32_pmovsqb512mem_mask,
25167 __builtin_ia32_pmovusdb512mem_mask,
25168 __builtin_ia32_pmovsdb512mem_mask,
25169 __builtin_ia32_pmovdb512mem_mask.
25170 (bdesc_args): Add __builtin_ia32_expanddf512,
25171 __builtin_ia32_expandsf512.
25172 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25173 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25174 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25175 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25176 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25177 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25178 (avx512f_<code>v8div16qi2_mask_store): This.
25179 (avx512f_expand<mode>): New.
25181 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25183 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25185 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25186 (_mm512_prefetch_i32scatter_pd): Ditto.
25187 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25188 (_mm512_prefetch_i64scatter_pd): Ditto.
25189 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25190 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25191 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25192 (_mm512_prefetch_i32scatter_ps): Ditto.
25193 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25194 (_mm512_prefetch_i64scatter_ps): Ditto.
25195 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25196 * config/i386/i386-builtin-types.def: Define
25197 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25198 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25199 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25200 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25201 IX86_BUILTIN_SCATTERPFQPD.
25202 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25203 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25204 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25205 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25206 __builtin_ia32_scatterpfqps.
25207 (ix86_expand_builtin): Expand new built-ins.
25208 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25209 fix memory access data type.
25210 (*avx512pf_gatherpf<mode>_mask): Ditto.
25211 (*avx512pf_gatherpf<mode>): Ditto.
25212 (avx512pf_scatterpf<mode>): Ditto.
25213 (*avx512pf_scatterpf<mode>_mask): Ditto.
25214 (*avx512pf_scatterpf<mode>): Ditto.
25215 (GATHER_SCATTER_SF_MEM_MODE): New.
25216 (avx512pf_gatherpf<mode>df): Ditto.
25217 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25218 (*avx512pf_scatterpf<mode>df): Ditto.
25220 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25223 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25224 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25227 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25229 * common/config/arm/arm-common.c
25230 (arm_rewrite_mcpu): Handle multiple names.
25232 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25234 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25236 * gimple-builder.h (create_gimple_tmp): Delete.
25238 2014-01-27 Christian Bruel <christian.bruel@st.com>
25240 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25243 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25245 * config/pa/pa.md (call): Generate indirect long calls to non-local
25246 functions when outputing 32-bit code.
25247 (call_value): Likewise except for special call to buggy powf function.
25249 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25250 portable runtime and PIC indirect calls.
25251 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25252 and PIC call sequences. Use ldo instead of blr to set return register
25253 in PIC call sequence.
25255 2014-01-25 Walter Lee <walt@tilera.com>
25257 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25258 avoid clobbering a live register.
25260 2014-01-25 Walter Lee <walt@tilera.com>
25262 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25263 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25264 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25265 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25267 2014-01-25 Walter Lee <walt@tilera.com>
25269 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25270 arguments on even registers.
25271 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25273 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25274 (BIGGEST_ALIGNMENT): Ditto.
25275 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25277 2014-01-25 Walter Lee <walt@tilera.com>
25279 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25280 insns before bundling.
25281 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25283 2014-01-25 Walter Lee <walt@tilera.com>
25285 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25286 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25287 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25289 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25291 * config/mips/constraints.md (kl): Delete.
25292 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25293 define expands, using...
25294 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25295 instructions for MIPS16.
25296 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25297 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25299 2014-01-25 Walter Lee <walt@tilera.com>
25301 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25305 2014-01-25 Walter Lee <walt@tilera.com>
25307 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25308 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25310 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25312 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25315 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25317 * print-rtl.c (in_call_function_usage): New var.
25318 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25319 EXPR_LIST mode as mode and not as reg note name.
25321 PR middle-end/59561
25322 * cfgloopmanip.c (copy_loop_info): If
25323 loop->warned_aggressive_loop_optimizations, make sure
25324 the flag is set in target loop too.
25326 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25328 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25330 * builtins.def: Likewise.
25331 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25332 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25333 * ira.c (ira_setup_eliminable_regset): Likewise.
25334 * omp-low.c (gate_expand_omp): Likewise.
25335 (execute_lower_omp): Likewise.
25336 (diagnose_sb_0): Likewise.
25337 (gate_diagnose_omp_blocks): Likewise.
25338 (simd_clone_clauses_extract): Likewise.
25341 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25343 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25344 correction for little endian...
25345 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25348 2014-01-24 Jeff Law <law@redhat.com>
25350 PR tree-optimization/59919
25351 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25352 for non-returning calls.
25354 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25356 * common/config/aarch64/aarch64-common.c
25357 (aarch64_rewrite_mcpu): Handle multiple names.
25358 * config/aarch64/aarch64.h
25359 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25361 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25363 * input.c (add_file_to_cache_tab): Handle the case where fopen
25366 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25369 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25370 from push operand if code of push isn't PRE_DEC.
25372 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25375 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25376 -mquad-memory-atomic. Update -mquad-memory documentation to say
25377 it is only used for non-atomic loads/stores.
25379 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25380 -mquad-memory or -mquad-memory-atomic switches.
25382 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25383 -mquad-memory-atomic to ISA 2.07 support.
25385 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25386 to separate support of normal quad word memory operations (ldq, stq)
25387 from the atomic quad word memory operations.
25389 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25390 support to separate non-atomic quad word operations from atomic
25391 quad word operations. Disable non-atomic quad word operations in
25392 little endian mode so that we don't have to swap words after the
25393 load and before the store.
25394 (quad_load_store_p): Add comment about atomic quad word support.
25395 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25396 options printed with -mdebug=reg.
25398 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25399 -mquad-memory-atomic as the test for whether we have quad word
25400 atomic instructions.
25401 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25402 or -mp8-vector are used, allow byte/half-word atomic operations.
25404 * config/rs6000/sync.md (load_lockedti): Insure that the address
25405 is a proper indexed or indirect address for the lqarx instruction.
25406 On little endian systems, swap the hi/lo registers after the lqarx
25408 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25409 insure the address is valid for the lqarx instruction.
25410 (store_conditionalti): Insure that the address is a proper indexed
25411 or indirect address for the stqcrx. instruction. On little endian
25412 systems, swap the hi/lo registers before doing the stqcrx.
25414 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25415 insure the address is valid for the stqcrx. instruction.
25417 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25418 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25419 type of quad memory support is available.
25421 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25423 PR regression/59915
25424 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25425 there is a danger of looping.
25427 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25429 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25430 force flag_ira_loop_pressure if set via command line.
25432 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25434 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25435 (ashr_simd): New builtin handling DI mode.
25436 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25437 (aarch64_sshr_simddi): New match pattern.
25438 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25439 (vshrd_n_s64): Likewise.
25440 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25442 2014-01-23 Nick Clifton <nickc@redhat.com>
25444 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25445 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25446 favour of mcu specific scripts.
25447 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25450 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25451 Alex Velenko <Alex.Velenko@arm.com>
25453 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25454 (vaddv_s16): Likewise.
25455 (vaddv_s32): Likewise.
25456 (vaddv_u8): Likewise.
25457 (vaddv_u16): Likewise.
25458 (vaddv_u32): Likewise.
25459 (vaddvq_s8): Likewise.
25460 (vaddvq_s16): Likewise.
25461 (vaddvq_s32): Likewise.
25462 (vaddvq_s64): Likewise.
25463 (vaddvq_u8): Likewise.
25464 (vaddvq_u16): Likewise.
25465 (vaddvq_u32): Likewise.
25466 (vaddvq_u64): Likewise.
25467 (vaddv_f32): Likewise.
25468 (vaddvq_f32): Likewise.
25469 (vaddvq_f64): Likewise.
25470 (vmaxv_f32): Likewise.
25471 (vmaxv_s8): Likewise.
25472 (vmaxv_s16): Likewise.
25473 (vmaxv_s32): Likewise.
25474 (vmaxv_u8): Likewise.
25475 (vmaxv_u16): Likewise.
25476 (vmaxv_u32): Likewise.
25477 (vmaxvq_f32): Likewise.
25478 (vmaxvq_f64): Likewise.
25479 (vmaxvq_s8): Likewise.
25480 (vmaxvq_s16): Likewise.
25481 (vmaxvq_s32): Likewise.
25482 (vmaxvq_u8): Likewise.
25483 (vmaxvq_u16): Likewise.
25484 (vmaxvq_u32): Likewise.
25485 (vmaxnmv_f32): Likewise.
25486 (vmaxnmvq_f32): Likewise.
25487 (vmaxnmvq_f64): Likewise.
25488 (vminv_f32): Likewise.
25489 (vminv_s8): Likewise.
25490 (vminv_s16): Likewise.
25491 (vminv_s32): Likewise.
25492 (vminv_u8): Likewise.
25493 (vminv_u16): Likewise.
25494 (vminv_u32): Likewise.
25495 (vminvq_f32): Likewise.
25496 (vminvq_f64): Likewise.
25497 (vminvq_s8): Likewise.
25498 (vminvq_s16): Likewise.
25499 (vminvq_s32): Likewise.
25500 (vminvq_u8): Likewise.
25501 (vminvq_u16): Likewise.
25502 (vminvq_u32): Likewise.
25503 (vminnmv_f32): Likewise.
25504 (vminnmvq_f32): Likewise.
25505 (vminnmvq_f64): Likewise.
25507 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25509 * config/aarch64/aarch64-simd.md
25510 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25511 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25512 (*aarch64_mul3_elt<mode>): Likewise.
25513 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25514 (*aarch64_mul3_elt_to_64v2df): Likewise.
25515 (*aarch64_mla_elt<mode>): Likewise.
25516 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25517 (*aarch64_mls_elt<mode>): Likewise.
25518 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25519 (*aarch64_fma4_elt<mode>): Likewise.
25520 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25521 (*aarch64_fma4_elt_to_64v2df): Likewise.
25522 (*aarch64_fnma4_elt<mode>): Likewise.
25523 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25524 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25525 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25526 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25527 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25528 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25529 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25530 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25531 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25533 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25535 * config/aarch64/aarch64-simd.md
25536 (aarch64_be_checked_get_lane<mode>): New define_expand.
25537 * config/aarch64/aarch64-simd-builtins.def
25538 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25539 New builtin definition.
25540 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25541 Use new safe be builtin.
25543 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25545 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25547 (aarch64_be_st1<mode>): Likewise.
25548 (aarch_ld1<VALL:mode>): Define_expand modified.
25549 (aarch_st1<VALL:mode>): Likewise.
25550 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25551 (UNSPEC_ST1): Likewise.
25553 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25555 * config/microblaze/microblaze.md: Add trap insn and attribute
25557 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25559 PR preprocessor/58580
25560 * input.h (location_get_source_line): Take an additional line_size
25562 (void diagnostics_file_cache_fini): Declare new function.
25563 * input.c (struct fcache): New type.
25564 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25565 New static constants.
25566 (diagnostic_file_cache_init, total_lines_num)
25567 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25568 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25569 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25570 (get_next_line, read_next_line, goto_next_line, read_line_num):
25571 New static function definitions.
25572 (diagnostic_file_cache_fini): New function.
25573 (location_get_source_line): Take an additional output line_len
25574 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25576 * diagnostic.c (diagnostic_finish): Call
25577 diagnostic_file_cache_fini.
25578 (adjust_line): Take an additional input parameter for the length
25579 of the line, rather than calculating it with strlen.
25580 (diagnostic_show_locus): Adjust the use of
25581 location_get_source_line and adjust_line with respect to their new
25582 signature. While displaying a line now, do not stop at the first
25583 null byte. Rather, display the zero byte as a space and keep
25584 going until we reach the size of the line.
25585 * Makefile.in: Add vec.o to OBJS-libcommon
25587 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25588 Ilya Tocar <ilya.tocar@intel.com>
25590 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25591 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25592 (__builtin_ia32_kmov16): Ditto.
25593 * config/i386/i386.md (UNSPEC_KMOV): New.
25596 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25598 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25599 (_mm512_storeu_si512): Ditto.
25601 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25604 * rtl.h (get_referenced_operands): Declare.
25605 * recog.c (get_referenced_operands): New function.
25606 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25607 operands have been referenced when recording LO_SUM references.
25609 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25611 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25613 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25615 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25616 Enable for generic and recent AMD targets.
25618 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25620 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25621 ARG_SIZE note when adjustment was eliminated.
25623 2014-01-22 Jeff Law <law@redhat.com>
25625 PR tree-optimization/59597
25626 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25627 in file. Accept new argument REGISTERING and use it to modify
25628 dump output appropriately.
25629 (register_jump_thread): Corresponding changes.
25630 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25631 thread paths involving joiner blocks. Add code to dump cancelled
25632 jump threading paths.
25634 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25636 PR rtl-optimization/59477
25637 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25638 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25640 2014-01-22 Tom Tromey <tromey@redhat.com>
25642 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25644 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25646 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25648 PR rtl-optimization/59896
25649 * lra-constraints.c (process_alt_operands): Check unused note for
25650 matched operands of insn with no output reloads.
25652 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25654 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25655 (mips_move_from_gpr_cost): Likewise.
25657 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25659 PR rtl-optimization/59858
25660 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25661 ira_class_hard_regs_num.
25662 (process_alt_operands): Increase reject for dying matched operand.
25664 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25667 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25668 smaller than size, perform several stores or loads and stores
25669 at dst + count - size to store or copy all of size bytes, rather
25670 than just last modesize bytes.
25672 2014-01-20 DJ Delorie <dj@redhat.com>
25674 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25675 that CLOBBERs are REGs before propogating their values.
25677 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25679 PR middle-end/59789
25680 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25681 (cgraph_inline_failed_type): New function.
25682 * cgraph.h (DEFCIFCODE): Add type.
25683 (cgraph_inline_failed_type_t): New enum.
25684 (cgraph_inline_failed_type): New prototype.
25685 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25686 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25687 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25688 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25689 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25690 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25691 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25692 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25693 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25694 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25695 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25696 OPTIMIZATION_MISMATCH.
25697 * tree-inline.c (expand_call_inline): Emit errors during
25698 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25700 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25703 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25704 mode attribute in insn output.
25706 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25708 * output.h (output_constant): Delete.
25709 * varasm.c (output_constant): Make private.
25711 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25713 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25715 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25717 PR middle-end/59860
25718 * tree.h (fold_builtin_strcat): New prototype.
25719 * builtins.c (fold_builtin_strcat): No longer static. Add len
25720 argument, if non-NULL, don't call c_strlen. Optimize
25721 directly into __builtin_memcpy instead of __builtin_strcpy.
25722 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25723 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25725 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25727 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25728 for SImode_address_operand operands, having only a REG argument.
25730 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25732 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25733 loader name using mbig-endian.
25734 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25736 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25738 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25739 (-mtune): Likewise.
25742 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25744 * config/aarch64/aarch64-protos.h
25745 (aarch64_cannot_change_mode_class_ptr): Declare.
25746 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25747 aarch64_cannot_change_mode_class_ptr): New.
25748 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25749 backend hook aarch64_cannot_change_mode_class.
25751 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25753 * common/config/aarch64/aarch64-common.c
25754 (aarch64_handle_option): Don't handle any option order logic here.
25755 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25756 selected_cpu, warn on architecture version mismatch.
25757 (aarch64_override_options): Fix parsing order for option strings.
25759 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25760 Iain Sandoe <iain@codesourcery.com>
25763 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25764 warning. Amend comment to reflect current functionality.
25766 2014-01-20 Richard Biener <rguenther@suse.de>
25768 PR middle-end/59860
25769 * builtins.c (fold_builtin_strcat): Remove case better handled
25770 by tree-ssa-strlen.c.
25772 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25774 * config/aarch64/aarch64.opt
25775 (mcpu, march, mtune): Make case-insensitive.
25777 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25780 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25781 if operands[1] is a REG or ZERO_EXTEND of a REG.
25783 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25785 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25787 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25789 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25790 long non-pic millicode calls.
25792 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25794 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25796 2014-01-19 Kito Cheng <kito@0xlab.org>
25798 * builtins.c (expand_movstr): Check movstr expand done or fail.
25800 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25801 H.J. Lu <hongjiu.lu@intel.com>
25804 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25805 to DImode for zero-extended addresses.
25807 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25809 PR rtl-optimization/57763
25810 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25811 on the new indirect jump_insn and increment LABEL_NUSES (label).
25813 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25817 * config.gcc (x86_archs): New variable.
25818 (x86_64_archs): Likewise.
25819 (x86_cpus): Likewise.
25820 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25821 --with-arch/--with-cpu= options.
25822 Support --with-arch=/--with-cpu={nehalem,westmere,
25823 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25825 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25827 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25828 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25830 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25832 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25834 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25837 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25838 clear cpp_get_options (parse_in)->warn_unused_macros for
25839 ix86_target_macros_internal with cpp_define.
25841 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25843 * jump.c (delete_related_insns): Keep (use (insn))s.
25844 * reorg.c (redundant_insn): Check for barriers too.
25846 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25848 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25850 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25852 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25853 call to $$dyncall when TARGET_LONG_CALLS is true.
25855 2014-01-17 Jeff Law <law@redhat.com>
25857 * ree.c (combine_set_extension): Temporarily disable test for
25858 changing number of hard registers.
25860 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25862 PR middle-end/58125
25863 * ipa-inline-analysis.c (inline_free_summary):
25864 Do not free summary of aliases.
25866 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25868 PR middle-end/59706
25869 * gimplify.c (gimplify_expr): Use create_tmp_var
25870 instead of create_tmp_var_raw. If cond doesn't have
25871 integral type, don't add the IFN_ANNOTATE builtin at all.
25873 2014-01-17 Martin Jambor <mjambor@suse.cz>
25876 * ipa-cp.c (prev_edge_clone): New variable.
25877 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25878 Also resize prev_edge_clone vector.
25879 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25880 (ipcp_edge_removal_hook): New function.
25881 (ipcp_driver): Register ipcp_edge_removal_hook.
25883 2014-01-17 Andrew Pinski <apinski@cavium.com>
25884 Steve Ellcey <sellcey@mips.com>
25887 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25890 2014-01-17 Jeff Law <law@redhat.com>
25892 PR middle-end/57904
25893 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25894 so that pass_ccp runs first.
25896 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25898 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25899 (ix86_adjust_cost): Use !TARGET_XXX.
25900 (do_reorder_for_imul): Likewise.
25901 (swap_top_of_ready_list): Likewise.
25902 (ix86_sched_reorder): Likewise.
25904 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25906 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25907 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25908 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25909 (intel_memset): New. Duplicate slm_memset.
25910 (intel_cost): New. Duplicate slm_cost.
25911 (m_INTEL): New macro.
25912 (processor_target_table): Add "intel".
25913 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25914 with PROCESSOR_INTEL for "intel".
25915 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25916 PROCESSOR_SILVERMONT.
25917 (ix86_issue_rate): Likewise.
25918 (ix86_adjust_cost): Likewise.
25919 (ia32_multipass_dfa_lookahead): Likewise.
25920 (swap_top_of_ready_list): Likewise.
25921 (ix86_sched_reorder): Likewise.
25922 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25923 instead of TARGET_OPT_AGU.
25924 * config/i386/i386.h (TARGET_INTEL): New.
25925 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25926 (processor_type): Add PROCESSOR_INTEL.
25927 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25928 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25930 2014-01-17 Marek Polacek <polacek@redhat.com>
25933 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25936 2014-01-17 Richard Biener <rguenther@suse.de>
25938 PR tree-optimization/46590
25939 * opts.c (default_options_table): Add entries for
25940 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25941 all enabled at -O1 but not for -Og.
25942 * common.opt (fbranch-count-reg): Remove Init(1).
25943 (fmove-loop-invariants): Likewise.
25944 (ftree-pta): Likewise.
25946 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25948 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25949 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25950 decls to at least the GCC 4.8 used alignments.
25953 * tree-nested.c (convert_nonlocal_reference_stmt,
25954 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25955 of GIMPLE_BIND stmts, adjust associated decls.
25957 2014-01-17 Richard Biener <rguenther@suse.de>
25959 PR tree-optimization/46590
25960 * vec.h (vec<>::bseach): New member function implementing
25961 binary search according to C89 bsearch.
25962 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25963 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25964 bitmap pointer again. Make accesses_in_loop a flat array.
25965 (mem_ref_obstack): New global.
25966 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25967 (mark_ref_stored): Likewise.
25968 (ref_indep_loop_p_2): Likewise.
25969 (set_ref_stored_in_loop): New helper function.
25970 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25971 (memref_free): Adjust.
25972 (record_mem_ref_loc): Simplify.
25973 (gather_mem_refs_stmt): Adjust.
25974 (sort_locs_in_loop_postorder_cmp): New function.
25975 (analyze_memory_references): Sort accesses_in_loop after
25976 loop postorder number.
25977 (find_ref_loc_in_loop_cmp): New function.
25978 (for_all_locs_in_loop): Find relevant cluster of locs in
25979 accesses_in_loop and iterate without recursion.
25980 (execute_sm): Avoid uninit warning.
25981 (struct ref_always_accessed): Simplify.
25982 (ref_always_accessed::operator ()): Likewise.
25983 (ref_always_accessed_p): Likewise.
25984 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25985 loop postorder numbers here.
25986 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25989 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25992 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25993 on decls for which assemble_alias has been called.
25995 2014-01-17 Nick Clifton <nickc@redhat.com>
25997 * config/msp430/msp430.opt: (mcpu): New option.
25998 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25999 (msp430_option_override): Parse target_cpu. If the MCU name
26000 matches a generic string, clear target_mcu.
26001 (msp430_attr): Allow numeric interrupt values up to 63.
26002 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26003 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26005 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26007 * config/msp430/msp430.md (popm): Use %J rather than %I.
26008 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26009 (addhi_cy_i): Use immediate_operand for operand 2.
26010 * doc/invoke.texi: Document -mcpu option.
26012 2014-01-17 Richard Biener <rguenther@suse.de>
26014 PR rtl-optimization/38518
26015 * df.h (df_analyze_loop): Declare.
26016 * df-core.c: Include cfgloop.h.
26017 (df_analyze_1): Split out main part of df_analyze.
26018 (df_analyze): Adjust.
26019 (loop_inverted_post_order_compute): New function.
26020 (loop_post_order_compute): Likewise.
26021 (df_analyze_loop): New function avoiding whole-function
26022 postorder computes.
26023 * loop-invariant.c (find_defs): Use df_analyze_loop.
26024 (find_invariants): Adjust.
26025 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26027 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26029 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26030 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26032 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26034 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26035 traversal when removing references.
26037 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26040 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26042 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26044 PR middle-end/56791
26045 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26046 pushing a reload for an autoinc when we had previously reloaded an
26047 inner part of the address.
26049 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26051 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26053 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26054 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26055 when not giving up or versioning for alias only because of
26057 (vect_analyze_data_ref_dependences): Set to true.
26058 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26060 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26061 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26064 PR middle-end/58344
26065 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26068 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26069 operand 0 predicate for gathers, use a new pseudo as subtarget.
26071 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26073 PR middle-end/59609
26074 * lra-constraints.c (process_alt_operands): Add printing debug info.
26075 Check absence of input/output reloads for matched operands too.
26077 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26079 PR rtl-optimization/59835
26080 * ira.c (ira_init_register_move_cost): Increase cost for
26083 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26085 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26087 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26090 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26091 non-register objects. Use gen_(high/low)part more consistently.
26094 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26097 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26098 endian support, remove tests for WORDS_BIG_ENDIAN.
26099 (p8_mfvsrd_3_<mode>): Likewise.
26100 (reload_gpr_from_vsx<mode>): Likewise.
26101 (reload_gpr_from_vsxsf): Likewise.
26102 (p8_mfvsrd_4_disf): Likewise.
26104 2014-01-16 Richard Biener <rguenther@suse.de>
26106 PR rtl-optimization/46590
26107 * lcm.c (compute_antinout_edge): Use postorder iteration.
26108 (compute_laterin): Use inverted postorder iteration.
26110 2014-01-16 Nick Clifton <nickc@redhat.com>
26112 PR middle-end/28865
26113 * varasm.c (output_constant): Return the number of bytes actually
26115 (output_constructor_array_range): Update the field size with the
26116 number of bytes emitted by output_constant.
26117 (output_constructor_regular_field): Likewise. Also do not
26118 complain if the total number of bytes emitted is now greater
26119 than the expected fieldpos.
26120 * output.h (output_constant): Update prototype and descriptive comment.
26122 2014-01-16 Marek Polacek <polacek@redhat.com>
26124 PR middle-end/59827
26125 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26126 it is error_mark_node.
26128 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26130 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26131 VALID_AVX256_REG_OR_OI_MODE.
26133 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26135 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26136 current procedure should be profiled.
26138 2014-01-15 Andrew Pinski <apinski@cavium.com>
26140 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26141 of moving from/to the STACK_REG register class.
26143 2014-01-15 Richard Henderson <rth@redhat.com>
26146 * reginfo.c (global_regs_decl): Globalize.
26147 * rtl.h (global_regs_decl): Declare.
26148 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26149 reserved via global_regs.
26151 2014-01-15 Teresa Johnson <tejohnson@google.com>
26153 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26155 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26157 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26158 and vmulosh rather than call gen_vec_widen_smult_*.
26159 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26160 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26161 (vec_widen_smult_even_v16qi): Likewise.
26162 (vec_widen_umult_even_v8hi): Likewise.
26163 (vec_widen_smult_even_v8hi): Likewise.
26164 (vec_widen_umult_odd_v16qi): Likewise.
26165 (vec_widen_smult_odd_v16qi): Likewise.
26166 (vec_widen_umult_odd_v8hi): Likewise.
26167 (vec_widen_smult_odd_v8hi): Likewise.
26168 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26169 vmuloub rather than call gen_vec_widen_umult_*.
26170 (vec_widen_umult_lo_v16qi): Likewise.
26171 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26172 vmulosb rather than call gen_vec_widen_smult_*.
26173 (vec_widen_smult_lo_v16qi): Likewise.
26174 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26175 rather than call gen_vec_widen_umult_*.
26176 (vec_widen_umult_lo_v8hi): Likewise.
26177 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26178 rather than call gen_vec_widen_smult_*.
26179 (vec_widen_smult_lo_v8hi): Likewise.
26181 2014-01-15 Jeff Law <law@redhat.com>
26183 PR tree-optimization/59747
26184 * ree.c (find_and_remove_re): Properly handle case where a second
26185 eliminated extension requires widening a copy created for elimination
26186 of a prior extension.
26187 (combine_set_extension): Ensure that the number of hard regs needed
26188 for a destination register does not change when we widen it.
26190 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26192 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26193 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26194 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26195 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26196 (avr-*-rtems*): Likewise.
26197 (bfin*-rtems*): Likewise.
26198 (moxie-*-rtems*): Likewise.
26199 (h8300-*-rtems*): Likewise.
26200 (i[34567]86-*-rtems*): Likewise.
26201 (lm32-*-rtems*): Likewise.
26202 (m32r-*-rtems*): Likewise.
26203 (m68k-*-rtems*): Likewise.
26204 (microblaze*-*-rtems*): Likewise.
26205 (mips*-*-rtems*): Likewise.
26206 (powerpc-*-rtems*): Likewise.
26207 (sh-*-rtems*): Likewise.
26208 (sparc-*-rtems*): Likewise.
26209 (sparc64-*-rtems*): Likewise.
26210 (v850-*-rtems*): Likewise.
26211 (m32c-*-rtems*): Likewise.
26213 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26215 PR rtl-optimization/59511
26216 * ira.c (ira_init_register_move_cost): Use memory costs for some
26217 cases of register move cost calculations.
26218 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26219 instead of BB frequency.
26220 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26221 * lra-assigns.c (find_hard_regno_for): Ditto.
26223 2014-01-15 Richard Biener <rguenther@suse.de>
26225 PR tree-optimization/59822
26226 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26227 (vectorizable_load): Use it to hoist defs of uses of invariant
26228 loads out of the loop.
26230 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26231 Kugan Vivekanandarajah <kuganv@linaro.org>
26234 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26237 2014-01-15 Richard Biener <rguenther@suse.de>
26239 PR rtl-optimization/59802
26240 * lcm.c (compute_available): Use inverted postorder to seed
26241 the initial worklist.
26243 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26246 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26247 ADDR_REGS for invalid symrefs in non-PIC code.
26249 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26252 * builtins.c (determine_block_size): Initialize *probable_max_size
26253 even if len_rtx is CONST_INT.
26255 2014-01-14 Andrew Pinski <apinski@cavium.com>
26257 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26258 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26259 (cortexa53_tunings): Likewise.
26260 (aarch64_sched_issue_rate): New function.
26261 (TARGET_SCHED_ISSUE_RATE): Define.
26263 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26265 * ira-costs.c (find_costs_and_classes): Add missed
26266 ira_init_register_move_cost_if_necessary.
26268 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26271 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26273 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26276 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26277 to indicate if type is used for function return value. Warn ABI
26278 change if the vector mode isn't available for function return value.
26279 (ix86_function_arg_advance): Pass false to type_natural_mode.
26280 (ix86_function_arg): Likewise.
26281 (ix86_gimplify_va_arg): Likewise.
26282 (function_arg_32): Don't warn ABI change.
26283 (ix86_function_value): Pass true to type_natural_mode.
26284 (ix86_return_in_memory): Likewise.
26285 (ix86_struct_value_rtx): Removed.
26286 (TARGET_STRUCT_VALUE_RTX): Likewise.
26288 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26290 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26291 converting a conditional jump into a conditional return.
26293 2014-01-14 Richard Biener <rguenther@suse.de>
26295 PR tree-optimization/58921
26296 PR tree-optimization/59006
26297 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26298 hoisting invariant stmts.
26299 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26300 invariant loads on the preheader edge if possible.
26302 2014-01-14 Joey Ye <joey.ye@arm.com>
26304 * doc/plugin.texi (Building GCC plugins): Update to C++.
26306 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26308 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26309 (_mm_rcp28_round_ss): Ditto.
26310 (_mm_rsqrt28_round_sd): Ditto.
26311 (_mm_rsqrt28_round_ss): Ditto.
26312 (_mm_rcp28_sd): Ditto.
26313 (_mm_rcp28_ss): Ditto.
26314 (_mm_rsqrt28_sd): Ditto.
26315 (_mm_rsqrt28_ss): Ditto.
26316 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26317 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26318 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26319 (IX86_BUILTIN_RCP28SD): Ditto.
26320 (IX86_BUILTIN_RCP28SS): Ditto.
26321 (IX86_BUILTIN_RSQRT28SD): Ditto.
26322 (IX86_BUILTIN_RSQRT28SS): Ditto.
26323 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26324 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26325 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26326 (ix86_expand_special_args_builtin): Expand new FTYPE.
26327 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26328 (srcp14<mode>): Make insn unary.
26329 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26330 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26331 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26332 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26333 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26334 Fix rounding: make it SAE only.
26335 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26337 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26339 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26340 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26341 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26342 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26343 (round_saeonly_mask_scalar_operand4): Ditto.
26344 (round_saeonly_mask_scalar_op3): Ditto.
26345 (round_saeonly_mask_scalar_op4): Ditto.
26347 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26349 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26350 Implement -maltivec=be for vec_insert and vec_extract.
26352 2014-01-10 DJ Delorie <dj@redhat.com>
26354 * config/msp430/msp430.md (call_internal): Don't allow memory
26355 references with SP as the base register.
26356 (call_value_internal): Likewise.
26357 * config/msp430/constraints.md (Yc): New. For memory references
26358 that don't use SP as a base register.
26360 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26361 "an integer without a # prefix"
26362 * config/msp430/msp430.md (epilogue_helper): Use it.
26364 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26367 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26368 AVX512F gather builtins.
26369 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26370 on gather decls with INTEGER_TYPE masktype.
26371 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26372 directly into the builtin rather than hoisting it before loop.
26374 PR tree-optimization/59387
26375 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26376 (scev_const_prop): If folded_casts and type has undefined overflow,
26377 use force_gimple_operand instead of force_gimple_operand_gsi and
26378 for each added stmt if it is assign with
26379 arith_code_with_undefined_signed_overflow, call
26380 rewrite_to_defined_overflow.
26381 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26382 gimple-fold.h instead.
26383 (arith_code_with_undefined_signed_overflow,
26384 rewrite_to_defined_overflow): Moved to ...
26385 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26386 rewrite_to_defined_overflow): ... here. No longer static.
26387 Include gimplify-me.h.
26388 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26389 rewrite_to_defined_overflow): New prototypes.
26391 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26393 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26395 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26397 * builtins.c (get_object_alignment_2): Minor tweak.
26398 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26400 2014-01-13 Christian Bruel <christian.bruel@st.com>
26402 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26403 optimized non constant lengths.
26405 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26408 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26409 load as __atomic_load_N if possible.
26411 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26413 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26415 (rs6000_expand_builtin): Adjust call.
26417 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26420 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26421 * config/rs6000/rs6000.c: Include target-globals.h.
26422 (rs6000_set_current_function): Instead of doing target_reinit
26423 unconditionally, use save_target_globals_default_opts and
26424 restore_target_globals.
26426 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26428 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26429 (rs6000_expand_builtin): Handle mffs and mtfsf.
26430 (rs6000_init_builtins): Define mffs and mtfsf.
26431 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26432 (rs6000_mffs): New pattern.
26433 (rs6000_mtfsf): New pattern.
26435 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26437 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26438 Start narrowing with START. Apply candidate-use pair
26439 and check overall cost in narrowing.
26440 (iv_ca_prune): Pass new argument.
26442 2014-01-10 Jeff Law <law@redhat.com>
26444 PR middle-end/59743
26445 * ree.c (combine_reaching_defs): Ensure the defining statement
26446 occurs before the extension when optimizing extensions with
26447 different source and destination hard registers.
26449 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26452 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26453 vtables into the type inheritance graph.
26455 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26457 PR rtl-optimization/59754
26458 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26459 modes in the REGNO != REGNO case.
26461 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26463 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26465 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26467 PR tree-optimization/59745
26468 * tree-predcom.c (tree_predictive_commoning_loop): Call
26469 free_affine_expand_cache if giving up because components is NULL.
26471 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26472 GC in payload of target_globals struct instead of allocating them on
26473 the heap and the larger structs separately using GC.
26474 * target-globals.h (struct target_globals): Make regs, hard_regs,
26475 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26476 of GTY((skip)) and change type to void *.
26477 (reset_target_globals): Cast loads from those fields to corresponding
26480 2014-01-10 Steve Ellcey <sellcey@mips.com>
26483 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26484 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26485 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26487 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26490 * aarch64-modes.def (CC_Zmode): New flags mode.
26491 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26492 represents an equality.
26493 (aarch64_get_condition_code): Handle CC_Zmode.
26494 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26496 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26498 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26499 extraction in good case.
26501 2014-01-10 Richard Biener <rguenther@suse.de>
26503 PR tree-optimization/59374
26504 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26505 checking after SLP discovery. Mark stmts not participating
26506 in any SLP instance properly.
26508 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26510 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26511 when handling a SET rtx.
26513 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26515 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26516 (cortex-a57): Likewise.
26517 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26519 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26521 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26522 non-iwmmxt builtins.
26524 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26528 * ipa-devirt.c record_target_from_binfo): Take as argument
26529 stack of binfos and lookup matching one for virtual inheritance.
26530 (possible_polymorphic_call_targets_1): Update.
26532 2014-01-10 Huacai Chen <chenhc@lemote.com>
26534 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26535 kernel strings for Loongson-2E/2F/3A.
26537 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26539 PR middle-end/59670
26540 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26541 is_gimple_call before calling gimple_call_internal_p.
26543 2014-01-09 Steve Ellcey <sellcey@mips.com>
26545 * Makefile.in (TREE_FLOW_H): Remove.
26546 (TREE_SSA_H): Add file names from tree-flow.h.
26547 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26548 * tree.h: Remove tree-flow.h reference.
26549 * hash-table.h: Remove tree-flow.h reference.
26550 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26551 reference with tree-ssa-loop.h.
26553 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26555 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26556 default element-order behavior for -maltivec.
26557 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26558 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26559 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26560 when targeting big endian, at least for now.
26561 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26563 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26565 PR middle-end/47735
26566 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26567 var satisfies use_register_for_decl, just take into account type
26568 alignment, rather than decl alignment.
26570 PR tree-optimization/59622
26571 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26572 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26573 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26574 Don't devirtualize for inplace at all. For targets.length () == 1,
26575 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26577 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26579 * config/i386/i386.md (cpu): Remove the unused btver1.
26581 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26583 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26585 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26588 * tree-core.h (struct target_globals): New forward declaration.
26589 (struct tree_target_option): Add globals field.
26590 * tree.h (TREE_TARGET_GLOBALS): Define.
26591 (prepare_target_option_nodes_for_pch): New prototype.
26592 * target-globals.h (struct target_globals): Define even if
26593 !SWITCHABLE_TARGET.
26594 * tree.c (prepare_target_option_node_for_pch,
26595 prepare_target_option_nodes_for_pch): New functions.
26596 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26597 * config/i386/i386.c: Include target-globals.h.
26598 (ix86_set_current_function): Instead of doing target_reinit
26599 unconditionally, use save_target_globals_default_opts and
26600 restore_target_globals.
26602 2014-01-09 Richard Biener <rguenther@suse.de>
26604 PR tree-optimization/59715
26605 * tree-cfg.h (split_critical_edges): Declare.
26606 * tree-cfg.c (split_critical_edges): Export.
26607 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26609 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26611 * cfgexpand.c (expand_stack_vars): Optionally disable
26612 asan stack protection.
26613 (expand_used_vars): Likewise.
26614 (partition_stack_vars): Likewise.
26615 * asan.c (asan_emit_stack_protection): Optionally disable
26616 after return stack usage.
26617 (instrument_derefs): Optionally disable memory access instrumentation.
26618 (instrument_builtin_call): Likewise.
26619 (instrument_strlen_call): Likewise.
26620 (asan_protect_global): Optionally disable global variables protection.
26621 * doc/invoke.texi: Added doc for new options.
26622 * params.def: Added new options.
26623 * params.h: Likewise.
26625 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26627 PR rtl-optimization/59724
26628 * ifcvt.c (cond_exec_process_if_block): Don't call
26629 flow_find_head_matching_sequence with 0 longest_match.
26630 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26631 non-active insns if !stop_after.
26632 (try_head_merge_bb): Revert 2014-01-07 changes.
26634 2014-01-08 Jeff Law <law@redhat.com>
26636 * ree.c (get_sub_rtx): New function, extracted from...
26637 (merge_def_and_ext): Here.
26638 (combine_reaching_defs): Use get_sub_rtx.
26640 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26642 * cgraph.h (varpool_variable_node): Do not choke on null node.
26644 2014-01-08 Catherine Moore <clm@codesourcery.com>
26646 * config/mips/mips.md (simple_return): Attempt to use JRC
26648 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26650 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26652 PR rtl-optimization/59137
26653 * reorg.c (steal_delay_list_from_target): Call update_block for
26655 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26657 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26659 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26660 two duplicate entries.
26662 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26665 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26667 * config/mips/mips.c (mips_truncated_op_cost): New function.
26668 (mips_rtx_costs): Adjust test for BADDU.
26669 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26671 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26673 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26674 (*baddu_si): ...this new pattern.
26676 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26679 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26681 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26683 PR middle-end/57748
26684 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26686 (expand_expr, expand_normal): Adjust.
26687 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26688 inner_reference_p. Use inner_reference_p to expand inner references.
26689 (store_expr): Adjust.
26690 * cfgexpand.c (expand_call_stmt): Adjust.
26692 2014-01-08 Rong Xu <xur@google.com>
26694 * gcov-io.c (gcov_var): Move from gcov-io.h.
26695 (gcov_position): Ditto.
26696 (gcov_is_error): Ditto.
26697 (gcov_rewrite): Ditto.
26698 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26699 only part to libgcc/libgcov.h.
26701 2014-01-08 Marek Polacek <polacek@redhat.com>
26703 PR middle-end/59669
26704 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26706 2014-01-08 Marek Polacek <polacek@redhat.com>
26709 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26711 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26713 PR rtl-optimization/59649
26714 * stor-layout.c (get_mode_bounds): For BImode return
26715 0 and STORE_FLAG_VALUE.
26717 2014-01-08 Richard Biener <rguenther@suse.de>
26719 PR middle-end/59630
26720 * gimple.h (is_gimple_builtin_call): Remove.
26721 (gimple_builtin_call_types_compatible_p): New.
26722 (gimple_call_builtin_p): New overload.
26723 * gimple.c (is_gimple_builtin_call): Remove.
26724 (validate_call): Rename to ...
26725 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26726 check return types.
26727 (validate_type): New static function.
26728 (gimple_call_builtin_p): New overload and adjust.
26729 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26730 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26731 (gimple_fold_stmt_to_constant_1): Likewise.
26732 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26734 2014-01-08 Richard Biener <rguenther@suse.de>
26736 PR middle-end/59471
26737 * gimplify.c (gimplify_expr): Gimplify register-register type
26738 VIEW_CONVERT_EXPRs to separate stmts.
26740 2014-01-07 Jeff Law <law@redhat.com>
26742 PR middle-end/53623
26743 * ree.c (combine_set_extension): Handle case where source
26744 and destination registers in an extension insn are different.
26745 (combine_reaching_defs): Allow source and destination registers
26746 in extension to be different under limited circumstances.
26747 (add_removable_extension): Remove restriction that the
26748 source and destination registers in the extension are the same.
26749 (find_and_remove_re): Emit a copy from the extension's
26750 destination to its source after the defining insn if
26751 the source and destination registers are different.
26753 PR middle-end/59285
26754 * ifcvt.c (merge_if_block): If we are merging a block with more than
26755 one successor with a block with no successors, remove any BARRIER
26756 after the second block.
26758 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26760 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26762 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26765 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26766 for 14-bit register offsets when INT14_OK_STRICT is false.
26768 2014-01-07 Roland Stigge <stigge@antcom.de>
26769 Michael Meissner <meissner@linux.vnet.ibm.com>
26772 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26773 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26775 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26777 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26780 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26782 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26783 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26784 rtx is const0_rtx or not.
26786 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26789 * target-globals.c (save_target_globals): Remove this_fn_optab
26791 * toplev.c: Include optabs.h.
26792 (target_reinit): Temporarily restore the global options if another
26793 set of options are in force.
26795 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26797 PR rtl-optimization/58668
26798 * cfgcleanup.c (flow_find_cross_jump): Don't count
26799 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26800 to determine what is counted.
26801 (flow_find_head_matching_sequence): Use active_insn_p to determine
26803 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26805 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26806 determine what is counted.
26808 PR tree-optimization/59643
26809 * tree-predcom.c (split_data_refs_to_components): If one dr is
26810 read and one write, determine_offset fails and the write isn't
26811 in the bad component, just put the read into the bad component.
26813 2014-01-07 Mike Stump <mikestump@comcast.net>
26814 Jakub Jelinek <jakub@redhat.com>
26817 * tree-core.h (struct tree_optimization_option): Change optabs
26818 type from unsigned char * to void *.
26819 * optabs.c (init_tree_optimization_optabs): Adjust
26820 TREE_OPTIMIZATION_OPTABS initialization.
26822 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26825 * config/i386/i386.h (struct machine_function): Add
26826 no_drap_save_restore field.
26827 * config/i386/i386.c (ix86_save_reg): Use
26828 !cfun->machine->no_drap_save_restore instead of
26829 crtl->stack_realign_needed.
26830 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26831 this function clears frame_pointer_needed. Set
26832 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26833 and DRAP reg is needed.
26835 2014-01-06 Marek Polacek <polacek@redhat.com>
26838 * doc/implement-c.texi: Mention that other integer types are
26839 permitted as bit-field types in strictly conforming mode.
26841 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26843 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26844 is newly allocated.
26846 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26848 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26850 2014-01-06 Martin Jambor <mjambor@suse.cz>
26853 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26855 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26857 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26861 * var-tracking.c (add_stores): Preserve the value of the source even if
26862 we don't record the store.
26864 2014-01-06 Terry Guo <terry.guo@arm.com>
26866 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26868 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26871 * config/darwin.c (darwin_function_section): Adjust return values to
26872 correspond to optimisation changes made in r206070.
26874 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26876 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26877 from prefetch_block tune setting.
26878 (nocona_cost): Correct size of prefetch block to 64.
26880 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26882 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26883 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26884 used to save the static chain register in the computation of the offset
26885 from which the FP registers need to be restored.
26887 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26889 PR tree-optimization/59519
26890 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26891 ICE if get_current_def (current_new_name) is already non-NULL, as long
26892 as it is a phi result of some other phi in *new_exit_bb that has
26895 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26896 or vmovdqu* for misaligned_operand.
26897 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26898 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26899 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26900 aligned_mem for AVX512F masked aligned load and store builtins and for
26901 non-temporal moves.
26903 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26905 PR tree-optimization/59651
26906 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26907 Address range for negative step should be added by TYPE_SIZE_UNIT.
26909 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26911 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26912 overlapping registers also for registers other than the stack pointer.
26914 2014-01-03 Marek Polacek <polacek@redhat.com>
26917 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26920 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26923 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26926 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26927 (push splitter): Use <P:MODE_SIZE> instead of
26928 GET_MODE_SIZE (<P:MODE>mode).
26929 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26930 (mov -1, reg peephole2): Likewise.
26931 * config/i386/sse.md (*mov<mode>_internal,
26932 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26933 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26934 *<code><mode>3, *andnot<mode>3<mask_name>,
26935 <mask_codefor><code><mode>3<mask_name>): Likewise.
26936 * config/i386/subst.md (mask_mode512bit_condition,
26937 sd_mask_mode512bit_condition): Likewise.
26939 2014-01-02 Xinliang David Li <davidxl@google.com>
26941 PR tree-optimization/59303
26942 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26943 (dump_predicates): Better output format.
26944 (pred_equal_p): New function.
26945 (is_neq_relop_p): Ditto.
26946 (is_neq_zero_form_p): Ditto.
26947 (pred_expr_equal_p): Ditto.
26948 (pred_neg_p): Ditto.
26949 (simplify_pred): Ditto.
26950 (simplify_preds_2): Ditto.
26951 (simplify_preds_3): Ditto.
26952 (simplify_preds_4): Ditto.
26953 (simplify_preds): Ditto.
26954 (push_pred): Ditto.
26955 (push_to_worklist): Ditto.
26956 (get_pred_info_from_cmp): Ditto.
26957 (is_degenerated_phi): Ditto.
26958 (normalize_one_pred_1): Ditto.
26959 (normalize_one_pred): Ditto.
26960 (normalize_one_pred_chain): Ditto.
26961 (normalize_preds): Ditto.
26962 (normalize_cond_1): Remove function.
26963 (normalize_cond): Ditto.
26964 (is_gcond_subset_of): Ditto.
26965 (is_subset_of_any): Ditto.
26966 (is_or_set_subset_of): Ditto.
26967 (is_and_set_subset_of): Ditto.
26968 (is_norm_cond_subset_of): Ditto.
26969 (pred_chain_length_cmp): Ditto.
26970 (convert_control_dep_chain_into_preds): Type change.
26971 (find_predicates): Ditto.
26972 (find_def_preds): Ditto.
26973 (destroy_predicates_vecs): Ditto.
26974 (find_matching_predicates_in_rest_chains): Ditto.
26975 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26976 (is_pred_expr_subset): Ditto.
26977 (is_pred_chain_subset_of): Ditto.
26978 (is_included_in): Ditto.
26979 (is_superset_of): Ditto.
26981 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26983 Update copyright years.
26985 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26987 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26988 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26989 config/arc/arc.md, config/arc/arc.opt,
26990 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26991 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26992 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26993 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26994 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26995 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26996 vtable-verify.c, vtable-verify.h: Use the standard form for the
26999 2014-01-02 Tobias Burnus <burnus@net-b.de>
27001 * gcc.c (process_command): Update copyright notice dates.
27002 * gcov-dump.c: Ditto.
27004 * doc/cpp.texi: Bump @copying's copyright year.
27005 * doc/cppinternals.texi: Ditto.
27006 * doc/gcc.texi: Ditto.
27007 * doc/gccint.texi: Ditto.
27008 * doc/gcov.texi: Ditto.
27009 * doc/install.texi: Ditto.
27010 * doc/invoke.texi: Ditto.
27012 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27014 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27016 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27018 * config/i386/sse.md (*mov<mode>_internal): Guard
27019 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27021 PR rtl-optimization/59647
27022 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27023 new_rtx into UNSIGNED_FLOAT rtxes.
27025 Copyright (C) 2014 Free Software Foundation, Inc.
27027 Copying and distribution of this file, with or without modification,
27028 are permitted in any medium without royalty provided the copyright
27029 notice and this notice are preserved.