1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3 * store-motion.c: Include rtl-iter.h.
4 (extract_mentioned_regs_1): Delete.
5 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
6 for_each_rtx to iterate over subrtxes.
8 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
10 * sel-sched.c: Include rtl-iter.h
11 (count_occurrences_1): Delete.
12 (count_occurrences_equiv): Turn rtxes into const_rtxes.
13 Use FOR_EACH_SUBRTX rather than for_each_rtx.
15 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
18 * rtlanal.c (tls_referenced_p_1): Delete.
19 (tls_referenced_p): Take a const_rtx rather than an rtx.
20 Use FOR_EACH_SUBRTX rather than for_each_rtx.
22 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
24 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
25 (for_each_inc_dec): Take an rtx rather than an rtx *.
26 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
27 (cselib_record_sets): Likewise.
28 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
29 (check_for_inc_dec): Likewise.
30 * rtlanal.c (for_each_inc_dec_ops): Delete.
31 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
32 rather than a pointer to the memory address. Replace
33 for_each_inc_dec_ops argument with separate function and data
34 arguments. Abort on non-autoinc addresses.
35 (for_each_inc_dec_find_mem): Delete.
36 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
37 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
39 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
41 * rtl.h (find_all_hard_regs): Declare.
42 * rtlanal.c (find_all_hard_regs): New function.
43 (record_hard_reg_uses_1): Delete.
44 (record_hard_reg_uses): Use find_all_hard_regs.
46 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
48 * rtl.h (replace_label_data): Delete.
49 (replace_label): Take the old label, new label and update-nuses flag
50 as direct arguments. Return void.
51 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
52 * rtlanal.c (replace_label): Update interface as above. Handle
53 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
54 iterator. Use FOR_EACH_SUBRTX_PTR.
56 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
58 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
59 with const_rtx parameters.
60 * varasm.c (get_pool_constant): Likewise.
61 * rtlanal.c (rtx_referenced_p_1): Delete.
62 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
63 Assert that the rtx we're looking for is nonnull. Allow searches
64 for constant pool SYMBOL_REFs.
66 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
68 * reload1.c: Include rtl-iter.h.
69 (note_reg_elim_costly): Turn from being a for_each_rtx callback
70 to being a function that examines each subrtx itself.
71 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
73 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
75 * regcprop.c (cprop_find_used_regs_1): Delete.
76 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
78 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
80 * regcprop.c: Include rtl-iter.h.
81 (kill_value): Take a const_rtx.
82 (kill_autoinc_value): Turn from being a for_each_rtx callback
83 to being a function that examines each subrtx itself.
84 (copyprop_hardreg_forward_1): Update accordingly.
86 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
88 * reg-stack.c: Include rtl-iter.h.
89 (subst_stack_regs_in_debug_insn): Delete.
90 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
91 instead of for_each_rtx.
93 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
95 * lower-subreg.c (find_decomposable_subregs): Turn from being
96 a for_each_rtx callback to being a function that examines each
97 subrtx itself. Remove handling of null rtxes.
98 (decompose_multiword_subregs): Update accordingly.
100 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
102 * lower-subreg.c (adjust_decomposed_uses): Delete.
103 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
104 Remove handling of null rtxes.
106 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
108 * lower-subreg.c: Include rtl-iter.h.
109 (resolve_subreg_use): Turn from being a for_each_rtx callback
110 to being a function that examines each subrtx itself. Remove
111 handling of null rtxes.
112 (resolve_reg_notes, resolve_simple_move): Update accordingly.
113 (decompose_multiword_subregs): Likewise.
115 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
117 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
118 to being a function that examines each subrtx itself.
119 (simplify_using_condition, simplify_using_initial_values): Update
122 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
124 * loop-iv.c: Include rtl-iter.h.
125 (find_single_def_src): New function.
126 (replace_single_def_regs): Turn from being a for_each_rtx callback
127 to being a function that examines each subrtx itself.
128 (replace_in_expr, simplify_using_initial_values): Update accordingly.
130 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
132 * jump.c (eh_returnjump_p_1): Delete.
133 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
134 Remove handling of null rtxes.
136 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
138 * jump.c: Include rtl-iter.h.
139 (returnjump_p_1): Delete.
140 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
141 Remove handling of null rtxes.
143 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
145 * ira.c: Include rtl-iter.h.
146 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
147 to being a function that examines each subrtx itself. Remove
148 handling of null rtxes.
149 (update_equiv_regs): Update call accordingly.
151 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
153 * fwprop.c: Include rtl-iter.h.
154 (varying_mem_p): Turn from being a for_each_rtx callback to being
155 a function that examines each subrtx itself.
156 (propagate_rtx): Update accordingly.
158 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
160 * function.c: Include rtl-iter.h
161 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
162 callback to being a function that examines each subrtx itself.
163 Return the changed flag.
164 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
165 (instantiate_virtual_regs): Update calls accordingly.
167 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
169 * final.c: Include rtl-iter.h.
170 (mark_symbol_ref_as_used): Delete.
171 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
174 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
176 * emit-rtl.c: Include rtl-iter.h.
177 (find_auto_inc): Turn from being a for_each_rtx callback to being
178 a function that examines each subrtx itself. Assume the first operand
179 to an RTX_AUTOINC is the automodified register.
180 (try_split): Update call accordingly.
182 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
184 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
185 Return a bool, inverting the result so that 0/false means "not ok".
186 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
188 (mem_loc_descriptor, add_const_value_attribute)
189 (resolve_addr_in_expr): Update calls accordingly.
191 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
193 * dwarf2out.c: Include rtl-iter.h.
194 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
195 Remove unused data parameter. Return a bool, inverting the result
196 so that 0/false means "not ok".
197 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
198 instead of for_each_rtx.
200 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
202 * dse.c: Include rtl-iter.h.
203 (check_mem_read_rtx): Change void * parameter to real type.
205 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
206 for_each_rtx. Don't handle null rtxes.
208 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
210 * df-problems.c: Include rtl-iter.h.
211 (find_memory): Turn from being a for_each_rtx callback to being
212 a function that examines each subrtx itself. Continue to look for
213 volatile references even after a nonvolatile one has been found.
214 (can_move_insns_across): Update calls accordingly.
216 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
218 * ddg.c (walk_mems_2, walk_mems_1): Delete.
219 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
220 to iterate over subrtxes. Return a bool rather than an int.
222 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
224 * ddg.c: Include rtl-iter.h.
225 (mark_mem_use_1): Rename to...
226 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
227 instead of for_each_rtx.
228 (mem_read_insn_p): Update accordingly.
230 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
232 * cse.c (change_cc_mode_args): Delete.
233 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
234 a function that examines each subrtx itself. Take the fields of
235 change_cc_mode_args as argument and return void.
236 (cse_change_cc_mode_insn): Update calls accordingly.
238 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
240 * cse.c (is_dead_reg): Change argument to const_rtx.
241 (dead_debug_insn_data): Delete.
242 (is_dead_debug_insn): Expand commentary. Turn from being a
243 for_each_rtx callback to being a function that examines
244 each subrtx itself. Take the fields of dead_debug_insn_data
246 (delete_trivially_dead_insns): Update call accordingly.
248 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
250 * cse.c (check_for_label_ref): Move earlier in file. Turn from
251 being a for_each_rtx callback to being a function that examines
253 (cse_extended_basic_block): Update call accordingly.
255 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
257 * cse.c (check_dependence_data): Delete.
258 (check_dependence): Change from being a for_each_rtx callback to being
259 a function that examines all subrtxes itself. Don't handle null rtxes.
260 (invalidate): Update call accordingly.
262 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
264 * cse.c: Include rtl-iter.h.
265 (approx_reg_cost_1): Delete.
266 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
267 Don't handle null rtxes.
269 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
271 * cfgcleanup.c: Include rtl-iter.h.
272 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
273 to being a function that examines each subrtx itself.
274 (thread_jump): Update accordingly.
276 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
278 * combine-stack-adj.c: Include rtl-iter.h.
279 (record_stack_refs_data): Delete.
280 (record_stack_refs): Turn from being a for_each_rtx callback
281 to being a function that examines each subrtx itself.
282 Take a pointer to the reflist. Invert sense of return value
283 so that true means success and false means failure. Don't
285 (combine_stack_adjustments_for_block): Update accordingly.
287 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
289 * combine.c (record_truncated_value): Turn from being a for_each_rtx
290 callback to a function that takes an rtx and returns a bool
291 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
294 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
296 * combine.c: Include rtl-iter.h.
297 (unmentioned_reg_p_1): Delete.
298 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
299 Don't handle null rtxes.
301 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
303 * calls.c: Include rtl-iter.h.
304 (internal_arg_pointer_based_exp_1): Delete.
305 (internal_arg_pointer_based_exp): Take a const_rtx.
306 Use FOR_EACH_SUBRTX to iterate over subrtxes.
308 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
310 * caller-save.c: Include rtl-iter.h.
311 (add_used_regs_1): Delete.
312 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
313 to iterate over subrtxes. Assert that any remaining pseudos
316 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
318 * bt-load.c: Include rtl-iter.h.
319 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
320 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
321 to iterate over subrtxes.
322 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
323 find_btr_use rather than btr_referenced_p.
325 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
327 * alias.c: Include rtl-iter.h.
328 (refs_newer_value_cb): Delete.
329 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
331 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
333 * rtl-iter.h: New file.
334 * rtlanal.c: Include it.
335 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
336 (generic_subrtx_iterator <T>::add_single_to_queue)
337 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
338 (generic_subrtx_iterator <T>::free_array): New functions.
339 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
340 (generic_subrtx_iterator <const_rtx_accessor>)
341 (generic_subrtx_iterator <rtx_var_accessor>
342 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
343 (setup_reg_subrtx_bounds): New function.
344 (init_rtlanal): Call it.
346 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
349 * config/sh/sh.md (ashlsi3): Handle negative shift count for
351 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
353 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
355 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
357 2014-08-27 David Malcolm <dmalcolm@redhat.com>
359 * rtl.h (JUMP_LABEL_AS_INSN): New.
361 2014-08-27 David Malcolm <dmalcolm@redhat.com>
363 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
365 (alloc_EXPR_LIST): Strengthen return type from rtx to
367 (remove_free_EXPR_LIST_node): Likewise for param.
368 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
369 from rtx to rtx_expr_list *.
370 * sched-int.h (struct deps_desc): Strengthen fields
371 "pending_read_mems" and "pending_write_mems" from rtx to
374 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
375 rtx to rtx_expr_list *.
376 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
377 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
379 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
380 from rtx to rtx_expr_list *.
381 * loop-iv.c (simplify_using_initial_values): Strengthen local
382 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
383 "pnote_next" from rtx * to rtx_expr_list **.
384 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
385 param "exprp" from rtx * to rtx_expr_list **.
386 (add_insn_mem_dependence): Strengthen local "mem_list" from
387 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
389 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
390 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
391 param "old_mems_p" from rtx * to rtx_expr_list **.
392 * var-tracking.c (struct adjust_mem_data): Strengthen field
393 "side_effects" from rtx to rtx_expr_list *.
394 (adjust_insn): Replace NULL_RTX with NULL when assigning to
396 (prepare_call_arguments): Likewise.
398 2014-08-27 David Malcolm <dmalcolm@redhat.com>
400 * function.h (struct rtl_data): Strengthen field
401 "x_stack_slot_list" from rtx to rtx_expr_list *.
403 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
404 when assigning to stack_slot_list.
406 2014-08-27 David Malcolm <dmalcolm@redhat.com>
408 * function.h (struct rtl_data): Strengthen field
409 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
410 * rtl.h (remove_node_from_expr_list): Strengthen second param from
411 rtx * to rtx_expr_list **.
413 * cfgbuild.c (make_edges): In loop over
414 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
415 rtx_expr_list *, and use methods of the latter class to clarify
417 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
418 rtx_expr_list *, and use methods of the latter class to clarify
420 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
421 * reload1.c (set_initial_label_offsets): Likewise for local "x".
422 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
423 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
424 to rtx_expr_list *. Use methods of the latter class to clarify
427 2014-08-27 David Malcolm <dmalcolm@redhat.com>
429 * function.h (struct expr_status): Strengthen field
430 "x_forced_labels" from rtx to rtx_expr_list *.
432 * cfgbuild.c (make_edges): Split local "x" into two locals,
433 strengthening one from rtx to rtx_expr_list *, and using methods
435 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
436 loop over forced_labels, introduce strengthen it from rtx to
437 rtx_expr_list *, using methods to clarify the code.
438 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
439 to rtx_expr_list *, using methods of said class to clarify the
441 * reload1.c (set_initial_label_offsets): Split local "x" into two
442 per-loop variables, strengthening the first from rtx to
443 rtx_expr_list * and using methods.
445 2014-08-27 David Malcolm <dmalcolm@redhat.com>
447 * coretypes.h (class rtx_expr_list): Add forward declaration.
448 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
449 * gengenrtl.c (special_rtx): Add EXPR_LIST.
450 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
451 invariant: GET_CODE (X) == EXPR_LIST.
452 (is_a_helper <rtx_expr_list *>::test): New.
453 (rtx_expr_list::next): New.
454 (rtx_expr_list::element): New.
455 (gen_rtx_EXPR_LIST): New.
457 2014-08-27 David Malcolm <dmalcolm@redhat.com>
459 * varasm.c (mark_constants): Convert a GET_CODE check into a
460 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
461 Use methods of rtx_sequence to clarify the code.
463 2014-08-27 David Malcolm <dmalcolm@redhat.com>
465 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
466 local "seq" via a checked cast, and use methods of rtx_sequence
467 to simplify the code.
469 2014-08-27 David Malcolm <dmalcolm@redhat.com>
471 * resource.c (mark_referenced_resources): Strengthen local
472 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
473 using methods of rtx_sequence to clarify the code.
474 (find_dead_or_set_registers): Within the switch statement, convert
475 a GET_CODE check to a dyn_cast, introducing local "seq". Within
476 the JUMP_P handling, introduce another local "seq", adding a
477 checked cast to rtx_sequence *. In both cases, use methods of
478 rtx_sequence to clarify the code.
479 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
480 via a checked cast, and use methods of rtx_sequence to simplify
483 2014-08-27 David Malcolm <dmalcolm@redhat.com>
485 * reorg.c (redundant_insn): In two places in the function, replace
486 a check of GET_CODE with a dyn_cast, introducing local "seq", and
487 usings methods of rtx_sequence to clarify the code.
489 2014-08-27 David Malcolm <dmalcolm@redhat.com>
491 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
492 local "seq" with a checked cast, and use methods of rtx_sequence
495 2014-08-27 David Malcolm <dmalcolm@redhat.com>
497 * function.c (contains): Introduce local "seq" for PATTERN (insn),
498 with a checked cast, in the region for where we know it's a
499 SEQUENCE. Use methods of rtx_sequence.
501 2014-08-27 David Malcolm <dmalcolm@redhat.com>
503 * final.c (get_attr_length_1): Replace GET_CODE check with a
504 dyn_cast, introducing local "seq" and the use of methods of
506 (shorten_branches): Likewise, introducing local "body_seq".
507 Strengthen local "inner_insn" from rtx to rtx_insn *.
508 (reemit_insn_block_notes): Replace GET_CODE check with a
509 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
510 Use methods of rtx_sequence.
511 (final_scan_insn): Likewise, introducing local "seq" for when
512 "body" is known to be a SEQUENCE, using its methods.
514 2014-08-27 David Malcolm <dmalcolm@redhat.com>
516 * except.c (can_throw_external): Strengthen local "seq" from rtx
517 to rtx_sequence *. Use methods of rtx_sequence.
518 (insn_nothrow_p): Likewise.
520 2014-08-27 David Malcolm <dmalcolm@redhat.com>
522 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
523 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
524 Use methods of rtx_sequence.
525 (scan_trace): Likewise for local "pat".
527 2014-08-27 David Malcolm <dmalcolm@redhat.com>
529 * coretypes.h (class rtx_sequence): Add forward declaration.
530 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
531 invariant: GET_CODE (X) == SEQUENCE.
532 (is_a_helper <rtx_sequence *>::test): New.
533 (is_a_helper <const rtx_sequence *>::test): New.
534 (rtx_sequence::len): New.
535 (rtx_sequence::element): New.
536 (rtx_sequence::insn): New.
538 2014-08-27 David Malcolm <dmalcolm@redhat.com>
540 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
542 (alloc_INSN_LIST): Strengthen return type from rtx to
544 (copy_INSN_LIST): Likewise for return type and param.
545 (concat_INSN_LIST): Likewise for both params and return type.
546 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
547 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
548 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
549 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
551 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
552 "implicit_sets", "control_uses", "clobbers" from rtx to
554 (struct deps_desc): Likewise for fields "pending_read_insns",
555 "pending_write_insns", "pending_jump_insns",
556 "last_pending_memory_flush", "last_function_call",
557 "last_function_call_may_noreturn", "sched_before_next_call",
558 "sched_before_next_jump".
559 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
560 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
562 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
563 from rtx to rtx_insn_list *.
564 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
567 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
569 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
571 (queue_insn): Likewise for local "link".
572 (struct haifa_saved_data): Strengthen field "insn_queue" from
573 rtx * to rtx_insn_list **.
574 (save_backtrack_point): Update allocation of save->insn_queue to
575 reflect the strengthening of elements from rtx to rtx_insn_list *.
576 (queue_to_ready): Strengthen local "link" from rtx to
577 rtx_insn_list *; use methods "next" and "insn" when traversing the
579 (early_queue_to_ready): Likewise for locals "link", "next_link",
581 (schedule_block): Update allocation of insn_queue to reflect the
582 strengthening of elements from rtx to rtx_insn_list *. Strengthen
583 local "link" from rtx to rtx_insn_list *, and use methods when
585 (add_to_speculative_block): Strengthen locals "twins" and
586 "next_node" from rtx to rtx_insn_list *, and use methods when
587 working with them. Strengthen local "twin" from rtx to
588 rtx_insn *, eliminating a checked cast.
589 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
590 from rtx to rtx_insn_list *, and use methods when working with
593 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
594 from rtx to rtx_insn_list *, adding a checked cast.
595 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
597 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
598 "newlink" from rtx to rtx_insn_list *. Strengthen local
599 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
600 from rtx to rtx_insn *.
601 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
602 from rtx to rtx_insn_list *. Use methods of the latter class.
603 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
604 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
605 (remove_free_INSN_LIST_node): Strengthen return type and local
606 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
607 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
608 rtx_insn_list *, using "insn" method.
610 * sched-deps.c (add_dependence_list): Strengthen param "list"
611 from rtx to rtx_insn_list *, and use methods when working with it.
612 (add_dependence_list_and_free): Strengthen param "listp" from
613 rtx * to rtx_insn_list **.
614 (remove_from_dependence_list): Strenghten param "listp" from rtx *
615 to rtx_insn_list **, and use methods when working with *listp.
616 (remove_from_both_dependence_lists): Strengthen param "listp" from
617 rtx * to rtx_insn_list **
618 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
619 to rtx_insn_list **. Eliminate local "link", in favor of two new
620 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
622 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
623 by introducing local "cond_deps".
624 (remove_from_deps): Strengthen param "insn" from rtx to
627 * sched-rgn.c (concat_insn_mem_list): Strengthen param
628 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
629 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
630 Use methods of rtx_insn_list.
632 * store-motion.c (struct st_expr): Strengthen fields
633 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
634 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
636 (find_moveable_store): Split out "tmp" into multiple more-tightly
637 scoped locals. Use methods of rtx_insn_list *.
638 (compute_store_table): Strengthen local "tmp" from rtx to
639 rtx_insn *. Use methods of rtx_insn_list *.
641 2014-08-27 David Malcolm <dmalcolm@redhat.com>
643 * coretypes.h (class rtx_insn_list): Add forward declaration.
644 * rtl.h (class rtx_insn_list): New subclass of rtx_def
645 (is_a_helper <rtx_insn_list *>::test): New.
646 (rtx_insn_list::next): New.
647 (rtx_insn_list::insn): New.
648 (gen_rtx_INSN_LIST): Add prototype.
649 * emit-rtl.c (gen_rtx_INSN_LIST): New.
650 * gengenrtl.c (special_rtx): Add INSN_LIST.
652 2014-08-27 David Malcolm <dmalcolm@redhat.com>
654 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
655 "prev" from rtx to rtx_insn *.
657 2014-08-27 David Malcolm <dmalcolm@redhat.com>
659 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
660 functions. Require merely an rtx for now, not an rtx_insn *.
661 (BLOCK_FOR_INSN): Likewise.
662 (INSN_LOCATION): Likewise.
663 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
665 2014-08-27 David Malcolm <dmalcolm@redhat.com>
667 * rtl.h (PATTERN): Convert this macro into a pair of inline
668 functions, for now, requiring const_rtx and rtx.
670 2014-08-27 David Malcolm <dmalcolm@redhat.com>
672 * target.def (unwind_emit): Strengthen param "insn" from rtx to
674 (final_postscan_insn): Likewise.
675 (adjust_cost): Likewise.
676 (adjust_priority): Likewise.
677 (variable_issue): Likewise.
678 (macro_fusion_pair_p): Likewise.
679 (dfa_post_cycle_insn): Likewise.
680 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
681 (first_cycle_multipass_issue): Likewise.
682 (dfa_new_cycle): Likewise.
683 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
684 (speculate_insn): Likewise for param "insn".
685 (gen_spec_check): Likewise for params "insn" and "label".
686 (get_insn_spec_ds): Likewise for param "insn".
687 (get_insn_checked_ds): Likewise.
688 (dispatch_do): Likewise.
689 (dispatch): Likewise.
690 (cannot_copy_insn_p): Likewise.
691 (invalid_within_doloop): Likewise.
692 (legitimate_combined_insn): Likewise.
696 * doc/tm.texi: Automatically updated to reflect changes to
699 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
701 (schedule_block): Likewise.
702 (sched_init): Likewise.
703 (sched_speculate_insn): Strengthen param "insn" from rtx to
705 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
707 * hooks.c (hook_bool_rtx_true): Rename to...
708 hook_bool_rtx_insn_true): ...this, and strengthen first param from
710 (hook_constcharptr_const_rtx_null): Rename to...
711 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
712 first param from const_rtx to const rtx_insn *.
713 (hook_bool_rtx_int_false): Rename to...
714 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
715 param from rtx to rtx_insn *.
716 (hook_void_rtx_int): Rename to...
717 (hook_void_rtx_insn_int): ...this, and strengthen first param from
720 * hooks.h (hook_bool_rtx_true): Rename to...
721 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
723 (hook_bool_rtx_int_false): Rename to...
724 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
725 param from rtx to rtx_insn *.
726 (hook_void_rtx_int): Rename to...
727 (hook_void_rtx_insn_int): ...this, and strengthen first param from
729 (hook_constcharptr_const_rtx_null): Rename to...
730 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
731 first param from const_rtx to const rtx_insn *.
733 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
734 and local "prev" from rtx to rtx_insn *.
736 * sched-int.h (sched_speculate_insn): Strengthen first param from
739 * sel-sched.c (create_speculation_check): Likewise for local "label".
740 * targhooks.c (default_invalid_within_doloop): Strengthen param
741 "insn" from const_rtx to const rtx_insn *.
742 * targhooks.h (default_invalid_within_doloop): Strengthen param
743 from const_rtx to const rtx_insn *.
745 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
746 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
748 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
750 (arc_invalid_within_doloop): Likewise, with const.
752 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
753 (arm_cannot_copy_insn_p): Likewise for param "insn".
754 (arm_unwind_emit): Likewise.
756 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
759 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
760 (c6x_variable_issue): Likewise. Removed now-redundant checked
762 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
764 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
765 Likewise for param "insn".
766 (epiphany_mode_after): Likewise.
767 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
768 params "insn", "dep_insn".
769 (epiphany_mode_needed): Likewise for param "insn".
770 (epiphany_mode_after): Likewise.
772 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
773 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
774 (ix86_avx_u128_mode_needed): Likewise.
775 (ix86_i387_mode_needed): Likewise.
776 (ix86_mode_needed): Likewise.
777 (ix86_avx_u128_mode_after): Likewise.
778 (ix86_mode_after): Likewise.
779 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
780 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
781 (ix86_adjust_priority): Likewise for param "insn".
782 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
783 (do_dispatch): Likewise.
784 (has_dispatch): Likewise.
785 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
787 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
788 reflect renaming of default hook implementation from
789 hook_constcharptr_const_rtx_null to
790 hook_constcharptr_const_rtx_insn_null.
791 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
793 (ia64_variable_issue): Likewise for param "insn".
794 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
795 (ia64_dfa_new_cycle): Likewise.
796 (ia64_get_insn_spec_ds): Likewise.
797 (ia64_get_insn_checked_ds): Likewise.
798 (ia64_speculate_insn): Likewise.
799 (ia64_gen_spec_check): Likewise for params "insn", "label".
800 (ia64_asm_unwind_emit): Likewise for param "insn".
802 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
804 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
806 (m68k_sched_variable_issue): Likewise for param "insn".
808 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
811 * config/microblaze/microblaze.c (microblaze_adjust_cost):
812 Likewise for params "insn", "dep".
814 * config/mips/mips.c (mips_adjust_cost): Likewise.
815 (mips_variable_issue): Likewise for param "insn".
816 (mips_final_postscan_insn): Likewise.
818 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
819 for params "insn", "dep".
821 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
823 (pa_adjust_priority): Likewise for param "insn".
825 * config/picochip/picochip.c (picochip_sched_adjust_cost):
826 Likewise for params "insn", "dep_insn".
828 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
830 (rs6000_variable_issue): Likewise.
831 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
832 (rs6000_debug_adjust_cost): Likewise.
833 (rs6000_adjust_priority): Likewise for param "insn".
834 (rs6000_use_sched_lookahead_guard): Likewise.
835 (get_next_active_insn): Likewise for return type and both params.
836 (redefine_groups): Likewise for params "prev_head_insn", "tail"
837 and locals "insn", "next_insn".
838 (pad_groups): Likewise.
840 * config/s390/s390.c (s390_adjust_priority): Likewise for param
842 (s390_cannot_copy_insn_p): Likewise.
843 (s390_sched_variable_issue): Likewise for third param, eliminating
845 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
846 default hook implementation from hook_constcharptr_const_rtx_null
847 to hook_constcharptr_const_rtx_insn_null.
849 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
850 from rtx to rtx_insn *.
851 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
852 (sh_variable_issue): Likewise for param "insn".
853 (sh_dfa_new_cycle): Likewise.
854 (sh_mode_needed): Likewise.
855 (sh_mode_after): Likewise.
857 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
858 params "insn", "dep_insn".
859 (hypersparc_adjust_cost): Likewise.
860 (sparc_adjust_cost): Likewise.
862 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
863 param, eliminated checked cast.
864 (spu_sched_adjust_cost): Likewise for first and third params.
866 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
867 params "insn" and "dep_insn" from rtx to rtx_insn *.
869 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
871 2014-08-27 David Malcolm <dmalcolm@redhat.com>
873 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
874 (set_is_load_p): ...this, updating to work on a SET pattern rather
876 (is_store_insn): Rename to...
877 (set_is_store_p): ...this, updating to work on a SET pattern
879 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
880 top of function to where it is needed. Rewrite the bogus
881 condition that checks for "insn" and "dep" being PARALLEL to
882 instead use single_set, introducing locals "insn_set" and
883 "dep_set". Given that we only ever returned "cost" for a non-pair
884 of SETs, bail out early if we don't have a pair of SET.
885 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
886 use the new locals "insn_set" and "dep_set", and update calls to
887 is_load_insn and is_store_insn to be calls to set_is_load_p and
890 2014-08-27 Guozhi Wei <carrot@google.com>
893 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
894 amount before using it.
896 2014-08-27 Richard Biener <rguenther@suse.de>
898 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
899 get_maxval_strlen inside a more useful API.
900 (gimple_fold_builtin_with_strlen): Remove and fold into ...
901 (gimple_fold_builtin): ... caller.
902 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
903 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
904 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
905 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
906 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
907 gimple_fold_builtin_sprintf): Adjust to compute maxval
910 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
913 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
915 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
916 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
917 Anna Tikhonova <anna.tikhonova@intel.com>
918 Ilya Tocar <ilya.tocar@intel.com>
919 Andrey Turetskiy <andrey.turetskiy@intel.com>
920 Ilya Verbin <ilya.verbin@intel.com>
921 Kirill Yukhin <kirill.yukhin@intel.com>
922 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
925 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
926 Use `concat_tg_mode' attribute to determine asm register size.
928 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
929 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
930 Anna Tikhonova <anna.tikhonova@intel.com>
931 Ilya Tocar <ilya.tocar@intel.com>
932 Andrey Turetskiy <andrey.turetskiy@intel.com>
933 Ilya Verbin <ilya.verbin@intel.com>
934 Kirill Yukhin <kirill.yukhin@intel.com>
935 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
938 (define_mode_iterator VI48_AVX512VL): New.
939 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
940 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
941 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
942 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
943 with VI1): Change mode iterator.
944 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
945 with VI_ULOADSTORE_BW_AVX512VL): New.
946 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
947 with VI_ULOADSTORE_F_AVX512VL): Ditto.
948 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
949 with VI1): Change mode iterator.
950 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
951 with VI_ULOADSTORE_BW_AVX512VL): New.
952 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
953 with VI_ULOADSTORE_F_AVX512VL): Ditto.
954 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
955 with VI1): Change mode iterator.
956 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
957 with VI_ULOADSTORE_BW_AVX512VL): New.
958 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
959 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
960 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
961 (define_insn "<avx512>_storedqu<mode>_mask" with
963 (define_insn "<avx512>_storedqu<mode>_mask" with
964 VI12_AVX512VL): Ditto.
966 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
967 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
968 Anna Tikhonova <anna.tikhonova@intel.com>
969 Ilya Tocar <ilya.tocar@intel.com>
970 Andrey Turetskiy <andrey.turetskiy@intel.com>
971 Ilya Verbin <ilya.verbin@intel.com>
972 Kirill Yukhin <kirill.yukhin@intel.com>
973 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
976 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
977 (define_mode_iterator VI48_AVX512BW): New.
978 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
979 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
980 with VI48_AVX2_48_AVX512F): New.
981 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
982 with VI2_AVX512VL): Ditto.
984 2014-08-27 Richard Biener <rguenther@suse.de>
987 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
988 (fold_builtin_3): Do not fold strcat_chk here.
989 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
991 (gimple_fold_builtin): Fold strcat_chk here.
993 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
995 * dwarf2out.h (dwarf2out_decl): Remove prototype.
996 * dwarf2out.c (dwarf2out_decl): Make static.
998 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
1000 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
1002 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1004 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
1005 from rtx to rtx_insn *.
1006 (cselib_lookup_from_insn): Likewise for final param.
1007 (cselib_subst_to_values_from_insn): Likewise.
1008 (cselib_add_permanent_equiv): Likewise.
1010 * cselib.c (cselib_current_insn): Likewise for this variable.
1011 (cselib_subst_to_values_from_insn): Likewise for param "insn".
1012 (cselib_lookup_from_insn): Likewise.
1013 (cselib_add_permanent_equiv): Likewise for param "insn" and local
1014 "save_cselib_current_insn".
1015 (cselib_process_insn): Replace use of NULL_RTX with NULL.
1017 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
1018 from rtx to rtx_insn *.
1020 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1022 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
1025 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1027 * df.h (df_dump_insn_problem_function): Strengthen first param of
1028 this callback from const_rtx to const rtx_insn *.
1029 (struct df_insn_info): Strengthen field "insn" from rtx to
1031 (DF_REF_INSN): Eliminate this function, reinstating the older
1033 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
1034 (df_reg_defined): Likewise.
1035 (df_find_use): Likewise.
1036 (df_reg_used): Likewise.
1037 (df_dump_insn_top): Strengthen param 1 from const_rtx to
1039 (df_dump_insn_bottom): Likewise.
1040 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
1041 (df_insn_debug_regno): Likewise.
1042 (debug_df_insn): Likewise.
1043 (df_rd_simulate_one_insn): Likewise for param 2.
1044 (df_word_lr_simulate_defs): Likewise for param 1.
1045 (df_word_lr_simulate_uses): Likewise.
1046 (df_md_simulate_one_insn): Likewise for param 2.
1047 (df_simulate_find_noclobber_defs): Likewise for param 1.
1048 (df_simulate_find_defs): Likewise.
1049 (df_simulate_defs): Likewise.
1050 (df_simulate_uses): Likewise.
1051 (df_simulate_one_insn_backwards): Likewise for param 2.
1052 (df_simulate_one_insn_forwards): Likewise.
1053 (df_uses_create): Likewise for param 2.
1054 (df_insn_create_insn_record): Likewise for param 1.
1055 (df_insn_delete): Likewise.
1056 (df_insn_rescan): Likewise.
1057 (df_insn_rescan_debug_internal): Likewise.
1058 (df_insn_change_bb): Likewise.
1059 (df_notes_rescan): Likewise.
1060 * rtl.h (remove_death): Likewise for param 2.
1061 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
1063 * sched-int.h (reemit_notes): Strengthen param from rtx to
1065 * valtrack.h (propagate_for_debug): Likewise for param 1.
1067 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
1068 local "tmp_rtx" from const_rtx to const rtx_insn *.
1069 * combine.c (remove_death): Strengthen param "insn" from rtx to
1071 (move_deaths): Likewise for local "where_dead".
1072 * cse.c (delete_trivially_dead_insns): Introduce local
1073 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
1074 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
1076 (df_reg_defined): Likewise.
1077 (df_find_use): Likewise.
1078 (df_reg_used): Likewise.
1079 (df_dump_insn_problem_data): Strengthen param "insn" from
1080 const_rtx to const rtx_insn *.
1081 (df_dump_insn_top): Likewise.
1082 (df_dump_insn_bottom): Likewise.
1083 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
1084 (df_insn_debug_regno): Likewise.
1085 (debug_df_insn): Likewise.
1086 (DF_REF_INSN): Delete.
1087 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
1088 from rtx to rtx_insn *.
1089 (df_chain_insn_top_dump): Strengthen param "insn" from
1090 const_rtx to const rtx_insn *.
1091 (df_chain_insn_bottom_dump): Likewise.
1092 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
1094 (df_word_lr_simulate_uses): Likewise.
1095 (df_print_note): Likewise.
1096 (df_remove_dead_and_unused_notes): Likewise.
1097 (df_set_unused_notes_for_mw): Likewise.
1098 (df_set_dead_notes_for_mw): Likewise.
1099 (df_create_unused_note): Likewise.
1100 (df_simulate_find_defs): Likewise.
1101 (df_simulate_find_uses): Likewise.
1102 (df_simulate_find_noclobber_defs): Likewise.
1103 (df_simulate_defs): Likewise.
1104 (df_simulate_uses): Likewise.
1105 (df_simulate_one_insn_backwards): Likewise.
1106 (df_simulate_one_insn_forwards): Likewise.
1107 (df_md_simulate_one_insn): Likewise.
1108 * df-scan.c (df_uses_create): Likewise.
1109 (df_insn_create_insn_record): Likewise.
1110 (df_insn_delete): Likewise.
1111 (df_insn_rescan): Likewise.
1112 (df_insn_rescan_debug_internal): Likewise.
1113 (df_insn_change_bb): Likewise.
1114 (df_notes_rescan): Likewise.
1115 (df_refs_add_to_chains): Likewise.
1116 (df_insn_refs_verify): Likewise.
1117 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
1118 when invoking df_insn_delete.
1119 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
1120 (set_unique_reg_note): Add checked cast.
1121 * final.c (cleanup_subreg_operands): Likewise.
1122 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
1123 "insn" from rtx to rtx_insn *.
1124 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
1125 "last" from rtx to rtx_insn *.
1126 * ira-emit.c (change_regs_in_insn): New function.
1127 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
1128 Invoke change_regs_in_insn rather than change_regs.
1129 * ira.c (update_equiv_regs): Strengthen locals "insn",
1130 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
1131 for_each_rtx_in_insn rather than for_each_rtx.
1132 * recog.c (confirm_change_group): Add checked casts.
1133 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
1135 (peep2_fill_buffer): Add checked cast.
1136 * rtlanal.c (remove_note): Likewise.
1137 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
1138 locals "next" "end" from rtx to rtx_insn *.
1140 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1142 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
1144 (struct reg_use_data): Likewise for field "insn".
1145 (insn_cost): Likewise for param.
1146 (real_insn_for_shadow): Likewise for return type and param.
1147 (increase_insn_priority): Likewise for param 1.
1148 (debug_dependencies): Likewise for both params.
1150 * haifa-sched.c (insn_delay): Likewise for param "insn".
1151 (real_insn_for_shadow): Likewise for return type and param "insn".
1152 (update_insn_after_change): Likewise for param "insn".
1153 (recompute_todo_spec): Likewise for param "next" and locals "pro",
1155 (insn_cost): Likewise for param "insn".
1156 (increase_insn_priority): Likewise.
1157 (calculate_reg_deaths): Likewise.
1158 (setup_insn_reg_pressure_info): Likewise.
1159 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1160 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1161 (model_recompute): Likewise.
1162 (must_restore_pattern_p): Likewise for param "next".
1163 (model_excess_cost): Likewise for param "insn".
1164 (queue_remove): Likewise.
1165 (adjust_priority): Likewise for param "prev".
1166 (update_register_pressure): Likewise for param "insn".
1167 (setup_insn_max_reg_pressure): Likewise for local "insn".
1168 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1169 (model_add_to_schedule): Likewise.
1170 (model_reset_queue_indices): Likewise for local "insn".
1171 (unschedule_insns_until): Strengthen local "recompute_vec" from
1172 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1173 "con" from rtx to rtx_insn *.
1174 (restore_last_backtrack_point): Likewise for both locals "x". Add
1176 (estimate_insn_tick): Likewise for param "insn".
1177 (commit_schedule): Likewise for params "prev_head", "tail" and
1179 (verify_shadows): Likewise for locals "i1", "i2".
1180 (dump_insn_stream): Likewise for params "head", "tail" and locals
1181 "next_tail", "insn".
1182 (schedule_block): Likewise for locals "insn", "x". Add a checked
1184 (fix_inter_tick): Likewise for params "head", "tail".
1185 (create_check_block_twin): Likewise for local "jump".
1186 (haifa_change_pattern): Likewise for param "insn".
1187 (haifa_speculate_insn): Likewise.
1188 (dump_new_block_header): Likewise for params "head", "tail".
1189 (fix_jump_move): Likewise for param "jump".
1190 (move_block_after_check): Likewise.
1191 (sched_init_insn_luid): Likewise for param "insn".
1192 (sched_init_luids): Likewise for local "insn".
1193 (insn_luid): Likewise for param "insn".
1194 (init_h_i_d): Likewise.
1195 (haifa_init_h_i_d): Likewise for local "insn".
1196 (haifa_init_insn): Likewise for param "insn".
1197 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1199 (create_insn_reg_use): Likewise for param "insn".
1200 (setup_insn_reg_uses): Likewise. Add a checked cast.
1201 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1202 "tail" from rtx to rtx_insn *.
1203 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1204 "insn", "next_tail".
1206 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1208 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1209 from rtx to rtx_insn *.
1210 (model_add_to_schedule): Likewise for locals "start", "end",
1213 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1215 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1217 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1218 "to" and locals "insn", "next", "copy". Remove now-redundant
1221 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1223 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1224 rtx_insn * and param 4 from rtx * to rtx_insn **.
1225 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1226 param 2 from rtx * to rtx_insn **.
1228 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1229 rtx_insn * and final param from rtx * to rtx_insn **.
1231 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1232 from rtx to rtx_insn *.
1233 (try_head_merge_bb): Likewise for both locals named "move_upto".
1234 * df-problems.c (can_move_insns_across): Likewise for params
1235 "from", "to", "across_from", "across_to" and locals "insn",
1236 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1238 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1239 from rtx to rtx_insn *.
1240 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1241 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1242 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1244 (noce_try_abs): Likewise.
1245 (noce_get_condition): Likewise for param "jump". Strengthen param
1246 "earliest" from rtx * to rtx_insn **.
1247 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1249 (find_cond_trap): Likewise.
1250 (dead_or_predicable): Likewise for local "earliest".
1251 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1253 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1254 and local "prev". Strengthen param "earliest" from rtx * to
1256 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1257 Strengthen param "earliest" from rtx * to rtx_insn **.
1259 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1261 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1262 "to" and local "insn" from rtx to rtx_insn *.
1264 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1266 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1267 from rtx to rtx_insn *.
1268 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1269 (code_motion_path_driver): Likewise for local "last_insn".
1270 (simplify_changed_insns): Likewise for local "insn".
1272 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1274 * rtl.h (push_to_sequence): Strengthen param from rtx to
1276 (push_to_sequence2): Likewise for both params.
1277 (delete_insns_since): Likewise for param.
1278 (reorder_insns_nobb): Likewise for all three params.
1279 (set_new_first_and_last_insn): Likewise for both params.
1281 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1282 rtx_insn *. Remove now-redundant cast.
1283 (set_last_insn): Likewise.
1285 * builtins.c (expand_builtin_return): Strengthen local
1286 "call_fusage" from rtx to rtx_insn *.
1287 * cfgrtl.c (create_basic_block_structure): Likewise for local
1289 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1290 "first", "last" and local "insn".
1291 (delete_insns_since): Likewise for param "from".
1292 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1294 (push_to_sequence): Likewise for param "first" and local "last".
1295 (push_to_sequence2): Likewise for params "first" and "last".
1296 * lra.c (emit_add3_insn): Likewise for local "last".
1297 (lra_emit_add): Likewise.
1298 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1300 (process_address_1): Likewise for locals "insn", last".
1301 * modulo-sched.c (ps_first_note): Likewise for return type.
1302 * optabs.c (expand_binop_directly): Likewise for param "last".
1304 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1306 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1308 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1310 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1312 * function.h (struct sequence_stack): Strengthen fields "first"
1313 and "last" from rtx to rtx_insn *.
1314 (struct emit_status): Likewise for fields "x_first_insn" and
1317 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1318 (set_first_insn): Add checked cast.
1319 (get_last_insn): Remove now-redundant checked cast.
1320 (set_last_insn): Add checked cast.
1322 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1323 "saved_first" and "saved_last" from rtx to rtx_insn *.
1325 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1327 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1328 (unlink_insn_chain): Strengthen both params from rtx to
1331 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1333 (unlink_insn_chain): Likewise for params "first" and "last".
1334 Remove now-redundant checked cast.
1335 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1336 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1338 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1340 (add_insn): Likewise for param "insn" and local "prev".
1341 (add_insn_after_nobb): Likewise for both params and local "next".
1342 (add_insn_before_nobb): Likewise for both params and local "prev".
1343 (add_insn_after): Rename param "after" to "uncast_after",
1344 introducing local "after" with another checked cast.
1345 (add_insn_before): Rename params "insn" and "before", giving them
1346 "uncast_" prefixes, adding the old names back using checked casts.
1347 (emit_note_after): Likewise for param "after".
1348 (emit_note_before): Likewise for param "before".
1349 (emit_label): Add a checked cast.
1351 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1353 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1354 "insn" from rtx to rtx_insn *.
1356 * cselib.c (cselib_record_sets_hook): Likewise.
1358 * var-tracking.c (add_with_sets): Likewise, renaming back from
1359 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1362 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1364 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1365 and "header_" from rtx to rtx_insn *.
1366 (struct basic_block_d): Likewise for field "head_" within "x"
1367 field of union basic_block_il_dependent.
1368 (BB_HEAD): Drop function...
1369 (SET_BB_HEAD): ...and this function in favor of...
1370 (BB_HEAD): ...reinstate macro.
1371 (BB_END): Drop function...
1372 (SET_BB_END): ...and this function in favor of...
1373 (BB_END): ...reinstate macro.
1374 (BB_HEADER): Drop function...
1375 (SET_BB_HEADER): ...and this function in favor of...
1376 (BB_HEADER): ...reinstate macro.
1378 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1379 (fix_crossing_unconditional_branches): Likewise.
1380 * caller-save.c (save_call_clobbered_regs): Likewise.
1381 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1382 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1383 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1384 (merge_blocks_move_successor_nojumps): Likewise.
1385 (outgoing_edges_match): Update use of for_each_rtx to
1386 for_each_rtx_in_insn.
1387 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1388 (expand_gimple_cond): Likewise.
1389 (expand_gimple_tailcall): Likewise.
1390 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1392 (construct_exit_block): Drop use of SET_BB_END.
1393 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1395 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1396 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1397 SET_BB_HEAD and SET_BB_END.
1398 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1400 (rtl_delete_block): Drop use of SET_BB_HEAD.
1401 (rtl_split_block): Drop use of SET_BB_END.
1402 (emit_nop_for_unique_locus_between): Likewise.
1403 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1404 (block_label): Drop use of SET_BB_HEAD.
1405 (fixup_abnormal_edges): Drop use of SET_BB_END.
1406 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1407 (relink_block_chain): Likewise.
1408 (fixup_reorder_chain): Drop use of SET_BB_END.
1409 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1410 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1411 rtx_insn **. Drop use of SET_BB_HEADER.
1412 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1414 (BB_HEAD): Delete this function.
1415 (SET_BB_HEAD): Likewise.
1417 (SET_BB_END): Likewise.
1418 (BB_HEADER): Likewise.
1419 (SET_BB_HEADER): Likewise.
1420 * emit-rtl.c (add_insn_after): Rename param "insn" to
1421 "uncast_insn", adding a new local "insn" and a checked cast to
1422 rtx_insn *. Drop use of SET_BB_END.
1423 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1424 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1425 (reorder_insns): Drop use of SET_BB_END.
1426 (emit_insn_after_1): Strengthen param "first" and locals "last",
1427 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1428 (emit_pattern_after_noloc): Add checked cast.
1429 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1430 (restore_other_notes): Likewise.
1431 (move_insn): Likewise.
1432 (sched_extend_bb): Likewise.
1433 (fix_jump_move): Likewise.
1434 * ifcvt.c (noce_process_if_block): Likewise.
1435 (dead_or_predicable): Likewise.
1436 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1437 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1438 * sel-sched-ir.c (sel_move_insn): Likewise.
1439 * sel-sched.c (move_nop_to_previous_block): Likewise.
1441 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1443 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1445 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1447 * basic-block.h (create_basic_block_structure): Strengthen params
1448 1 "head" and 2 "end" from rtx to rtx_insn *.
1449 * cfgrtl.c (create_basic_block_structure): Likewise.
1450 (rtl_create_basic_block): Update casts from void * to rtx to
1451 rtx_insn *, so that we can pass them as rtx_insn * to
1452 create_basic_block_structure.
1453 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1455 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1457 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1459 (check_for_inc_dec): Strengthen param "insn" from rtx to
1462 * cselib.h (cselib_process_insn): Likewise.
1464 * cselib.c (cselib_record_sets): Likewise.
1465 (cselib_process_insn): Likewise.
1467 * dse.c (struct insn_info): Likewise for field "insn".
1468 (check_for_inc_dec_1): Likewise for local "insn".
1469 (check_for_inc_dec): Likewise for param "insn".
1470 (scan_insn): Likewise.
1471 (dse_step1): Likewise for local "insn".
1473 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1474 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1476 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1478 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1479 from rtx to rtx_insn *.
1480 (DEP_PRO): Delete this function and...
1481 (SET_DEP_PRO): ...this function in favor of...
1482 (DEP_PRO): ...reinstate this macro.
1483 (DEP_CON): Delete this function and...
1484 (SET_DEP_CON): ...this function in favor of...
1485 (DEP_CON): ...reinstate this old macro.
1486 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1487 (init_dep): Likewise.
1488 (set_priorities): Likewise for both params.
1489 (sd_copy_back_deps): Likewise for params 1 and 2.
1491 * haifa-sched.c (priority): Likewise for param "insn" and local
1493 (set_priorities): Likewise for params "head" and "tail" and local
1495 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1497 (add_to_speculative_block): Add a checked cast.
1498 (create_check_block_twin): Drop use of SET_DEP_CON.
1499 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1502 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1503 Drop use of SET_DEP_PRO
1504 (init_dep): Strengthen params "pro" and "con" from rtx to
1506 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1510 (SET_DEP_PRO): Delete.
1511 (SET_DEP_CON): Delete.
1513 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1515 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1516 from rtx to rtx_insn *.
1517 (VINSN_INSN_RTX): Eliminate rvalue function and...
1518 (SET_VINSN_INSN): ...lvalue function in favor of...
1519 (VINSN_INSN_RTX): reinstate this old macro.
1521 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1522 in favor of VINSN_INSN_RTX.
1523 (VINSN_INSN_RTX): Delete this function.
1524 (SET_VINSN_INSN_RTX): Likewise.
1526 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1528 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1529 (BND_TO): Delete this function and...
1530 (SET_BND_TO): ...this functions in favor of...
1531 (BND_TO): ...reinstating this macro.
1532 (struct _fence): Strengthen field "executing_insns" from
1533 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1534 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1535 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1536 and param "insn" from rtx to insn_t.
1537 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1540 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1542 (rtx_vec_t): Likewise.
1543 (struct sched_deps_info_def): Strengthen param of "start_insn"
1544 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1545 "note_mem_dep" callback and first param of "note_dep" callback.
1547 * haifa-sched.c (add_to_speculative_block): Strengthen param
1548 "insn" from rtx to rtx_insn *.
1549 (clear_priorities): Likewise.
1550 (calc_priorities): Likewise for local "insn".
1552 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1553 Remove redundant checked cast.
1554 (haifa_note_mem_dep): Likewise for param "pending_insn".
1555 (haifa_note_dep): Likewise for param "elem".
1556 (note_mem_dep): Likewise for param "e".
1557 (sched_analyze_1): Add checked casts.
1558 (sched_analyze_2): Likewise.
1560 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1561 from rtx to rtx_insn *.
1562 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1563 from vec<rtx> * to vec<rtx_insn *> *.
1565 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1567 (flist_add): Strengthen param "executing_insns" from
1568 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1569 (advance_deps_context): Remove now-redundant checked cast.
1570 (init_fences): Replace uses of NULL_RTX with NULL.
1571 (merge_fences): Strengthen params "last_scheduled_insn" and
1572 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1573 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1574 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1575 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1576 an instruction, rather than doing double-duty as a pattern.
1577 (return_nop_to_pool): Update for change of insn_t.
1578 (deps_init_id): Remove now-redundant checked cast.
1579 (struct sched_scan_info_def): Strengthen param of "init_insn"
1580 callback from rtx to insn_t.
1581 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1582 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1584 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1585 "end" from rtx to rtx_insn *.
1586 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1587 (rtx insn_rtx, bool force_unique_p)
1588 (BND_TO): Delete function.
1589 (SET_BND_TO): Delete function.
1591 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1593 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1594 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1596 (undo_transformations): Likewise for param "insn".
1597 (update_liveness_on_insn): Likewise.
1598 (compute_live_below_insn): Likewise for param "insn" and local
1600 (update_data_sets): Likewise for param "insn".
1601 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1602 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1603 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1605 (move_cond_jump): Likewise for param "insn".
1606 (move_cond_jump): Drop use of SET_BND_TO.
1607 (compute_av_set_on_boundaries): Likewise.
1608 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1609 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1610 from rtx to rtx_insn *.
1611 (maybe_emit_renaming_copy): Likewise for param "insn".
1612 (maybe_emit_speculative_check): Likewise.
1613 (handle_emitting_transformations): Likewise.
1614 (remove_insn_from_stream): Likewise.
1615 (code_motion_process_successors): Strengthen local "succ" from rtx
1618 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1620 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1621 ilist_t, not _xlist_t;
1622 (ILIST_INSN): Define in terms of new union field "insn".
1623 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1625 (struct _list_node): Add new field "insn" to the union, of type
1627 (ilist_add): Replace macro with an inline function, requiring an
1629 (ilist_remove): Define this macro directly in terms of
1630 _list_remove, rather than indirectly via _xlist_remove.
1631 (ilist_clear): Likewise, in terms of _list_clear rather than
1633 (ilist_is_in_p): Replace macro with an inline function, requiring
1635 (_list_iter_cond_insn): New function.
1636 (ilist_iter_remove): Define this macro directly in terms of
1637 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1638 (ilist_iterator): Define directly in terms of _list_iterator
1639 rather than indirectly through _xlist_iterator.
1640 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1641 than in terms of _FOR_EACH_X.
1642 (FOR_EACH_INSN_1): Likewise.
1644 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1648 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1649 DECL_HARD_REGISTER and return for invalid register specifications.
1650 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1651 DECL_HARD_REGISTER, call expand_one_error_var.
1652 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1653 CC_REGNUM with non-MODE_CC modes.
1654 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1656 2014-08-26 Marek Polacek <polacek@redhat.com>
1659 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1661 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1663 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1664 qi cost; add di cost.
1665 (cortexa57_addrcost_table): Likewise.
1667 2014-08-26 Marek Polacek <polacek@redhat.com>
1670 * expr.c (is_aligning_offset): Remove logical not.
1672 2014-08-26 Marek Polacek <polacek@redhat.com>
1675 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1676 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1678 2014-08-26 Richard Biener <rguenther@suse.de>
1680 PR tree-optimization/62175
1681 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1682 expand possibly trapping operations.
1684 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1686 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1687 "insn" from rtx to rtx_insn *.
1688 (permute_load): Likewise for param "insn".
1689 (permute_store): Likewise.
1690 (handle_special_swappables): Likewise for local "insn".
1691 (replace_swap_with_copy): Likewise for locals "insn" and
1693 (rs6000_analyze_swaps): Likewise for local "insn".
1695 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1697 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1700 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1702 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1703 "note_list" from rtx to rtx_insn *.
1704 (BB_NOTE_LIST): Replace this function and...
1705 (SET_BB_NOTE_LIST): ...this function with...
1706 (BB_NOTE_LIST): ...the former macro implementation.
1708 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1709 local "from_start" from rtx to rtx_insn *. Strengthen param
1710 "to_endp" from rtx * to rtx_insn **.
1712 * haifa-sched.c (concat_note_lists): Likewise.
1713 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1715 (sel_restore_notes): Likewise.
1716 (move_bb_info): Likewise.
1717 (BB_NOTE_LIST): Delete this function.
1718 (SET_BB_NOTE_LIST): Delete this function.
1719 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1720 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1722 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1724 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1725 from rtx * to rtx_insn **.
1726 (reorder2): Likewise.
1727 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1728 from rtx to rtx_insn *.
1730 * doc/tm.texi: Update mechanically for above change to target.def.
1732 * sched-int.h (note_list): Strengthen this variable from rtx to
1734 (remove_notes): Likewise for both params.
1735 (restore_other_notes): Likewise for return type and first param.
1736 (struct ready_list): Strengthen field "vec" from rtx * to
1738 (struct dep_replacement): Strenghten field "insn" from rtx to
1740 (struct deps_desc): Likewise for fields "last_debug_insn",
1742 (struct haifa_sched_info): Likewise for callback field
1743 "can_schedule_ready_p"'s param, for first param of "new_ready"
1744 callback field, for both params of "rank" callback field, for
1745 first field of "print_insn" callback field (with a const), for
1746 both params of "contributes_to_priority" callback, for param
1747 of "insn_finishes_block_p" callback, for fields "prev_head",
1748 "next_tail", "head", "tail", for first param of "add_remove_insn"
1749 callback, for first param of "begin_schedule_ready" callback, for
1750 both params of "begin_move_insn" callback, and for second param
1751 of "advance_target_bb" callback.
1752 (add_dependence): Likewise for params 1 and 2.
1753 (sched_analyze): Likewise for params 2 and 3.
1754 (deps_analyze_insn): Likewise for param 2.
1755 (ready_element): Likewise for return type.
1756 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1757 (try_ready): Strenghten param from rtx to rtx_insn *.
1758 (sched_emit_insn): Likewise for return type.
1759 (record_delay_slot_pair): Likewise for params 1 and 2.
1760 (add_delay_dependencies): Likewise for param.
1761 (contributes_to_priority): Likewise for both params.
1762 (find_modifiable_mems): Likewise.
1764 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1765 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1766 "first_older_only_insn" from rtx to rtx_insn *.
1767 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1770 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1771 "last_scheduled_iter0" from rtx to rtx_insn *.
1772 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1773 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1774 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1775 "insn" from rtx to rtx_insn *.
1776 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1778 (c6x_sched_reorder2): Strengthen param "ready" and locals
1779 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1780 "insn" from rtx to rtx_insn *.
1781 (c6x_variable_issue): Add a checked cast when assigning from insn
1782 to ss.last_scheduled_iter0.
1783 (split_delayed_branch): Strengthen param "insn" and local "i1"
1784 from rtx to rtx_insn *.
1785 (split_delayed_nonbranch): Likewise.
1786 (undo_split_delayed_nonbranch): Likewise for local "insn".
1787 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1788 "entry_after", "end_packet", "head_insn", "tail_insn",
1789 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1790 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1791 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1792 but add a checked cast on loop->start_label. Consolidate calls to
1793 avoid assigning result of gen_spkernel to "insn", now an
1796 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1797 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1799 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1800 rtx_insn **. Strengthen locals "top", "next" from rtx to
1802 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1803 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1804 (add_parameter_dependencies): Strengthen params "call", "head" and
1805 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1806 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1807 (add_dependee_for_func_arg): Likewise for param "arg" and local
1809 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1810 "tail" and locals "insn", "first_arg".
1812 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1813 for params "head", "tail" and locals "insn", "next", "next_tail".
1814 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1815 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1816 "insn", "lowest", "highest" from rtx to rtx_insn *.
1817 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1819 (ia64_sched_reorder2): Likewise.
1821 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1822 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1823 from rtx * to rtx_insn **.
1824 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1826 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1828 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1829 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1832 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1833 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1835 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1836 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1837 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1839 (vr4130_reorder): Likewise.
1840 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1842 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1844 (mips_sched_reorder): Likewise.
1845 (mips_sched_reorder2): Likewise.
1847 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1849 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1850 Strengthen local "tmp" from rtx to rtx_insn *.
1851 (rs6000_sched_reorder2): Likewise.
1853 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1854 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1855 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1856 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1858 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1859 "tmp2" from rtx to rtx_insn *.
1860 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1861 Strengthen local "insn" from rtx to rtx_insn *.
1862 (ready_reorder): Strengthen param "ready" from rtx * to
1863 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1864 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1865 (sh_reorder2): Likewise.
1867 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1868 local "insn" from rtx to rtx_insn *.
1870 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1872 (scheduled_insns): Strengthen this variable from vec<rtx> to
1874 (set_modulo_params): Likewise for locals "i1", "i2".
1875 (record_delay_slot_pair): Likewise for params "i1", "i2".
1876 (add_delay_dependencies): Likewise for param "insn".
1877 (cond_clobbered_p): Likewise.
1878 (recompute_todo_spec): Likewise for local "prev".
1879 (last_scheduled_insn): Likewise for this variable.
1880 (nonscheduled_insns_begin): Likewise.
1881 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1883 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1885 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1886 Strengthen local "insn" from rtx to rtx_insn *.
1887 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1888 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1889 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1890 (ready_remove_first): Likewise for return type and local "t".
1891 (ready_element): Likewise for return type.
1892 (ready_remove): Likewise for return type and local "t".
1893 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1894 (check_clobbered_conditions): Strengthen local "x" from rtx to
1895 rtx_insn *, adding a checked cast.
1896 (schedule_insn): Likewise for param "insn".
1897 (remove_notes): Likewise for params "head", "tail" and locals
1898 "next_tail", "insn", "next".
1899 (struct haifa_saved_data): Likewise for fields
1900 "last_scheduled_insn", "nonscheduled_insns_begin".
1901 (save_backtrack_point): Update for change to field "vec" of
1903 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1905 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1906 from rtx to rtx_insn *
1907 (resolve_dependencies): Strengthen param "insn" from rtx to
1909 (restore_other_notes): Likewise for return type, for param "head"
1910 and local "note_head".
1911 (undo_all_replacements): Likewise for local "insn".
1912 (first_nonscheduled_insn): Likewise for return type and local "insn".
1913 (queue_to_ready): Likewise for local "insn", adding checked casts.
1914 (early_queue_to_ready): Likewise for local "insn".
1915 (debug_ready_list_1): Strengthen local "p" from rtx * to
1917 (move_insn): Strengthen param "insn" and local "note" from rtx to
1919 (insn_finishes_cycle_p): Likewise for param "insn".
1920 (max_issue): Likewise for local "insn".
1921 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1923 (commit_schedule): Strengthen param "prev_head" and local "insn"
1924 from rtx to rtx_insn *
1925 (prune_ready_list): Likewise for local "insn".
1926 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1927 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1928 (set_priorities): Likewise for local "prev_head".
1929 (try_ready): Likewise for param "next".
1930 (fix_tick_ready): Likewise.
1931 (change_queue_index): Likewise.
1932 (sched_extend_ready_list): Update for change to field "vec" of
1934 (generate_recovery_code): Strengthen param "insn" from rtx to
1936 (begin_speculative_block): Likewise.
1937 (create_check_block_twin): Likewise for param "insn" and locals
1938 "label", "check", "twin". Introduce local "check_pat" to avoid
1939 "check" being used as a plain rtx before being used as an insn.
1940 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1941 extracting elements from ready_list.
1942 (sched_remove_insn): Strengthen param "insn" from rtx to
1944 (sched_emit_insn): Likewise for return type.
1945 (ready_remove_first_dispatch): Likewise for return type and local
1948 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1950 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1953 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1954 from rtx to rtx_insn *.
1955 (add_dependence_list): Likewise for param "insn". Add a checked
1957 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1958 to rtx_insn *. Strengthen param "list_p" from rtx * to
1960 (chain_to_prev_insn): Strengthen param "insn" and locals
1961 "prec_nonnote", "i" from rtx to rtx_insn *.
1962 (flush_pending_lists): Likewise for param "insn".
1963 (cur_insn): Likewise for this variable.
1964 (haifa_start_insn): Add a checked cast.
1965 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1966 (sched_analyze_reg): Likewise for param "insn".
1967 (sched_analyze_1): Likewise.
1968 (sched_analyze_2): Likewise. Add checked casts.
1969 (sched_analyze_insn): Likewise. Also for local "prev".
1970 (deps_analyze_insn): Likewise for param "insn".
1971 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1972 (add_dependence_1): Likewise for params "insn", "elem".
1973 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1974 (parse_add_or_inc): Likewise for param "insn".
1975 (find_inc): Likewise for local "inc_cand".
1976 (find_modifiable_mems): Likewise for params "head", "tail" and
1977 locals "insn", "next_tail".
1979 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1980 (begin_schedule_ready): Likewise for param "insn".
1981 (begin_move_insn): Likewise for params "insn" and "last".
1982 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1984 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1985 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1986 (ebb_add_remove_insn): Likewise for param "insn".
1987 (advance_target_bb): Likewise.
1989 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1991 (check_live): Likewise for param "insn".
1992 (init_ready_list): Likewise for local "insn".
1993 (can_schedule_ready_p): Likewise for param "insn".
1994 (begin_schedule_ready): Likewise.
1995 (new_ready): Likewise for param "next".
1996 (rgn_print_insn): Likewise for param "insn".
1997 (rgn_rank): Likewise for params "insn1", "insn2".
1998 (contributes_to_priority): Likewise for params "next", "insn".
1999 (rgn_insn_finishes_block_p): Likewise for param "insn".
2000 (add_branch_dependences): Likewise for params "head", "tail" and
2001 locals "insn", "last".
2002 (rgn_add_remove_insn): Likewise for param "insn".
2003 (advance_target_bb): Likewise.
2005 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
2006 const_rtx to const rtx_insn *.
2008 * sel-sched-dump.h (sel_print_insn): Likewise.
2010 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
2011 (deps_init_id): Likewise.
2013 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
2014 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
2017 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2019 * output.h (final_start_function): Strengthen param 1 from rtx to
2022 * final.c (final_start_function): Likewise, renaming back from
2023 "uncast_first" to "first", and dropping the checked cast from rtx
2026 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2028 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
2029 * final.c (final): Likewise. Rename param back from
2030 "uncast_first" to "first" and eliminate the checked cast from rtx
2033 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2035 * output.h (shorten_branches): Strengthen param from rtx to
2038 * final.c (shorten_branches): Likewise, renaming param back from
2039 "uncast_first" to "first", and dropping the checked cast from rtx
2042 * genattr.c (gen_attr): Likewise when writing out the prototype of
2045 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2047 * sched-int.h (struct haifa_sched_info): Strengthen fields
2048 "prev_head" and "next_tail" from rtx to rtx_insn *.
2050 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2052 * rtl.h (rtx_jump_table_data::get_labels): New method.
2053 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
2054 with use of the new rtx_jump_table_data::get_labels method.
2055 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
2056 to rtx_jump_table_data *. Simplify by using get_labels method.
2057 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
2058 a dyn_cast, introducing local "table", using it to replace
2059 label-lookup logic with a get_labels method call.
2060 (patch_jump_insn): Simplify using get_labels method.
2061 * dwarf2cfi.c (create_trace_edges): Likewise.
2062 * rtlanal.c (label_is_jump_target_p): Likewise.
2064 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2066 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
2069 * emit-rtl.c (unshare_all_rtl_1): Likewise.
2070 (unshare_all_rtl_again): Likewise, also for local "p".
2072 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2074 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
2076 * cfgrtl.c (delete_insn_and_edges): Likewise.
2078 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2080 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
2081 from rtx to rtx_insn *.
2083 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
2085 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2087 * function.c (thread_prologue_and_epilogue_insns): Likewise for
2088 locals "returnjump", "epilogue_end", "insn", "next".
2090 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
2091 "returnjump" from rtx * to rtx_insn **.
2092 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
2094 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2096 * basic-block.h (struct edge_def). Strengthen "r" within
2097 union edge_def_insns from rtx to rtx_insn *.
2099 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
2100 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
2102 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
2103 from rtx to rtx_insn *.
2104 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
2106 * postreload-gcse.c (reg_killed_on_edge): Likewise.
2107 (reg_used_on_edge): Likewise.
2108 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
2109 (gt_pch_nx): New overload for rtx_insn *&.
2110 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
2111 from rtx to rtx_insn *.
2113 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2115 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
2116 from rtx to rtx_insn *.
2117 (BB_FOOTER): Replace function with access macro.
2118 (SET_BB_FOOTER): Delete.
2120 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
2122 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2123 (emit_barrier_after_bb): Likewise.
2124 (record_effective_endpoints): Likewise.
2125 (relink_block_chain): Likewise.
2126 (fixup_fallthru_exit_predecessor): Likewise.
2127 (cfg_layout_duplicate_bb): Likewise.
2128 (cfg_layout_split_block): Likewise.
2129 (cfg_layout_delete_block): Likewise.
2130 (cfg_layout_merge_blocks): Likewise.
2131 (BB_FOOTER): Delete function.
2132 (SET_BB_FOOTER): Delete function.
2133 * combine.c (update_cfg_for_uncondjump): Replace uses of
2134 SET_BB_FOOTER with BB_FOOTER.
2136 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2138 * except.h (struct eh_landing_pad_d): Strengthen field
2139 "landing_pad" from rtx to rtx_code_label *.
2141 * except.c (sjlj_emit_dispatch_table): Likewise for param
2143 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
2145 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2147 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
2148 first param from rtx to rtx_insn *.
2149 * config/xtensa/xtensa.c (struct machine_function): Likewise for
2150 field "set_frame_ptr_insn".
2151 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
2152 "csend" from rtx to rtx_code_label *.
2153 (xtensa_expand_atomic): Likewise for local "csloop".
2154 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
2156 (xtensa_call_tls_desc): Likewise for return type and locals
2157 "call_insn", "insns".
2158 (xtensa_legitimize_tls_address): Likewise for local "insns".
2159 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2161 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2163 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2164 first param from rtx to rtx_insn *.
2165 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2168 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2170 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2171 Strengthen param 1 from rtx to rtx_insn *.
2172 (tilepro_output_cbranch): Likewise.
2173 (tilepro_adjust_insn_length): Likewise.
2174 (tilepro_final_prescan_insn): Likewise for sole param.
2176 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2177 Likewise for local "last".
2178 (cbranch_predicted_p): Likewise for param "insn".
2179 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2180 (tilepro_output_cbranch_with_opcode): Likewise.
2181 (tilepro_output_cbranch): Likewise.
2182 (frame_emit_load): Likewise for return type and locals "seq",
2184 (emit_sp_adjust): Likewise for return type and local "insn".
2185 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2187 (tilepro_adjust_insn_length): Likewise for param "insn".
2188 (next_insn_to_bundle): Likewise for return type and params
2190 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2191 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2193 (match_addli_pcrel): Likewise for param "insn".
2194 (replace_addli_pcrel): Likewise.
2195 (match_auli_pcrel): Likewise.
2196 (replace_auli_pcrel): Likewise.
2197 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2199 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2200 "queue", "next_queue", "prev".
2201 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2202 (tilepro_final_prescan_insn): Likewise for param "insn".
2204 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2206 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2207 Strengthen param 1 from rtx to rtx_insn *.
2208 (tilegx_output_cbranch): Likewise.
2209 (tilegx_adjust_insn_length): Likewise.
2210 (tilegx_final_prescan_insn): Likewise for sole param.
2212 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2214 (cbranch_predicted_p): Likewise for param "insn".
2215 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2216 (tilegx_output_cbranch_with_opcode): Likewise.
2217 (tilegx_output_cbranch): Likewise.
2218 (frame_emit_load): Likewise for return type.
2219 (set_frame_related_p): Likewise for locals "seq", "insn".
2220 (emit_sp_adjust): Likewise for return type, and for local "insn".
2221 Introduce local "pat" for use in place of "insn" where the latter
2222 isn't an instruction.
2223 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2224 from rtx to rtx_insn *.
2225 (tilegx_adjust_insn_length): Likewise for param "insn".
2226 (next_insn_to_bundle): Likewise for return type and params "r" and
2228 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2230 (replace_insns): Likewise for params "old_insn", "new_insns".
2231 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2233 (replace_mov_pcrel_step2): Likewise.
2234 (replace_mov_pcrel_step3): Likewise.
2235 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2237 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2238 "queue", "next_queue", "prev".
2239 (tilegx_output_mi_thunk): Likewise for local "insn".
2240 (tilegx_final_prescan_insn): Likewise for param "insn".
2242 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2244 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2246 (frame_emit_load): Likewise.
2247 (frame_emit_add_imm): Likewise, also for local "insn".
2248 (spu_expand_prologue): Likewise for local "insn".
2249 (struct spu_bb_info): Likewise for field "prop_jump".
2250 (emit_nop_for_insn): Likewise for param "insn" and local
2252 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2254 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2255 locals "hint", "insn".
2256 (get_branch_target): Likewise for param "branch".
2257 (insn_clobbers_hbr): Likewise for param "insn".
2258 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2259 locals "insn", "before_4", "before_16".
2260 (insert_hbrp): Likewise for local "insn".
2261 (spu_machine_dependent_reorg): Likewise for locals "branch",
2262 "insn", "next", "bbend".
2263 (uses_ls_unit): Likewise for param "insn".
2264 (get_pipe): Likewise.
2265 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2266 introducing a checked cast.
2267 (spu_sched_adjust_cost): Likewise for params "insn" and
2269 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2270 (spu_sms_res_mii): Likewise.
2272 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2274 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2275 from rtx to rtx_insn *.
2276 (output_cbranch): Likewise for param 6.
2277 (output_return): Likewise for param 1.
2278 (output_sibcall): Likewise.
2279 (output_v8plus_shift): Likewise.
2280 (output_v8plus_mult): Likewise.
2281 (output_v9branch): Likewise for param 7.
2282 (output_cbcond): Likewise for param 3.
2284 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2286 (sparc_legitimize_pic_address): Likewise.
2287 (sparc_emit_call_insn): Likewise.
2288 (emit_save_or_restore_regs): Likewise.
2289 (emit_window_save): Likewise for return type and local "insn".
2290 (sparc_expand_prologue): Likewise for local "insn".
2291 (sparc_flat_expand_prologue): Likewise.
2292 (output_return): Likewise for param "insn".
2293 (output_sibcall): Likewise for param "insn" and local "delay".
2294 (output_ubranch): Likewise for param "insn".
2295 (output_cbranch): Likewise.
2296 (output_cbcond): Likewise.
2297 (output_v9branch): Likewise.
2298 (output_v8plus_shift): Likewise.
2299 (sparc_output_mi_thunk): Likewise for local "insn".
2300 (get_some_local_dynamic_name): Likewise.
2301 (output_v8plus_mult): Likewise for param "insn".
2303 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2305 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2306 from rtx to rtx_insn *.
2307 (output_branchy_insn): Likewise for param 3.
2308 (output_far_jump): Likewise for param 1.
2309 (final_prescan_insn): Likewise.
2310 (sh_insn_length_adjustment): Likewise for sole param.
2312 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2313 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2315 (sh_emit_compare_and_set): Likewise for local "lab".
2316 (output_far_jump): Strengthen param "insn" and local "prev" from
2318 (output_branchy_insn): Likewise for param "insn" and local
2320 (output_ieee_ccmpeq): Likewise for param "insn".
2321 (struct label_ref_list_d): Strengthen field "label" from rtx to
2323 (pool_node): Likewise.
2324 (pool_window_label): Likewise for this global.
2325 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2326 (dump_table): Strengthen params "start", "barrier" and local
2327 "scan" from rtx to rtx_insn *.
2328 (broken_move): Likewise for param "insn".
2329 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2330 Strengthen param "first_mova" from rtx * to rtx_insn **.
2331 (mova_p): Likewise for param "insn".
2332 (fixup_mova): Likewise for param "mova".
2333 (find_barrier): Likewise for return type, params "mova" and
2334 "from", and locals "barrier_before_mova", "found_barrier",
2335 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2336 "label" from rtx to rtx_code_label *.
2337 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2339 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2340 (split_branches): Likewise for param "first" and local "insn".
2341 (final_prescan_insn): Likewise for param "insn".
2342 (sequence_insn_p): Likewise for locals "prev", "next".
2343 (sh_insn_length_adjustment): Likewise for param "insn".
2344 (sh_can_redirect_branch): Likewise for local "insn".
2345 (find_r0_life_regions): Likewise for locals "end", "insn".
2346 (sh_output_mi_thunk): Likewise for local "insns".
2348 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2350 * config/score/score.c (score_output_mi_thunk): Strengthen local
2351 "insn" from rtx to rtx_insn *.
2352 (score_prologue): Likewise.
2354 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2356 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2357 1 from rtx to rtx_insn *.
2358 (s390_emit_jump): Likewise for return type.
2359 (s390_emit_call): Likewise.
2360 (s390_load_got): Likewise.
2362 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2364 (s390_match_ccmode): Likewise for param "insn".
2365 (s390_emit_jump): Likewise for return type.
2366 (s390_split_branches): Likewise for local "label".
2367 (struct constant): Strengthen field "label" from rtx to
2369 (struct constant_pool): Likewise for field "label". Strengthen
2370 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2372 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2374 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2375 (s390_end_pool): Likewise.
2376 (s390_dump_pool): Likewise for local "insn".
2377 (s390_mainpool_start): Likewise.
2378 (s390_chunkify_start): Likewise.
2379 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2380 with insns. Strengthen locals "label", "jump", "barrier", "next",
2381 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2382 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2384 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2385 "jump", "label", "next_insn".
2386 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2387 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2389 (s390_load_got): Likewise for return type and local "insns".
2390 (s390_save_gprs_to_fprs): Likewise for local "insn".
2391 (s390_restore_gprs_from_fprs): Likewise.
2392 (pass_s390_early_mach::execute): Likewise.
2393 (s390_emit_prologue): Likewise for local "insns".
2394 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2396 (s390_emit_call): Strengthen return type and local "insn" from
2398 (s390_emit_tpf_eh_return): Likewise for local "insn".
2399 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2400 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2401 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2403 (s390_non_addr_reg_read_p): Likewise for param "insn".
2404 (find_cond_jump): Likewise for return type and param "insn".
2405 (s390_swap_cmp): Likewise for param "insn".
2406 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2407 "prev_insn", "next_insn".
2408 (s390_reorg): Likewise for locals "insn", "target".
2409 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2410 (s390_sched_variable_issue): For now, rename param "insn" to
2411 "uncast_insn", introducing a checked cast.
2412 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2414 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2415 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2417 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2419 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2420 param from rtx to rtx_insn *.
2421 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2423 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2425 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2426 4 from rtx to rtx_insn *.
2427 (rs6000_final_prescan_insn): Likewise for first param.
2428 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2430 (rs6000_get_some_local_dynamic_name): Likewise.
2431 (output_cbranch): Likewise for param "insn".
2432 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2433 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2434 (rs6000_emit_allocate_stack): Likewise for local "insn".
2435 (load_cr_save): Likewise.
2436 (restore_saved_cr): Likewise.
2437 (restore_saved_lr): Likewise.
2438 (emit_cfa_restores): Likewise.
2439 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2440 "deleted_debug_label".
2441 (rs6000_output_mi_thunk): Likewise for local "insn".
2442 (rs6000_final_prescan_insn): Likewise for param "insn".
2444 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2446 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2447 Strengthen param "insn" from rtx to rtx_insn *.
2448 * config/picochip/picochip.c (picochip_current_prescan_insn):
2449 Likewise for this variable.
2450 (picochip_final_prescan_insn): Likewise for param "insn".
2452 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2454 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2455 from rtx to rtx_insn *.
2456 (pa_output_indirect_call): Likewise.
2457 (pa_adjust_insn_length): Likewise.
2458 (pa_attr_length_millicode_call): Likewise.
2459 (pa_attr_length_call): Likewise.
2460 (pa_attr_length_indirect_call): Likewise.
2462 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2464 (pa_attr_length_millicode_call): Likewise.
2465 (pa_attr_length_call): Likewise.
2466 (pa_output_call): Likewise.
2467 (pa_attr_length_indirect_call): Likewise.
2468 (pa_output_indirect_call): Likewise.
2470 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2472 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2473 Strengthen first param from rtx to rtx_insn *.
2474 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2477 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2479 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2480 type from rtx to rtx_insn *.
2481 (mips_expand_call): Likewise.
2482 (mips_adjust_insn_length): Likewise for first param.
2483 (mips_output_conditional_branch): Likewise.
2484 (mips_output_order_conditional_branch): Likewise.
2485 (mips_final_prescan_insn): Likewise.
2487 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2488 rtx_insn * for the SEQUENCE case.
2489 (SEQ_END): Likewise.
2490 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2491 (mips_emit_call_insn): Likewise, also for local "insn".
2492 (mips16_gp_pseudo_reg): Likewise for local "scan".
2493 (mips16_build_call_stub): Likewise for return type and for local
2494 "insn". Introduce a new local "pattern" so that "insn" can indeed
2496 (mips_expand_call): Strengthen return type and local "insn" from
2498 (mips_block_move_loop): Strengthen local "label" from rtx to
2500 (mips_expand_synci_loop): Likewise for locals "label",
2502 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2504 (mips16e_collect_argument_saves): Likewise for locals "insn",
2506 (mips_find_gp_ref): Likewise for param of callback for "pred"
2507 param, and for local "insn".
2508 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2509 (mips_insn_has_flexible_gp_ref_p): Likewise.
2510 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2512 (mips_epilogue_set_cfa): Likewise for local "insn".
2513 (mips_expand_epilogue): Likewise.
2514 (mips_adjust_insn_length): Likewise for param "insn".
2515 (mips_output_conditional_branch): Likewise.
2516 (mips_output_order_conditional_branch): Likewise.
2517 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2518 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2519 "falu2_turn_enabled_insn".
2520 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2521 "done_label" from rtx to rtx_code_label *.
2522 (struct mips16_constant): Likewise for field "label".
2523 (mips16_add_constant): Likewise for return type.
2524 (mips16_emit_constants_1): Strengthen return type and param "insn"
2525 from rtx to rtx_insn *.
2526 (mips16_emit_constants): Likewise for param "insn".
2527 (mips16_insn_length): Likewise.
2528 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2529 to rtx_code_label *.
2530 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2531 from rtx to rtx_insn *.
2532 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2533 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2534 (r10k_simplify_address): Strengthen param "insn" and local
2535 "def_insn" from rtx to rtx_insn *.
2536 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2538 (r10k_needs_protection_p_1): Update target type of cast of data
2539 from to rtx to rtx_insn *.
2540 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2541 rtx * to rtx_insn **.
2542 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2544 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2545 (mips_call_expr_from_insn): Likewise for param "insn".
2546 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2547 (mips_find_pic_call_symbol): Likewise for param "insn".
2548 (mips_annotate_pic_calls): Likewise for local "insn".
2549 (mips_sim_insn): Likewise for this variable.
2550 (struct mips_sim): Likewise for field "insn" within elements of
2552 (mips_sim_wait_reg): Likewise for param "insn".
2553 (mips_sim_wait_regs): Likewise.
2554 (mips_sim_wait_units): Likewise.
2555 (mips_sim_wait_insn): Likewise.
2556 (mips_sim_issue_insn): Likewise.
2557 (mips_sim_finish_insn): Likewise.
2558 (mips_seq_time): Likewise for param "seq" and local "insn".
2559 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2560 locals "first", "second".
2561 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2562 "last", "last2", "next".
2563 (mips_avoid_hazard): Likewise for params "after", "insn".
2564 (mips_reorg_process_insns): Likewise for locals "insn",
2565 "last_insn", "subinsn", "next_insn".
2566 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2567 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2569 (mips_output_mi_thunk): Likewise for local "insn".
2570 (mips_final_prescan_insn): Likewise for param "insn".
2572 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2574 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2575 Strengthen return type and local "insns" from rtx to rtx_insn *.
2576 (microblaze_legitimize_tls_address): Likewise for local "insns".
2577 (microblaze_block_move_loop): Strengthen local "label" from rtx
2578 to rtx_code_label *.
2579 (microblaze_expand_prologue): Strengthen two locals named "insn"
2580 from rtx to rtx_insn *.
2581 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2582 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2583 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2584 to rtx_code_label *.
2586 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2588 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2589 param from rtx to rtx_insn *.
2590 (mep_reuse_lo): Likewise for third param.
2591 (mep_use_post_modify_p): Likewise for first param.
2592 (mep_core_address_length): Likewise.
2593 (mep_cop_address_length): Likewise.
2594 (mep_final_prescan_insn): Likewise.
2595 (mep_store_data_bypass_p): Likewise for both params.
2596 (mep_mul_hilo_bypass_p): Likewise.
2597 (mep_ipipe_ldc_p): Likewise for param.
2599 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2600 (mep_rewrite_mult): Likewise.
2601 (mep_rewrite_mulsi3): Likewise.
2602 (mep_rewrite_maddsi3): Likewise.
2603 (mep_reuse_lo_p_1): Likewise.
2604 (mep_reuse_lo_p): Likewise.
2605 (mep_frame_expr): Likewise.
2606 (mep_make_parallel): Likewise for both params.
2607 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2609 (mep_use_post_modify_p): Likewise for param "insn".
2610 (mep_core_address_length): Likewise.
2611 (mep_cop_address_length): Likewise.
2612 (mep_reg_set_in_function): Likewise for local "insn".
2613 (mep_asm_without_operands_p): Likewise.
2614 (F): Likewise for return type and param "x".
2615 (add_constant): Likewise for local "insn".
2616 (maybe_dead_move): Likewise for return type and local "insn".
2617 (mep_expand_prologue): Likewise for local "insn".
2618 (mep_final_prescan_insn): Likewise for param "insn".
2619 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2620 "next", "follow", "x".
2621 (mep_insert_repeat_label_last): Likewise for return type, param
2622 "last_insn", and locals "next", "prev". Strengthen param "label"
2623 from rtx to rtx_code_label *.
2624 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2626 (struct mep_doloop_end): Likewise for fields "insn" and
2628 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2629 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2630 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2632 (mep_invert_branch): Likewise for params "insn" and "after".
2633 (mep_reorg_erepeat): Likewise for param "insns" and locals
2634 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2635 "l" from rtx to rtx_code_label *.
2636 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2637 from rtx to rtx_insn *.
2638 (mep_reorg_addcombine): Likewise for param "insns" and locals
2640 (add_sp_insn_p): Likewise for param "insn".
2641 (mep_reorg_noframe): Likewise for param "insns" and locals
2642 "start_frame_insn", "end_frame_insn", "next".
2643 (mep_reorg): Likewise for local "insns".
2644 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2646 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2647 (mep_mul_hilo_bypass_p): Likewise.
2648 (mep_ipipe_ldc_p): Likewise for param "insn".
2649 (mep_make_bundle): Likewise for return type, param "cop" and local
2650 "insn", splitting out the latter into a new local "seq" for when it
2651 is a SEQUENCE rather than an insn.
2652 (core_insn_p): Likewise for param "insn".
2653 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2654 "last", "first", "note", "prev", "core_insn".
2656 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2658 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2660 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2661 (m68k_final_prescan_insn): Likewise for first param.
2663 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2664 (m68k_set_frame_related): Likewise for param "insn".
2665 (output_btst): Likewise for param "insn".
2666 (m68k_final_prescan_insn): Likewise.
2667 (m68k_move_to_reg): Likewise for local "insn".
2668 (m68k_call_tls_get_addr): Likewise for local "insns".
2669 (m68k_call_m68k_read_tp): Likewise.
2670 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2671 (m68k_output_mi_thunk): Likewise for local "insn".
2673 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2675 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2676 first param from rtx to rtx_insn *.
2677 (iq2000_adjust_insn_length): Likewise.
2678 (iq2000_output_conditional_branch): Likewise.
2679 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2680 "insn" and local "nop_insn".
2681 (iq2000_annotate_frame_insn): Likewise for param "insn".
2682 (iq2000_expand_prologue): Likewise for both locals "insn".
2683 (iq2000_adjust_insn_length): Likewise for param "insn".
2684 (iq2000_output_conditional_branch): Likewise.
2686 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2688 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2689 "insns" from rtx to rtx_insn *.
2690 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2691 (struct spill_fill_data): Likewise for field "init_after" and for
2692 elements of array field "prev_insn".
2693 (spill_restore_mem): Likewise for locals "insn", "first".
2694 (do_spill): Likewise for local "insn".
2695 (do_restore): Likewise.
2696 (ia64_expand_prologue): Likewise.
2697 (ia64_expand_epilogue): Likewise.
2698 (emit_insn_group_barriers): Likewise for locals "insn",
2700 (emit_all_insn_group_barriers): Likewise for locals "insn",
2702 (dfa_stop_insn): Likewise for this global.
2703 (dfa_pre_cycle_insn): Likewise.
2704 (ia64_nop): Likewise.
2705 (final_emit_insn_group_barriers): Likewise for locals "insn",
2707 (emit_predicate_relation_info): Likewise for locals "head", "n",
2709 (ia64_reorg): Likewise for local "insn".
2710 (ia64_output_mi_thunk): Likewise.
2711 (expand_vec_perm_interleave_2): Likewise for local "seq".
2713 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2715 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2716 param 1 "insn" from rtx to rtx_insn *.
2717 (ix86_use_lea_for_mov): Likewise.
2718 (ix86_avoid_lea_for_addr): Likewise.
2719 (ix86_split_lea_for_addr): Likewise.
2720 (ix86_lea_for_add_ok): Likewise.
2721 (ix86_output_call_insn): Likewise.
2723 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2724 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2725 (ix86_output_function_epilogue): Likewise for locals "insn",
2726 "deleted_debug_label".
2727 (legitimize_tls_address): Likewise for local "insn".
2728 (get_some_local_dynamic_name): Likewise.
2729 (increase_distance): Likewise for params "prev", "next".
2730 (distance_non_agu_define_in_bb): Likewise for params "insn",
2731 "start" and locals "prev", "next".
2732 (distance_non_agu_define): Likewise for param "insn".
2733 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2734 locals "next", "prev".
2735 (distance_agu_use): Likewise for param "insn".
2736 (ix86_lea_outperforms): Likewise.
2737 (ix86_ok_to_clobber_flags): Likewise.
2738 (ix86_avoid_lea_for_add): Likewise.
2739 (ix86_use_lea_for_mov): Likewise.
2740 (ix86_avoid_lea_for_addr): Likewise.
2741 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2742 (ix86_split_lea_for_addr): Likewise for param "insn".
2743 (ix86_lea_for_add_ok): Likewise for param "insn".
2744 (ix86_expand_carry_flag_compare): Likewise for local
2746 (ix86_expand_int_movcc): Likewise.
2747 (ix86_output_call_insn): Likewise for param "insn".
2748 (ix86_output_call_insn): Likewise for local "i".
2749 (x86_output_mi_thunk): Introduce local "insn", using it in place
2750 of "tmp" when dealing with insns.
2751 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2753 (ix86_pad_returns): Likewise for locals "ret", "prev".
2754 (ix86_count_insn_bb): Likewise for local "insn".
2755 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2756 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2757 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2758 (expand_vec_perm_interleave2): Likewise for local "seq".
2759 (expand_vec_perm_vperm2f128_vblend): Likewise.
2760 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2761 call to for_each_rtx with for_each_rtx_in_insn.
2763 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2765 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2766 "label" from rtx to rtx_code_label *.
2767 (ix86_expand_prologue): Likewise.
2768 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2770 (ix86_split_idivmod): Likewise for locals "end_label" and
2772 (ix86_expand_branch): Likewise for local "label2".
2773 (ix86_expand_aligntest): Likewise for return type and local "label".
2774 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2776 (expand_movmem_epilogue): Likewise for the various locals named
2778 (expand_setmem_epilogue): Likewise.
2779 (expand_small_movmem_or_setmem): Likewise for local "label".
2780 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2781 Strengthen param "done_label" from rtx * to rtx_code_label **.
2782 Strengthen locals "loop_label" and "label" from rtx to
2784 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2785 Likewise for locals "loop_label", "label".
2786 (ix86_expand_set_or_movmem): Likewise for locals "label",
2787 "jump_around_label", "hot_label".
2788 (ix86_expand_strlensi_unroll_1): Likewise for locals
2789 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2791 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2792 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2793 "label2", "jump_label".
2794 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2796 (ix86_expand_lfloorceil): Likewise for local "label".
2797 (ix86_expand_rint): Likewise.
2798 (ix86_expand_floorceildf_32): Likewise.
2799 (ix86_expand_floorceil): Likewise.
2800 (ix86_expand_rounddf_32): Likewise.
2801 (ix86_expand_trunc): Likewise.
2802 (ix86_expand_truncdf_32): Likewise.
2803 (ix86_expand_round): Likewise.
2805 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2807 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2808 first param from rtx to rtx_insn *.
2809 (h8300_insn_length_from_table): Likewise.
2810 * config/h8300/h8300.c (F): Likewise for return type and param
2812 (Fpa): Add a checked cast to rtx_insn *.
2813 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2815 (final_prescan_insn): Likewise for param "insn".
2816 (h8300_binary_length): Likewise.
2817 (h8300_insn_length_from_table): Likewise.
2819 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2821 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2822 Strengthen first param "insn" from rtx to rtx_insn *.
2824 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2826 (frame_insn): Likewise for return type. Introduce local "insn"
2827 for use in place of local "x" for use as an rtx_insn *.
2828 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2829 (epiphany_expand_prologue): Likewise for local "insn".
2830 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2831 * config/epiphany/resolve-sw-modes.c
2832 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2835 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2837 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2838 param from rtx to rtx_insn *.
2839 (c6x_final_prescan_insn): Likewise for first param.
2841 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2842 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2843 (c6x_expand_compare): Strengthen local "insns" from rtx to
2845 (c6x_get_unit_specifier): Likewise for param "insn".
2846 (c6x_print_unit_specifier_field): Likewise.
2847 (c6x_final_prescan_insn): Likewise.
2848 (emit_add_sp_const): Likewise for local "insn".
2849 (c6x_expand_prologue): Likewise.
2851 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2853 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2854 param 1 from rtx to rtx_insn *.
2855 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2856 the various locals named "insn".
2857 (expand_epilogue_reg_restore): Likewise.
2858 (frame_related_constant_load): Likewise.
2859 (add_to_reg): Likewise.
2860 (emit_link_insn): Likewise.
2861 (do_link): Likewise.
2862 (expand_interrupt_handler_prologue): Likewise.
2863 (branch_dest): Likewise for param "branch".
2864 (asm_conditional_branch): Likewise for param "insn".
2865 (gen_one_bundle): Likewise for elements of param "slot" and local
2867 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2868 elements of local "slot".
2869 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2870 "queue", "next_queue", "prev".
2871 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2872 (add_sched_insns_for_speculation): Likewise for local "insn".
2874 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2876 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2877 from rtx to rtx_insn *.
2878 (output_movhi): Likewise.
2879 (output_movsisf): Likewise.
2880 (avr_out_tstsi): Likewise.
2881 (avr_out_tsthi): Likewise.
2882 (avr_out_tstpsi): Likewise.
2883 (avr_out_compare): Likewise.
2884 (avr_out_compare64): Likewise.
2885 (avr_out_movpsi): Likewise.
2886 (ashlqi3_out): Likewise.
2887 (ashlhi3_out): Likewise.
2888 (ashlsi3_out): Likewise.
2889 (ashrqi3_out): Likewise.
2890 (ashrhi3_out): Likewise.
2891 (ashrsi3_out): Likewise.
2892 (lshrqi3_out): Likewise.
2893 (lshrhi3_out): Likewise.
2894 (lshrsi3_out): Likewise.
2895 (avr_out_ashlpsi3): Likewise.
2896 (avr_out_ashrpsi3): Likewise.
2897 (avr_out_lshrpsi3): Likewise.
2898 (avr_out_fract): Likewise.
2899 (avr_out_sbxx_branch): Likewise.
2900 (avr_out_round): Likewise.
2901 (avr_out_xload): Likewise.
2902 (avr_out_movmem): Likewise.
2903 (adjust_insn_length): Likewise.
2904 (avr_out_lpm): Likewise.
2905 (reg_unused_after): Likewise.
2906 (_reg_unused_after): Likewise.
2907 (avr_jump_mode): Likewise for second param.
2908 (jump_over_one_insn): Likewise for first param.
2909 (avr_final_prescan_insn): Likewise.
2910 (out_shift_with_cnt): Likewise for second param.
2912 * config/avr/avr.c (get_sequence_length): Likewise for param
2913 "insns" and local "insn".
2914 (emit_push_byte): Likewise for local "insn".
2915 (emit_push_sfr): Likewise.
2916 (avr_prologue_setup_frame): Likewise for locals "insn",
2917 "fp_plus_insns", "sp_plus_insns".
2918 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2920 (avr_jump_mode): Likewise for param "insn".
2921 (avr_final_prescan_insn): Likewise.
2922 (avr_find_unused_d_reg): Likewise.
2923 (avr_out_lpm_no_lpmx): Likewise.
2924 (avr_out_lpm): Likewise.
2925 (avr_out_xload): Likewise.
2926 (output_movqi): Likewise.
2927 (output_movhi): Likewise.
2928 (out_movqi_r_mr): Likewise.
2929 (out_movhi_r_mr): Likewise.
2930 (out_movsi_r_mr): Likewise.
2931 (out_movsi_mr_r): Likewise.
2932 (output_movsisf): Likewise.
2933 (avr_out_load_psi): Likewise.
2934 (avr_out_store_psi): Likewise.
2935 (avr_out_movpsi): Likewise.
2936 (out_movqi_mr_r): Likewise.
2937 (avr_out_movhi_mr_r_xmega): Likewise.
2938 (out_movhi_mr_r): Likewise.
2939 (compare_condition): Likewise for param "insn" and local "next".
2940 (compare_sign_p): Likewise for param "insn".
2941 (compare_diff_p): Likewise.
2942 (compare_eq_p): Likewise.
2943 (avr_out_compare): Likewise.
2944 (avr_out_compare64): Likewise.
2945 (avr_out_tsthi): Likewise.
2946 (avr_out_tstpsi): Likewise.
2947 (avr_out_tstsi): Likewise.
2948 (out_shift_with_cnt): Likewise.
2949 (ashlqi3_out): Likewise.
2950 (ashlhi3_out): Likewise.
2951 (avr_out_ashlpsi3): Likewise.
2952 (ashlsi3_out): Likewise.
2953 (ashrqi3_out): Likewise.
2954 (ashrhi3_out): Likewise.
2955 (avr_out_ashrpsi3): Likewise.
2956 (ashrsi3_out): Likewise.
2957 (lshrqi3_out): Likewise.
2958 (lshrhi3_out): Likewise.
2959 (avr_out_lshrpsi3): Likewise.
2960 (lshrsi3_out): Likewise.
2961 (avr_out_fract): Likewise.
2962 (avr_out_round): Likewise.
2963 (avr_adjust_insn_length): Likewise.
2964 (reg_unused_after): Likewise.
2965 (_reg_unused_after): Likewise.
2966 (avr_compare_pattern): Likewise.
2967 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2968 and locals "branch1", "branch2", "insn2", "jump".
2969 (avr_reorg): Likewise for local "insn".
2970 (avr_2word_insn_p): Likewise for param "insn".
2971 (jump_over_one_insn_p): Likewise.
2972 (avr_out_sbxx_branch): Likewise.
2973 (avr_out_movmem): Likewise.
2975 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2977 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2978 param from rtx to rtx_insn *.
2979 (thumb1_final_prescan_insn): Likewise.
2980 (thumb2_final_prescan_insn): Likewise.
2982 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2984 (struct minipool_node): Likewise for field "insn".
2985 (dump_minipool): Likewise for param "scan".
2986 (create_fix_barrier): Likewise for local "from". Strengthen local
2987 "label" from rtx to rtx_code_label *.
2988 (push_minipool_barrier): Strengthen param "insn" from rtx to
2990 (push_minipool_fix): Likewise.
2991 (note_invalid_constants): Likewise.
2992 (thumb2_reorg): Likewise for local "insn".
2993 (arm_reorg): Likewise.
2994 (thumb2_final_prescan_insn): Likewise for param
2995 "insn" and local "first_insn".
2996 (arm_final_prescan_insn): Likewise for param "insn" and locals
2997 "start_insn", "this_insn".
2998 (arm_debugger_arg_offset): Likewise for param "insn".
2999 (thumb1_emit_multi_reg_push): Likewise for return type and local
3001 (thumb1_final_prescan_insn): Likewise for param "insn".
3002 (thumb_far_jump_used_p): Likewise for local "insn".
3003 (thumb1_expand_prologue): Likewise.
3004 (arm_expand_epilogue_apcs_frame): Likewise.
3005 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
3006 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
3007 from rtx to rtx_code_label *.
3008 (arm_split_atomic_op): Likewise for local "label".
3009 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
3011 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3013 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
3014 first param from rtx to rtx_insn *.
3015 (arc_verify_short): Likewise.
3016 (arc_short_long): Likewise.
3017 (arc_need_delay): Likewise.
3019 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
3021 (arc_ccfsm_advance): Likewise for param "insn" and locals
3022 "start_insn", "this_insn".
3023 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
3024 (arc_ccfsm_post_advance): Likewise for param "insn".
3025 (arc_next_active_insn): Likewise for return type and param "insn".
3026 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
3027 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
3028 (output_short_suffix): Likewise for local "insn".
3029 (arc_final_prescan_insn): Likewise for param "insn". Remove
3030 now-redundant checked cast.
3031 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
3032 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
3033 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
3034 for use where lc_set became an insn.
3035 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
3037 (arc_get_insn_variants): Likewise for local "prev".
3038 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
3040 (arc_predicate_delay_insns): Likewise for local "insn".
3041 (arc_pad_return): Likewise for local "prev". For now, add a
3042 checked cast when extracting the insn from "final_sequence".
3043 (arc_short_long): Likewise for param "insn".
3044 (arc_need_delay): Likewise for param "insn" and local "next".
3045 (arc_label_align): Likewise for locals "prev", "next".
3047 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3049 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
3050 "insn" from rtx to rtx_insn *.
3051 (alpha_gp_save_rtx): Likewise for local "seq".
3052 (alpha_instantiate_decls): Likewise for local "top".
3053 (get_some_local_dynamic_name): Likewise for local "insn".
3054 (alpha_does_function_need_gp): Likewise.
3055 (set_frame_related_p): Likewise for return type and for locals
3057 (emit_frame_store_1): Likewise for local "insn".
3058 (alpha_expand_prologue): Likewise for locals "insn", "seq".
3059 (alpha_end_function): Likewise for local "insn".
3060 (alpha_output_mi_thunk_osf): Likewise.
3061 (alphaev4_insn_pipe): Likewise for param "insn".
3062 (alphaev5_insn_pipe): Likewise.
3063 (alphaev4_next_group): Likewise for return type and param 1
3065 (alphaev5_next_group): Likewise.
3066 (alpha_align_insns_1): Likewise for return type and param 1 of
3067 callback param "next_group", and for locals "i", "next", "prev",
3068 "where", "where2", "insn".
3070 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
3072 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
3073 rather than modifying the stmt.
3075 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3077 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
3078 cgraph_state conversion.
3080 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3082 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3083 Strengthen local "insns" from rtx to rtx_insn *.
3084 (aarch64_set_frame_expr): Likewise for local "insn".
3085 (aarch64_save_or_restore_fprs): Likewise.
3086 (aarch64_save_or_restore_callee_save_registers): Likewise.
3087 (aarch64_expand_prologue): Likewise.
3088 (aarch64_expand_epilogue): Likewise.
3089 (aarch64_output_mi_thunk): Likewise.
3090 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
3091 "label2" from rtx to rtx_code_label *.
3092 (aarch64_split_atomic_op): Likewise for local "label".
3094 2014-08-25 Martin Liska <mliska@suse.cz>
3096 * cgraph.h (symtab_node):
3097 (bool needed_p (void)): created from decide_is_symbol_needed
3098 (bool referred_to_p (void)): created from referred_to_p
3099 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
3100 * cgraph.h (cgraph_node):
3101 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
3102 (void expand (void)): created from expand_function
3103 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
3104 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
3105 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
3106 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
3107 * cgraph.h (varpool_node):
3108 (static void add (tree decl): created from varpool_add_new_variable
3109 * cgraph.h (cgraph_edge):
3111 (void remove_caller (void)): created from cgraph_edge_remove_caller
3112 (void remove_callee (void)): created from cgraph_edge_remove_callee
3113 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
3114 created from cgraph_set_call_stmt
3115 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
3116 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
3117 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
3118 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
3119 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
3120 created from cgraph_speculative_call_info
3121 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
3122 int freq_scale, bool update_original)): created from cgraph_clone_edge
3123 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
3124 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
3125 (bool recursive_p (void)): created from cgraph_edge_recursive_p
3126 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
3127 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
3128 (static void rebuild_references (void)): created from cgraph_rebuild_references
3129 * cgraph.h (symbol_table):
3130 (create_reference): renamed from add_reference
3131 (maybe_create_reference): renamed from maybe_add_reference
3132 (void register_symbol (symtab_node *node)): new function
3133 (void clear_asm_symbols (void)): new function
3134 (void unregister (symtab_node *node)): new function
3135 (void release_symbol (cgraph_node *node, int uid)): new function
3136 (cgraph_node * allocate_cgraph_symbol (void)): new function
3137 (void initialize (void)): created from cgraph_init
3138 (symtab_node *first_symbol (void)):new function
3139 (asm_node *first_asm_symbol (void)):new function
3140 (symtab_node *first_defined_symbol (void)):new function
3141 (varpool_node *first_variable (void)):new function
3142 (varpool_node *next_variable (varpool_node *node)):new function
3143 (varpool_node *first_static_initializer (void)):new function
3144 (varpool_node *next_static_initializer (varpool_node *node)):new function
3145 (varpool_node *first_defined_variable (void)):new function
3146 (varpool_node *next_defined_variable (varpool_node *node)):new function
3147 (cgraph_node *first_defined_function (void)):new function
3148 (cgraph_node *next_defined_function (cgraph_node *node)):new function
3149 (cgraph_node *first_function (void)):new function
3150 (cgraph_node *next_function (cgraph_node *node)):new function
3151 (cgraph_node *first_function_with_gimple_body (void)):new function
3152 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
3153 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
3154 created from symtab_remove_unreachable_nodes
3155 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
3156 (void process_new_functions (void)): created from cgraph_process_new_functions
3157 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3158 (bool output_variables (void)): created from varpool_node::output_variables
3159 (void output_asm_statements (void)): created from output_asm_statements
3160 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3161 (void compile (void)): created from compile
3162 (void output_weakrefs (void)): created from output_weakrefs
3163 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3164 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3165 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3166 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3167 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3168 created from cgraph_next_function_with_gimple_body
3169 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3170 created from cgraph_remove_edge_removal_hook
3171 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3172 created from cgraph_add_node_removal_hook
3173 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3174 created from cgraph_remove_node_removal_hook
3175 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3176 created from varpool_add_node_removal_hook
3177 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3178 created from varpool_remove_node_removal_hook
3179 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3180 created from cgraph_add_function_insertion_hook
3181 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3182 created from cgraph_remove_function_insertion_hook
3183 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3184 created from varpool_add_variable_insertion_hook
3185 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3186 created from varpool_remove_variable_insertion_hook
3187 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3188 created from cgraph_add_edge_duplication_hook
3189 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3190 created from cgraph_remove_edge_duplication_hook
3191 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3192 created from cgraph_add_node_duplication_hook
3193 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3194 created from cgraph_remove_node_duplication_hook
3195 (void call_edge_removal_hooks (cgraph_edge *e)):
3196 created from cgraph_call_edge_removal_hooks
3197 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3198 created from call_function_insertion_hooks
3199 (void call_cgraph_removal_hooks (cgraph_node *node)):
3200 created from cgraph_call_node_removal_hooks
3201 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3202 created from cgraph_node::call_duplication_hooks
3203 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3204 created from cgraph_call_edge_duplication_hooks
3205 (void call_varpool_removal_hooks (varpool_node *node)):
3206 created from varpool_call_node_removal_hooks
3207 (void call_varpool_insertion_hooks (varpool_node *node)):
3208 created from varpool_call_variable_insertion_hooks
3209 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3210 created from insert_to_assembler_name_hash
3211 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3212 created from unlink_from_assembler_name_hash
3213 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3214 created from symtab_prevail_in_asm_name_hash
3215 (void symtab_initialize_asm_name_hash (void)):
3216 created from symtab_initialize_asm_name_hash
3217 (void change_decl_assembler_name (tree decl, tree name)):
3218 created from change_decl_assembler_name
3219 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3220 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3221 created from decl_assembler_name_hash
3222 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3223 created from decl_assembler_name_equal
3224 (static hashval_t hash_node_by_assembler_name (const void *p)):
3225 created from hash_node_by_assembler_name
3226 (static int eq_assembler_name (const void *p1, const void *p2)):
3227 created from eq_assembler_name
3229 2014-08-25 Marek Polacek <polacek@redhat.com>
3231 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3233 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3235 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3236 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3237 SWI1248_AVX512BW mode iterator.
3239 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3242 * config/sh/predicates.md (general_extend_operand): Disable
3243 TRUNCATE before reload completes.
3245 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3247 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3249 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3252 * config/sh/sh.opt (musermode): Allow negative form.
3253 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3254 targets that don't support it.
3255 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3256 Document -mno-usermode option.
3258 2014-08-24 Kito Cheng <kito@0xlab.org>
3260 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3261 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3262 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3263 * doc/tm.texi: Regenerate.
3265 2014-08-24 Kito Cheng <kito@0xlab.org>
3267 * ira.c: Fix typo in comment.
3269 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3271 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3272 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3274 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3277 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3278 last_address when the current function is a thunk.
3279 (pa_asm_output_mi_thunk): When we don't have named sections or they
3280 are not being used, check that thunk can reach the stub table with a
3283 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3285 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3287 (pass_web::execute): Likewise for local "insn".
3289 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3291 * var-tracking.c (struct micro_operation_def): Strengthen field
3292 "insn" from rtx to rtx_insn *.
3293 (struct emit_note_data_def): Likewise.
3294 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3295 (vt_stack_adjustments): Likewise for local "insn".
3296 (adjust_insn): Likewise for param "insn".
3297 (val_store): Likewise.
3298 (val_resolve): Likewise.
3299 (struct count_use_info): Likewise for field "insn".
3300 (log_op_type): Likewise for param "insn".
3301 (reverse_op): Likewise.
3302 (prepare_call_arguments): Likewise.
3303 (add_with_sets): The initial param takes an insn, but we can't
3304 yet strengthen it from rtx to rtx_insn * since it's used as a
3305 cselib_record_sets_hook callback. For now rename initial param
3306 from "insn" to "uncast_insn", and introduce a local "insn" of
3307 the stronger rtx_insn * type, with a checked cast.
3308 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3310 (emit_note_insn_var_location): Likewise.
3311 (emit_notes_for_changes): Likewise.
3312 (emit_notes_for_differences): Likewise.
3313 (next_non_note_insn_var_location): Likewise for return type and
3315 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3316 (vt_initialize): Likewise for local "insn".
3317 (delete_debug_insns): Likewise for locals "insn" and "next".
3319 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3321 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3323 (mark_constant_pool): Likewise for local "insn".
3325 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3327 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3329 (dead_debug_promote_uses): Likewise.
3330 (dead_debug_insert_temp): Likewise.
3332 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3334 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3335 from const_rtx to const rtx_insn *.
3336 (store_killed_after): Likewise. Strengthen locals "last", "act"
3337 from rtx to rtx_insn *.
3338 (store_killed_before): Strengthen param "insn" from const_rtx to
3339 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3340 (find_moveable_store): Strengthen param "insn" from rtx to
3342 (compute_store_table): Likewise for local "insn".
3343 (insert_insn_start_basic_block): Likewise for param "insn" and
3344 locals "prev", "before", "insn".
3345 (insert_store): For now, add a checked cast to rtx_insn * on the
3346 result of gen_move_insn.
3347 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3349 (replace_store_insn): Likewise. For now, add a checked cast to
3350 rtx_insn * on the result of gen_move_insn.
3352 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3354 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3356 (expand_sjlj_dispatch_table): Likewise.
3358 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3360 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3361 "insn" from rtx to rtx_insn *.
3363 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3365 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3366 "insn" from rtx to rtx_insn *.
3367 (dup_block_and_redirect): Likewise for param 3 "before".
3369 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3370 from rtx to rtx_insn *.
3371 (move_insn_for_shrink_wrap): Likewise.
3372 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3373 (dup_block_and_redirect): Likewise for param "before" and local
3375 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3377 (convert_to_simple_return): Likewise for local "start".
3379 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3380 Strengthen local "insn" from rtx to rtx_insn *, for use when
3381 invoking requires_stack_frame_p.
3383 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3385 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3387 (speculate_expr): Likewise for locals "orig_insn_rtx",
3389 (eq_transformed_insns): Likewise for locals "i1", "i2".
3390 (check_for_new_jump): Likewise for return type and local "end".
3391 (find_new_jump): Likewise for return type and local "jump".
3392 (sel_split_edge): Likewise for local "jump".
3393 (sel_create_recovery_block): Likewise.
3394 (sel_redirect_edge_and_branch_force): Likewise.
3395 (sel_redirect_edge_and_branch): Likewise.
3397 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3399 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3400 "new_insn" from rtx to rtx_insn *.
3401 (create_insn_rtx_with_rhs): Likewise for return type and for local
3403 (create_insn_rtx_with_lhs): Likewise.
3404 (create_speculation_check): Likewise for local "insn_rtx".
3405 (implicit_clobber_conflict_p): Likewise for local "insn".
3406 (get_expr_cost): Likewise.
3407 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3408 (move_cond_jump): Likewise for locals "next", "prev", "link",
3409 "head", "from", "to".
3411 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3413 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3414 "next" from rtx to rtx_insn *.
3415 (find_conditional_protection): Likewise for local "next".
3416 (is_conditionally_protected): Likewise for local "insn1".
3417 (is_pfree): Likewise for locals "insn1", "insn2".
3419 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3421 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3422 from rtx to rtx_insn *.
3424 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3425 locals "insn1", "insn2" from rtx to rtx_insn *.
3426 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3427 locals "insn", "prev", "last_jump", "next_tail".
3428 (schedule_ebb): Likewise for params "head", "tail".
3429 (schedule_ebbs): Likewise for locals "tail", "head".
3431 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3432 to rtx_insn on "last_insn" in one of the invocations of
3435 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3437 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3438 "elem", "insn" from rtx to rtx_insn *.
3439 (change_spec_dep_to_hard): Likewise.
3440 (get_back_and_forw_lists): Likewise for local "con".
3441 (sd_add_dep): Likewise for locals "elem", "insn".
3442 (sd_resolve_dep): Likewise for locals "pro", "con".
3443 (sd_unresolve_dep): Likewise.
3444 (sd_delete_dep): Likewise.
3445 (chain_to_prev_insn): Likewise for local "pro".
3446 (find_inc): Likewise for locals "pro", "con".
3448 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3450 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3452 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3454 (modified_between_p): Strengthen local "insn" from rtx to
3456 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3457 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3460 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3462 * resource.c (next_insn_no_annul): Strengthen local "next" from
3464 (mark_referenced_resources): Likewise for local "insn".
3466 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3468 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3470 (find_reloads): Likewise for param 1.
3471 (subst_reloads): Likewise for sole param.
3472 (find_equiv_reg): Likwise for param 2.
3473 (regno_clobbered_p): Likwise for param 2.
3474 (reload): Likewise for param 1.
3476 * caller-save.c (save_call_clobbered_regs): Strengthen local
3477 "insn" from rtx to rtx_insn *.
3478 (insert_one_insn): Likewise for local "insn".
3480 * reload.c (this_insn): Likewise for this global.
3481 (find_reloads): Likewise for param "insn".
3482 (find_reloads_toplev): Likewise.
3483 (find_reloads_address): Likewise.
3484 (subst_reg_equivs): Likewise.
3485 (update_auto_inc_notes): Likewise.
3486 (find_reloads_address_1): Likewise.
3487 (find_reloads_subreg_address): Likewise.
3488 (subst_reloads): Likewise.
3489 (find_equiv_reg): Likewise, also for local "p".
3490 (regno_clobbered_p): Likewise for param "insn".
3492 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3494 (spill_reg_store): Likewise for the elements of this array.
3495 (remove_init_insns): Likewise for local "equiv_insn".
3496 (will_delete_init_insn_p): Likewise for param "insn".
3497 (reload): Likewise for param ""first" and local "insn".
3498 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3500 (calculate_elim_costs_all_insns): Likewise.
3501 (delete_caller_save_insns): Likewise.
3502 (spill_failure): Likewise for param "insn".
3503 (delete_dead_insn): Likewise.
3504 (set_label_offsets): Likewise.
3505 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3507 (elimination_costs_in_insn): Likewise for param "insn".
3508 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3509 when referring to an insn.
3510 (set_initial_label_offsets): Likewise.
3511 (set_offsets_for_label): Strengthen param "insn" from rtx to
3513 (init_eliminable_invariants): Likewise for param "first" and local
3515 (fixup_eh_region_note): Likewise for param "insn".
3516 (reload_as_needed): Likewise for locals "prev", "insn",
3517 "old_next", "old_prev", "next".
3518 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3520 (reload_inheritance_insn): Strengthen elements of this array from
3522 (failed_reload): Likewise for param "insn".
3523 (choose_reload_regs): Likewise for local "insn". Replace use of
3524 NULL_RTX with NULL when referring to an insn.
3525 (input_reload_insns): Strengthen elements of this array from rtx
3527 (other_input_address_reload_insns): Likewise for this global.
3528 (other_input_reload_insns): Likewise for this global.
3529 (input_address_reload_insns): Likwise for the elements of this
3531 (inpaddr_address_reload_insns): Likwise for the elements of this
3533 (output_reload_insns): Likewise for the elements of this array.
3534 (output_address_reload_insns): Likewise for the elements of this
3536 (outaddr_address_reload_insns): Likewise for the elements of this
3538 (operand_reload_insns): Likewise for this global.
3539 (other_operand_reload_insns): Likewise for this global.
3540 (other_output_reload_insns): Likewise for the elements of this
3542 (new_spill_reg_store): Likewise for the elements of this
3544 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3545 Strengthen local "where" from rtx * to rtx_insn **.
3546 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3547 from rtx to rtx_insn *.
3548 (do_input_reload): Likewise for local "insn".
3549 (do_output_reload): Likewise for local "insn".
3550 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3551 (emit_insn_if_valid_for_reload): Likewise for return type and local
3552 "last". Add checked cast to rtx_insn when returning "insn" since
3553 this has been through emit_insn.
3554 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3555 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3556 returning "insn" since it's been through
3557 emit_insn_if_valid_for_reload at this point.
3558 (delete_output_reload): Strengthen param "insn" and locals
3559 "output_reload_insn", "i2" from rtx to rtx_insn *.
3560 (delete_address_reloads): Likewise for params "dead_insn",
3561 "current_insn" and locals "prev", "next".
3562 (delete_address_reloads_1): Likewise for params "dead_insn",
3563 "current_insn" and locals "prev", "i2".
3564 (inc_for_reload): Likewise for locals "last", "add_insn".
3565 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3568 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3569 param of this duplicate of the prototype from reload.h
3571 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3573 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3575 (regstat_bb_compute_calls_crossed): Likewise.
3577 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3579 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3581 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3583 (regrename_analyze): Strengthen local "insn" from rtx to
3585 (scan_rtx_reg): Likewise for param "insn".
3586 (scan_rtx_address): Likewise.
3587 (scan_rtx): Likewise.
3588 (restore_operands): Likewise.
3589 (record_out_operands): Likewise.
3590 (build_def_use): Likewise for local "insn". Replace use of
3591 NULL_RTX with NULL when dealing with an insn.
3593 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3595 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3596 * reginfo.c (reg_scan): Likewise, also for local "insn".
3597 (reg_scan_mark_refs): Likewise for param "insn".
3598 (init_subregs_of_mode): Likewise for local "insn".
3600 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3602 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3603 "insn" from rtx to rtx_insn *.
3604 (replace_oldest_value_reg): Likewise for param "insn".
3605 (replace_oldest_value_addr): Likewise.
3606 (replace_oldest_value_mem): Likewise.
3607 (apply_debug_insn_changes): Likewise for local "last_insn".
3608 (copyprop_hardreg_forward_1): Likewise for local "insn".
3610 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3612 * reg-stack.c (next_flags_user): Strengthen return type and param
3613 "insn" from rtx to rtx_insn *.
3614 (straighten_stack): Likewise for param "insn".
3615 (check_asm_stack_operands): Likewise.
3616 (remove_regno_note): Likewise.
3617 (emit_pop_insn): Likewise for return type, param "insn", local
3619 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3620 "limit" from rtx to rtx_insn *.
3621 (swap_to_top): Likewise for param "insn".
3622 (move_for_stack_reg): Likewise.
3623 (move_nan_for_stack_reg): Likewise.
3624 (swap_rtx_condition): Likewise.
3625 (compare_for_stack_reg): Likewise.
3626 (subst_all_stack_regs_in_debug_insn): Likewise.
3627 (subst_stack_regs_pat): Likewise, and local "insn2".
3628 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3630 (subst_stack_regs): Likewise.
3631 (change_stack): Likewise.
3632 (convert_regs_1): Likewise for locals "insn", "next".
3634 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3636 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3638 (combine_set_extension): Likewise for param "curr_insn".
3639 (transform_ifelse): Likewise for param "def_insn".
3640 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3641 from vec<rtx> * to vec<rtx_insn *> *.
3642 (is_cond_copy_insn): Likewise for param "insn".
3643 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3645 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3646 local "def_insn" from rtx to rtx_insn *.
3647 (get_sub_rtx): Likewise for param "def_insn".
3648 (merge_def_and_ext): Likewise.
3649 (combine_reaching_defs): Likewise.
3650 (add_removable_extension): Likewise for param "insn".
3651 (find_removable_extensions): Likewise for local "insn".
3652 (find_and_remove_re): Likewise for locals "curr_insn" and
3653 "def_insn". Strengthen locals "reinsn_del_list" and
3654 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3656 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3658 * recog.c (split_insn): Strengthen param "insn" and locals
3659 "first", "last" from rtx to rtx_insn *.
3660 (split_all_insns): Likewise for locals "insn", "next".
3661 (split_all_insns_noflow): Likewise.
3663 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3665 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3667 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3668 (debug_rtx_find): Likewise for param 1 "x".
3670 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3671 const_rtx to const rtx_insn *. Likewise for local "insn".
3672 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3673 (debug_rtx_find): Likewise for param 1 "x".
3674 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3675 from const_rtx to const rtx_insn * within the appropriate cases of
3676 the switch statement.
3678 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3679 Strengthen local "insns" from rtx to rtx_insn * since this is
3680 passed to a call to debug_rtx_list.
3682 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3684 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3687 * function.c (stack_protect_epilogue): Add checked cast to
3688 rtx_insn for now when invoking predict_insn_def.
3690 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3692 (predict_insn_def): Likewise.
3693 (rtl_predict_edge): Likewise for local "last_insn".
3694 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3696 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3698 (bb_estimate_probability_locally): Likewise for local "last_insn".
3699 (expensive_function_p): Likewise for local "insn".
3701 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3702 local "jmp", since this is used when invoking predict_insn_def.
3704 2014-08-22 Marek Polacek <polacek@redhat.com>
3707 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3709 2014-08-22 Marek Polacek <polacek@redhat.com>
3712 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3713 a comparison in parens.
3714 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3717 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3719 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3722 * cprop.c (fis_get_condition): Likewise.
3724 * postreload.c (reload_cse_regs): Likewise for param "first".
3725 (reload_cse_simplify): Likewise for param "insn".
3726 (reload_cse_regs_1): Likewise for local "insn".
3727 (reload_cse_simplify_set): Likewise for param "insn".
3728 (reload_cse_simplify_operands): Likewise.
3729 (struct reg_use): Likewise for field "insn".
3730 (reload_combine_purge_insn_uses): Likewise for param "insn".
3731 (fixup_debug_insns): Likewise for params "from", "to" and local
3733 (try_replace_in_use): Likewise for local "use_insn".
3734 (reload_combine_recognize_const_pattern): Likewise for param
3735 "insn" and locals "add_moved_after_insn", "use_insn".
3736 (reload_combine_recognize_pattern): Likewise for param "insn" and
3738 (reload_combine): Likewise for locals "insn", "prev".
3739 (reload_combine_note_use): Likewise for param "insn".
3740 (move2add_use_add2_insn): Likewise.
3741 (move2add_use_add3_insn): Likewise.
3742 (reload_cse_move2add): Likewise, also for local "next".
3743 (move2add_note_store): Likewise for local "insn".
3745 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3747 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3749 (struct unoccr): Likewise.
3750 (struct modifies_mem): Likewise.
3751 (alloc_mem): Likewise for local "insn".
3752 (insert_expr_in_table): Likewise for param "insn".
3753 (dump_expr_hash_table_entry): Likewise for local "insn".
3754 (oprs_unchanged_p): Likewise for param "insn".
3755 (load_killed_in_block_p): Likewise for local "setter".
3756 (record_last_reg_set_info): Likewise for param "insn".
3757 (record_last_reg_set_info_regno): Likewise.
3758 (record_last_mem_set_info): Likewise.
3759 (record_last_set_info): Likewise for local "last_set_insn".
3760 (record_opr_changes): Likewise for param "insn".
3761 (hash_scan_set): Likewise.
3762 (compute_hash_table): Likewise for local "insn".
3763 (get_avail_load_store_reg): Likewise for param "insn".
3764 (eliminate_partially_redundant_load): Likewise, also for locals
3765 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3767 (eliminate_partially_redundant_loads): Likewise for local "insn".
3769 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3771 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3773 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3774 (expand_twoval_unop): Likewise for locals entry_last", "last".
3775 (expand_twoval_binop): Likewise.
3776 (expand_twoval_binop_libfunc): Likewise for local "insns".
3777 (widen_leading): Likewise for local "last".
3778 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3779 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3780 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3781 (expand_parity): Likewise for locals "last" and "seq".
3782 (expand_ffs): Likewise for local "seq". Strengthen local
3783 "nonzero_label" from rtx to rtx_code_label *.
3784 (expand_absneg_bit): Strengthen local "insns" from rtx to
3786 (expand_unop_direct): Likewise for local "last".
3787 (expand_unop): Likewise for locals "last", "insns".
3788 (expand_abs_nojump): Likewise for local "last".
3789 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3790 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3792 (expand_copysign_absneg): Strengthen local "label" from rtx to
3794 (expand_copysign_bit): Strengthen local "insns" from rtx to
3796 (struct no_conflict_data): Likewise for fields "first", "insn".
3797 (emit_libcall_block_1): Likewise for param "insns" and locals
3798 "next", "last", "insn".
3799 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3800 on "insns" when invoking emit_libcall_block_1. Ultimately we
3801 want to strengthen insns itself.
3802 (prepare_cmp_insn): Strengthen local "last" from rtx to
3804 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3805 (prepare_float_lib_cmp): Likewise for local "insns".
3806 (emit_conditional_move): Likewise for local "last".
3807 (emit_conditional_add): Likewise.
3808 (have_sub2_insn): Likewise for local "seq".
3809 (expand_float): Likewise for local "insns". Strengthen locals
3810 "label", "neglabel" from rtx to rtx_code_label *.
3811 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3812 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3813 (expand_fixed_convert): Likewise for local "insns" (to
3815 (expand_sfix_optab): Likewise for local "last".
3816 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3817 to rtx_code_label *.
3818 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3819 from rtx to rtx_insn *.
3820 (expand_atomic_fetch_op): Likewise for local "insn".
3821 (maybe_legitimize_operand_same_code): Likewise for local "last".
3822 (maybe_legitimize_operands): Likewise.
3824 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3826 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3827 "insn" from rtx to rtx_insn *.
3828 (ps_rtl_insn): Likewise for return type.
3829 (doloop_register_get): Likewise for params "head", "tail" and
3830 locals "insn", "first_insn_not_to_check".
3831 (schedule_reg_move): Likewise for local "this_insn".
3832 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3833 of gen_move_insn for now.
3834 (reset_sched_times): Strengthen local "insn" from rtx to
3836 (permute_partial_schedule): Likewise.
3837 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3838 (dump_insn_location): Likewise for param "insn".
3839 (loop_canon_p): Likewise for local "insn".
3840 (sms_schedule): Likewise.
3841 (print_partial_schedule): Likewise.
3842 (ps_has_conflicts): Likewise.
3844 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3846 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3847 "tailp" from rtx * to rtx_insn **.
3849 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3850 from rtx to rtx_insn *.
3851 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3852 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3853 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3855 * modulo-sched.c (const_iteration_count): Strengthen return type
3856 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3857 use of NULL_RTX with NULL when working with insns.
3858 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3860 (sms_schedule): Likewise.
3861 * sched-rgn.c (init_ready_list): Likewise, also for locals
3862 "src_head" and "src_next_tail".
3863 (compute_block_dependences): Likewise.
3864 (free_block_dependencies): Likewise.
3865 (debug_rgn_dependencies): Likewise.
3866 (free_rgn_deps): Likewise.
3867 (compute_priorities): Likewise.
3868 (schedule_region): Likewise.
3869 * sel-sched.c (find_ebb_boundaries): Likewise.
3871 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3872 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3874 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3876 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3877 from rtx to rtx_insn *.
3878 (new_seginfo): Likewise for param "insn".
3879 (create_pre_exit): Likewise for locals "last_insn",
3880 "before_return_copy", "return_copy".
3881 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3884 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3886 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3887 from rtx to rtx_insn *.
3888 (lra_push_insn): Likewise for 1st param.
3889 (lra_push_insn_and_update_insn_regno_info): Likewise.
3890 (lra_pop_insn): Likewise for return type.
3891 (lra_invalidate_insn_data): Likewise for 1st param.
3892 (lra_set_insn_deleted): Likewise.
3893 (lra_delete_dead_insn): Likewise.
3894 (lra_process_new_insns): Likewise for first 3 params.
3895 (lra_set_insn_recog_data): Likewise for 1st param.
3896 (lra_update_insn_recog_data): Likewise.
3897 (lra_set_used_insn_alternative): Likewise.
3898 (lra_invalidate_insn_regno_info): Likewise.
3899 (lra_update_insn_regno_info): Likewise.
3900 (lra_former_scratch_operand_p): Likewise.
3901 (lra_eliminate_regs_1): Likewise.
3902 (lra_get_insn_recog_data): Likewise.
3904 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3907 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3909 (substitute_within_insn): New.
3910 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3911 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3912 Replace call to "substitute" with call to substitute_within_insn.
3914 * lra-constraints.c (curr_insn): Strengthen from rtx to
3916 (get_equiv_with_elimination): Likewise for param "insn".
3917 (match_reload): Strengthen params "before" and "after" from rtx *
3919 (emit_spill_move): Likewise for return type. Add a checked cast
3920 to rtx_insn * on result of gen_move_insn for now.
3921 (check_and_process_move): Likewise for local "before". Replace
3922 NULL_RTX with NULL when referring to insns.
3923 (process_addr_reg): Strengthen params "before" and "after" from
3924 rtx * to rtx_insn **.
3925 (insert_move_for_subreg): Likewise.
3926 (simplify_operand_subreg): Strengthen locals "before" and "after"
3927 from rtx to rtx_insn *.
3928 (process_address_1): Strengthen params "before" and "after" from
3929 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3931 (process_address): Strengthen params "before" and "after" from
3932 rtx * to rtx_insn **.
3933 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3934 (curr_insn_transform): Strengthen locals "before" and "after"
3935 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3937 (loc_equivalence_callback): Update cast of "data", changing
3938 resulting type from rtx to rtx_insn *.
3939 (substitute_pseudo_within_insn): New.
3940 (inherit_reload_reg): Strengthen param "insn" from rtx to
3941 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3942 NULL when referring to insns. Add a checked cast to rtx_insn *
3943 when using usage_insn to invoke lra_update_insn_regno_info.
3944 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3945 likewise for locals "restore", "save". Add checked casts to
3946 rtx_insn * when using usage_insn to invoke
3947 lra_update_insn_regno_info and lra_process_new_insns. Replace
3948 NULL_RTX with NULL when referring to insns.
3949 (split_if_necessary): Strengthen param "insn" from rtx to
3951 (update_ebb_live_info): Likewise for params "head", "tail" and local
3953 (get_last_insertion_point): Likewise for return type and local "insn".
3954 (get_live_on_other_edges): Likewise for local "last".
3955 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3956 "prev_insn", "next_insn", "restore".
3957 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3958 (undo_optional_reloads): Likewise for local "insn".
3960 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3962 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3964 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3966 (spill_pseudos): Likewise for local "insn".
3967 (init_elimination): Likewise.
3968 (process_insn_for_elimination): Likewise for param "insn".
3970 * lra-lives.c (curr_insn): Likewise.;
3972 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3973 (remove_pseudos): Likewise for param "insn".
3974 (spill_pseudos): Likewise for local "insn".
3975 (lra_final_code_change): Likewise for locals "insn", "curr".
3977 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3978 (lra_set_insn_deleted): Likewise.
3979 (lra_delete_dead_insn): Likewise, and for local "prev".
3980 (new_insn_reg): Likewise for param "insn".
3981 (lra_set_insn_recog_data): Likewise.
3982 (lra_update_insn_recog_data): Likewise.
3983 (lra_set_used_insn_alternative): Likewise.
3984 (get_insn_freq): Likewise.
3985 (invalidate_insn_data_regno_info): Likewise.
3986 (lra_invalidate_insn_regno_info): Likewise.
3987 (lra_update_insn_regno_info): Likewise.
3988 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3990 (lra_push_insn_1): Strengthen param "insn" from rtx to
3992 (lra_push_insn): Likewise.
3993 (lra_push_insn_and_update_insn_regno_info): Likewise.
3994 (lra_pop_insn): Likewise for return type and local "insn".
3995 (push_insns): Likewise for params "from", "to", and local "insn".
3996 (setup_sp_offset): Likewise for params "from", "last" and locals
3998 (lra_process_new_insns): Likewise for params "insn", "before",
3999 "after" and local "last".
4000 (struct sloc): Likewise for field "insn".
4001 (lra_former_scratch_operand_p): Likewise for param "insn".
4002 (remove_scratches): Likewise for locals "insn", "last".
4003 (check_rtl): Likewise for local "insn".
4004 (add_auto_inc_notes): Likewise for param "insn".
4005 (update_inc_notes): Likewise for local "insn".
4006 (lra): Replace NULL_RTX with NULL when referring to insn.
4008 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4010 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
4012 (resolve_reg_notes): Likewise.
4013 (resolve_simple_move): Likewise for return type, param "insn", and
4014 locals "insns", "minsn".
4015 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
4016 (resolve_use): Likewise.
4017 (resolve_debug): Likewise.
4018 (find_decomposable_shift_zext): Likewise.
4019 (resolve_shift_zext): Likewise for return type, param "insn", and
4020 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
4021 (decompose_multiword_subregs): Likewise for local "insn",
4022 "orig_insn", "decomposed_shift", "end".
4024 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4026 * basic-block.h (basic_block split_edge_and_insert): Strengthen
4027 param "insns" from rtx to rtx_insn *.
4029 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
4031 (struct iv_to_split): Likewise.
4032 (loop_exit_at_end_p): Likewise for local "insn".
4033 (split_edge_and_insert): Likewise for param "insns".
4034 (compare_and_jump_seq): Likewise for return type, param "cinsn",
4035 and locals "seq", "jump".
4036 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
4037 "branch_code"; update invocations of compare_and_jump_seq to
4038 eliminate NULL_RTX in favor of NULL.
4039 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
4041 (reset_debug_uses_in_loop): Likewise.
4042 (analyze_insn_to_expand_var): Likewise for param "insn".
4043 (analyze_iv_to_split_insn): Likewise.
4044 (analyze_insns_in_loop): Likewise for local "insn".
4045 (insert_base_initialization): Likewise for param
4046 "insn" and local "seq".
4047 (split_iv): Likewise for param "insn" and local "seq".
4048 (expand_var_during_unrolling): Likewise for param "insn".
4049 (insert_var_expansion_initialization): Likewise for local "seq".
4050 (combine_var_copies_in_loop_exit): Likewise.
4051 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
4053 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
4054 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
4057 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4059 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
4061 (iv_analyze_result): Likewise.
4062 (iv_analyze_expr): Likewise.
4065 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
4066 local "def_insn" from rtx to rtx_insn *.
4067 (get_biv_step_1): Likewise for local "insn".
4068 (iv_analyze_expr): Likewise for param "insn".
4069 (iv_analyze_def): Likewise for local "insn".
4070 (iv_analyze_op): Likewise for param "insn".
4071 (iv_analyze): Likewise.
4072 (iv_analyze_result): Likewise.
4074 (suitable_set_for_replacement): Likewise.
4075 (simplify_using_initial_values): Likewise for local "insn".
4076 (iv_number_of_iterations): Likewise for param "insn".
4077 (check_simple_exit): Add checked cast to rtx_insn when invoking
4078 iv_number_of_iterations for now (until get_condition is
4081 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
4082 "insn" from rtx to rtx_insn *.
4083 (analyze_insns_in_loop): Likewise for local "insn".
4085 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4087 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
4089 (struct invariant): Likewise.
4090 (hash_invariant_expr_1): Likewise for param "insn".
4091 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
4092 (find_exits): Likewise for local "insn".
4093 (create_new_invariant): Likewise for param "insn".
4094 (check_dependencies): Likewise.
4095 (find_invariant_insn): Likewise.
4096 (record_uses): Likewise.
4097 (find_invariants_insn): Likewise.
4098 (find_invariants_bb): Likewise for local "insn".
4099 (get_pressure_class_and_nregs): Likewise for param "insn".
4100 (calculate_loop_reg_pressure): Likewise for local "insn".
4102 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4104 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
4106 (add_test): Likewise for locals "seq", "jump".
4107 (doloop_modify): Likewise for locals "sequence", "jump_insn".
4109 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4111 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
4113 (rebuild_jump_labels_chain): Likewise for param "chain".
4115 * cfgexpand.c (pass_expand::execute): Add checked cast to
4116 rtx_insn * when calling rebuild_jump_labels_chain in region where
4117 we know e->insns.r is non-NULL.
4119 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
4121 (rebuild_jump_labels): Likewise.
4122 (rebuild_jump_labels_chain): Likewise for param "chain".
4123 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
4124 (init_label_info): Likewise for param "f".
4125 (maybe_propagate_label_ref): Likewise for params "jump_insn",
4126 "prev_nonjump_insn".
4127 (mark_all_labels): Likewise for param "f" and locals "insn",
4128 "prev_nonjump_insn".
4130 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4132 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
4133 from rtx to rtx_insn *insn.
4134 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
4135 (ira_add_allocno_copy): Likewise.
4136 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
4138 (ira_create_copy): Likewise.
4139 (ira_add_allocno_copy): Likewise.
4140 (create_bb_allocnos): Likewise for local "insn".
4141 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
4142 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
4143 process_regs_for_copy for rtx_insn * param.
4144 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
4145 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
4146 process_regs_for_copy for rtx_insn * param.
4147 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
4148 * ira-costs.c (record_reg_classes): Likewise for param "insn".
4149 (record_operand_costs): Likewise.
4150 (scan_one_insn): Likewise for return type, and for param "insn".
4151 (process_bb_for_costs): Likewise for local "insn".
4152 (process_bb_node_for_hard_reg_moves): Likewise.
4153 * ira-emit.c (struct move): Likewise for field "insn".
4154 (create_move): Eliminate use of NULL_RTX when dealing with an
4156 (emit_move_list): Strengthen return type and locals "result",
4157 "insn" from rtx to rtx_insn *insn.
4158 (emit_moves): Likewise for locals "insns", "tmp".
4159 (ira_emit): Likewise for local "insn".
4160 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4162 (find_call_crossed_cheap_reg): Likewise.
4163 (process_bb_node_lives): Likewise for local "insn".
4164 * ira.c (decrease_live_ranges_number): Likewise.
4165 (compute_regs_asm_clobbered): Likewise.
4166 (build_insn_chain): Likewise.
4167 (find_moveable_pseudos): Likewise, also locals "def_insn",
4168 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4169 to rtx_insn **. Add a checked cast when assigning from
4170 "closest_use" into closest_uses array in a region where we know
4171 it's a non-NULL insn.
4172 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4174 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4175 "last_interesting_insn", "uin".
4176 (move_unallocated_pseudos): Likewise for locals "def_insn",
4177 "move_insn", "newinsn".
4179 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4181 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4182 Strengthen locals "done_label", "do_error" from rtx to
4184 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4185 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4187 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4188 "done_label", "do_error" to rtx_code_label * and local "last" to
4190 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4191 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4192 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4193 "after_lopart_neg", "do_overflow", "hipart_different" to
4194 rtx_code_label * and local "last" to rtx_insn *.
4196 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4198 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4199 "insn" and "move_insn" from rtx to rtx_insn *.
4201 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4203 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4205 (cheap_bb_rtx_cost_p): Likewise.
4206 (first_active_insn): Likewise for return type and local "insn".
4207 (last_active_insn): Likewise for return type and locals "insn",
4209 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4211 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4213 (noce_try_move): Likewise for local "seq".
4214 (noce_try_store_flag): Likewise.
4215 (noce_try_store_flag_constants): Likewise.
4216 (noce_try_addcc): Likewise.
4217 (noce_try_store_flag_mask): Likewise.
4218 (noce_try_cmove): Likewise.
4219 (noce_try_minmax): Likewise.
4220 (noce_try_abs): Likewise.
4221 (noce_try_sign_mask): Likewise.
4222 (noce_try_bitop): Likewise.
4223 (noce_can_store_speculate_p): Likewise for local "insn".
4224 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4226 (check_cond_move_block): Likewise for local "insn".
4227 (cond_move_convert_if_block): Likewise.
4228 (cond_move_process_if_block): Likewise for locals "seq",
4230 (noce_find_if_block): Likewise for local "jump".
4231 (merge_if_block): Likewise for local "last".
4232 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4233 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4234 (block_has_only_trap): Likewise for return type and local "trap".
4235 (find_if_case_1): Likewise for local "jump".
4236 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4239 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4241 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4242 "last_insn", "loop_end" from rtx to rtx_insn *.
4244 * hw-doloop.c (scan_loop): Likewise for local "insn".
4245 (discover_loop): Likewise for param "tail_insn".
4246 (discover_loops): Likewise for local "tail".
4248 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4249 cast to rtx_insn * when assigning from an rtx local to a
4250 hwloop_info's "last_insn" field.
4252 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4254 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4255 (add_delay_dependencies): Strengthen local "pro" from rtx to
4257 (recompute_todo_spec): Likewise.
4258 (dep_cost_1): Likewise for locals "insn", "used".
4259 (schedule_insn): Likewise for local "dbg".
4260 (schedule_insn): Likewise for locals "pro", "next".
4261 (unschedule_insns_until): Likewise for local "con".
4262 (restore_pattern): Likewise for local "next".
4263 (estimate_insn_tick): Likewise for local "pro".
4264 (resolve_dependencies): Likewise for local "next".
4265 (fix_inter_tick): Likewise.
4266 (fix_tick_ready): Likewise for local "pro".
4267 (add_to_speculative_block): Likewise for locals "check", "twin",
4269 (sched_extend_bb): Likewise for locals "end", "insn".
4270 (init_before_recovery): Likewise for local "x".
4271 (sched_create_recovery_block): Likewise for local "barrier".
4272 (create_check_block_twin): Likewise for local "pro".
4273 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4275 (unlink_bb_notes): Update for change to type of bb_header.
4276 Strengthen locals "prev", "label", "note", "next" from rtx to
4278 (clear_priorities): Likewise for local "pro".
4280 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4282 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4284 (test_insn): Likewise for this global.
4285 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4287 (oprs_anticipatable_p): Likewise.
4288 (oprs_available_p): Likewise.
4289 (insert_expr_in_table): Strengthen param "insn" from rtx to
4291 (hash_scan_set): Likewise.
4292 (hash_scan_clobber): Likewise.
4293 (hash_scan_call): Likewise.
4294 (hash_scan_insn): Likewise.
4295 (compute_hash_table_work): Likewise for local "insn".
4296 (process_insert_insn): Likewise for return type and local "pat".
4297 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4298 "pat", "pat_end", "maybe_cc0_setter".
4299 (pre_edge_insert): Likewise for local "insn".
4300 (pre_insert_copy_insn): Likewise for param "insn".
4301 (pre_insert_copies): Likewise for local "insn".
4302 (struct set_data): Likewise for field "insn".
4303 (single_set_gcse): Likewise for param "insn".
4304 (gcse_emit_move_after): Likewise.
4305 (pre_delete): Likewise for local "insn".
4306 (update_bb_reg_pressure): Likewise for param "from" and local
4308 (should_hoist_expr_to_dom): Likewise for param "from".
4309 (hoist_code): Likewise for local "insn".
4310 (get_pressure_class_and_nregs): Likewise for param "insn".
4311 (calculate_bb_reg_pressure): Likewise for local "insn".
4312 (compute_ld_motion_mems): Likewise.
4314 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4316 * genpeep.c (main): Rename param back from "uncast_ins1" to
4317 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4320 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4322 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4325 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4326 documentation to state it is only for VSX operations.
4328 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4329 constraint only active if VSX.
4331 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4332 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4335 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4337 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4338 Strengthen local "insn" from rtx to rtx_insn *.
4339 (use_killed_between): Likewise for param "target_insn".
4340 (all_uses_available_at): Likewise for param "target_insn" and
4342 (update_df_init): Likewise for params "def_insn", "insn".
4343 (update_df): Likewise for param "insn".
4344 (try_fwprop_subst): Likewise for param "def_insn" and local
4346 (free_load_extend): Likewise for param "insn".
4347 (forward_propagate_subreg): Likewise for param "def_insn" and
4349 (forward_propagate_asm): Likewise for param "def_insn" and local
4351 (forward_propagate_and_simplify): Likewise for param "def_insn"
4352 and local "use_insn".
4353 (forward_propagate_into): Likewise for locals "def_insn" and
4356 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4358 * function.c (emit_initial_value_sets): Strengthen local "seq"
4359 from rtx to rtx_insn *.
4360 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4362 (instantiate_virtual_regs): Likewise for local "insn".
4363 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4364 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4365 (expand_function_end): Likewise for locals "insn" and "seq".
4366 (epilogue_done): Likewise for local "insn".
4367 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4369 (reposition_prologue_and_epilogue_notes): Likewise for locals
4370 "insn", "last", "note", "first".
4371 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4372 (pass_match_asm_constraints::execute): Likewise for local "insn".
4374 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4376 * output.h (final_scan_insn): Strengthen return type from rtx to
4378 (final_forward_branch_p): Likewise for param.
4379 (current_output_insn): Likewise for this global.
4381 * final.c (rtx debug_insn): Likewise for this variable.
4382 (current_output_insn): Likewise.
4383 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4384 adding "insn" back in as an rtx_insn * with a checked cast, so
4385 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4387 (compute_alignments): Strengthen local "label" from rtx to
4389 (shorten_branches): Rename param from "first" to "uncast_first",
4390 introducing a new local rtx_insn * "first" using a checked cast to
4391 effectively strengthen "first" from rtx to rtx_insn * without
4392 affecting the type signature. Strengthen locals "insn", "seq",
4393 "next", "label" from rtx to rtx_insn *.
4394 (change_scope): Strengthen param "orig_insn" and local "insn" from
4396 (final_start_function): Rename param from "first" to "uncast_first",
4397 introducing a new local rtx_insn * "first" using a checked cast to
4398 effectively strengthen "first" from rtx to rtx_insn * without
4399 affecting the type signature. Strengthen local "insn" from rtx to
4401 (dump_basic_block_info): Strengthen param "insn" from rtx to
4403 (final): Rename param from "first" to "uncast_first",
4404 introducing a new local rtx_insn * "first" using a checked cast to
4405 effectively strengthen "first" from rtx to rtx_insn * without
4406 affecting the type signature. Strengthen locals "insn", "next"
4407 from rtx to rtx_insn *.
4408 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4410 (call_from_call_insn): Strengthen param "insn" from rtx to
4412 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4413 introducing a new local rtx_insn * "insn" using a checked cast to
4414 effectively strengthen "insn" from rtx to rtx_insn * without
4415 affecting the type signature. Strengthen return type and locals
4416 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4417 now-redundant checked cast to rtx_insn * from both invocations of
4418 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4419 introducing a local "call_insn" for use when invoking
4420 call_from_call_insn.
4421 (notice_source_line): Strengthen param "insn" from rtx to
4423 (leaf_function_p): Likewise for local "insn".
4424 (final_forward_branch_p): Likewise.
4425 (leaf_renumber_regs): Likewise for param "first".
4426 (rest_of_clean_state): Likewise for locals "insn" and "next".
4427 (self_recursive_call_p): Likewise for param "insn".
4428 (collect_fn_hard_reg_usage): Likewise for local "insn".
4429 (get_call_fndecl): Likewise for param "insn".
4430 (get_call_cgraph_rtl_info): Likewise.
4431 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4432 introducing a new local rtx_insn * "insn" using a checked cast to
4433 effectively strengthen "insn" from rtx to rtx_insn * without
4434 affecting the type signature.
4436 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4437 cast when assigning from param "insn" to current_output_insn.
4438 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4439 so that we can assign it back to current_output_insn.
4441 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4443 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4444 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4445 atmxt540s and atmxt540sreva devices.
4446 * config/avr/avr-tables.opt: Regenerate.
4447 * config/avr/t-multilib: Regenerate.
4448 * doc/avr-mmcu.texi: Regenerate.
4450 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4452 * expr.c (convert_move): Strengthen local "insns" from rtx to
4454 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4455 "top_label" from rtx to rtx_code_label *.
4456 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4458 (emit_single_push_insn): Likewise for locals "prev", "last".
4459 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4460 to rtx_code_label *.
4461 (store_constructor): Likewise for locals "loop_start", "loop_end".
4462 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4464 (expand_expr_real_2): Likewise.
4465 (expand_expr_real_1): Strengthen local "label" from rtx to
4468 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4470 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4471 from rtx to rtx_insn *.
4472 (store_bit_field_1): Likewise.
4473 (extract_bit_field_1): Likewise.
4474 (expand_mult_const): Likewise for local "insns".
4475 (expmed_mult_highpart): Strengthen local "label" from rtx to
4477 (expand_smod_pow2): Likewise.
4478 (expand_sdiv_pow2): Likewise.
4479 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4480 rtx_insn *. Strengthen locals "label", "label1", "label2",
4481 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4482 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4483 (emit_store_flag): Likewise.
4484 (emit_store_flag_force): Strengthen local "label" from rtx to
4486 (do_cmp_and_jump): Likewise for param "label".
4488 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4490 * explow.c (force_reg): Strengthen local "insn" from rtx to
4492 (adjust_stack_1): Likewise.
4493 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4494 "final_label", "available_label", "space_available" from rtx to
4496 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4497 (anti_adjust_stack_and_probe): Likewise.
4499 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4501 * except.h (sjlj_emit_function_exit_after): Strengthen param
4502 "after" from rtx to rtx_insn *. This is only called with
4503 result of get_last_insn (in function.c) so type-change should be
4506 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4507 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4508 to rtx_insn *. These fields are only used from except.c so this
4509 type-change should be self-contained to this patch.
4511 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4512 local "last" from rtx to rtx_insn *.
4513 (dw2_build_landing_pads): Likewise for local "seq".
4514 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4515 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4516 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4518 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4520 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4521 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4522 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4523 referring to an insn. Strengthen local "dispatch_label" from
4524 rtx to rtx_code_label *.
4525 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4527 (expand_eh_return): Strengthen local "around_label" from
4528 rtx to rtx_code_label *.
4529 (convert_to_eh_region_ranges): Strengthen locals "iter",
4530 "last_action_insn", "first_no_action_insn",
4531 "first_no_action_insn_before_switch",
4532 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4534 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4536 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4537 from rtx to rtx_insn *.
4538 (cached_next_real_insn): Likewise.
4539 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4541 (dwarf2out_var_location): Strengthen locals "next_real",
4542 "next_note", "expected_next_loc_note", "last_start", "insn" from
4545 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4547 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4548 from rtx to rtx_insn *.
4549 (create_pseudo_cfg): Likewise for local "insn".
4551 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4553 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4554 from rtx to rtx_insn *.
4555 (df_bb_regno_last_def_find): Likewise.
4557 * df-problems.c (df_rd_bb_local_compute): Likewise.
4558 (df_lr_bb_local_compute): Likewise.
4559 (df_live_bb_local_compute): Likewise.
4560 (df_chain_remove_problem): Likewise.
4561 (df_chain_create_bb): Likewise.
4562 (df_word_lr_bb_local_compute): Likewise.
4563 (df_remove_dead_eq_notes): Likewise for param "insn".
4564 (df_note_bb_compute): Likewise for local "insn".
4565 (simulate_backwards_to_point): Likewise.
4566 (df_md_bb_local_compute): Likewise.
4568 * df-scan.c (df_scan_free_bb_info): Likewise.
4569 (df_scan_start_dump): Likewise.
4570 (df_scan_start_block): Likewise.
4571 (df_install_ref_incremental): Likewise for local "insn".
4572 (df_insn_rescan_all): Likewise.
4573 (df_reorganize_refs_by_reg_by_insn): Likewise.
4574 (df_reorganize_refs_by_insn_bb): Likewise.
4575 (df_recompute_luids): Likewise.
4576 (df_bb_refs_record): Likewise.
4577 (df_update_entry_exit_and_calls): Likewise.
4578 (df_bb_verify): Likewise.
4580 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4582 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4583 "first_note" from rtx to rtx_insn *.
4584 (get_node_of_insn): Likewise for param 2 "insn".
4585 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4587 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4589 (mem_write_insn_p): Likewise.
4590 (mem_access_insn_p): Likewise.
4591 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4592 (def_has_ccmode_p): Likewise for param "insn".
4593 (add_cross_iteration_register_deps): Likewise for locals
4594 "def_insn" and "use_insn".
4595 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4596 (build_intra_loop_deps): Likewise for local "src_insn".
4597 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4599 (get_node_of_insn): Likewise for param "insn".
4601 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4603 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4604 (deletable_insn_p): Strengthen param "insn" from rtx to
4605 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4606 find_call_stack_args, since this is guarded by CALL_P (insn).
4607 (marked_insn_p): Strengthen param "insn" from rtx to
4609 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4610 invoking find_call_stack_args, since this is guarded by
4612 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4613 rtx_insn *; we know this is an insn since this was called by
4615 (mark_nonreg_stores_2): Likewise.
4616 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4618 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4619 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4621 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4622 from rtx to rtx_insn *.
4623 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4625 (delete_unmarked_insns): Likewise for locals "insn", "next".
4626 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4627 (mark_reg_dependencies): Likewise for param "insn".
4628 (rest_of_handle_ud_dce): Likewise for local "insn".
4629 (word_dce_process_block): Likewise.
4630 (dce_process_block): Likewise.
4632 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4634 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4635 from rtx to rtx_insn *.
4636 (struct change_cc_mode_args): Likewise for field "insn".
4637 (this_insn): Strengthen from rtx to rtx_insn *.
4638 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4640 (validate_canon_reg): Strengthen param "insn" from rtx to
4642 (canon_reg): Likewise.
4643 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4645 (record_jump_equiv): Strengthen param "insn" from rtx to
4647 (try_back_substitute_reg): Likewise, also for locals "prev",
4649 (find_sets_in_insn): Likewise for param "insn".
4650 (canonicalize_insn): Likewise.
4651 (cse_insn): Likewise. Add a checked cast.
4652 (invalidate_from_clobbers): Likewise for param "insn".
4653 (invalidate_from_sets_and_clobbers): Likewise.
4654 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4656 (cse_prescan_path): Strengthen local "insn" from rtx to
4658 (cse_extended_basic_block): Likewise for locals "insn" and
4660 (cse_main): Likewise for param "f".
4661 (check_for_label_ref): Likewise for local "insn".
4662 (set_live_p): Likewise for second param ("insn").
4663 (insn_live_p): Likewise for first param ("insn") and for local
4665 (cse_change_cc_mode_insn): Likewise for first param "insn".
4666 (cse_change_cc_mode_insns): Likewise for first and second params
4668 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4670 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4673 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4674 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4675 Anna Tikhonova <anna.tikhonova@intel.com>
4676 Ilya Tocar <ilya.tocar@intel.com>
4677 Andrey Turetskiy <andrey.turetskiy@intel.com>
4678 Ilya Verbin <ilya.verbin@intel.com>
4679 Kirill Yukhin <kirill.yukhin@intel.com>
4680 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4682 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4684 * config/i386/sse.md
4685 (define_mode_iterator VI248_AVX2): Delete.
4686 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4687 (define_mode_iterator VI48_AVX2): Ditto.
4688 (define_insn <shift_insn><mode>3): Delete.
4689 (define_insn "<shift_insn><mode>3<mask_name>" with
4690 VI2_AVX2_AVX512BW): New.
4691 (define_insn "<shift_insn><mode>3<mask_name>" with
4694 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4695 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4696 Anna Tikhonova <anna.tikhonova@intel.com>
4697 Ilya Tocar <ilya.tocar@intel.com>
4698 Andrey Turetskiy <andrey.turetskiy@intel.com>
4699 Ilya Verbin <ilya.verbin@intel.com>
4700 Kirill Yukhin <kirill.yukhin@intel.com>
4701 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4703 * config/i386/sse.md
4704 (define_mode_iterator VI4F_BRCST32x2): New.
4705 (define_mode_attr 64x2_mode): Ditto.
4706 (define_mode_attr 32x2mode): Ditto.
4707 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4708 with VI4F_BRCST32x2): Ditto.
4709 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4710 with V16FI mode iterator): Ditto.
4711 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4713 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4714 with VI8F_BRCST64x2): Ditto.
4716 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4717 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4718 Anna Tikhonova <anna.tikhonova@intel.com>
4719 Ilya Tocar <ilya.tocar@intel.com>
4720 Andrey Turetskiy <andrey.turetskiy@intel.com>
4721 Ilya Verbin <ilya.verbin@intel.com>
4722 Kirill Yukhin <kirill.yukhin@intel.com>
4723 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4725 * config/i386/sse.md
4726 (define_mode_iterator VI8_AVX512VL): New.
4727 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4729 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4731 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4732 (define_mode_iterator V48_AVX512VL): New.
4733 (define_mode_iterator V12_AVX512VL): Ditto.
4734 (define_insn <avx512>_load<mode>_mask): Split into two similar
4735 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4736 Refactor output template.
4737 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4739 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4741 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4743 (reg_available_p): Likewise for param "insn".
4744 (insert_set_in_table): Likewise.
4745 (hash_scan_set): Likewise.
4746 (hash_scan_insn): Likewise.
4747 (make_set_regs_unavailable): Likewise.
4748 (compute_hash_table_work): Likewise for local "insn".
4749 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4751 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4752 (try_replace_reg): Likewise.
4753 (find_avail_set): Likewise.
4754 (cprop_jump): Likewise for params "setcc", "jump".
4755 (constprop_register): Likewise for param "insn".
4756 (cprop_insn): Likewise.
4757 (do_local_cprop): Likewise.
4758 (local_cprop_pass): Likewise for local "insn".
4759 (bypass_block): Likewise for params "setcc" and "jump".
4760 (bypass_conditional_jumps): Likewise for locals "setcc" and
4762 (one_cprop_pass): Likewise for local "insn".
4764 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4766 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4767 from rtx to rtx_insn *.
4768 (struct comparison): Likewise, also for field "prev_clobber".
4769 (conforming_compare): Likewise for param "insn".
4770 (arithmetic_flags_clobber_p): Likewise.
4771 (find_flags_uses_in_insn): Likewise.
4772 (find_comparison_dom_walker::before_dom_children): Likewise for
4773 locals "insn", "next", "last_clobber".
4774 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4776 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4778 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4779 "insn" from rtx to rtx_insn *.
4780 (single_set_for_csa): Likewise for param "insn".
4781 (record_one_stack_ref): Likewise.
4782 (try_apply_stack_adjustment): Likewise.
4783 (struct record_stack_refs_data): Likewise for field "insn".
4784 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4785 (prev_active_insn_bb): Likewise for return type and param "insn".
4786 (next_active_insn_bb): Likewise.
4787 (force_move_args_size_note): Likewise for params "prev" and "last"
4788 and locals "test", "next_candidate", "prev_candidate".
4789 (combine_stack_adjustments_for_block): Strengthen locals
4790 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4793 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4795 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4796 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4797 (subst_insn): Likewise for this variable.
4798 (added_links_insn): Likewise.
4799 (struct insn_link): Likewise for field "insn".
4800 (alloc_insn_link): Likewise for param "insn".
4801 (struct undobuf): Likewise for field "other_insn".
4802 (find_single_use): Likewise for param "insn" and local "next".
4803 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4804 (delete_noop_moves): Likewise for locals "insn", "next".
4805 (create_log_links): Likewise for locals "insn", "use_insn".
4806 Strengthen local "next_use" from rtx * to rtx_insn **.
4807 (insn_a_feeds_b): Likewise for params "a", "b".
4808 (combine_instructions): Likewise for param "f" and locals "insn",
4809 "next", "prev", "first", "last_combined_insn", "link", "link1",
4810 "temp". Replace use of NULL_RTX with NULL when referring to
4812 (setup_incoming_promotions): Likewise for param "first"
4813 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4814 (can_combine_p): Likewise for params "insn", "i3", "pred",
4815 "pred2", "succ", "succ2" and for local "p".
4816 (combinable_i3pat): Likewise for param "i3".
4817 (cant_combine_insn_p): Likewise for param "insn".
4818 (likely_spilled_retval_p): Likewise.
4819 (adjust_for_new_dest): Likewise.
4820 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4821 (try_combine): Likewise for return type and for params "i3", "i2",
4822 "i1", "i0", "last_combined_insn", and for locals "insn",
4823 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4824 "i0_insn". Eliminate local "tem" in favor of new locals
4825 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4826 checked cast for now to rtx_insn * on the return type of
4827 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4829 (find_split_point): Strengthen param "insn" from rtx to
4831 (simplify_set): Likewise for local "other_insn".
4832 (recog_for_combine): Likewise for param "insn".
4833 (record_value_for_reg): Likewise.
4834 (record_dead_and_set_regs_1): Likewise for local
4836 (record_dead_and_set_regs): Likewise for param "insn".
4837 (record_promoted_value): Likewise.
4838 (check_promoted_subreg): Likewise.
4839 (get_last_value_validate): Likewise.
4840 (reg_dead_at_p): Likewise.
4841 (move_deaths): Likewise for param "to_insn".
4842 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4843 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4844 in favor of new locals "tem_note" and "tem_insn", the latter being
4846 (distribute_links): Strengthen locals "place", "insn" from rtx to
4849 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4851 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4853 (can_delete_label_p): Require a const rtx_code_label * rather than
4855 (delete_insn): Add checked cast to rtx_code_label * when we know
4856 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4858 (delete_insn_chain): Strengthen locals "prev" and "current" from
4859 rtx to rtx_insn *. Add a checked cast when assigning from
4860 "finish" (strengthening the params will come later). Add a
4861 checked cast to rtx_note * in region where we know
4863 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4865 (compute_bb_for_insn): Likewise.
4866 (free_bb_for_insn): Likewise for local "insn".
4867 (compute_bb_for_insn): Likewise.
4868 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4869 local "insn" from rtx to rtx_insn *
4870 (flow_active_insn_p): Require a const rtx_insn * rather than a
4872 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4874 (can_fallthru): Likewise for locals "insn" and "insn2".
4875 (bb_note): Likewise for local "note".
4876 (first_insn_after_basic_block_note): Likewise for local "note" and
4878 (rtl_split_block): Likewise for locals "insn" and "next".
4879 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4881 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4882 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4884 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4885 them), "kill_from", "barrier", "new_insn".
4886 (patch_jump_insn): Likewise for params "insn", "old_label".
4887 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4888 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4889 "old_label", "new_label".
4890 (rtl_tidy_fallthru_edge): Likewise for local "q".
4891 (rtl_split_edge): Likewise for locals "before", "last".
4892 (commit_one_edge_insertion): Likewise for locals "before",
4893 "after", "insns", "tmp", "last", adding a checked cast where
4894 currently necessary.
4895 (commit_edge_insertions): Likewise.
4896 (rtl_dump_bb): Likewise for locals "insn", "last".
4897 (print_rtl_with_bb): Likewise for local "x".
4898 (rtl_verify_bb_insns): Likewise for local "x".
4899 (rtl_verify_bb_pointers): Likewise for local "insn".
4900 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4902 (rtl_verify_fallthru): Likewise for local "insn".
4903 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4904 (purge_dead_edges): Likewise for local "insn".
4905 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4906 (skip_insns_after_block): Likewise for return type and for locals
4907 "insn", "last_insn", "next_head", "prev".
4908 (record_effective_endpoints): Likewise for locals "next_insn",
4910 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4911 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4912 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4913 (duplicate_insn_chain): For now, add checked cast from rtx to
4914 rtx_insn * when returning insn.
4915 (cfg_layout_duplicate_bb): Likewise for local "insn".
4916 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4918 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4919 (rtl_block_empty_p): Likewise.
4920 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4921 "split_point", "last".
4922 (rtl_block_ends_with_call_p): Likewise for local "insn".
4923 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4925 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4926 "split_at_insn" from rtx to rtx_insn *.
4927 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4928 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4929 to const rtx_insn *.
4930 (rtl_account_profile_record): Likewise.
4932 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4934 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4936 (average_num_loop_insns): Likewise.
4937 (init_set_costs): Likewise for local "seq".
4938 (seq_cost): Likewise for param "seq", from const_rtx to const
4941 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4943 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4946 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4948 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4949 "f1" and "f2" from rtx * to rtx_insn **.
4950 (flow_find_head_matching_sequence): Likewise.
4952 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4953 "cbranch_insn" from rtx to rtx_insn *.
4954 (thread_jump): Likewise for local "insn".
4955 (try_forward_edges): Likewise for local "last".
4956 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4957 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4959 (can_replace_by): Likewise for params "i1", "i2".
4960 (old_insns_match_p): Likewise.
4961 (merge_notes): Likewise.
4962 (walk_to_nondebug_insn): Likewise for param "i1".
4963 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4964 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4965 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4966 (flow_find_head_matching_sequence): Strengthen params "f1" and
4967 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4968 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4970 (outgoing_edges_match): Likewise for locals "last1", "last2".
4971 (try_crossjump_to_edge): Likewise for local "insn".
4972 Replace call to for_each_rtx with for_each_rtx_in_insn.
4974 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4975 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4976 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4977 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4978 (try_optimize_cfg): Strengthen local "last" from rtx to
4980 (delete_dead_jumptables): Likewise for locals "insn", "next",
4983 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4984 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4985 "rtx else_first_tail", to reflect the basic-block.h changes above.
4987 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4989 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4991 (purge_dead_tablejump_edges): Likewise.
4992 (find_bb_boundaries): Likewise for locals "insn", "end",
4993 "flow_transfer_insn".
4995 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4997 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4998 "ins" and "prev" from rtx to rtx_insn *.
5000 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5002 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
5004 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
5005 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
5007 (load_register_parameters): Likewise for local "before_arg".
5008 (check_sibcall_argument_overlap): Likewise for param "insn".
5009 (expand_call): Likewise for locals "normal_call_insns",
5010 "tail_call_insns", "insns", "before_call", "after_args",
5011 "before_arg", "last", "prev". Strengthen one of the "last" from
5012 rtx to rtx_call_insn *.
5013 (fixup_tail_calls): Strengthen local "insn" from rtx to
5015 (emit_library_call_value_1): Likewise for locals "before_call" and
5018 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5020 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
5021 and "last" from rtx to rtx_insn *.
5022 (expand_builtin_nonlocal_goto): Likewise for local "insn".
5023 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
5025 (expand_errno_check): Strengthen local "lab" from rtx to
5027 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
5029 (expand_builtin_mathfn_2): Likewise.
5030 (expand_builtin_mathfn_ternary): Likewise.
5031 (expand_builtin_mathfn_3): Likewise.
5032 (expand_builtin_interclass_mathfn): Likewise for local "last".
5033 (expand_builtin_int_roundingfn): Likewise for local "insns".
5034 (expand_builtin_int_roundingfn_2): Likewise.
5035 (expand_builtin_strlen): Likewise for local "before_strlen".
5036 (expand_builtin_strncmp): Likewise for local "seq".
5037 (expand_builtin_signbit): Likewise for local "last".
5038 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
5039 from rtx to rtx_code_label *.
5040 (expand_stack_restore): Strengthen local "prev" from rtx to
5043 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5045 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
5047 (struct btr_def_s): Likewise.
5048 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
5050 (add_btr_def): Likewise.
5051 (new_btr_user): Likewise.
5052 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
5054 (link_btr_uses): Likewise.
5055 (move_btr_def): Likewise for locals "insp", "old_insn",
5056 "new_insn". Add checked cast to rtx_insn * for now on result of
5058 (can_move_up): Strengthen param "insn" from const_rtx to
5061 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5063 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
5065 (get_uncond_jump_length): Likewise for locals "label", "jump".
5066 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
5068 (add_labels_and_missing_jumps): Likewise for local "new_jump".
5069 (fix_up_fall_thru_edges): Likewise for local "old_jump".
5070 (find_jump_block): Likewise for local "insn".
5071 (fix_crossing_conditional_branches): Likewise for locals
5072 "old_jump", "new_jump".
5073 (fix_crossing_unconditional_branches): Likewise for locals
5074 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
5075 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
5077 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5079 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
5081 (struct mem_insn): Likewise for field "insn".
5082 (reg_next_use): Strengthen from rtx * to rtx_insn **.
5083 (reg_next_inc_use): Likewise.
5084 (reg_next_def): Likewise.
5085 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
5086 from rtx to rtx_insn *.
5087 (move_insn_before): Likewise for param "next_insn" and local "insns".
5088 (attempt_change): Likewise for local "mov_insn".
5089 (try_merge): Likewise for param "last_insn".
5090 (get_next_ref): Likewise for return type and local "insn".
5091 Strengthen param "next_array" from rtx * to rtx_insn **.
5092 (parse_add_or_inc): Strengthen param "insn" from rtx to
5094 (find_inc): Likewise for locals "insn" and "other_insn" (three of
5096 (merge_in_block): Likewise for locals "insn", "curr",
5098 (pass_inc_dec::execute): Update allocations of the arrays to
5099 reflect the stronger types.
5101 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5103 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
5104 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
5105 from rtx to rtx_code_label *.
5107 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5109 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
5112 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5114 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
5115 generated a warning and prevented bootstrapping the compiler.
5117 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5119 * rtl.h (delete_related_insns): Strengthen return type from rtx to
5122 * jump.c (delete_related_insns): Likewise, also for locals "next"
5125 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5127 * genautomata.c (output_internal_insn_latency_func): When writing
5128 the function "internal_insn_latency" to insn-automata.c,
5129 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
5130 allowing the optional guard function of (define_bypass) clauses to
5131 expect a pair of rtx_insn *, rather than a pair of rtx.
5132 (output_insn_latency_func): When writing the function
5133 "insn_latency", add an "uncast_" prefix to params "insn" and
5134 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
5135 using checked casts from the params, thus enabling the above
5136 change to the generated "internal_insn_latency" function.
5138 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
5140 PR tree-optimization/62091
5141 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
5142 handle correctly arrays.
5143 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
5145 (record_known_type): Walk into inner type.
5146 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
5147 condition on no type changes.
5149 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5151 * genattrtab.c (write_attr_get): Within the generated get_attr_
5152 functions, rename param "insn" to "uncast_insn" and reintroduce
5153 "insn" as an local rtx_insn * using a checked cast, so that "insn"
5154 is an rtx_insn * within insn-attrtab.c
5156 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5158 * output.h (peephole): Strengthen return type from rtx to
5160 * rtl.h (delete_for_peephole): Likewise for both params.
5161 * genpeep.c (main): In generated "peephole" function, strengthen
5162 return type and local "insn" from rtx to rtx_insn *. For now,
5163 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5164 rtx_insn *, with a checked cast.
5165 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5166 locals "insn", "next", "prev" from rtx to rtx_insn *.
5168 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5170 PR tree-optimization/62112
5171 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5172 * gimple-iterator.h (gsi_replace): Return bool.
5173 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5174 moved from ref_may_alias_global_p.
5175 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5177 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5178 (stmt_kills_ref_p_1): Rename...
5179 (stmt_kills_ref_p): ... to this.
5180 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5181 stmt_kills_ref_p): Declare.
5182 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5183 Move the self-assignment case...
5184 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5186 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5188 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5190 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5191 "after". For now, don't strengthen param "trial", which requires
5192 adding checked casts when returning it.
5194 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5196 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5197 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5198 "var_location" hook from rtx to rtx_insn *.
5199 (debug_nothing_rtx): Delete in favor of...
5200 (debug_nothing_rtx_code_label): New prototype.
5201 (debug_nothing_rtx_rtx): Delete unused prototype.
5202 (debug_nothing_rtx_insn): New prototype.
5204 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5205 invoking debug_hooks->var_location (in two places, one in a NOTE
5206 case of a switch statement, the other guarded by a CALL_P
5207 conditional. Add checked cast to rtx_code_label * when invoking
5208 debug_hooks->label (within CODE_LABEL case of switch statement).
5210 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5211 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5212 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5213 (xcoff_debug_hooks): Likewise.
5214 * debug.c (do_nothing_debug_hooks): Likewise.
5215 (debug_nothing_rtx): Delete in favor of...
5216 (debug_nothing_rtx_insn): New function.
5217 (debug_nothing_rtx_rtx): Delete unused function.
5218 (debug_nothing_rtx_code_label): New function.
5219 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5220 debug_nothing_rtx to debug_nothing_rtx_code_label.
5221 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5223 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5224 debug_nothing_rtx to debug_nothing_rtx_insn.
5225 (sdbout_label): Strengthen param "insn" from rtx to
5227 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5228 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5229 "var_location" hook from debug_nothing_rtx to
5230 debug_nothing_rtx_insn.
5232 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5234 * recog.h (insn_output_fn): Update this function typedef to match
5235 the changes below to the generated output functions, strengthening
5236 the 2nd param from rtx to rtx_insn *.
5238 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5239 insn when invoking an output function, to match the new signature
5240 of insn_output_fn with a stronger second param.
5242 * genconditions.c (write_header): In the generated code for
5243 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5244 to match the other changes in this patch.
5246 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5247 the generated "gen_" functions from rtx to rtx_insn * within their
5250 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5251 the subfunctions within the generated "recog_", "split", "peephole2"
5252 function trees from rtx to rtx_insn *. For now, the top-level
5253 generated functions ("recog", "split", "peephole2") continue to
5254 take a plain rtx for "insn", to avoid introducing dependencies on
5255 other patches. Rename this 2nd param from "insn" to
5256 "uncast_insn", and reintroduce "insn" as a local variable of type
5257 rtx_insn *, initialized at the top of the generated function with
5258 a checked cast on "uncast_insn".
5259 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5260 the generated "gen_" functions from rtx to rtx_insn * within their
5263 * genoutput.c (process_template): Strengthen the 2nd param within
5264 the generated "output_" functions "insn" from rtx to rtx_insn *.
5266 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5268 * tree-profile.c (tree_profiling): Skip external functions
5269 when doing coverage instrumentation.
5270 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5272 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5274 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5275 (vec_mergee): Likewise.
5276 (vec_mergeo): Likewise.
5277 (vec_cntlz): Likewise.
5278 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5279 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5280 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5282 * doc/extend.texi: Document various forms of vec_cpsgn,
5283 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5284 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5285 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5286 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5287 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5289 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5291 * config/rs6000/rs6000.c (context.h): New include.
5292 (tree-pass.h): Likewise.
5293 (make_pass_analyze_swaps): New decl.
5294 (rs6000_option_override): Register pass_analyze_swaps.
5295 (swap_web_entry): New subsclass of web_entry_base (df.h).
5296 (special_handling_values): New enum.
5297 (union_defs): New function.
5298 (union_uses): Likewise.
5299 (insn_is_load_p): Likewise.
5300 (insn_is_store_p): Likewise.
5301 (insn_is_swap_p): Likewise.
5302 (rtx_is_swappable_p): Likewise.
5303 (insn_is_swappable_p): Likewise.
5304 (chain_purpose): New enum.
5305 (chain_contains_only_swaps): New function.
5306 (mark_swaps_for_removal): Likewise.
5307 (swap_const_vector_halves): Likewise.
5308 (adjust_subreg_index): Likewise.
5309 (permute_load): Likewise.
5310 (permute_store): Likewise.
5311 (handle_special_swappables): Likewise.
5312 (replace_swap_with_copy): Likewise.
5313 (dump_swap_insn_table): Likewise.
5314 (rs6000_analyze_swaps): Likewise.
5315 (pass_data_analyze_swaps): New pass_data.
5316 (pass_analyze_swaps): New rtl_opt_pass.
5317 (make_pass_analyze_swaps): New function.
5318 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5320 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5322 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5323 type from rtx to rtx_insn *.
5324 (create_copy_of_insn_rtx): Likewise.
5325 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5326 (create_copy_of_insn_rtx): Likewise, also for local "res".
5328 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5330 * rtl.h (find_first_parameter_load): Strengthen return type from
5332 * rtlanal.c (find_first_parameter_load): Strengthen return type
5333 from rtx to rtx_insn *. Add checked cast for now, to postpone
5334 strengthening the params.
5336 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5339 * diagnostic.c: Set default caret.
5340 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5342 * diagnostic.h (struct diagnostic_context):
5344 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5346 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5347 (sel_bb_head): Strengthen return type insn_t (currently just an
5349 (sel_bb_end): Likewise.
5351 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5352 (sel_bb_head): Strengthen return type and local "head" from
5353 insn_t (currently just an rtx) to rtx_insn *.
5354 (sel_bb_end): Likewise for return type.
5355 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5358 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5360 * basic-block.h (get_last_bb_insn): Strengthen return type from
5362 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5365 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5368 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5370 (diagnostic_report_diagnostic): ... from here.
5371 * toplev.c (general_init): Move code to c-family.
5373 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5375 * df.h (web_entry_base): Replace existing struct web_entry with a
5376 new class web_entry_base with only the predecessor member.
5377 (unionfind_root): Remove declaration and move to class member.
5378 (unionfind_union): Remove declaration and move to friend
5380 (union_defs): Remove declaration.
5381 * web.c (web_entry_base::unionfind_root): Modify to be member
5382 function and adjust accessors.
5383 (unionfind_union): Modify to be friend function and adjust
5385 (web_entry): New subclass of web_entry_base containing the reg
5387 (union_match_dups): Modify for struct -> class changes.
5388 (union_defs): Likewise.
5389 (entry_register): Likewise.
5390 (pass_web::execute): Likewise.
5392 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5394 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5395 builtin define __VEC_ELEMENT_REG_ORDER__.
5397 2014-08-20 Martin Jambor <mjambor@suse.cz>
5398 Wei Mi <wmi@google.com>
5402 * tree-ssa-operands.c (update_stmt_operands): Remove
5403 MODIFIED_NORETURN_CALLS.
5404 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5405 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5406 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5407 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5408 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5409 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5410 (gimple_call_set_ctrl_altering): New func.
5411 (gimple_call_ctrl_altering_p): Ditto.
5412 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5413 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5414 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5415 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5416 remove MODIFIED_NORETURN_CALLS.
5418 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5420 * coverage.c (coverage_compute_profile_id): Return non-0;
5421 also handle symbols with unique name.
5422 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5424 2014-08-20 Steve Ellcey <sellcey@mips.com>
5427 * doc/sourcebuild.texi (non_strict_align): New.
5429 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5431 * cgraphunit.c (ipa_passes, compile): Reshedule
5432 symtab_remove_unreachable_nodes passes; update comments.
5433 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5434 TODO_remove_functions before the pass; the functions ought to be
5436 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5437 TODO_remove_functions.
5438 * passes.c (pass_data_early_local_passes): Do not schedule function
5440 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5442 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5445 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5446 before setting the option.
5447 * diagnostic.c (diagnostic_classify_diagnostic): Record
5448 command-line status.
5450 2014-08-20 Richard Biener <rguenther@suse.de>
5453 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5454 to build uint{16,32,64}_type_node.
5456 2014-08-20 Terry Guo <terry.guo@arm.com>
5458 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5459 with immediate_operand.
5461 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5463 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5464 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5467 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5469 PR preprocessor/51303
5470 * incpath.c (remove_duplicates): Use cpp_warning.
5472 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5476 * doc/options.texi (CPP): Document it.
5477 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5478 * optc-gen.awk: Handle CPP.
5479 * opth-gen.awk: Likewise.
5481 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5483 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5485 (duplicate_insn_chain): Likewise.
5486 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5487 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5488 checked cast for now (until we can strengthen the params in the
5490 (duplicate_insn_chain): Likewise.
5492 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5494 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5496 (prev_cc0_setter): Likewise.
5498 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5499 rtx_insn *, adding checked casts for now as necessary.
5500 (prev_cc0_setter): Likewise.
5502 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5504 * expr.h (emit_move_insn): Strengthen return type from rtx to
5506 (emit_move_insn_1): Likewise.
5507 (emit_move_complex_push): Likewise.
5508 (emit_move_complex_parts): Likewise.
5510 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5511 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5513 (emit_move_complex_push): Strengthen return type from rtx to
5515 (emit_move_complex): Likewise, also for local "ret".
5516 (emit_move_ccmode): Likewise.
5517 (emit_move_multi_word): Likewise for return type and locals
5519 (emit_move_insn_1): Likewise for return type and locals "result",
5521 (emit_move_insn): Likewise for return type and local "last_insn".
5522 (compress_float_constant): Likewise.
5524 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5526 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5527 from rtx to rtx_insn *.
5529 * rtl.h (emit_insn_before): Likewise.
5530 (emit_insn_before_noloc): Likewise.
5531 (emit_insn_before_setloc): Likewise.
5532 (emit_jump_insn_before): Likewise.
5533 (emit_jump_insn_before_noloc): Likewise.
5534 (emit_jump_insn_before_setloc): Likewise.
5535 (emit_call_insn_before): Likewise.
5536 (emit_call_insn_before_noloc): Likewise.
5537 (emit_call_insn_before_setloc): Likewise.
5538 (emit_debug_insn_before): Likewise.
5539 (emit_debug_insn_before_noloc): Likewise.
5540 (emit_debug_insn_before_setloc): Likewise.
5541 (emit_label_before): Likewise.
5542 (emit_insn_after): Likewise.
5543 (emit_insn_after_noloc): Likewise.
5544 (emit_insn_after_setloc): Likewise.
5545 (emit_jump_insn_after): Likewise.
5546 (emit_jump_insn_after_noloc): Likewise.
5547 (emit_jump_insn_after_setloc): Likewise.
5548 (emit_call_insn_after): Likewise.
5549 (emit_call_insn_after_noloc): Likewise.
5550 (emit_call_insn_after_setloc): Likewise.
5551 (emit_debug_insn_after): Likewise.
5552 (emit_debug_insn_after_noloc): Likewise.
5553 (emit_debug_insn_after_setloc): Likewise.
5554 (emit_label_after): Likewise.
5555 (emit_insn): Likewise.
5556 (emit_debug_insn): Likewise.
5557 (emit_jump_insn): Likewise.
5558 (emit_call_insn): Likewise.
5559 (emit_label): Likewise.
5560 (gen_clobber): Likewise.
5561 (emit_clobber): Likewise.
5562 (gen_use): Likewise.
5563 (emit_use): Likewise.
5566 (emit_barrier_before): Strengthen return type from rtx to
5568 (emit_barrier_after): Likewise.
5569 (emit_barrier): Likewise.
5571 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5572 from rtx to rtx_insn *. Add checked casts for now when converting
5573 "last" from rtx to rtx_insn *.
5574 (emit_insn_before_noloc): Likewise for return type.
5575 (emit_jump_insn_before_noloc): Likewise.
5576 (emit_call_insn_before_noloc): Likewise.
5577 (emit_debug_insn_before_noloc): Likewise.
5578 (emit_barrier_before): Strengthen return type and local "insn"
5579 from rtx to rtx_barrier *.
5580 (emit_label_before): Strengthen return type from rtx to
5581 rtx_insn *. Add checked cast for now when returning param
5582 (emit_pattern_after_noloc): Strengthen return type from rtx to
5583 rtx_insn *. Add checked casts for now when converting "last" from
5585 (emit_insn_after_noloc): Strengthen return type from rtx to
5587 (emit_jump_insn_after_noloc): Likewise.
5588 (emit_call_insn_after_noloc): Likewise.
5589 (emit_debug_insn_after_noloc): Likewise.
5590 (emit_barrier_after): Strengthen return type from rtx to
5592 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5593 Add checked cast for now when converting "label" from rtx to
5595 (emit_pattern_after_setloc): Strengthen return type from rtx to
5596 rtx_insn *. Add checked casts for now when converting "last" from
5598 (emit_pattern_after): Strengthen return type from rtx to
5600 (emit_insn_after_setloc): Likewise.
5601 (emit_insn_after): Likewise.
5602 (emit_jump_insn_after_setloc): Likewise.
5603 (emit_jump_insn_after): Likewise.
5604 (emit_call_insn_after_setloc): Likewise.
5605 (emit_call_insn_after): Likewise.
5606 (emit_debug_insn_after_setloc): Likewise.
5607 (emit_debug_insn_after): Likewise.
5608 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5609 when converting "last" from rtx to rtx_insn *.
5610 (emit_pattern_before): Strengthen return type from rtx to
5612 (emit_insn_before_setloc): Likewise.
5613 (emit_insn_before): Likewise.
5614 (emit_jump_insn_before_setloc): Likewise.
5615 (emit_jump_insn_before): Likewise.
5616 (emit_call_insn_before_setloc): Likewise.
5617 (emit_call_insn_before): Likewise.
5618 (emit_debug_insn_before_setloc): Likewise.
5619 (emit_debug_insn_before): Likewise.
5620 (emit_insn): Strengthen return type and locals "last", "insn",
5621 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5622 within cases where we know we have an insn.
5623 (emit_debug_insn): Likewise.
5624 (emit_jump_insn): Likewise.
5625 (emit_call_insn): Strengthen return type and local "insn" from rtx
5627 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5628 a checked cast to rtx_insn * for now on "label".
5629 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5630 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5631 (emit_use): Likewise.
5632 (gen_use): Likewise, also for local "seq".
5633 (emit): Likewise for return type and local "insn".
5634 (rtx_insn): Likewise for return type and local "new_rtx".
5636 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5637 from rtx to rtx_barrier *.
5639 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5640 changed return type from rtx to rtx_insn *, we must update
5641 "emit_fn" type, and this in turn means updating...
5642 (frame_insn): ...this. Strengthen return type from rtx to
5643 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5645 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5647 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5648 rtx to rtx_jump_table_data *. Also for local.
5649 * rtl.h (emit_jump_table_data): Likewise.
5651 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5653 * basic-block.h (create_basic_block_structure): Strengthen third
5654 param "bb_note" from rtx to rtx_note *.
5655 * rtl.h (emit_note_before): Strengthen return type from rtx to
5657 (emit_note_after): Likewise.
5658 (emit_note): Likewise.
5659 (emit_note_copy): Likewise. Also, strengthen param similarly.
5660 * function.h (struct rtl_data): Strengthen field
5661 "x_stack_check_probe_note" from rtx to rtx_note *.
5663 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5664 from rtx to rtx_note *.
5665 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5666 "bb_note" from rtx to rtx_note *.
5667 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5668 when calling emit_note_copy.
5669 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5671 (emit_note_after): Likewise.
5672 (emit_note_before): Likewise.
5673 (emit_note_copy): Likewise. Also, strengthen param similarly.
5674 (emit_note): Likewise.
5675 * except.c (emit_note_eh_region_end): Likewise for return type.
5676 Strengthen local "next" from rtx to rtx_insn *.
5677 (convert_to_eh_region_ranges): Strengthen local "note"
5678 from rtx to rtx_note *.
5679 * final.c (change_scope): Likewise.
5680 (reemit_insn_block_notes): Likewise, for both locals named "note".
5681 Also, strengthen local "insn" from rtx to rtx_insn *.
5682 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5684 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5685 strengthen local "seq" from rtx to rtx_insn *.
5686 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5688 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5690 (get_bb_note_from_pool): Strengthen return type from rtx to
5692 (sel_create_basic_block): Strengthen local "new_bb_note" from
5693 insn_t to rtx_note *.
5694 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5695 "note" from rtx to rtx_note *.
5696 (emit_notes_in_bb): Likewise.
5698 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5700 * function.h (struct rtl_data): Strengthen field
5701 "x_parm_birth_insn" from rtx to rtx_insn *.
5702 * function.c (struct assign_parm_data_all): Strengthen fields
5703 "first_conversion_insn" and "last_conversion_insn" from rtx to
5706 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5708 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5709 to rtx_insn *; also for local "var_end_seq".
5710 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5711 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5713 (expand_gimple_cond): Likewise for locals "last2" and "last".
5714 (mark_transaction_restart_calls): Likewise for local "insn".
5715 (expand_gimple_stmt): Likewise for return type and locals "last"
5717 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5718 (avoid_complex_debug_insns): Likewise for param "insn".
5719 (expand_debug_locations): Likewise for locals "insn", "last",
5720 "prev_insn" and "insn2".
5721 (expand_gimple_basic_block): Likewise for local "last".
5722 (construct_exit_block): Likewise for locals "head", "end",
5724 (pass_expand::execute): Likewise for locals "var_seq",
5725 "var_ret_seq", "next".
5727 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5729 * asan.h (asan_emit_stack_protection): Strengthen return type from
5731 * asan.c (asan_emit_stack_protection): Likewise. Add local
5732 "insns" to hold the return value.
5734 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5736 * basic-block.h (bb_note): Strengthen return type from rtx to
5738 * sched-int.h (bb_note): Likewise.
5739 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5741 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5743 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5746 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5747 "insn" from rtx to rtx_insn *.
5748 (make_debug_insn_raw): Strengthen return type from rtx to
5749 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5750 (make_jump_insn_raw): Strengthen return type from rtx to
5751 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5752 (make_call_insn_raw): Strengthen return type from rtx to
5753 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5754 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5755 callback from rtx to rtx_insn *; likewise for local "insn" and
5756 "next", adding a checked cast to rtx_insn in the relevant cases of
5757 the switch statement.
5758 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5759 callback from rtx to rtx_insn *.
5760 (emit_pattern_after_setloc): Likewise.
5761 (emit_pattern_after): Likewise.
5762 (emit_pattern_before_setloc): Likewise.
5763 (emit_pattern_before): Likewise.
5765 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5767 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5769 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5770 accepting an rtx_insn *.
5771 (last_call_insn): Strengthen return type from rtx to
5774 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5776 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5777 "insns" from rtx to rtx_insn *.
5778 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5779 locals "insn" and "prev".
5781 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5783 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5784 rtx_jump_table_data **.
5786 * cfgbuild.c (make_edges): Introduce local "table", using it in
5787 place of "tmp" for jump table data.
5788 (find_bb_boundaries): Strengthen local "table" from rtx to
5789 rtx_jump_table_data *.
5790 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5791 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5792 (try_crossjump_to_edge): Likewise.
5793 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5795 (patch_jump_insn): Introduce local "table", using it in place of
5796 "tmp" for jump table data.
5797 (force_nonfallthru_and_redirect): Introduce local "table", so that
5798 call to tablejump_p can receive an rtx_jump_table_data **. Update
5799 logic around the call to overwrite "note" appropriately if
5800 tablejump_p returns non-zero.
5801 (get_last_bb_insn): Introduce local "table", using it in place of
5802 "tmp" for jump table data.
5803 * dwarf2cfi.c (create_trace_edges): Likewise.
5805 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5806 from rtx to rtx_jump_table_data *.
5807 (create_fix_barrier): Strengthen local "tmp" from rtx to
5808 rtx_jump_table_data *.
5809 (arm_reorg): Likewise for local "table".
5811 * config/s390/s390.c (s390_chunkify_start): Likewise.
5813 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5815 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5816 rtx to rtx_jump_table_data *.
5818 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5819 rtx_jump_table_data **. Add a checked cast when writing through
5820 the pointer: we know there that local "table" is non-NULL and that
5821 JUMP_TABLE_DATA_P (table) holds.
5822 (label_is_jump_target_p): Introduce local "table", using it in
5823 place of "tmp" for jump table data.
5825 2014-08-19 Marek Polacek <polacek@redhat.com>
5828 * doc/invoke.texi: Document -Wbool-compare.
5830 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5832 * rtl.h (entry_of_function): Strengthen return type from rtx to
5834 * cfgrtl.c (entry_of_function): Likewise.
5836 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5838 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5839 rtx_insn *, adding a checked cast for now.
5840 (get_last_insn): Likewise.
5842 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5844 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5847 * emit-rtl.c (gen_label_rtx): Likewise.
5849 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5851 * rtl.h (previous_insn): Strengthen return type from rtx to
5853 (next_insn): Likewise.
5854 (prev_nonnote_insn): Likewise.
5855 (prev_nonnote_insn_bb): Likewise.
5856 (next_nonnote_insn): Likewise.
5857 (next_nonnote_insn_bb): Likewise.
5858 (prev_nondebug_insn): Likewise.
5859 (next_nondebug_insn): Likewise.
5860 (prev_nonnote_nondebug_insn): Likewise.
5861 (next_nonnote_nondebug_insn): Likewise.
5862 (prev_real_insn): Likewise.
5863 (next_real_insn): Likewise.
5864 (prev_active_insn): Likewise.
5865 (next_active_insn): Likewise.
5867 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5868 rtx_insn *, adding a checked cast.
5869 (previous_insn): Likewise.
5870 (next_nonnote_insn): Likewise.
5871 (next_nonnote_insn_bb): Likewise.
5872 (prev_nonnote_insn): Likewise.
5873 (prev_nonnote_insn_bb): Likewise.
5874 (next_nondebug_insn): Likewise.
5875 (prev_nondebug_insn): Likewise.
5876 (next_nonnote_nondebug_insn): Likewise.
5877 (prev_nonnote_nondebug_insn): Likewise.
5878 (next_real_insn): Likewise.
5879 (prev_real_insn): Likewise.
5880 (next_active_insn): Likewise.
5881 (prev_active_insn): Likewise.
5883 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5884 param "stepfunc" so that it returns an rtx_insn * rather than an
5885 rtx, to track the change to prev_nonnote_insn_bb, which is the
5886 only function this is called with.
5887 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5889 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5891 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5894 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5896 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5897 (class rtx_nonjump_insn): Likewise.
5898 (class rtx_jump_insn): Likewise.
5899 (class rtx_call_insn): Likewise.
5900 (class rtx_jump_table_data): Likewise.
5901 (class rtx_barrier): Likewise.
5902 (class rtx_code_label): Likewise.
5903 (class rtx_note): Likewise.
5905 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5906 adding the invariant DEBUG_INSN_P (X).
5907 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5908 the invariant NONJUMP_INSN_P (X).
5909 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5910 the invariant JUMP_P (X).
5911 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5912 the invariant CALL_P (X).
5913 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5914 invariant JUMP_TABLE_DATA_P (X).
5915 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5916 invariant BARRIER_P (X).
5917 (class rtx_code_label): New, a subclass of rtx_insn, adding
5918 the invariant LABEL_P (X).
5919 (class rtx_note): New, a subclass of rtx_insn, adding
5920 the invariant NOTE_P(X).
5921 (is_a_helper <rtx_debug_insn *>::test): New.
5922 (is_a_helper <rtx_nonjump_insn *>::test): New.
5923 (is_a_helper <rtx_jump_insn *>::test): New.
5924 (is_a_helper <rtx_call_insn *>::test): New.
5925 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5926 overloaded for both rtx and rtx_insn *.
5927 (is_a_helper <rtx_barrier *>::test): New.
5928 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5929 for both rtx and rtx_insn *.
5930 (is_a_helper <rtx_note *>::test): New.
5932 2014-08-19 Marek Polacek <polacek@redhat.com>
5934 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5935 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5936 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5937 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5939 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5941 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5942 rtx_insn *. To help with transition, for now, convert from an
5943 access macro into a pair of functions: BND_TO, returning an
5945 (SET_BND_TO): New function, for use where BND_TO is used as an
5948 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5950 (BND_TO): New function, adding a checked cast.
5951 (SET_BND_TO): New function.
5953 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5955 (compute_av_set_on_boundaries): Likewise.
5957 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5959 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5960 destination if it is used in source.
5961 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5962 (*popcount<mode>2_falsedep_1): Likewise.
5964 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5967 * configure.ac: Set install_gold_as_default to no first.
5968 * configure: Regenerated.
5970 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5972 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5973 "note_list" field will eventually be an rtx_insn *. To help with
5974 transition, for now, convert from an access macro into a pair of
5975 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5976 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5979 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5980 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5982 * sel-sched-ir.c (init_bb): Likewise.
5983 (sel_restore_notes): Likewise.
5984 (move_bb_info): Likewise.
5985 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5986 (SET_BB_NOTE_LIST): New function.
5988 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5990 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5991 field will eventually be an rtx_insn *. To help with transition,
5992 for now, convert from an access macro into a pair of functions:
5993 VINSN_INSN_RTX, returning an rtx_insn *, and...
5994 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5995 is used as an lvalue.
5997 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5998 SET_VINSN_INSN_RTX where it's used as an lvalue.
5999 (VINSN_INSN_RTX): New function.
6000 (SET_VINSN_INSN_RTX): New function.
6002 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6004 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
6005 eventually be rtx_insn *, but to help with transition, for now,
6006 convert from an access macro into a pair of functions: DEP_PRO
6007 returning an rtx_insn * and...
6008 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
6009 lvalue, returning an rtx&.
6010 (DEP_CON): Analogous changes to DEP_PRO above.
6011 (SET_DEP_CON): Likewise.
6013 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
6014 an lvalue to SET_DEP_CON.
6015 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
6016 (sd_copy_back_deps): Likewise for DEP_CON.
6017 (DEP_PRO): New function, adding a checked cast for now.
6018 (DEP_CON): Likewise.
6019 (SET_DEP_PRO): New function.
6020 (SET_DEP_CON): Likewise.
6022 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
6024 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
6025 (extra_options): Add i386/cygwin.opt.
6026 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
6027 (CPP_SPEC): Accept -pthread.
6029 (GOMP_SELF_SPECS): Update comment.
6030 * config/i386/cygwin.opt: New file for -pthread flag.
6032 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6034 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
6035 * df.h (DF_REF_INSN): Convert from a macro to a function, so
6036 that we can return an rtx_insn *.
6038 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
6040 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
6041 when building executables, not DLLs. Add --large-address-aware
6042 under the same conditions.
6043 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
6044 when building executables, not DLLs. Add --large-address-aware
6045 under the same conditions when using -m32.
6047 * config/i386/cygwin-stdint.h: Throughout, make type
6048 definitions dependent on target architecture, not host.
6050 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6052 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
6053 the return type from rtx to rtx_insn *, which will enable various
6054 conversions in followup patches. For now this is is done by a
6056 (NEXT_INSN): Likewise.
6057 (SET_PREV_INSN): Convert to an inline function. This is intended
6058 for use as an lvalue, and so returns an rtx& to allow in-place
6060 (SET_NEXT_INSN): Likewise.
6062 2014-07-08 Mark Wielaard <mjw@redhat.com>
6065 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
6067 2014-08-19 Marek Polacek <polacek@redhat.com>
6070 * cgraphunit.c (handle_alias_pairs): Fix condition.
6072 2014-08-19 Richard Biener <rguenther@suse.de>
6074 * gimple-fold.c (fold_gimple_assign): Properly build a
6075 null-pointer constant when devirtualizing addresses.
6077 2014-07-07 Mark Wielaard <mjw@redhat.com>
6079 * dwarf2out.c (decl_quals): New function.
6080 (modified_type_die): Take one cv_quals argument instead of two,
6081 one for const and one for volatile.
6082 (add_type_attribute): Likewise.
6083 (generic_parameter_die): Call add_type_attribute with one modifier
6085 (base_type_for_mode): Likewise.
6086 (add_bounds_info): Likewise.
6087 (add_subscript_info): Likewise.
6088 (gen_array_type_die): Likewise.
6089 (gen_descr_array_type_die): Likewise.
6090 (gen_entry_point_die): Likewise.
6091 (gen_enumeration_type_die): Likewise.
6092 (gen_formal_parameter_die): Likewise.
6093 (gen_subprogram_die): Likewise.
6094 (gen_variable_die): Likewise.
6095 (gen_const_die): Likewise.
6096 (gen_field_die): Likewise.
6097 (gen_pointer_type_die): Likewise.
6098 (gen_reference_type_die): Likewise.
6099 (gen_ptr_to_mbr_type_die): Likewise.
6100 (gen_inheritance_die): Likewise.
6101 (gen_subroutine_type_die): Likewise.
6102 (gen_typedef_die): Likewise.
6103 (force_type_die): Likewise.
6105 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6107 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
6109 * configure: Regenerate.
6111 2014-08-19 Richard Biener <rguenther@suse.de>
6113 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
6114 DECL_EXTERNALs in BLOCKs as non-references.
6115 * tree-streamer-out.c (streamer_write_chain): Likewise.
6117 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
6118 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6119 Anna Tikhonova <anna.tikhonova@intel.com>
6120 Ilya Tocar <ilya.tocar@intel.com>
6121 Andrey Turetskiy <andrey.turetskiy@intel.com>
6122 Ilya Verbin <ilya.verbin@intel.com>
6123 Kirill Yukhin <kirill.yukhin@intel.com>
6124 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6126 * config/i386/sse.md
6127 (define_mode_iterator VI48_AVX512F): Delete.
6128 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
6129 (define_mode_iterator VI2_AVX512VL): Ditto.
6130 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
6133 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
6135 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
6136 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
6137 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6138 with VI48_AVX512F_AVX512VL): New.
6139 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6140 with VI2_AVX512VL): Ditto.
6142 2014-08-19 Marek Polacek <polacek@redhat.com>
6144 * doc/invoke.texi: Document -Wc99-c11-compat.
6146 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6148 * rtl.h (PREV_INSN): Split macro in two: the existing one,
6150 (SET_PREV_INSN): New macro, for use as an lvalue.
6151 (NEXT_INSN, SET_NEXT_INSN): Likewise.
6153 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
6154 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
6155 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6156 (fixup_abnormal_edges): Likewise.
6157 (unlink_insn_chain): Likewise.
6158 (fixup_reorder_chain): Likewise.
6159 (cfg_layout_delete_block): Likewise.
6160 (cfg_layout_merge_blocks): Likewise.
6161 * combine.c (update_cfg_for_uncondjump): Likewise.
6162 * emit-rtl.c (link_insn_into_chain): Likewise.
6163 (remove_insn): Likewise.
6164 (delete_insns_since): Likewise.
6165 (reorder_insns_nobb): Likewise.
6166 (emit_insn_after_1): Likewise.
6167 * final.c (rest_of_clean_state): Likewise.
6168 (final_scan_insn): Likewise.
6169 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6170 * haifa-sched.c (concat_note_lists): Likewise.
6171 (remove_notes): Likewise.
6172 (restore_other_notes): Likewise.
6173 (move_insn): Likewise.
6174 (unlink_bb_notes): Likewise.
6175 (restore_bb_notes): Likewise.
6176 * jump.c (delete_for_peephole): Likewise.
6177 * optabs.c (emit_libcall_block_1): Likewise.
6178 * reorg.c (emit_delay_sequence): Likewise.
6179 (fill_simple_delay_slots): Likewise.
6180 * sel-sched-ir.c (sel_move_insn): Likewise.
6181 (sel_remove_insn): Likewise.
6182 (get_bb_note_from_pool): Likewise.
6183 * sel-sched.c (move_nop_to_previous_block): Likewise.
6185 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6186 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6187 (c6x_gen_bundles): Likewise.
6188 (hwloop_optimize): Likewise.
6189 * config/frv/frv.c (frv_function_prologue): Likewise.
6190 (frv_register_nop): Likewise.
6191 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6192 (ia64_reorg): Likewise.
6193 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6194 (mep_make_bundle): Likewise.
6195 (mep_bundle_insns): Likewise.
6196 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6197 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6198 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6200 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6202 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6203 return type from rtx to rtx_insn *.
6205 (BB_HEADER): Likewise.
6206 (BB_FOOTER): Likewise.
6207 (SET_BB_HEAD): Convert to a function.
6208 (SET_BB_END): Likewise.
6209 (SET_BB_HEADER): Likewise.
6210 (SET_BB_FOOTER): Likewise.
6212 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6213 Strengthen the return type from rtx to rtx_insn *. For now, this
6214 is done by adding a checked cast, but this will eventually
6215 become a field lookup.
6217 (BB_HEADER): Likewise.
6218 (BB_FOOTER): Likewise.
6219 (SET_BB_HEAD): New function, from macro of same name. This is
6220 intended for use as an lvalue, and so returns an rtx& to allow
6221 in-place modification.
6222 (SET_BB_END): Likewise.
6223 (SET_BB_HEADER): Likewise.
6224 (SET_BB_FOOTER): Likewise.
6226 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6228 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6230 (SET_BB_HEAD): New macro, for use as a lvalue.
6231 (BB_END, SET_BB_END): Likewise.
6232 (BB_HEADER, SET_BB_HEADER): Likewise.
6233 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6235 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6236 of BB_* macros into SET_BB_* macros.
6237 (fix_crossing_unconditional_branches): Likewise.
6238 * caller-save.c (save_call_clobbered_regs): Likewise.
6239 (insert_one_insn): Likewise.
6240 * cfgbuild.c (find_bb_boundaries): Likewise.
6241 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6242 (outgoing_edges_match): Likewise.
6243 (try_optimize_cfg): Likewise.
6244 * cfgexpand.c (expand_gimple_cond): Likewise.
6245 (expand_gimple_tailcall): Likewise.
6246 (expand_gimple_basic_block): Likewise.
6247 (construct_exit_block): Likewise.
6248 * cfgrtl.c (delete_insn): Likewise.
6249 (create_basic_block_structure): Likewise.
6250 (rtl_delete_block): Likewise.
6251 (rtl_split_block): Likewise.
6252 (emit_nop_for_unique_locus_between): Likewise.
6253 (rtl_merge_blocks): Likewise.
6254 (block_label): Likewise.
6255 (try_redirect_by_replacing_jump): Likewise.
6256 (emit_barrier_after_bb): Likewise.
6257 (fixup_abnormal_edges): Likewise.
6258 (record_effective_endpoints): Likewise.
6259 (relink_block_chain): Likewise.
6260 (fixup_reorder_chain): Likewise.
6261 (fixup_fallthru_exit_predecessor): Likewise.
6262 (cfg_layout_duplicate_bb): Likewise.
6263 (cfg_layout_split_block): Likewise.
6264 (cfg_layout_delete_block): Likewise.
6265 (cfg_layout_merge_blocks): Likewise.
6266 * combine.c (update_cfg_for_uncondjump): Likewise.
6267 * emit-rtl.c (add_insn_after): Likewise.
6268 (remove_insn): Likewise.
6269 (reorder_insns): Likewise.
6270 (emit_insn_after_1): Likewise.
6271 * haifa-sched.c (get_ebb_head_tail): Likewise.
6272 (restore_other_notes): Likewise.
6273 (move_insn): Likewise.
6274 (sched_extend_bb): Likewise.
6275 (fix_jump_move): Likewise.
6276 * ifcvt.c (noce_process_if_block): Likewise.
6277 (dead_or_predicable): Likewise.
6278 * ira.c (update_equiv_regs): Likewise.
6279 * reg-stack.c (change_stack): Likewise.
6280 * sel-sched-ir.c (sel_move_insn): Likewise.
6281 * sel-sched.c (move_nop_to_previous_block): Likewise.
6283 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6284 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6286 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6288 * rtl.h (for_each_rtx_in_insn): New function.
6289 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6291 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6293 * coretypes.h (class rtx_insn): Add forward declaration.
6295 * rtl.h: Include is-a.h.
6296 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6297 workaround to ensure gengtype knows inheritance is occurring,
6298 whilst continuing to use the pre-existing special-casing for
6300 (class rtx_insn): New subclass of rtx_def, adding the
6301 invariant that we're dealing with something we can sanely use
6302 INSN_UID, NEXT_INSN, PREV_INSN on.
6303 (is_a_helper <rtx_insn *>::test): New.
6304 (is_a_helper <const rtx_insn *>::test): New.
6306 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6308 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6310 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6312 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6315 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6317 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6318 to BUILT_IN_UNREACHABLE.
6320 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6323 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6325 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6326 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6327 (ffs<mode>2): Do not expand with tzcnt for
6328 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6329 (ffssi2_no_cmove): Ditto.
6330 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6331 (ctz<mode>2): New expander.
6332 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6333 (*ctz<mode>2_falsedep): New insn.
6334 (*ctz<mode>2): Rename from ctz<mode>2.
6335 (clz<mode>2_lzcnt): New expander.
6336 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6337 (*clz<mode>2_lzcnt_falsedep): New insn.
6338 (*clz<mode>2): Rename from ctz<mode>2.
6339 (popcount<mode>2): New expander.
6340 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6341 (*popcount<mode>2_falsedep): New insn.
6342 (*popcount<mode>2): Rename from ctz<mode>2.
6343 (*popcount<mode>2_cmp): Remove.
6344 (*popcountsi2_cmp_zext): Ditto.
6346 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6348 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6349 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6350 * config/microblaze/microblaze.h
6351 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6353 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6356 * configure.ac: Set install_gold_as_default to no for
6358 * configure: Regenerated.
6360 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6362 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6363 * config.in: Add undef of HAVE_isl.
6364 * configure: Regenerate.
6365 * configure.ac: Add definition of HAVE_isl.
6366 * graphite-blocking.c: Add checking of HAVE_isl.
6367 * graphite-dependences.c: Likewise.
6368 * graphite-interchange.c: Likewise.
6369 * graphite-isl-ast-to-gimple.c: Likewise.
6370 * graphite-optimize-isl.c: Likewise.
6371 * graphite-poly.c: Likewise.
6372 * graphite-scop-detection.c: Likewise.
6373 * graphite-sese-to-poly.c: Likewise.
6374 * graphite.c: Likewise.
6375 * toplev.c: Replace the checking of HAVE_cloog with the checking
6378 2014-08-18 Richard Biener <rguenther@suse.de>
6380 PR tree-optimization/62090
6381 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6382 (fold_builtin_3): Do not fold snprintf.
6383 (fold_builtin_4): Likewise.
6384 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6385 moved from builtins.c.
6386 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6387 (gimple_fold_builtin): Do not fold sprintf here.
6389 2014-08-18 Richard Biener <rguenther@suse.de>
6391 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6393 (maybe_canonicalize_mem_ref_addr): ... this function.
6394 (fold_stmt_1): Apply it here before all simplification.
6396 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6399 * cgraph.h (cgraph_node::create_indirect_edge): Add
6400 compute_indirect_info param.
6401 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6402 indirect_info only when it is required.
6403 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6404 indirect_info fore cloned indirect edge.
6406 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6407 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6408 Anna Tikhonova <anna.tikhonova@intel.com>
6409 Ilya Tocar <ilya.tocar@intel.com>
6410 Andrey Turetskiy <andrey.turetskiy@intel.com>
6411 Ilya Verbin <ilya.verbin@intel.com>
6412 Kirill Yukhin <kirill.yukhin@intel.com>
6413 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6415 * config/i386/sse.md
6416 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6417 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6419 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6420 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6421 Anna Tikhonova <anna.tikhonova@intel.com>
6422 Ilya Tocar <ilya.tocar@intel.com>
6423 Andrey Turetskiy <andrey.turetskiy@intel.com>
6424 Ilya Verbin <ilya.verbin@intel.com>
6425 Kirill Yukhin <kirill.yukhin@intel.com>
6426 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6428 * config/i386/sse.md
6429 (define_mode_iterator VF1_AVX512VL): New.
6430 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6431 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6434 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6435 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6436 Anna Tikhonova <anna.tikhonova@intel.com>
6437 Ilya Tocar <ilya.tocar@intel.com>
6438 Andrey Turetskiy <andrey.turetskiy@intel.com>
6439 Ilya Verbin <ilya.verbin@intel.com>
6440 Kirill Yukhin <kirill.yukhin@intel.com>
6441 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6443 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6444 * config/i386/i386.md
6445 (define_code_iterator any_float): New.
6446 (define_code_attr floatsuffix): New.
6447 * config/i386/sse.md
6448 (define_mode_iterator VF1_128_256VL): New.
6449 (define_mode_iterator VF2_512_256VL): New.
6450 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6452 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6453 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6455 (define_mode_attr qq2pssuff): New.
6456 (define_mode_attr sselongvecmode): New.
6457 (define_mode_attr sselongvecmodelower): New.
6458 (define_mode_attr sseintvecmode3): New.
6459 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6461 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6462 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6463 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6464 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6466 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6467 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6468 Anna Tikhonova <anna.tikhonova@intel.com>
6469 Ilya Tocar <ilya.tocar@intel.com>
6470 Andrey Turetskiy <andrey.turetskiy@intel.com>
6471 Ilya Verbin <ilya.verbin@intel.com>
6472 Kirill Yukhin <kirill.yukhin@intel.com>
6473 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6475 * config/i386/sse.md
6476 (define_mode_iterator VF2_AVX512VL): New.
6477 (define_mode_attr sseintvecmode2): New.
6478 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6479 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6480 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6482 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6484 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6486 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6489 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6490 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6491 Anna Tikhonova <anna.tikhonova@intel.com>
6492 Ilya Tocar <ilya.tocar@intel.com>
6493 Andrey Turetskiy <andrey.turetskiy@intel.com>
6494 Ilya Verbin <ilya.verbin@intel.com>
6495 Kirill Yukhin <kirill.yukhin@intel.com>
6496 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6498 * config/i386/i386.md
6499 (define_insn "*movoi_internal_avx"): Add evex version.
6500 (define_insn "*movti_internal"): Ditto.
6502 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6503 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6504 Anna Tikhonova <anna.tikhonova@intel.com>
6505 Ilya Tocar <ilya.tocar@intel.com>
6506 Andrey Turetskiy <andrey.turetskiy@intel.com>
6507 Ilya Verbin <ilya.verbin@intel.com>
6508 Kirill Yukhin <kirill.yukhin@intel.com>
6509 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6511 * config/i386/i386.md
6512 (define_attr "isa"): Add avx512dq, noavx512dq.
6513 (define_attr "enabled"): Ditto.
6514 * config/i386/sse.md
6515 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6517 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6518 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6519 Anna Tikhonova <anna.tikhonova@intel.com>
6520 Ilya Tocar <ilya.tocar@intel.com>
6521 Andrey Turetskiy <andrey.turetskiy@intel.com>
6522 Ilya Verbin <ilya.verbin@intel.com>
6523 Kirill Yukhin <kirill.yukhin@intel.com>
6524 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6526 * config/i386/i386.c
6527 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6528 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6529 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6530 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6531 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6532 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6533 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6534 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6535 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6536 * config/i386/sse.md
6537 (define_mode_iterator VMOVE): Allow V4TI mode.
6538 (define_mode_iterator V_AVX512VL): New.
6539 (define_mode_iterator V): New handling for AVX512VL.
6540 (define_insn "avx512f_load<mode>_mask"): Delete.
6541 (define_insn "<avx512>_load<mode>_mask"): New.
6542 (define_insn "avx512f_store<mode>_mask"): Delete.
6543 (define_insn "<avx512>_store<mode>_mask"): New.
6546 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6549 * asan.c (instrument_derefs): Fix bitfield check.
6551 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6553 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6554 * config/rs6000/htm.md (ttest): Remove clobber.
6555 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6556 (and_operand): Reformat.
6557 (and_2rld_operand): New predicate.
6558 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6560 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6561 parameter. Handle AND directly.
6562 (rs6000_split_logical_di): Remove last parameter.
6563 (rs6000_split_logical): Remove last parameter. Remove obsolete
6565 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6566 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6567 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6568 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6569 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6570 and 5 anonymous splitters): Delete.
6571 (and<mode>3): New expander.
6572 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6573 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6574 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6575 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6576 (floatdisf2_internal1): Remove clobbers.
6577 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6578 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6579 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6580 (and<mode>3 for BOOL_128): Remove clobber.
6581 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6582 rs6000_split_logical.
6583 (*bool<mode>3_internal for BOOL_128): Adjust call of
6584 rs6000_split_logical.
6585 (*boolc<mode>3_internal1 for BOOL_128,
6586 *boolc<mode>3_internal2 for BOOL_128,
6587 *boolcc<mode>3_internal1 for BOOL_128,
6588 *boolcc<mode>3_internal2 for BOOL_128,
6589 *eqv<mode>3_internal1 for BOOL_128,
6590 *eqv<mode>3_internal2 for BOOL_128,
6591 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6592 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6594 (*vec_reload_and_reg_<mptrsize>): Delete.
6596 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6598 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6599 and split, *boolccsi3_internal3 and split): Delete.
6600 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6601 *boolccdi3_internal3 and split): Delete.
6602 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6603 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6605 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6607 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6608 and split, *boolcsi3_internal3 and split): Delete.
6609 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6610 *boolcdi3_internal3 and split): Delete.
6611 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6613 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6615 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6616 <'u'>: Also support printing the low-order 16 bits.
6617 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6618 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6619 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6620 *booldi3_internal3 and split): Delete.
6621 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6622 *bool<mode>3_dot2): New.
6623 (two anonymous define_splits for non_logical_cint_operand): Merge.
6625 2014-08-17 Marek Polacek <polacek@redhat.com>
6626 Manuel López-Ibáñez <manu@gcc.gnu.org>
6629 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6630 (diagnostic_show_locus): Don't print caret diagnostic
6631 if a column is larger than the line_width.
6633 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6635 * common.opt: Make the ISL AST generator to be the main code generator
6638 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6640 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6642 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6645 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6647 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6648 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6649 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6651 * config/pa/pa.md (begin_brtab): Delete insn.
6652 (end_brtab): Likewise.
6654 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6656 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6658 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6660 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6661 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6662 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6663 (get_dynamic_type): Remove.
6664 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6665 (clear_speculation): Bring to ipa-deivrt.h
6666 (get_class_context): Rename to ...
6667 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6668 (contains_type_p): Update.
6669 (get_dynamic_type): Rename to ...
6670 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6671 (possible_polymorphic_call_targets): UPdate.
6672 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6673 * ipa-prop.c (ipa_analyze_call_uses): Update.
6675 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6677 * doc/invoke.texi (SH options): Document missing processor variant
6678 options. Remove references to Hitachi. Undocument deprecated mspace
6681 2014-08-15 Jason Merrill <jason@redhat.com>
6683 * tree.c (type_hash_canon): Uncomment assert.
6685 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6687 * input.h (in_system_header_at): Add comment.
6689 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6692 * diagnostic.c (build_message_string): Make it extern.
6693 * diagnostic.h (build_message_string): Make it extern.
6695 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6697 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6698 load/store from/to non-floating class pseudo.
6700 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6702 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6704 2014-08-15 Richard Biener <rguenther@suse.de>
6706 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6707 (get_constraint_for_ssa_var): Remove dead code.
6708 (get_constraint_for_1): Adjust.
6709 (find_what_var_points_to): Likewise.
6710 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6712 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6715 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6716 (_mm512_mask_cmpge_epu32_mask): Ditto.
6717 (_mm512_cmpge_epu32_mask): Ditto.
6718 (_mm512_mask_cmpge_epi64_mask): Ditto.
6719 (_mm512_cmpge_epi64_mask): Ditto.
6720 (_mm512_mask_cmpge_epu64_mask): Ditto.
6721 (_mm512_cmpge_epu64_mask): Ditto.
6722 (_mm512_mask_cmple_epi32_mask): Ditto.
6723 (_mm512_cmple_epi32_mask): Ditto.
6724 (_mm512_mask_cmple_epu32_mask): Ditto.
6725 (_mm512_cmple_epu32_mask): Ditto.
6726 (_mm512_mask_cmple_epi64_mask): Ditto.
6727 (_mm512_cmple_epi64_mask): Ditto.
6728 (_mm512_mask_cmple_epu64_mask): Ditto.
6729 (_mm512_cmple_epu64_mask): Ditto.
6730 (_mm512_mask_cmplt_epi32_mask): Ditto.
6731 (_mm512_cmplt_epi32_mask): Ditto.
6732 (_mm512_mask_cmplt_epu32_mask): Ditto.
6733 (_mm512_cmplt_epu32_mask): Ditto.
6734 (_mm512_mask_cmplt_epi64_mask): Ditto.
6735 (_mm512_cmplt_epi64_mask): Ditto.
6736 (_mm512_mask_cmplt_epu64_mask): Ditto.
6737 (_mm512_cmplt_epu64_mask): Ditto.
6738 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6739 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6740 (_mm512_cmpneq_epu32_mask): Ditto.
6741 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6742 (_mm512_cmpneq_epi64_mask): Ditto.
6743 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6744 (_mm512_cmpneq_epu64_mask): Ditto.
6745 (_mm512_castpd_ps): Ditto.
6746 (_mm512_castpd_si512): Ditto.
6747 (_mm512_castps_pd): Ditto.
6748 (_mm512_castps_si512): Ditto.
6749 (_mm512_castsi512_ps): Ditto.
6750 (_mm512_castsi512_pd): Ditto.
6751 (_mm512_castpd512_pd128): Ditto.
6752 (_mm512_castps512_ps128): Ditto.
6753 (_mm512_castsi512_si128): Ditto.
6754 (_mm512_castpd512_pd256): Ditto.
6755 (_mm512_castps512_ps256): Ditto.
6756 (_mm512_castsi512_si256): Ditto.
6757 (_mm512_castpd128_pd512): Ditto.
6758 (_mm512_castps128_ps512): Ditto.
6759 (_mm512_castsi128_si512): Ditto.
6760 (_mm512_castpd256_pd512): Ditto.
6761 (_mm512_castps256_ps512): Ditto.
6762 (_mm512_castsi256_si512): Ditto.
6763 (_mm512_cmpeq_epu32_mask): Ditto.
6764 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6765 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6766 (_mm512_cmpeq_epu64_mask): Ditto.
6767 (_mm512_cmpgt_epu32_mask): Ditto.
6768 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6769 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6770 (_mm512_cmpgt_epu64_mask): Ditto.
6771 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6772 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6773 * config/i386/i386.c (enum ix86_builtins): Add
6774 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6775 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6776 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6777 (bdesc_args): Add __builtin_ia32_si512_256si,
6778 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6779 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6780 __builtin_ia32_pd512_pd.
6781 (ix86_expand_args_builtin): Handle new FTYPEs.
6782 * config/i386/sse.md (castmode): Add 512-bit modes.
6783 (AVX512MODE2P): New.
6784 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6785 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6787 2014-08-15 Richard Biener <rguenther@suse.de>
6789 * fold-const.c (tree_swap_operands_p): Put all constants
6790 last, also strip sign-changing NOPs when considering further
6791 canonicalization. Canonicalize also when optimizing for size.
6793 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6795 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6796 one_match > zero_match case to just before simple_sequence.
6798 2014-08-15 Richard Biener <rguenther@suse.de>
6800 * data-streamer.h (streamer_string_index, string_for_index):
6802 * data-streamer-out.c (streamer_string_index): Make static.
6803 * data-streamer-in.c (string_for_index): Likewise.
6804 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6805 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6807 2014-08-15 Richard Biener <rguenther@suse.de>
6809 PR tree-optimization/62031
6810 * tree-data-ref.c (dr_analyze_indices): Do not set
6811 DR_UNCONSTRAINED_BASE.
6812 (dr_may_alias_p): All indirect accesses have to go the
6813 formerly DR_UNCONSTRAINED_BASE path.
6814 * tree-data-ref.h (struct indices): Remove
6815 unconstrained_base member.
6816 (DR_UNCONSTRAINED_BASE): Remove.
6818 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6821 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6822 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6823 in OMP_CLAUSE_MAP in some outer target region.
6825 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6827 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6828 name_expansion_cache.
6829 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6830 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6831 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6832 (difference_cannot_overflow_p): New parameter. Use affine
6833 expansion for equality check.
6834 (iv_elimination_compare_lt): Pass new argument.
6836 2014-08-14 DJ Delorie <dj@redhat.com>
6838 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6839 variables to the accumulator.
6841 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6842 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6843 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6846 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6847 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6848 (umulqihi3_virt): Likewise.
6849 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6850 (umulqihi3_real): Likewise.
6852 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6854 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6856 PR tree-optimization/62091
6857 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6858 function_entry_reached.
6859 (walk_aliased_vdefs): Clear it here.
6860 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6862 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6864 * ipa-utils.h (compare_virtual_tables): Declare.
6865 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6867 2014-08-14 Marek Polacek <polacek@redhat.com>
6870 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6871 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6873 2014-08-14 Tom de Vries <tom@codesourcery.com>
6875 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6877 2014-08-14 Tom de Vries <tom@codesourcery.com>
6879 PR rtl-optimization/62004
6880 PR rtl-optimization/62030
6881 * ifcvt.c (rtx_interchangeable_p): New function.
6882 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6883 * emit-rtl.h (mem_attrs_eq_p): Declare.
6885 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6887 * graphite-scop-detection.c:
6888 Add inclusion of cp-tree.h.
6889 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6890 in case they are pointers to object types
6892 2014-08-14 Richard Biener <rguenther@suse.de>
6894 * BASE-VER: Change to 5.0.0
6896 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6897 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6898 Anna Tikhonova <anna.tikhonova@intel.com>
6899 Ilya Tocar <ilya.tocar@intel.com>
6900 Andrey Turetskiy <andrey.turetskiy@intel.com>
6901 Ilya Verbin <ilya.verbin@intel.com>
6902 Kirill Yukhin <kirill.yukhin@intel.com>
6903 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6905 * config/i386/sse.md (define_mode_attr avx512): New.
6906 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6908 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6909 (define_mode_attr ssse3_avx2): Ditto.
6910 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6911 (define_mode_attr avx2_avx512bw): New.
6912 (define_mode_attr ssedoublemodelower): New.
6913 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6915 (define_mode_attr ssebytemode): Allow V8DI modes.
6916 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6917 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6918 (define_mode_attr ssePSmode2): New.
6919 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6921 (define_mode_attr dbpsadbwmode): New.
6922 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6923 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6924 (vi8_sse4_1_avx2_avx512): New.
6925 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6927 (define_mode_attr blendbits): Move before its immediate use.
6929 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6930 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6931 Anna Tikhonova <anna.tikhonova@intel.com>
6932 Ilya Tocar <ilya.tocar@intel.com>
6933 Andrey Turetskiy <andrey.turetskiy@intel.com>
6934 Ilya Verbin <ilya.verbin@intel.com>
6935 Kirill Yukhin <kirill.yukhin@intel.com>
6936 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6938 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6939 * config/i386/subst.md
6940 (define_mode_iterator SUBST_V): Update.
6941 (define_mode_iterator SUBST_A): Ditto.
6942 (define_subst_attr "mask_operand7"): New.
6943 (define_subst_attr "mask_operand10"): New.
6944 (define_subst_attr "mask_operand_arg34") : New.
6945 (define_subst_attr "mask_expand_op3"): New.
6946 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6947 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6948 (define_subst_attr "mask_avx512vl_condition"): New.
6949 (define_subst_attr "round_mask_operand4"): Ditto.
6950 (define_subst_attr "round_mask_scalar_op3"): Delete.
6951 (define_subst_attr "round_mask_op4"): New.
6952 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6954 (define_subst_attr "round_modev8sf_condition"): New.
6955 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6957 (define_subst_attr "round_saeonly_mask_operand4"): New.
6958 (define_subst_attr "round_saeonly_mask_op4"): New.
6959 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6960 V8DImode, V16SImode.
6961 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6962 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6963 (define_subst_attr "mask_expand4_args"): New.
6964 (define_subst "mask_expand4"): New.
6966 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6967 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6968 Anna Tikhonova <anna.tikhonova@intel.com>
6969 Ilya Tocar <ilya.tocar@intel.com>
6970 Andrey Turetskiy <andrey.turetskiy@intel.com>
6971 Ilya Verbin <ilya.verbin@intel.com>
6972 Kirill Yukhin <kirill.yukhin@intel.com>
6973 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6975 * config/i386/i386.md
6976 (define_attr "isa"): Add avx512bw,noavx512bw.
6977 (define_attr "enabled"): Ditto.
6978 (define_split): Add 32/64-bit mask logic.
6979 (define_insn "*k<logic>qi"): New.
6980 (define_insn "*k<logic>hi"): New.
6981 (define_insn "*anddi_1"): Add mask version.
6982 (define_insn "*andsi_1"): Ditto.
6983 (define_insn "*<code><mode>_1"): Ditto.
6984 (define_insn "*<code>hi_1"): Ditto.
6985 (define_insn "kxnor<mode>"): New.
6986 (define_insn "kunpcksi"): New.
6987 (define_insn "kunpckdi"): New.
6988 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6989 (define_insn "*one_cmplhi2_1"): Ditto.
6991 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6992 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6993 Anna Tikhonova <anna.tikhonova@intel.com>
6994 Ilya Tocar <ilya.tocar@intel.com>
6995 Andrey Turetskiy <andrey.turetskiy@intel.com>
6996 Ilya Verbin <ilya.verbin@intel.com>
6997 Kirill Yukhin <kirill.yukhin@intel.com>
6998 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7000 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
7003 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7004 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7005 Anna Tikhonova <anna.tikhonova@intel.com>
7006 Ilya Tocar <ilya.tocar@intel.com>
7007 Andrey Turetskiy <andrey.turetskiy@intel.com>
7008 Ilya Verbin <ilya.verbin@intel.com>
7009 Kirill Yukhin <kirill.yukhin@intel.com>
7010 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7012 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
7014 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
7015 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
7016 xmm/ymm16+ when availble.
7017 * config/i386/i386.h
7018 (HARD_REGNO_NREGS): Add mask regs.
7019 (VALID_AVX512F_REG_MODE): Ditto.
7020 (VALID_AVX512F_REG_MODE) : Define.
7021 (VALID_MASK_AVX512BW_MODE): Ditto.
7022 (reg_class) (MASK_REG_P(X)): Define.
7023 * config/i386/i386.md: Do not split long moves with mask register,
7024 use kmovb if avx512bw is availible.
7025 (movdi_internal): Handle mask registers.
7027 2014-08-14 Richard Biener <rguenther@suse.de>
7029 PR tree-optimization/62081
7030 * tree-ssa-loop.c (pass_fix_loops): New pass.
7031 (pass_tree_loop::gate): Do not fixup loops here.
7032 * tree-pass.h (make_pass_fix_loops): Declare.
7033 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
7035 2014-08-14 Richard Biener <rguenther@suse.de>
7037 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
7038 (type_hash_canon): ... this and avoid 2nd lookup for the add.
7040 2014-08-14 Richard Biener <rguenther@suse.de>
7042 PR tree-optimization/62090
7043 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
7044 (fold_builtin_2): Do not fold sprintf.
7045 (fold_builtin_3): Likewise.
7046 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
7047 moved from builtins.c.
7048 (gimple_fold_builtin): Fold sprintf.
7050 2014-08-14 Richard Biener <rguenther@suse.de>
7052 PR rtl-optimization/62079
7053 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
7056 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7058 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
7059 current_function_decl.
7061 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7063 * cgraph.c (cgraph_node::function_symbol): Fix wrong
7064 cgraph_function_node to cgraph_node::function_symbol
7067 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
7069 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
7070 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
7072 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
7074 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
7077 2014-08-13 Roman Gareev <gareevroman@gmail.com>
7079 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
7082 2014-08-12 Jakub Jelinek <jakub@redhat.com>
7085 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
7086 any registers that are used in mem_insn.
7088 2014-08-12 Steve Ellcey <sellcey@mips.com>
7090 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
7092 2014-08-12 Steve Ellcey <sellcey@mips.com>
7094 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
7095 (MULTILIB_DIRNAMES): Ditto.
7096 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
7097 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
7098 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
7099 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
7100 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
7101 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
7103 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7106 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
7107 of __ARM_SIZEOF_WCHAR_T.
7109 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7112 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
7113 Remove unnecessary attributes.
7115 2014-08-12 Yury Gribov <y.gribov@samsung.com>
7117 * internal-fn.c (init_internal_fns): Fix off-by-one.
7119 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
7120 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7121 Anna Tikhonova <anna.tikhonova@intel.com>
7122 Ilya Tocar <ilya.tocar@intel.com>
7123 Andrey Turetskiy <andrey.turetskiy@intel.com>
7124 Ilya Verbin <ilya.verbin@intel.com>
7125 Kirill Yukhin <kirill.yukhin@intel.com>
7126 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7128 * config/i386/i386.c (standard_sse_constant_opcode): Use
7129 vpxord/vpternlog if avx512 is availible.
7131 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7134 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
7135 bitfields, that is when size doesn't match the size of type or the
7136 size of the constructor.
7138 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7140 * config/rs6000/constraints.md (wh constraint): New constraint,
7141 for FP registers if direct move is available.
7142 (wi constraint): New constraint, for VSX/FP registers that can
7143 handle 64-bit integers.
7144 (wj constraint): New constraint for VSX/FP registers that can
7145 handle 64-bit integers for direct moves.
7146 (wk constraint): New constraint for VSX/FP registers that can
7147 handle 64-bit doubles for direct moves.
7148 (wy constraint): Make documentation match implementation.
7150 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
7151 scalar_in_vmx_p field to simplify tests of whether SFmode or
7152 DFmode can go in the Altivec registers.
7153 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
7154 (rs6000_setup_reg_addr_masks): Likewise.
7155 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
7156 field, and wh/wi/wj/wk constraints.
7157 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7158 the wh/wi/wj/wk constraints.
7159 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7160 upper registers, prefer VSX registers unless the operation is a
7161 memory operation with REG+OFFSET addressing.
7163 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7164 DImode. Change SFmode to use ww constraint instead of d to allow
7165 SF registers in the upper registers.
7168 (VSr5): Fix thinko in comment.
7169 (VSa): New mode attribute that is an alternative to wa, that
7170 returns the VSX register class that a mode can go in, but may not
7171 be the preferred register class.
7172 (VS_64dm): New mode attribute for appropriate register classes for
7173 referencing 64-bit elements of vectors for direct moves and normal
7175 (VS_64reg): Likewise.
7176 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7177 register allocator to only registers the data type can handle.
7178 (vsx_le_perm_load_<mode>): Likewise.
7179 (vsx_le_perm_store_<mode>): Likewise.
7180 (vsx_xxpermdi2_le_<mode>): Likewise.
7181 (vsx_xxpermdi4_le_<mode>): Likewise.
7182 (vsx_lxvd2x2_le_<mode>): Likewise.
7183 (vsx_lxvd2x4_le_<mode>): Likewise.
7184 (vsx_stxvd2x2_le_<mode>): Likewise.
7185 (vsx_add<mode>3): Likewise.
7186 (vsx_sub<mode>3): Likewise.
7187 (vsx_mul<mode>3): Likewise.
7188 (vsx_div<mode>3): Likewise.
7189 (vsx_tdiv<mode>3_internal): Likewise.
7190 (vsx_fre<mode>2): Likewise.
7191 (vsx_neg<mode>2): Likewise.
7192 (vsx_abs<mode>2): Likewise.
7193 (vsx_nabs<mode>2): Likewise.
7194 (vsx_smax<mode>3): Likewise.
7195 (vsx_smin<mode>3): Likewise.
7196 (vsx_sqrt<mode>2): Likewise.
7197 (vsx_rsqrte<mode>2): Likewise.
7198 (vsx_tsqrt<mode>2_internal): Likewise.
7199 (vsx_fms<mode>4): Likewise.
7200 (vsx_nfma<mode>4): Likewise.
7201 (vsx_eq<mode>): Likewise.
7202 (vsx_gt<mode>): Likewise.
7203 (vsx_ge<mode>): Likewise.
7204 (vsx_eq<mode>_p): Likewise.
7205 (vsx_gt<mode>_p): Likewise.
7206 (vsx_ge<mode>_p): Likewise.
7207 (vsx_xxsel<mode>): Likewise.
7208 (vsx_xxsel<mode>_uns): Likewise.
7209 (vsx_copysign<mode>3): Likewise.
7210 (vsx_float<VSi><mode>2): Likewise.
7211 (vsx_floatuns<VSi><mode>2): Likewise.
7212 (vsx_fix_trunc<mode><VSi>2): Likewise.
7213 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7214 (vsx_x<VSv>r<VSs>i): Likewise.
7215 (vsx_x<VSv>r<VSs>ic): Likewise.
7216 (vsx_btrunc<mode>2): Likewise.
7217 (vsx_b2trunc<mode>2): Likewise.
7218 (vsx_floor<mode>2): Likewise.
7219 (vsx_ceil<mode>2): Likewise.
7220 (vsx_<VS_spdp_insn>): Likewise.
7221 (vsx_xscvspdp): Likewise.
7222 (vsx_xvcvspuxds): Likewise.
7223 (vsx_float_fix_<mode>2): Likewise.
7224 (vsx_set_<mode>): Likewise.
7225 (vsx_extract_<mode>_internal1): Likewise.
7226 (vsx_extract_<mode>_internal2): Likewise.
7227 (vsx_extract_<mode>_load): Likewise.
7228 (vsx_extract_<mode>_store): Likewise.
7229 (vsx_splat_<mode>): Likewise.
7230 (vsx_xxspltw_<mode>): Likewise.
7231 (vsx_xxspltw_<mode>_direct): Likewise.
7232 (vsx_xxmrghw_<mode>): Likewise.
7233 (vsx_xxmrglw_<mode>): Likewise.
7234 (vsx_xxsldwi_<mode>): Likewise.
7235 (vsx_xscvdpspn): Tighten constraints to only use register classes
7237 (vsx_xscvspdpn): Likewise.
7238 (vsx_xscvdpspn_scalar): Likewise.
7240 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7241 wj, and wk constraints.
7242 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7243 general purpose registers.
7245 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7247 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7248 DImode instead of wm. Use wk constraint for direct move of DFmode
7250 (extendsidi2_lfiwax): Likewise.
7253 (movdi_internal64): Likewise.
7255 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7256 wk constraints. Make the wy constraint documentation match them
7259 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7261 Replacement of isl_int by isl_val
7262 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7263 (compute_bounds_for_param): use isl_val instead of isl_int
7264 (compute_bounds_for_loop): likewise
7265 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7266 (build_linearized_memory_access): use isl_val instead of isl_int
7267 (pdr_stride_in_loop): likewise
7268 * graphite-optimize-isl.c:
7269 (getPrevectorMap): use isl_val instead of isl_int
7271 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7272 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7273 (extern the_isl_ctx): declare
7274 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7275 (extract_affine_gmp): likewise
7277 (build_loop_iteration_domains): likewise
7278 (add_param_constraints): likewise
7280 2014-08-11 Richard Biener <rguenther@suse.de>
7282 PR tree-optimization/62075
7283 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7284 handle uses in patterns.
7286 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7287 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7288 Anna Tikhonova <anna.tikhonova@intel.com>
7289 Ilya Tocar <ilya.tocar@intel.com>
7290 Andrey Turetskiy <andrey.turetskiy@intel.com>
7291 Ilya Verbin <ilya.verbin@intel.com>
7292 Kirill Yukhin <kirill.yukhin@intel.com>
7293 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7295 * common/config/i386/i386-common.c
7296 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7297 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7298 (ix86_handle_option): Handle OPT_mavx512vl.
7299 * config/i386/cpuid.h (bit_AVX512VL): Define.
7300 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7301 set -mavx512vl accordingly.
7302 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7303 OPTION_MASK_ISA_AVX512VL.
7304 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7305 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7306 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7307 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7308 * config/i386/i386.h (TARGET_AVX512VL): Define.
7309 (TARGET_AVX512VL_P(x)): Ditto.
7310 * config/i386/i386.opt: Add mavx512vl.
7312 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7314 PR tree-optimization/62073
7315 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7318 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7319 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7320 Anna Tikhonova <anna.tikhonova@intel.com>
7321 Ilya Tocar <ilya.tocar@intel.com>
7322 Andrey Turetskiy <andrey.turetskiy@intel.com>
7323 Ilya Verbin <ilya.verbin@intel.com>
7324 Kirill Yukhin <kirill.yukhin@intel.com>
7325 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7327 * common/config/i386/i386-common.c
7328 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7329 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7330 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7331 (ix86_handle_option): Handle OPT_mavx512bw.
7332 * config/i386/cpuid.h (bit_AVX512BW): Define.
7333 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7334 set -mavx512bw accordingly.
7335 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7336 OPTION_MASK_ISA_AVX512BW.
7337 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7338 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7339 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7340 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7341 * config/i386/i386.h (TARGET_AVX512BW): Define.
7342 (TARGET_AVX512BW_P(x)): Ditto.
7343 * config/i386/i386.opt: Add mavx512bw.
7345 2014-08-11 Richard Biener <rguenther@suse.de>
7347 PR tree-optimization/62070
7348 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7349 Remove SSA checking.
7351 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7353 * asan.c (asan_check_flags): New enum.
7354 (build_check_stmt_with_calls): Removed function.
7355 (build_check_stmt): Split inlining logic to
7356 asan_expand_check_ifn.
7357 (instrument_derefs): Rename parameter.
7358 (instrument_mem_region_access): Rename parameter.
7359 (instrument_strlen_call): Likewise.
7360 (asan_expand_check_ifn): New function.
7361 (asan_instrument): Remove old code.
7362 (pass_sanopt::execute): Change handling of
7363 asan-instrumentation-with-call-threshold.
7364 (asan_clear_shadow): Fix formatting.
7365 (asan_function_start): Likewise.
7366 (asan_emit_stack_protection): Likewise.
7367 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7369 * internal-fn.c (expand_ASAN_CHECK): New function.
7370 * internal-fn.def (ASAN_CHECK): New internal function.
7371 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7373 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7374 * tree.c: Small comment fix.
7376 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7378 * gimple.c (gimple_call_fnspec): Support internal functions.
7379 (gimple_call_return_flags): Use const.
7380 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7381 * internal-fn.def: Add fnspec information.
7382 * internal-fn.h (internal_fn_fnspec): New function.
7383 (init_internal_fns): Declare new function.
7384 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7385 (init_internal_fns): New function.
7386 * tree-core.h: Update macro call.
7387 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7389 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7391 * lto-streamer.h (struct output_block::symbol): Change from
7392 struct symtab_node to plain symtab_node.
7393 (referenced_from_this_partition_p): Change first parameter
7394 from struct symtab_node to plain symtab_node.
7396 2014-08-10 Marek Polacek <polacek@redhat.com>
7399 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7401 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7403 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7404 DECL correctly; do not give up on types in static storage.
7406 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7408 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7410 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7412 * graphite-isl-ast-to-gimple.c:
7413 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7415 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7417 2014-08-08 Guozhi Wei <carrot@google.com>
7419 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7421 2014-08-08 Cary Coutant <ccoutant@google.com>
7423 * dwarf2out.c (get_skeleton_type_unit): Remove.
7424 (output_skeleton_debug_sections): Remove skeleton type units.
7425 (output_comdat_type_unit): Likewise.
7426 (dwarf2out_finish): Likewise.
7428 2014-08-07 Yi Yang <ahyangyi@google.com>
7430 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7432 2014-08-08 Richard Biener <rguenther@suse.de>
7434 * lto-streamer.h (struct lto_input_block): Make it a class
7436 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7437 (struct lto_function_header, struct lto_simple_header,
7438 struct lto_simple_header_with_strings,
7439 struct lto_decl_header, struct lto_function_header): Make
7440 a simple inheritance hieararchy. Remove unused fields.
7441 (struct lto_asm_header): Remove.
7442 * lto-streamer-out.c (produce_asm): Adjust.
7443 (lto_output_toplevel_asms): Likewise.
7444 (produce_asm_for_decls): Likewise.
7445 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7446 * data-streamer-in.c (string_for_index): Likewise.
7447 * ipa-inline-analysis.c (inline_read_section): Likewise.
7448 * ipa-prop.c (ipa_prop_read_section): Likewise.
7449 (read_replacements_section): Likewise.
7450 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7451 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7452 (lto_destroy_simple_input_block): Likewise.
7453 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7454 (lto_input_toplevel_asms): Likewise.
7456 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7457 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7458 Anna Tikhonova <anna.tikhonova@intel.com>
7459 Ilya Tocar <ilya.tocar@intel.com>
7460 Andrey Turetskiy <andrey.turetskiy@intel.com>
7461 Ilya Verbin <ilya.verbin@intel.com>
7462 Kirill Yukhin <kirill.yukhin@intel.com>
7463 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7465 * common/config/i386/i386-common.c
7466 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7467 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7468 (ix86_handle_option): Handle OPT_mavx512dq.
7469 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7470 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7471 set -mavx512dq accordingly.
7472 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7473 OPTION_MASK_ISA_AVX512DQ.
7474 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7475 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7476 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7477 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7478 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7479 (TARGET_AVX512DQ_P(x)): Ditto.
7480 * config/i386/i386.opt: Add mavx512dq.
7482 2014-08-08 Richard Biener <rguenther@suse.de>
7484 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7485 target_percent, target_percent_s): Export.
7486 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7487 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7488 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7489 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7490 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7491 Move to gimple-fold.c.
7492 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7494 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7495 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7496 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7497 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7498 (rewrite_call_expr_array): Remove.
7499 (fold_builtin_sprintf_chk): Likewise.
7500 (fold_builtin_snprintf_chk): Likewise.
7501 (fold_builtin_varargs): Remove handling of sprintf_chk,
7502 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7503 (gimple_fold_builtin_sprintf_chk): Remove.
7504 (gimple_fold_builtin_snprintf_chk): Likewise.
7505 (gimple_fold_builtin_varargs): Likewise.
7506 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7507 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7508 * gimple.c (gimple_seq_add_seq_without_update): New function.
7509 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7510 * gimple-fold.c: Include output.h.
7511 (gsi_replace_with_seq_vops): New function, split out from ...
7512 (gimplify_and_update_call_from_tree): ... here.
7513 (replace_call_with_value): New function.
7514 (replace_call_with_call_and_fold): Likewise.
7515 (var_decl_component_p): Moved from builtins.c.
7516 (gimple_fold_builtin_memory_op): Moved from builtins.c
7517 fold_builtin_memory_op and rewritten to GIMPLE.
7518 (gimple_fold_builtin_memset): Likewise.
7519 (gimple_fold_builtin_strcpy): Likewise.
7520 (gimple_fold_builtin_strncpy): Likewise.
7521 (gimple_fold_builtin_strcat): Likewise.
7522 (gimple_fold_builtin_fputs): Likewise.
7523 (gimple_fold_builtin_memory_chk): Likewise.
7524 (gimple_fold_builtin_stxcpy_chk): Likewise.
7525 (gimple_fold_builtin_stxncpy_chk): Likewise.
7526 (gimple_fold_builtin_snprintf_chk): Likewise.
7527 (gimple_fold_builtin_sprintf_chk): Likewise.
7528 (gimple_fold_builtin_strlen): New function.
7529 (gimple_fold_builtin_with_strlen): New function split out from
7530 gimple_fold_builtin.
7531 (gimple_fold_builtin): Change signature and handle
7532 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7533 here. Call gimple_fold_builtin_with_strlen.
7534 (gimple_fold_call): Adjust.
7536 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7538 * calls.c (precompute_arguments): Check
7539 promoted_for_signed_and_unsigned_p and set the promoted mode.
7540 (promoted_for_signed_and_unsigned_p): New function.
7541 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7542 and set the promoted mode.
7543 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7544 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7545 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7548 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7550 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7551 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7552 (expand_call): Likewise.
7553 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7554 to get promoted mode.
7555 * combine.c (record_promoted_value): Skip > 0 comparison with
7556 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7557 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7558 of SUBREG_PROMOTED_UNSIGNED_P.
7559 (convert_modes): Likewise.
7560 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7561 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7562 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7563 SUBREG_PROMOTED_UNSIGNED_SET.
7564 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7565 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7566 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7567 SUBREG_PROMOTED_SET.
7568 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7569 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7570 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7571 of SUBREG_PROMOTED_UNSIGNED_P.
7572 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7573 (SUBREG_PROMOTED_SET): New define.
7574 (SUBREG_PROMOTED_GET): Likewise.
7575 (SUBREG_PROMOTED_SIGN): Likewise.
7576 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7577 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7578 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7579 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7580 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7581 (nonzero_bits1): Skip > 0 comparison with the results as
7582 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7583 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7584 of !SUBREG_PROMOTED_UNSIGNED_P.
7585 * simplify-rtx.c (simplify_unary_operation_1): Use new
7586 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7587 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7588 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7589 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7591 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7593 * ipa-devirt.c: Include gimple-pretty-print.h
7594 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7596 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7597 (get_polymorphic_call_info): Fix return value
7598 (type_change_info): New sturcture based on ipa-prop
7600 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7601 based on ipa-prop variant.
7602 (extr_type_from_vtbl_ptr_store): New function
7603 based on ipa-prop variant.
7604 (record_known_type): New function.
7605 (check_stmt_for_type_change): New function.
7606 (get_dynamic_type): New function.
7607 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7608 * tree-ssa-pre.c: ipa-utils.h
7609 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7610 machinery; sanity check with ipa-prop devirtualization.
7611 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7614 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7616 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7617 * alias.c, cfgexpand.c, cgraphbuild.c,
7618 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7619 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7620 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7621 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7622 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7623 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7624 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7625 dse.c, except.c, gengtype.c, gimple-expr.c,
7626 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7627 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7628 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7629 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7630 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7631 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7633 * pointer-set.c: Remove file.
7634 * pointer-set.h: Remove file.
7636 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7638 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7639 * config/arm/types.md (f_sels, f_seld): Delete.
7641 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7643 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7644 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7645 (aarch64_movdi_<mode>high): Likewise.
7646 (aarch64_mov<mode>high_di): Likewise.
7647 (aarch64_movdi_<mode>low): Likewise.
7648 (aarch64_mov<mode>low_di): Likewise.
7649 (aarch64_movtilow_tilow): Likewise.
7650 Add comment explaining usage of fp,simd attributes and of
7651 TARGET_FLOAT and TARGET_SIMD.
7653 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7654 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7656 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7657 Use MOVN when one of the half-words is 0xffff.
7659 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7661 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7663 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7665 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7666 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7667 (rfs_str): String corresponding to RFS_* constants.
7668 (rank_for_schedule_stats_t): New typedef.
7669 (rank_for_schedule_stats): New static variable.
7670 (rfs_result): New static function.
7671 (rank_for_schedule): Track statistics for deciding heuristics.
7672 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7674 (ready_sort): Use them for debug printouts.
7675 (schedule_block): Init statistics state. Print statistics on
7676 rank_for_schedule decisions.
7678 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7680 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7682 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7684 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7687 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7689 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7690 function to not conflict.
7691 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7692 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7693 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7694 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7695 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7698 2014-08-07 Marek Polacek <polacek@redhat.com>
7700 * fold-const.c (fold_binary_loc): Add folding of
7701 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7703 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7705 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7706 instead of type size.
7707 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7709 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7711 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7712 (*thumb1_movqi_insn): Likewise.
7713 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7715 2014-08-07 Tom de Vries <tom@codesourcery.com>
7717 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7718 (glibc_2_11_or_earlier): Remove effective-target keywords.
7720 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7722 * config/arm/arm.c (bdesc_2arg): Fix typo.
7723 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7725 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7727 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7729 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7732 * haifa-sched.c (advance_one_cycle): Fix dump.
7733 (schedule_block): Don't advance cycle if we are already at the
7734 beginning of the cycle.
7736 2014-08-06 Martin Jambor <mjambor@suse.cz>
7739 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7741 2014-08-06 Richard Biener <rguenther@suse.de>
7744 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7746 (lto_input_tree): Pop SCCs here.
7748 2014-08-06 Richard Biener <rguenther@suse.de>
7750 PR tree-optimization/61320
7751 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7752 handle misaligned loads.
7754 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7756 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7757 (aarch64_expand_vec_perm_const): Check for dup before zip.
7759 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7761 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7762 CONST_INT_P instead of GET_CODE and compare.
7763 (aarch64_select_cc_mode): Likewise.
7764 (aarch64_print_operand): Likewise.
7765 (aarch64_rtx_costs): Likewise.
7766 (aarch64_simd_valid_immediate): Likewise.
7767 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7768 (aarch64_simd_emit_pair_result_insn): Likewise.
7770 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7772 * gdbhooks.py (find_gcc_source_dir): New helper function.
7773 (class PassNames): New class, locating and parsing passes.def.
7774 (class BreakOnPass): New command "break-on-pass".
7776 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7778 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7781 2014-08-05 Richard Biener <rguenther@suse.de>
7783 PR rtl-optimization/61672
7784 * emit-rtl.h (mem_attrs_eq_p): Declare.
7785 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7786 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7787 * cfgcleanup.c (merge_memattrs): Likewise.
7790 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7792 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7793 rather than singleton vectors.
7794 (vqdmlsls_lane_s32): Likewise.
7796 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7798 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7799 Use VSDQ_HSI mode iterator.
7800 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7801 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7802 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7803 Use BUILTIN_VDQHS macro.
7804 (sqrdmulh_laneq): Likewise.
7805 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7806 (vqdmlals_laneq_s32): Likewise.
7807 (vqdmlslh_laneq_s16): Likewise.
7808 (vqdmlsls_laneq_s32): Likewise.
7809 (vqdmulhh_laneq_s16): Likewise.
7810 (vqdmulhs_laneq_s32): Likewise.
7811 (vqrdmulhh_laneq_s16): Likewise.
7812 (vqrdmulhs_laneq_s32): Likewise.
7814 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7816 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7817 (vmuld_laneq_f64): Likewise.
7818 (vmuls_laneq_f32): Likewise.
7819 (vmul_n_f64): Likewise.
7820 (vmuld_lane_f64): Reimplement in C.
7821 (vmuls_lane_f32): Likewise.
7823 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7825 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7827 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7829 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7831 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7832 (rbitsi2): Likewise.
7833 (*arm_rev): Set predicable and predicable_short_it attributes.
7835 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7837 * convert.c (convert_to_integer): Guard transformation to lrint by
7840 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7842 * config/aarch64/aarch64-builtins.c
7843 (aarch64_simd_builtin_type_mode): Delete.
7844 (v8qi_UP): Remap to V8QImode.
7845 (v4hi_UP): Remap to V4HImode.
7846 (v2si_UP): Remap to V2SImode.
7847 (v2sf_UP): Remap to V2SFmode.
7848 (v1df_UP): Remap to V1DFmode.
7849 (di_UP): Remap to DImode.
7850 (df_UP): Remap to DFmode.
7851 (v16qi_UP):V16QImode.
7852 (v8hi_UP): Remap to V8HImode.
7853 (v4si_UP): Remap to V4SImode.
7854 (v4sf_UP): Remap to V4SFmode.
7855 (v2di_UP): Remap to V2DImode.
7856 (v2df_UP): Remap to V2DFmode.
7857 (ti_UP): Remap to TImode.
7858 (ei_UP): Remap to EImode.
7859 (oi_UP): Remap to OImode.
7860 (ci_UP): Map to CImode.
7861 (xi_UP): Remap to XImode.
7862 (si_UP): Remap to SImode.
7863 (sf_UP): Remap to SFmode.
7864 (hi_UP): Remap to HImode.
7865 (qi_UP): Remap to QImode.
7866 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7867 (VAR1): Build builtin name.
7868 (aarch64_init_simd_builtins): Remove dead code.
7870 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7872 * graphite-isl-ast-to-gimple.c:
7873 (set_options): New function.
7874 (scop_to_isl_ast): Add calling of set_options.
7876 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7878 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7879 (analyze_iv_to_split_insn): Don't initialize them.
7880 (get_ivts_expr): Removed.
7881 (allocate_basic_variable, insert_base_initialization): Use
7882 SET_SRC instead of *get_ivts_expr.
7883 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7885 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7887 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7888 (translate_isl_ast_for_loop): Add checking of the
7889 flag_loop_parallelize_all.
7890 (ast_build_before_for): New function.
7891 (scop_to_isl_ast): Add checking of the
7892 flag_loop_parallelize_all.
7893 * graphite-dependences.c: Move the defenition of the
7894 scop_get_dependences from graphite-optimize-isl.c to this file.
7895 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7896 (carries_deps): Add checking of the x's value.
7897 * graphite-optimize-isl.c: Move the defenition of the
7898 scop_get_dependences to graphite-dependences.c.
7899 * graphite-poly.h: Add declarations of scop_get_dependences
7902 2014-08-04 Rohit <rohitarulraj@freescale.com>
7905 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7907 (alt_reg_names): Likewise.
7908 (rs6000_dwarf_register_span): For SPE high registers, replace
7909 dwarf register numbers with GCC hard register numbers.
7910 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7911 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7912 register number for the corresponding GCC hard register number.
7913 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7914 newly added GCC hard register numbers for SPE high registers.
7915 (DWARF_FRAME_REGISTERS): Likewise.
7916 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7917 (DWARF_FRAME_REGNUM): Likewise.
7918 (FIXED_REGISTERS): Likewise.
7919 (CALL_USED_REGISTERS): Likewise.
7920 (CALL_REALLY_USED_REGISTERS): Likewise.
7921 (REG_ALLOC_ORDER): Likewise.
7922 (enum reg_class): Likewise.
7923 (REG_CLASS_NAMES): Likewise.
7924 (REG_CLASS_CONTENTS): Likewise.
7925 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7927 2014-08-04 Richard Biener <rguenther@suse.de>
7929 * gimple-fold.h (gimple_fold_builtin): Remove.
7930 * gimple-fold.c (gimple_fold_builtin): Make static.
7931 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7932 fold_stmt, not gimple_fold_builtin.
7934 2014-08-04 Martin Liska <mliska@suse.cz>
7936 * cgraph.h (csi_end_p): Removed.
7937 (csi_next): Likewise.
7938 (csi_node): Likewise.
7939 (csi_start): Likewise.
7940 (cgraph_node_in_set_p): Likewise.
7941 (cgraph_node_set_size): Likewise.
7942 (vsi_end_p): Likewise.
7943 (vsi_next): Likewise.
7944 (vsi_node): Likewise.
7945 (vsi_start): Likewise.
7946 (varpool_node_set_size): Likewise.
7947 (cgraph_node_set_nonempty_p): Likewise.
7948 (varpool_node_set_nonempty_p): Likewise.
7949 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7951 * ipa-inline-transform.c: Likewise.
7952 * ipa-utils.c (cgraph_node_set_new): Removed.
7953 (cgraph_node_set_add): Likewise.
7954 (cgraph_node_set_remove): Likewise.
7955 (cgraph_node_set_find): Likewise.
7956 (dump_cgraph_node_set): Likewise.
7957 (debug_cgraph_node_set): Likewise.
7958 (free_cgraph_node_set): Likewise.
7959 (varpool_node_set_new): Likewise.
7960 (varpool_node_set_add): Likewise.
7961 (varpool_node_set_remove): Likewise.
7962 (varpool_node_set_find): Likewise.
7963 (dump_varpool_node_set): Likewise.
7964 (free_varpool_node_set): Likewise.
7965 (debug_varpool_node_set): Likewise.
7966 * tree-emutls.c (struct tls_var_data):
7967 (emutls_index): Removed.
7968 (emutls_decl): Likewise.
7969 (gen_emutls_addr): Function implementation uses newly added
7970 hash_map<varpool_node *, tls_var_data>.
7971 (clear_access_vars): Likewise.
7972 (create_emultls_var): Likewise.
7973 (ipa_lower_emutls): Likewise.
7974 (reset_access): New function.
7976 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7978 * config/i386/i386.c (ix86_option_override_internal): Add
7979 PTA_RDRND and PTA_MOVBE for bdver4.
7981 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7982 James Greenhalgh <james.greenhalgh@arm.com>
7984 * doc/md.texi (clrsb): Document.
7985 (clz): Change reference to x into operand 1.
7987 (popcount): Likewise.
7989 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7992 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7993 move to subtarget in serial version if result is ignored.
7995 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7996 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7998 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7999 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
8000 (sched_analyze_insn): Update use of try_group_insn to
8001 sched_macro_fuse_insns.
8002 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
8003 arguments that are not conditional jumps.
8005 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8007 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
8008 family information. Handle BTVER2 cpu with cpuid family value.
8010 2014-08-04 Tom de Vries <tom@codesourcery.com>
8012 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
8013 (glibc_2_11_or_earlier): Document effective-target keywords.
8015 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
8017 * ipa-devirt.c (odr_type_warn_count): Add type.
8018 (possible_polymorphic_call_targets): Set it.
8019 (ipa_devirt): Use it.
8021 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
8023 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
8025 * ipa-devirt.c: Include hash-map.h
8026 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
8027 (clear_speculation): Break out of ...
8028 (get_class_context): ... here; speed up handling obviously useless
8030 (odr_type_warn_count, decl_warn_count): New structures.
8031 (final_warning_record): New structure.
8032 (final_warning_records): New static variable.
8033 (possible_polymorphic_call_targets): Cleanup handling of
8034 speculative info; do not build speculation when user do not care;
8035 record info about warnings when asked for.
8036 (add_decl_warning): New function.
8037 (type_warning_cmp): New function.
8038 (decl_warning_cmp): New function.
8039 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
8040 (gate): Enable pass when warnings are requested.
8041 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
8044 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8046 * hash-map.h (default_hashmap_traits::mark_key_deleted):
8048 (hash_map::remove): New method.
8049 (hash_map::traverse): New method.
8050 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
8051 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
8052 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
8053 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
8054 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
8055 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
8058 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8060 * hash-set.h: new File.
8061 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
8062 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
8063 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
8064 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
8065 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
8066 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
8067 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
8068 varpool.c: Use hash_set instead of pointer_set.
8070 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
8072 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
8074 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8076 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
8077 for frame access when strict_p is false.
8079 2014-08-01 Renlin Li <renlin.li@arm.com>
8080 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8082 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
8083 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
8084 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
8086 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
8088 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
8089 aarch64_mem_pair_offset.
8091 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8093 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
8095 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
8096 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
8098 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
8100 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
8102 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
8105 * cgraphunit.c (analyze_functions): Use get_create rather than get
8106 for decls which are clones of abstract functions.
8108 2014-08-01 Martin Liska <mliska@suse.cz>
8110 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
8111 * ipa-prop.h (count_formal_params): Global function created from static.
8112 * ipa-prop.c (count_formal_params): Likewise.
8113 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
8114 profiles for semantically equivalent functions.
8115 * passes.c (do_per_function): If we load body of a function
8116 during WPA, this condition should behave same.
8117 * varpool.c (ctor_for_folding): More tolerant assert for variable
8118 aliases created during WPA.
8120 2014-08-01 Martin Liska <mliska@suse.cz>
8122 * doc/invoke.texi (Options That Control Optimization): Documentation
8123 for -foptimize-strlen introduced. Optimization levels default options
8126 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8128 * opts.c (common_handle_option): Handle -fsanitize=alignment.
8129 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
8130 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
8132 * stor-layout.h (min_align_of_type): New prototype.
8133 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
8134 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
8136 * ubsan.c: Include builtins.h.
8137 (ubsan_expand_bounds_ifn): Change return type to bool,
8139 (ubsan_expand_null_ifn): Change return type to bool, change
8140 argument to gimple_stmt_iterator *. Handle both null and alignment
8141 sanitization, take type from ckind argument's type rather than
8143 (instrument_member_call): Removed.
8144 (instrument_mem_ref): Remove t argument, add mem and base arguments.
8145 Handle both null and alignment sanitization, don't say whole
8146 struct access is member access. Build 3 argument IFN_UBSAN_NULL
8147 call instead of 2 argument.
8148 (instrument_null): Adjust instrument_mem_ref caller. Don't
8149 instrument calls here.
8150 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
8152 * stor-layout.c (min_align_of_type): New function.
8153 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
8154 Or it into SANITIZE_UNDEFINED.
8155 * doc/invoke.texi (-fsanitize=alignment): Document.
8157 2014-07-31 Andi Kleen <ak@linux.intel.com>
8159 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8161 2014-07-31 Andi Kleen <ak@linux.intel.com>
8163 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8165 (vn_reference_compute_hash): Dito.
8166 (vn_nary_op_compute_hash): Dito.
8167 (vn_phi_compute_hash): Dito.
8168 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8170 2014-07-31 Andi Kleen <ak@linux.intel.com>
8172 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8173 Rename to inchash:add_expr_commutative. Convert to inchash.
8174 (iterative_hash_hashable_expr): Rename to
8175 inchash:add_hashable_expr. Convert to inchash.
8176 (avail_expr_hash): Dito.
8178 2014-07-31 Andi Kleen <ak@linux.intel.com>
8180 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8183 2014-07-31 Andi Kleen <ak@linux.intel.com>
8185 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8187 2014-07-31 Andi Kleen <ak@linux.intel.com>
8189 * Makefile.in (OBJS): Add rtlhash.o
8190 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8191 (loc_checksum): Dito.
8192 (loc_checksum_ordered): Dito.
8193 (hash_loc_operands): Dito.
8195 (hash_loc_list): Dito.
8196 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8197 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8198 * rtlhash.c: New file.
8199 * rtlhash.h: New file.
8201 2014-07-31 Andi Kleen <ak@linux.intel.com>
8203 * inchash.h (inchash): Change inchash class to namespace.
8204 (class hash): ... Rename from inchash.
8205 (add_object): Move from macro to class template.
8206 * lto-streamer-out.c (hash_tree): Change inchash
8208 * tree.c (build_type_attribute_qual_variant): Dito.
8209 (type_hash_list): Dito.
8210 (attribute_hash_list): Dito.
8211 (iterative_hstate_expr): Rename to inchash::add_expr
8212 (build_range_type_1): Change inchash to inchash::hash
8213 and use hash::add_expr.
8214 (build_array_type_1): Dito.
8215 (build_function_type): Dito
8216 (build_method_type_directly): Dito.
8217 (build_offset_type): Dito.
8218 (build_complex_type): Dito.
8219 (make_vector_type): Dito.
8220 * tree.h (iterative_hash_expr): Dito.
8222 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8224 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8226 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8228 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8229 correct alphabetical position.
8230 (vpaddd_f64): Rewrite using builtins.
8231 (vpaddd_s64): Move to correct alphabetical position.
8234 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8237 * config/sh/sh.c (sh_legitimate_address_p,
8238 sh_legitimize_reload_address): Handle reg+reg address modes when
8239 ALLOW_INDEXED_ADDRESS is false.
8240 * config/sh/predicates.md (general_movsrc_operand,
8241 general_movdst_operand): Likewise.
8243 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8245 * config/aarch64/aarch64-builtins.c
8246 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8249 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8251 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8252 the generated mask based on BYTES_BIG_ENDIAN.
8253 (aarch64_simd_check_vect_par_cnst_half): New.
8254 * config/aarch64/aarch64-protos.h
8255 (aarch64_simd_check_vect_par_cnst_half): New.
8256 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8257 the check out to aarch64_simd_check_vect_par_cnst_half.
8258 (vect_par_cnst_lo_half): Likewise.
8259 * config/aarch64/aarch64-simd.md
8260 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8261 (move_hi_quad_<mode>): Always generate a low mask.
8263 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8265 * doc/invoke.texi (AVR Options): Add documentation about
8266 __AVR_DEVICE_NAME__ built-in macro.
8268 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8271 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8272 constraints are satisfied.
8273 (<shift>di3_neon): Likewise.
8275 2014-07-31 Richard Biener <rguenther@suse.de>
8277 PR tree-optimization/61964
8278 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8279 by structural equality.
8281 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8283 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8284 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8285 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8287 * gcc.c (sanitize_spec_function): Support new option.
8288 (SANITIZER_SPEC): Remove now redundant check.
8289 * opts.c (common_handle_option): Support new option.
8290 (finish_options): Check for incompatibilities.
8291 * toplev.c (process_options): Split userspace-specific checks.
8293 2014-07-31 Richard Biener <rguenther@suse.de>
8295 * lto-streamer.h (struct output_block): Remove global.
8296 (struct data_in): Remove labels, num_named_labels and
8298 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8299 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8301 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8304 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8305 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8306 (isolate_path): New argument to avoid inserting a trap.
8307 (find_implicit_erroneous_behaviour): Handle returning the address
8308 of a local variable.
8309 (find_explicit_erroneous_behaviour): Likewise.
8311 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8314 * toplev.c (init_random_seed): Move piece of code never called to
8316 (set_random_seed): see above.
8318 2014-07-31 Tom de Vries <tom@codesourcery.com>
8320 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8322 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8324 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8325 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8327 2014-07-31 Richard Biener <rguenther@suse.de>
8329 * data-streamer.h (streamer_write_data_stream): Declare here,
8331 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8332 * lto-cgraph.c (lto_output_node): Adjust.
8333 (lto_output_varpool_node): Likewise.
8334 * data-streamer-out.c (streamer_string_index): Likewise.
8335 (streamer_write_data_stream, lto_append_block): Move from ...
8336 * lto-section-out.c (lto_output_data_stream,
8337 lto_append_block): ... here.
8339 2014-07-30 Mike Stump <mikestump@comcast.net>
8341 * configure.ac: Also check for popen.
8342 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8343 * configure: Regenerate.
8344 * config.in: Regenerate.
8346 2014-07-30 Martin Jambor <mjambor@suse.cz>
8348 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8349 parameter to gimple.
8351 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8353 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8354 address as second parameter to __tpf_eh_return routine.
8356 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8358 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8361 2014-07-30 Tom Tromey <tromey@redhat.com>
8364 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8365 * doc/extend.texi (Type Attributes): Document designated_init
8368 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8370 * graphite-isl-ast-to-gimple.c:
8371 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8372 (gcc_expression_from_isl_expression): Pass type to
8373 gcc_expression_from_isl_ast_expr_id.
8375 2014-07-30 Richard Biener <rguenther@suse.de>
8377 * lto-streamer.h (lto_write_data): New function.
8378 * langhooks.c (lhd_append_data): Do not free block.
8379 * lto-section-out.c (lto_write_data): New function writing
8380 raw data to the current section.
8381 (lto_write_stream): Adjust for langhook semantic change.
8382 (lto_destroy_simple_output_block): Write header directly.
8383 * lto-opts.c (lto_write_options): Write options directly.
8384 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8385 (lto_output_toplevel_asms): Likewise.
8386 (copy_function_or_variable): Copy data directly.
8387 (write_global_references): Output index table directly.
8388 (lto_output_decl_state_refs): Likewise.
8389 (write_symbol): Write data directly.
8390 (produce_symtab): Adjust.
8391 (produce_asm_for_decls): Output header and refs directly.
8393 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8395 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8396 to speculative_targets
8397 (get_class_context): Fix handling of contextes without outer type;
8398 avoid matching non-polymorphic types in LTO.
8399 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8400 parameter to speculative_targetsp; handle speculation.
8401 (dump_possible_polymorphic_call_targets): Update dumping.
8403 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8405 * common.opt (Wodr): Enable by default.
8407 2014-07-29 Olivier Hainque <hainque@adacore.com>
8409 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8411 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8414 * gengtype.c (strtoken): New function.
8415 (create_user_defined_type): Replace strtok with strtoken.
8417 2014-07-29 Nathan Sidwell <nathan@acm.org>
8419 * gcov-io.c (gcov_var): Make hidden.
8420 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8421 (gcov_do_dump): Declare.
8422 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8424 2014-07-29 Martin Jambor <mjambor@suse.cz>
8426 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8427 parameter to gimple.
8428 (sra_modify_assign): Likewise.
8430 2014-07-29 Richard Biener <rguenther@suse.de>
8433 * expr.c (expand_expr_real_2): Revert last change.
8435 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8437 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8438 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8439 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8441 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8442 (contains_type_p): Forward declare.
8443 (polymorphic_call_target_hasher::hash): Hash speculative info.
8444 (polymorphic_call_target_hasher::equal): Compare speculative info.
8445 (get_class_context): Handle speuclation.
8446 (contains_type_p): Update.
8447 (get_polymorphic_call_info_for_decl): Update.
8448 (walk_ssa_copies): Break out from ...
8449 (get_polymorphic_call_info): ... here; set speculative context
8451 * ipa-prop.c (ipa_write_indirect_edge_info,
8452 ipa_read_indirect_edge_info): Stream speculative context.
8453 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8454 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8455 SPECULATIVE_MAYBE_DERIVED_TYPE).
8456 (possible_polymorphic_call_targets overriders): Update.
8457 (dump_possible_polymorphic_call_targets overriders): Update.
8458 (dump_possible_polymorphic_call_target_p overriders): Update.
8460 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8462 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8463 ipa-devirt path; fix thinko there.
8465 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8467 * config/i386/i386.c (ix86_return_in_memory): Replace one
8468 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8470 2014-07-28 Marek Polacek <polacek@redhat.com>
8472 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8474 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8476 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8477 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8478 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8479 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8480 (USE_LD_AS_NEEDED): Likewise.
8481 (ASM_APP_ON): Likewise.
8482 (ASM_APP_OFF): Likewise.
8483 (TARGET_POSIX_IO): Likewise.
8484 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8485 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8486 (USE_LD_AS_NEEDED): Likewise.
8487 (ASM_APP_ON): Likewise.
8488 (ASM_APP_OFF): Likewise.
8489 (TARGET_POSIX_IO): Likewise.
8491 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8494 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8495 operators other than the equality operators.
8497 2014-07-28 Richard Biener <rguenther@suse.de>
8500 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8501 sure to register SImode ones, not only >= word_mode ones.
8502 * expr.c (expand_expr_real_2): When expanding -ftrapv
8503 binops do not use OPTAB_LIB_WIDEN.
8505 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8508 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8509 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8510 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8511 inserting them in the insn stream.
8513 2014-07-28 Marek Polacek <polacek@redhat.com>
8516 * common.opt (Wodr): Add Var.
8518 2014-07-28 Richard Biener <rguenther@suse.de>
8520 PR tree-optimization/61921
8521 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8522 if there is a varpool node before dereferencing it.
8524 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8526 * graphite-sese-to-poly.c:
8527 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8528 id of the pbb), which contains pointer to the pbb1.
8530 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8532 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8534 * graphite-isl-ast-to-gimple.c:
8535 (graphite_create_new_guard): New function.
8536 (translate_isl_ast_node_if): New function.
8537 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8539 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8541 2014-07-27 Anthony Green <green@moxielogic.com>
8543 * config.gcc: Add moxie-*-moxiebox* configuration.
8544 * config/moxie/moxiebox.h: New file.
8546 2014-07-26 Andrew Pinski <apinski@cavium.com>
8548 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8549 from the read only register.
8551 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8553 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8554 as the allocation class if it isn't likely to be spilled.
8556 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8558 * rtl.h (tls_referenced_p): Declare.
8559 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8560 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8561 (mips_cannot_force_const_mem): Use tls_referenced_p.
8562 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8563 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8564 instead of pa_tls_referenced_p.
8565 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8566 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8567 (pa_legitimate_constant_p): Likewise.
8568 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8569 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8570 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8571 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8572 rs6000_tls_referenced_p.
8573 (rs6000_tls_symbol_ref_1): Delete.
8575 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8578 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8579 Optimize inverse of a VEC_CONCAT.
8581 2014-07-25 Xinliang David Li <davidxl@google.com>
8583 * params.def: New parameter.
8584 * coverage.c (get_coverage_counts): Check new flag.
8585 (coverage_compute_profile_id): Check new flag.
8586 (coverage_begin_function): Check new flag.
8587 (coverage_end_function): Check new flag.
8588 * value-prof.c (coverage_node_map_initialized_p): New function.
8589 (init_node_map): Populate map with all functions.
8590 * doc/invoke.texi: Document new parameter.
8592 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8593 Richard Biener <rguenther@suse.de>
8595 * lto-streamer-out.c (struct sccs): Turn to ...
8596 (class DFS): ... this one; refactor the DFS walk so it can
8597 be re-done on per-SCC basis.
8598 (DFS::DFS): New constructor.
8599 (DFS::~DFS): New destructor.
8600 (hash_tree): Add new MAP argument holding in-SCC hash values;
8601 remove POINTER_TYPE hashing hack.
8602 (scc_entry_compare): Rename to ...
8603 (DFS::scc_entry_compare): ... this one.
8604 (hash_scc): Rename to ...
8605 (DFS::hash_scc): ... this one; pass output_block instead
8606 of streamer_cache; work harder to get unique and stable SCC
8608 (DFS_write_tree): Rename to ...
8609 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8610 (lto_output_tree): Update.
8612 2014-07-25 Andi Kleen <ak@linux.intel.com>
8614 * lto-streamer-out.c (hash_tree): Convert to inchash.
8616 2014-07-25 Andi Kleen <ak@linux.intel.com>
8618 * tree.c (build_type_attribute_qual_variant): Use inchash.
8619 (type_hash_list): Dito.
8620 (attribute_hash_list): Dito
8621 (iterative_hstate_expr): Dito.
8622 (iterative_hash_expr): Dito.
8623 (build_range_type_1): Dito.
8624 (build_array_type_1): Dito.
8625 (build_function_type): Dito.
8626 (build_method_type_directly): Dito.
8627 (build_offset_type): Dito.
8628 (build_complex_type): Dito.
8629 (make_vector_type): Dito.
8630 * tree.h (iterative_hash_expr): Add compat wrapper.
8631 (iterative_hstate_expr): Add.
8633 2014-07-25 Andi Kleen <ak@linux.intel.com>
8635 * Makefile.in (OBJS): Add inchash.o.
8636 (PLUGIN_HEADERS): Add inchash.h.
8637 * ipa-devirt.c: Include inchash.h.
8638 * lto-streamer-out.c: Dito.
8639 * tree-ssa-dom.c: Dito.
8640 * tree-ssa-pre.c: Dito.
8641 * tree-ssa-sccvn.c: Dito.
8642 * tree-ssa-tail-merge.c: Dito.
8644 * tree.c (iterative_hash_hashval_t): Move to ...
8645 (iterative_hash_host_wide_int): Move to ...
8646 * inchash.c: Here. New file.
8647 * tree.h (iterative_hash_hashval_t): Move to ...
8648 (iterative_hash_host_wide_int): Move to ...
8649 * inchash.h: Here. New file.
8651 2014-07-25 Richard Biener <rguenther@suse.de>
8655 * fold-const.c (native_encode_int): Add and handle offset
8656 parameter to do partial encodings of expr.
8657 (native_encode_fixed): Likewise.
8658 (native_encode_real): Likewise.
8659 (native_encode_complex): Likewise.
8660 (native_encode_vector): Likewise.
8661 (native_encode_string): Likewise.
8662 (native_encode_expr): Likewise.
8663 * fold-const.c (native_encode_expr): Add offset parameter
8665 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8666 (fold_ctor_reference): Handle all reads from tcc_constant
8669 2014-07-25 Richard Biener <rguenther@suse.de>
8671 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8674 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8676 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8678 2014-07-24 Kyle McMartin <kyle@redhat.com>
8680 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8682 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8684 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8686 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8688 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8689 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8690 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8692 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8694 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8695 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8696 aggregate types. Instead, *all* aggregate types, except for single-
8697 element or homogeneous float/vector aggregates, are quadword-aligned
8698 if required by their type alignment. Issue -Wpsabi note when a type
8699 is now treated differently than before.
8701 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8703 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8704 does not fit fully into floating-point registers, and there is still
8705 space in the register parameter area, use GPRs to pass those parts
8706 of the argument. Issue -Wpsabi note if any parameter is now treated
8707 differently than before.
8708 (rs6000_arg_partial_bytes): Update.
8710 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8712 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8714 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8716 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8717 * toplev.c (initialize_rtl): Don't use it. Move previously
8718 "language-dependent" calls to...
8719 (backend_init): ...here.
8720 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8721 Assert that RTL initialization hasn't happend yet.
8723 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8725 PR rtl-optimization/61629
8726 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8727 they have already been initialized.
8729 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8732 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8733 DECL_INCOMING_RTL and entry_parm.
8734 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8735 * calls.c (load_register_parameters): Likewise argument values.
8736 (emit_library_call_value_1, store_one_arg): Likewise argument
8738 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8740 * explow.c (validize_mem): Modify the argument in-place.
8742 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8744 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8745 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8747 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8749 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8750 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8752 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8754 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8755 (aarch64_save_callee_saves): New parameter "skip_wb".
8756 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8758 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8760 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8762 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8764 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8766 * graphite-isl-ast-to-gimple.c:
8767 (graphite_create_new_loop): Add calling of isl_id_free to properly
8768 decrement reference counts.
8770 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8772 2014-07-24 Martin Liska <mliska@suse.cz>
8773 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8775 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8776 (rs6000_code_end): Likewise.
8778 2014-07-24 Martin Liska <mliska@suse.cz>
8780 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8781 symtab_node funtion used.
8782 (rs6000_xcoff_declare_object_name): Likewise.
8784 2014-07-24 Martin Liska <mliska@suse.cz>
8786 * cgraphunit.c (compile): Correct function used.
8788 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8790 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8793 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8796 * varasm.c (bss_initializer_p): Handle offlined ctors.
8797 (align_variable, get_variable_align): Likewise.
8798 (make_decl_one_only): Likewise.
8799 (default_binds_local_p_1): Likewise.
8800 (decl_binds_to_current_def_p): Likewise.
8801 (get_variable_section): Get constructor if it is offlined.
8802 (assemble_variable_contents): Sanity check that the caller
8803 streamed in the ctor in LTO.
8805 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8807 * graphite-isl-ast-to-gimple.c:
8808 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8809 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8810 isl_ast_op_pdiv_r to the different case.
8812 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8814 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8817 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8818 when flag_errno_math is on.
8820 2014-07-24 Martin Liska <mliska@suse.cz>
8822 * cgraph.h (varpool_node):
8823 (availability get_availability (void)):
8824 created from cgraph_variable_initializer_availability
8825 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8826 created from: cgraph_variable_initializer_availability
8827 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8828 (void finalize_named_section_flags (void)):
8829 created from varpool_finalize_named_section_flags
8830 (bool assemble_decl (void)): created from varpool_assemble_decl
8831 (void analyze (void)): created from varpool_analyze_node
8832 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8833 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8834 (void remove_initializer (void)): created from varpool_remove_initializer
8835 (tree get_constructor (void)): created from varpool_get_constructor
8836 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8837 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8838 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8839 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8840 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8841 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8842 (static bool output_variables (void)): created from varpool_output_variables
8843 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8844 created from varpool_extra_name_alias
8845 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8846 (static void dump_varpool (FILE *f)): created from dump_varpool
8847 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8848 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8849 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8850 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8851 (void assemble_aliases (void)): created from assemble_aliases
8853 2014-07-24 Martin Liska <mliska@suse.cz>
8855 * cgraph.h (symtab_node):
8856 (void register_symbol (void)): created from symtab_register_node
8857 (void remove (void)): created from symtab_remove_node
8858 (void dump (FILE *f)): created from dump_symtab_node
8859 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8860 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8861 (struct ipa_ref *add_reference (symtab_node *referred_node,
8862 enum ipa_ref_use use_type)): created from add_reference
8863 (struct ipa_ref *add_reference (symtab_node *referred_node,
8864 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8865 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8866 gimple stmt)): created from maybe_add_reference
8867 (bool semantically_equivalent_p (symtab_node *target)): created from
8868 symtab_semantically_equivalent_p
8869 (void remove_from_same_comdat_group (void)): created from
8870 remove_from_same_comdat_group
8871 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8872 symtab_add_to_same_comdat_group
8873 (void dissolve_same_comdat_group_list (void)): created from
8874 symtab_dissolve_same_comdat_group_list
8875 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8876 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8877 created from symtab_alias_ultimate_target
8878 (inline symtab_node *next_defined_symbol (void)): created from
8879 symtab_next_defined_symbol
8880 (bool resolve_alias (symtab_node *target)): created from
8881 symtab_resolve_alias
8882 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8883 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8884 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8885 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8886 (void set_section (const char *section)): created from set_section_1
8887 (enum availability get_availability (void)): created from symtab_node_availability
8888 (void make_decl_local (void)): created from symtab_make_decl_local
8889 (bool real_symbol_p (void)): created from symtab_read_node
8890 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8891 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8892 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8893 symtab_in_same_comdat_p;
8894 (bool address_taken_from_non_vtable_p (void)): created from
8895 address_taken_from_non_vtable_p
8896 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8897 (static void dump_table (FILE *)): created from dump_symtab
8898 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8899 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8900 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8901 symtab_used_from_object_file_p
8902 (void dump_base (FILE *)): created from dump_symtab_base
8903 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8904 (void unregister (void)): created from symtab_unregister_node
8905 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8906 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8907 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8908 symtab_nonoverwritable_alias_1
8909 * cgraph.h (cgraph_node):
8910 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8911 created from cgraph_remove_node_and_inline_clones
8912 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8913 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8914 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8915 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8916 created from cgraph_function_node
8917 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8918 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8919 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8920 created from cgraph_create_clone
8921 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8922 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8923 created from cgraph_create_virtual_clone
8924 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8925 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8926 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8927 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8928 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8929 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8930 created from cgraph_function_version_info
8931 (struct cgraph_function_version_info *insert_new_function_version (void)):
8932 created from insert_new_cgraph_node_version
8933 (struct cgraph_function_version_info *function_version (void)): created from
8934 get_cgraph_node_version
8935 (void analyze (void)): created from analyze_function
8936 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8937 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8938 tree real_alias) cgraph_add_thunk
8939 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8940 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8941 created from cgraph_function_or_thunk_node
8942 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8943 created from expand_thunk
8944 (void reset (void)): created from cgraph_reset_node
8945 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8946 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8947 (void remove (void)): created from cgraph_remove_node
8948 (void dump (FILE *f)): created from dump_cgraph_node
8949 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8950 (bool get_body (void)): created from cgraph_get_body
8951 (void release_body (void)): created from cgraph_release_function_body
8952 (void unnest (void)): created from cgraph_unnest_node
8953 (void make_local (void)): created from cgraph_make_node_local
8954 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8955 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8956 gcov_type count, int freq)): created from cgraph_create_edge
8957 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8958 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8959 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8960 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8961 created from cgraph_create_edge_including_clones
8962 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8963 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8964 (void remove_callers (void)): created from cgraph_node_remove_callers
8965 (void remove_callees (void)): created from cgraph_node_remove_callees
8966 (enum availability get_availability (void)): created from cgraph_function_body_availability
8967 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8968 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8969 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8970 (void call_duplication_hooks (cgraph_node *node2)): created from
8971 cgraph_call_node_duplication_hooks
8972 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8973 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8974 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8975 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8976 (void call_function_insertion_hooks (void)):
8977 created from cgraph_call_function_insertion_hooks
8978 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8979 (bool local_p (void)): created from cgraph_local_node
8980 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8981 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8982 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8983 (inline bool only_called_directly_or_aliased_p (void)):
8984 created from cgraph_only_called_directly_or_aliased_p
8985 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8986 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8987 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8988 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8989 (bool can_remove_if_no_direct_calls_p (void)):
8990 created from cgraph_can_remove_if_no_direct_calls_p
8991 (inline bool has_gimple_body_p (void)):
8992 created from cgraph_function_with_gimple_body_p
8993 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8994 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8995 (static inline void debug_cgraph (void)): created from debug_cgraph
8996 (static void record_function_versions (tree decl1, tree decl2)):
8997 created from record_function_versions
8998 (static void delete_function_version (tree decl)):
8999 created from delete_function_version
9000 (static void add_new_function (tree fndecl, bool lowered)):
9001 created from cgraph_add_new_function
9002 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
9003 (static cgraph_node * create (tree decl)): created from cgraph_create_node
9004 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
9005 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
9006 (static cgraph_node *get_for_asmname (tree asmname)):
9007 created from cgraph_node_for_asm
9008 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
9009 created from cgraph_same_body_alias
9010 (static bool used_from_object_file_p_worker (cgraph_node *node,
9011 void *): new function
9012 (static bool non_local_p (cgraph_node *node, void *)):
9013 created from cgraph_non_local_node_p_1
9014 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
9015 created from verify_cgraph
9016 (static bool make_local (cgraph_node *node, void *)):
9017 created from cgraph_make_node_local
9018 (static cgraph_node *create_alias (tree alias, tree target)):
9019 created from cgraph_create_function_alias
9020 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
9021 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
9022 created from cgraph_create_edge_1
9023 * cgraph.h (varpool_node):
9024 (void remove (void)): created from varpool_remove_node
9025 (void dump (FILE *f)): created from dump_varpool_node
9027 2014-07-24 Richard Biener <rguenther@suse.de>
9030 * tree-ssa-structalias.c (create_variable_info_for_1):
9031 Use varpool_get_constructor.
9032 (create_variable_info_for): Likewise.
9034 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9036 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
9037 subtract outgoing area size when restoring stack_pointer_rtx.
9039 2014-07-24 Nick Clifton <nickc@redhat.com>
9041 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
9042 that operations are taking place in parallel.
9043 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
9045 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
9047 * omp-low.c (extract_omp_for_data): Add missing break statement.
9049 2014-07-24 Richard Biener <rguenther@suse.de>
9051 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
9052 * tree-inline.c (estimate_move_cost): Add speed_p parameter
9053 and adjust MOVE_RATIO query accordingly.
9054 (estimate_num_insns): Adjust callers.
9055 * ipa-prop.c (ipa_populate_param_decls): Likewise.
9056 * ipa-cp.c (gather_context_independent_values,
9057 estimate_local_effects): Likewise.
9058 * ipa-split.c (consider_split): Likewise.
9060 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
9062 * config/i386/driver-i386.c: Remove names of unused arguments and
9063 unnecessary unused attributes.
9064 * config/i386/host-mingw32.c: Likewise.
9065 * config/i386/i386.c: Likewise.
9066 * config/i386/winnt-stubs.c: Likewise.
9067 * config/i386/winnt.c: Likewise.
9069 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9071 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
9072 (aarch64_gen_loadwb_pair): New helper function.
9073 (aarch64_expand_epilogue): Simplify code using new helper functions.
9074 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
9076 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9078 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
9079 (aarch64_gen_storewb_pair): New helper function.
9080 (aarch64_expand_prologue): Simplify code using new helper functions.
9081 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
9083 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9085 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
9086 Rename to aarch64_save_callee_saves, remove restore code.
9087 (aarch64_restore_callee_saves): New function.
9089 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9091 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
9092 (aarch64_save_callee_saves): New function to handle reg save
9093 for both core and vectore regs.
9095 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9097 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
9098 (aarch64_gen_store_pair): New helper function.
9099 (aarch64_save_or_restore_callee_save_registers)
9100 (aarch64_save_or_restore_fprs): Use new helper functions.
9102 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9104 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
9105 (aarch64_save_or_restore_callee_save_registers)
9106 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
9108 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9110 * config/aarch64/aarch64.c
9111 (aarch64_save_or_restore_callee_save_registers)
9112 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
9114 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9116 * config/aarch64/aarch64.c
9117 (aarch64_save_or_restore_callee_save_registers)
9118 (aarch64_save_or_restore_fprs): Remove 'increment'.
9120 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9122 * config/aarch64/aarch64.c
9123 (aarch64_save_or_restore_callee_save_registers)
9124 (aarch64_save_or_restore_fprs): Use register offset in
9125 cfun->machine->frame.reg_offset.
9127 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9129 * config/aarch64/aarch64.c
9130 (aarch64_save_or_restore_callee_save_registers)
9131 (aarch64_save_or_restore_fprs): Remove base_rtx.
9133 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9135 * config/aarch64/aarch64.c
9136 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
9137 to 'start_offset'. Remove local variable 'start_offset'.
9139 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9141 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
9142 type to HOST_WIDE_INT.
9144 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9146 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9147 (aarch64_save_or_restore_fprs)
9148 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
9150 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9152 * config/arm/t-rtems-eabi: Add
9153 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
9154 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
9155 mbig-endian/mthumb/march=armv7-r, and
9156 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9159 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9160 Chris Johns <chrisj@rtems.org>
9161 Joel Sherrill <joel.sherrill@oarcorp.com>
9163 * config.gcc: Add nios2-*-rtems*.
9164 * config/nios2/rtems.h: New file.
9165 * gcc/config/nios2/t-rtems: New file.
9167 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9170 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9171 constant numbers, not general constants.
9172 (rs6000_expand_vector_init): Ditto.
9174 2014-07-23 Nathan Sidwell <nathan@acm.org>
9176 * gcov-tool.c (gcov_list): Declare here.
9177 (set_gcov_list): Remove.
9178 (gcov_output_files): Set gcov_list directly.
9180 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9182 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9184 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9186 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9187 callee-saved registers are available for padding purpose
9188 and r3 is not mandatory, then prefer use those callee-saved
9191 2014-07-23 Richard Biener <rguenther@suse.de>
9193 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9194 * combine.c: Include statistics.h and params.h.
9195 (combine_instructions): Guard three and four insn combines
9196 with max-combine-insns value. Record statistics for combines
9198 * doc/invoke.texi (max-combine-insns): Document new param.
9200 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9202 * graphite-isl-ast-to-gimple.c:
9203 (translate_isl_ast_node_block): New function.
9204 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9206 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9207 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9209 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9211 * graphite-isl-ast-to-gimple.c:
9212 (get_max_schedule_dimensions): New function.
9213 (extend_schedule): Likewise.
9214 (generate_isl_schedule): Add calling of extend_schedule and
9215 get_max_schedule_dimensions.
9217 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9219 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9220 (case UNSPEC): Handle UNSPEC_RBIT.
9222 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9224 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9225 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9227 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9229 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9231 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9233 * graphite-isl-ast-to-gimple.c:
9234 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9236 (build_iv_mapping): New function.
9237 (translate_isl_ast_node_user): Likewise.
9238 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9240 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9241 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9242 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9244 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9247 * config/arm/arm.md (setmem): New pattern.
9248 * config/arm/arm-protos.h (struct tune_params): New fields.
9249 (arm_gen_setmem): New prototype.
9250 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9251 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9252 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9253 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9254 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9255 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9256 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9257 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9258 (arm_const_inline_cost): New function.
9259 (arm_block_set_max_insns): New function.
9260 (arm_block_set_non_vect_profit_p): New function.
9261 (arm_block_set_vect_profit_p): New function.
9262 (arm_block_set_unaligned_vect): New function.
9263 (arm_block_set_aligned_vect): New function.
9264 (arm_block_set_unaligned_non_vect): New function.
9265 (arm_block_set_aligned_non_vect): New function.
9266 (arm_block_set_vect, arm_gen_setmem): New functions.
9268 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9270 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9272 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9275 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9276 out of #ifdef __OPTIMIZE__.
9278 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9280 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9281 different trapping status if -fnon-call-exceptions is enabled.
9283 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9285 * expr.c (store_field): Handle VOIDmode for calls that return values
9286 in multiple locations.
9288 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9290 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9291 (altivec_vsldoi_<mode>): Likewise.
9293 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9295 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9296 to the number of characters in the line.
9298 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9300 * graphite-isl-ast-to-gimple.c: Add using of
9301 build_nonstandard_integer_type instead of int128_integer_type_node.
9303 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9305 * toplev.c (output_stack_usage): Adjust the location of the warning.
9307 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9309 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9310 (*membar_storeload): Disable for LEON3.
9312 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9314 PR rtl-optimization/61461
9315 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9317 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9320 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9321 Fix instruction constraint.
9322 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9324 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9326 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9328 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9330 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9331 GNU coding standards.
9332 (nds32_register_move_cost): Likewise.
9333 (nds32_memory_move_cost): Likewise.
9334 (nds32_address_cost): Likewise.
9336 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9338 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9340 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9342 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9343 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9344 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9345 (HAVE_sync_compare_and_swapqi): Define.
9346 (HAVE_sync_compare_and_swaphi): Likewise.
9347 (HAVE_sync_compare_and_swapsi): Likewise.
9349 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9351 * config/mips/p5600.md: Add missing cpu tests.
9353 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9355 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9356 (vmla_f64): Likewise.
9357 (vfms_f64): Likewise.
9358 (vmls_f64): Likewise.
9360 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9362 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9363 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9365 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9367 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9368 (vmlal_high_lane_s32): Likewise.
9369 (vmlal_high_lane_u16): Likewise.
9370 (vmlal_high_lane_u32): Likewise.
9371 (vmlsl_high_lane_s16): Likewise.
9372 (vmlsl_high_lane_s32): Likewise.
9373 (vmlsl_high_lane_u16): Likewise.
9374 (vmlsl_high_lane_u32): Likewise.
9376 2014-07-17 Terry Guo <terry.guo@arm.com>
9378 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9379 (alus_reg): Renamed to alus_sreg.
9380 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9381 from alu_reg to alu_sreg. Change type of dsp instructions from
9382 alu_reg to alu_dsp_reg.
9383 * config/arm/thumb1.md: Likewise.
9384 * config/arm/thumb2.md: Likewise.
9385 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9386 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9387 with alu_sreg and alus_sreg.
9388 * config/arm/arm1026ejs.md (alu_op): Likewise.
9389 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9390 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9391 * config/arm/fa526.md (526_alu_op): Likewise.
9392 * config/arm/fa606te.md (606te_alu_op): Likewise.
9393 * config/arm/fa626te.md (626te_alu_op): Likewise.
9394 * config/arm/fa726te.md (726te_alu_op): Likewise.
9395 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9396 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9397 alu_sreg, alu_dsp_reg and alus_sreg.
9398 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9399 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9400 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9401 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9402 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9403 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9404 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9405 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9406 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9407 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9408 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9409 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9410 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9411 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9412 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9413 alus_reg to alus_sreg.
9415 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9417 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9420 2014-07-17 Richard Biener <rguenther@suse.de>
9422 PR rtl-optimization/61801
9423 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9424 don't set reg_pending_barrier if it appears in a debug-insn.
9426 2014-07-16 DJ Delorie <dj@redhat.com>
9428 * config/rx/rx.c (rx_option_override): Fix alignment values.
9429 (rx_align_for_label): Likewise.
9431 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9434 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9435 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9436 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9438 (cris_print_index, cris_print_operand, cris_constant_index_p)
9439 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9440 (cris_address_cost): Ditto last CONSTANT_P.
9441 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9442 callers changed. Yield cris_offsettable_symbol for non-PIC
9443 constant symbolic expressions including labels. Yield cris_unspec
9445 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9446 target to pic_offset_table_rtx for calls that will likely go
9447 through PLT, const0_rtx when they can't. All callers changed.
9448 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9449 symbolic expressions to be PICified. Remove second, redundant,
9450 assert on can_create_pseudo_p returning non-zero. Use
9451 replace_equiv_address_nv, not replace_equiv_address, for final
9453 * config/cris/cris.md ("movsi"): Move variable t to pattern
9454 toplevel. Adjust assert for new cris_symbol_type member. Use
9455 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9456 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9458 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9459 ("call", "call_value"): Use second incoming operand as a marker
9460 for pic-offset-table-register being used.
9461 ("*expanded_call_non_v32", "*expanded_call_v32")
9462 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9463 second incoming operand to CALL, match cris_call_type_marker.
9464 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9465 ("*expanded_call_side"): Ditto. Fix typo in comment.
9466 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9468 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9469 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9470 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9471 users changed. Add members cris_offsettable_symbol and cris_unspec.
9472 (cris_symbol_type): Rename from cris_pic_symbol_type.
9473 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9475 * config/cris/cris-protos.h (cris_symbol_type_of,
9476 cris_expand_pic_call_address): Adjust prototypes.
9477 (cris_legitimate_constant_p): New prototype.
9479 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9480 an existing tmake_file. Don't add t-slibgcc and t-linux.
9482 2014-07-17 Jason Merrill <jason@redhat.com>
9485 * symtab.c (symtab_remove_from_same_comdat_group): Also
9486 set_comdat_group to NULL_TREE.
9487 (verify_symtab): Fix diagnostic.
9489 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9492 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9494 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9496 Support location tracking for built-in macro tokens
9497 * input.h (is_location_from_builtin_token): New function declaration.
9498 * input.c (is_location_from_builtin_token): New function definition.
9499 * toplev.c (general_init): Tell libcpp what the pre-defined
9500 spelling location for built-in tokens is.
9502 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9504 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9505 on the FUNCTION_DECL.
9507 2014-07-16 Richard Biener <rguenther@suse.de>
9510 * doc/extend.texi (always_inline): Clarify.
9512 2014-07-15 Eric Christopher <echristo@gmail.com>
9514 * doc/invoke.texi (Link Options): Document -z option.
9516 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9518 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9519 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9521 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9523 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9525 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9527 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9528 varpool_assemble_decl.
9529 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9532 2014-07-15 Michael Matz <matz@suse.de>
9534 PR rtl-optimization/61772
9535 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9537 2014-07-15 Richard Biener <rguenther@suse.de>
9539 * opts.c (default_options_table): Disable bit-ccp at -Og.
9541 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9543 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9545 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9547 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9548 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9549 call langhook for unknown declaration.
9550 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9551 * tree.h (DECL_ARGUMENTS): Update.
9552 * print-tree.c (print_node): Update.
9553 * tree-core.h (tree_decl_non_common): Remove arguments.
9554 (tree_function_decl): Add arguments.
9556 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9558 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9560 2014-07-14 Richard Biener <rguenther@suse.de>
9562 PR tree-optimization/61779
9563 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9564 simplifying a condition.
9566 2014-07-14 Richard Biener <rguenther@suse.de>
9568 * builtins.c (c_strlen): Make only_value == 2 really only
9569 affect warning generation.
9571 2014-07-14 Richard Biener <rguenther@suse.de>
9573 PR tree-optimization/61757
9574 PR tree-optimization/61783
9575 PR tree-optimization/61787
9576 * tree-ssa-dom.c (record_equality): Revert canonicalization
9577 change and add comment.
9578 (propagate_rhs_into_lhs): Revert previous fix, removing
9579 loop depth restriction again.
9581 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9583 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9584 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9585 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9586 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9587 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9588 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9589 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9591 2014-07-14 Richard Biener <rguenther@suse.de>
9593 * cgraph.h (decl_in_symtab_p): Make inline.
9595 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9598 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9601 * config/i386/i386.c (classify_argument): Don't merge classes above
9604 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9606 * cgraph.h (symtab_node): Add nonzero_address.
9607 (decl_in_symtab_p): Break out from ...
9608 (symtab_get_node): ... here.
9609 * fold-const.c: Include cgraph.h
9610 (tree_single_nonzero_warnv_p): Use symtab to determine
9611 if symbol is non-zero.
9612 * symtab.c (symtab_node::nonzero_address): New method.
9614 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9616 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9617 forgotten in previous commit.
9619 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9621 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9623 * ipa-devirt.c: Include stor-layout.h and intl.h
9624 (odr_subtypes_equivalent_p): New function.
9625 (warn_odr): New function.
9626 (warn_type_mismatch): New function.
9627 (odr_types_equivalent_p): New function.
9628 (add_type_duplicate): Use it.
9629 * common.opt (Wodr): New flag.
9630 * doc/invoke.texi (Wodr): Document new warning.
9632 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9634 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9635 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9636 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9637 (varpool_get_constructor): Push CTORS_IN timevar.
9638 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9640 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9642 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9643 Remove VOID_FTYPE_PUSHORT.
9644 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9645 Change code to USHORT_FTYPE_VOID.
9646 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9647 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9648 (ix86_atomic_assign_expand_fenv): Update for
9649 __builtin_ia32_fnstsw changes.
9650 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9651 (fnstsw): Change operand 0 to nonimmediate operand.
9653 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9655 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9656 (varpool_get_constructor): New function.
9657 (varpool_ctor_useable_for_folding_p): Break out from ...
9658 (ctor_for_folding): ... here; use varpool_get_constructor.
9659 (varpool_assemble_decl): Likewise.
9660 * lto-streamer.h (struct output_block): Turn cgraph_node
9662 (lto_input_variable_constructor): Declare.
9663 * ipa-visibility.c (function_and_variable_visibility): Use
9664 varpool_get_constructor.
9665 * cgraph.h (varpool_get_constructor): Declare.
9666 (varpool_ctor_useable_for_folding_p): New function.
9667 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9668 parameter; return error_mark_node for non-trivial constructors.
9669 (lto_write_tree_1, DFS_write_tree): Update use of
9670 get_symbol_initial_value.
9671 (output_function): Update initialization of symbol.
9672 (output_constructor): New function.
9673 (copy_function): Rename to ..
9674 (copy_function_or_variable): ... this one; handle vars too.
9675 (lto_output): Output variable sections.
9676 * lto-streamer-in.c (input_constructor): New function.
9677 (lto_read_body): Rename from ...
9678 (lto_read_body_or_constructor): ... this one; handle vars too.
9679 (lto_input_variable_constructor): New function.
9680 * ipa-prop.c (ipa_prop_write_jump_functions,
9681 ipa_prop_write_all_agg_replacement): Update.
9682 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9683 (output_cgraph_opt_summary): Set symbol to NULL.
9685 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9687 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9688 non-polymorphic types.
9689 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9690 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9691 of types is not polymorphic.
9693 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9695 * lra-constraints.c (remove_inheritance_pseudos): Process
9696 destination pseudo too.
9698 2014-07-11 Rong Xu <xur@google.com>
9700 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9703 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9705 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9706 * config/avr/avr-devices.c (AVR_MCU): Same.
9707 (avr_mcu_types): add text start value to end of device list.
9708 * config/avr/avr-mcus.def: Add text section start for all devices.
9709 (ata5782): Add new avr5 device.
9711 * config/avr/avr-tables.opt: Regenerate.
9712 * config/avr/avr.h: Add declaration for text section start handler.
9713 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9715 (LINK_SPEC): Include text section start handler to linker spec.
9716 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9717 pass -Ttext option to linker if the text section start for the device
9719 * config/avr/t-multilib: Regenerate.
9720 * doc/avr-mmcu.texi: Regenerate.
9722 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9724 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9725 * config/rs6000/aix52.h (LINK_SPEC): Same.
9726 * config/rs6000/aix53.h (LINK_SPEC): Same.
9727 * config/rs6000/aix61.h (LINK_SPEC): Same.
9728 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9730 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9732 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9733 (graphite_verify): New function.
9734 (ivs_params_clear): New function.
9735 (gcc_expression_from_isl_ast_expr_id): New function.
9736 (gcc_expression_from_isl_expr_int): New function.
9737 (binary_op_to_tree): New function.
9738 (ternary_op_to_tree): New function.
9739 (unary_op_to_tree): New function.
9740 (nary_op_to_tree): New function.
9741 (gcc_expression_from_isl_expr_op): New function.
9742 (gcc_expression_from_isl_expression): New function.
9743 (graphite_create_new_loop): New function.
9744 (translate_isl_ast_for_loop): New function.
9745 (get_upper_bound): New function.
9746 (graphite_create_new_loop_guard): New function.
9747 (translate_isl_ast_node_for): New function.
9748 (translate_isl_ast): New function.
9749 (add_parameters_to_ivs_params): New function.
9750 (scop_to_isl_ast): New parameter ip.
9751 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9753 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9755 * config/xtensa/predicates.md (call expander): Update for
9756 DECL_SECTION_NAME being string.
9758 2014-07-11 Richard Biener <rguenther@suse.de>
9761 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9762 can be implemented with a single load followed by a single store.
9763 (c_strlen): Only warn when only_value is not 2.
9765 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9767 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9769 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9772 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9773 (*movhi_bytes): Likewise.
9774 (*arm_movqi_insn): Likewise.
9776 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9779 * config/alpha/alpha.c: Include tree-pass.h, context.h
9781 (pass_data_handle_trap_shadows): New pass.
9782 (pass_handle_trap_shadows::gate): New pass gate function.
9783 (make_pass_handle_trap_shadows): New function.
9784 (rest_of_handle_trap_shadows): Ditto.
9786 (alpha_align_insns_1): Rename from alpha_align_insns.
9787 (pass_data_align_insns): New pass.
9788 (pass_align_insns::gate): New pass gate function.
9789 (make_pass_aling_insns): New function.
9790 (rest_of_align_insns): Ditto.
9791 (alpha_align_insns): Ditto.
9793 (alpha_option_override): Declare handle_trap_shadows info
9794 and align_insns_info. Register handle_trap_shadows and align_insns
9796 (alpha_reorg): Do not call alpha_trap_shadows and
9797 alpha_align_insn from here.
9799 (alpha_pad_function_end): Do not skip BARRIERs.
9801 2014-07-10 Rong Xu <xur@google.com>
9803 Add gcov-tool: an offline gcda profile processing tool support.
9804 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9805 (gcov_is_error): Ditto.
9806 (gcov_read_string): Ditto.
9807 (gcov_read_sync): Ditto.
9808 * gcov-io.h: Move counter defines to gcov-counter.def.
9809 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9810 * coverage.c: Ditto.
9811 * gcov-tool.c: Offline gcda profile processing tool.
9812 (unlink_gcda_file): Remove one gcda file.
9813 (unlink_profile_dir): Remove gcda files from the profile path.
9814 (gcov_output_files): Output gcda files to an output dir.
9815 (profile_merge): Merge two profiles in directory.
9816 (print_merge_usage_message): Print merge usage.
9817 (merge_usage): Print merge usage and exit.
9818 (do_merge): Driver for profile merge sub-command.
9819 (profile_rewrite): Rewrite profile.
9820 (print_rewrite_usage_message): Print rewrite usage.
9821 (rewrite_usage): Print rewrite usage and exit.
9822 (do_rewrite): Driver for profile rewrite sub-command.
9823 (print_usage): Print gcov-info usage and exit.
9824 (print_version): Print gcov-info version.
9825 (process_args): Process arguments.
9826 (main): Main routine for gcov-tool.
9827 * Makefile.in: Build and install gcov-tool.
9828 * gcov-counter.def: New file split from gcov-io.h.
9829 * doc/gcc.texi: Include gcov-tool.texi.
9830 * doc/gcov-tool.texi: Document for gcov-tool.
9832 2014-07-10 Richard Biener <rguenther@suse.de>
9834 PR tree-optimization/61757
9835 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9836 (propagate_rhs_into_lhs): Revert part of last change.
9838 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9840 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9843 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9846 * function.c (allocate_struct_function): Revert r188667 change.
9848 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9850 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9852 * doc/install.texi: Remove links to defunct package providers for
9855 2014-07-09 Tom de Vries <tom@codesourcery.com>
9857 * final.c (get_call_fndecl): Declare.
9858 (self_recursive_call_p): New function.
9859 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9861 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9863 * ipa-devirt.c (record_node): Walk through aliases.
9865 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9867 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9869 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9872 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9874 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9876 * ipa-visibility.c (function_and_variable_visibility): Remove
9877 temporary hack disabling local aliases on AIX.
9879 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9881 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9882 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9884 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9886 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9887 * rs6000/rs6000.c: Inline output of .set instruction.
9888 (declare_alias_data): New struct.
9889 (rs6000_declare_alias): New function.
9890 (rs6000_xcoff_declare_function_name): Use it.
9891 (rs6000_xcoff_declare_object_name): New function.
9892 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9893 (ASM_OUTPUT_DEF): Turn to empty definition.
9895 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9898 * hash-table.h: use hash_table::value_type instead of
9899 Descriptor::value_type in the return types of several methods.
9901 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9903 * tree-pass.h (pass_data): Remove has_execute member.
9904 * passes.c (execute_one_pass): Don't check pass->has_execute.
9905 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9906 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9907 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9908 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9909 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9910 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9911 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9912 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9913 gimple-low.c, gimple-ssa-isolate-paths.c,
9914 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9915 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9916 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9917 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9918 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9919 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9920 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9921 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9922 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9923 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9924 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9925 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9926 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9927 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9928 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9929 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9930 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9931 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9932 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9933 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9934 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9935 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9936 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9937 web.c: Remove initializer for pass_data::has_execute.
9939 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9941 * graphite-htab.h: Use hash_map instead of hash_table.
9942 * graphite-clast-to-gimple.c: Adjust.
9943 * passes.c: Use hash_map instead of hash_table.
9945 * sese.h: Remove now unused code.
9947 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9950 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9953 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9955 PR rtl-optimization/61673
9956 * combine.c (simplify_comparison): Test just mode's sign bit
9957 in tmode rather than the sign bit and any bits above it.
9959 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9961 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9962 Add __isl_give to the declaration.
9963 (generate_isl_schedule): Likewise.
9964 (scop_to_isl_ast): Likewise.
9966 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9968 * config/arm/arm.c (cortexa5_extra_costs): New table.
9969 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9971 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9973 PR tree-optimization/61725
9974 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9975 range, use range_includes_zerop_p instead of integer_zerop on
9976 vr0->min, only use log2 of max if min is not negative.
9978 2014-07-08 Richard Biener <rguenther@suse.de>
9980 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9981 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9982 restriction on loop depth difference.
9983 (record_equality): Likewise.
9984 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9985 (loop_depth_of_name): Remove.
9986 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9987 restriction on loop depth difference.
9988 (init_copy_prop): Likewise.
9990 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9992 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9994 (walk_aliased_vdefs): Likewise.
9995 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9996 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9997 (detect_type_change_from_memory_writes): Check if entry was reached.
9999 2014-07-08 Richard Biener <rguenther@suse.de>
10001 PR tree-optimization/61681
10002 * tree-ssa-structalias.c (find_what_var_points_to): Expand
10003 NONLOCAL inside ESCAPED.
10005 2014-07-08 Richard Biener <rguenther@suse.de>
10007 PR tree-optimization/61680
10008 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10009 Handle properly all read-write dependences with group accesses.
10011 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10013 PR tree-optimization/61576
10014 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
10015 block containing reduction statement is predecessor of phi basi block.
10017 2014-07-08 Marek Polacek <polacek@redhat.com>
10020 * fold-const.c (round_up_loc): Change the parameter type.
10022 * fold-const.h (round_up_loc): Adjust declaration.
10023 * stor-layout.c (finalize_record_size): Check for too large types.
10025 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
10027 * symtab.c: Include calls.h.
10028 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
10030 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
10032 * config/rs6000/rs6000.c (output_vec_const_move): Handle
10033 little-endian code generation.
10034 * config/rs6000/spe.md (spe_evmergehi): Rename to...
10035 (vec_perm00_v2si): ... this. Handle little-endian code generation.
10036 (spe_evmergehilo): Rename to...
10037 (vec_perm01_v2si): ... this. Handle little-endian code generation.
10038 (spe_evmergelo): Rename to...
10039 (vec_perm11_v2si): ... this. Handle little-endian code generation.
10040 (spe_evmergelohi): Rename to...
10041 (vec_perm10_v2si): ... this. Handle little-endian code generation.
10042 (spe_evmergehi, spe_evmergehilo): New expanders.
10043 (spe_evmergelo, spe_evmergelohi): Likewise.
10044 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
10045 (*frob_tf_ti): Likewise.
10046 (*frob_<mode>_di_2): Likewise.
10047 (*frob_tf_di_8_2): Likewise.
10048 (*frob_di_<mode>): Likewise.
10049 (*frob_ti_tf): Likewise.
10050 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
10051 (*frob_ti_<mode>_8_2): Likewise.
10052 (*frob_ti_tf_2): Likewise.
10053 (mov_si<mode>_e500_subreg0): Rename to...
10054 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
10056 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
10057 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
10058 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
10059 the big endianness only.
10060 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
10061 (*mov_si<mode>_e500_subreg0_2): Rename to...
10062 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
10063 big big endianness only.
10064 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
10065 (*mov_si<mode>_e500_subreg4): Rename to...
10066 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
10068 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
10069 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
10070 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
10071 the big endianness only.
10072 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
10074 (*mov_si<mode>_e500_subreg4_2): Rename to...
10075 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
10077 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
10078 (*mov_sitf_e500_subreg8): Rename to...
10079 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
10081 (*mov_sitf_e500_subreg8_le): New instruction pattern.
10082 (*mov_sitf_e500_subreg8_2): Rename to...
10083 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
10085 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
10086 (*mov_sitf_e500_subreg12): Rename to...
10087 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
10089 (*mov_sitf_e500_subreg12_le): New instruction pattern.
10090 (*mov_sitf_e500_subreg12_2): Rename to...
10091 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
10093 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
10095 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
10097 * asan.c (instrument_strlen_call): Do not instrument first byte
10098 in strlen if already instrumented.
10100 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10102 * config/arm/arm.opt (mwords-little-endian): Delete.
10103 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
10104 of TARGET_LITTLE_WORDS.
10105 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
10106 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
10108 * doc/invoke.texi: Remove references to -mwords-little-endian.
10110 2014-07-07 Jakub Jelinek <jakub@redhat.com>
10112 * expmed.c (struct init_expmed_rtl): Change all fields but
10113 pow2 and cint from struct rtx_def to rtx.
10114 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
10115 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
10118 2014-07-06 Marek Polacek <polacek@redhat.com>
10121 * doc/invoke.texi: Document -Wsizeof-array-argument.
10123 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10125 * wide-int.h (wide_int_storage): Change declaration from struct
10128 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
10130 * cgraph.c (cgraph_create_indirect_edge): Update call of
10131 get_polymorphic_call_info.
10132 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
10133 (possible_polymorphic_call_targets): Add parameter call.
10134 (decl_maybe_in_construction_p): New predicate.
10135 (get_polymorphic_call_info): Add parameter call;
10136 use decl_maybe_in_construction_p.
10137 * gimple-fold.c (fold_gimple_assign): Update use of
10138 possible_polymorphic_call_targets.
10139 (gimple_fold_call): Likewise.
10140 * ipa-prop.c: Inlcude calls.h
10141 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
10142 (param_type_may_change_p): New predicate.
10143 (detect_type_change_from_memory_writes): Break out from ...
10144 (detect_type_change): ... this one; use param_type_may_change_p.
10145 (detect_type_change_ssa): Use param_type_may_change_p.
10146 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
10148 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
10151 * config/arm/arm-protos.h (arm_legitimate_address_p,
10152 arm_is_constant_pool_ref): Add prototypes.
10153 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
10154 (arm_is_constant_pool_ref) New function.
10155 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
10156 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10157 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10158 operand. Remove pool_range and neg_pool_range attributes.
10159 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10160 pool_range and neg_pool_range attributes.
10161 * config/arm/constraints.md (Uh): New constraint.
10162 (Uq): Don't allow constant pool references.
10164 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10166 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10167 (move_lo_quad_internal_be_<mode>): Likewise.
10168 (move_lo_quad_<mode>): Convert to define_expand.
10169 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10170 (aarch64_simd_move_hi_quad_be_<mode>): New.
10171 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10172 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10173 (aarch64_combinez_be<mode>): New.
10174 (aarch64_combine<mode>): Convert to define_expand.
10175 (aarch64_combine_internal<mode>): New.
10176 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10178 2014-07-04 Tom de Vries <tom@codesourcery.com>
10180 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10181 combination of earlyclobber and read/write modifiers.
10183 2014-07-04 Tom de Vries <tom@codesourcery.com>
10185 * config/aarch64/aarch64-simd.md
10186 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10188 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10191 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10193 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10195 PR middle-end/61654
10196 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10198 PR tree-optimization/61684
10199 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10200 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10202 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10203 Kito Cheng <kito@0xlab.org>
10204 Monk Chiang <sh.chiang04@gmail.com>
10206 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10207 (nds32_symbol_load_store_p): Move to ...
10208 (nds32_fp_as_gp_check_available): Move to ...
10209 * config/nds32/nds32-fp-as-gp.c: ... here.
10210 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10211 extern declaration.
10213 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10214 Kito Cheng <kito@0xlab.org>
10215 Monk Chiang <sh.chiang04@gmail.com>
10217 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10218 (nds32_expand_store_multiple): Move to ...
10219 (nds32_expand_movmemqi): Move to ...
10220 * config/nds32/nds32-memory-manipulation.c: ... here.
10222 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10223 Kito Cheng <kito@0xlab.org>
10224 Monk Chiang <sh.chiang04@gmail.com>
10226 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10227 (nds32_output_casesi_pc_relative): Move to ...
10228 (nds32_output_casesi): Move to ...
10229 (nds32_mem_format): Move to ...
10230 (nds32_output_16bit_store): Move to ...
10231 (nds32_output_16bit_load): Move to ...
10232 (nds32_output_32bit_store): Move to ...
10233 (nds32_output_32bit_load): Move to ...
10234 (nds32_output_32bit_load_s): Move to ...
10235 (nds32_output_stack_push): Move to ...
10236 (nds32_output_stack_pop): Move to ...
10237 * config/nds32/nds32-md-auxiliary.c: ... here.
10239 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10240 Ling-Hua Tseng <uranus@tinlans.org>
10242 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10243 the purpose of this file.
10245 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10246 Kito Cheng <kito@0xlab.org>
10247 Monk Chiang <sh.chiang04@gmail.com>
10249 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10250 (nds32_address_cost): Move implementation to ...
10251 * config/nds32/nds32-cost.c: ... here.
10252 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10253 (nds32_address_cost_impl): Declare.
10255 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10256 Kito Cheng <kito@0xlab.org>
10257 Monk Chiang <sh.chiang04@gmail.com>
10259 * config/nds32/nds32.c
10260 (nds32_consecutive_registers_load_store_p): Move to ...
10261 (nds32_valid_multiple_load_store): Move to ...
10262 (nds32_valid_stack_push_pop): Move to ...
10263 (nds32_can_use_bclr_p): Move to ...
10264 (nds32_can_use_bset_p): Move to ...
10265 (nds32_can_use_btgl_p): Move to ...
10266 (nds32_can_use_bitci_p): Move to ...
10267 * config/nds32/nds32-predicates.c: ... here.
10269 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10270 Kito Cheng <kito@0xlab.org>
10271 Monk Chiang <sh.chiang04@gmail.com>
10273 * config/nds32/nds32.c
10274 (nds32_expand_builtin_null_ftype_reg): Move to ...
10275 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10276 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10277 (nds32_init_builtins): Move implementation to ...
10278 (nds32_expand_builtin): Move implementation to ...
10279 * config/nds32/nds32-intrinsic.c: ... here.
10280 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10281 (nds32_expand_builtin_impl): Declare.
10283 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10284 Kito Cheng <kito@0xlab.org>
10285 Monk Chiang <sh.chiang04@gmail.com>
10287 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10288 (nds32_emit_section_tail_template): Move to ...
10289 (nds32_emit_isr_jmptbl_section): Move to ...
10290 (nds32_emit_isr_vector_section): Move to ...
10291 (nds32_emit_isr_reset_conten): Move to ...
10292 (nds32_check_isr_attrs_conflict): Move to ...
10293 (nds32_construct_isr_vectors_information): Move to ...
10294 (nds32_asm_file_start): Move implementation to ...
10295 (nds32_asm_file_end): Move implementation to ...
10296 * config/nds32/nds32-isr.c: ... here.
10297 * config/nds32/nds32-protos.h
10298 (nds32_check_isr_attrs_conflict): Declare.
10299 (nds32_construct_isr_vectors_information): Declare.
10300 (nds32_asm_file_start_for_isr): Declare.
10301 (nds32_asm_file_end_for_isr): Declare.
10303 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10304 Kito Cheng <kito@0xlab.org>
10305 Monk Chiang <sh.chiang04@gmail.com>
10307 * config.gcc (nds32*): Add new modules to extra_objs.
10308 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10309 (nds32be-*-*): Likewise.
10310 * config/nds32/nds32-cost.c: New file.
10311 * config/nds32/nds32-fp-as-gp.c: New file.
10312 * config/nds32/nds32-intrinsic.c: New file.
10313 * config/nds32/nds32-isr.c: New file.
10314 * config/nds32/nds32-md-auxiliary.c: New file.
10315 * config/nds32/nds32-memory-manipulation.c: New file.
10316 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10317 * config/nds32/nds32-predicates.c: New file.
10318 * config/nds32/t-nds32: New file.
10320 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10322 PR tree-optimization/61682
10323 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10324 using cases and when one of the operands is equal to 1.
10326 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10328 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10329 ashr<mode>3): Correct mode of operands[2].
10330 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10331 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10332 Correct mode of operands[2]. Fix split condition.
10334 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10336 * arm.md (arch): Add armv6_or_vfpv3.
10337 (arch_enabled): Add test for the above.
10338 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10340 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10342 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10344 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10345 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10346 HWI 1 and negate the unsigned value.
10347 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10348 use AND instead of shift.
10349 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10351 2014-07-03 Marek Polacek <polacek@redhat.com>
10353 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10354 (-fsanitize=float-divide-by-zero): Move to the table with
10355 -fsanitize=undefined suboptions.
10356 (-fsanitize=float-cast-overflow): Likewise.
10358 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10360 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10361 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10364 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10366 * loop-invariant.c (struct invariant): Add a new member: eqno;
10367 (find_identical_invariants): Update eqno;
10368 (create_new_invariant): Init eqno;
10369 (get_inv_cost): Compute comp_cost with eqno;
10371 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10373 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10374 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10375 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10376 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10377 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10379 2014-07-02 Christian Bruel <christian.bruel@st.com>
10383 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10384 (make_preds_opaque): Delete.
10385 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10386 (commit_mode_sets): New function.
10387 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10388 Process all modes at once.
10389 * basic-block.h (pre_edge_lcm_avs): Declare.
10390 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10391 Call clear_aux_for_edges. Fix comments.
10392 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10393 (pre_edge_rev_lcm): Idem.
10394 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10396 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10397 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10399 * config/i386/i386.c (x96_emit_mode_set): Idem.
10400 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10401 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10402 (fpscr_toggle) Disallow from delay slot.
10403 * target.def (emit_mode_set): Add prev_mode parameter.
10404 * doc/tm.texi: Regenerate.
10406 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10408 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10411 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10413 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10414 vtable_pointer_value_to_vtable): Constify.
10415 (contains_polymorphic_type_p): Declare.
10416 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10417 vtable_pointer_value_to_vtable): Constify.
10418 (contains_polymorphic_type_p): New predicate.
10419 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10421 (ipa_set_ancestor_jf): Likewise.
10422 (detect_type_change): Return false in easy cases.
10423 (compute_complex_assign_jump_func): Require type to contain
10425 (compute_known_type_jump_func): Likewise.
10427 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10429 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10431 (type_in_anonymous_namespace_p): Constify argument.
10432 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10433 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10434 (main_odr_variant): New function.
10435 (hash_type_name): Make static; update assert; do not ICE on
10437 (types_same_for_odr): Bring here from tree.c; simplify and remove
10438 old structural comparing code that doesn't work for templates.
10439 (odr_hasher::equal): Update assert.
10440 (add_type_duplicate): Return true when bases should be computed;
10441 replace incomplete loader by complete; do not output duplicated
10442 warnings; do not ICE on non-records; set odr_violated flag.
10443 (get_odr_type): Be ready to replace incomplete type by complete
10444 one; work on ODR variants instead of main variants; reorder item
10445 in array so bases have still smaller indexes.
10446 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10447 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10449 2014-07-01 Cary Coutant <ccoutant@google.com>
10451 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10453 (resolve_addr_in_expr): When replacing the rtx in a location list
10454 entry, get a new address table entry.
10455 (dwarf2out_finish): Call index_location_lists even if there are no
10456 addr_index_table entries yet.
10458 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10460 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10461 change for not being obvious.
10463 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10465 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10468 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10470 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10471 (vcagt_f64): Likewise.
10472 (vcale_f64): Likewise.
10473 (vcaled_f64): Likewise.
10474 (vcales_f32): Likewise.
10475 (vcalt_f64): Likewise.
10476 (vcaltd_f64): Likewise.
10477 (vcalts_f32): Likewise.
10479 2014-07-01 Marek Polacek <polacek@redhat.com>
10481 * doc/invoke.texi: Document -Wint-conversion.
10483 2014-07-01 Marek Polacek <polacek@redhat.com>
10486 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10488 2014-07-01 Martin Liska <mliska@suse.cz>
10490 IPA REF alias refactoring
10491 * cgraph.h (iterate_direct_aliases): New function.
10492 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10493 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10494 FOR_EACH_ALIAS added.
10495 (cgraph_for_node_and_aliases): Likewise.
10496 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10497 * ipa-inline.c (reset_edge_caches): Likewise.
10498 (update_caller_keys): Likewise.
10499 * trans-mem.c (ipa_tm_execute): Likewise.
10500 *varpool.c (varpool_analyze_node): Likewise.
10501 (varpool_for_node_and_aliases): Likewise.
10502 * ipa-ref.h (first_alias): New function.
10503 (last_alias): Likewise.
10504 (has_aliases_p): Likewise.
10505 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10506 is sensitive to IPA_REF_ALIASes.
10507 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10508 are put at the beginning of the list.
10509 (symtab_node::iterate_direct_aliases): New function.
10511 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10514 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10516 (write_ts_type_common_tree_pointers): Do not stream fields not set
10517 for incomplete types; do not stream duplicated fields for variants;
10518 sanity check that variant and type match.
10519 (write_ts_type_non_common_tree_pointers): Likewise.
10520 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10521 TYPE_SIZE whether type is complete.
10522 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10523 write_ts_type_common_tree_pointers
10524 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10526 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10528 * var-tracking.c (add_stores): Return instead of asserting if old
10529 and new values for conditional store are the same.
10531 2014-06-30 Richard Henderson <rth@redhat.com>
10535 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10536 the cfg if there were any changes.
10537 * passes.def: Revert move of peephole2 after reorder_blocks;
10538 move duplicate_computed_gotos before peephole2.
10540 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10542 * except.c (emit_note_eh_region_end): New helper function.
10543 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10544 emit EH_REGION_END note.
10545 * jump.c (cleanup_barriers): Do not split a call and its
10546 corresponding CALL_ARG_LOCATION note.
10548 2014-06-30 Jeff Law <law@redhat.com>
10550 PR tree-optimization/61607
10551 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10552 deeper into the SSA_NAME_VALUE chain.
10554 2014-06-30 Marek Polacek <polacek@redhat.com>
10556 * convert.c (convert_to_integer): Don't instrument conversions if the
10557 function has no_sanitize_undefined attribute.
10558 * ubsan.c: Don't run the ubsan pass if the function has
10559 no_sanitize_undefined attribute.
10561 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10563 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10564 -fsanitize=undefined suboptions.
10566 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10568 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10569 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10570 against bigendian and adjust indices.
10572 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10574 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10576 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10579 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10580 Add alternative; make early clobber. Adjust both split patterns
10581 to use operand 0 as the working register.
10583 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10585 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10586 as ira_object_id_map might be NULL, or 1.
10588 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10590 * loop-invariant.c (get_inv_cost): Handle register class.
10591 (gain_for_invariant): Check the register pressure of the inv
10592 and its overlapped register class, other than all.
10594 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10596 * doc/invoke.texi (Optimize Options): Fix descriptions of
10597 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10599 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10601 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10604 2014-06-29 Tobias Grosser <tobias@grosser.es>
10607 * graphite-isl-ast-to-gimple.c: Add missing guards.
10609 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10611 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10612 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10613 * flag-types.h: Add new enum fgraphite_generator.
10614 * graphite-isl-ast-to-gimple.c: New.
10615 * graphite-isl-ast-to-gimple.h: New.
10616 * graphite.c (graphite_transform_loops): Add choice of Graphite
10617 code generator, which depends on flag_graphite_code_gen.
10619 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10621 * graphite-dependences.c (subtract_commutative_associative_deps):
10622 Add NULL checking of the following variables: must_raw_no_source,
10623 may_raw_no_source, must_war_no_source, may_war_no_source,
10624 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10625 must_war, may_war, must_waw, may_waw.
10627 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10629 * graphite-clast-to-gimple.c: gloog is renamed to
10630 graphite_regenerate_ast_cloog. gloog_error is renamed to
10631 graphite_regenerate_error.
10632 * graphite-clast-to-gimple.h: The definition of the struct
10633 bb_pbb_def is moved to graphite-htab.h.
10634 Add inclusion of the hash-table.h.
10635 * graphite-htab.h: The declaration of the function gloog is moved
10636 to graphite-clast-to-gimple.h and renamed to
10637 graphite_regenerate_ast_cloog.
10638 * graphite.c (graphite_transform_loops): gloog is renamed
10639 to graphite_regenerate_ast_cloog.
10641 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10643 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10645 (write_ts_type_common_tree_pointers): Do not stream fields not set
10646 for incomplete types; do not stream duplicated fields for variants;
10647 sanity check that variant and type match.
10648 (write_ts_type_non_common_tree_pointers): Likewise.
10649 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10650 TYPE_SIZE whether type is complete.
10651 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10652 write_ts_type_common_tree_pointers
10653 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10655 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10657 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10659 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10661 * tree-inline.c (remap_type_1): Do not duplicate fields
10662 that are shared in between type and its main variant.
10664 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10666 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10668 (ipa_set_ancestor_jf) Likewise.
10669 (check_stmt_for_type_change): Check that we work on main variant.
10670 (detect_type_change): Look into main variant.
10671 (compute_known_type_jump_func): Check that main variant has BINFO.
10673 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10675 * ipa-devirt.c (set_type_binfo): New function.
10676 (add_type_duplicate): Use it.
10677 (get_odr_type): Sanity check that binfos points to main variants.
10678 (get_class_context): Be sure the context's outer_type is main variant.
10679 (contains_type_p): Walk main variant.
10680 (get_polymorphic_call_info_for_decl): Set outer_type to be
10682 (get_polymorphic_call_info): Likewise.
10683 (possible_polymorphic_call_targets): Sanity check that we operate
10686 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10688 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10690 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10692 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10693 accidental change due to wide-int branch merge.
10695 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10697 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10698 compressed debug support.
10699 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10700 * configure: Regenerate.
10701 * config.in: Regenerate.
10702 * common.opt (compressed_debug_sections): New enum.
10703 (gz, gz=): New options.
10704 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10705 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10706 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10707 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10708 LINK_COMPRESS_DEBUG_SPEC.
10709 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10710 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10711 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10712 (Debugging Options): Document -gz[=type].
10714 2014-06-27 Martin Jambor <mjambor@suse.cz>
10717 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10718 args_to_skip, use those from node instead. Copy args_to_skip and
10719 combined_args_to_skip from node to the new thunk.
10720 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10721 (cgraph_create_virtual_clone): Moved computation of
10722 combined_args_to_skip...
10723 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10725 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10727 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10728 redundant diagnostic machinary.
10730 2014-06-27 Richard Biener <rguenther@suse.de>
10732 * tree-ssa-math-opts.c (bswap_replace): Fix
10733 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10735 2014-06-27 Martin Liska <mliska@suse.cz>
10737 * gimple.h (gimple_location_safe): New function introduced.
10738 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10739 of gimple_location_safe replaces gimple_location.
10740 (gimple_fold_call): Likewise.
10741 * ipa-devirt.c (ipa_devirt): Likewise.
10742 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10743 * ipa.c (walk_polymorphic_call_targets): Likewise.
10744 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10746 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10748 PR tree-optimization/57233
10749 PR tree-optimization/61299
10750 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10752 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10753 would be lowered to scalar shifts, check if corresponding
10754 shifts and vector BIT_IOR_EXPR are supported and don't lower
10755 or lower just to narrower vector type in that case.
10756 * expmed.c (expand_shift_1): Fix up handling of vector
10757 shifts and rotates.
10759 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10762 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10764 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10766 * doc/invoke.texi (-fsemantic-interposition): Document.
10767 * common.opt (fsemantic-interposition): New flag.
10768 * varasm.c (decl_replaceable_p): Use it.
10770 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10773 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10774 extraction other than index 3.
10776 2014-06-26 Teresa Johnson <tejohnson@google.com>
10778 * doc/invoke.texi: Fix typo.
10779 * dumpfile.c: Add support for documented -fdump-* options
10780 optimized/missed/note/optall.
10782 2014-06-26 Martin Jambor <mjambor@suse.cz>
10784 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10785 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10786 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10787 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10788 * opts.c (default_options_optimization): Set
10789 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10790 * doc/invoke.texi (allow-load-data-races)
10791 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10792 (allow-store-data-races): Document the new default.
10794 2014-06-26 Martin Jambor <mjambor@suse.cz>
10796 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10797 renamed to ipa_impossible_devirt_target. Fix typo.
10798 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10799 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10800 ipa_impossible_devirt_target.
10802 2014-06-26 Richard Biener <rguenther@suse.de>
10804 PR tree-optimization/61607
10805 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10806 explaining why we restrict copies on loop depth.
10807 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10809 (record_equivalences_from_phis): Instead add it here.
10811 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10813 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10814 (LTO_WRAPPER_OBJS): New variable.
10815 (lto-wrapper$(exeext)): Use it.
10816 * collect2.c: Include "collect-utils.h".
10817 (verbose, debug): Remove variables.
10818 (at_file_supplied): No longer static.
10819 (tool_name): New variable.
10820 (do_wait, fork_execute, maybe_unlink): Don't declare.
10821 (tool_cleanup): No longer static.
10822 (notice): Remove function.
10823 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10824 fork_execute calls.
10825 (collect_wait, do_wait, collect_execute): Remove functions.
10826 (maybe_unlink): No longer static.
10827 * collect2.h (verbose, debug): Don't declare.
10828 (at_file_supplied): Declare.
10829 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10831 (collect_execute): Replace with implementation from collect2, plus a
10832 new arg use_atfile. All callers changed.
10833 (collect_wait): Replace with implementation from collect2.
10834 (maybe_unlink_file): Remove function.
10835 (fork_execute): Replace with implementation from collect2, plus a
10836 new arg use_atfile. All callers changed.
10837 (do_wait): Add call to utils_cleanup to the error path.
10838 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10839 (tool_cleanup): Adjust declarations.
10840 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10841 * tlink.c: Include "collect-utils.h".
10842 (tlink_execute): New arg use_atfile. All callers changed.
10843 (tlink_init, tlink_execute): Remove declarations.
10845 * collect-utils.c (save_temps): New variable.
10846 (do_wait): Use it instead of debug. Use fatal_error.
10847 * collect-utils.h (save_temps): Declare.
10848 * collect2.c (verbose): Rename from vflag. All uses changed.
10849 (tool_cleanup): New function, copied from collect_atexit.
10850 (collect_atexit, handler): Just call it.
10851 * collect2.h (verbose): Declaration renamed from vflag.
10852 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10855 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10856 (lto-wrapper$(exeext)): Link with collect-utils.o.
10857 * collect-utils.c: New file.
10858 * collect-utils.h: New file.
10859 * lto-wrapper.c: Include "collect-utils.h".
10860 (args_name): Delete variable.
10861 (tool_name): New variable.
10862 (tool_cleanup): New function.
10863 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10864 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10865 (fork_execute): Remove functions.
10867 2014-06-26 Nick Clifton <nickc@redhat.com>
10869 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10871 * doc/extend.texi (Function Attributes): Fix typo in description
10872 of RX vector attribute.
10874 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10876 * config.gcc (supported_defaults): Error when passing either
10877 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10879 2014-06-26 Richard Biener <rguenther@suse.de>
10881 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10882 propagating volatile pointers.
10884 2014-06-26 Richard Biener <rguenther@suse.de>
10886 PR tree-optimization/61607
10887 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10888 loop if we redirected its latch edge.
10889 (thread_block_1): Do not cancel loops prematurely.
10891 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10893 * toplev.c (backend_init_target): Move init_emit_regs and
10895 (backend_init) ... here; skip ira_init_once and backend_init_target.
10896 (target_reinit) ... and here; clear
10897 this_target_rtl->lang_dependent_initialized.
10898 (lang_dependent_init_target): Clear
10899 this_target_rtl->lang_dependent_initialized;
10900 break out rtl initialization to ...
10901 (initialize_rtl): ... here; call also backend_init_target
10903 * toplev.h (initialize_rtl): New function.
10904 * function.c: Include toplev.h
10905 (init_function_start): Call initialize_rtl.
10906 * rtl.h (target_rtl): Add target_specific_initialized,
10907 lang_dependent_initialized.
10909 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10910 Jakub Jelinek <jakub@redhat.com>
10912 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10914 2014-06-25 Tom de Vries <tom@codesourcery.com>
10916 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10918 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10920 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10921 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10922 Issue a strict overflow warning if appropriate.
10924 2014-06-25 Martin Liska <mliska@suse.cz>
10926 IPA REF refactoring
10927 * Makefile.in: Removed header file (ipa-ref-inline.h).
10928 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10930 (cgraph_speculative_call_info): Likewise.
10931 (cgraph_for_node_thunks_and_aliases): Likewise.
10932 (cgraph_for_node_and_aliases): Likewise.
10933 (verify_cgraph_node): Likewise.
10934 * cgraph.h: Batch of IPA REF functions become member functions of
10935 symtab_node: add_reference, maybe_add_reference, clone_references,
10936 clone_referring, clone_reference, find_reference,
10937 remove_stmt_references, remove_all_references,
10938 remove_all_referring, dump_references, dump_referring,
10939 has_alias_p, iterate_reference, iterate_referring.
10940 * cgraphbuild.c (record_reference): New IPA REF function used.
10941 (record_type_list): Likewise.
10942 (record_eh_tables): Likewise.
10943 (mark_address): Likewise.
10944 (mark_load): Likewise.
10945 (mark_store): Likewise.
10946 (pass_build_cgraph_edges): Likewise.
10947 (rebuild_cgraph_edge): Likewise.
10948 (cgraph_rebuild_references): Likewise.
10949 (pass_remove_cgraph_callee_edges): Likewise.
10950 * cgraphclones.c (cgraph_clone_node): Likewise.
10951 (cgraph_create_virtual_clone): Likewise.
10952 (cgraph_materialize_clone): Likewise.
10953 (cgraph_materialize_all_clones): Likewise.
10954 * cgraphunit.c (cgraph_reset_node): Likewise.
10955 (cgraph_reset_node): Likewise.
10956 (analyze_function): Likewise.
10957 (assemble_thunks_and_aliases): Likewise.
10958 (expand_function): Likewise.
10959 * ipa-comdats.c (propagate_comdat_group): Likewise.
10960 (enqueue_references): Likewise.
10961 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10962 (create_specialized_node): Likewise.
10963 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10964 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10965 * ipa-inline.c (reset_edge_caches): Likewise.
10966 (update_caller_keys): Likewise.
10967 (execute): Likewise.
10968 * ipa-prop.c (remove_described_reference): Likewise.
10969 (propagate_controlled_uses): Likewise.
10970 (ipa_edge_duplication_hook): Likewise.
10971 (ipa_modify_call_arguments): Likewise.
10972 * ipa-pure-const.c (propagate_pure_const): Likewise.
10973 * ipa-ref-inline.h: Header file removed, functions moved
10974 to symtab_node class.
10975 * ipa-ref.c (remove_reference): New class member function.
10976 (cannot_lead_to_return): New class member function.
10977 (referring_ref_list): Likewise.
10978 (referred_ref_list): Likewise.
10979 Rest of functions moved to symtab_node class.
10980 * ipa-ref.h: New member functions remove_reference,
10981 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10983 ipa_ref_list class has new member functions: first_reference,
10984 first_referring, clear, nreferences.
10985 * ipa-reference.c (analyze_function): New IPA REF function used.
10986 (write_node_summary_p): Likewise.
10987 (ipa_reference_write_optimization_summary): Likewise.
10988 * ipa-split.c (split_function): Likewise.
10989 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10990 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10991 (function_and_variable_visibility): Likewise.
10992 * ipa.c (has_addr_references_p): Likewise.
10993 (process_references): Argument type changed.
10994 (symtab_remove_unreachable_nodes): New IPA REF function used.
10995 (process_references): Likewise.
10996 (set_writeonly_bit): Likewise.
10997 * lto-cgraph.c: Implementation of new symtab_node member functions
10998 that uses new IPA REF functions.
10999 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
11001 * lto-streamer-out.c (output_symbol_p): Likewise.
11002 * lto-streamer.h (referenced_from_this_partition_p): Argument type
11004 * symtab.c: Implementation of new IPA REF API.
11005 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
11006 (ipa_tm_create_version): Likewise.
11007 (ipa_tm_execute): Likewise.
11008 * tree-emutls.c (gen_emutls_addr): Likewise.
11009 * tree-inline.c (copy_bb): Likewise.
11010 (delete_unreachable_blocks_update_callgraph): Likewise.
11011 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
11012 (varpool_for_node_and_aliases): Likewise.
11014 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
11016 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
11018 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
11021 * fold-const.c (fold_checksum_tree): Use a hash_table of const
11022 tree_node * instead of tree_node *.
11024 (print_fold_checksum): Likewise.
11025 (fold_check_failed): Likewise.
11026 (debug_fold_checksum): Likewise.
11027 (fold_build1_stat_loc): Likewise.
11028 (fold_build2_stat_loc): Likewise.
11029 (fold_build3_stat_loc): Likewise.
11030 (fold_build_call_array_loc): Likewise.
11032 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
11034 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
11035 implementation with call to...
11036 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
11038 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
11041 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
11043 PR tree-optimization/57742
11044 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
11045 after replacing the statement.
11047 2014-06-25 Nick Clifton <nickc@redhat.com>
11049 * config/v850/v850.c (GHS_default_section_names): Change to const
11051 (GHS_current_section_names): Likewise.
11052 (v850_insert_attributes): Do not build strings, just assign the
11053 names directly. Change the type of 'chosen_section' to const
11055 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
11056 directly to the array entry.
11057 * config/v850/v850.h (GHS_default_section_names): Change to const
11059 (GHS_current_section_names): Likewise.
11061 2014-06-25 Jakub Jelinek <jakub@redhat.com>
11063 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
11064 (LANG_HOOKS_DECLS): Add it.
11065 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
11067 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
11068 * langhooks.h (struct lang_hooks_for_decls): Add
11069 omp_clause_linear_ctor hook.
11070 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
11071 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
11072 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
11073 combined simd loop use omp_clause_linear_ctor hook.
11075 2014-06-24 Cong Hou <congh@google.com>
11077 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
11078 pattern recognition.
11079 (type_conversion_p): PROMOTION is true if it's a type promotion
11080 conversion, and false otherwise. Return true if the given expression
11081 is a type conversion one.
11082 * tree-vectorizer.h: Adjust the number of patterns.
11083 * tree.def: Add SAD_EXPR.
11084 * optabs.def: Add sad_optab.
11085 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
11086 * expr.c (expand_expr_real_2): Likewise.
11087 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
11088 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11089 * optabs.c (optab_for_tree_code): Likewise.
11090 * tree-cfg.c (estimate_operator_cost): Likewise.
11091 * tree-ssa-operands.c (get_expr_operands): Likewise.
11092 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
11093 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
11094 * doc/generic.texi: Add document for SAD_EXPR.
11095 * doc/md.texi: Add document for ssad and usad.
11097 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11099 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
11100 qualification in cast.
11102 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
11104 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
11105 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
11106 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
11107 (tree_function_decl): ... here.
11108 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
11109 streaming of vindex to ...
11110 (write_ts_function_decl_tree_pointers): ... here.
11111 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
11112 Do not stream DECL_VINDEX.
11113 (lto_input_ts_function_decl_tree_pointers): Stream it here.
11115 2014-06-24 Catherine Moore <clm@codesourcery.com>
11116 Sandra Loosemore <sandra@codesourcery.com>
11118 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
11119 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
11120 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
11122 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11124 * doc/invoke.texi (Warning Options): Remove duplicated
11125 -Wmaybe-uninitialized.
11127 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11129 PR tree-optimization/57742
11130 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
11131 (handle_builtin_malloc, handle_builtin_memset): New functions.
11132 (strlen_optimize_stmt): Call them.
11133 * passes.def: Move strlen after loop+dom but before vrp.
11135 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11138 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
11139 model family 6 CPU with has_longmode never use a CPU without
11142 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
11145 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
11148 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11150 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
11151 * dominance.c (iterate_fix_dominators): Use hash_map instead of
11153 * hash-map.h: New file.
11154 * ipa-comdats.c: Use hash_map instead of pointer_map.
11156 * lto-section-out.c: Adjust.
11157 * lto-streamer.h: Replace pointer_map with hash_map.
11158 * symtab.c (verify_symtab): Likewise.
11159 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11160 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11161 * tree-streamer.h: Likewise.
11162 * tree-streamer.c: Adjust.
11163 * pointer-set.h: Remove pointer_map.
11165 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11167 * hash-table.h: Add a template arg to choose between storing values
11168 and storing pointers to values, and then provide partial
11169 specializations for both.
11170 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11171 should store, not the type values should point to.
11172 * tree-into-ssa.c (var_info_hasher): Likewise.
11173 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11174 * tree-complex.c: Adjust.
11175 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11176 table instead of int_tree_map *.
11177 * tree-parloops.c: Adjust.
11178 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11179 type is being stored.
11180 * tree-vectorizer.c: Adjust.
11182 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11184 * hash-table.h: Remove a layer of indirection from hash_table so that
11185 it contains the hash table's data instead of a pointer to the data.
11186 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11187 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11188 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11189 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11190 fold-const.c, gcse.c, ggc-common.c,
11191 gimple-ssa-strength-reduction.c, gimplify.c,
11192 graphite-clast-to-gimple.c, graphite-dependences.c,
11193 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11194 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11195 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11196 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11197 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11198 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11199 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11200 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11201 tree-ssa-live.c, tree-ssa-loop-im.c,
11202 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11203 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11204 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11205 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11206 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11207 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11208 vtable-verify.c, vtable-verify.h: Adjust.
11210 2014-06-24 Richard Biener <rguenther@suse.de>
11212 PR tree-optimization/61572
11213 * tree-ssa-sink.c (statement_sink_location): Do not sink
11214 loads from hard registers.
11216 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11218 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11219 not mentioned in clauses use private clause if the iterator is
11220 declared in #pragma omp for simd, and when adding lastprivate
11221 instead, add it to the outer #pragma omp for too. Diagnose
11222 if the variable is private in outer context. For simd collapse > 1
11223 loops, replace all iterators with temporaries.
11224 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11225 same even in collapse > 1 loops.
11227 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11228 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11230 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11231 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11233 (gimplify_adjust_omp_clauses): Likewise.
11234 * omp-low.c (lower_rec_simd_input_clauses,
11235 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11236 safelen the same as safelen(1).
11237 * tree-nested.c (convert_nonlocal_omp_clauses,
11238 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11239 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11240 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11241 Fixup handling of GIMPLE_OMP_TARGET.
11242 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11245 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11247 PR tree-optimization/61554
11248 * tree-ssa-propagate.c: Include "bitmap.h".
11249 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11250 properly update constructor/destructor.
11251 (substitute_and_fold_dom_walker::before_dom_children):
11252 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11253 need_eh_cleaup instead.
11254 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11257 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11259 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11260 * tree-pass.h (make_pass_ipa_single_use): New pass.
11261 * cgraph.h (used_by_single_function): New flag.
11262 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11264 * passes.def (pass_ipa_single_use): Scedule.
11265 * ipa.c (BOTTOM): New macro.
11266 (meet): New function
11267 (propagate_single_user): New function.
11268 (ipa_single_use): New function.
11269 (pass_data_ipa_single_use): New pass.
11270 (pass_ipa_single_use): New pass.
11271 (pass_ipa_single_use::gate): New gate.
11272 (make_pass_ipa_single_use): New function.
11274 2014-06-23 Kai Tietz <ktietz@redhat.com>
11277 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11278 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11280 2014-06-23 Richard Biener <rguenther@suse.de>
11282 * tree-ssa-loop.c (gate_loop): New function.
11283 (pass_tree_loop::gate): Call it.
11284 (pass_data_tree_no_loop, pass_tree_no_loop,
11285 make_pass_tree_no_loop): New.
11286 * tree-vectorizer.c: Include tree-scalar-evolution.c
11287 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11289 (pass_slp_vectorize::clone): New method.
11290 * timevar.def (TV_TREE_NOLOOP): New.
11291 * tree-pass.h (make_pass_tree_no_loop): Declare.
11292 * passes.def (pass_tree_no_loop): New pass group with
11295 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11298 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11299 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11301 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11303 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11304 "yes" where needed.
11306 2014-06-23 Alan Modra <amodra@gmail.com>
11309 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11310 to zero on debug statements.
11312 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11315 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11316 Ignore third operand if present by marking qualifier_internal.
11318 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11320 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11322 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11323 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11324 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11325 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11326 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11327 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11328 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11329 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11330 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11331 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11332 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11333 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11334 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11335 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11336 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11337 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11338 logic in GCC vector extensions
11340 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11341 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11342 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11343 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11344 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11345 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11346 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11347 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11348 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11349 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11351 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11353 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11356 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11357 (vget_low_s64): Use __GET_LOW macro.
11358 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11359 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11360 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11361 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11362 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11364 (vcombine_s64): Use GCC vector extensions; remove cast.
11365 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11366 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11367 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11368 Fix type signature; remove cast.
11370 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11373 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11375 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11377 (BUILTIN_VD1): New.
11378 (BUILTIN_VD_RE): Remove.
11379 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11380 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11381 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11382 variant but not df.
11383 (vreinterpretv1df*, vreinterpret*v1df): New.
11384 (vreinterpretdf*, vreinterpret*df): Remove.
11385 * config/aarch64/aarch64-simd.md (aarch64_create,
11386 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11387 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11389 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11390 (vcreate_f64): Remove cast, use v1df builtin.
11391 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11392 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11393 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11394 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11395 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11396 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11397 add range check using __builtin_aarch64_im_lane_boundsi.
11398 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11399 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11400 type signature, use gcc vector extensions.
11401 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11402 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11403 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11404 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11405 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11406 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11407 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11408 vreinterpret_u64_f64): Use v1df builtin not df.
11410 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11412 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11415 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11417 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11420 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11422 * loop-invariant.c (pre_check_invariant_p): New function.
11423 (find_invariant_insn): Call pre_check_invariant_p.
11425 2014-06-22 Richard Henderson <rth@redhat.com>
11428 * compare-elim.c (struct comparison): Add eh_note.
11429 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11430 a redundant comparison in a different EH region. Purge EH edges if
11433 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11435 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11436 (var_shift): Use it.
11437 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11438 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11439 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11440 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11441 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11442 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11443 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11444 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11445 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11446 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11447 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11448 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11449 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11450 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11451 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11452 *rotldi3_internal15be): Use the new attribute. Merge register and
11453 integer alternatives.
11455 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11457 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11458 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11459 split, *ashrdi3_internal3 and split): Delete, merge into...
11460 (ashr<mode>3): New expander.
11461 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11462 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11464 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11466 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11467 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11468 *rotldi3_internal3 and split): Delete, merge into...
11469 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11470 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11471 Use "rotlw" extended mnemonic.
11473 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11475 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11476 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11477 and split, *ashldi3_internal3 and split): Delete, merge into...
11478 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11479 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11481 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11483 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11484 (lshrsi3, two anonymous define_insns and define_splits,
11485 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11486 *lshrdi3_internal3 and split): Delete, merge into...
11487 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11488 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11490 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11492 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11493 Remove "O" alternative.
11495 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11497 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11498 (mips_move_from_gpr_cost): Likewise.
11499 (mips_register_move_cost): Update accordingly.
11500 (mips_secondary_reload_class): Remove name of in_p.
11502 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11505 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11506 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11508 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11510 * config/nios2/nios2.c: Include "builtins.h".
11512 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11514 * cgraph.h (tls_model_names): New variable.
11515 * print-tree.c (print_node): Simplify.
11516 * varpool.c (tls_model_names): New variable.
11517 (dump_varpool_node): Output tls model.
11519 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11521 * ipa-visibility.c (function_and_variable_visibility): Disable
11522 temporarily local aliases for some targets.
11524 2014-06-20 Marek Polacek <polacek@redhat.com>
11526 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11527 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11528 into SANITIZE_UNDEFINED.
11529 * doc/invoke.texi: Describe -fsanitize=bounds.
11530 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11531 functions created in the FEs.
11532 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11533 (expand_UBSAN_BOUNDS): New function.
11534 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11535 * internal-fn.h: Don't define internal functions here.
11536 * opts.c (common_handle_option): Add -fsanitize=bounds.
11537 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11538 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11539 * tree-core.h: Define internal functions here.
11540 (struct tree_base): Add ifn field.
11541 * tree-pretty-print.c: Include "internal-fn.h".
11542 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11543 * tree.c (get_callee_fndecl): Likewise.
11544 (build_call_expr_internal_loc): New function.
11545 * tree.def (CALL_EXPR): Update description.
11546 * tree.h (CALL_EXPR_IFN): Define.
11547 (build_call_expr_internal_loc): Declare.
11548 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11550 (ubsan_type_descriptor): Change bool parameter to enum
11551 ubsan_print_style. Adjust the code. Add handling of
11553 (ubsan_expand_bounds_ifn): New function.
11554 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11555 (ubsan_build_overflow_builtin): Likewise.
11556 (instrument_bool_enum_load): Likewise.
11557 (ubsan_instrument_float_cast): Likewise.
11558 * ubsan.h (enum ubsan_print_style): New enum.
11559 (ubsan_expand_bounds_ifn): Declare.
11560 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11562 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11564 * config/rs6000/rs6000.md: Append `DONE' to preparation
11565 statements of `bswap' pattern splitters.
11567 2014-06-20 Tom de Vries <tom@codesourcery.com>
11569 * target.def (call_fusage_contains_non_callee_clobbers): Update
11571 * doc/tm.texi: Regenerate.
11573 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11574 Max Ostapenko <m.ostapenko@partner.samsung.com>
11577 * asan.c (instrument_strlen_call): Fixed instrumentation of
11580 2014-06-20 Martin Jambor <mjambor@suse.cz>
11583 * ipa-prop.c (impossible_devirt_target): New function.
11584 (try_make_edge_direct_virtual_call): Use it, also instead of
11587 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11588 Max Ostapenko <m.ostapenko@partner.samsung.com>
11591 * asan.c (build_check_stmt): Add condition.
11593 2014-06-20 Martin Jambor <mjambor@suse.cz>
11596 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11599 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11601 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11603 (VCONQ): Make comment more helpful.
11605 * config/aarch64/aarch64-simd.md
11606 (aarch64_sqdmulh_lane<mode>):
11607 Use VCOND for operands 2. Update lane checking and flipping logic.
11608 (aarch64_sqrdmulh_lane<mode>): Likewise.
11609 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11610 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11611 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11612 attribute of operand 3 to VCOND.
11613 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11614 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11615 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11616 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11617 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11618 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11620 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11621 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11622 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11623 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11624 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11625 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11626 operand to VCOND. Update lane flipping and bounds checking logic.
11627 (aarch64_sqdmlal2_lane<mode>): Likewise.
11628 (aarch64_sqdmlsl_lane<mode>): Likewise.
11629 (aarch64_sqdmull_lane<mode>): Likewise.
11630 (aarch64_sqdmull2_lane<mode>): Likewise.
11631 (aarch64_sqdmlal_laneq<mode>):
11632 Replace VCON usage with VCONQ.
11633 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11634 (aarch64_sqdmlal2_laneq<mode>): Emit
11635 aarch64_sqdmlal2_laneq<mode>_internal insn.
11636 Replace VCON with VCONQ.
11637 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11638 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11639 (aarch64_sqdmull_laneq<mode>): Emit
11640 aarch64_sqdmull_laneq<mode>_internal insn.
11641 Replace VCON with VCONQ.
11642 (aarch64_sqdmull2_laneq<mode>): Emit
11643 aarch64_sqdmull2_laneq<mode>_internal insn.
11644 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11645 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11646 of 3rd argument to int16x4_t.
11647 (vqdmlalh_lane_s16): Likewise.
11648 (vqdmlslh_lane_s16): Likewise.
11649 (vqdmull_high_lane_s16): Likewise.
11650 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11651 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11652 (vqdmlsl_lane_s16): Likewise.
11653 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11654 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11655 (vqdmlals_lane_s32): Likewise.
11656 (vqdmlsls_lane_s32): Likewise.
11657 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11658 (vqdmulls_lane_s32): Likewise.
11659 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11660 (vqdmlsl_lane_s32): Likewise.
11661 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11662 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11663 (vqrdmulhh_lane_s16): Likewise.
11664 (vqdmlsl_high_lane_s16): Likewise.
11665 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11666 (vqdmlsl_high_lane_s32): Likewise.
11667 (vqrdmulhs_lane_s32): Likewise.
11669 2014-06-20 Tom de Vries <tom@codesourcery.com>
11671 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11672 get_call_reg_set_usage.
11674 2014-06-20 Tom de Vries <tom@codesourcery.com>
11676 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11677 it contains all call_used_regs.
11679 2014-06-20 Tom de Vries <tom@codesourcery.com>
11681 * final.c (collect_fn_hard_reg_usage): Add and use variable
11682 function_used_regs.
11684 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11686 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11687 (set_init_priority, get_init_priority, set_fini_priority,
11688 get_fini_priority): New methods.
11689 * tree.c (init_priority_for_decl): Remove.
11690 (init_ttree): Do not initialize init priority.
11691 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11692 (decl_priority_info): Remove.
11693 (decl_init_priority_insert): Rewrite.
11694 (decl_fini_priority_insert): Rewrite.
11695 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11696 tree_priority_map_marked_p): Remove.
11697 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11698 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11699 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11700 not output priorities.
11701 (pack_ts_function_decl_value_fields): Likewise.
11702 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11703 not input priorities.
11704 (unpack_ts_function_decl_value_fields): Likewise.
11705 * symtab.c (symbol_priority_map): Declare.
11706 (init_priority_hash): Declare.
11707 (symtab_unregister_node): Unregister from priority hash, too.
11708 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11710 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11711 (symbol_priority_info): New function.
11712 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11714 * tree-core.h (tree_priority_map): Remove.
11716 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11718 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11719 0xff to uint64_t before shifting it up.
11721 2014-06-20 Julian Brown <julian@codesourcery.com>
11722 Chung-Lin Tang <cltang@codesourcery.com>
11724 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11725 TARGET_THUMB1_ONLY. Add comments.
11727 2014-06-19 Tom de Vries <tom@codesourcery.com>
11729 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11730 return type to void.
11731 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11733 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11735 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11736 as "move", from depends_on.
11738 2014-06-19 Terry Guo <terry.guo@arm.com>
11740 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11743 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11745 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11747 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11749 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11752 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11753 addresses here if reload in progress or completed.
11755 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11757 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11758 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11759 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11760 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11761 (mips_register_priority): New function that implements the target
11762 hook TARGET_REGISTER_PRIORITY.
11763 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11764 (mips_lra_p): Likewise for TARGET_LRA_P.
11765 (TARGET_REGISTER_PRIORITY): Define macro.
11766 (TARGET_SPILL_CLASS): Likewise.
11767 (TARGET_LRA_P): Likewise.
11768 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11770 (REG_CLASS_NAMES): Likewise.
11771 (REG_CLASS_CONTENTS): Likewise.
11772 (BASE_REG_CLASS): Use M16_SP_REGS.
11773 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11774 New set attribute to enable alternatives depending on the register
11776 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11777 (*lea64): Disable pattern for MIPS16.
11778 * config/mips/mips.opt (mlra): New option.
11780 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11782 * lra-constraints.c (base_to_reg): New function.
11783 (process_address): Use new function.
11785 2014-06-18 Tom de Vries <tom@codesourcery.com>
11787 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11788 * config/aarch64/aarch64.c
11789 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11790 (aarch64_emit_call_insn): New function.
11791 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11793 * config/aarch64/aarch64.md (define_expand "call_internal")
11794 (define_expand "call_value_internal", define_expand "sibcall_internal")
11795 (define_expand "sibcall_value_internal"): New.
11796 (define_expand "call", define_expand "call_value")
11797 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11798 expand variant and aarch64_emit_call_insn.
11800 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11801 Tom de Vries <tom@codesourcery.com>
11803 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11804 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11806 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11807 clobbers to CALL_INSN_FUNCTION_USAGE.
11808 (define_expand "sibcall_internal")
11809 (define_expand "sibcall_value_internal"): New.
11810 (define_expand "call", define_expand "call_value"): Add argument to
11811 arm_emit_call_insn.
11812 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11813 (define_expand "sibcall_value"): Use sibcall_value_internal and
11814 arm_emit_call_insn.
11816 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11818 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11820 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11822 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11825 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11827 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11828 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11829 annotations. Fix DWARF information.
11831 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11833 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11834 __udivmoddi4, and fixups for negative operands.
11836 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11838 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11840 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11842 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11845 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11847 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11850 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11852 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11853 describing register usage on function entry and exit.
11855 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11857 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11858 (__aeabi_ldivmod): Fix whitespace.
11860 2014-06-18 Andreas Schwab <schwab@suse.de>
11862 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11863 Remove blank line after @item.
11865 2014-06-18 Richard Henderson <rth@redhat.com>
11868 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11870 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11872 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11873 POST_MODIFY for neon loads and stores.
11874 (arm_print_operand): Output post-index register for neon loads and
11877 2014-06-18 Richard Biener <rguenther@suse.de>
11879 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11881 2014-06-18 Richard Biener <rguenther@suse.de>
11883 * tree-pass.h (make_pass_dce_loop): Remove.
11884 * passes.def: Replace pass_dce_loop with pass_dce.
11885 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11886 changed free niter estimates and reset the scev cache.
11887 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11888 make_pass_dce_loop): Remove.
11889 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11890 (fini_copy_prop): Return whether something changed. Always
11891 let substitute_and_fold perform DCE and free niter estimates
11892 and reset the scev cache if so.
11893 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11894 (pass_data_copy_prop): Do not unconditionally schedule
11895 cleanup-cfg or update-ssa.
11897 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11899 PR tree-optimization/61518
11900 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11901 reduction var is used in reduction stmt or phi-function only.
11903 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11905 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11907 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11909 PR tree-optimization/61517
11910 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11911 whose rhs's first tree is the source expression instead of the
11913 (find_bswap_or_nop): Likewise.
11914 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11915 gimple stmt whose rhs's first tree is the source. In the memory source
11916 case, move the stmt to be replaced close to one of the original load to
11917 avoid the problem of a store between the load and the stmt's original
11919 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11922 2014-06-18 Andreas Schwab <schwab@suse.de>
11924 PR rtl-optimization/54555
11925 * postreload.c (move2add_use_add2_insn): Substitute
11926 STRICT_LOW_PART only if it is cheaper.
11928 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11930 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11931 Do not use unspec as call operand. Use memory_operand instead of
11932 memory_nox32_operand and add "m" operand constraint. Disable
11933 pattern for TARGET_X32.
11934 (*sibcall_pop_memory): Ditto.
11935 (*sibcall_value_memory): Ditto.
11936 (*sibcall_value_pop_memory): Ditto.
11937 (sibcall peepholes): Merge SImode and DImode patterns using
11938 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11939 Disable pattern for TARGET_X32. Check if eliminated register is
11940 really dead after call insn. Generate call RTX without unspec operand.
11941 (sibcall_value peepholes): Ditto.
11942 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11943 instead of memory_nox32_operand. Check if eliminated register is
11944 really dead after call insn. Generate call RTX without unspec operand.
11945 (sibcall_value_pop peepholes): Ditto.
11946 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11948 2014-06-18 Terry Guo <terry.guo@arm.com>
11951 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11954 2014-06-18 Olivier Hainque <hainque@adacore.com>
11956 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11957 memorization of the end of block source location.
11958 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11959 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11960 end source location info we have on the block entry/exit code we
11963 2014-06-18 Richard Biener <rguenther@suse.de>
11965 * common.opt (fssa-phiopt): New option.
11966 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11968 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11969 * doc/invoke.texi (-fssa-phiopt): Document.
11971 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11973 * genattrtab.c (n_bypassed): New variable.
11974 (process_bypasses): Initialise n_bypassed.
11975 Count number of bypassed reservations.
11976 (make_automaton_attrs): Allocate space for bypassed reservations
11977 rather than number of bypasses.
11979 2014-06-18 Richard Biener <rguenther@suse.de>
11981 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11982 we propagated anything.
11983 (substitute_and_fold_dom_walker::before_dom_children): Something
11984 changed if we propagated into PHI arguments.
11985 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11988 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11990 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11992 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11993 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11994 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11995 Introduces alternative way of loads group permutaions.
11996 (vect_transform_grouped_load): Try alternative way of permutations.
11998 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12000 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
12001 changed in ORT_TARGET region, don't jump to do_outer.
12002 (struct gimplify_adjust_omp_clauses_data): New type.
12003 (gimplify_adjust_omp_clauses_1): Adjust for data being
12004 a struct gimplify_adjust_omp_clauses_data pointer instead
12005 of tree *. Pass pre_p as a new argument to
12006 lang_hooks.decls.omp_finish_clause hook.
12007 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
12008 splay_tree_foreach to pass both list_p and pre_p.
12009 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
12010 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
12011 gimplify_adjust_omp_clauses callers.
12012 * langhooks.c (lhd_omp_finish_clause): New function.
12013 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
12014 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
12015 * langhooks.h (struct lang_hooks_for_decls): Add a new
12016 gimple_seq * argument to omp_finish_clause hook.
12017 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
12018 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
12019 (scan_omp_parallel, lower_omp_for): When adding
12020 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
12021 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
12022 * tree-nested.c (convert_nonlocal_omp_clauses,
12023 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
12024 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
12026 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
12028 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
12029 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
12031 2014-06-17 Xinliang David Li <davidxl@google.com>
12033 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
12034 * passes.c (pass_init_dump_file): Do not set initialize
12035 flag to false unconditionally.
12037 2014-06-17 Richard Biener <rguenther@suse.de>
12039 * genopinit.c (main): Use vec<>::qsort method.
12040 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
12042 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
12044 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
12046 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
12047 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
12048 (mips_move_to_gpr_cost): Remove ST_REGS case.
12049 (mips_move_from_gpr_cost): Likewise.
12050 (mips_register_move_cost): Likewise.
12051 (mips_secondary_reload_class): Likewise.
12053 2014-06-17 Richard Biener <rguenther@suse.de>
12055 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
12056 (pass_all_optimizations): Move 3rd copy-prop pass from after
12057 fre to before ifcombine/phiopt.
12059 2014-06-17 Richard Biener <rguenther@suse.de>
12061 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
12062 and allow all blocks to be forwarders.
12064 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
12067 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
12068 variable 'size'; calculate 'size' right in the front; use
12069 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
12070 pcum->aapcs_stack_words.
12072 2014-06-17 Nick Clifton <nickc@redhat.com>
12074 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
12075 (umulhi3, mulsidi3, umulsidi3): Likewise.
12077 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
12079 PR middle-end/61508
12080 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
12081 check for section name.
12083 2014-06-17 Richard Biener <rguenther@suse.de>
12085 * tree-ssa-propagate.c: Include domwalk.h.
12086 (substitute_and_fold): Outline main worker into a domwalker ...
12087 (substitute_and_fold_dom_walker::before_dom_children): ... here.
12088 Schedule stmts we can fully propagate for removal. Remove
12090 (substitute_and_fold): Apply a dominator walk to perform
12091 substitution. Process stmts scheduled for removal here.
12093 2014-06-17 Richard Biener <rguenther@suse.de>
12095 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
12096 of PHI node moving.
12098 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12100 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
12101 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
12102 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12103 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
12104 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
12106 (get_fpscr) : Likewise.
12108 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12110 PR rtl-optimization/61325
12111 * lra-constraints.c (valid_address_p): Add forward declaration.
12112 (simplify_operand_subreg): Check address validity before and after
12113 alter_reg of memory subreg.
12115 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
12117 * config/i386/i386.c (decide_alg): Correctly handle
12118 maximum size of stringop algorithm.
12120 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12122 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
12124 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12126 PR rtl-optimization/61522
12127 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
12129 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
12132 * symtab.c (symtab_node::reset_section): New method.
12133 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12135 * cgraph.h (reset_section): Declare.
12136 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12137 do not consider comdat locals.
12138 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12140 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12141 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12142 reset sections of symbols dragged out of the comdats.
12143 (function_and_variable_visibility): Reset sections of
12146 2014-06-16 Richard Biener <rguenther@suse.de>
12148 PR tree-optimization/61482
12149 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
12150 [-INF(OVF), +INF(OVF)] range.
12152 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12154 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
12155 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
12156 handling 32-bit multiplication.
12158 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12160 PR middle-end/61430
12161 * lra-lives.c (process_bb_lives): Skip creating copy during
12162 insn scan when src/dest has constrained to same regno.
12164 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12166 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12167 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12169 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12171 * asan.c (check_func): New function.
12172 (maybe_create_ssa_name): Likewise.
12173 (build_check_stmt_with_calls): Likewise.
12174 (use_calls_p): Likewise.
12175 (report_error_func): Change interface.
12176 (build_check_stmt): Allow non-integer lengths; add support
12178 (asan_instrument): Likewise.
12179 (instrument_mem_region_access): Moved code to build_check_stmt.
12180 (instrument_derefs): Likewise.
12181 (instrument_strlen_call): Likewise.
12182 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12183 * doc/invoke.texi: Describe new parameter.
12184 * params.def: Define new parameter.
12185 * params.h: Likewise.
12186 * sanitizer.def: Describe new builtins.
12188 2014-06-16 Richard Biener <rguenther@suse.de>
12190 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12191 Make all defs available at the end.
12192 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12194 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12197 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12199 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12202 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12203 initialization. Replace remaining use of uid.
12205 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12207 * c-family/c-common.c (handle_tls_model_attribute): Use
12208 set_decl_tls_model.
12209 * c-family/c-common.c (handle_tls_model_attribute): Use
12210 set_decl_tls_model.
12211 * cgraph.h (struct varpool_node): Add tls_model.
12212 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12213 * tree.h (DECL_TLS_MODEL): Update.
12214 (DECL_THREAD_LOCAL_P): Check that variable is static.
12215 (decl_tls_model): Declare.
12216 (set_decl_tls_model): Declare.
12217 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12218 set symbol prorperties.
12219 (get_emutls_init_templ_addr): Cleanup.
12220 (new_emutls_decl): Update.
12221 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12222 (lto_input_varpool_node): Likewise.
12223 * lto-streamer-out.c (hash_tree): Likewise.
12224 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12225 not stream DECL_TLS_MODEL.
12226 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12227 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12229 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12231 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12233 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12235 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12236 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12238 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12239 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12240 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12241 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12242 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12243 (df_get_artificial_defs, df_get_artificial_uses)
12244 (df_single_def, df_single_use): Update accordingly.
12245 (df_refs_chain_dump): Take the first element in a linked list as
12246 parameter, rather than a pointer to an array of pointers.
12247 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12248 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12249 (df_chain_create_bb_process_use): Likewise.
12250 (df_md_bb_local_compute_process_def): Likewise.
12251 * fwprop.c (process_defs, process_uses): Likewise.
12252 (register_active_defs, update_uses): Likewise.
12253 (forward_propagate_asm): Update for new df_ref linking.
12254 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12255 (df_null_ref_rec, df_null_mw_rec): Likewise.
12256 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12258 (df_scan_free_bb_info): Remove check for null artificial_defs.
12259 (df_install_ref_incremental): Adjust for new df_ref linking.
12260 Use a single-element insertion rather than a full sort.
12261 (df_ref_chain_delete_du_chain): Take the first element
12262 in a linked list as parameter, rather than a pointer to an array of
12264 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12265 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12266 (df_insn_info_delete): Remove check for null defs and call to
12267 df_scan_free_mws_vec.
12268 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12269 null rather than df_null_*_rec.
12270 (df_insn_rescan_debug_internal): Likewise, and update null
12271 checks in the same way. Remove check for null defs.
12272 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12273 Move a single element rather doing a full sort.
12274 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12276 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12277 Initialize df_ref and df_mw_hardreg lists to null rather than
12279 (df_ref_compare): Take df_refs as parameter, transferring the
12280 old interface to...
12281 (df_ref_ptr_compare): ...this new function.
12282 (df_sort_and_compress_refs): Update accordingly.
12283 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12284 old interface to...
12285 (df_mw_ptr_compare): ...this new function.
12286 (df_sort_and_compress_mws): Update accordingly.
12287 (df_install_refs, df_install_mws): Return a linked list rather than
12288 an array of pointers.
12289 (df_refs_add_to_chains): Assert that old lists are empty rather
12291 (df_insn_refs_verify): Don't handle null defs speciailly.
12292 * web.c (union_match_dups): Update for new df_ref linking.
12294 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12296 * df.h (df_ref_create, df_ref_remove): Delete.
12297 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12298 (df_ref_remove): Likewise.
12300 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12302 * df.h (df_single_def, df_single_use): New functions.
12303 * ira.c (find_moveable_pseudos): Use them.
12305 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12307 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12308 * df-problems.c (df_note_bb_compute): Use it.
12309 * regstat.c (regstat_bb_compute_ri): Likewise.
12311 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12313 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12314 * cse.c (cse_extended_basic_block): Use them.
12315 * dce.c (mark_artificial_use): Likewise.
12316 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12317 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12318 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12319 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12320 (df_simulate_initialize_backwards): Likewise.
12321 (df_simulate_finalize_backwards): Likewise.
12322 (df_simulate_initialize_forwards): Likewise.
12323 (df_md_simulate_artificial_defs_at_top): Likewise.
12324 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12325 * regrename.c (init_rename_info): Likewise.
12326 * regstat.c (regstat_bb_compute_ri): Likewise.
12327 (regstat_bb_compute_calls_crossed): Likewise.
12329 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12331 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12332 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12333 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12334 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12335 * combine.c (create_log_links): Likewise.
12336 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12337 (try_eliminate_compare): Likewise.
12338 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12339 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12340 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12341 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12342 (word_dce_process_block, dce_process_block): Likewise.
12343 * ddg.c (def_has_ccmode_p): Likewise.
12344 * df-core.c (df_bb_regno_first_def_find): Likewise.
12345 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12346 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12347 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12348 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12349 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12350 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12351 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12352 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12353 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12354 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12355 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12356 * fwprop.c (local_ref_killed_between_p): Likewise.
12357 (all_uses_available_at, free_load_extend): Likewise.
12358 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12359 * hw-doloop.c (scan_loop): Likewise.
12360 * ifcvt.c (dead_or_predicable): Likewise.
12361 * init-regs.c (initialize_uninitialized_regs): Likewise.
12362 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12363 (process_bb_node_lives): Likewise.
12364 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12365 (find_moveable_pseudos): Likewise.
12366 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12367 * recog.c (peep2_find_free_register): Likewise.
12368 * ree.c (get_defs): Likewise.
12369 * regstat.c (regstat_bb_compute_ri): Likewise.
12370 (regstat_bb_compute_calls_crossed): Likewise.
12371 * sched-deps.c (find_inc, find_mem): Likewise.
12372 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12373 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12374 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12375 (prepare_shrink_wrap): Likewise.
12376 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12377 * web.c (union_defs, pass_web::execute): Likewise.
12378 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12379 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12381 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12383 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12384 to inheritance pseudos.
12385 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12387 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12390 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12391 (BU_MISC_2): Rename to ...
12392 (BU_LDBL128_2): ... this.
12393 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12394 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12395 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12396 RS6000_BTM_LDBL128.
12397 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12398 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12399 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12400 (unpacktf_1): Likewise.
12401 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12402 (__builtin_longdouble_dw1): Likewise.
12403 * doc/sourcebuild.texi (longdouble128): Document.
12405 2014-06-13 Jeff Law <law@redhat.com>
12407 PR rtl-optimization/61094
12408 PR rtl-optimization/61446
12409 * ree.c (combine_reaching_defs): Get the mode for the copy from
12410 the extension insn rather than the defining insn.
12412 2014-06-13 Dehao Chen <dehao@google.com>
12414 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12416 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12418 * doc/install.texi (--enable-linker-plugin-configure-flags)
12419 (--enable-linker-plugin-flags): Document new flags.
12421 2014-06-13 Martin Jambor <mjambor@suse.cz>
12424 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12425 cache_token if returning early.
12427 2014-06-13 Nick Clifton <nickc@redhat.com>
12429 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12430 requested alignment is active.
12431 (LABEL_ALIGN): Likewise.
12432 (LOOP_ALIGN): Likewise.
12434 2014-06-13 Richard Biener <rguenther@suse.de>
12436 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12437 Rewrite to propagate the VN result into all uses where
12438 possible and to remove stmts becoming dead because of that.
12439 (eliminate): Generalize stmt removal handling, remove in
12440 reverse dominator order to support proper debug stmt
12441 generation. Update stmts before removing stmts.
12442 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12444 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12446 PR tree-optimization/61375
12447 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12448 symbolic number cannot be represented in an uint64_t.
12449 (find_bswap_or_nop_1): Likewise.
12451 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12453 * symtab.c (symtab_node::reset_section): New method.
12454 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12456 * cgraph.h (reset_section): Declare.
12457 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12458 do not consider comdat locals.
12459 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12461 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12462 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12463 reset sections of symbols dragged out of the comdats.
12464 (function_and_variable_visibility): Reset sections of
12467 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12469 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12470 to use symtab and decl_binds_to_current_def_p
12471 * tree-vectorizer.c (increase_alignment): Increase alignment
12472 of alias target, too.
12474 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12476 PR middle-end/61486
12477 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12478 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12479 if outer combined construct is distribute.
12480 (gimplify_omp_for): For OMP_DISTRIBUTE set
12481 gimplify_omp_ctxp->distribute.
12482 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12483 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12484 mapping into decl map.
12486 2014-06-12 Jason Merrill <jason@redhat.com>
12488 * common.opt (fabi-version): Change default to 0.
12490 2014-06-12 Jason Merrill <jason@redhat.com>
12492 * toplev.c (process_options): Reject -fabi-version=1.
12494 2014-06-12 Jeff Law <law@redhat.com>
12496 PR tree-optimization/61009
12497 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12498 value when we stop processing a block due to problematic PHIs.
12500 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12502 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12503 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12504 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12505 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12506 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12507 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12508 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12509 are not in the spec.
12511 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12514 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12515 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12518 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12520 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12522 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12525 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12526 loading from address spaces.
12528 2014-06-12 Martin Liska <mliska@suse.cz>
12531 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12532 statement is reachable.
12534 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12536 * symtab.c (section_hash): New hash.
12537 (symtab_unregister_node): Clear section before freeing.
12538 (hash_section_hash_entry): New haser.
12539 (eq_sections): New function.
12540 (symtab_node::set_section_for_node): New method.
12541 (set_section_1): Update.
12542 (symtab_node::set_section): Take string instead of tree as parameter.
12543 (symtab_resolve_alias): Update.
12544 * cgraph.h (section_hash_entry_d): New structure.
12545 (section_hash_entry): New typedef.
12546 (cgraph_node): Change comdat_group_ to x_comdat_group,
12547 change section_ to x_section and turn into section_hash_entry;
12548 update accestors; put set_section_for_node offline.
12549 * tree.c (decl_section_name): Turn into string.
12550 (set_decl_section_name): Change parameter to be string.
12551 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12552 * sdbout.c (sdbout_one_type): Update.
12553 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12554 * varasm.c (IN_NAMED_SECTION, get_named_section,
12555 resolve_unique_section, hot_function_section, get_named_text_section,
12556 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12557 make_decl_rtl, default_unique_section): Update.
12558 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12559 (c6x_elf_unique_section): Update.
12560 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12561 * config/pa/pa.c (pa_function_section): Update.
12562 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12563 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12564 * config/arc/arc.c (arc_in_small_data_p): Update.
12565 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12566 * config/mcore/mcore.c (mcore_unique_section): Update.
12567 * config/mips/mips.c (mips16_build_function_stub): Update.
12568 (mips16_build_call_stub): Update.
12569 (mips_function_rodata_section): Update.
12570 (mips_in_small_data_p): Update.
12571 * config/score/score.c (score_in_small_data_p): Update.
12572 * config/rx/rx.c (rx_in_small_data): Update.
12573 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12574 (rs6000_xcoff_asm_named_section): Update.
12575 (rs6000_xcoff_unique_section): Update.
12576 * config/frv/frv.c (frv_string_begins_with): Update.
12577 (frv_in_small_data_p): Update.
12578 * config/v850/v850.c (v850_encode_data_area): Update.
12579 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12580 (bfin_handle_l1_data_attribute): Update.
12581 (bfin_handle_l2_attribute): Update.
12582 * config/mep/mep.c (mep_unique_section): Update.
12583 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12585 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12586 (h8300_handle_tiny_data_attribute): Update.
12587 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12588 (m32r_in_small_data_p): Update.
12589 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12590 * config/i386/i386.c (ix86_in_large_data_p): Update.
12591 * config/i386/winnt.c (i386_pe_unique_section): Update.
12592 * config/darwin.c (darwin_function_section): Update.
12593 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12594 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12595 (new_emutls_decl): Update.
12596 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12597 input_varpool_node): Update.
12598 (ead_string_cst): Turn to ...
12599 (read_string): ... this one.
12600 * dwarf2out.c (secname_for_decl): Update.
12601 * asan.c (asan_protect_global): Update.
12603 2014-06-11 DJ Delorie <dj@redhat.com>
12605 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12607 * config/rx/rx.c (rx_option_override): Likewise.
12608 (rx_align_for_label): Likewise.
12610 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12612 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12614 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12617 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12619 * common.md: New file.
12620 * doc/md.texi: Update description of generic, machine-independent
12622 * config/s390/constraints.md (e): Delete.
12623 * Makefile.in (md_file): Include common.md.
12624 * config/m32c/t-m32c (md_file): Likewise.
12625 * genpreds.c (general_mem): New array.
12626 (generic_constraint_letters): Remove constraints now defined by
12628 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12629 Allow the first character to be '<' or '>' as well.
12630 * genoutput.c (general_mem): New array.
12631 (indep_constraints): Remove constraints now defined by common.md.
12632 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12633 Remove special handling of 'm'.
12634 * ira-costs.c (record_reg_classes): Remove special handling of
12635 constraints now defined by common.md.
12636 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12637 * ira-lives.c (single_reg_class): Likewise.
12638 (ira_implicitly_set_insn_hard_regs): Likewise.
12639 * lra-constraints.c (reg_class_from_constraints): Likewise.
12640 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12641 * postreload.c (reload_cse_simplify_operands): Likewise.
12642 * reload.c (push_secondary_reload, scratch_reload_class)
12643 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12644 * reload1.c (maybe_fix_stack_asms): Likewise.
12645 * targhooks.c (default_secondary_reload): Likewise.
12646 * stmt.c (parse_output_constraint): Likewise.
12647 * recog.c (preprocess_constraints): Likewise.
12648 (constrain_operands, peep2_find_free_register): Likewise.
12649 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12650 must be handled specially.
12652 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12654 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12655 * genpreds.c (have_const_dbl_constraints): Delete.
12656 (add_constraint): Don't set it.
12657 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12658 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12659 constraints using the lookup_constraint logic.
12660 * ira-lives.c (single_reg_class): Likewise.
12661 * ira.c (ira_setup_alts): Likewise.
12662 * lra-constraints.c (process_alt_operands): Likewise.
12663 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12664 * reload.c (find_reloads): Likewise.
12666 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12668 * genpreds.c (const_int_start, const_int_end): New variables.
12669 (choose_enum_order): Output CONST_INT constraints before memory
12671 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12673 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12674 * ira.c (ira_setup_alts): Likewise.
12675 * lra-constraints.c (process_alt_operands): Likewise.
12676 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12677 * reload.c (find_reloads): Likewise.
12679 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12681 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12682 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12683 * recog.c (preprocess_constraints): Update accordingly.
12685 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12687 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12688 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12689 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12690 * genpreds.c (print_type_tree): New function.
12691 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12692 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12693 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12694 Write out enum constraint_type and get_constraint_type.
12695 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12696 constraint_num rather than a constraint string.
12697 (satisfies_address_constraint_p): Likewise.
12698 (reg_class_from_constraints): Avoid old constraint macros.
12699 (process_alt_operands, process_address_1): Likewise.
12700 (curr_insn_transform): Likewise.
12701 * ira-costs.c (record_reg_classes): Likewise.
12702 (record_operand_costs): Likewise.
12703 * ira-lives.c (single_reg_class): Likewise.
12704 (ira_implicitly_set_insn_hard_regs): Likewise.
12705 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12706 * postreload.c (reload_cse_simplify_operands): Likewise.
12707 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12708 (constrain_operands, peep2_find_free_register): Likewise.
12709 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12710 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12711 * reload1.c (maybe_fix_stack_asms): Likewise.
12712 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12713 * targhooks.c (default_secondary_reload): Likewise.
12714 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12715 to EXTRA_CONSTRAINT_STR.
12716 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12718 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12720 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12721 (write_constraint_satisfied_p_array): ...this new function.
12722 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12724 (write_insn_preds_c): Update accordingly.
12726 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12728 * genpreds.c (write_lookup_constraint): Rename to...
12729 (write_lookup_constraint_1): ...this.
12730 (write_lookup_constraint_array): New function.
12731 (write_tm_preds_h): Define lookup_constraint as an inline function
12732 that uses write_lookup_constraint_array where possible.
12733 (write_insn_preds_c): Update for the changes above.
12735 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12737 * doc/md.texi (regclass_for_constraint): Rename to...
12738 (reg_class_for_constraint): ...this.
12739 * genpreds.c (num_constraints, enum_order, register_start)
12740 (register_end, satisfied_start, memory_start, memory_end)
12741 (address_start, address_end): New variables.
12742 (add_constraint): Count the number of constraints.
12743 (choose_enum_order): New function.
12744 (write_enum_constraint_num): Iterate over enum_order.
12745 (write_regclass_for_constraint): Rename to...
12746 (write_reg_class_for_constraint_1): ...this and update output
12748 (write_constraint_satisfied_p): Rename to...
12749 (write_constraint_satisfied_p_1): ...this and update output
12750 accordingly. Do nothing if all extra constraints are register
12752 (write_insn_extra_memory_constraint): Delete.
12753 (write_insn_extra_address_constraint): Delete.
12754 (write_range_function): New function.
12755 (write_tm_preds_h): Define constraint_satisfied_p and
12756 reg_class_for_constraint as inline functions that do a range check
12757 before calling the out-of-line function. Use write_range_function
12758 to implement insn_extra_{register,memory,address}_constraint,
12759 the first of which is new.
12760 (write_insn_preds_c): Update after above changes to write_* functions.
12761 (main): Call choose_enum_order.
12763 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12765 PR tree-optimization/61306
12766 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12767 expression instead of its size.
12768 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12769 false to prevent optimization when the result is unpredictable due to
12770 arithmetic right shift of signed type with highest byte is set.
12771 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12772 (init_symbolic_number): Likewise.
12773 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12774 when the result is unpredictable due to sign extension.
12776 2014-06-11 Terry Guo <terry.guo@arm.com>
12778 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12779 (*thumb1_addsi3): Ditto.
12780 (*thumb_subdi3): Ditto.
12781 (thumb1_subsi3_insn): Ditto.
12782 (*thumb_mulsi3): Ditto.
12783 (*thumb_mulsi3_v6): Ditto.
12784 (*thumb1_andsi3_insn): Ditto.
12785 (thumb1_bicsi3): Ditto.
12786 (*thumb1_iorsi3_insn): Ditto.
12787 (*thumb1_xorsi3_insn): Ditto.
12788 (*thumb1_ashlsi3): Ditto.
12789 (*thumb1_ashrsi3): Ditto.
12790 (*thumb1_lshrsi3): Ditto.
12791 (*thumb1_rotrsi3): Ditto.
12792 (*thumb1_negdi2): Ditto.
12793 (*thumb1_negsi2): Ditto.
12794 (*thumb1_abssi2): Ditto.
12795 (*thumb1_neg_abssi2): Ditto.
12796 (*thumb1_one_cmplsi2): Ditto.
12797 (*thumb1_zero_extendhisi2): Ditto.
12798 (*thumb1_zero_extendqisi2): Ditto.
12799 (*thumb1_zero_extendqisi2_v6): Ditto.
12800 (thumb1_extendhisi2): Ditto.
12801 (thumb1_extendqisi2): Ditto.
12802 (*thumb1_movdi_insn): Ditto.
12803 (*thumb1_movsi_insn): Ditto.
12804 (*thumb1_movhi_insn): Ditto.
12805 (thumb_movhi_clobber): Ditto.
12806 (*thumb1_movqi_insn): Ditto.
12807 (*thumb1_movhf): Ditto.
12808 (*thumb1_movsf_insn): Ditto.
12809 (*thumb_movdf_insn): Ditto.
12810 (movmem12b): Ditto.
12812 (cbranchqi4): Ditto.
12813 (cbranchsi4_insn): Ditto.
12814 (cbranchsi4_scratch): Ditto.
12815 (*negated_cbranchsi4): Ditto.
12816 (*tbit_cbranch): Ditto.
12817 (*tlobits_cbranch): Ditto.
12818 (*tstsi3_cbranch): Ditto.
12819 (*cbranchne_decr1): Ditto.
12820 (*addsi3_cbranch): Ditto.
12821 (*addsi3_cbranch_scratch): Ditto.
12822 (*thumb_cmpdi_zero): Ditto.
12823 (cstoresi_eq0_thumb1): Ditto.
12824 (cstoresi_ne0_thumb1): Ditto.
12825 (*cstoresi_eq0_thumb1_insn): Ditto.
12826 (*cstoresi_ne0_thumb1_insn): Ditto.
12827 (cstoresi_nltu_thumb1): Ditto.
12828 (cstoresi_ltu_thumb1): Ditto.
12829 (thumb1_addsi3_addgeu): Ditto.
12830 (*thumb_jump): Ditto.
12831 (*call_reg_thumb1_v5): Ditto.
12832 (*call_reg_thumb1): Ditto.
12833 (*call_value_reg_thumb1_v5): Ditto.
12834 (*call_value_reg_thumb1): Ditto.
12835 (*call_insn): Ditto.
12836 (*call_value_insn): Ditto.
12837 (thumb1_casesi_internal_pic): Ditto.
12838 (thumb1_casesi_dispatch): Ditto.
12839 (*thumb1_indirect_jump): Ditto.
12840 (prologue_thumb1_interwork): Ditto.
12841 (*epilogue_insns): Ditto.
12842 (consttable_1): Ditto.
12843 (consttable_2): Ditto.
12844 (tablejump): Ditto.
12845 (*thumb1_tablejump): Ditto.
12846 (thumb_eh_return): Ditto.
12847 (define_peephole2): Two of them are thumb1 only and got moved into
12848 new file thumb1.md.
12849 (define_split): Six of them are thumb1 only and got moved into new
12851 * config/arm/thumb1.md: New file comprised of above thumb1 only
12854 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12856 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12857 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12859 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12860 (aarch64_crc_builtin_datum): New struct.
12861 (aarch64_crc_builtin_data): New.
12862 (aarch64_init_crc32_builtins): New function.
12863 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12864 (aarch64_crc32_expand_builtin): New.
12865 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12866 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12867 __ARM_FEATURE_CRC32 when appropriate.
12868 (TARGET_CRC32): Define.
12869 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12870 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12871 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12872 (aarch64_<crc_variant>): New pattern.
12873 * config/aarch64/arm_acle.h: New file.
12874 * config/aarch64/iterators.md (CRC): New int iterator.
12875 (crc_variant, crc_mode): New int attributes.
12876 * doc/aarch64-acle-intrinsics.texi: New file.
12877 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12878 Include aarch64-acle-intrinsics.texi.
12880 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12882 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12883 check for stores group of length 3.
12884 (vect_permute_store_chain): New permutations for stores group of
12886 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12887 of vec_perm_shuffle for the new permutations.
12889 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12891 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12892 table rewriting temporarily on targets not supporting ONE_ONLY.
12894 2014-06-11 Richard Biener <rguenther@suse.de>
12896 PR middle-end/61437
12898 2014-06-04 Richard Biener <rguenther@suse.de>
12900 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12901 TREE_PUBLIC and DECL_EXTERNAL decls.
12903 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12905 * varasm.c (set_implicit_section): New function.
12906 (resolve_unique_section): Use it to set implicit section
12908 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12909 (default_function_section): Likewise.
12910 (decl_binds_to_current_def_p): Constify argument.
12911 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12912 * asan.c (asan_protect_global): Use
12913 symtab_get_node (decl)->implicit_section.
12914 * symtab.c (dump_symtab_base): Dump implicit sections.
12915 (verify_symtab_base): Verify sanity of sectoins and comdats.
12916 (symtab_resolve_alias): Alias share the section of its target.
12917 (set_section_1): New function.
12918 (symtab_node::set_section): Move here, recurse to aliases.
12919 (verify_symtab): Check for duplicated symtab lists.
12920 * tree-core.h (implicit_section_name_p): Remove.
12921 * tree-vect-data-refs.c: Include varasm.h.
12922 (vect_can_force_dr_alignment_p): Fix conditional on when
12923 decl bints to current definition; use
12924 symtab_get_node (decl)->implicit_section.
12925 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12926 * cgraph.h (struct symtab_node): Add implicit_section.
12927 (set_section): Rename to ...
12928 (set_section_for_node): ... this one.
12929 (set_section): Declare.
12930 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12931 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12932 input_overwrite_node, input_varpool_node): Stream implicit_section.
12933 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12934 removal; it will fail in LTO.
12936 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12938 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12939 Change second alternative type to f_mcr.
12940 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12941 and 12th alternatives' types to f_mcr and f_mrc.
12942 (*movdi_aarch64): Same for 12th and 13th alternatives.
12943 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12944 (aarch64_movtilow_tilow): Change type to fmov.
12946 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12948 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12949 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12951 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12953 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12955 (aarch64_sqrdmulh_lane<mode>): Likewise.
12956 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12957 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12958 (aarch64_sqdmulh_laneq<mode>): New expander.
12959 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12960 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12961 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12962 (aarch64_sqdmulh_lane<mode>): New expander.
12963 (aarch64_sqrdmulh_lane<mode>): Likewise.
12964 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12965 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12966 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12967 (aarch64_sqdmlal_laneq<mode>): Likewise.
12968 (aarch64_sqdmlsl_lane<mode>): Likewise.
12969 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12970 (aarch64_sqdmlal2_lane<mode>): Likewise.
12971 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12972 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12973 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12974 (aarch64_sqdmull_lane<mode>): Likewise.
12975 (aarch64_sqdmull_laneq<mode>): Likewise.
12976 (aarch64_sqdmull2_lane<mode>): Likewise.
12977 (aarch64_sqdmull2_laneq<mode>): Likewise.
12979 2014-06-10 Richard Biener <rguenther@suse.de>
12981 PR tree-optimization/61438
12982 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12983 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12984 insertion of IVs if running PRE.
12985 (eliminate): Adjust.
12986 (pass_pre::execute): Likewise.
12987 (pass_fre::execute): Likewise.
12989 2014-06-10 Richard Biener <rguenther@suse.de>
12991 PR middle-end/61456
12992 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12993 Do not use the main variant for the type comparison.
12994 (ncr_compar): Likewise.
12995 (nonoverlapping_component_refs_p): Likewise.
12997 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12999 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
13000 REG_CFA_RESTORE mode.
13002 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
13004 * config/i386/i386.c (expand_vec_perm_pblendv): New.
13005 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
13006 expand_vec_perm_pblendv.
13008 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13010 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
13012 Simplify description of __crc32d and __crc32cd intrinsics.
13013 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
13016 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
13019 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
13020 * config.in: Regenerate.
13021 * configure: Likewise.
13023 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
13025 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
13027 (intersect_static_var_sets): Remove.
13028 (propagate): Do not prune local statics.
13030 2014-06-10 Jakub Jelinek <jakub@redhat.com>
13033 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
13034 Set lastprivate_firstprivate even if omp_private_outer_ref
13035 langhook returns true.
13036 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
13037 langhook, call unshare_expr on new_var and call
13038 build_outer_var_ref to get the last argument.
13040 2014-06-10 Marek Polacek <polacek@redhat.com>
13043 * doc/extend.texi: Add cindex for transparent_union.
13045 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
13047 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
13048 init_symbolic_number ().
13050 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
13052 PR middle-end/61141
13053 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
13054 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
13055 (verify_rtl_sharing): Likewise.
13057 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
13060 * tree.c (build_qualified_type): Use a canonical type for
13063 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13065 * config/arm/arm-modes.def: Remove XFmode.
13067 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
13070 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
13071 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
13072 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
13073 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
13074 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
13075 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
13076 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
13077 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
13078 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
13080 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
13082 * tree-core.h (tree_decl_with_vis): Remove section_name.
13084 2014-06-09 Kito Cheng <kito@0xlab.org>
13086 * ira.c (ira): Don't call init_caller_save if LRA enabled
13087 since LRA use its own infrastructure to handle that.
13089 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13091 * symtab.c (dump_symtab_base): Update dumping.
13092 (symtab_make_decl_local): Clear only DECL_COMDAT.
13093 * tree-vect-data-refs.c (Check that variable is static before
13094 tampering with sections.
13095 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
13096 (cgraph_create_virtual_clone): Likewise.
13097 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
13098 (decl_section_name, set_decl_section_name): New accessors.
13099 (find_decls_types_r): Do not walk section name
13100 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
13101 (decl_comdat_group, decl_comdat_group_id): Constify.
13102 (decl_section_name, set_decl_section_name): Update.
13103 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
13104 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
13105 (cgraph_make_node_local_1): Clear section and comdat group.
13106 * cgraph.h (set_comdat_group): Sanity check.
13107 (get_section, set_section): New.
13108 * ipa-comdats.c (ipa_comdats): Use get_section.
13109 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
13110 * lto-streamer-out.c: Do not follow section names.
13111 * c-family/c-common.c (handle_section_attribute): Update.
13112 * lto-cgraph.c (lto_output_node): Output section.
13113 (lto_output_varpool_node): Likewise.
13114 (read_comdat_group): Rename to ...
13115 (read_identifier): ... this one.
13116 (read_string_cst): New function.
13117 (input_node, input_varpool_node): Input section names.
13118 * tree-emutls.c (get_emutls_init_templ_addr): Update.
13119 (new_emutls_decl): Update.
13120 (secname_for_decl): Check section names only of static vars.
13121 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
13122 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
13123 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
13124 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
13125 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
13126 * config/mcore/mcore.c (mcore_unique_section): Likewise.
13127 * config/mips/mips.c (mips16_build_function_stub): Likewise.
13128 * config/v850/v850.c (v850_insert_attributes): Likewise.
13129 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
13131 (h8300_handle_tiny_data_attribute): Likewise.
13132 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
13133 (bfin_handle_l2_attribute): Likewise.
13135 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13137 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
13138 remove static initializer.
13140 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13142 * varasm.c (use_blocks_for_decl_p): Check symbol table
13143 instead of alias attribute.
13144 (place_block_symbol): Recurse on aliases.
13146 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13148 * ipa-visibility.c: Include varasm.h
13149 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
13151 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13153 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
13154 outputting aliases.
13156 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13158 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13159 from test_insn into GGC space escape via SET_SRC.
13161 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13163 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13164 call statement, if any.
13165 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13166 statements, if any. Tidy up.
13168 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13171 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13172 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13173 handles swapping the two 64-bit double words on little endian
13174 systems. Include V1TImode and optionally TImode in VSX_LE so that
13175 these types are properly swapped. Change all of the insns and
13176 splits that do the 64-bit swaps to use VSX_LE.
13177 (vsx_le_perm_load_<mode>): Likewise.
13178 (vsx_le_perm_store_<mode>): Likewise.
13179 (splitters for little endian memory operations): Likewise.
13180 (vsx_xxpermdi2_le_<mode>): Likewise.
13181 (vsx_lxvd2x2_le_<mode>): Likewise.
13182 (vsx_stxvd2x2_le_<mode>): Likewise.
13184 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13187 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13188 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13189 and corresponding splitters. Zero extend general register
13190 or memory input operand to XMM temporary. Enable for
13191 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13192 (floatunssi<mode>2): Update expander predicate.
13194 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13196 PR rtl-optimization/61325
13197 * lra-constraints.c (process_address_1): Check scale equal to one
13198 to prevent transformation: base + scale * index => base + new_reg.
13200 2014-06-06 Richard Biener <rguenther@suse.de>
13202 PR tree-optimization/59299
13203 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13205 (nearest_common_dominator_of_uses): Likewise.
13206 (statement_sink_location): Adjust. Support sinking loads.
13208 2014-06-06 Martin Jambor <mjambor@suse.cz>
13210 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13211 (build_agg_jump_func_from_list): Likewise.
13212 (determine_known_aggregate_parts): Renamed to
13213 determine_locally_known_aggregate_parts. Moved some functionality
13214 to the two functions above, removed bound checks.
13216 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13218 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13219 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13220 (aarch64_progress_pointer): Likewise.
13221 (aarch64_copy_one_part_and_move_pointers): Likewise.
13222 (aarch64_expand_movmen): Likewise.
13223 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13224 * config/aarch64/aarch64.md (movmem<mode>): New.
13226 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13228 * targhooks.c (default_add_stmt_cost): Call target specific
13229 hook instead of default one.
13231 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13233 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13234 endianness instead of host endianness.
13235 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13238 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13241 * function.c (instantiate_decls): Process the saved static chain.
13242 (expand_function_start): If not optimizing, save the static chain
13244 * tree-nested.c (convert_all_function_calls): Always create the static
13245 chain for nested functions if not optimizing.
13247 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13249 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13251 2014-06-06 Richard Biener <rguenther@suse.de>
13253 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13254 (construct_init_block): Likewise.
13255 (construct_exit_block): Likewise.
13256 (pass_expand::execute): Likewise.
13257 * graphite.c (graphite_transforms): Replace check for current_loops
13258 with a check for > 1 loops.
13259 (pass_graphite_transforms::execute): Adjust.
13260 * ipa-split.c (split_function): Remove check for current_loops.
13261 * omp-low.c (expand_parallel_call): Likewise.
13262 (expand_omp_for_init_counts): Likewise.
13263 (extract_omp_for_update_vars): Likewise.
13264 (expand_omp_for_generic): Likewise.
13265 (expand_omp_sections): Likewise.
13266 (expand_omp_target): Likewise.
13267 * tracer.c (tail_duplicate): Likewise.
13268 (pass_tracer::execute): Likewise.
13269 * trans-mem.c (expand_transaction): Likewise.
13270 * tree-complex.c (expand_complex_div_wide): Likewise.
13271 * tree-eh.c (lower_resx): Likewise.
13272 (cleanup_empty_eh_merge_phis): Likewise.
13273 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13274 current_loops with a check for > 1 loops.
13275 (pass_predcom::execute): Adjust.
13276 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13277 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13278 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13279 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13280 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13281 * tree-switch-conversion.c (process_switch): Likewise.
13282 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13283 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13284 (execute_vrp): Likewise.
13285 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13287 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13289 * rtl.h (insn_location): Declare.
13290 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13291 with UNKNOWN_LOCATION.
13292 * emit-rtl.c (insn_location): New function.
13293 * final.c (notice_source_line): Check that the instruction has a
13294 location before retrieving it and use insn_location.
13295 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13296 * print-rtl.c (print_rtx): Likewise.
13298 2014-06-06 Richard Biener <rguenther@suse.de>
13300 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13302 2014-06-06 Christian Bruel <christian.bruel@st.com>
13304 PR tree-optimization/43934
13305 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13308 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13310 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13311 return NO_REGS for extra address and memory constraints. Handle
13312 operands that match (or are equivalent to something that matches)
13313 extra constant constraints. Ignore other non-register operands.
13315 2014-06-06 Alan Modra <amodra@gmail.com>
13318 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13319 * doc/tm.texi: Regenerate.
13320 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13321 Use throughout in place of REG_PARM_STACK_SPACE.
13322 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13323 "incoming" param. Pass to rs6000_function_parms_need_stack.
13324 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13325 prototype_p when incoming. Use function decl when incoming
13326 to handle K&R style functions.
13327 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13328 (INCOMING_REG_PARM_STACK_SPACE): Define.
13330 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13333 * cfgexpand.c (expand_debug_expr): Use address space of nested
13334 TREE_TYPE for ADDR_EXPR and MEM_REF.
13336 2014-06-05 Jeff Law <law@redhat.com>
13338 PR tree-optimization/61289
13339 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13340 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13341 looking for those which match LHS. All callers changed.
13342 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13343 parameters and code which manipulated them. All callers changed.
13344 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13345 and DST_MAP parameters. Simplify invalidation code by just calling
13346 invalidate_equivalences. All callers changed.
13347 (thread_across_edge): Simplify now that we don't need to maintain
13348 the map of equivalences to invalidate.
13350 2014-06-05 Kai Tietz <ktietz@redhat.com>
13351 Richard Henderson <rth@redhat.com>
13354 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13355 checking for !TARGET_X32.
13356 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13357 (sibcall_intern): New define_insn, plus required peepholes.
13358 (sibcall_pop_intern): Likewise.
13359 (sibcall_value_intern): Likewise.
13360 (sibcall_value_pop_intern): Likewise.
13362 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13364 * tree-inline.c (tree_function_versioning): Check DF info existence
13365 before accessing it.
13367 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13369 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13371 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13372 aarch64_frame hard_fp_offset and frame_size.
13373 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13374 frame_size; remove original_frame_size.
13375 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13376 (aarch64_initial_elimination_offset): Remove frame_size and
13377 offset. Use aarch64_frame frame_size.
13379 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13380 Jiong Wang <jiong.wang@arm.com>
13381 Renlin <renlin.li@arm.com>
13383 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13384 initialization of R30 offset. Update offset. Iterate core
13385 regisers upto X30. Remove X29, X30 specific code.
13387 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13388 Jiong Wang <jiong.wang@arm.com>
13390 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13391 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13392 (aarch64_register_saved_on_entry): Adjust test.
13394 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13396 * config/aarch64/aarch64.h (machine_function): Move
13397 saved_varargs_size from here...
13398 (aarch64_frame): ... to here.
13400 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13401 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13402 (aarch64_initial_elimination_offset)
13403 (aarch64_setup_incoming_varargs): Adjust location of
13404 saved_varargs_size.
13406 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13408 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13411 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13412 Prachi Godbole <Prachi.Godbole@imgtec.com>
13414 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13415 mips32r5 entry to use PROCESSOR_P5600.
13416 * config/mips/mips-tables.opt: Regenerate.
13417 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13418 * config/mips/mips.c (mips_fmadd_bypass): New function.
13419 (mips_rtx_cost_data): Add costs for p5600.
13420 (mips_issue_rate): Add support for p5600.
13421 (mips_multipass_dfa_lookahead): Likewise.
13422 * config/mips/mips.h (TUNE_P5600): New define.
13423 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13424 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13425 * config/mips/mips.md: Include p5600.md.
13426 (processor): Add p5600.
13427 * config/mips/p5600.md: New file.
13429 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13431 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13432 * config/i386/predicates.md (palignr_operand): New.
13433 Indicates if permutation is suitable for palignr instruction.
13435 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13437 PR tree-optimization/61319
13438 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13439 stmt belongs to loop.
13441 2014-06-05 Richard Biener <rguenther@suse.de>
13443 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13444 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13445 (lookup_tmp_var): Adjust.
13446 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13448 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13450 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13452 2014-06-05 Marek Polacek <polacek@redhat.com>
13455 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13457 2014-06-04 Tom de Vries <tom@codesourcery.com>
13459 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13462 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13464 PR tree-optimization/61385
13465 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13467 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13469 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13470 changed to use fatal_error.
13471 (main): Ensure lto_wrapper_cleanup is run atexit.
13473 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13475 * lra-constraints.c (valid_address_p): Move earlier in file.
13476 (address_eliminator): New structure.
13477 (satisfies_memory_constraint_p): New function.
13478 (satisfies_address_constraint_p): Likewise.
13479 (process_alt_operands, process_address, curr_insn_transform): Use them.
13481 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13483 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13485 (target_lra_int, default_target_lra_int, this_target_lra_int)
13486 (op_alt_data): Delete.
13487 * lra.h (lra_init): Delete.
13488 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13489 (init_insn_code_data_once): Remove op_alt_data handling.
13490 (finish_insn_code_data_once): Likewise.
13491 (init_op_alt_data): Delete.
13492 (get_static_insn_data): Initialize operand_alternative to null.
13493 (free_insn_recog_data): Cast operand_alternative before freeing it.
13494 (setup_operand_alternative): Take the operand_alternative as
13495 parameter and assume it isn't already cached in the static
13497 (lra_set_insn_recog_data): Update accordingly.
13498 (lra_init): Delete.
13499 * ira.c (ira_init): Don't call lra_init.
13500 * target-globals.h (this_target_lra_int): Declare.
13501 (target_globals): Remove lra_int.
13502 (restore_target_globals): Update accordingly.
13503 * target-globals.c: Don't include lra-int.h.
13504 (default_target_globals, save_target_globals): Remove lra_int.
13506 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13508 * recog.h (operand_alternative): Convert reg_class, reject,
13509 matched and matches into bitfields.
13510 (preprocess_constraints): New overload.
13511 (preprocess_insn_constraints): New function.
13512 (preprocess_constraints): Take the insn as parameter.
13513 (recog_op_alt): Change into a pointer.
13514 (target_recog): Add x_op_alt.
13515 * recog.c (asm_op_alt): New variable.
13516 (recog_op_alt): Change into a pointer.
13517 (preprocess_constraints): New overload, replacing the old function
13518 definition with one that doesn't use global state.
13519 (preprocess_insn_constraints): New function.
13520 (preprocess_constraints): Use them. Take the insn as parameter.
13521 Use asm_op_alt for asms.
13522 (recog_init): Free existing x_op_alt entries.
13523 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13525 (make_early_clobber_and_input_conflicts): Likewise.
13526 (process_bb_node_lives): Pass the insn to process_constraints.
13527 * reg-stack.c (check_asm_stack_operands): Likewise.
13528 (subst_asm_stack_regs): Likewise.
13529 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13530 * regrename.c (build_def_use): Likewise.
13531 * sched-deps.c (sched_analyze_insn): Likewise.
13532 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13533 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13534 (note_invalid_constants): Likewise.
13535 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13536 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13539 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13541 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13542 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13544 (make_early_clobber_and_input_conflicts): Likewise.
13545 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13547 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13549 * recog.h (alternative_class): New function.
13550 (which_op_alt): Return a const recog_op_alt.
13551 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13552 (subst_asm_stack_regs): Likewise.
13553 * config/arm/arm.c (note_invalid_constants): Likewise.
13554 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13555 the operand_alternative; use alternative class instead.
13556 * sel-sched.c (get_reg_class): Likewise.
13557 * regrename.c (build_def_use): Likewise.
13558 (hide_operands, restore_operands, record_out_operands): Update type
13561 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13563 * recog.h (recog_op_alt): Convert to a flat array.
13564 (which_op_alt): New function.
13565 * recog.c (recog_op_alt): Convert to a flat array.
13566 (preprocess_constraints): Update accordingly, grouping all
13567 operands of the same alternative together, rather than the
13569 * ira-lives.c (check_and_make_def_conflict): Likewise.
13570 (make_early_clobber_and_input_conflicts): Likewise.
13571 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13572 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13573 (subst_asm_stack_regs): Likewise.
13574 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13575 * regrename.c (hide_operands, record_out_operands): Likewise.
13576 (build_def_use): Likewise.
13577 * sel-sched.c (get_reg_class): Likewise.
13578 * config/arm/arm.c (note_invalid_constants): Likewise.
13580 2014-06-04 Jason Merrill <jason@redhat.com>
13584 * gimplify.c (gimplify_arg): Non-static.
13585 * gimplify.h: Declare it.
13587 2014-06-04 Richard Biener <rguenther@suse.de>
13589 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13590 TREE_PUBLIC and DECL_EXTERNAL decls.
13592 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13594 * regcprop.c (copyprop_hardreg_forward_1): Account for
13595 HARD_REGNO_CALL_PART_CLOBBERED.
13597 2014-06-04 Richard Biener <rguenther@suse.de>
13599 * configure.ac: Check whether the underlying type of int64_t
13600 is long or long long.
13601 * configure: Regenerate.
13602 * config.in: Likewise.
13603 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13604 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13606 2014-06-04 Richard Biener <rguenther@suse.de>
13608 PR tree-optimization/60098
13609 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13611 (dse_optimize_stmt): Simplify, now that we found a kill
13614 2014-06-04 Richard Biener <rguenther@suse.de>
13616 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13617 of accesses with non-invariant address.
13619 2014-06-04 Martin Liska <mliska@suse.cz>
13621 * cgraph.h (cgraph_make_wrapper): New function introduced.
13622 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13623 * ipa-inline.h (inline_analyze_function): The function is global.
13624 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13626 2014-06-04 Martin Liska <mliska@suse.cz>
13628 * tree.h (private_lookup_attribute_starting): New function.
13629 (lookup_attribute_starting): Likewise.
13630 * tree.c (private_lookup_attribute_starting): Likewise.
13632 2014-06-04 Martin Liska <mliska@suse.cz>
13634 * cgraph.h (expand_thunk): New argument added.
13635 (address_taken_from_non_vtable_p): New global function.
13636 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13637 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13638 * cgraphunit.c (analyze_function): Likewise.
13639 (assemble_thunks_and_aliases): Argument added to call.
13640 (expand_thunk): New argument forces to produce GIMPLE thunk.
13642 2014-06-04 Martin Liska <mliska@suse.cz>
13644 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13645 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13646 * profile.c (branch_prob): Likewise.
13648 2014-06-04 Martin Jambor <mjambor@suse.cz>
13651 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13652 handler for switch on an ipa_ref_use enum.
13653 * ipa-reference.c (analyze_function): Likewise.
13655 2014-06-04 Kai Tietz <ktietz@redhat.com>
13657 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13658 from old call-instruction.
13660 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13662 * config/aarch64/aarch64.c (aarch64_classify_address)
13663 (aarch64_legitimize_reload_address): Support full addressing modes
13665 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13666 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13668 2014-06-03 Andrew Pinski <apinski@cavium.com>
13670 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13673 2014-06-03 Andrew Pinski <apinski@cavium.com>
13675 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13676 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13678 2014-06-03 Kai Tietz <ktietz@redhat.com>
13680 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13683 2014-06-03 Dehao Chen <dehao@google.com>
13685 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13688 2014-06-03 Marek Polacek <polacek@redhat.com>
13691 * doc/invoke.texi: Document -Wswitch-bool.
13692 * function.c (stack_protect_epilogue): Cast controlling expression of
13694 * gengtype.c (walk_type): Generate switch expression with its
13695 controlling expression cast to int.
13697 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13699 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13701 * config/avr/avr-tables.opt: Regenerate.
13702 * config/avr/t-multilib: Regenerate.
13703 * doc/avr-mmcu.texi: Regenerate.
13705 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13706 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13708 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13709 (ata6617c, ata664251): Add new avr35 devices.
13710 (ata6612c): Add new avr4 device.
13711 (ata6613c, ata6614q): Add new avr5 devices.
13712 * config/avr/avr-tables.opt: Regenerate.
13713 * config/avr/t-multilib: Regenerate.
13714 * doc/avr-mmcu.texi: Regenerate.
13716 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13718 * gcc/config/aarch64/aarch64-builtins.c
13719 (aarch64_types_binop_ssu_qualifiers): New static data.
13720 (TYPES_BINOP_SSU): Define.
13721 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13722 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13723 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13724 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13725 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13726 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13727 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13728 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13729 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13730 suffix to builtin function name, remove cast.
13731 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13732 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13733 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13735 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13737 * gcc/config/aarch64/aarch64-builtins.c
13738 (aarch64_types_binop_uus_qualifiers,
13739 aarch64_types_shift_to_unsigned_qualifiers,
13740 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13741 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13742 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13743 sqshlu_n, uqshl_n): Update qualifiers.
13744 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13745 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13746 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13747 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13748 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13749 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13750 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13751 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13752 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13753 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13754 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13755 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13756 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13757 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13758 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13759 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13760 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13761 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13762 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13763 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13764 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13765 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13766 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13767 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13768 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13769 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13770 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13772 2014-06-03 Teresa Johnson <tejohnson@google.com>
13774 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13776 2014-06-02 Jason Merrill <jason@redhat.com>
13779 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13781 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13783 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13786 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13788 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13790 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13791 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13792 * config/aarch64/iterators.md (REVERSE): New iterator.
13793 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13794 (rev_op): New int_attribute.
13795 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13796 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13797 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13798 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13799 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13800 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13801 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13802 Replace temporary __asm__ with __builtin_shuffle.
13804 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13806 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13808 * config/mips/mips-tables.opt: Regenerate.
13809 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13810 to use mips_isa_rev rather than ISA_MIPS32R2.
13811 * config/mips/mips.h (ISA_MIPS32R3): New define.
13812 (ISA_MIPS32R5): New define.
13813 (ISA_MIPS64R3): New define.
13814 (ISA_MIPS64R5): New define.
13815 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13816 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13817 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13819 (MIPS_ISA_SYNCI_SPEC): Likewise.
13820 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13821 (LINK_SPEC): Added mips32r3 and mips32r5.
13822 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13823 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13824 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13825 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13826 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13827 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13828 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13830 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13832 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13834 * config/mips/mips.opt (mxpa): New option.
13835 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13838 2014-06-03 Martin Jambor <mjambor@suse.cz>
13841 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13844 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13846 PR tree-optimization/61328
13847 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13848 initialization from find_bswap_or_nop_1.
13849 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13850 in source_expr2 before using the size value the function sets. Also
13851 make use of init_symbolic_number () in both the old place and
13852 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13853 doing recursion in the GIMPLE_BINARY_RHS case.
13855 2014-06-03 Richard Biener <rguenther@suse.de>
13857 PR tree-optimization/61383
13858 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13861 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13863 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13864 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13865 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13866 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13868 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13869 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13870 * system.h: ...here and make it unconditional.
13871 * target.def (conditional_register_usage): Mention
13872 define_register_constraint instead of old-style constraint macros.
13873 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13874 * doc/tm.texi: Regenerate.
13875 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13876 protected by !USE_MD_CONSTRAINTS.
13877 * config/frv/frv.md: Remove quote from old version of documentation.
13878 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13879 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13880 CONST_DOUBLE_OK_FOR_LETTER.
13881 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13883 2014-06-02 Andrew Pinski <apinski@cavium.com>
13885 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13886 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13887 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13888 file whose name depends on -mabi= and -mbig-endian.
13889 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13890 Handle LP64 better and handle ilp32 too.
13891 (MULTILIB_OPTIONS): Delete.
13892 (MULTILIB_DIRNAMES): Delete.
13894 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13896 * expr.h: Remove prototypes of functions defined in builtins.c.
13897 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13898 Remove prototypes of functions defined in builtins.c.
13899 * builtins.h: Update prototype list to include all exported functions.
13900 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13901 no_c99_libc_has_function): Move to targhooks.c
13902 (build_string_literal, build_call_expr_loc_array,
13903 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13905 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13906 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13907 no_c99_libc_has_function): Relocate from builtins.c.
13908 * tree.c: Include builtins.h.
13909 (build_call_expr_loc_array, build_call_expr_loc_vec,
13910 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13912 * fold-const.h (fold_fma): Move prototype to builtins.h.
13913 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13914 * asan.c: Include builtins.h.
13915 * cfgexpand.c: Likewise.
13916 * convert.c: Likewise.
13917 * emit-rtl.c: Likewise.
13918 * except.c: Likewise.
13919 * expr.c: Likewise.
13920 * fold-const.c: Likewise.
13921 * gimple-fold.c: Likewise.
13922 * gimple-ssa-strength-reduction.c: Likewise.
13923 * gimplify.c: Likewise.
13924 * ipa-inline.c: Likewise.
13925 * ipa-prop.c: Likewise.
13926 * lto-streamer-out.c: Likewise.
13927 * stmt.c: Likewise.
13928 * tree-inline.c: Likewise.
13929 * tree-object-size.c: Likewise.
13930 * tree-sra.c: Likewise.
13931 * tree-ssa-ccp.c: Likewise.
13932 * tree-ssa-forwprop.c: Likewise.
13933 * tree-ssa-loop-ivcanon.c: Likewise.
13934 * tree-ssa-loop-ivopts.c: Likewise.
13935 * tree-ssa-math-opts.c: Likewise.
13936 * tree-ssa-reassoc.c: Likewise.
13937 * tree-ssa-threadedge.c: Likewise.
13938 * tree-streamer-in.c: Likewise.
13939 * tree-vect-data-refs.c: Likewise.
13940 * tree-vect-patterns.c: Likewise.
13941 * tree-vect-stmts.c: Likewise.
13942 * config/aarch64/aarch64.c: Likewise.
13943 * config/alpha/alpha.c: Likewise.
13944 * config/arc/arc.c: Likewise.
13945 * config/arm/arm.c: Likewise.
13946 * config/avr/avr.c: Likewise.
13947 * config/bfin/bfin.c: Likewise.
13948 * config/c6x/c6x.c: Likewise.
13949 * config/cr16/cr16.c: Likewise.
13950 * config/cris/cris.c: Likewise.
13951 * config/epiphany/epiphany.c: Likewise.
13952 * config/fr30/fr30.c: Likewise.
13953 * config/frv/frv.c: Likewise.
13954 * config/h8300/h8300.c: Likewise.
13955 * config/i386/i386.c: Likewise.
13956 * config/i386/winnt.c: Likewise.
13957 * config/ia64/ia64.c: Likewise.
13958 * config/iq2000/iq2000.c: Likewise.
13959 * config/lm32/lm32.c: Likewise.
13960 * config/m32c/m32c.c: Likewise.
13961 * config/m32r/m32r.c: Likewise.
13962 * config/m68k/m68k.c: Likewise.
13963 * config/mcore/mcore.c: Likewise.
13964 * config/mep/mep.c: Likewise.
13965 * config/microblaze/microblaze.c: Likewise.
13966 * config/mips/mips.c: Likewise.
13967 * config/mmix/mmix.c: Likewise.
13968 * config/mn10300/mn10300.c: Likewise.
13969 * config/moxie/moxie.c: Likewise.
13970 * config/msp430/msp430.c: Likewise.
13971 * config/nds32/nds32.c: Likewise.
13972 * config/pa/pa.c: Likewise.
13973 * config/pdp11/pdp11.c: Likewise.
13974 * config/picochip/picochip.c: Likewise.
13975 * config/rl78/rl78.c: Likewise.
13976 * config/rs6000/rs6000.c: Likewise.
13977 * config/rx/rx.c: Likewise.
13978 * config/s390/s390.c: Likewise.
13979 * config/score/score.c: Likewise.
13980 * config/sh/sh.c: Likewise.
13981 * config/sparc/sparc.c: Likewise.
13982 * config/spu/spu.c: Likewise.
13983 * config/stormy16/stormy16.c: Likewise.
13984 * config/tilegx/tilegx.c: Likewise.
13985 * config/tilepro/tilepro.c: Likewise.
13986 * config/v850/v850.c: Likewise.
13987 * config/vax/vax.c: Likewise.
13988 * config/xtensa/xtensa.c: Likewise.
13990 2014-06-02 Jeff Law <law@redhat.com>
13992 PR rtl-optimization/61094
13993 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13994 was marked as do_no_reextend. If a copy is needed to eliminate
13995 an extension, then mark it as do_not_reextend.
13997 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13999 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
14001 2014-06-02 Richard Henderson <rth@redhat.com>
14004 * config/alpha/alpha.c (print_operand_address): Allow symbolic
14005 addresses inside asms. Use output_operand_lossage instead of
14008 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
14011 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
14012 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
14014 2014-06-02 Tom de Vries <tom@codesourcery.com>
14016 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
14017 case that x has VOIDmode.
14019 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
14021 * varasm.c (copy_constant): Delete function.
14022 (build_constant_desc): Don't call it.
14024 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14027 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
14028 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
14029 with immediate_operand.
14031 2014-06-02 Andreas Schwab <schwab@suse.de>
14033 * config/ia64/ia64.c
14034 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
14035 pending_data_specs first.
14037 2014-06-02 Richard Biener <rguenther@suse.de>
14039 PR tree-optimization/61378
14040 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
14041 valueized_anything.
14043 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
14045 * config/i386/constraints.md (Bw): Rename from 'w'.
14046 (Bz): Rename from 'z'.
14047 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
14049 2014-06-01 Kai Tietz <ktietz@redhat.com>
14052 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
14053 * config/i386/i386.md (sibcall_insn_operand): Use Bs
14054 instead of m constraint.
14056 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
14058 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
14059 a separate alternative where the scratch operand 2 is marked as
14062 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
14064 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
14065 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
14066 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
14067 and __builtins_arm_get_fpscr.
14068 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14069 __builtins_arm_get_fpscr.
14070 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
14071 __builtins_arm_ldfpscr.
14072 (arm_atomic_assign_expand_fenv): New function.
14073 * config/arm/vfp.md (set_fpscr): New pattern.
14074 (get_fpscr) : Likewise.
14075 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
14077 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14078 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
14080 2014-05-30 Jakub Jelinek <jakub@redhat.com>
14082 * asan.c (report_error_func): Add SLOW_P argument, use
14083 BUILT_IN_ASAN_*_N if set.
14084 (build_check_stmt): Likewise.
14085 (instrument_derefs): If T has insufficient alignment,
14086 force same handling as for odd sizes.
14088 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
14089 BUILT_IN_ASAN_REPORT_STORE_N): New.
14090 * asan.c (struct asan_mem_ref): Change access_size type to
14092 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
14093 update_mem_ref_hash_table): Likewise.
14094 (asan_mem_ref_hasher::hash): Hash in a HWI.
14095 (report_error_func): Change size_in_bytes argument to HWI.
14096 Use *_N builtins if size_in_bytes is larger than 16 or not power of
14098 (build_shadow_mem_access): New function.
14099 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
14100 Handle size_in_bytes not power of two or larger than 16.
14101 (instrument_derefs): Don't give up if size_in_bytes is not
14102 power of two or is larger than 16.
14104 2014-05-30 Kai Tietz <ktietz@redhat.com>
14107 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
14108 for sibling-tail-calls.
14109 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
14111 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
14112 (sibcall_insn_operand): Add check for sibcall_memory_operand.
14114 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14116 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
14117 * config/avr/avr-tables.opt: Regenerate.
14118 * config/avr/t-multilib: Regenerate.
14119 * doc/avr-mmcu.texi: Regenerate.
14121 2014-05-30 Ian Lance Taylor <iant@google.com>
14123 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
14126 2014-05-30 Tom de Vries <tom@codesourcery.com>
14128 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14131 2014-05-30 Tom de Vries <tom@codesourcery.com>
14133 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14134 * lra.c (initialize_lra_reg_info_element): Add init of
14135 actual_call_used_reg_set field.
14136 (lra): Call lra_create_live_ranges before lra_inheritance for
14138 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14140 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
14141 instead of call_used_reg_set for -fuse-caller-save.
14142 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14144 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14146 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
14148 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
14150 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14152 * ira.c (ira_get_dup_out_num): Check for output operands at
14153 the start of the loop. Handle cases where an included alternative
14154 follows an excluded one.
14156 2014-05-29 Mike Stump <mikestump@comcast.net>
14159 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14160 post ld passes when lto is used.
14162 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14164 PR rtl-optimization/61325
14165 * lra-constraints.c (process_address): Rename to process_address_1.
14166 (process_address): New function.
14168 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14170 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14171 TYPES_BINOPV): New static data.
14172 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14174 * config/aarch64/aarch64-simd.md (aarch64_ext,
14175 aarch64_im_lane_boundsi): New patterns.
14176 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14178 (aarch64_evpc_ext): New function.
14180 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14182 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14183 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14184 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14185 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14186 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14188 2014-05-29 Tom de Vries <tom@codesourcery.com>
14190 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14192 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14193 Richard Sandiford <rdsandiford@googlemail.com>
14195 * arm/iterators.md (shiftable_ops): New code iterator.
14196 (t2_binop0, arith_shift_insn): New code attributes.
14197 * arm/predicates.md (shift_nomul_operator): New predicate.
14198 * arm/arm.md (insn_enabled): Delete.
14199 (enabled): Remove insn_enabled test.
14200 (*arith_shiftsi): Delete. Replace with ...
14201 (*<arith_shift_insn>_multsi): ... new pattern.
14202 (*<arith_shift_insn>_shiftsi): ... new pattern.
14203 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14205 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14206 Tom de Vries <tom@codesourcery.com>
14208 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14209 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14211 (mips_split_call): Use POST_CALL_TMP_REG.
14212 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14214 2014-05-29 Tom de Vries <tom@codesourcery.com>
14216 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14217 with #ifdef STACK_REGS.
14219 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14221 * varasm.c (get_variable_section): Walk aliases.
14222 (place_block_symbol): Walk aliases.
14224 2014-05-28 Tom de Vries <tom@codesourcery.com>
14227 2014-05-28 Tom de Vries <tom@codesourcery.com>
14229 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14230 * lra.c (initialize_lra_reg_info_element): Add init of
14231 actual_call_used_reg_set field.
14232 (lra): Call lra_create_live_ranges before lra_inheritance for
14234 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14236 * lra-constraints.c (need_for_call_save_p): Use
14237 actual_call_used_reg_set instead of call_used_reg_set for
14239 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14241 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14243 * doc/md.texi: Document that the % constraint character must
14244 be at the beginning of the string.
14245 * genoutput.c (validate_insn_alternatives): Check that '=',
14246 '+' and '%' only appear at the beginning of a constraint.
14247 * ira.c (commutative_constraint_p): Delete.
14248 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14249 at the start of the string.
14250 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14252 * config/arm/neon.md (bicdi3_neon): Likewise.
14253 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14254 (slt_si, sltu_si): Likewise.
14255 * config/vax/vax.md (sbcdi3): Likewise.
14256 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14257 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14258 (mul64): Move '%' to beginning of constraint.
14259 * config/arm/arm.md (*xordi3_insn): Likewise.
14260 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14261 (xorsi3): Likewise.
14263 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14265 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14267 2014-05-28 Jason Merrill <jason@redhat.com>
14270 * cgraph.h (symtab_node::get_comdat_group_id): New.
14271 * cgraphunit.c (analyze_functions): Call it.
14272 * symtab.c (dump_symtab_node): Likewise.
14273 * tree.c (decl_comdat_group_id): New.
14274 * tree.h: Declare it.
14275 * lto-streamer-out.c (write_symbol): Use it.
14276 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14278 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14280 PR bootstrap/PR61146
14281 * wide-int.cc: Do not include longlong.h when compiling with clang.
14283 2014-05-28 Richard Biener <rguenther@suse.de>
14285 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14286 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14287 (vrp_visit_assignment_or_call): Print less vertical space.
14288 (vrp_visit_stmt): Likewise.
14289 (vrp_visit_phi_node): Likewise. For a PHI argument with
14290 VR_VARYING range consider recording it as copy.
14292 2014-05-28 Richard Biener <rguenther@suse.de>
14295 2014-05-28 Richard Biener <rguenther@suse.de>
14297 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14299 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14301 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14302 sufficiently aligned and an offset is used at the same time.
14303 (expand_expr_real_1): Likewise.
14305 2014-05-28 Richard Biener <rguenther@suse.de>
14307 PR middle-end/61045
14308 * fold-const.c (fold_comparison): When folding
14309 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14310 the sign of the remaining constant operand stays the same.
14312 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14314 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14315 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14316 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14318 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14319 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14320 (m32bit-doubles) Likewise.
14321 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14322 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14325 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14327 * configure.ac ($gcc_cv_ld_clearcap): New test.
14328 * configure: Regenerate.
14329 * config.in: Regenerate.
14330 * config/sol2.opt (mclear-hwcap): New option.
14331 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14332 * config/sol2-clearcap.map: Moved here from
14333 testsuite/gcc.target/i386/clearcap.map.
14334 * config/sol2-clearcapv2.map: Move here from
14335 gcc.target/i386/clearcapv2.map.
14336 * config/t-sol2 (install): Depend on install-clearcap-map.
14337 (install-clearcap-map): New target.
14338 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14341 2014-05-28 Richard Biener <rguenther@suse.de>
14343 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14344 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14345 ... here and remove the rest.
14346 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14348 2014-05-28 Richard Biener <rguenther@suse.de>
14350 PR tree-optimization/61335
14351 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14352 new range fails, drop to varying.
14354 2014-05-28 Olivier Hainque <hainque@adacore.com>
14356 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14357 (CPP_SPEC): Add entry for -mcpu=8548.
14358 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14359 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14361 2014-05-28 Tom de Vries <tom@codesourcery.com>
14363 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14364 * lra.c (initialize_lra_reg_info_element): Add init of
14365 actual_call_used_reg_set field.
14366 (lra): Call lra_create_live_ranges before lra_inheritance for
14368 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14370 * lra-constraints.c (need_for_call_save_p): Use
14371 actual_call_used_reg_set instead of call_used_reg_set for
14373 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14375 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14376 Tom de Vries <tom@codesourcery.com>
14378 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14380 (@item -fuse-caller-save): New item.
14382 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14383 Tom de Vries <tom@codesourcery.com>
14385 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14386 OPT_fuse_caller_save.
14388 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14389 Tom de Vries <tom@codesourcery.com>
14391 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14392 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14393 get_call_reg_set_usage.
14394 * resource.c (mark_set_resources, mark_target_live_regs): Use
14395 get_call_reg_set_usage.
14396 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14398 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14399 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14400 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14401 * ira-build.c (ira_create_allocno): Init
14402 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14403 (create_cap_allocno, propagate_allocno_info)
14404 (propagate_some_info_from_allocno)
14405 (copy_info_to_removed_store_destinations): Handle
14406 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14407 * ira-costs.c (ira_tune_allocno_costs): Use
14408 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14410 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14411 Tom de Vries <tom@codesourcery.com>
14413 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14414 and function_used_regs_valid fields.
14415 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14416 find_all_hard_reg_sets.
14417 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14418 (get_call_reg_set_usage): New function.
14419 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14420 * regs.h (get_call_reg_set_usage): Declare.
14422 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14425 * config/dbx.h (License): Add Runtime Library Exception.
14426 * config/newlib-stdint.h (License): Same.
14427 * config/rtems.h (License): Same
14428 * config/initfini-array.h (License): Same
14429 * config/v850/v850.h (License): Same.
14430 * config/v850/v850-opts.h (License): Same
14431 * config/v850/rtems.h (License): Same.
14433 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14436 * doc/extend.texi (Local Labels): Note that label differences are
14437 not supported for AVR.
14439 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14440 Olivier Hainque <hainque@adacore.com>
14442 * rtl.h (set_for_reg_notes): Declare.
14443 * emit-rtl.c (set_for_reg_notes): New function.
14444 (set_unique_reg_note): Use it.
14445 * optabs.c (add_equal_note): Likewise
14447 2014-05-27 Andrew Pinski <apinski@cavium.com>
14449 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14450 Use <w> for the register in assembly template.
14451 (stack_protect_test): Use the mode of operands[0] for the result.
14452 (stack_protect_test_<mode>): Use <w> for the register
14453 in assembly template.
14455 2014-05-27 DJ Delorie <dj@redhat.com>
14457 * config/rx/rx.c (add_vector_labels): New.
14458 (rx_output_function_prologue): Call it.
14459 (rx_handle_func_attribute): Don't require empty arguments.
14460 (rx_handle_vector_attribute): New.
14461 (rx_attribute_table): Add "vector" attribute.
14462 * doc/extend.texi (interrupt, vector): Document new/changed
14463 RX-specific attributes.
14465 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14467 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14469 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14470 predicate to detect a negative quotient.
14472 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14474 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14475 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14476 Add X - Y CMP 0 to X CMP Y transformation.
14477 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14479 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14481 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14484 2014-05-27 Steve Ellcey <sellcey@mips.com>
14486 * config/mips/mips.c: Add include of cgraph.h.
14488 2014-05-27 Richard Biener <rguenther@suse.de>
14490 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14492 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14495 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14496 * config/arm/arm-cores.def (License): Same.
14497 * config/arm/arm-opts.h (License): Same.
14498 * config/arm/aout.h (License): Same.
14499 * config/arm/bpabi.h (License): Same.
14500 * config/arm/elf.h (License): Same.
14501 * config/arm/linux-elf.h (License): Same.
14502 * config/arm/linux-gas.h (License): Same.
14503 * config/arm/netbsd-elf.h (License): Same.
14504 * config/arm/uclinux-eabi.h (License): Same.
14505 * config/arm/uclinux-elf.h (License): Same.
14506 * config/arm/vxworks.h (License): Same.
14508 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14510 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14511 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14512 (arm_init_neon_builtins): Handle NEON_BSWAP.
14513 Define required type nodes.
14514 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14515 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14516 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14517 * config/arm/iterators.md (VDQHSD): New mode iterator.
14519 2014-05-27 Richard Biener <rguenther@suse.de>
14521 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14522 Try using literal operands when comparing value-ranges failed.
14524 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14526 * ira.c (commutative_operand): Adjust for change to recog_data.
14527 [Missing from previous commit.]
14529 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14531 * system.h (TEST_BIT): New macro.
14532 * recog.h (alternative_mask): New type.
14533 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14534 (recog_data_d): Replace alternative_enabled_p array with
14535 enabled_alternatives.
14536 (target_recog): New structure.
14537 (default_target_recog, this_target_recog): Declare.
14538 (get_enabled_alternatives, recog_init): Likewise.
14539 * recog.c (default_target_recog, this_target_recog): New variables.
14540 (get_enabled_alternatives): New function.
14541 (extract_insn): Use it.
14542 (recog_init): New function.
14543 (preprocess_constraints, constrain_operands): Adjust for change to
14545 * postreload.c (reload_cse_simplify_operands): Likewise.
14546 * reload.c (find_reloads): Likewise.
14547 * ira-costs.c (record_reg_classes): Likewise.
14548 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14549 all alternatives after a disabled one would be skipped.
14550 (ira_implicitly_set_insn_hard_regs): Likewise.
14551 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14552 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14553 with enabled_alternatives.
14554 * lra.c (free_insn_recog_data): Update accordingly.
14555 (lra_update_insn_recog_data): Likewise.
14556 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14557 * lra-constraints.c (process_alt_operands): Likewise. Handle
14558 only_alternative as part of the enabled mask.
14559 * target-globals.h (this_target_recog): Declare.
14560 (target_globals): Add a recog field.
14561 (restore_target_globals): Restore this_target_recog.
14562 * target-globals.c: Include recog.h.
14563 (default_target_globals): Initialize recog field.
14564 (save_target_globals): Likewise.
14565 * reginfo.c (reinit_regs): Call recog_init.
14566 * toplev.c (backend_init_target): Likewise.
14568 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14570 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14571 rather than any named insn's code.
14573 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14576 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14577 * config/arm/arm-cores.def (License): Same.
14579 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14581 * tree.h (decl_comdat_group): Declare.
14582 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14583 * tree.c (decl_comdat_group): Here.
14585 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14587 PR rtl-optimization/61222
14588 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14589 the shift, truncate the PLUS operand to the result mode.
14591 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14594 * config/i386/i386.c (ix86_rtx_costs)
14595 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14598 2014-05-26 Martin Jambor <mjambor@suse.cz>
14600 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14603 2014-05-26 Richard Biener <rguenther@suse.de>
14605 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14606 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14607 Provide specializations.
14608 (wi::int_traits <HOST_WIDE_INT>,
14609 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14611 2014-05-26 Alan Modra <amodra@gmail.com>
14614 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14615 params and return a bool. Remove dead code. Update comment.
14616 Assert we have a const_int source. Remove bogus code from
14617 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14618 handling of constants > 2G and reg_equal note, from..
14619 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14620 return value. Update comment. If we can, use a new pseudo
14621 for intermediate calculations.
14622 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14624 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14625 call to rs6000_emit_set_const in splitter.
14626 (movdi_internal64+2, +3): Likewise.
14628 2014-05-26 Richard Biener <rguenther@suse.de>
14630 * system.h: Define __STDC_FORMAT_MACROS before
14631 including inttypes.h.
14632 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14633 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14634 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14635 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14636 HOST_WIDEST_INT_C): Remove.
14637 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14638 if C99 inttypes.h is not available.
14639 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14640 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14641 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14642 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14643 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14644 (struct output_info): Likewise.
14645 (print_statistics): Adjust.
14646 (dump_bitmap_statistics): Likewise.
14647 * bt-load.c (migrate_btr_defs): Print with PRId64.
14648 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14649 (MAX_SAFE_MULTIPLIER): Adjust.
14650 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14651 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14652 dump_cgraph_node): Likewise.
14653 * final.c (dump_basic_block_info): Likewise.
14654 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14655 * gcov.c (format_gcov): Likewise.
14656 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14658 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14659 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14660 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14661 Use PRId64 for dumping.
14662 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14663 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14664 (add_allocno_hard_regs): Adjust.
14665 * loop-doloop.c (doloop_modify): Print using PRId64.
14666 * loop-iv.c (inverse): Compute in uint64_t.
14667 (determine_max_iter, iv_number_of_iterations): Likewise.
14668 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14669 Print using PRId64.
14670 * lto-streamer-out.c (write_symbol): Use uint64_t.
14671 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14672 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14673 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14674 * modulo-sched.c (const_iteration_count): Use int64_t.
14675 (sms_schedule): Dump using PRId64.
14676 * predict.c (dump_prediction): Likewise.
14677 * pretty-print.h (pp_widest_integer): Remove.
14678 * profile.c (get_working_sets, is_edge_inconsistent,
14679 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14680 * tree-pretty-print.c (pp_double_int): Remove case handling
14681 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14682 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14684 (pass_optimize_bswap::execute): Remove restriction on hosts.
14685 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14686 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14687 * tree.c (widest_int_cst_value): Remove.
14688 * tree.h (widest_int_cst_value): Likewise.
14689 * value-prof.c (dump_histogram_value): Print using PRId64.
14690 * gengtype.c (main): Also inject int64_t.
14691 * ggc-page.c (struct max_alignment): Use int64_t.
14692 * alloc-pool.c (struct allocation_object_def): Likewise.
14693 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14695 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14696 * doc/tm.texi: Regenerated.
14697 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14698 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14699 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14700 mmix_output_register_setting): Use [u]int64_t in prototypes.
14701 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14702 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14703 mmix_output_octa, mmix_output_shifted_value): Adjust.
14704 (mmix_intval): Adjust. Remove unreachable case.
14705 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14707 2014-05-26 Richard Biener <rguenther@suse.de>
14709 * configure.ac: Drop __int64 type check. Insist that we
14710 found uint64_t and int64_t.
14711 * hwint.h (HOST_BITS_PER___INT64): Remove.
14712 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14713 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14714 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14715 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14716 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14717 for dst_q_src_df_rms_cdt.
14718 * configure: Regenerate.
14719 * config.in: Likewise.
14721 2014-05-26 Michael Tautschnig <mt@debian.org>
14724 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14725 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14727 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14729 PR rtl-optimization/61278
14730 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14732 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14734 PR rtl-optimization/61220
14735 Part of PR rtl-optimization/61225
14736 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14737 insn; skip split_edge for a block with only one successor.
14739 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14741 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14744 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14746 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14747 (update_vtable_references): New function.
14748 (function_and_variable_visibility): Rewrite also vtable initializers.
14749 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14751 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14753 * ggc.h (ggc_grow): New function.
14754 * ggc-none.c (ggc_grow): New function.
14755 * ggc-page.c (ggc_grow): Likewise.
14757 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14759 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14760 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14761 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14762 varpool_externally_visible_p, can_replace_by_local_alias,
14763 update_visibility_by_resolution_info, function_and_variable_visibility,
14764 pass_data_ipa_function_and_variable_visibility,
14765 make_pass_ipa_function_and_variable_visibility,
14766 whole_program_function_and_variable_visibility,
14767 pass_data_ipa_whole_program_visibility,
14768 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14769 * cgraph.h (cgraph_local_node_p): Declare.
14770 * ipa-visibility.c: New file.
14771 * Makefile.in (OBJS): Add ipa-visiblity.o
14773 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14775 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14776 that var decl is available.
14778 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14780 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14781 symtab_node pointer.
14782 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14783 (find_decls_types_r): Do not walk COMDAT_GROUP.
14784 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14785 * varasm.c (make_decl_one_only): Use set_comdat_group;
14786 create node if needed.
14787 * ipa-inline-transform.c (save_inline_function_body): Update
14788 way we decl->symtab mapping.
14789 * symtab.c (symtab_hash, hash_node, eq_node
14790 symtab_insert_node_to_hashtable): Remove.
14791 (symtab_register_node): Update.
14792 (symtab_unregister_node): Update.
14793 (symtab_get_node): Reimplement as inline function.
14794 (symtab_add_to_same_comdat_group): Update.
14795 (symtab_dissolve_same_comdat_group_list): Update.
14796 (dump_symtab_base): Update.
14797 (verify_symtab_base): Update.
14798 (symtab_make_decl_local): Update.
14799 (fixup_same_cpp_alias_visibility): Update.
14800 (symtab_nonoverwritable_alias): Update.
14801 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14802 * ipa.c (update_visibility_by_resolution_info): UPdate.
14803 * bb-reorder.c: Include cgraph.h
14804 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14805 with comdat groups.
14806 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14807 * cgraph.c (cgraph_get_create_node): Update.
14808 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14810 (symtab_get_node): Make inline.
14811 (symtab_insert_node_to_hashtable): Remove.
14812 (symtab_can_be_discarded): Update.
14813 (decl_comdat_group): New function.
14814 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14816 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14818 (read_comdat_group): New function.
14819 (input_node, input_varpool_node): Use it.
14820 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14822 * mips.c (mips_start_unique_function): Likewise.
14823 (ix86_code_end): Likewise.
14824 (rs6000_code_end): Likweise.
14825 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14827 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14829 * gengtype-state.c (fatal_reading_state): Bring offline.
14830 * optabs.c (widening_optab_handler): Bring offline.
14831 * optabs.h (widening_optab_handler): Likewise.
14832 * final.c (get_attr_length_1): Likewise.
14834 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14836 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14838 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14840 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14841 (ppc440-compare): Include shift with dot.
14842 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14843 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14845 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14847 (e6500_sfx2): Include it.
14848 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14849 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14850 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14851 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14852 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14853 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14854 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14855 *lshiftrt_internal1le, *lshiftrt_internal1be,
14856 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14857 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14858 *rotldi3_internal10le, *rotldi3_internal10be,
14859 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14860 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14861 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14862 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14863 define_insns): Use type "shift" in the appropriate alternatives.
14865 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14867 * config/rs6000/rs6000.md (type): Add "logical". Delete
14869 (dot): Adjust comment.
14870 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14871 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14872 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14873 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14874 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14875 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14876 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14877 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14879 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14880 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14881 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14882 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14883 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14884 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14885 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14886 * config/rs6000/8540.md (ppc8540_su): Adjust.
14887 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14888 cell-cmp-microcoded): Adjust.
14889 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14890 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14891 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14892 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14893 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14894 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14895 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14896 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14897 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14899 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14900 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14901 Adjust. Adjust comment.
14902 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14903 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14905 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14907 * config/rs6000/rs6000.md (type): Add "add".
14908 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14909 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14910 define_insns): Use it.
14911 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14913 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14914 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14915 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14916 * config/rs6000/601.md (ppc601-integer): Adjust.
14917 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14918 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14919 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14920 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14921 * config/rs6000/8540.md (ppc8540_su): Adjust.
14922 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14923 cell-cmp-microcoded): Adjust.
14924 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14925 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14926 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14927 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14928 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14929 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14930 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14931 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14932 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14934 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14935 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14936 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14937 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14939 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14941 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14942 "delayed_compare", "var_delayed_compare".
14943 (var_shift): New attribute.
14944 (cell_micro): Adjust.
14945 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14946 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14947 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14948 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14949 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14950 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14951 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14952 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14953 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14954 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14955 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14956 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14957 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14958 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14959 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14960 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14961 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14962 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14963 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14964 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14965 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14966 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14967 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14968 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14969 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14971 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14972 * config/rs6000/440.md (ppc440-integer): Adjust.
14973 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14974 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14975 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14976 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14977 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14978 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14979 * config/rs6000/8540.md (ppc8540_su): Adjust.
14980 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14981 cell-cmp-microcoded): Adjust.
14982 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14983 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14984 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14985 e500mc64_delayed): Adjust.
14986 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14987 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14988 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14989 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14990 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14991 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14992 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14993 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14994 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14996 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14997 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14999 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15001 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
15002 (bits): New mode_attr.
15003 (idiv_ldiv): Delete mode_attr.
15004 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
15005 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15006 rs6000_adjust_priority, is_nonpipeline_insn,
15007 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15009 * config/rs6000/40x.md (ppc403-idiv): Adjust.
15010 * config/rs6000/440.md (ppc440-idiv): Adjust.
15011 * config/rs6000/476.md (ppc476-idiv): Adjust.
15012 * config/rs6000/601.md (ppc601-idiv): Adjust.
15013 * config/rs6000/603.md (ppc603-idiv): Adjust.
15014 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
15015 ppc620-ldiv): Adjust.
15016 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
15017 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
15018 * config/rs6000/8540.md (ppc8540_divide): Adjust.
15019 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
15020 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
15021 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
15022 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
15023 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
15024 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
15025 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
15026 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
15027 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
15028 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
15029 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
15030 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
15031 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
15032 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
15033 * config/rs6000/titan.md (titan_fxu_div): Adjust.
15035 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15037 * config/rs6000/rs6000.md (type): Delete "insert_word",
15038 "insert_dword". Add "insert".
15039 (size): Update comment.
15040 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15041 insn_must_be_first_in_group): Adjust.
15042 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15043 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15044 *insvsi_internal6, insvdi_internal): Adjust.
15046 * config/rs6000/40x.md (ppc403-integer): Adjust.
15047 * config/rs6000/440.md (ppc440-integer): Adjust.
15048 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
15049 * config/rs6000/601.md (ppc601-integer): Adjust.
15050 * config/rs6000/603.md (ppc603-integer): Adjust.
15051 * config/rs6000/6xx.md (ppc604-integer): Adjust.
15052 * config/rs6000/7450.md (ppc7450-integer): Adjust.
15053 * config/rs6000/7xx.md (ppc750-integer): Adjust.
15054 * config/rs6000/8540.md (ppc8540_su): Adjust.
15055 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
15056 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
15057 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15058 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
15059 * config/rs6000/e5500.md (e5500_sfx): Adjust.
15060 * config/rs6000/e6500.md (e6500_sfx): Adjust.
15061 * config/rs6000/mpc.md (mpccore-integer): Adjust.
15062 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
15063 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
15064 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
15065 * config/rs6000/power7.md (power7-integer): Adjust.
15066 * config/rs6000/power8.md (power8-1cyc): Adjust.
15067 * config/rs6000/rs64.md (rs64a-integer): Adjust.
15068 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15070 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15072 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
15073 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
15074 (size): New attribute.
15075 (dot): New attribute.
15076 (cell_micro): Adjust.
15077 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
15078 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
15079 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
15080 umuldi3_highpart): Adjust.
15081 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15082 rs6000_adjust_priority, is_nonpipeline_insn,
15083 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15085 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
15086 ppc405-imul3): Adjust.
15087 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
15088 * config/rs6000/476.md (ppc476-imul): Adjust.
15089 * config/rs6000/601.md (ppc601-imul): Adjust.
15090 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
15091 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
15092 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
15093 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
15094 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
15096 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
15097 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
15098 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
15099 cell-imul): Adjust.
15100 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
15101 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
15102 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
15103 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
15104 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
15105 * config/rs6000/mpc.md (mpccore-imul): Adjust.
15106 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
15107 power4-lmul, power4-imul, power4-imul3): Adjust.
15108 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
15109 power5-lmul, power5-imul, power5-imul3): Adjust.
15110 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
15111 power6-lmul, power6-imul, power6-imul3): Adjust.
15112 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
15113 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
15115 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
15116 rs64a-lmul): Adjust.
15117 * config/rs6000/titan.md (titan_imul): Adjust.
15119 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15121 * config/rs6000/rs6000.md (type): Add new value "halfmul".
15122 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
15123 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
15124 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
15125 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
15126 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
15127 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
15128 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
15129 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
15130 * config/rs6000/titan.md: Delete nonsensical comment.
15131 (titan_imul): Add type imul3.
15132 (titan_mulhw): Remove type imul3; add type halfmul.
15134 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15136 * config/rs6000/rs6000.md (type): Reorder, reformat.
15138 2014-05-23 Martin Jambor <mjambor@suse.cz>
15140 PR tree-optimization/53787
15141 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
15142 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
15143 analysis_done, update all uses.
15144 * ipa-prop.c: Include domwalk.h
15145 (param_analysis_info): Removed.
15146 (param_aa_status): New type.
15147 (ipa_bb_info): Likewise.
15148 (func_body_info): Likewise.
15149 (ipa_get_bb_info): New function.
15150 (aa_overwalked): Likewise.
15151 (find_dominating_aa_status): Likewise.
15152 (parm_bb_aa_status_for_bb): Likewise.
15153 (parm_preserved_before_stmt_p): Changed to use new param AA info.
15154 (load_from_unmodified_param): Accept func_body_info as a parameter
15155 instead of parms_ainfo.
15156 (parm_ref_data_preserved_p): Changed to use new param AA info.
15157 (parm_ref_data_pass_through_p): Likewise.
15158 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15159 (compute_complex_assign_jump_func): Changed to use new param AA info.
15160 (compute_complex_ancestor_jump_func): Likewise.
15161 (ipa_compute_jump_functions_for_edge): Likewise.
15162 (ipa_compute_jump_functions): Removed.
15163 (ipa_compute_jump_functions_for_bb): New function.
15164 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15166 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15167 and info, moved variable declarations down.
15168 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15170 (ipa_analyze_stmt_uses): Likewise.
15171 (ipa_analyze_params_uses): Removed.
15172 (ipa_analyze_params_uses_in_bb): New function.
15173 (ipa_analyze_controlled_uses): Likewise.
15174 (free_ipa_bb_info): Likewise.
15175 (analysis_dom_walker): New class.
15176 (ipa_analyze_node): Handle node-specific forbidden analysis,
15177 initialize and free func_body_info, use dominator walker.
15178 (ipcp_modif_dom_walker): New class.
15179 (ipcp_transform_function): Create and free func_body_info, use
15180 ipcp_modif_dom_walker, moved a lot of functionality there.
15182 2014-05-23 Marek Polacek <polacek@redhat.com>
15183 Jakub Jelinek <jakub@redhat.com>
15185 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15186 * gcc.c (sanitize_spec_function): Likewise.
15187 * convert.c (convert_to_integer): Include "ubsan.h". Add
15188 floating-point to integer instrumentation.
15189 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15190 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15191 SANITIZE_NONDEFAULT.
15192 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15193 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15194 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15195 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15196 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15197 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15198 float/double/long double.
15199 (ubsan_instrument_float_cast): New function.
15200 * ubsan.h (ubsan_instrument_float_cast): Declare.
15202 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15204 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15206 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15207 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15208 Adjust for tailcalling through registers.
15209 * config/aarch64/aarch64.h (enum reg_class): New caller save
15211 (REG_CLASS_NAMES): Likewise.
15212 (REG_CLASS_CONTENTS): Likewise.
15213 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15214 Allow tailcalling without decls.
15216 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15218 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15219 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15221 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15222 gsi, and variables v_* to v*.
15224 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15226 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15228 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15230 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15231 * omp-low.c: Update accordingly.
15233 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15234 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15235 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15236 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15237 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15238 GF_OMP_TARGET_KIND_UPDATE.
15240 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15241 Explicitly enumerate the expected region types.
15243 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15246 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15247 documentation; the old documentation didn't clearly state the
15248 constraints on the contents of the pointed-to storage.
15250 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15252 Fix bootstrap error on ia64
15253 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15254 Return default value.
15256 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15258 PR tree-optimization/54733
15259 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15261 (find_bswap_or_nop_load): New.
15262 (find_bswap_1): Renamed to ...
15263 (find_bswap_or_nop_1): This. Also add support for memory source.
15264 (find_bswap): Renamed to ...
15265 (find_bswap_or_nop): This. Also add support for memory source and
15266 detection of bitwise operations equivalent to load in target
15268 (execute_optimize_bswap): Likewise. Also move its leading comment back
15269 in place and split statement transformation into ...
15270 (bswap_replace): This.
15272 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15274 PR rtl-optimization/61215
15275 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15276 simplify_gen_subreg until final substitution.
15278 2014-05-23 Alan Modra <amodra@gmail.com>
15281 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15282 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15283 Use "Y" constraint rather than "m".
15285 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15287 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15289 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15290 New function declaration.
15291 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15292 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15293 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15294 (aarch64_init_builtins) : Initialize builtins
15295 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15296 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15297 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15298 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15299 and __builtins_aarch64_set_fpsr.
15300 (aarch64_atomic_assign_expand_fenv): New function.
15301 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15302 (get_fpcr) : Likewise.
15303 (set_fpsr) : Likewise.
15304 (get_fpsr) : Likewise.
15305 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15306 and UNSPECV_SET_FPSR.
15307 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15308 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15309 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15311 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15313 PR rtl-optimization/60969
15314 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15315 constraints. Set up mem cost for NO_REGS case.
15317 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15319 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15321 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15323 * config/darwin.c: Include "lto-section-names.h".
15324 (LTO_SEGMENT_NAME): Don't define.
15325 * config/i386/winnt.c: Include "lto-section-names.h".
15326 * lto-streamer.c: Include "lto-section-names.h".
15327 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15328 * lto-wrapper.c: Include "lto-section-names.h".
15329 (LTO_SECTION_NAME_PREFIX): Don't define.
15330 * lto-section-names.h: New file.
15331 * cgraphunit.c: Include "lto-section-names.h".
15333 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15335 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15337 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15340 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15342 2014-05-22 Nick Clifton <nickc@redhat.com>
15344 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15346 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15348 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15349 -> (T)A transformation to integer types.
15351 2014-05-22 Teresa Johnson <tejohnson@google.com>
15353 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15354 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15355 (gcov_rewrite): Use gcov_nonruntime_assert.
15356 (gcov_open): Ditto.
15357 (gcov_write_words): Ditto.
15358 (gcov_write_length): Ditto.
15359 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15360 gcc_assert from IN_LIBGCOV code.
15361 (gcov_read_summary): Use gcov_error to flag profile corruption.
15362 (gcov_sync): Use gcov_nonruntime_assert.
15363 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15364 (gcov_histo_index): Use gcov_nonruntime_assert.
15365 (static void gcov_histogram_merge): Ditto.
15366 (compute_working_sets): Ditto.
15367 * gcov-io.h (gcov_nonruntime_assert): Define.
15368 (gcov_error): Define for !IN_LIBGCOV
15370 2014-05-22 Richard Biener <rguenther@suse.de>
15372 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15373 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15374 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15375 and deallocation site.
15376 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15377 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15378 passing through the incoming points-to set.
15379 (handle_lhs_call): Use flags argument instead of recomputing it.
15380 (find_func_aliases_for_call): Call handle_lhs_call with proper
15383 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15385 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15386 all padding bits in REAL_VALUE_TYPE are cleared.
15388 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15390 Cleanup and improve multipass_dfa_lookahead_guard
15391 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15392 (core2i7_first_cycle_multipass_begin,)
15393 (core2i7_first_cycle_multipass_issue,)
15394 (core2i7_first_cycle_multipass_backtrack): Update signature.
15395 * config/ia64/ia64.c
15396 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15397 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15398 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15400 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15401 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15403 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15405 * doc/tm.texi: Regenerate.
15407 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15408 * haifa-sched.c (ready_try): Make signed to allow negative values.
15409 (rebug_ready_list_1): Update.
15410 (choose_ready): Simplify.
15411 (sched_extend_ready_list): Update.
15413 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15415 Remove IA64 speculation tweaking flags
15416 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15417 speculation tuning flags.
15418 (msched-prefer-non-data-spec-insns,)
15419 (msched-prefer-non-control-spec-insns): Obsolete options.
15420 * haifa-sched.c (choose_ready): Remove handling of
15421 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15422 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15423 and PREFER_NON_DATA_SPEC.
15424 * sel-sched.c (process_spec_exprs): Remove handling of
15425 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15427 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15429 Improve scheduling debug output
15430 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15431 (advance_one_cycle): Update.
15432 (schedule_insn, queue_to_ready): Add debug printouts.
15433 (debug_ready_list_1): New static function.
15434 (debug_ready_list): Update.
15435 (max_issue): Add debug printouts.
15436 (dump_insn_stream): New static function.
15437 (schedule_block): Use it. Also better indent printouts.
15439 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15441 Fix sched_insn debug counter
15442 * haifa-sched.c (schedule_insn): Update.
15443 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15444 (save_backtrack_point, restore_backtrack_point): Update.
15445 (first_nonscheduled_insn): New static function.
15446 (queue_to_ready, choose_ready): Use it.
15447 (schedule_block): Init nonscheduled_insns_begin.
15448 (sched_emit_insn): Update.
15451 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15453 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15455 (aarch64_secondary_reload) : LikeWise.
15456 (aarch64_class_max_nregs) : Remove CORE_REGS.
15457 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15458 (REG_CLASS_NAMES) : Likewise.
15459 (REG_CLASS_CONTENTS) : LikeWise.
15460 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15462 2014-05-21 Guozhi Wei <carrot@google.com>
15465 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15467 (vqdmulhq_n_s16): Likewise.
15469 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15471 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15473 2014-05-21 Marek Polacek <polacek@redhat.com>
15476 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15478 2014-05-21 Martin Jambor <mjambor@suse.cz>
15480 * doc/invoke.texi (Optimize Options): Document parameters
15481 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15482 ipa-cp-array-index-hint-bonus.
15484 2014-05-21 Mark Wielaard <mjw@redhat.com>
15487 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15488 version >= 3 or not strict DWARF.
15489 * langhooks.h (struct lang_hooks_for_types): Add
15490 enum_underlying_base_type.
15491 * langhooks.c (lhd_enum_underlying_base_type): New function.
15492 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15493 enum_underlying_base_type.
15494 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15495 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15496 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15498 2014-05-21 Richard Biener <rguenther@suse.de>
15500 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15502 2014-05-21 John Marino <gnugcc@marino.st>
15504 * config.gcc (*-*-dragonfly*): New target.
15505 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15506 * configure: Regenerate.
15507 * config/dragonfly-stdint.h: New.
15508 * config/dragonfly.h: New.
15509 * config/dragonfly.opt: New.
15510 * config/i386/dragonfly.h: New.
15511 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15513 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15515 * tree.def (VOID_CST): New.
15516 * tree-core.h (TI_VOID): New.
15517 * tree.h (void_node): New.
15518 * tree.c (tree_node_structure_for_code, tree_code_size)
15519 (iterative_hash_expr): Handle VOID_CST.
15520 (build_common_tree_nodes): Initialize void_node.
15522 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15524 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15526 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15528 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15531 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15532 flag_reorder_blocks_and_partition.
15533 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15535 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15538 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15540 (*addc_r_t): Add new insn_and_split.
15542 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15544 PR middle-end/61252
15545 * omp-low.c (handle_simd_reference): New function.
15546 (lower_rec_input_clauses): Use it. Defer adding reference
15547 initialization even for reduction without placeholder if in simd,
15548 handle it properly later on.
15550 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15552 PR tree-optimization/60899
15553 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15554 assume all static symbols will have definition wile parsing and
15555 check the do have definition later in compilation; check that
15556 variable referring symbol will be output before concluding that
15557 reference is safe; be conservative for referring local statics;
15558 be more precise about when comdat is output in other partition.
15560 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15563 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15565 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15566 (ipa_inline): Loop inline_to_all_callers until no more aliases
15569 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15571 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15572 set writeonly flag only for vars actually written to.
15574 2014-05-20 Dehao Chen <dehao@google.com>
15576 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15577 and callee count to get clone count.
15578 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15579 count in copy_body.
15581 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15583 PR rtl-optimization/61243
15584 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15586 2014-05-20 Xinliang David Li <davidxl@google.com>
15588 * cgraphunit.c (walk_polymorphic_call_targets): Add
15589 dbgcnt and fopt-info support.
15590 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15591 * ipa-devirt.c (ipa_devirt): Ditto.
15592 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15593 * ipa.c (walk_polymorphic_call_targets): Ditto.
15594 * gimple-fold.c (fold_gimple_assign): Ditto.
15595 (gimple_fold_call): Ditto.
15596 * dbgcnt.def: New counter.
15598 2014-05-20 DJ Delorie <dj@redhat.com>
15600 * config/msp430/msp430.md (split): Don't allow subregs when
15601 splitting SImode adds.
15602 (andneghi): Fix subtraction logic.
15603 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15605 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15607 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15609 * except.c (switch_to_exception_section, resolve_unique_section,
15610 get_named_text_section, default_function_rodata_section,
15611 align_variable, get_block_for_decl, default_section_type_flags):
15612 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15613 * symtab.c (symtab_add_to_same_comdat_group,
15614 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15615 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15617 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15618 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15619 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15620 (c6x_function_in_section_p): Likewise.
15621 * config/darwin.c (machopic_select_section): Likewise.
15622 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15623 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15624 * config/mep/mep.c (mep_select_section): LIkewise.
15625 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15627 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15629 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15630 EH region of calls to pure functions that can throw an exception.
15631 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15632 (copy_reference_ops_from_call): Also copy the EH region of the call if
15633 it can throw an exception.
15635 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15637 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15638 nested VEC_SELECTs that are inverses of each other.
15640 2014-05-20 Richard Biener <rguenther@suse.de>
15642 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15643 (extract_and_process_scc_for_name): not here.
15644 (cond_dom_walker::before_dom_children): Only process
15645 stmts that end the BB in interesting ways.
15646 (run_scc_vn): Mark param uses as visited.
15648 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15650 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15653 2014-05-20 Nick Clifton <nickc@redhat.com>
15655 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15656 (msp430_gimplify_va_arg_expr): New function.
15657 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15659 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15660 operand 0 in order to prevent confusion about the number of
15661 registers involved.
15663 2014-05-20 Richard Biener <rguenther@suse.de>
15665 PR tree-optimization/61221
15666 * tree-ssa-pre.c (el_to_update): Remove.
15667 (eliminate_dom_walker::before_dom_children): Handle released
15668 VDEFs by value-numbering them to the associated VUSE. Update
15669 stmt immediately for substituted call address.
15670 (eliminate): Remove delayed stmt updating code.
15671 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15672 possibly late re-numbered vuses.
15673 (vn_reference_lookup_2): Adjust.
15674 (vn_reference_lookup_pieces): Likewise.
15675 (vn_reference_lookup): Likewise.
15677 2014-05-20 Richard Biener <rguenther@suse.de>
15679 * config.gcc: Remove need_64bit_hwint.
15680 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15681 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15683 * config.in: Regenerate.
15684 * configure: Likewise.
15686 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15688 * doc/extend.texi: Create Label Attributes section,
15689 move all label attributes into it and reference it.
15691 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15693 * arm.c (thumb1_reorg): When scanning backwards skip anything
15694 that's not a proper insn.
15696 2014-05-19 Richard Biener <rguenther@suse.de>
15698 PR tree-optimization/61221
15699 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15700 Do nothing for unreachable blocks.
15701 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15702 Improve unreachability detection.
15704 2014-05-19 Richard Biener <rguenther@suse.de>
15706 PR tree-optimization/61209
15707 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15709 2014-05-19 Nick Clifton <nickc@redhat.com>
15711 * except.c (init_eh): Fix computation of builtin setjmp buffer
15712 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15714 2014-05-19 Richard Biener <rguenther@suse.de>
15716 PR tree-optimization/61184
15717 * tree-vrp.c (is_negative_overflow_infinity): Use
15718 TREE_OVERFLOW_P and do that check first.
15719 (is_positive_overflow_infinity): Likewise.
15720 (is_overflow_infinity): Likewise.
15721 (vrp_operand_equal_p): Properly treat operands with
15722 differing overflow as not equal.
15724 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15726 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15727 shift simplification where it was intended.
15729 2014-05-19 Christian Bruel <christian.bruel@st.com>
15732 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15734 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15737 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15740 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15742 * reg-notes.def (CROSSING_JUMP): Likewise.
15743 * rtl.h (rtx_def): Update comment for jump flag.
15744 (CROSSING_JUMP_P): Define.
15745 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15746 of a REG_CROSSING_JUMP note.
15747 * cfghooks.c (tidy_fallthru_edges): Likewise.
15748 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15749 * emit-rtl.c (try_split): Likewise.
15750 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15751 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15752 * jump.c (redirect_jump_2): Likewise.
15753 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15754 (relax_delay_slots): Likewise.
15755 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15756 (bbit_di): Likewise.
15757 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15758 * config/sh/sh.md (jump_compact): Likewise.
15759 * bb-reorder.c (rotate_loop): Likewise.
15760 (pass_duplicate_computed_gotos::execute): Likewise.
15761 (add_reg_crossing_jump_notes): Rename to...
15762 (update_crossing_jump_flags): ...this.
15763 (pass_partition_blocks::execute): Update accordingly.
15765 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15767 * tree.h: Remove extraneous template <>.
15769 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15771 * ipa.c (symtab_remove_unreachable_nodes): Remove
15772 symbol from comdat group if its body was eliminated.
15773 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15774 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15775 (symtab_unregister_node): ... this one.
15776 (verify_symtab_base): More strict checking of comdats.
15777 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15779 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15781 * tree-pass.h (make_pass_ipa_comdats): New pass.
15782 * timevar.def (TV_IPA_COMDATS): New timevar.
15783 * passes.def (pass_ipa_comdats): Add.
15784 * Makefile.in (OBJS): Add ipa-comdats.o
15785 * ipa-comdats.c: New file.
15787 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15789 * ipa.c (update_visibility_by_resolution_info): New function.
15790 (function_and_variable_visibility): Use it.
15792 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15794 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15796 (FOR_EACH_DEFINED_SYMBOL): New macro.
15797 (varpool_first_static_initializer, varpool_next_static_initializer,
15798 varpool_first_defined_variable, varpool_next_defined_variable):
15800 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15802 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15804 * ggc-page.c (ggc_handle_finalizers): Add comment.
15806 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15808 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15809 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15810 (ggc_internal_cleared_alloc): Likewise.
15811 * ggc-page.c (finalizer): New class.
15812 (vec_finalizer): Likewise.
15813 (globals::finalizers): New member.
15814 (globals::vec_finalizers): Likewise.
15815 (ggc_internal_alloc): Record the finalizer if any for the block being
15817 (ggc_handle_finalizers): New function.
15818 (ggc_collect): Call ggc_handle_finalizers.
15819 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15821 (ggc_internal_cleared_alloc): Likewise.
15822 (finalize): New function.
15823 (need_finalization_p): Likewise.
15824 (ggc_alloc): Install the type's destructor as the finalizer if it
15825 might do something.
15826 (ggc_cleared_alloc): Likewise.
15827 (ggc_vec_alloc): Likewise.
15828 (ggc_cleared_vec_alloc): Likewise.
15830 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15832 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15834 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15836 * alias.c (record_alias_subset): Adjust.
15837 * bitmap.c (bitmap_element_allocate): Likewise.
15838 (bitmap_gc_alloc_stat): Likewise.
15839 * cfg.c (init_flow): Likewise.
15840 (alloc_block): Likewise.
15841 (unchecked_make_edge): Likewise.
15842 * cfgloop.c (alloc_loop): Likewise.
15843 (flow_loops_find): Likewise.
15844 (rescan_loop_exit): Likewise.
15845 * cfgrtl.c (init_rtl_bb_info): Likewise.
15846 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15847 (cgraph_allocate_node): Likewise.
15848 (cgraph_create_edge_1): Likewise.
15849 (cgraph_allocate_init_indirect_info): Likewise.
15850 * cgraphclones.c (cgraph_clone_edge): Likewise.
15851 * cgraphunit.c (add_asm_node): Likewise.
15852 (init_lowered_empty_function): Likewise.
15853 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15854 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15855 (alpha_use_linkage): Likewise.
15856 * config/arc/arc.c (arc_init_machine_status): Likewise.
15857 * config/arm/arm.c (arm_init_machine_status): Likewise.
15858 * config/avr/avr.c (avr_init_machine_status): Likewise.
15859 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15860 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15861 * config/cris/cris.c (cris_init_machine_status): Likewise.
15862 * config/darwin.c (machopic_indirection_name): Likewise.
15863 (darwin_build_constant_cfstring): Likewise.
15864 (darwin_enter_string_into_cfstring_table): Likewise.
15865 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15866 * config/frv/frv.c (frv_init_machine_status): Likewise.
15867 * config/i386/i386.c (get_dllimport_decl): Likewise.
15868 (ix86_init_machine_status): Likewise.
15869 (assign_386_stack_local): Likewise.
15870 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15871 (i386_pe_maybe_record_exported_symbol): Likewise.
15872 (i386_pe_record_stub): Likewise.
15873 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15874 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15875 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15876 (m32c_note_pragma_address): Likewise.
15877 * config/mep/mep.c (mep_init_machine_status): Likewise.
15878 (mep_note_pragma_flag): Likewise.
15879 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15880 (mips16_local_alias): Likewise.
15881 (mips_init_machine_status): Likewise.
15882 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15883 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15884 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15885 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15886 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15887 * config/pa/pa.c (pa_init_machine_status): Likewise.
15888 (pa_get_deferred_plabel): Likewise.
15889 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15890 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15891 (rs6000_init_machine_status): Likewise.
15892 (output_toc): Likewise.
15893 * config/s390/s390.c (s390_init_machine_status): Likewise.
15894 * config/score/score.c (score_output_external): Likewise.
15895 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15896 * config/spu/spu.c (spu_init_machine_status): Likewise.
15897 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15898 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15899 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15900 * coverage.c (coverage_end_function): Likewise.
15901 * dbxout.c (dbxout_init): Likewise.
15902 * doc/gty.texi: Don't mention variable_size attribute.
15903 * dwarf2cfi.c (new_cfi): Adjust.
15904 (new_cfi_row): Likewise.
15905 (copy_cfi_row): Likewise.
15906 (create_cie_data): Likewise.
15907 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15908 (new_loc_descr): Likewise.
15909 (find_AT_string_in_table): Likewise.
15910 (add_addr_table_entry): Likewise.
15911 (new_die): Likewise.
15912 (add_var_loc_to_decl): Likewise.
15913 (clone_die): Likewise.
15914 (clone_as_declaration): Likewise.
15915 (break_out_comdat_types): Likewise.
15916 (new_loc_list): Likewise.
15917 (add_loc_descr_to_each): Likewise.
15918 (add_location_or_const_value_attribute): Likewise.
15919 (add_linkage_name): Likewise.
15920 (lookup_filename): Likewise.
15921 (dwarf2out_var_location): Likewise.
15922 (new_line_info_table): Likewise.
15923 (dwarf2out_init): Likewise.
15924 (mem_loc_descriptor): Likewise.
15925 (loc_descriptor): Likewise.
15926 (add_const_value_attribute): Likewise.
15927 (tree_add_const_value_attribute): Likewise.
15928 (comp_dir_string): Likewise.
15929 (dwarf2out_vms_debug_main_pointer): Likewise.
15930 (string_cst_pool_decl): Likewise.
15931 * emit-rtl.c (set_mem_attrs): Likewise.
15932 (get_reg_attrs): Likewise.
15933 (start_sequence): Likewise.
15934 (init_emit): Likewise.
15935 (init_emit_regs): Likewise.
15936 * except.c (init_eh_for_function): Likewise.
15937 (gen_eh_region): Likewise.
15938 (gen_eh_region_catch): Likewise.
15939 (gen_eh_landing_pad): Likewise.
15940 (add_call_site): Likewise.
15941 * function.c (add_frame_space): Likewise.
15942 (insert_temp_slot_address): Likewise.
15943 (assign_stack_temp_for_type): Likewise.
15944 (get_hard_reg_initial_val): Likewise.
15945 (allocate_struct_function): Likewise.
15946 (prepare_function_start): Likewise.
15947 (types_used_by_var_decl_insert): Likewise.
15948 * gengtype.c (variable_size_p): Remove function.
15949 (enum alloc_quantity): Remove enum.
15950 (write_typed_alloc_def): Remove function.
15951 (write_typed_struct_alloc_def): Likewise.
15952 (write_typed_typedef_alloc_def): Likewise.
15953 (write_typed_alloc_defns): Likewise.
15955 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15956 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15957 * ggc.h (ggc_alloc): new function.
15958 (ggc_cleared_alloc): Likewise.
15959 (ggc_vec_alloc): Template on type of vector element, and remove
15960 element size argument.
15961 (ggc_cleared_vec_alloc): Likewise.
15962 * gimple.c (gimple_build_omp_for): Adjust.
15963 (gimple_copy): Likewise.
15964 * ipa-cp.c (get_replacement_map): Likewise.
15965 (find_aggregate_values_for_callers_subset): Likewise.
15966 (known_aggs_to_agg_replacement_list): Likewise.
15967 * ipa-devirt.c (get_odr_type): Likewise.
15968 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15969 (read_agg_replacement_chain): Likewise.
15970 * loop-iv.c (get_simple_loop_desc): Likewise.
15971 * lto-cgraph.c (input_node_opt_summary): Likewise.
15972 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15973 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15974 (input_eh_region): Likewise.
15975 (input_eh_lp): Likewise.
15976 (input_cfg): Likewise.
15977 * optabs.c (set_optab_libfunc): Likewise.
15978 (init_tree_optimization_optabs): Likewise.
15979 (set_conv_libfunc): Likewise.
15980 * passes.c (do_per_function_toporder): Likewise.
15981 * rtl.h: Don't use variable_size gty attribute.
15982 * sese.c (if_region_set_false_region): Adjust.
15983 * stringpool.c (gt_pch_save_stringpool): Likewise.
15984 * target-globals.c (save_target_globals): Likewise.
15985 * toplev.c (general_init): Likewise.
15986 * trans-mem.c (record_tm_replacement): Likewise.
15987 (split_bb_make_tm_edge): Likewise.
15988 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15989 * tree-data-ref.h (lambda_vector_new): Likewise.
15990 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15991 * tree-iterator.c (tsi_link_before): Likewise.
15992 (tsi_link_after): Likewise.
15993 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15994 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15995 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15996 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15997 * tree-ssa.c (init_tree_ssa): Adjust.
15998 * tree-ssanames.c (set_range_info): Likewise.
15999 (get_ptr_info): Likewise.
16000 (duplicate_ssa_name_ptr_info): Likewise.
16001 (duplicate_ssa_name_range_info): Likewise.
16002 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
16003 (unpack_ts_fixed_cst_value_fields): Likewise.
16004 * tree.c (build_fixed): Likewise.
16005 (build_real): Likewise.
16006 (build_string): Likewise.
16007 (decl_priority_info): Likewise.
16008 (decl_debug_expr_insert): Likewise.
16009 (decl_value_expr_insert): Likewise.
16010 (decl_debug_args_insert): Likewise.
16011 (type_hash_add): Likewise.
16012 (build_omp_clause): Likewise.
16013 * ubsan.c (decl_for_type_insert): Likewise.
16014 * varasm.c (get_unnamed_section): Likewise.
16015 (get_noswitch_section): Likewise.
16016 (get_section): Likewise.
16017 (get_block_for_section): Likewise.
16018 (create_block_symbol): Likewise.
16019 (build_constant_desc): Likewise.
16020 (create_constant_pool): Likewise.
16021 (force_const_mem): Likewise.
16022 (record_tm_clone_pair): Likewise.
16023 * varpool.c (varpool_create_empty_node): Likewise.
16025 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16027 * dwarf2out.c (tree_add_const_value_attribute): Call
16028 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
16029 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
16030 instead of ggc_internal_<x>alloc_stat.
16031 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
16032 (ggc_realloc): Likewise.
16033 * ggc-none.c (ggc_internal_alloc): Likewise.
16034 (ggc_internal_cleared_alloc): Likewise.
16035 * ggc-page.c: Likewise.
16036 * ggc.h (ggc_internal_alloc_stat): Likewise.
16037 (ggc_internal_alloc): Remove macro.
16038 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
16039 (ggc_internal_cleared_alloc): Remove macro.
16040 (GGC_RESIZEVEC): Adjust.
16041 (ggc_resizevar): Remove macro.
16042 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
16043 (ggc_internal_cleared_vec_alloc_stat): Likewise.
16044 (ggc_internal_vec_cleared_alloc): Remove macro.
16045 (ggc_alloc_atomic_stat): Drop _stat suffix.
16046 (ggc_alloc_atomic): Remove macro.
16047 (ggc_alloc_cleared_atomic): Remove macro.
16048 (ggc_alloc_string_stat): Drop _stat suffix.
16049 (ggc_alloc_string): Remove macro.
16050 (ggc_alloc_rtx_def_stat): Adjust.
16051 (ggc_alloc_tree_node_stat): Likewise.
16052 (ggc_alloc_cleared_tree_node_stat): Likewise.
16053 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
16054 (ggc_alloc_cleared_simd_clone_stat): Likewise.
16055 * gimple.c (gimple_build_omp_for): Likewise.
16056 (gimple_copy): Likewise.
16057 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
16058 * toplev.c (realloc_for_line_map): Adjust.
16059 * tree-data-ref.h (lambda_vector_new): Likewise.
16060 * tree-phinodes.c (allocate_phi_node): Likewise.
16061 * tree.c (grow_tree_vec_stat): Likewise.
16062 * vec.h (va_gc::reserve): Adjust.
16064 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
16066 * config/microblaze/microblaze.c (break_handler): New Declaration.
16067 (microblaze_break_function_p,microblaze_is_break_handler): New.
16068 (compute_frame_size): Use microblaze_break_function_p.
16069 Add the test of break_handler.
16070 (microblaze_function_prologue) : Add the test of variable
16071 break_handler. Check the fnname by BREAK_HANDLER_NAME.
16072 (microblaze_function_epilogue) : Add the test of break_handler.
16073 (microblaze_globalize_label) : Add the test of break_handler.
16074 Check the name by BREAK_HANDLER_NAME.
16076 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
16078 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
16079 microblaze_is_break_handler test.
16080 (call_internal1,call_value_intern): Use microblaze_break_function_p.
16081 Use SYMBOL_REF_DECL.
16083 * config/microblaze/microblaze-protos.h
16084 (microblaze_break_function_p,microblaze_is_break_handler):
16087 * doc/extend.texi (MicroBlaze break_handler Functions): Document
16088 new MicroBlaze break_handler functions.
16090 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16092 * doc/extend.texi (Size of an asm): Move node text according
16093 to its @menu entry position.
16095 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
16097 PR tree-optimization/61140
16098 PR tree-optimization/61150
16099 PR tree-optimization/61197
16100 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
16102 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16104 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
16106 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
16108 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
16109 __SIZEOF_INT128__ is defined.
16111 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16113 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
16114 (rs6000_delegitimize_address): Use it.
16116 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16118 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
16119 inplace argument. Store the new address in the original MEM when true.
16120 * emit-rtl.c (change_address_1): Likewise.
16121 (adjust_address_1, adjust_automodify_address_1, offset_address):
16122 Update accordingly.
16123 * rtl.h (plus_constant): Add an inplace argument.
16124 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
16125 when true. Avoid generating (plus X (const_int 0)).
16126 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
16127 in-place. Pass true to plus_constant.
16128 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
16130 2014-05-16 Dehao Chen <dehao@google.com>
16132 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
16134 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16137 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
16139 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
16141 2014-05-16 Dehao Chen <dehao@google.com>
16143 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
16144 optimize_function_for_size_p.
16145 * regs.h (REG_FREQ_FROM_BB): Likewise.
16147 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16150 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
16151 negt_reg_operand cases.
16152 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
16154 * config/sh/predicates.md (cbranch_treg_value): Simplify.
16156 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16158 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16161 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16164 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16166 * tree-cfg.c (dump_function_to_file): Dump the return type of
16167 functions, in a line to itself before the function body, mimicking
16168 the layout of a C function.
16170 2014-05-16 Dehao Chen <dehao@google.com>
16172 * cfghooks.c (make_forwarder_block): Use direct computation to
16173 get fall-through edge's count and frequency.
16175 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16177 * config/arc/arc.c (arc_init): Fix typo in error message.
16178 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16179 (split_stack_prologue_scratch_regno): Likewise.
16180 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16181 word from error message.
16183 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16185 * ira-costs.c: Fix typo in comment.
16187 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16189 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16191 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16193 * varpool.c (dump_varpool_node): Dump write-only flag.
16194 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16196 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16197 write-only variables.
16198 * ipa.c (process_references): New function.
16199 (set_readonly_bit): New function.
16200 (set_writeonly_bit): New function.
16201 (clear_addressable_bit): New function.
16202 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16203 fix handling of aliases.
16204 * cgraph.h (struct varpool_node): Add writeonly flag.
16206 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16208 PR rtl-optimization/60969
16209 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16210 Calculate costs for this case.
16212 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16214 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16215 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16217 2014-05-16 Richard Biener <rguenther@suse.de>
16219 PR tree-optimization/61194
16220 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16221 bool patterns ending in a COND_EXPR.
16223 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16225 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16227 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16229 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16230 where we were unable to cost an RTX.
16232 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16234 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16237 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16238 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16240 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16242 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16243 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16245 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16246 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16248 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16249 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16251 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16254 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16255 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16257 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16260 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16261 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16263 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16264 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16266 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16267 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16269 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16270 rotates and shifts.
16272 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16273 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16275 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16276 ZERO_EXTEND and SIGN_EXTEND better.
16278 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16279 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16281 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16282 logical operations.
16284 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16285 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16287 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16288 costs when costing loads and stores to memory.
16290 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16291 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16293 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16296 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16298 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16300 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16301 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16303 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16305 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16307 (aarch64_rtx_mult_cost): New.
16308 (aarch64_rtx_costs): Use it, refactor as appropriate.
16310 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16311 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16313 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16314 emit instructions, return number of instructions which would
16316 (aarch64_add_constant): Update call to aarch64_build_constant.
16317 (aarch64_output_mi_thunk): Likewise.
16318 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16321 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16323 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16324 (TARGET_RTX_COSTS): Call it.
16326 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16328 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16329 (cortexa57_vector_cost): Likewise.
16330 (cortexa57_tunings): Use them.
16332 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16334 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16335 (cpu_addrcost_table): Use it.
16336 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16337 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16340 2014-05-16 Richard Biener <rguenther@suse.de>
16342 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16343 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16344 (visit_phi): Ignore edges marked as not executable.
16345 (class cond_dom_walker): New.
16346 (cond_dom_walker::before_dom_children): Value-number
16347 control statements and mark successor edges as not
16348 executable if possible.
16349 (run_scc_vn): First walk all control statements in
16350 dominator order, marking edges as not executable.
16351 * tree-inline.c (copy_edges_for_bb): Be not confused
16352 about random edge flags.
16354 2014-05-16 Richard Biener <rguenther@suse.de>
16356 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16358 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16361 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16362 (__TM_simple_begin): Use it.
16363 (__TM_begin): Likewise.
16365 2014-05-15 Martin Jambor <mjambor@suse.cz>
16368 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16369 type_preserved flag when the indirect edge is polymorphic.
16371 2014-05-15 Martin Jambor <mjambor@suse.cz>
16373 PR tree-optimization/61090
16374 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16375 build_ref_for_model.
16377 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16379 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16380 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16382 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16384 PR tree-optimization/61158
16385 * fold-const.c (fold_binary_loc): If X is zero-extended and
16386 shiftc >= prec, make sure zerobits is all ones instead of
16387 invoking undefined behavior.
16389 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16391 * regcprop.h: New file.
16392 * regcprop.c (skip_debug_insn_p): New decl.
16393 (replace_oldest_value_reg): Check skip_debug_insn_p.
16394 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16395 * shrink-wrap.c: Include regcprop.h.
16396 (prepare_shrink_wrap): Call
16397 copyprop_hardreg_forward_bb_without_debug_insn.
16399 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16401 * shrink-wrap.h: Update comment.
16402 * shrink-wrap.c: Update comment.
16403 (next_block_for_reg): Rename to live_edge_for_reg.
16404 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16405 (move_insn_for_shrink_wrap): Split live_edge.
16406 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16408 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16410 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16412 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16413 * config/sparc/sparc.md (fptype_ut699): New attribute.
16414 (in_branch_delay): Return false if -mfix-ut699 is specified and
16415 fptype_ut699 is set to single.
16416 (truncdfsf2): Add fptype_ut699 attribute.
16417 (fix_truncdfsi2): Likewise.
16418 (floatsisf2): Change fptype attribute.
16419 (fix_truncsfsi2): Likewise.
16420 (negtf2_notv9): Delete.
16421 (negtf2_v9): Likewise.
16422 (negtf2_hq): New instruction.
16423 (negtf2): New instruction and splitter.
16424 (negdf2_notv9): Rewrite.
16425 (abstf2_notv9): Delete.
16426 (abstf2_hq_v9): Likewise.
16427 (abstf2_v9): Likewise.
16428 (abstf2_hq): New instruction.
16429 (abstf2): New instruction and splitter.
16430 (absdf2_notv9): Rewrite.
16432 2014-05-14 Cary Coutant <ccoutant@google.com>
16435 * opts.c (common_handle_option): Don't special-case "-g".
16436 (set_debug_level): Default to at least level 2 with "-g".
16438 2014-05-14 DJ Delorie <dj@redhat.com>
16440 * config/msp430/msp430.c (msp430_builtin): Add
16441 MSP430_BUILTIN_DELAY_CYCLES.
16442 (msp430_init_builtins): Register void __delay_cycles(long long).
16443 (msp430_builtin_decl): Add it.
16444 (cg_magic_constant): New.
16445 (msp430_expand_delay_cycles): New.
16446 (msp430_expand_builtin): Call it.
16447 (msp430_print_operand_raw): Change integer printing from "int" to
16449 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16450 (delay_cycles_start): New.
16451 (delay_cycles_end): New.
16452 (delay_cycles_32): New.
16453 (delay_cycles_32x): New.
16454 (delay_cycles_16): New.
16455 (delay_cycles_16x): New.
16456 (delay_cycles_2): New.
16457 (delay_cycles_1): New.
16458 * doc/extend.texi: Document __delay_cycles().
16460 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16462 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16463 length attribute computation.
16465 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16468 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16470 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16473 * config/sparc/sparc.md: Fix types of low and high in DI constant
16474 splitter. Use gen_int_mode in some other splitters.
16476 2014-05-14 Martin Jambor <mjambor@suse.cz>
16479 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16481 2014-05-14 James Norris <jnorris@codesourcery.com>
16483 * omp-low.c (expand_parallel_call): Remove shadow variable.
16484 (expand_omp_taskreg): Likewise.
16486 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16488 * common/config/i386/i386-common.c
16489 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16490 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16491 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16492 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16493 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16494 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16495 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16496 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16497 xsavecintrin.h, xsavesintrin.h.
16498 (x86_64-*-*): Ditto.
16499 * config/i386/clflushoptintrin.h: New.
16500 * config/i386/xsavecintrin.h: Ditto.
16501 * config/i386/xsavesintrin.h: Ditto.
16502 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16503 (bit_XSAVES): Ditto.
16504 (bit_XSAVES): Ditto.
16505 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16506 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16508 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16509 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16510 OPTION_MASK_ISA_XSAVES.
16511 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16512 -mxsavec, -mxsaves.
16513 (PTA_CLFLUSHOPT) Define.
16514 (PTA_XSAVEC): Ditto.
16515 (PTA_XSAVES): Ditto.
16516 (ix86_option_override_internal): Handle new options.
16517 (ix86_valid_target_attribute_inner_p): Ditto.
16518 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16519 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16520 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16521 (bdesc_special_args): Add __builtin_ia32_xsaves,
16522 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16523 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16524 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16525 (ix86_expand_builtin): Handle new builtins.
16526 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16527 (TARGET_CLFLUSHOPT_P): Ditto.
16528 (TARGET_XSAVEC): Ditto.
16529 (TARGET_XSAVEC_P): Ditto.
16530 (TARGET_XSAVES): Ditto.
16531 (TARGET_XSAVES_P): Ditto.
16532 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16533 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16534 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16536 (ANY_XRSTOR64): Ditto.
16538 (xrstor): Change into <xrstor>.
16539 (xrstor_rex64): Change into <xrstor>_rex64.
16540 (xrstor64): Change into <xrstor>64
16542 * config/i386/i386.opt (mclflushopt): New.
16545 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16547 * doc/invoke.texi: Document new options.
16549 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16551 PR rtl-optimization/60866
16552 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16553 Default it to -1. Pass it down to init_simplejump_data.
16554 (init_simplejump_data): New parameter old_seqno. Pass it down
16555 to get_seqno_for_a_jump.
16556 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16557 initializing new jump seqno as a last resort. Add comment.
16558 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16559 jump and pass it down to sel_init_new_insn.
16560 (sel_redirect_edge_and_branch_force): Likewise.
16562 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16564 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16565 shifted values to avoid build warning.
16567 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16569 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16570 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16571 (cfg_layout_merge_blocks): Likewise.
16572 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16574 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16576 PR rtl-optimization/60901
16577 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16578 bb predecessor belongs to the same scheduling region. Adjust comment.
16580 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16582 * doc/sourcebuild.texi: (dfp_hw): Document.
16583 (p8vector_hw): Likewise.
16584 (powerpc_eabi_ok): Likewise.
16585 (powerpc_elfv2): Likewise.
16586 (powerpc_htm_ok): Likewise.
16587 (ppc_recip_hw): Likewise.
16588 (vsx_hw): Likewise.
16590 2014-05-13 Cary Coutant <ccoutant@google.com>
16592 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16594 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16596 * gengtype-parse.c (require3): Eliminate in favor of...
16598 (require_template_declaration): Update to support optional single *
16601 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16602 (create_user_defined_type): Handle a single level of explicit
16603 pointerness within template arguments.
16604 (struct write_types_data): Add field "kind".
16605 (filter_type_name): Handle "*" character.
16606 (write_user_func_for_structure_ptr): Require a write_types_data
16607 rather than just a prefix string, so that we can look up the kind
16608 of the wtd and use it as an index into wrote_user_func_for_ptr,
16609 ensuring that such functions are written at most once. Support
16610 subclasses by invoking the marking function of the ultimate base class.
16611 (write_user_func_for_structure_body): Require a write_types_data
16612 rather than just a prefix string, so that we can pass this to
16613 write_user_func_for_structure_ptr.
16614 (write_func_for_structure): Likewise.
16615 (ggc_wtd): Add initializer of new "kind" field.
16616 (pch_wtd): Likewise.
16618 * gengtype.h (enum write_types_kinds): New.
16619 (struct type): Add field wrote_user_func_for_ptr to the "s"
16622 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16624 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16625 instead of const_binop.
16626 (fold_binary_loc): Likewise.
16628 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16630 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16631 calculation to match get_ref_base_and_extent.
16633 2014-05-13 Catherine Moore <clm@codesourcery.com>
16634 Sandra Loosemore <sandra@codesourcery.com>
16636 * configure.ac: Fix assembly for explicit JALR relocation check.
16637 * configure: Regenerate.
16639 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16641 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16642 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16643 Remove associated type declarations and initialisations.
16644 (arm_expand_neon_builtin): Likewise.
16645 (neon_emit_pair_result_insn): Delete.
16646 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16647 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16648 (neon_vzip<mode>): Likewise.
16649 (neon_vuzp<mode>): Likewise.
16651 2014-05-13 Richard Biener <rguenther@suse.de>
16654 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16655 it needs revisiting whether the call still may be tail-called.
16657 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16659 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16660 * rtl.h (block_symbol): Reduce number of fields to 2.
16661 (rtx_def): Add u2.symbol_ref_flags.
16662 (SYMBOL_REF_FLAGS): Use it.
16663 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16664 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16665 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16666 Lower index of SYMBOL_REF_DATA.
16667 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16668 Print SYMBOL_REF_FLAGS at the same time.
16669 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16671 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16673 * rtl.def (VAR_LOCATION): Remove "i" field.
16674 * rtl.h (rtx_def): Add u2.var_location_status.
16675 (PAT_VAR_LOCATION_STATUS): Use it.
16676 (gen_rtx_VAR_LOCATION): Declare.
16677 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16678 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16679 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16681 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16683 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16684 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16686 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16688 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16689 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16690 * rtl.h (rtx_def): Add insn_uid to u2 field.
16691 (RTX_FLAG_CHECK8): Delete in favor of...
16692 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16693 (INSN_DELETED_P): Update accordingly.
16694 (INSN_UID): Use u2.insn_uid.
16695 (INSN_CHAIN_CODE_P): Define.
16696 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16697 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16698 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16699 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16700 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16701 indices accordingly.
16702 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16703 Update indices for insn-chain rtxes.
16704 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16705 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16706 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16707 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16708 * combine.c (try_combine): Likewise.
16709 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16711 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16713 * rtl.def (REG): Remove middle field.
16714 * rtl.h (rtx_def): Add orignal_regno to u2.
16715 (ORIGINAL_REGNO): Use it instead of field 1.
16716 (REG_ATTRS): Lower field index accordingly.
16717 * gengtype.c (adjust_field_rtx_def): Remove handling of
16718 ORIGINAL_REGNO. Move REG_ATTRS index down.
16719 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16720 code that prints the REGNO.
16722 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16724 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16727 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16729 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16731 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16733 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16734 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16736 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16738 * config/aarch64/aarch64-protos.h
16739 (aarch64_hard_regno_caller_save_mode): New prototype.
16740 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16742 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16744 2014-05-13 Christian Bruel <christian.bruel@st.com>
16746 * target.def (mode_switching): New hook vector.
16747 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16748 (mode_exit, modepriority_to_mode): Likewise.
16749 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16750 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16751 * target.h: Include tm.h and hard-reg-set.h.
16752 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16753 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16754 * doc/tm.texi Regenerate.
16755 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16756 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16757 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16758 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16759 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16760 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16761 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16762 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16763 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16764 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16765 (ix86_emit_mode_set): Hookify.
16766 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16768 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16769 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16770 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16771 (epiphany_mode_priority_to_mode): Remove declaration.
16772 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16773 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16774 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16776 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16777 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16778 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16780 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16783 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16784 is const0_rtx, return immediately. Don't test count == 0 when
16787 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16789 * Makefile.in: add shrink-wrap.o.
16790 * config/i386/i386.c: include "shrink-wrap.h"
16791 * function.c: Likewise.
16792 (requires_stack_frame_p, next_block_for_reg,
16793 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16794 dup_block_and_redirect): Move to shrink-wrap.c
16795 (thread_prologue_and_epilogue_insns): Extract three code segments
16796 as functions in shrink-wrap.c
16797 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16799 * shrink-wrap.c: New file.
16800 * shrink-wrap.h: New file.
16802 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16804 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16805 reference to Solaris.
16807 2014-05-12 Mike Stump <mikestump@comcast.net>
16810 * genattrtab.c (filename): Add.
16811 (convert_set_attr_alternative): Improve error message.
16812 (check_defs): Restore read_md_filename for error messages.
16813 (gen_insn): Save filename.
16815 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16817 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16818 -fno-local-ivars and -fivar-visibility.
16819 * c-family/c.opt: Make -Wshadow also implicitly enable
16822 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16824 * doc/tm.texi: Remove reference to deleted macro.
16825 * doc/tm.texi.in: Likewise.
16827 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16830 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16833 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16836 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16837 * config/arm/aout.h (License): Same.
16838 * config/arm/bpabi.h (License): Same.
16839 * config/arm/elf.h (License): Same.
16840 * config/arm/linux-elf.h (License): Same.
16841 * config/arm/linux-gas.h (License): Same.
16842 * config/arm/netbsd-elf.h (License): Same.
16843 * config/arm/uclinux-eabi.h (License): Same.
16844 * config/arm/uclinux-elf.h (License): Same.
16845 * config/arm/vxworks.h (License): Same.
16847 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16849 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16850 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16851 number of operands to 3.
16852 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16853 * tree-nested.c (convert_nonlocal_omp_clauses,
16854 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16855 * gimplify.c (gimplify_scan_omp_clauses): Handle
16856 OMP_CLAUSE_LINEAR_STMT.
16857 * omp-low.c (lower_rec_input_clauses): Fix typo.
16858 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16859 cast between Fortran boolean_type_node and C _Bool if
16862 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16864 PR tree-optimization/61136
16865 * wide-int.h (multiple_of_p): Define a version that doesn't return
16867 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16868 integer_zerop/const_binop pair.
16869 (multiple_of_p): Likewise, converting both operands to widest_int
16872 2014-05-09 Teresa Johnson <tejohnson@google.com>
16874 * cgraphunit.c (analyze_functions): Use correct dump file.
16876 2014-05-09 Florian Weimer <fweimer@redhat.com>
16878 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16880 (stack_protect_return_slot_p): New function.
16881 (expand_used_vars): Call stack_protect_decl_p and
16882 stack_protect_return_slot_p for -fstack-protector-strong.
16884 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16885 Andrew Haley <aph@redhat.com>
16886 Richard Sandiford <rdsandiford@googlemail.com>
16888 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16891 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16893 PR middle-end/61111
16894 * fold-const.c (fold_binary_loc): Changed width of mask.
16896 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16898 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16899 unsigned int initializers for regno_in, regno_out.
16901 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16904 * config/avr/avr.md (cc): Add new attribute set_vzn.
16905 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16906 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16907 with INC, DEC or NEG.
16908 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16909 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16910 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16912 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16915 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16917 * wide-int.cc (UTItype): Define.
16918 (UDWtype): Define for appropriate W_TYPE_SIZE.
16920 2014-05-09 Richard Biener <rguenther@suse.de>
16922 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16923 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16924 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16925 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16926 ssa_propagate): Adjust.
16928 2014-05-08 Jeff Law <law@redhat.com>
16930 PR tree-optimization/61009
16931 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16932 tri-state rather than a boolean. When a block is too big to
16933 thread through, inform caller via negative return value.
16934 (thread_across_edge): If a block was too big for normal threading,
16935 then it's too big for a joiner too, so remove temporary equivalences
16936 and return immediately.
16938 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16939 Matthias Klose <doko@ubuntu.com>
16942 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16944 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16947 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16949 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16952 * config/alpha/alpha.c: Include gimple-iterator.h.
16953 (alpha_gimple_fold_builtin): New function. Move
16954 ALPHA_BUILTIN_UMULH folding from ...
16955 (alpha_fold_builtin): ... here.
16956 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16958 2014-05-08 Wei Mi <wmi@google.com>
16961 * config/i386/i386.c (ix86_compute_frame_layout): Update
16962 preferred_stack_boundary for call, expanded from tls descriptor.
16963 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16964 to depend on SP register.
16965 (*tls_local_dynamic_base_32_gnu): Ditto.
16966 (*tls_local_dynamic_32_once): Ditto.
16967 (tls_global_dynamic_64_<mode>): Set
16968 ix86_tls_descriptor_calls_expanded_in_cfun.
16969 (tls_local_dynamic_base_64_<mode>): Ditto.
16970 (tls_global_dynamic_32): Set
16971 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16972 to depend on SP register.
16973 (tls_local_dynamic_base_32): Ditto.
16975 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16977 * config/arm/arm_neon.h: Update comment.
16978 * config/arm/neon-docgen.ml: Delete.
16979 * config/arm/neon-gen.ml: Delete.
16980 * doc/arm-neon-intrinsics.texi: Update comment.
16982 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16984 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16986 (vand, vorr, veor, vorn, vbic): Remove.
16987 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16989 (neon_vsub_unspec): Likewise.
16990 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16992 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16994 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16995 (vadd_s16): Likewise.
16996 (vadd_s32): Likewise.
16997 (vadd_f32): Likewise.
16998 (vadd_u8): Likewise.
16999 (vadd_u16): Likewise.
17000 (vadd_u32): Likewise.
17001 (vadd_s64): Likewise.
17002 (vadd_u64): Likewise.
17003 (vaddq_s8): Likewise.
17004 (vaddq_s16): Likewise.
17005 (vaddq_s32): Likewise.
17006 (vaddq_s64): Likewise.
17007 (vaddq_f32): Likewise.
17008 (vaddq_u8): Likewise.
17009 (vaddq_u16): Likewise.
17010 (vaddq_u32): Likewise.
17011 (vaddq_u64): Likewise.
17012 (vmul_s8): Likewise.
17013 (vmul_s16): Likewise.
17014 (vmul_s32): Likewise.
17015 (vmul_f32): Likewise.
17016 (vmul_u8): Likewise.
17017 (vmul_u16): Likewise.
17018 (vmul_u32): Likewise.
17019 (vmul_p8): Likewise.
17020 (vmulq_s8): Likewise.
17021 (vmulq_s16): Likewise.
17022 (vmulq_s32): Likewise.
17023 (vmulq_f32): Likewise.
17024 (vmulq_u8): Likewise.
17025 (vmulq_u16): Likewise.
17026 (vmulq_u32): Likewise.
17027 (vsub_s8): Likewise.
17028 (vsub_s16): Likewise.
17029 (vsub_s32): Likewise.
17030 (vsub_f32): Likewise.
17031 (vsub_u8): Likewise.
17032 (vsub_u16): Likewise.
17033 (vsub_u32): Likewise.
17034 (vsub_s64): Likewise.
17035 (vsub_u64): Likewise.
17036 (vsubq_s8): Likewise.
17037 (vsubq_s16): Likewise.
17038 (vsubq_s32): Likewise.
17039 (vsubq_s64): Likewise.
17040 (vsubq_f32): Likewise.
17041 (vsubq_u8): Likewise.
17042 (vsubq_u16): Likewise.
17043 (vsubq_u32): Likewise.
17044 (vsubq_u64): Likewise.
17045 (vand_s8): Likewise.
17046 (vand_s16): Likewise.
17047 (vand_s32): Likewise.
17048 (vand_u8): Likewise.
17049 (vand_u16): Likewise.
17050 (vand_u32): Likewise.
17051 (vand_s64): Likewise.
17052 (vand_u64): Likewise.
17053 (vandq_s8): Likewise.
17054 (vandq_s16): Likewise.
17055 (vandq_s32): Likewise.
17056 (vandq_s64): Likewise.
17057 (vandq_u8): Likewise.
17058 (vandq_u16): Likewise.
17059 (vandq_u32): Likewise.
17060 (vandq_u64): Likewise.
17061 (vorr_s8): Likewise.
17062 (vorr_s16): Likewise.
17063 (vorr_s32): Likewise.
17064 (vorr_u8): Likewise.
17065 (vorr_u16): Likewise.
17066 (vorr_u32): Likewise.
17067 (vorr_s64): Likewise.
17068 (vorr_u64): Likewise.
17069 (vorrq_s8): Likewise.
17070 (vorrq_s16): Likewise.
17071 (vorrq_s32): Likewise.
17072 (vorrq_s64): Likewise.
17073 (vorrq_u8): Likewise.
17074 (vorrq_u16): Likewise.
17075 (vorrq_u32): Likewise.
17076 (vorrq_u64): Likewise.
17077 (veor_s8): Likewise.
17078 (veor_s16): Likewise.
17079 (veor_s32): Likewise.
17080 (veor_u8): Likewise.
17081 (veor_u16): Likewise.
17082 (veor_u32): Likewise.
17083 (veor_s64): Likewise.
17084 (veor_u64): Likewise.
17085 (veorq_s8): Likewise.
17086 (veorq_s16): Likewise.
17087 (veorq_s32): Likewise.
17088 (veorq_s64): Likewise.
17089 (veorq_u8): Likewise.
17090 (veorq_u16): Likewise.
17091 (veorq_u32): Likewise.
17092 (veorq_u64): Likewise.
17093 (vbic_s8): Likewise.
17094 (vbic_s16): Likewise.
17095 (vbic_s32): Likewise.
17096 (vbic_u8): Likewise.
17097 (vbic_u16): Likewise.
17098 (vbic_u32): Likewise.
17099 (vbic_s64): Likewise.
17100 (vbic_u64): Likewise.
17101 (vbicq_s8): Likewise.
17102 (vbicq_s16): Likewise.
17103 (vbicq_s32): Likewise.
17104 (vbicq_s64): Likewise.
17105 (vbicq_u8): Likewise.
17106 (vbicq_u16): Likewise.
17107 (vbicq_u32): Likewise.
17108 (vbicq_u64): Likewise.
17109 (vorn_s8): Likewise.
17110 (vorn_s16): Likewise.
17111 (vorn_s32): Likewise.
17112 (vorn_u8): Likewise.
17113 (vorn_u16): Likewise.
17114 (vorn_u32): Likewise.
17115 (vorn_s64): Likewise.
17116 (vorn_u64): Likewise.
17117 (vornq_s8): Likewise.
17118 (vornq_s16): Likewise.
17119 (vornq_s32): Likewise.
17120 (vornq_s64): Likewise.
17121 (vornq_u8): Likewise.
17122 (vornq_u16): Likewise.
17123 (vornq_u32): Likewise.
17124 (vornq_u64): Likewise.
17126 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17128 * wide-int.cc (UTItype): Define.
17129 (UDWtype): Define for appropriate W_TYPE_SIZE.
17131 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
17133 PR tree-optimization/59100
17134 * tree-ssa-phiopt.c: Include tree-inline.h.
17135 (neutral_element_p, absorbing_element_p): New functions.
17136 (value_replacement): Handle conditional binary operations with a
17137 neutral or absorbing element.
17139 2014-05-08 Richard Biener <rguenther@suse.de>
17141 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
17142 folding the expression.
17143 (valueize_expr): Remove.
17144 (visit_reference_op_load): Do not valueize the result of
17146 (simplify_binary_expression): Likewise.
17147 (simplify_unary_expression): Likewise.
17149 2014-05-08 Richard Biener <rguenther@suse.de>
17151 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
17152 looking at TYPE_ARG_TYPES.
17154 2014-05-08 Richard Biener <rguenther@suse.de>
17156 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17157 pointer propagation special-case.
17159 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17161 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17162 core part of address expressions.
17164 2014-05-08 Alan Modra <amodra@gmail.com>
17167 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17168 loads and stores when -mno-strict-align at any alignment.
17169 (expand_block_clear): Similarly. Also correct calculation of
17172 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17174 PR middle-end/39246
17175 * tree-complex.c (expand_complex_move): Keep line info when expanding
17177 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17178 of complex expression. Use new argument to display correct location
17179 for values coming from phi statement.
17180 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17181 (warn_uninitialized_phi): Pass location of phi argument to
17183 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17184 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17186 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17188 * config/rs6000/predicates.md (indexed_address_mem): New.
17189 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17190 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17191 fpstore_ux, fpstore_u.
17192 (sign_extend, indexed, update): New.
17193 (cell_micro): Adjust.
17194 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17195 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17196 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17197 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17198 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17199 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17200 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17201 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17202 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17203 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17204 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17205 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17206 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17207 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17208 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17210 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17211 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17212 *vsx_extract_<mode>_store): Adjust.
17213 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17214 is_cracked_insn, insn_must_be_first_in_group,
17215 insn_must_be_last_in_group): Adjust.
17217 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17219 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17220 ppc440-fpstore): Adjust.
17221 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17222 ppc476-fpstore): Adjust.
17223 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17224 ppc601-fpstore): Adjust.
17225 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17227 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17229 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17230 ppc7450-fpstore): Adjust.
17231 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17232 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17233 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17235 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17236 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17237 cell-fpstore, cell-fpstore-update): Adjust.
17238 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17239 ppce300c3_store, ppce300c3_fpstore): Adjust.
17240 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17241 e500mc_fpstore): Adjust.
17242 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17243 e500mc64_store, e500mc64_fpstore): Adjust.
17244 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17245 e5500_fpstore): Adjust.
17246 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17247 e6500_fpstore): Adjust.
17248 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17250 * config/rs6000/power4.md (power4-load, power4-load-ext,
17251 power4-load-ext-update, power4-load-ext-update-indexed,
17252 power4-load-update-indexed, power4-load-update, power4-fpload,
17253 power4-fpload-update, power4-store, power4-store-update,
17254 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17256 * config/rs6000/power5.md (power5-load, power5-load-ext,
17257 power5-load-ext-update, power5-load-ext-update-indexed,
17258 power5-load-update-indexed, power5-load-update, power5-fpload,
17259 power5-fpload-update, power5-store, power5-store-update,
17260 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17262 * config/rs6000/power6.md (power6-load, power6-load-ext,
17263 power6-load-update, power6-load-update-indexed,
17264 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17265 power6-fpload-update, power6-store, power6-store-update,
17266 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17268 * config/rs6000/power7.md (power7-load, power7-load-ext,
17269 power7-load-update, power7-load-update-indexed,
17270 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17271 power7-fpload-update, power7-store, power7-store-update,
17272 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17274 * config/rs6000/power8.md (power8-load, power8-load-update,
17275 power8-load-ext, power8-load-ext-update, power8-fpload,
17276 power8-fpload-update, power8-store, power8-store-update-indexed,
17277 power8-fpstore, power8-fpstore-update): Adjust.
17278 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17280 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17281 titan_lsu_store, titan_lsu_fpstore): Adjust.
17282 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17284 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17287 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17288 unrolled byte insns. Emit address increments after move insns.
17290 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17292 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17293 const_gimple, rather than a gimple.
17294 (gimple_call_builtin_p): Likewise, for the three variants.
17296 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17297 (gimple_call_builtin_p): Likewise, for the three variants.
17299 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17301 PR tree-optimization/61095
17302 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17304 2014-05-07 Richard Biener <rguenther@suse.de>
17306 PR tree-optimization/61034
17307 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17308 (maybe_skip_until): Use translate to take into account
17309 lattices when trying to do disambiguations.
17310 (get_continuation_for_phi_1): Likewise.
17311 (get_continuation_for_phi): Adjust for added translate arguments.
17312 (walk_non_aliased_vuses): Likewise.
17313 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17314 (walk_non_aliased_vuses): Likewise.
17315 (call_may_clobber_ref_p_1): Declare.
17316 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17317 calls. Stop early if we are only supposed to disambiguate.
17318 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17320 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17322 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17323 Emit an error when the function has arguments.
17325 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17327 * cfgloop.h (unswitch_loops): Remove.
17328 * doc/passes.texi: Remove references to loop-unswitch.c
17329 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17331 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17333 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17334 check for loads group of length 3.
17335 (vect_permute_load_chain): New permutations for loads group of
17337 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17338 of vec_perm_shuffle for the new permutations.
17340 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17342 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17343 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17344 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17345 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17346 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17347 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17348 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17349 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17351 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17353 * loop-unswitch.c: Delete.
17355 2014-05-07 Richard Biener <rguenther@suse.de>
17357 * config.gcc: Always set need_64bit_hwint to yes.
17359 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17361 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17362 of using optimize_size.
17364 2014-05-06 Mike Stump <mikestump@comcast.net>
17366 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17368 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17370 * config/i386/sse.md (*mov<mode>_internal)
17371 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17372 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17373 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17374 (*<code><mode>3, *andnot<mode>3<mask_name>)
17375 (<mask_codefor><code><mode>3<mask_name>): Only consider
17376 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17378 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17381 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17383 * lra-constraints.c (valid_address_p): Move earlier in file.
17384 Add a constraint argument to the address_info version.
17385 (satisfies_memory_constraint_p): New function.
17386 (satisfies_address_constraint_p): Likewise.
17387 (process_alt_operands, curr_insn_transform): Use them.
17388 (process_address): Pass the constraint to valid_address_p when
17389 checking address operands.
17391 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17393 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17394 to their respective blocks. Fix inadvertent use of "node".
17396 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17398 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17400 (init_emit_once): ...here.
17401 * rtl.h (init_derived_machine_modes): Declare.
17402 * toplev.c (do_compile): Call it even if no_backend.
17404 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17405 Mike Stump <mikestump@comcast.net>
17406 Richard Sandiford <rdsandiford@googlemail.com>
17407 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17409 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17410 (rtx_equal_for_memref_p): Update comment.
17411 (adjust_offset_for_component_ref): Use wide-int interfaces.
17412 * builtins.c (get_object_alignment_2): Likewise.
17413 (c_readstr): Likewise.
17414 (target_char_cast): Add comment.
17415 (determine_block_size): Use wide-int interfaces.
17416 (expand_builtin_signbit): Likewise.
17417 (fold_builtin_int_roundingfn): Likewise.
17418 (fold_builtin_bitop): Likewise.
17419 (fold_builtin_bswap): Likewise.
17420 (fold_builtin_logarithm): Use signop.
17421 (fold_builtin_pow): Likewise.
17422 (fold_builtin_memory_op): Use wide-int interfaces.
17423 (fold_builtin_object_size): Likewise.
17424 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17425 nb_iterations_estimate.
17426 (record_niter_bound): Use wide-int interfaces.
17427 (get_estimated_loop_iterations_int): Likewise.
17428 (get_estimated_loop_iterations): Likewise.
17429 (get_max_loop_iterations): Likewise.
17430 * cfgloop.h: Include wide-int.h.
17431 (struct nb_iter_bound): Change bound to widest_int.
17432 (struct loop): Change nb_iterations_upper_bound and
17433 nb_iterations_estimate to widest_int.
17434 (record_niter_bound): Switch to use widest_int.
17435 (get_estimated_loop_iterations): Likewise.
17436 (get_max_loop_iterations): Likewise.
17437 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17438 update for wide-int.
17439 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17440 * combine.c (try_combine): Likewise.
17441 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17442 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17444 (aarch64_float_const_representable_p): Likewise.
17445 * config/arc/arc.c: Include wide-int.h.
17446 (arc_can_use_doloop_p): Use wide-int interfaces.
17447 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17448 (vfp3_const_double_index): Likewise.
17449 * config/avr/avr.c (avr_out_round): Likewise.
17450 (avr_fold_builtin): Likewise.
17451 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17452 (bfin_can_use_doloop_p): Likewise.
17453 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17454 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17455 * config/i386/i386.c: Include wide-int.h.
17456 (ix86_data_alignment): Use wide-int interfaces.
17457 (ix86_local_alignment): Likewise.
17458 (ix86_emit_swsqrtsf): Update real_from_integer.
17459 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17460 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17461 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17462 (zero_constant): Likewise.
17463 (input_operand): Likewise.
17464 (splat_input_operand): Likewise.
17465 (non_logical_cint_operand): Change const_double to const_wide_int.
17466 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17467 (easy_altivec_constant): Remove comment.
17468 (paired_expand_vector_init): Use CONSTANT_P.
17469 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17470 (rs6000_emit_move): Update checks.
17471 (rs6000_aggregate_candidate): Use wide-int interfaces.
17472 (rs6000_expand_ternop_builtin): Likewise.
17473 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17474 (rs6000_assemble_integer): Likewise.
17475 (rs6000_hash_constant): Likewise.
17476 (output_toc): Likewise.
17477 (rs6000_rtx_costs): Likewise.
17478 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17479 * config/rs6000/rs6000-c.c: Include wide-int.h.
17480 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17481 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17482 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17483 Handle CONST_WIDE_INT.
17484 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17485 Use tree_fits_uhwi_p.
17486 * config/sparc/sparc.c: Include wide-int.h.
17487 (sparc_fold_builtin): Use wide-int interfaces.
17488 * config/vax/vax.c: Include wide-int.h.
17489 (vax_float_literal): Use real_from_integer.
17490 * coretypes.h (struct hwivec_def): New.
17492 (const_hwivec): New.
17493 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17494 (equiv_constant): Handle CONST_WIDE_INT.
17495 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17496 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17497 * dbxout.c (stabstr_U): Use wide-int interfaces.
17498 (dbxout_type): Update to use cst_fits_shwi_p.
17499 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17500 (TARGET_SUPPORTS_WIDE_INT): Add default.
17501 * dfp.c: Include wide-int.h.
17502 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17503 decimal_real_to_integer.
17504 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17505 decimal_real_to_integer.
17506 * doc/generic.texi (Constant expressions): Update for wide_int.
17507 * doc/rtl.texi (const_double): Likewise.
17508 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17509 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17510 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17511 (REAL_VALUE_FROM_INT): Remove.
17512 (TARGET_SUPPORTS_WIDE_INT): New.
17513 * doc/tm.texi: Regenerate.
17514 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17515 * double-int.h: Include wide-int.h.
17516 (struct wi::int_traits): New.
17517 * dwarf2out.c (get_full_len): New.
17518 (dw_val_equal_p): Add case dw_val_class_wide_int.
17519 (size_of_loc_descr): Likewise.
17520 (output_loc_operands): Likewise.
17521 (insert_double): Remove.
17522 (insert_wide_int): New.
17523 (add_AT_wide): New.
17524 (print_die): Add case dw_val_class_wide_int.
17525 (attr_checksum): Likewise.
17526 (attr_checksum_ordered): Likewise.
17527 (same_dw_val_p): Likewise.
17528 (size_of_die): Likewise.
17529 (value_format): Likewise.
17530 (output_die): Likewise.
17531 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17533 (clz_loc_descriptor): Use wide-int interfaces.
17534 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17535 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17536 (round_up_to_align): Use wide-int interfaces.
17537 (field_byte_offset): Likewise.
17538 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17539 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17540 CONST_DOUBLE handling. Use wide-int interfaces.
17541 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17542 (gen_enumeration_type_die): Use add_AT_wide.
17543 (hash_loc_operands): Add case dw_val_class_wide_int.
17544 (compare_loc_operands): Likewise.
17545 * dwarf2out.h: Include wide-int.h.
17546 (wide_int_ptr): New.
17547 (enum dw_val_class): Add dw_val_class_wide_int.
17548 (struct dw_val_struct): Add val_wide.
17549 * emit-rtl.c (const_wide_int_htab): New.
17550 (const_wide_int_htab_hash): New.
17551 (const_wide_int_htab_eq): New.
17552 (lookup_const_wide_int): New.
17553 (const_double_htab_hash): Use wide-int interfaces.
17554 (const_double_htab_eq): Likewise.
17555 (rtx_to_double_int): Conditionally compile for wide-int.
17556 (immed_double_int_const): Rename to immed_wide_int_const and
17557 update for wide-int.
17558 (immed_double_const): Conditionally compile for wide-int.
17559 (init_emit_once): Use wide-int interfaces.
17560 * explow.c (plus_constant): Likewise.
17561 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17562 (lshift_value): Use wide-int interfaces.
17563 (expand_mult): Likewise.
17564 (choose_multiplier): Likewise.
17565 (expand_smod_pow2): Likewise.
17566 (make_tree): Likewise.
17567 * expr.c (convert_modes): Consolidate handling of constants.
17568 Use wide-int interfaces.
17569 (emit_group_load_1): Add note.
17570 (store_expr): Update comment.
17571 (get_inner_reference): Use wide-int interfaces.
17572 (expand_constructor): Update comment.
17573 (expand_expr_real_2): Use wide-int interfaces.
17574 (expand_expr_real_1): Likewise.
17575 (reduce_to_bit_field_precision): Likewise.
17576 (const_vector_from_tree): Likewise.
17577 * final.c: Include wide-int-print.h.
17578 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17579 * fixed-value.c: Include wide-int.h.
17580 (fixed_from_string): Use wide-int interfaces.
17581 (fixed_to_decimal): Likewise.
17582 (fixed_convert_from_real): Likewise.
17583 (real_convert_from_fixed): Likewise.
17584 * fold-const.h (mem_ref_offset): Return an offset_int.
17585 (div_if_zero_remainder): Remove code parameter.
17586 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17587 Use wide-int interfaces.
17588 (may_negate_without_overflow_p): Use wide-int interfaces.
17589 (negate_expr_p): Likewise.
17590 (fold_negate_expr): Likewise.
17591 (int_const_binop_1): Likewise.
17592 (const_binop): Likewise.
17593 (fold_convert_const_int_from_int): Likewise.
17594 (fold_convert_const_int_from_real): Likewise.
17595 (fold_convert_const_int_from_fixed): Likewise.
17596 (fold_convert_const_fixed_from_int): Likewise.
17597 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17598 (sign_bit_p): Use wide-int interfaces.
17599 (make_range_step): Likewise.
17600 (build_range_check): Likewise. Pass an integer of the correct type
17601 instead of using integer_one_node.
17602 (range_predecessor): Pass an integer of the correct type instead
17603 of using integer_one_node.
17604 (range_successor): Likewise.
17605 (merge_ranges): Likewise.
17606 (unextend): Use wide-int interfaces.
17607 (extract_muldiv_1): Likewise.
17608 (fold_div_compare): Likewise.
17609 (fold_single_bit_test): Likewise.
17610 (fold_sign_changed_comparison): Likewise.
17611 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17612 (fold_plusminus_mult_expr): Use wide-int interfaces.
17613 (native_encode_int): Likewise.
17614 (native_interpret_int): Likewise.
17615 (fold_unary_loc): Likewise.
17616 (pointer_may_wrap_p): Likewise.
17617 (size_low_cst): Likewise.
17618 (mask_with_tz): Likewise.
17619 (fold_binary_loc): Likewise.
17620 (fold_ternary_loc): Likewise.
17621 (multiple_of_p): Likewise.
17622 (tree_call_nonnegative_warnv_p): Update calls to
17623 tree_int_cst_min_precision and real_from_integer.
17624 (fold_negate_const): Use wide-int interfaces.
17625 (fold_abs_const): Likewise.
17626 (fold_relational_const): Use tree_int_cst_lt.
17627 (round_up_loc): Use wide-int interfaces.
17628 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17629 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17630 * gengtype.c: Remove include of double-int.h.
17631 (do_typedef): Use wide-int interfaces.
17632 (open_base_files): Add wide-int.h.
17633 (main): Add offset_int and widest_int typedefs.
17634 * gengtype-lex.l: Handle "^".
17635 (CXX_KEYWORD): Add "static".
17636 * gengtype-parse.c (require3): New.
17637 (require_template_declaration): Handle constant template arguments
17638 and nested templates.
17639 * gengtype-state.c: Don't include "double-int.h".
17640 * genpreds.c (write_one_predicate_function): Update comment.
17641 (write_tm_constrs_h): Add check for hval and lval use in
17643 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17644 (add_to_sequence): Likewise.
17645 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17646 and const_double_operand.
17647 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17649 * gimple-fold.c (get_base_constructor): Likewise.
17650 (fold_array_ctor_reference): Likewise.
17651 (fold_nonarray_ctor_reference): Likewise.
17652 (fold_const_aggregate_ref_1): Likewise.
17653 (gimple_val_nonnegative_real_p): Likewise.
17654 (gimple_fold_indirect_ref): Likewise.
17655 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17656 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17657 (struct slsr_cand_d): Change index to be widest_int.
17658 (struct incr_info_d): Change incr to be widest_int.
17659 (alloc_cand_and_find_basis): Use wide-int interfaces.
17660 (slsr_process_phi): Likewise.
17661 (backtrace_base_for_ref): Likewise. Return a widest_int.
17662 (restructure_reference): Take a widest_int instead of a double_int.
17663 (slsr_process_ref): Use wide-int interfaces.
17664 (create_mul_ssa_cand): Likewise.
17665 (create_mul_imm_cand): Likewise.
17666 (create_add_ssa_cand): Likewise.
17667 (create_add_imm_cand): Take a widest_int instead of a double_int.
17668 (slsr_process_add): Use wide-int interfaces.
17669 (slsr_process_cast): Likewise.
17670 (slsr_process_copy): Likewise.
17671 (dump_candidate): Likewise.
17672 (dump_incr_vec): Likewise.
17673 (replace_ref): Likewise.
17674 (cand_increment): Likewise. Return a widest_int.
17675 (cand_abs_increment): Likewise.
17676 (replace_mult_candidate): Take a widest_int instead of a double_int.
17677 (replace_unconditional_candidate): Use wide-int interfaces.
17678 (incr_vec_index): Take a widest_int instead of a double_int.
17679 (create_add_on_incoming_edge): Likewise.
17680 (create_phi_basis): Use wide-int interfaces.
17681 (replace_conditional_candidate): Likewise.
17682 (record_increment): Take a widest_int instead of a double_int.
17683 (record_phi_increments): Use wide-int interfaces.
17684 (phi_incr_cost): Take a widest_int instead of a double_int.
17685 (lowest_cost_path): Likewise.
17686 (total_savings): Likewise.
17687 (analyze_increments): Use wide-int interfaces.
17688 (ncd_with_phi): Take a widest_int instead of a double_int.
17689 (ncd_of_cand_and_phis): Likewise.
17690 (nearest_common_dominator_for_cands): Likewise.
17691 (insert_initializers): Use wide-int interfaces.
17692 (all_phi_incrs_profitable): Likewise.
17693 (replace_one_candidate): Likewise.
17694 (replace_profitable_candidates): Likewise.
17695 * godump.c: Include wide-int-print.h.
17696 (go_output_typedef): Use wide-int interfaces.
17697 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17698 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17699 (build_loop_iteration_domains): Likewise.
17700 * hooks.h: Include wide-int.h rather than double-int.h.
17701 (hook_bool_dint_dint_uint_bool_true): Delete.
17702 (hook_bool_wint_wint_uint_bool_true): Declare.
17703 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17704 (hook_bool_wint_wint_uint_bool_true): New.
17705 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17707 (ubsan_expand_si_overflow_mul_check): Likewise.
17708 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17709 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17710 (get_ancestor_addr_info): Likewise.
17711 (ipa_modify_call_arguments): Likewise.
17712 * loop-doloop.c (doloop_modify): Likewise.
17713 (doloop_optimize): Likewise.
17714 * loop-iv.c (iv_number_of_iterations): Likewise.
17715 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17716 (unroll_loop_constant_iterations): Likewise.
17717 (decide_unroll_runtime_iterations): Likewise.
17718 (unroll_loop_runtime_iterations): Likewise.
17719 (decide_peel_simple): Likewise.
17720 (decide_unroll_stupid): Likewise.
17721 * lto-streamer-in.c (streamer_read_wi): Add.
17722 (input_cfg): Use wide-int interfaces.
17723 (lto_input_tree_1): Likewise.
17724 * lto-streamer-out.c (streamer_write_wi): Add.
17725 (hash_tree): Use wide-int interfaces.
17726 (output_cfg): Likewise.
17727 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17728 (GTFILES): Add wide-int.h and signop.h.
17729 (TAGS): Look for .cc files too.
17730 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17731 * optabs.c (expand_subword_shift): Likewise.
17732 (expand_doubleword_shift): Likewise.
17733 (expand_absneg_bit): Likewise.
17734 (expand_copysign_absneg): Likewise.
17735 (expand_copysign_bit): Likewise.
17736 * postreload.c (reload_cse_simplify_set): Likewise.
17737 * predict.c (predict_iv_comparison): Likewise.
17738 * pretty-print.h: Include wide-int-print.h.
17740 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17741 * print-tree.c: Include wide-int-print.h.
17742 (print_node_brief): Use wide-int interfaces.
17743 (print_node): Likewise.
17744 * read-rtl.c (validate_const_wide_int): New.
17745 (read_rtx_code): Add CONST_WIDE_INT case.
17746 * real.c: Include wide-int.h.
17747 (real_to_integer2): Delete.
17748 (real_to_integer): New function, returning a wide_int.
17749 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17750 (ten_to_ptwo): Update call to real_from_integer.
17751 (real_digit): Likewise.
17752 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17753 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17754 (REAL_VALUE_TO_INT): Delete.
17755 (real_to_integer): Declare a wide-int form.
17756 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17757 * recog.c (const_int_operand): Improve comment.
17758 (const_scalar_int_operand): New.
17759 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17760 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17761 (split_double): Likewise.
17762 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17763 (rtx_size): Likewise.
17764 (rtx_alloc_stat_v): New.
17765 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17766 (cwi_output_hex): New.
17767 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17768 (cwi_check_failed_bounds): New.
17769 * rtl.def (CONST_WIDE_INT): New.
17770 * rtl.h: Include <utility> and wide-int.h.
17771 (struct hwivec_def): New.
17772 (CWI_GET_NUM_ELEM): New.
17773 (CWI_PUT_NUM_ELEM): New.
17774 (struct rtx_def): Add num_elem and hwiv.
17775 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17776 (CASE_CONST_UNIQUE): Likewise.
17777 (CASE_CONST_ANY): Likewise.
17778 (CONST_SCALAR_INT_P): Likewise.
17779 (CONST_WIDE_INT_P): New.
17781 (HWIVEC_CHECK): New.
17782 (cwi_check_failed_bounds): New.
17784 (HWIVEC_CHECK): New.
17785 (CONST_WIDE_INT_VEC) New.
17786 (CONST_WIDE_INT_NUNITS) New.
17787 (CONST_WIDE_INT_ELT) New.
17788 (rtx_mode_t): New type.
17789 (wi::int_traits <rtx_mode_t>): New.
17791 (wi::min_value): New.
17792 (wi::max_value): New.
17794 (const_wide_int_alloc): New.
17795 (immed_wide_int_const): New.
17796 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17797 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17798 * signop.h: New file.
17799 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17800 (simplify_const_unary_operation): Use wide-int interfaces.
17801 (simplify_binary_operation_1): Likewise.
17802 (simplify_const_binary_operation): Likewise.
17803 (simplify_const_relational_operation): Likewise.
17804 (simplify_immed_subreg): Likewise.
17805 * stmt.c (expand_case): Likewise.
17806 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17807 signop rather than a bool.
17808 * stor-layout.c (layout_type): Use wide-int interfaces.
17809 (initialize_sizetypes): Update calls to
17810 set_min_and_max_values_for_integral_type.
17811 (set_min_and_max_values_for_integral_type): Take a signop rather
17812 than a bool. Use wide-int interfaces.
17813 (fixup_signed_type): Update accordingly. Remove
17814 HOST_BITS_PER_DOUBLE_INT limit.
17815 (fixup_unsigned_type): Likewise.
17816 * system.h (STATIC_CONSTANT_P): New.
17817 (STATIC_ASSERT): New.
17818 * target.def (can_use_doloop_p): Take widest_ints rather than
17820 * target.h: Include wide-int.h rather than double-int.h.
17821 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17823 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17824 rather than INT_CST_LT_UNSIGNED.
17825 (can_use_doloop_if_innermost): Take widest_ints rather than
17827 * tree-affine.c: Include wide-int-print.h.
17828 (double_int_ext_for_comb): Delete.
17829 (wide_int_ext_for_comb): New.
17830 (aff_combination_zero): Use wide-int interfaces.
17831 (aff_combination_const): Take a widest_int instead of a double_int.
17832 (aff_combination_elt): Use wide-int interfaces.
17833 (aff_combination_scale): Take a widest_int instead of a double_int.
17834 (aff_combination_add_elt): Likewise.
17835 (aff_combination_add_cst): Likewise.
17836 (aff_combination_add): Use wide-int interfaces.
17837 (aff_combination_convert): Likewise.
17838 (tree_to_aff_combination): Likewise.
17839 (add_elt_to_tree): Take a widest_int instead of a double_int.
17840 (aff_combination_to_tree): Use wide-int interfaces.
17841 (aff_combination_remove_elt): Likewise.
17842 (aff_combination_add_product): Take a widest_int instead of
17844 (aff_combination_mult): Use wide-int interfaces.
17845 (aff_combination_expand): Likewise.
17846 (double_int_constant_multiple_p): Delete.
17847 (wide_int_constant_multiple_p): New.
17848 (aff_combination_constant_multiple_p): Take a widest_int pointer
17849 instead of a double_int pointer.
17850 (print_aff): Use wide-int interfaces.
17851 (get_inner_reference_aff): Take a widest_int pointer
17852 instead of a double_int pointer.
17853 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17854 * tree-affine.h: Include wide-int.h.
17855 (struct aff_comb_elt): Change type of coef to widest_int.
17856 (struct affine_tree_combination): Change type of offset to widest_int.
17857 (double_int_ext_for_comb): Delete.
17858 (wide_int_ext_for_comb): New.
17859 (aff_combination_const): Use widest_int instead of double_int.
17860 (aff_combination_scale): Likewise.
17861 (aff_combination_add_elt): Likewise.
17862 (aff_combination_constant_multiple_p): Likewise.
17863 (get_inner_reference_aff): Likewise.
17864 (aff_comb_cannot_overlap_p): Likewise.
17865 (aff_combination_zero_p): Use wide-int interfaces.
17866 * tree.c: Include tree.h.
17867 (init_ttree): Use make_int_cst.
17868 (tree_code_size): Removed code for INTEGER_CST case.
17869 (tree_size): Add INTEGER_CST case.
17870 (make_node_stat): Update comment.
17871 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17872 (build_int_cst_type): Use wide-int interfaces.
17873 (double_int_to_tree): Likewise.
17874 (double_int_fits_to_tree_p): Delete.
17875 (force_fit_type_double): Delete.
17876 (force_fit_type): New.
17877 (int_cst_hash_hash): Use wide-int interfaces.
17878 (int_cst_hash_eq): Likewise.
17879 (build_int_cst_wide): Delete.
17880 (wide_int_to_tree): New.
17881 (cache_integer_cst): Use wide-int interfaces.
17882 (build_low_bits_mask): Likewise.
17883 (cst_and_fits_in_hwi): Likewise.
17884 (real_value_from_int_cst): Likewise.
17885 (make_int_cst_stat): New.
17886 (integer_zerop): Use wide_int interfaces.
17887 (integer_onep): Likewise.
17888 (integer_all_onesp): Likewise.
17889 (integer_pow2p): Likewise.
17890 (integer_nonzerop): Likewise.
17891 (tree_log2): Likewise.
17892 (tree_floor_log2): Likewise.
17893 (tree_ctz): Likewise.
17894 (int_size_in_bytes): Likewise.
17895 (mem_ref_offset): Return an offset_int rather than a double_int.
17896 (build_type_attribute_qual_variant): Use wide_int interfaces.
17897 (type_hash_eq): Likewise
17898 (tree_int_cst_equal): Likewise.
17899 (tree_int_cst_lt): Delete.
17900 (tree_int_cst_compare): Likewise.
17901 (tree_fits_shwi_p): Use wide_int interfaces.
17902 (tree_fits_uhwi_p): Likewise.
17903 (tree_int_cst_sign_bit): Likewise.
17904 (tree_int_cst_sgn): Likewise.
17905 (tree_int_cst_min_precision): Take a signop rather than a bool.
17906 (simple_cst_equal): Use wide_int interfaces.
17907 (compare_tree_int): Likewise.
17908 (iterative_hash_expr): Likewise.
17909 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17911 (get_type_static_bounds): Use wide_int interfaces.
17912 (tree_int_cst_elt_check_failed): New.
17913 (build_common_tree_nodes): Reordered to set prec before filling in
17915 (int_cst_value): Check cst_and_fits_in_hwi.
17916 (widest_int_cst_value): Use wide_int interfaces.
17917 (upper_bound_in_type): Likewise.
17918 (lower_bound_in_type): Likewise.
17919 (num_ending_zeros): Likewise.
17920 (drop_tree_overflow): Likewise.
17921 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17922 (gen_conditions_for_pow_cst_base): Likewise.
17923 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17924 (group_case_labels_stmt): Use wide-int interfaces.
17925 (verify_gimple_assign_binary): Likewise.
17926 (print_loop): Likewise.
17927 * tree-chrec.c (tree_fold_binomial): Likewise.
17928 * tree-core.h (struct tree_base): Add int_length.
17929 (struct tree_int_cst): Change rep of value.
17930 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17931 (dr_may_alias_p): Likewise.
17932 (max_stmt_executions_tree): Likewise.
17933 * tree.def (INTEGER_CST): Update comment.
17934 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17935 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17936 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17937 (dequeue_and_dump): Use wide-int interfaces.
17938 * tree.h: Include wide-int.h.
17939 (NULL_TREE): Moved to earlier loc in file.
17940 (TREE_INT_CST_ELT_CHECK): New.
17941 (tree_int_cst_elt_check_failed): New.
17943 (TREE_INT_CST): Delete.
17944 (TREE_INT_CST_LOW): Use wide-int interfaces.
17945 (TREE_INT_CST_HIGH): Delete.
17946 (TREE_INT_CST_NUNITS): New.
17947 (TREE_INT_CST_EXT_NUNITS): Likewise.
17948 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17949 (TREE_INT_CST_ELT): Likewise.
17950 (INT_CST_LT): Delete.
17951 (tree_int_cst_elt_check): New (two forms).
17952 (type_code_size): Update comment.
17953 (make_int_cst_stat, make_int_cst): New.
17954 (tree_to_double_int): Delete.
17955 (double_int_fits_to_tree_p): Delete.
17956 (force_fit_type_double): Delete.
17957 (build_int_cstu): Replace with out-of-line function.
17958 (build_int_cst_wide): Delete.
17959 (tree_int_cst_lt): Define inline.
17960 (tree_int_cst_le): New.
17961 (tree_int_cst_compare): Define inline.
17962 (tree_int_cst_min_precision): Take a signop rather than a bool.
17963 (wi::int_traits <const_tree>): New.
17964 (wi::int_traits <tree>): New.
17965 (wi::extended_tree): New.
17966 (wi::int_traits <wi::extended_tree>): New.
17967 (wi::to_widest): New.
17968 (wi::to_offset): New.
17969 (wi::fits_to_tree_p): New.
17970 (wi::min_value): New.
17971 (wi::max_value): New.
17972 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17973 (copy_tree_body_r): Likewise.
17974 * tree-object-size.c (compute_object_offset): Likewise.
17975 (addr_object_size): Likewise.
17976 * tree-predcom.c: Include wide-int-print.h.
17977 (struct dref_d): Change type of offset to widest_int.
17978 (dump_dref): Call wide-int printer.
17979 (aff_combination_dr_offset): Use wide-int interfaces.
17980 (determine_offset): Take a widest_int pointer rather than a
17981 double_int pointer.
17982 (split_data_refs_to_components): Use wide-int interfaces.
17983 (suitable_component_p): Likewise.
17984 (order_drefs): Likewise.
17985 (add_ref_to_chain): Likewise.
17986 (valid_initializer_p): Likewise.
17987 (determine_roots_comp): Likewise.
17988 * tree-pretty-print.c: Include wide-int-print.h.
17989 (dump_generic_node): Use wide-int interfaces.
17990 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17991 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17992 (move_fixed_address_to_symbol): Likewise.
17993 (move_hint_to_base): Likewise.
17994 (move_pointer_to_base): Likewise.
17995 (move_variant_to_index): Likewise.
17996 (most_expensive_mult_to_index): Likewise.
17997 (addr_to_parts): Likewise.
17998 (copy_ref_info): Likewise.
17999 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
18000 (indirect_refs_may_alias_p): Likewise.
18001 (stmt_kills_ref_p_1): Likewise.
18002 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
18003 * tree-ssa-ccp.c: Update comment at top of file. Include
18005 (struct prop_value_d): Change type of mask to widest_int.
18006 (extend_mask): New function.
18007 (dump_lattice_value): Use wide-int interfaces.
18008 (get_default_value): Likewise.
18009 (set_constant_value): Likewise.
18010 (set_value_varying): Likewise.
18011 (valid_lattice_transition): Likewise.
18012 (set_lattice_value): Likewise.
18013 (value_to_double_int): Delete.
18014 (value_to_wide_int): New.
18015 (get_value_from_alignment): Use wide-int interfaces.
18016 (get_value_for_expr): Likewise.
18017 (do_dbg_cnt): Likewise.
18018 (ccp_finalize): Likewise.
18019 (ccp_lattice_meet): Likewise.
18020 (bit_value_unop_1): Use widest_ints rather than double_ints.
18021 (bit_value_binop_1): Likewise.
18022 (bit_value_unop): Use wide-int interfaces.
18023 (bit_value_binop): Likewise.
18024 (bit_value_assume_aligned): Likewise.
18025 (evaluate_stmt): Likewise.
18026 (ccp_fold_stmt): Likewise.
18027 (visit_cond_stmt): Likewise.
18028 (ccp_visit_stmt): Likewise.
18029 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
18030 (constant_pointer_difference): Likewise.
18031 (associate_pointerplus): Likewise.
18032 (combine_conversions): Likewise.
18033 * tree-ssa-loop.h: Include wide-int.h.
18034 (struct tree_niter_desc): Change type of max to widest_int.
18035 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
18036 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
18037 (remove_redundant_iv_tests): Likewise.
18038 (canonicalize_loop_induction_variables): Likewise.
18039 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
18040 (constant_multiple_of): Take a widest_int pointer instead of
18041 a double_int pointer.
18042 (get_computation_aff): Use wide-int interfaces.
18043 (ptr_difference_cost): Likewise.
18044 (difference_cost): Likewise.
18045 (get_loop_invariant_expr_id): Likewise.
18046 (get_computation_cost_at): Likewise.
18047 (iv_elimination_compare_lt): Likewise.
18048 (may_eliminate_iv): Likewise.
18049 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
18050 instead of double_int.
18051 (max_loop_iterations): Likewise.
18052 (max_stmt_executions): Likewise.
18053 (estimated_stmt_executions): Likewise.
18054 * tree-ssa-loop-niter.c: Include wide-int-print.h.
18055 (split_to_var_and_offset): Use wide-int interfaces.
18056 (determine_value_range): Likewise.
18057 (bound_difference_of_offsetted_base): Likewise.
18058 (bounds_add): Take a widest_int instead of a double_int.
18059 (number_of_iterations_ne_max): Use wide-int interfaces.
18060 (number_of_iterations_ne): Likewise.
18061 (number_of_iterations_lt_to_ne): Likewise.
18062 (assert_loop_rolls_lt): Likewise.
18063 (number_of_iterations_lt): Likewise.
18064 (number_of_iterations_le): Likewise.
18065 (number_of_iterations_cond): Likewise.
18066 (number_of_iterations_exit): Likewise.
18067 (finite_loop_p): Likewise.
18068 (derive_constant_upper_bound_assign): Likewise.
18069 (derive_constant_upper_bound): Return a widest_int.
18070 (derive_constant_upper_bound_ops): Likewise.
18071 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
18072 (record_estimate): Take a widest_int rather than a double_int.
18073 (record_nonwrapping_iv): Use wide-int interfaces.
18074 (double_int_cmp): Delete.
18075 (wide_int_cmp): New.
18076 (bound_index): Take a widest_int rather than a double_int.
18077 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
18078 (maybe_lower_iteration_bound): Likewise.
18079 (estimate_numbers_of_iterations_loop): Likewise.
18080 (estimated_loop_iterations): Take a widest_int pointer than than
18081 a double_int pointer.
18082 (estimated_loop_iterations_int): Use wide-int interfaces.
18083 (max_loop_iterations): Take a widest_int pointer than than
18084 a double_int pointer.
18085 (max_loop_iterations_int): Use wide-int interfaces.
18086 (max_stmt_executions): Take a widest_int pointer than than
18087 a double_int pointer.
18088 (estimated_stmt_executions): Likewise.
18089 (n_of_executions_at_most): Use wide-int interfaces.
18090 (scev_probably_wraps_p): Likewise.
18091 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
18092 to real_to_integer.
18093 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
18095 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
18096 double_ints. Adjust for trailing_wide_ints <3> representation.
18097 (set_nonzero_bits): Likewise.
18098 (get_range_info): Return wide_ints rather than double_ints.
18099 Adjust for trailing_wide_ints <3> representation.
18100 (get_nonzero_bits): Likewise.
18101 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
18103 * tree-ssanames.h (struct range_info_def): Replace min, max and
18104 nonzero_bits with a trailing_wide_ints <3>.
18105 (set_range_info): Use wide_int_refs rather than double_ints.
18106 (set_nonzero_bits): Likewise.
18107 (get_range_info): Return wide_ints rather than double_ints.
18108 (get_nonzero_bits): Likewise.
18109 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
18110 * tree-ssa-pre.c (phi_translate_1): Likewise.
18111 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
18112 (acceptable_pow_call): Likewise.
18113 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
18115 (vn_reference_fold_indirect): Likewise.
18116 (vn_reference_maybe_forwprop_address): Likewise.
18117 (valueize_refs_1): Likewise.
18118 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
18119 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
18120 tree_int_cst_lt and tree_int_cst_le.
18121 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
18123 (streamer_alloc_tree): Likewise.
18124 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
18125 (streamer_write_tree_header): Likewise.
18126 (streamer_write_integer_cst): Likewise.
18127 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18128 (build_constructors): Likewise.
18129 (array_value_type): Likewise.
18130 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
18131 (vect_check_gather): Likewise.
18132 * tree-vect-generic.c (build_replicated_const): Likewise.
18133 (expand_vector_divmod): Likewise.
18134 * tree-vect-loop.c (vect_transform_loop): Likewise.
18135 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
18136 (vect_do_peeling_for_alignment): Likewise.
18137 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
18138 * tree-vrp.c: Include wide-int.h.
18139 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
18140 (extract_range_from_assert): Use wide-int interfaces.
18141 (vrp_int_const_binop): Likewise.
18142 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
18143 double_int pointers.
18144 (ranges_from_anti_range): Use wide-int interfaces.
18145 (quad_int_cmp): Delete.
18146 (quad_int_pair_sort): Likewise.
18147 (extract_range_from_binary_expr_1): Use wide-int interfaces.
18148 (extract_range_from_unary_expr_1): Likewise.
18149 (adjust_range_with_scev): Likewise.
18150 (masked_increment): Take and return wide_ints rather than double_ints.
18151 (register_edge_assert_for_2): Use wide-int interfaces.
18152 (check_array_ref): Likewise.
18153 (search_for_addr_array): Likewise.
18154 (maybe_set_nonzero_bits): Likewise.
18155 (union_ranges): Pass an integer of the correct type instead of
18156 using integer_one_node.
18157 (intersect_ranges): Likewise.
18158 (simplify_truth_ops_using_ranges): Likewise.
18159 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18160 (range_fits_type_p): Likewise.
18161 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18163 (simplify_conversion_using_ranges): Use wide-int interfaces.
18164 (simplify_float_conversion_using_ranges): Likewise.
18165 (vrp_finalize): Likewise.
18166 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18167 (gimple_stringops_transform): Likewise.
18168 * varasm.c (decode_addr_const): Likewise.
18169 (const_hash_1): Likewise.
18170 (const_rtx_hash_1): Likewise
18171 (output_constant): Likewise.
18172 (array_size_for_constructor): Likewise.
18173 (output_constructor_regular_field): Likewise.
18174 (output_constructor_bitfield): Likewise.
18175 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18176 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18178 * gencheck.c: Define BITS_PER_UNIT.
18179 * wide-int.cc: New.
18181 * wide-int-print.cc: New.
18182 * wide-int-print.h: New.
18184 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18186 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18188 2014-05-06 Richard Biener <rguenther@suse.de>
18190 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18191 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18192 (TODO_verify_all): Adjust.
18193 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18194 TODO_verify_stmts and TODO_verify_rtl_sharing.
18195 * bb-reorder.c: Likewise.
18196 * cfgexpand.c: Likewise.
18197 * cprop.c: Likewise.
18199 * function.c: Likewise.
18200 * fwprop.c: Likewise.
18201 * gcse.c: Likewise.
18202 * gimple-ssa-isolate-paths.c: Likewise.
18203 * gimple-ssa-strength-reduction.c: Likewise.
18204 * ipa-split.c: Likewise.
18205 * loop-init.c: Likewise.
18206 * loop-unroll.c: Likewise.
18207 * lower-subreg.c: Likewise.
18208 * modulo-sched.c: Likewise.
18209 * postreload-gcse.c: Likewise.
18210 * predict.c: Likewise.
18211 * recog.c: Likewise.
18212 * sched-rgn.c: Likewise.
18213 * store-motion.c: Likewise.
18214 * tracer.c: Likewise.
18215 * trans-mem.c: Likewise.
18216 * tree-call-cdce.c: Likewise.
18217 * tree-cfg.c: Likewise.
18218 * tree-cfgcleanup.c: Likewise.
18219 * tree-complex.c: Likewise.
18220 * tree-eh.c: Likewise.
18221 * tree-emutls.c: Likewise.
18222 * tree-if-conv.c: Likewise.
18223 * tree-into-ssa.c: Likewise.
18224 * tree-loop-distribution.c: Likewise.
18225 * tree-object-size.c: Likewise.
18226 * tree-parloops.c: Likewise.
18227 * tree-pass.h: Likewise.
18228 * tree-sra.c: Likewise.
18229 * tree-ssa-ccp.c: Likewise.
18230 * tree-ssa-copy.c: Likewise.
18231 * tree-ssa-copyrename.c: Likewise.
18232 * tree-ssa-dce.c: Likewise.
18233 * tree-ssa-dom.c: Likewise.
18234 * tree-ssa-dse.c: Likewise.
18235 * tree-ssa-forwprop.c: Likewise.
18236 * tree-ssa-ifcombine.c: Likewise.
18237 * tree-ssa-loop-ch.c: Likewise.
18238 * tree-ssa-loop-ivcanon.c: Likewise.
18239 * tree-ssa-loop.c: Likewise.
18240 * tree-ssa-math-opts.c: Likewise.
18241 * tree-ssa-phiopt.c: Likewise.
18242 * tree-ssa-phiprop.c: Likewise.
18243 * tree-ssa-pre.c: Likewise.
18244 * tree-ssa-reassoc.c: Likewise.
18245 * tree-ssa-sink.c: Likewise.
18246 * tree-ssa-strlen.c: Likewise.
18247 * tree-ssa-tail-merge.c: Likewise.
18248 * tree-ssa-uncprop.c: Likewise.
18249 * tree-switch-conversion.c: Likewise.
18250 * tree-tailcall.c: Likewise.
18251 * tree-vect-generic.c: Likewise.
18252 * tree-vectorizer.c: Likewise.
18253 * tree-vrp.c: Likewise.
18254 * tsan.c: Likewise.
18255 * var-tracking.c: Likewise.
18256 * bt-load.c: Likewise.
18257 * cfgcleanup.c: Likewise.
18258 * combine-stack-adj.c: Likewise.
18259 * combine.c: Likewise.
18260 * compare-elim.c: Likewise.
18261 * config/epiphany/resolve-sw-modes.c: Likewise.
18262 * config/i386/i386.c: Likewise.
18263 * config/mips/mips.c: Likewise.
18264 * config/s390/s390.c: Likewise.
18265 * config/sh/sh_treg_combine.cc: Likewise.
18266 * config/sparc/sparc.c: Likewise.
18269 * final.c: Likewise.
18270 * ifcvt.c: Likewise.
18271 * mode-switching.c: Likewise.
18272 * passes.c: Likewise.
18273 * postreload.c: Likewise.
18275 * reg-stack.c: Likewise.
18276 * regcprop.c: Likewise.
18277 * regrename.c: Likewise.
18280 2014-05-06 Richard Biener <rguenther@suse.de>
18282 PR middle-end/61070
18283 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18284 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18286 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18289 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18291 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18292 Tom de Vries <tom@codesourcery.com>
18294 * target.def (call_fusage_contains_non_callee_clobbers): New
18296 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18298 (@node Miscellaneous Register Hooks): New node.
18299 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18300 * doc/tm.texi: Regenerate.
18302 2014-05-05 Marek Polacek <polacek@redhat.com>
18305 * opts.c (common_handle_option): Call error_at instead of warning_at.
18307 2014-05-05 Richard Biener <rguenther@suse.de>
18309 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18310 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18311 under the TODO_verify_il umbrella.
18313 2014-05-05 Richard Biener <rguenther@suse.de>
18315 * passes.c (execute_function_todo): Move TODO_verify_flow under
18316 the TODO_verify_ul umbrella.
18318 2014-05-05 Richard Biener <rguenther@suse.de>
18320 PR middle-end/61010
18321 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18322 X & CST away from a CST that is the mask of a mode.
18324 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18326 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18327 int argument to enum machine_mode.
18328 (picochip_class_max_nregs): Ditto.
18329 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18330 (picochip_class_max_nregs): Ditto.
18332 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18334 * target.def: Add new target hook.
18335 * doc/tm.texi: Regenerate.
18336 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18337 * targhooks.c (default_keep_leaf_when_profiled): New function.
18339 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18340 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18342 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18344 PR tree-optimization/60363
18345 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18346 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18347 (update_destination_phis): New parameter.
18348 (create_edge_and_update_destination_phis): Ditto.
18349 (ssa_fix_duplicate_block_edges): Pass new arguments.
18350 (thread_single_edge): Ditto.
18352 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18354 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18355 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18356 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18357 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18358 Use RS6000_BTM_HARD_FLOAT.
18359 (BU_MISC_2): Likewise.
18360 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18361 RS6000_BTM_HARD_FLOAT.
18362 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18363 is explicitly used.
18364 (rs6000_invalid_builtin): Add hard floating builtin support.
18365 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18366 hard float builtins.
18367 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18369 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18371 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18372 Add missing function* argument.
18374 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18376 * lra-constraints.c (valid_address_p): Move earlier in file.
18377 Add a constraint argument to the address_info version.
18378 (satisfies_memory_constraint_p): New function.
18379 (satisfies_address_constraint_p): Likewise.
18380 (process_alt_operands, curr_insn_transform): Use them.
18381 (process_address): Pass the constraint to valid_address_p when
18382 checking address operands.
18384 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18386 * config/mips/mips.c (mips_isa_rev): New variable.
18387 (mips_set_architecture): Set it.
18388 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18390 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18391 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18392 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18393 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18394 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18395 conditions in terms of mips_isa_rev.
18396 (mips_isa_rev): Declare.
18398 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18400 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18401 (prob_unlikely, prob_likely): Make variables const.
18403 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18405 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18407 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18409 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18411 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18413 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18414 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18415 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18417 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18418 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18420 Replace usage of ROUND_REG with sh_round_reg.
18421 Use CEIL instead of ROUND_ADVANCE.
18423 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18426 * config/sh/sh.c: Include stdlib headers before everything else.
18428 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18430 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18431 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18432 (gimplify_adjust_omp_clauses): Simd region is never
18433 directly nested in combined parallel. Instead, for linear
18434 with copyin/copyout, if in combined for simd loop, make decl
18435 firstprivate/lastprivate on OMP_FOR.
18436 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18437 expand_omp_for_static_chunk): When setting endvar, also set
18438 fd->loop.v to the same value.
18440 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18442 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18444 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18446 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18449 2014-05-02 Marek Polacek <polacek@redhat.com>
18451 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18453 2014-05-02 Kito Cheng <kito@0xlab.org>
18455 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18456 to a C expression marco.
18457 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18458 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18459 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18460 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18461 HONOR_REG_ALLOC_ORDER.
18462 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18464 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18466 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18468 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18470 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18472 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18474 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18475 (convert_scalar_cond_reduction): Likewise.
18476 (predicate_scalar_phi): Add recognition and transformation
18477 of simple conditioanl reduction to be vectorizable.
18479 2014-05-01 Marek Polacek <polacek@redhat.com>
18482 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18484 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18486 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18487 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18488 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18489 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18490 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18491 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18492 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18493 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18495 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18497 * config/arc/arc.opt (mlra): Move comment above option name
18498 to avoid mis-parsing as language options.
18500 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18502 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18503 * config/sol2.h: ... here.
18504 * config/sol2-10.h: Remove.
18506 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18507 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18508 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18509 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18510 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18511 * config/sol2.h: ... here.
18512 (SECTION_NAME_FORMAT): Don't redefine.
18513 (STARTFILE_ARCH32_SPEC): Rename to ...
18514 (STARTFILE_ARCH_SPEC): ... this.
18515 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18516 * config/sparc/sol2.h: ... here.
18517 (SECTION_NAME_FORMAT): Don't undef.
18518 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18519 (SUBTARGET_EXTRA_SPECS): Remove.
18520 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18522 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18523 (MD_STARTFILE_PREFIX): Remove.
18524 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18525 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18526 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18527 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18528 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18529 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18530 * config/i386/sol2.h: ... here.
18531 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18532 * config/i386/sol2-bi.h: Remove.
18533 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18534 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18536 * config/i386/t-sol2-64: Rename to ...
18537 * config/i386/t-sol2: ... this.
18538 * config/sparc/t-sol2-64: Rename to ...
18539 * config/sparc/t-sol2: ... this.
18541 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18542 sol2_tm_file_head, sol2_tm_file_tail.
18543 Include ${cpu_type}/sol2.h before sol2.h.
18545 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18546 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18547 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18548 Reflect i386/t-sol2-64 renaming.
18549 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18550 Reflect sparc/t-sol2-64 renaming.
18552 2014-04-30 Richard Biener <rguenther@suse.de>
18554 * passes.c (execute_function_todo): Move TODO_verify_stmts
18555 and TODO_verify_ssa under the TODO_verify_il umbrella.
18556 * tree-ssa.h (verify_ssa): Adjust prototype.
18557 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18558 we should verify SSA operands.
18559 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18560 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18561 whether we should verify whether not throwing stmts have EH info.
18562 * graphite-scop-detection.c (create_sese_edges): Adjust.
18563 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18564 * tree-eh.c (lower_try_finally_switch): Do not add the
18565 default case label twice.
18567 2014-04-30 Marek Polacek <polacek@redhat.com>
18569 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18570 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18571 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18572 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18574 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18576 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18577 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18578 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18579 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18580 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18581 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18582 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18583 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18585 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18587 * tree-cfg.c (dump_function_to_file): Dump the return type of
18588 functions, in a line to itself before the function body, mimicking
18589 the layout of a C function.
18591 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18593 PR tree-optimization/60971
18594 * tree-tailcall.c (process_assignment): Reject conversions which
18597 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18599 * calls.c (initialize_argument_information): Always treat
18600 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18601 (expand_call): Likewise.
18602 (emit_library_call_calue_1): Likewise.
18603 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18604 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18607 2014-04-29 Nick Clifton <nickc@redhat.com>
18609 * config/msp430/msp430.md (umulsidi): Fix typo.
18610 (mulhisi3): Enable even inside interrupt handlers.
18611 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18612 bigger return address pushed in large mode.
18614 2014-04-29 Nick Clifton <nickc@redhat.com>
18616 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18617 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18619 * config/m32r/m32r.c (init_reg_tables): Likewise.
18620 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18621 enum to hold the modes.
18623 2014-04-29 Richard Biener <rguenther@suse.de>
18625 * dominance.c (free_dominance_info): Add overload with
18626 function parameter.
18627 (dom_info_state): Likewise.
18628 (dom_info_available_p): Likewise.
18629 * basic-block.h (free_dominance_info, dom_info_state,
18630 dom_info_available_p): Declare overloads.
18631 * passes.c (execute_function_todo): Verify that verifiers
18632 don't change dominator info state. Drop dominator info
18633 for IPA pass invocations.
18634 * cgraph.c (release_function_body): Restore asserts that
18635 dominator information is released.
18637 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18639 * doc/invoke.texi: Fix typo.
18640 * tree-vrp.c: Fix typos.
18641 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18643 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18645 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18647 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18649 * config/aarch64/aarch64-builtins.c
18650 (aarch64_types_storestruct_lane_qualifiers): New.
18651 (TYPES_STORESTRUCT_LANE): Likewise.
18652 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18653 (st3_lane): Likewise.
18654 (st4_lane): Likewise.
18655 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18656 (vec_store_lanesci_lane<mode>): Likewise.
18657 (vec_store_lanesxi_lane<mode>): Likewise.
18658 (aarch64_st2_lane<VQ:mode>): Likewise.
18659 (aarch64_st3_lane<VQ:mode>): Likewise.
18660 (aarch64_st4_lane<VQ:mode>): Likewise.
18661 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18662 * config/aarch64/arm_neon.h
18663 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18664 use new macro arguments.
18665 (__ST3_LANE_FUNC): Likewise.
18666 (__ST4_LANE_FUNC): Likewise.
18667 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18668 (V_THREE_ELEM): Likewise.
18669 (V_FOUR_ELEM): Likewise.
18671 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18673 * doc/gimple.texi: Replace the description of the now-defunct
18674 union gimple_statement_d with a diagram showing the
18675 gimple_statement_base class hierarchy and its relationships to
18676 the GSS_ and GIMPLE_ enums.
18678 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18680 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18681 * config/aarch64/aarch64.c
18682 (aarch64_cannot_change_mode_class): Weaken conditions.
18683 (aarch64_modes_tieable_p): New.
18684 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18686 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18688 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18689 (loadsync_<mode>): Change mode.
18690 (load_quadpti, store_quadpti): New.
18691 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18692 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18694 2014-04-28 Martin Jambor <mjambor@suse.cz>
18696 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18697 same alias type as the original statement.
18698 (subreplacement_assignment_data): New type.
18699 (handle_unscalarized_data_in_subtree): New type of parameter,
18700 generate new memory accesses with same alias type as the original
18702 (load_assign_lhs_subreplacements): Likewise.
18703 (sra_modify_constructor_assign): Generate new memory accesses with
18704 same alias type as the original statement.
18706 2014-04-28 Richard Biener <rguenther@suse.de>
18708 * tree-pass.h (TODO_verify_il): Define.
18709 (TODO_verify_all): Complete properly.
18710 * passes.c (execute_function_todo): Move existing loop-closed
18711 SSA verification under TODO_verify_il.
18712 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18713 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18714 Fix tree sharing issue.
18716 2014-04-28 Richard Biener <rguenther@suse.de>
18718 PR middle-end/60092
18719 * builtins.def (DEF_C11_BUILTIN): Add.
18720 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18721 * coretypes.h (enum function_class): Add function_c11_misc.
18722 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18723 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18724 (call_may_clobber_ref_p_1): Likewise.
18725 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18726 (mark_all_reaching_defs_necessary_1): Likewise.
18727 (propagate_necessity): Likewise.
18728 (eliminate_unnecessary_stmts): Likewise.
18729 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18731 2014-04-28 Richard Biener <rguenther@suse.de>
18733 * tree-vrp.c (vrp_var_may_overflow): Remove.
18734 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18735 with overflow immediately bump to one before that value and
18736 let iteration figure out overflow status.
18738 2014-04-28 Richard Biener <rguenther@suse.de>
18740 * configure.ac: Do valgrind header checks unconditionally.
18741 Add --enable-valgrind-annotations.
18742 * system.h: Guard valgrind header inclusion with
18743 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18744 * alloc-pool.c (pool_alloc, pool_free): Use
18745 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18746 to guard possibly dead code.
18747 * config.in: Regenerated.
18748 * configure: Likewise.
18750 2014-04-28 Jeff Law <law@redhat.com>
18752 PR tree-optimization/60902
18753 * tree-ssa-threadedge.c
18754 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18755 over real defs when invalidating outputs from statements that do not
18756 produce useful outputs for threading.
18758 2014-04-28 Richard Biener <rguenther@suse.de>
18760 PR tree-optimization/60979
18761 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18762 SCOPs that end in a block with a successor with abnormal
18765 2014-04-28 Richard Biener <rguenther@suse.de>
18767 * tree-pass.h (execute_pass_list): Adjust prototype.
18768 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18769 (do_per_function): Change callback signature, push all actual
18770 work to the callbals.
18771 (do_per_function_toporder): Likewise.
18772 (execute_function_dump): Adjust.
18773 (execute_function_todo): Likewise.
18774 (clear_last_verified): Likewise.
18775 (verify_curr_properties): Likewise.
18776 (update_properties_after_pass): Likewise.
18777 (execute_pass_list_1): Split out from ...
18778 (execute_pass_list): ... here. Adjust.
18779 (execute_ipa_pass_list): Likewise.
18780 * cgraphunit.c (cgraph_add_new_function): Adjust.
18781 (analyze_function): Likewise.
18782 (expand_function): Likewise.
18783 * cgraph.c (release_function_body): Free dominance info
18784 here instead of asserting it was magically freed elsewhere.
18786 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18788 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18789 * configure: Regenerate.
18790 * config/sparc/sparc.opt (muser-mode): New option.
18791 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18793 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18794 * doc/invoke.texi (SPARC options): Document -muser-mode.
18796 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18798 * cselib.c (find_slot_memmode): Delete.
18799 (cselib_hasher): Change compare_type to a struct.
18800 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18802 (preserve_constants_and_equivs): Adjust for new compare_type.
18803 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18804 (wrap_constant): Delete.
18805 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18807 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18809 * doc/install.texi (Building with profile feedback): Remove
18812 2014-04-26 Tom de Vries <tom@codesourcery.com>
18814 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18817 2014-04-25 Cary Coutant <ccoutant@google.com>
18820 * dwarf2out.c (should_move_die_to_comdat): A type definition
18821 can contain a subprogram definition, but don't move it to a
18823 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18824 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18826 (clone_tree_hash): Rename to...
18827 (clone_tree_partial): ...this; change callers. Copy
18828 DW_TAG_subprogram DIEs as declarations.
18829 (copy_decls_walk): Don't copy children of a declaration into a
18832 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18835 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18838 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18840 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18841 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18843 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18846 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18848 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18850 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18852 PR tree-optimization/60930
18853 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18854 creating a multiply candidate by folding two constant
18855 multiplicands when the result overflows.
18857 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18859 PR tree-optimization/60960
18860 * tree-vect-generic.c (expand_vector_operation): Only call
18861 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18863 2014-04-25 Tom de Vries <tom@codesourcery.com>
18865 * expr.c (clobber_reg_mode): New function.
18866 * expr.h (clobber_reg): New function.
18868 2014-04-25 Tom de Vries <tom@codesourcery.com>
18870 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18873 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18874 Tom de Vries <tom@codesourcery.com>
18876 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18878 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18879 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18880 new argument to find_all_hard_reg_sets call.
18882 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18884 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18885 Use HOST_WIDE_INT_C for mask literal.
18886 (aarch_rev16_shleft_mask_imm_p): Likewise.
18888 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18891 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18893 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18895 PR preprocessor/56540
18896 * config/i386/i386-c.c (ix86_target_macros): Define
18897 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18899 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18901 * configure.ac (tga_func): Remove.
18902 (LIB_TLS_SPEC): Remove.
18903 * configure: Regenerate.
18904 * config.in: Regenerate.
18905 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18907 2014-04-25 Richard Biener <rguenther@suse.de>
18910 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18911 call stmt use/clobber sets during stmt walk instead of
18912 walking the possibly incomplete set of caller edges.
18914 2014-04-25 Richard Biener <rguenther@suse.de>
18917 * passes.c (apply_ipa_transforms): Inline into only caller ...
18918 (execute_one_pass): ... here. Properly bring in function
18919 bodies for nodes we want to apply IPA transforms to.
18921 2014-04-24 Cong Hou <congh@google.com>
18923 PR tree-optimization/60896
18924 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18925 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18926 (vect_mark_pattern_stmts): Set the def type of all statements in
18927 PATTERN_DEF_SEQ as vect_internal_def.
18929 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18931 * doc/extend.texi (PowerPC Built-in Functions): Document new
18932 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18933 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18935 * config/rs6000/predicates.md (const_0_to_3_operand): New
18936 predicate to match 0..3 integer constants.
18938 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18939 to support adding miscellaneous builtin functions.
18940 (BU_DFP_MISC_2): Likewise.
18941 (BU_P7_MISC_1): Likewise.
18942 (BU_P7_MISC_2): Likewise.
18943 (BU_P8V_MISC_3): Likewise.
18944 (BU_MISC_1): Likewise.
18945 (BU_MISC_2): Likewise.
18946 (DIVWE): Add extended divide builtin functions.
18947 (DIVWEO): Likewise.
18948 (DIVWEU): Likewise.
18949 (DIVWEUO): Likewise.
18951 (DIVDEO): Likewise.
18952 (DIVDEU): Likewise.
18953 (DIVDEUO): Likewise.
18954 (DXEX): Add decimal floating-point builtin functions.
18956 (DDEDPD): Likewise.
18957 (DDEDPDQ): Likewise.
18958 (DENBCD): Likewise.
18959 (DENBCDQ): Likewise.
18963 (DSCLIQ): Likewise.
18965 (DSCRIQ): Likewise.
18966 (CDTBCD): Add new BCD builtin functions.
18967 (CBCDTD): Likewise.
18968 (ADDG6S): Likewise.
18969 (BCDADD): Likewise.
18970 (BCDADD_LT): Likewise.
18971 (BCDADD_EQ): Likewise.
18972 (BCDADD_GT): Likewise.
18973 (BCDADD_OV): Likewise.
18974 (BCDSUB): Likewise.
18975 (BCDSUB_LT): Likewise.
18976 (BCDSUB_EQ): Likewise.
18977 (BCDSUB_GT): Likewise.
18978 (BCDSUB_OV): Likewise.
18979 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18980 (UNPACK_TD): Likewise.
18981 (PACK_TF): Likewise.
18982 (UNPACK_TF): Likewise.
18983 (UNPACK_TF_0): Likewise.
18984 (UNPACK_TF_1): Likewise.
18985 (PACK_V1TI): Likewise.
18986 (UNPACK_V1TI): Likewise.
18988 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18989 support for decimal floating point builtin functions.
18990 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18991 functions that take constant arguments.
18992 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18993 (rs6000_init_builtins): Setup long double, _Decimal64, and
18994 _Decimal128 types for new builtin functions.
18995 (builtin_function_type): Set the unsigned flags appropriately for
18996 the new builtin functions.
18997 (rs6000_opt_masks): Add support for decimal floating point builtin
19000 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
19001 floating point builtin functions.
19002 (RS6000_BTM_COMMON): Likewise.
19003 (RS6000_BTI_long_double): Likewise.
19004 (RS6000_BTI_dfloat64): Likewise.
19005 (RS6000_BTI_dfloat128): Likewise.
19006 (long_double_type_internal_node): Likewise.
19007 (dfloat64_type_internal_node): Likewise.
19008 (dfloat128_type_internal_node): Likewise.
19010 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
19011 2.07 bcd arithmetic instructions.
19012 (UNSPEC_BCDSUB): Likewise.
19013 (UNSPEC_BCD_OVERFLOW): Likewise.
19014 (UNSPEC_BCD_ADD_SUB): Likewise.
19015 (bcd_add_sub): Likewise.
19016 (BCD_TEST): Likewise.
19017 (bcd<bcd_add_sub>): Likewise.
19018 (bcd<bcd_add_sub>_test): Likewise.
19019 (bcd<bcd_add_sub>_test2): Likewise.
19020 (bcd<bcd_add_sub>_<code>): Likewise.
19021 (peephole2 for combined bcd ops): Likewise.
19023 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
19024 decimal floating point builtin functions.
19025 (UNSPEC_DENBCD): Likewise.
19026 (UNSPEC_DXEX): Likewise.
19027 (UNSPEC_DIEX): Likewise.
19028 (UNSPEC_DSCLI): Likewise.
19029 (UNSPEC_DSCRI): Likewise.
19030 (D64_D128): Likewise.
19031 (dfp_suffix): Likewise.
19032 (dfp_ddedpd_<mode>): Likewise.
19033 (dfp_denbcd_<mode>): Likewise.
19034 (dfp_dxex_<mode>): Likewise.
19035 (dfp_diex_<mode>): Likewise.
19036 (dfp_dscli_<mode>): Likewise.
19037 (dfp_dscri_<mode>): Likewise.
19039 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
19041 (UNSPEC_CDTBCD): Likewise.
19042 (UNSPEC_CBCDTD): Likewise.
19043 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
19044 (UNSPEC_DIVEO): Likewise.
19045 (UNSPEC_DIVEU): Likewise.
19046 (UNSPEC_DIVEUO): Likewise.
19047 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
19048 pack/unpack 128-bit types.
19049 (UNSPEC_PACK_128BIT): Likewise.
19050 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
19051 (udiv<mode>3): Use idiv_ldiv mode attribute.
19052 (div<mode>3): Likewise.
19053 (addg6s): Add new BCD builtin functions.
19054 (cdtbcd): Likewise.
19055 (cbcdtd): Likewise.
19056 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
19057 (div_extend): Likewise.
19058 (div<div_extend>_<mode>"): Likewise.
19059 (FP128_64): Add support for new builtin functions to pack/unpack
19061 (unpack<mode>): Likewise.
19062 (unpacktf_0): Likewise.
19063 (unpacktf_1): Likewise.
19064 (unpack<mode>_dm): Likewise.
19065 (unpack<mode>_nodm): Likewise.
19066 (pack<mode>): Likewise.
19067 (unpackv1ti): Likewise.
19068 (packv1ti): Likewise.
19070 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
19072 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
19075 2014-04-24 Jakub Jelinek <jakub@redhat.com>
19077 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
19078 * gimplify.c (omp_is_private): Change last argument's type to int.
19079 Only diagnose lastprivate if the simd argument is 1, only diagnose
19080 linear if the simd argument is 2.
19081 (gimplify_omp_for): Adjust omp_is_private callers. When adding
19082 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
19083 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
19084 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
19085 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
19086 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19087 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
19088 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19089 * tree-nested.c (convert_nonlocal_omp_clauses,
19090 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
19092 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
19095 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
19098 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
19100 * flag-types.h (enum ivar_visibility): Add.
19102 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
19104 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
19105 function * argument.
19107 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
19109 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
19111 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19112 Tom de Vries <tom@codesourcery.com>
19114 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
19115 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
19117 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
19118 * emit-rtl.c (try_split): Same.
19120 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19121 Tom de Vries <tom@codesourcery.com>
19123 * common.opt (fuse-caller-save): New option.
19125 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
19127 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
19128 elements for big-endian.
19130 2014-04-24 Richard Biener <rguenther@suse.de>
19132 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
19133 during TER and instead use the sepops interface for expanding
19134 non-GIMPLE_SINGLE_RHS.
19136 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19138 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
19139 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
19141 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19143 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
19144 assembler 64-bit option.
19145 * configure: Regenerate.
19147 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19149 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
19150 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
19151 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
19152 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
19153 (TARGET_CRYPTO): Take TARGET_SIMD into account.
19155 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19157 * config/aarch64/aarch64-builtins.c
19158 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19159 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19160 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19161 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19163 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19164 (Vrevsuff): New mode attribute.
19166 2014-04-24 Terry Guo <terry.guo@arm.com>
19168 * config/arm/arm.h (machine_function): Define variable
19169 after_arm_reorg here.
19170 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19171 (arm_split_constant): Update the way to access variable
19173 (arm_reorg): Ditto.
19174 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19176 2014-04-23 Tom de Vries <tom@codesourcery.com>
19178 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19180 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19182 * is-a.h: Update comments to reflect the following changes to the
19183 "pointerness" of the API, making the template parameter match the
19184 return type, allowing use of is-a.h with typedefs of pointers.
19185 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19186 that the return type matches the parameter to the is_a_helper.
19188 (dyn_cast): Likewise.
19190 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19191 pointer from the is-a.h API.
19193 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19194 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19196 (is_a_helper <varpool_node>::test): Likewise, convert to...
19197 (is_a_helper <varpool_node *>::test): ...this.
19199 (varpool_first_variable): Update for removal of implicit pointer
19200 from the is-a.h API.
19201 (varpool_next_variable): Likewise.
19202 (varpool_first_static_initializer): Likewise.
19203 (varpool_next_static_initializer): Likewise.
19204 (varpool_first_defined_variable): Likewise.
19205 (varpool_next_defined_variable): Likewise.
19206 (cgraph_first_defined_function): Likewise.
19207 (cgraph_next_defined_function): Likewise.
19208 (cgraph_first_function): Likewise.
19209 (cgraph_next_function): Likewise.
19210 (cgraph_first_function_with_gimple_body): Likewise.
19211 (cgraph_next_function_with_gimple_body): Likewise.
19212 (cgraph_alias_target): Likewise.
19213 (varpool_alias_target): Likewise.
19214 (cgraph_function_or_thunk_node): Likewise.
19215 (varpool_variable_node): Likewise.
19216 (symtab_real_symbol_p): Likewise.
19217 * cgraphunit.c (referred_to_p): Likewise.
19218 (analyze_functions): Likewise.
19219 (handle_alias_pairs): Likewise.
19220 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19221 * gimple-ssa.h (gimple_vuse_op): Likewise.
19222 (gimple_vdef_op): Likewise.
19223 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19224 * gimple.c (gimple_build_asm_1): Likewise.
19225 (gimple_build_try): Likewise.
19226 (gimple_build_resx): Likewise.
19227 (gimple_build_eh_dispatch): Likewise.
19228 (gimple_build_omp_for): Likewise.
19229 (gimple_omp_for_set_clauses): Likewise.
19231 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19232 (is_a_helper <gimple_statement_asm *>::test): ...this.
19233 (is_a_helper <gimple_statement_bind>::test): Convert to...
19234 (is_a_helper <gimple_statement_bind *>::test): ...this.
19235 (is_a_helper <gimple_statement_call>::test): Convert to...
19236 (is_a_helper <gimple_statement_call *>::test): ...this.
19237 (is_a_helper <gimple_statement_catch>::test): Convert to...
19238 (is_a_helper <gimple_statement_catch *>::test): ...this.
19239 (is_a_helper <gimple_statement_resx>::test): Convert to...
19240 (is_a_helper <gimple_statement_resx *>::test): ...this.
19241 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19242 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19243 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19244 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19245 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19246 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19247 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19248 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19249 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19250 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19251 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19252 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19253 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19254 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19255 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19256 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19257 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19258 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19259 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19260 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19261 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19262 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19263 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19264 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19265 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19266 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19267 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19268 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19269 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19270 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19271 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19272 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19273 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19274 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19275 (is_a_helper <gimple_statement_phi>::test): Convert to...
19276 (is_a_helper <gimple_statement_phi *>::test): ...this.
19277 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19278 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19279 (is_a_helper <gimple_statement_try>::test): Convert to...
19280 (is_a_helper <gimple_statement_try *>::test): ...this.
19281 (is_a_helper <gimple_statement_wce>::test): Convert to...
19282 (is_a_helper <gimple_statement_wce *>::test): ...this.
19283 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19284 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19285 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19286 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19287 (is_a_helper <const gimple_statement_call>::test): Convert to...
19288 (is_a_helper <const gimple_statement_call *>::test): ...this.
19289 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19290 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19291 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19292 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19293 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19294 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19295 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19296 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19297 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19299 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19301 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19303 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19305 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19306 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19307 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19309 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19310 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19312 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19313 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19314 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19315 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19316 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19317 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19319 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19320 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19321 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19322 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19324 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19325 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19326 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19327 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19328 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19329 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19330 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19331 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19332 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19333 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19334 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19335 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19336 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19337 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19338 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19339 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19341 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19343 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19344 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19346 (gimple_use_ops): Update for removal of implicit pointer from the
19348 (gimple_set_use_ops): Likewise.
19349 (gimple_vuse): Likewise.
19350 (gimple_vdef): Likewise.
19351 (gimple_vuse_ptr): Likewise.
19352 (gimple_vdef_ptr): Likewise.
19353 (gimple_set_vuse): Likewise.
19354 (gimple_set_vdef): Likewise.
19355 (gimple_omp_return_set_lhs): Likewise.
19356 (gimple_omp_return_lhs): Likewise.
19357 (gimple_omp_return_lhs_ptr): Likewise.
19358 (gimple_call_fntype): Likewise.
19359 (gimple_call_set_fntype): Likewise.
19360 (gimple_call_set_internal_fn): Likewise.
19361 (gimple_call_use_set): Likewise.
19362 (gimple_call_clobber_set): Likewise.
19363 (gimple_bind_vars): Likewise.
19364 (gimple_bind_set_vars): Likewise.
19365 (gimple_bind_body_ptr): Likewise.
19366 (gimple_bind_set_body): Likewise.
19367 (gimple_bind_add_stmt): Likewise.
19368 (gimple_bind_block): Likewise.
19369 (gimple_bind_set_block): Likewise.
19370 (gimple_asm_ninputs): Likewise.
19371 (gimple_asm_noutputs): Likewise.
19372 (gimple_asm_nclobbers): Likewise.
19373 (gimple_asm_nlabels): Likewise.
19374 (gimple_asm_input_op): Likewise.
19375 (gimple_asm_input_op_ptr): Likewise.
19376 (gimple_asm_output_op): Likewise.
19377 (gimple_asm_output_op_ptr): Likewise.
19378 (gimple_asm_set_output_op): Likewise.
19379 (gimple_asm_clobber_op): Likewise.
19380 (gimple_asm_set_clobber_op): Likewise.
19381 (gimple_asm_label_op): Likewise.
19382 (gimple_asm_set_label_op): Likewise.
19383 (gimple_asm_string): Likewise.
19384 (gimple_catch_types): Likewise.
19385 (gimple_catch_types_ptr): Likewise.
19386 (gimple_catch_handler_ptr): Likewise.
19387 (gimple_catch_set_types): Likewise.
19388 (gimple_catch_set_handler): Likewise.
19389 (gimple_eh_filter_types): Likewise.
19390 (gimple_eh_filter_types_ptr): Likewise.
19391 (gimple_eh_filter_failure_ptr): Likewise.
19392 (gimple_eh_filter_set_types): Likewise.
19393 (gimple_eh_filter_set_failure): Likewise.
19394 (gimple_eh_must_not_throw_fndecl): Likewise.
19395 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19396 (gimple_eh_else_n_body_ptr): Likewise.
19397 (gimple_eh_else_e_body_ptr): Likewise.
19398 (gimple_eh_else_set_n_body): Likewise.
19399 (gimple_eh_else_set_e_body): Likewise.
19400 (gimple_try_eval_ptr): Likewise.
19401 (gimple_try_cleanup_ptr): Likewise.
19402 (gimple_try_set_eval): Likewise.
19403 (gimple_try_set_cleanup): Likewise.
19404 (gimple_wce_cleanup_ptr): Likewise.
19405 (gimple_wce_set_cleanup): Likewise.
19406 (gimple_phi_capacity): Likewise.
19407 (gimple_phi_num_args): Likewise.
19408 (gimple_phi_result): Likewise.
19409 (gimple_phi_result_ptr): Likewise.
19410 (gimple_phi_set_result): Likewise.
19411 (gimple_phi_arg): Likewise.
19412 (gimple_phi_set_arg): Likewise.
19413 (gimple_resx_region): Likewise.
19414 (gimple_resx_set_region): Likewise.
19415 (gimple_eh_dispatch_region): Likewise.
19416 (gimple_eh_dispatch_set_region): Likewise.
19417 (gimple_omp_critical_name): Likewise.
19418 (gimple_omp_critical_name_ptr): Likewise.
19419 (gimple_omp_critical_set_name): Likewise.
19420 (gimple_omp_for_clauses): Likewise.
19421 (gimple_omp_for_clauses_ptr): Likewise.
19422 (gimple_omp_for_set_clauses): Likewise.
19423 (gimple_omp_for_collapse): Likewise.
19424 (gimple_omp_for_index): Likewise.
19425 (gimple_omp_for_index_ptr): Likewise.
19426 (gimple_omp_for_set_index): Likewise.
19427 (gimple_omp_for_initial): Likewise.
19428 (gimple_omp_for_initial_ptr): Likewise.
19429 (gimple_omp_for_set_initial): Likewise.
19430 (gimple_omp_for_final): Likewise.
19431 (gimple_omp_for_final_ptr): Likewise.
19432 (gimple_omp_for_set_final): Likewise.
19433 (gimple_omp_for_incr): Likewise.
19434 (gimple_omp_for_incr_ptr): Likewise.
19435 (gimple_omp_for_set_incr): Likewise.
19436 (gimple_omp_for_pre_body_ptr): Likewise.
19437 (gimple_omp_for_set_pre_body): Likewise.
19438 (gimple_omp_parallel_clauses): Likewise.
19439 (gimple_omp_parallel_clauses_ptr): Likewise.
19440 (gimple_omp_parallel_set_clauses): Likewise.
19441 (gimple_omp_parallel_child_fn): Likewise.
19442 (gimple_omp_parallel_child_fn_ptr): Likewise.
19443 (gimple_omp_parallel_set_child_fn): Likewise.
19444 (gimple_omp_parallel_data_arg): Likewise.
19445 (gimple_omp_parallel_data_arg_ptr): Likewise.
19446 (gimple_omp_parallel_set_data_arg): Likewise.
19447 (gimple_omp_task_clauses): Likewise.
19448 (gimple_omp_task_clauses_ptr): Likewise.
19449 (gimple_omp_task_set_clauses): Likewise.
19450 (gimple_omp_task_child_fn): Likewise.
19451 (gimple_omp_task_child_fn_ptr): Likewise.
19452 (gimple_omp_task_set_child_fn): Likewise.
19453 (gimple_omp_task_data_arg): Likewise.
19454 (gimple_omp_task_data_arg_ptr): Likewise.
19455 (gimple_omp_task_set_data_arg): Likewise.
19456 (gimple_omp_taskreg_clauses): Likewise.
19457 (gimple_omp_taskreg_clauses_ptr): Likewise.
19458 (gimple_omp_taskreg_set_clauses): Likewise.
19459 (gimple_omp_taskreg_child_fn): Likewise.
19460 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19461 (gimple_omp_taskreg_set_child_fn): Likewise.
19462 (gimple_omp_taskreg_data_arg): Likewise.
19463 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19464 (gimple_omp_taskreg_set_data_arg): Likewise.
19465 (gimple_omp_task_copy_fn): Likewise.
19466 (gimple_omp_task_copy_fn_ptr): Likewise.
19467 (gimple_omp_task_set_copy_fn): Likewise.
19468 (gimple_omp_task_arg_size): Likewise.
19469 (gimple_omp_task_arg_size_ptr): Likewise.
19470 (gimple_omp_task_set_arg_size): Likewise.
19471 (gimple_omp_task_arg_align): Likewise.
19472 (gimple_omp_task_arg_align_ptr): Likewise.
19473 (gimple_omp_task_set_arg_align): Likewise.
19474 (gimple_omp_single_clauses): Likewise.
19475 (gimple_omp_single_clauses_ptr): Likewise.
19476 (gimple_omp_single_set_clauses): Likewise.
19477 (gimple_omp_target_clauses): Likewise.
19478 (gimple_omp_target_clauses_ptr): Likewise.
19479 (gimple_omp_target_set_clauses): Likewise.
19480 (gimple_omp_target_child_fn): Likewise.
19481 (gimple_omp_target_child_fn_ptr): Likewise.
19482 (gimple_omp_target_set_child_fn): Likewise.
19483 (gimple_omp_target_data_arg): Likewise.
19484 (gimple_omp_target_data_arg_ptr): Likewise.
19485 (gimple_omp_target_set_data_arg): Likewise.
19486 (gimple_omp_teams_clauses): Likewise.
19487 (gimple_omp_teams_clauses_ptr): Likewise.
19488 (gimple_omp_teams_set_clauses): Likewise.
19489 (gimple_omp_sections_clauses): Likewise.
19490 (gimple_omp_sections_clauses_ptr): Likewise.
19491 (gimple_omp_sections_set_clauses): Likewise.
19492 (gimple_omp_sections_control): Likewise.
19493 (gimple_omp_sections_control_ptr): Likewise.
19494 (gimple_omp_sections_set_control): Likewise.
19495 (gimple_omp_for_set_cond): Likewise.
19496 (gimple_omp_for_cond): Likewise.
19497 (gimple_omp_atomic_store_set_val): Likewise.
19498 (gimple_omp_atomic_store_val): Likewise.
19499 (gimple_omp_atomic_store_val_ptr): Likewise.
19500 (gimple_omp_atomic_load_set_lhs): Likewise.
19501 (gimple_omp_atomic_load_lhs): Likewise.
19502 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19503 (gimple_omp_atomic_load_set_rhs): Likewise.
19504 (gimple_omp_atomic_load_rhs): Likewise.
19505 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19506 (gimple_omp_continue_control_def): Likewise.
19507 (gimple_omp_continue_control_def_ptr): Likewise.
19508 (gimple_omp_continue_set_control_def): Likewise.
19509 (gimple_omp_continue_control_use): Likewise.
19510 (gimple_omp_continue_control_use_ptr): Likewise.
19511 (gimple_omp_continue_set_control_use): Likewise.
19512 (gimple_transaction_body_ptr): Likewise.
19513 (gimple_transaction_label): Likewise.
19514 (gimple_transaction_label_ptr): Likewise.
19515 (gimple_transaction_set_body): Likewise.
19516 (gimple_transaction_set_label): Likewise.
19518 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19519 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19520 * ipa-ref.c (ipa_record_reference): Likewise.
19521 * ipa-reference.c (analyze_function): Likewise.
19522 (ipa_reference_write_optimization_summary): Likewise.
19523 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19524 (address_taken_from_non_vtable_p): Likewise.
19525 (comdat_can_be_unshared_p_1): Likewise.
19526 * lto-cgraph.c (lto_output_ref): Likewise.
19527 (add_references): Likewise.
19528 (compute_ltrans_boundary): Likewise.
19529 (output_symtab): Likewise.
19530 (input_ref): Likewise.
19531 (input_cgraph_1): Likewise.
19532 (output_cgraph_opt_summary): Likewise.
19533 * lto-streamer-out.c (lto_output): Likewise.
19534 (output_symbol_p): Likewise.
19535 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19536 (lsei_start_function_in_partition): Likewise.
19537 (lsei_next_variable_in_partition): Likewise.
19538 (lsei_start_variable_in_partition): Likewise.
19539 * symtab.c (insert_to_assembler_name_hash): Likewise.
19540 (unlink_from_assembler_name_hash): Likewise.
19541 (symtab_unregister_node): Likewise.
19542 (symtab_remove_node): Likewise.
19543 (dump_symtab_node): Likewise.
19544 (verify_symtab_base): Likewise.
19545 (verify_symtab_node): Likewise.
19546 (symtab_make_decl_local): Likewise.
19547 (symtab_alias_ultimate_target): Likewise.
19548 (symtab_resolve_alias): Likewise.
19549 (symtab_get_symbol_partitioning_class): Likewise.
19550 * tree-phinodes.c (allocate_phi_node): Likewise.
19551 (reserve_phi_args_for_new_edge): Likewise.
19552 (remove_phi_args): Likewise.
19553 * varpool.c (varpool_node_for_asm): Likewise.
19554 (varpool_remove_unreferenced_decls): Likewise.
19556 2014-04-23 Jeff Law <law@redhat.com>
19558 PR tree-optimization/60902
19559 * tree-ssa-threadedge.c
19560 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19561 invalidate outputs from statements that do not produce useful
19562 outputs for threading.
19564 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19566 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19567 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19568 machine descriptions for Stack Smashing Protector.
19570 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19572 * aarch64.md (<optab>_rol<mode>3): New pattern.
19573 (<optab>_rolsi3_uxtw): Likewise.
19574 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19576 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19578 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19579 (arm_cortex_a12_tune): Likewise.
19581 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19583 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19585 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19587 * config/arm/arm.md (arm_rev16si2): New pattern.
19588 (arm_rev16si2_alt): Likewise.
19589 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19591 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19593 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19594 (rev16<mode>2_alt): Likewise.
19595 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19596 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19597 (aarch_rev16_shleft_mask_imm_p): Likewise.
19598 (aarch_rev16_p_1): Likewise.
19599 (aarch_rev16_p): Likewise.
19600 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19601 (aarch_rev16_shright_mask_imm_p): Likewise.
19602 (aarch_rev16_shleft_mask_imm_p): Likewise.
19604 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19606 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19607 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19609 (cortex_a53_extra_costs): Likewise.
19610 (cortex_a57_extra_costs): Likewise.
19611 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19612 (cortexa7_extra_costs): Likewise.
19613 (cortexa8_extra_costs): Likewise.
19614 (cortexa12_extra_costs): Likewise.
19615 (cortexa15_extra_costs): Likewise.
19616 (v7m_extra_costs): Likewise.
19617 (arm_new_rtx_costs): Handle BSWAP.
19619 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19621 * config/arm/arm.c (cortexa8_extra_costs): New table.
19622 (arm_cortex_a8_tune): New tuning struct.
19623 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19625 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19627 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19629 2014-04-23 Richard Biener <rguenther@suse.de>
19631 * Makefile.in (OBJS): Remove loop-unswitch.o.
19632 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19633 * passes.def (pass_rtl_unswitch): Likewise.
19634 * loop-init.c (gate_rtl_unswitch): Likewise.
19635 (rtl_unswitch): Likewise.
19636 (pass_data_rtl_unswitch): Likewise.
19637 (pass_rtl_unswitch): Likewise.
19638 (make_pass_rtl_unswitch): Likewise.
19639 * rtl.h (reversed_condition): Likewise.
19640 (compare_and_jump_seq): Likewise.
19641 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19643 * loop-unroll.c (compare_and_jump_seq): Likewise.
19645 2014-04-23 Richard Biener <rguenther@suse.de>
19647 PR tree-optimization/60903
19648 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19649 commented code block.
19650 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19651 loop flags to newly created BBs and edges.
19653 2014-04-23 Nick Clifton <nickc@redhat.com>
19655 * config/msp430/msp430.c (msp430_handle_option): Move function
19657 (msp430_option_override): Simplify mcu and mcpu option handling.
19658 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19659 support for -mhwmult command line option.
19660 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19661 -mhwmult command line option.
19662 (msp430_hwmult_enabled): Delete.
19663 (msp43o_output_labelref): Add support for -mhwmult command line option.
19664 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19665 (umulsidi3): Likewise.
19666 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19667 (mcpu, mlarge, msmall): Likewise.
19668 (mhwmult): New option.
19669 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19671 (msp430_is_f5_mcu): Remove prototype.
19672 (msp430_use_f5_series_hwmult): Add prototype.
19673 * config/msp430/msp430-opts.h: New file.
19674 * common/config/msp430: New directory.
19675 * common/config/msp430/msp430-common.c: New file.
19676 * config.gcc (msp430): Remove target_has_targetm_common.
19677 * doc/invoke.texi: Document -mhwmult command line option.
19679 2014-04-23 Nick Clifton <nickc@redhat.com>
19681 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19682 default-manifest.o if it can be found in the search path.
19683 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19685 2014-04-23 Terry Guo <terry.guo@arm.com>
19687 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19689 2014-04-23 Richard Biener <rguenther@suse.de>
19691 PR middle-end/60895
19692 * tree-inline.c (declare_return_variable): Use mark_addressable.
19694 2014-04-23 Richard Biener <rguenther@suse.de>
19696 PR middle-end/60891
19697 * loop-init.c (loop_optimizer_init): Make sure to apply
19698 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19700 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19703 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19705 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19706 if flag_sanitize_undefined_trap_on_error.
19707 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19708 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19709 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19710 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19711 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19712 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19713 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19714 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19715 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19716 * ubsan.c (ubsan_instrument_unreachable): Return
19717 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19718 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19719 if flag_sanitize_undefined_trap_on_error and
19720 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19721 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19722 instrument_bool_enum_load): Emit __builtin_trap () if
19723 flag_sanitize_undefined_trap_on_error and
19724 __builtin_handle_*_abort () if !flag_sanitize_recover.
19725 * doc/invoke.texi (-fsanitize-recover,
19726 -fsanitize-undefined-trap-on-error): Document.
19728 2014-04-22 Christian Bruel <christian.bruel@st.com>
19730 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19731 Force immediates to SImode.
19733 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19735 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19736 (lroundsfsi2): New.
19737 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19738 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19739 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19740 (nios2_fpu_insn): Add entry for round.
19741 (N2FPU_NO_ERRNO_P): Define.
19742 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19744 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19746 2014-04-22 Richard Henderson <rth@redhat.com>
19748 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19749 (add<GPI>3_compare0): Remove leading * from name.
19750 (add<GPI>3_carryin): Likewise.
19751 (sub<GPI>3_compare0): Likewise.
19752 (sub<GPI>3_carryin): Likewise.
19753 (<su_optab>mulditi3): New expander.
19754 (multi3): New expander.
19755 (madd<GPI>): Remove leading * from name.
19757 2014-04-22 Martin Jambor <mjambor@suse.cz>
19759 * cgraphclones.c (cgraph_function_versioning): Copy
19760 ipa_transforms_to_apply instead of asserting it is empty.
19762 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19765 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19766 on count_exp to get mode.
19768 2014-04-22 Andrew Pinski <apinski@cavium.com>
19770 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19771 Handle TLS for ILP32.
19772 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19773 (tlsie_small_<mode>): this and handle PTR.
19774 (tlsie_small_sidi): New pattern.
19775 (tlsle_small): Change to an expand to handle ILP32.
19776 (tlsle_small_<mode>): New pattern.
19777 (tlsdesc_small): Rename to ...
19778 (tlsdesc_small_<mode>): this and handle PTR.
19780 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19782 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19784 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19786 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19787 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19788 (aarch64_types_signed_poly_qualifiers): Likewise.
19789 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19790 (aarch64_types_poly_signed_qualifiers): Likewise.
19791 (TYPES_REINTERP_SS): Type macro added.
19792 (TYPES_REINTERP_SU): Likewise.
19793 (TYPES_REINTERP_SP): Likewise.
19794 (TYPES_REINTERP_US): Likewise.
19795 (TYPES_REINTERP_PS): Likewise.
19796 (aarch64_fold_builtin): New expression folding added.
19797 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19798 Declarations removed.
19799 (REINTERP_SS): Declarations added.
19800 (REINTERP_US): Likewise.
19801 (REINTERP_PS): Likewise.
19802 (REINTERP_SU): Likewise.
19803 (REINTERP_SP): Likewise.
19804 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19805 (vreinterpretq_p8_f64): Likewise.
19806 (vreinterpret_p16_f64): Likewise.
19807 (vreinterpretq_p16_f64): Likewise.
19808 (vreinterpret_f32_f64): Likewise.
19809 (vreinterpretq_f32_f64): Likewise.
19810 (vreinterpret_f64_f32): Likewise.
19811 (vreinterpret_f64_p8): Likewise.
19812 (vreinterpret_f64_p16): Likewise.
19813 (vreinterpret_f64_s8): Likewise.
19814 (vreinterpret_f64_s16): Likewise.
19815 (vreinterpret_f64_s32): Likewise.
19816 (vreinterpret_f64_s64): Likewise.
19817 (vreinterpret_f64_u8): Likewise.
19818 (vreinterpret_f64_u16): Likewise.
19819 (vreinterpret_f64_u32): Likewise.
19820 (vreinterpret_f64_u64): Likewise.
19821 (vreinterpretq_f64_f32): Likewise.
19822 (vreinterpretq_f64_p8): Likewise.
19823 (vreinterpretq_f64_p16): Likewise.
19824 (vreinterpretq_f64_s8): Likewise.
19825 (vreinterpretq_f64_s16): Likewise.
19826 (vreinterpretq_f64_s32): Likewise.
19827 (vreinterpretq_f64_s64): Likewise.
19828 (vreinterpretq_f64_u8): Likewise.
19829 (vreinterpretq_f64_u16): Likewise.
19830 (vreinterpretq_f64_u32): Likewise.
19831 (vreinterpretq_f64_u64): Likewise.
19832 (vreinterpret_s64_f64): Likewise.
19833 (vreinterpretq_s64_f64): Likewise.
19834 (vreinterpret_u64_f64): Likewise.
19835 (vreinterpretq_u64_f64): Likewise.
19836 (vreinterpret_s8_f64): Likewise.
19837 (vreinterpretq_s8_f64): Likewise.
19838 (vreinterpret_s16_f64): Likewise.
19839 (vreinterpretq_s16_f64): Likewise.
19840 (vreinterpret_s32_f64): Likewise.
19841 (vreinterpretq_s32_f64): Likewise.
19842 (vreinterpret_u8_f64): Likewise.
19843 (vreinterpretq_u8_f64): Likewise.
19844 (vreinterpret_u16_f64): Likewise.
19845 (vreinterpretq_u16_f64): Likewise.
19846 (vreinterpret_u32_f64): Likewise.
19847 (vreinterpretq_u32_f64): Likewise.
19849 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19851 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19852 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19853 (vreinterpret_p8_s8): Likewise.
19854 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19855 (vreinterpret_p8_s16): Likewise.
19856 (vreinterpret_p8_s32): Likewise.
19857 (vreinterpret_p8_s64): Likewise.
19858 (vreinterpret_p8_f32): Likewise.
19859 (vreinterpret_p8_u8): Likewise.
19860 (vreinterpret_p8_u16): Likewise.
19861 (vreinterpret_p8_u32): Likewise.
19862 (vreinterpret_p8_u64): Likewise.
19863 (vreinterpret_p8_p16): Likewise.
19864 (vreinterpretq_p8_s8): Likewise.
19865 (vreinterpretq_p8_s16): Likewise.
19866 (vreinterpretq_p8_s32): Likewise.
19867 (vreinterpretq_p8_s64): Likewise.
19868 (vreinterpretq_p8_f32): Likewise.
19869 (vreinterpretq_p8_u8): Likewise.
19870 (vreinterpretq_p8_u16): Likewise.
19871 (vreinterpretq_p8_u32): Likewise.
19872 (vreinterpretq_p8_u64): Likewise.
19873 (vreinterpretq_p8_p16): Likewise.
19874 (vreinterpret_p16_s8): Likewise.
19875 (vreinterpret_p16_s16): Likewise.
19876 (vreinterpret_p16_s32): Likewise.
19877 (vreinterpret_p16_s64): Likewise.
19878 (vreinterpret_p16_f32): Likewise.
19879 (vreinterpret_p16_u8): Likewise.
19880 (vreinterpret_p16_u16): Likewise.
19881 (vreinterpret_p16_u32): Likewise.
19882 (vreinterpret_p16_u64): Likewise.
19883 (vreinterpret_p16_p8): Likewise.
19884 (vreinterpretq_p16_s8): Likewise.
19885 (vreinterpretq_p16_s16): Likewise.
19886 (vreinterpretq_p16_s32): Likewise.
19887 (vreinterpretq_p16_s64): Likewise.
19888 (vreinterpretq_p16_f32): Likewise.
19889 (vreinterpretq_p16_u8): Likewise.
19890 (vreinterpretq_p16_u16): Likewise.
19891 (vreinterpretq_p16_u32): Likewise.
19892 (vreinterpretq_p16_u64): Likewise.
19893 (vreinterpretq_p16_p8): Likewise.
19894 (vreinterpret_f32_s8): Likewise.
19895 (vreinterpret_f32_s16): Likewise.
19896 (vreinterpret_f32_s32): Likewise.
19897 (vreinterpret_f32_s64): Likewise.
19898 (vreinterpret_f32_u8): Likewise.
19899 (vreinterpret_f32_u16): Likewise.
19900 (vreinterpret_f32_u32): Likewise.
19901 (vreinterpret_f32_u64): Likewise.
19902 (vreinterpret_f32_p8): Likewise.
19903 (vreinterpret_f32_p16): Likewise.
19904 (vreinterpretq_f32_s8): Likewise.
19905 (vreinterpretq_f32_s16): Likewise.
19906 (vreinterpretq_f32_s32): Likewise.
19907 (vreinterpretq_f32_s64): Likewise.
19908 (vreinterpretq_f32_u8): Likewise.
19909 (vreinterpretq_f32_u16): Likewise.
19910 (vreinterpretq_f32_u32): Likewise.
19911 (vreinterpretq_f32_u64): Likewise.
19912 (vreinterpretq_f32_p8): Likewise.
19913 (vreinterpretq_f32_p16): Likewise.
19914 (vreinterpret_s64_s8): Likewise.
19915 (vreinterpret_s64_s16): Likewise.
19916 (vreinterpret_s64_s32): Likewise.
19917 (vreinterpret_s64_f32): Likewise.
19918 (vreinterpret_s64_u8): Likewise.
19919 (vreinterpret_s64_u16): Likewise.
19920 (vreinterpret_s64_u32): Likewise.
19921 (vreinterpret_s64_u64): Likewise.
19922 (vreinterpret_s64_p8): Likewise.
19923 (vreinterpret_s64_p16): Likewise.
19924 (vreinterpretq_s64_s8): Likewise.
19925 (vreinterpretq_s64_s16): Likewise.
19926 (vreinterpretq_s64_s32): Likewise.
19927 (vreinterpretq_s64_f32): Likewise.
19928 (vreinterpretq_s64_u8): Likewise.
19929 (vreinterpretq_s64_u16): Likewise.
19930 (vreinterpretq_s64_u32): Likewise.
19931 (vreinterpretq_s64_u64): Likewise.
19932 (vreinterpretq_s64_p8): Likewise.
19933 (vreinterpretq_s64_p16): Likewise.
19934 (vreinterpret_u64_s8): Likewise.
19935 (vreinterpret_u64_s16): Likewise.
19936 (vreinterpret_u64_s32): Likewise.
19937 (vreinterpret_u64_s64): Likewise.
19938 (vreinterpret_u64_f32): Likewise.
19939 (vreinterpret_u64_u8): Likewise.
19940 (vreinterpret_u64_u16): Likewise.
19941 (vreinterpret_u64_u32): Likewise.
19942 (vreinterpret_u64_p8): Likewise.
19943 (vreinterpret_u64_p16): Likewise.
19944 (vreinterpretq_u64_s8): Likewise.
19945 (vreinterpretq_u64_s16): Likewise.
19946 (vreinterpretq_u64_s32): Likewise.
19947 (vreinterpretq_u64_s64): Likewise.
19948 (vreinterpretq_u64_f32): Likewise.
19949 (vreinterpretq_u64_u8): Likewise.
19950 (vreinterpretq_u64_u16): Likewise.
19951 (vreinterpretq_u64_u32): Likewise.
19952 (vreinterpretq_u64_p8): Likewise.
19953 (vreinterpretq_u64_p16): Likewise.
19954 (vreinterpret_s8_s16): Likewise.
19955 (vreinterpret_s8_s32): Likewise.
19956 (vreinterpret_s8_s64): Likewise.
19957 (vreinterpret_s8_f32): Likewise.
19958 (vreinterpret_s8_u8): Likewise.
19959 (vreinterpret_s8_u16): Likewise.
19960 (vreinterpret_s8_u32): Likewise.
19961 (vreinterpret_s8_u64): Likewise.
19962 (vreinterpret_s8_p8): Likewise.
19963 (vreinterpret_s8_p16): Likewise.
19964 (vreinterpretq_s8_s16): Likewise.
19965 (vreinterpretq_s8_s32): Likewise.
19966 (vreinterpretq_s8_s64): Likewise.
19967 (vreinterpretq_s8_f32): Likewise.
19968 (vreinterpretq_s8_u8): Likewise.
19969 (vreinterpretq_s8_u16): Likewise.
19970 (vreinterpretq_s8_u32): Likewise.
19971 (vreinterpretq_s8_u64): Likewise.
19972 (vreinterpretq_s8_p8): Likewise.
19973 (vreinterpretq_s8_p16): Likewise.
19974 (vreinterpret_s16_s8): Likewise.
19975 (vreinterpret_s16_s32): Likewise.
19976 (vreinterpret_s16_s64): Likewise.
19977 (vreinterpret_s16_f32): Likewise.
19978 (vreinterpret_s16_u8): Likewise.
19979 (vreinterpret_s16_u16): Likewise.
19980 (vreinterpret_s16_u32): Likewise.
19981 (vreinterpret_s16_u64): Likewise.
19982 (vreinterpret_s16_p8): Likewise.
19983 (vreinterpret_s16_p16): Likewise.
19984 (vreinterpretq_s16_s8): Likewise.
19985 (vreinterpretq_s16_s32): Likewise.
19986 (vreinterpretq_s16_s64): Likewise.
19987 (vreinterpretq_s16_f32): Likewise.
19988 (vreinterpretq_s16_u8): Likewise.
19989 (vreinterpretq_s16_u16): Likewise.
19990 (vreinterpretq_s16_u32): Likewise.
19991 (vreinterpretq_s16_u64): Likewise.
19992 (vreinterpretq_s16_p8): Likewise.
19993 (vreinterpretq_s16_p16): Likewise.
19994 (vreinterpret_s32_s8): Likewise.
19995 (vreinterpret_s32_s16): Likewise.
19996 (vreinterpret_s32_s64): Likewise.
19997 (vreinterpret_s32_f32): Likewise.
19998 (vreinterpret_s32_u8): Likewise.
19999 (vreinterpret_s32_u16): Likewise.
20000 (vreinterpret_s32_u32): Likewise.
20001 (vreinterpret_s32_u64): Likewise.
20002 (vreinterpret_s32_p8): Likewise.
20003 (vreinterpret_s32_p16): Likewise.
20004 (vreinterpretq_s32_s8): Likewise.
20005 (vreinterpretq_s32_s16): Likewise.
20006 (vreinterpretq_s32_s64): Likewise.
20007 (vreinterpretq_s32_f32): Likewise.
20008 (vreinterpretq_s32_u8): Likewise.
20009 (vreinterpretq_s32_u16): Likewise.
20010 (vreinterpretq_s32_u32): Likewise.
20011 (vreinterpretq_s32_u64): Likewise.
20012 (vreinterpretq_s32_p8): Likewise.
20013 (vreinterpretq_s32_p16): Likewise.
20014 (vreinterpret_u8_s8): Likewise.
20015 (vreinterpret_u8_s16): Likewise.
20016 (vreinterpret_u8_s32): Likewise.
20017 (vreinterpret_u8_s64): Likewise.
20018 (vreinterpret_u8_f32): Likewise.
20019 (vreinterpret_u8_u16): Likewise.
20020 (vreinterpret_u8_u32): Likewise.
20021 (vreinterpret_u8_u64): Likewise.
20022 (vreinterpret_u8_p8): Likewise.
20023 (vreinterpret_u8_p16): Likewise.
20024 (vreinterpretq_u8_s8): Likewise.
20025 (vreinterpretq_u8_s16): Likewise.
20026 (vreinterpretq_u8_s32): Likewise.
20027 (vreinterpretq_u8_s64): Likewise.
20028 (vreinterpretq_u8_f32): Likewise.
20029 (vreinterpretq_u8_u16): Likewise.
20030 (vreinterpretq_u8_u32): Likewise.
20031 (vreinterpretq_u8_u64): Likewise.
20032 (vreinterpretq_u8_p8): Likewise.
20033 (vreinterpretq_u8_p16): Likewise.
20034 (vreinterpret_u16_s8): Likewise.
20035 (vreinterpret_u16_s16): Likewise.
20036 (vreinterpret_u16_s32): Likewise.
20037 (vreinterpret_u16_s64): Likewise.
20038 (vreinterpret_u16_f32): Likewise.
20039 (vreinterpret_u16_u8): Likewise.
20040 (vreinterpret_u16_u32): Likewise.
20041 (vreinterpret_u16_u64): Likewise.
20042 (vreinterpret_u16_p8): Likewise.
20043 (vreinterpret_u16_p16): Likewise.
20044 (vreinterpretq_u16_s8): Likewise.
20045 (vreinterpretq_u16_s16): Likewise.
20046 (vreinterpretq_u16_s32): Likewise.
20047 (vreinterpretq_u16_s64): Likewise.
20048 (vreinterpretq_u16_f32): Likewise.
20049 (vreinterpretq_u16_u8): Likewise.
20050 (vreinterpretq_u16_u32): Likewise.
20051 (vreinterpretq_u16_u64): Likewise.
20052 (vreinterpretq_u16_p8): Likewise.
20053 (vreinterpretq_u16_p16): Likewise.
20054 (vreinterpret_u32_s8): Likewise.
20055 (vreinterpret_u32_s16): Likewise.
20056 (vreinterpret_u32_s32): Likewise.
20057 (vreinterpret_u32_s64): Likewise.
20058 (vreinterpret_u32_f32): Likewise.
20059 (vreinterpret_u32_u8): Likewise.
20060 (vreinterpret_u32_u16): Likewise.
20061 (vreinterpret_u32_u64): Likewise.
20062 (vreinterpret_u32_p8): Likewise.
20063 (vreinterpret_u32_p16): Likewise.
20064 (vreinterpretq_u32_s8): Likewise.
20065 (vreinterpretq_u32_s16): Likewise.
20066 (vreinterpretq_u32_s32): Likewise.
20067 (vreinterpretq_u32_s64): Likewise.
20068 (vreinterpretq_u32_f32): Likewise.
20069 (vreinterpretq_u32_u8): Likewise.
20070 (vreinterpretq_u32_u16): Likewise.
20071 (vreinterpretq_u32_u64): Likewise.
20072 (vreinterpretq_u32_p8): Likewise.
20073 (vreinterpretq_u32_p16): Likewise.
20075 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20077 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
20079 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
20081 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
20082 (vqnegd_s64): Likewise.
20083 (vqabs_s64): Likewise.
20084 (vqabsd_s64): Likewise.
20086 2014-04-22 Richard Henderson <rth@redhat.com>
20088 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
20089 computation to the top of the loop.
20091 2014-04-22 Renlin <renlin.li@arm.com>
20092 Jiong Wang <jiong.wang@arm.com>
20094 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
20095 * config/aarch64/aarch64.c (aarch64_layout_frame)
20096 (aarch64_initial_elimination_offset): Likewise.
20098 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
20100 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
20103 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
20105 * machmode.h (bitwise_mode_for_mode): Declare.
20106 * stor-layout.h (bitwise_type_for_mode): Likewise.
20107 * stor-layout.c (bitwise_mode_for_mode): New function.
20108 (bitwise_type_for_mode): Likewise.
20109 * builtins.c (fold_builtin_memory_op): Use it instead of
20110 int_mode_for_mode and build_nonstandard_integer_type.
20112 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20114 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
20115 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
20116 (*-*-solaris2*): Simplify.
20117 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
20118 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
20119 *-*-solaris2.9* handling.
20121 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
20123 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
20124 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
20125 handling, simplify.
20126 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
20127 * configure: Regenerate.
20129 * config/i386/sol2-9.h: Remove.
20131 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
20132 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
20133 Remove Solaris 9 references.
20135 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
20137 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
20138 (floatuns<GPI:mode><GPF:mode>2): Remove.
20139 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
20140 and floatuns conversions.
20141 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
20142 and floatuns conversions.
20143 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
20144 (w1,w2): New mode attributes for inequal width conversions.
20146 2014-04-22 Renlin Li <Renlin.Li@arm.com>
20148 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
20149 the output asm format.
20151 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
20153 * config/aarch64/aarch64-simd.md
20154 (aarch64_cm<optab>di): Always split.
20155 (*aarch64_cm<optab>di): New.
20156 (aarch64_cmtstdi): Always split.
20157 (*aarch64_cmtstdi): New.
20159 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20161 PR tree-optimization/60823
20162 * omp-low.c (ipa_simd_modify_function_body): Go through
20163 all SSA_NAMEs and for those refering to vector arguments
20164 which are going to be replaced adjust SSA_NAME_VAR and,
20165 if it is a default definition, change it into a non-default
20166 definition assigned at the beginning of function from new_decl.
20167 (ipa_simd_modify_stmt_ops): Rewritten.
20168 * tree-dfa.c (set_ssa_default_def): When removing default def,
20169 check for NULL loc instead of NULL *loc.
20171 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20173 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20174 restrictions on core registers for DImode values in Thumb2.
20176 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20178 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20179 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20181 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20183 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20184 (*iordi_notzesidi_di): Likewise.
20185 (*iordi_notsesidi_di): Likewise.
20187 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20189 * config/arm/arm-protos.h (tune_params): New struct members.
20190 * config/arm/arm.c: Initialise tune_params per processor.
20191 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20192 for speed, based on new tune_params.
20194 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20196 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20197 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20198 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20199 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20200 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20201 (vrnda_f64): Likewise.
20202 (vrndi_f64): Likewise.
20203 (vrndm_f64): Likewise.
20204 (vrndn_f64): Likewise.
20205 (vrndp_f64): Likewise.
20206 (vrndx_f64): Likewise.
20208 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20210 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20211 GET_MODE_SIZE argument is enum machine_mode.
20213 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20216 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20217 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20219 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20221 PR middle-end/60281
20222 * asan.c (asan_emit_stack_protection): Force the base to align to
20223 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20224 appropriate bits if STRICT_ALIGNMENT.
20225 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20227 (expand_used_vars): Leave a space in the stack frame for alignment
20228 if STRICT_ALIGNMENT.
20230 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20232 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20234 (gimple_store_p): Likewise.
20235 (gimple_assign_load_p): Likewise.
20236 (gimple_assign_cast_p): Likewise.
20237 (gimple_clobber_p): Likewise.
20239 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20240 rather than a gimple.
20241 (gimple_assign_cast_p): Likewise.
20243 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20246 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20247 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20249 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20250 more debug information for E500 if -mdebug=reg.
20252 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20255 * config/i386/i386.c (ix86_expand_builtin)
20256 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20257 register for target RTX.
20258 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20260 2014-04-18 Cong Hou <congh@google.com>
20262 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20263 the widen-mult pattern by handling two operands with different sizes,
20264 and operands whose size is smaller than half of the result type.
20266 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20268 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20269 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20270 (do_estimate_edge_time): Compute it.
20271 * ipa-inline.c (want_inline_small_function_p): Bypass
20272 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20274 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20276 * ipa-inline.c (spec_rem): New static variable.
20277 (dump_overall_stats): New function.
20278 (dump_inline_stats): New function.
20280 2014-04-18 Richard Henderson <rth@redhat.com>
20282 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20283 to GET_MODE_SIZE, not a reg_class_t.
20285 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20287 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20288 (vsx_xxmrglw_<mode>): Likewise.
20290 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20293 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20294 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20295 (rs6000_init_hard_regno_mode_ok): Likewise.
20297 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20299 * ipa-inline.c (inline_small_functions): Account only non-cold
20301 * doc/invoke.texi (inline-unit-growth): Update documentation.
20303 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20305 * config/rs6000/rs6000.md (addti3, subti3): New.
20307 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20310 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20311 comment. Check optimize_insn_for_size_p instead of
20312 optimize_insn_for_speed_p.
20314 2014-04-17 Martin Jambor <mjambor@suse.cz>
20316 * gimple-iterator.c (gsi_start_edge): New function.
20317 * gimple-iterator.h (gsi_start_edge): Declare.
20318 * tree-sra.c (single_non_eh_succ): New function.
20319 (disqualify_ops_if_throwing_stmt): Renamed to
20320 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20321 having one non-EH successor BB.
20322 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20323 generate loads into replacements.
20324 (sra_modify_assign): Likewise and and also use the simple path for
20326 (sra_modify_function_body): Commit statements on edges.
20328 2014-04-17 Richard Biener <rguenther@suse.de>
20330 PR middle-end/60849
20331 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20332 comparison results and add clarifying comment.
20334 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20336 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20337 (blank_mode): Initialize it.
20338 (emit_mode_size_inline, emit_mode_nunits_inline,
20339 emit_mode_inner_inline): New functions.
20340 (emit_insn_modes_h): Call them and surround their output with
20341 #if GCC_VERSION >= 4001 ... #endif.
20342 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20343 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20344 mode_* arrays if the argument is __builtin_constant_p.
20345 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20346 is enum machine_mode.
20348 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20350 * passes.c (opt_pass::execute): Adjust.
20351 (pass_manager::execute_pass_mode_switching): Likewise.
20352 (early_local_passes::execute): Likewise.
20353 (execute_one_pass): Pass cfun to the pass's execute method.
20354 * tree-pass.h (opt_pass::execute): Add function * argument.
20355 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20356 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20357 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20358 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20359 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20360 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20361 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20362 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20363 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20364 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20365 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20366 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20367 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20368 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20369 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20370 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20371 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20372 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20373 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20374 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20375 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20376 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20377 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20378 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20379 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20380 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20381 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20382 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20383 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20386 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20388 * passes.c (opt_pass::gate): Take function * argument.
20389 (gate_all_early_local_passes): Merge into
20390 (early_local_passes::gate): this.
20391 (gate_all_early_optimizations): Merge into
20392 (all_early_optimizations::gate): this.
20393 (gate_all_optimizations): Mege into
20394 (all_optimizations::gate): this.
20395 (gate_all_optimizations_g): Merge into
20396 (all_optimizations_g::gate): this.
20397 (gate_rest_of_compilation): Mege into
20398 (rest_of_compilation::gate): this.
20399 (gate_postreload): Merge into
20400 (postreload::gate): this.
20401 (dump_one_pass): Pass cfun to the pass's gate method.
20402 (execute_ipa_summary_passes): Likewise.
20403 (execute_one_pass): Likewise.
20404 (ipa_write_summaries_2): Likewise.
20405 (ipa_write_optimization_summaries_1): Likewise.
20406 (ipa_read_summaries_1): Likewise.
20407 (ipa_read_optimization_summaries_1): Likewise.
20408 (execute_ipa_stmt_fixups): Likewise.
20409 * tree-pass.h (opt_pass::gate): Add function * argument.
20410 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20411 combine-stack-adj.c, combine.c, compare-elim.c,
20412 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20413 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20414 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20415 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20416 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20417 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20418 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20419 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20420 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20421 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20422 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20423 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20424 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20425 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20426 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20427 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20428 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20429 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20430 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20431 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20432 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20433 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20434 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20435 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20436 var-tracking.c, vtable-verify.c, web.c: Adjust.
20438 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20440 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20441 * configure: Regenerate.
20443 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20445 * passes.c (dump_one_pass): don't check pass->has_gate.
20446 (execute_ipa_summary_passes): Likewise.
20447 (execute_one_pass): Likewise.
20448 (ipa_write_summaries_2): Likewise.
20449 (ipa_write_optimization_summaries_1): Likewise.
20450 (ipa_read_optimization_summaries_1): Likewise.
20451 (execute_ipa_stmt_fixups): Likewise.
20452 * tree-pass.h (pass_data::has_gate): Remove.
20453 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20454 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20455 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20456 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20457 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20458 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20459 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20460 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20461 gimple-low.c, gimple-ssa-isolate-paths.c,
20462 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20463 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20464 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20465 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20466 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20467 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20468 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20469 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20470 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20471 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20472 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20473 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20474 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20475 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20476 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20477 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20478 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20479 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20480 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20481 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20482 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20483 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20486 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20488 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20490 * passes.c (pass_manager::register_dump_files_1): Merge into
20491 (pass_manager::register_dump_files): this, and remove its handling of
20492 properties since the pass always has the properties anyway.
20493 (pass_manager::pass_manager): Adjust.
20495 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20497 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20498 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20499 dealing with properties.
20500 (pass_manager::register_dump_files): Adjust.
20502 2014-03-20 Mark Wielaard <mjw@redhat.com>
20504 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20505 then represent the bound as normal constant value.
20507 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20510 Forward port from 4.8 branch
20511 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20513 * config/i386/bmiintrin.h (_blsi_u32): New.
20514 (_blsi_u64): Ditto.
20515 (_blsr_u32): Ditto.
20516 (_blsr_u64): Ditto.
20517 (_blsmsk_u32): Ditto.
20518 (_blsmsk_u64): Ditto.
20519 (_tzcnt_u32): Ditto.
20520 (_tzcnt_u64): Ditto.
20522 2014-04-17 Kito Cheng <kito@0xlab.org>
20524 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20526 2014-04-17 Richard Biener <rguenther@suse.de>
20528 PR middle-end/60849
20529 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20530 boolean results for comparisons.
20532 2014-04-17 Richard Biener <rguenther@suse.de>
20534 PR tree-optimization/60836
20535 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20536 initial PHI args to be gimple values.
20538 2014-04-17 Richard Biener <rguenther@suse.de>
20540 PR tree-optimization/60841
20541 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20542 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20543 of stmts to SLP build.
20544 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20545 (vect_analyze_slp): Likewise.
20546 (vect_analyze_slp_instance): Likewise.
20547 (vect_build_slp_tree): Limit overall SLP tree growth.
20548 * tree-vectorizer.h (vect_analyze_data_refs,
20549 vect_analyze_slp): Adjust prototypes.
20551 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20553 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20556 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20558 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20559 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20560 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20561 for TARGET_SLOW_PSHUFB
20563 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20565 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20566 * config/i386/i386.c (intel_cost): Ditto.
20568 2014-04-17 Joey Ye <joey.ye@arm.com>
20570 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20572 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20574 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20575 with -fuse-profile.
20577 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20579 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20580 (type_all_derivations_known_p): New predicate.
20581 (type_all_ctors_visible_p): New predicate.
20582 (type_possibly_instantiated_p): New predicate.
20583 (get_odr_type): Compute all_derivations_known.
20584 (dump_odr_type): Dump the flag.
20585 (maybe_record_type): Cleanup.
20586 (record_target_from_binfo): Add bases_to_consider array;
20587 record bases for types w/o instances and skip CXX destructor.
20588 (possible_polymorphic_call_targets_1): Add bases_to_consider
20589 and consider_construction parameters; check if type may have instance.
20590 (get_polymorphic_call_info): Set maybe_in_construction to true
20591 when we know nothing.
20592 (record_targets_from_bases): Skip CXX destructors; they are
20593 never called for types in construction.
20594 (possible_polymorphic_call_targets): Do not record target when
20595 type may not have instance.
20597 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20600 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20601 external aliases alive, too.
20603 2014-04-16 Andrew Pinski <apinski@cavium.com>
20605 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20608 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20610 * final.c (compute_alignments): Do not apply loop alignment to a block
20611 falling through to the exit.
20613 2014-04-16 Catherine Moore <clm@codesourcery.com>
20615 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20616 Adjust constraints for microMIPS store patterns.
20618 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20620 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20622 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20624 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20625 (append_use): Run at -O0.
20626 (append_vdef): Likewise.
20627 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20628 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20630 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20632 PR tree-optimization/60844
20633 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20634 (propagate_op_to_single_use, remove_visited_stmt_chain,
20635 linearize_expr, repropagate_negates, reassociate_bb): Use it
20636 instead of gsi_remove.
20638 2014-04-16 Martin Jambor <mjambor@suse.cz>
20640 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20641 ipa_transforms_to_apply.
20642 (cgraph_function_versioning): Assert that old_node has empty
20643 ipa_transforms_to_apply.
20644 * trans-mem.c (ipa_tm_create_version): Likewise.
20645 * tree-inline.c (tree_function_versioning): Do not duplicate
20646 ipa_transforms_to_apply.
20648 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20651 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20653 Pass necessary as flags on 64-bit Solaris/x86.
20654 Use lowercase relocs for x86_64-*-*.
20655 * configure: Regenerate.
20657 2014-04-15 Jan Hubicka <jh@suse.cz>
20659 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20660 (maybe_record_node, likely_target_p): Use it.
20662 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20665 Revert following patch
20667 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20670 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20671 software floating point or no floating point registers, do not
20672 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20673 in GPRs that occurs after we tested for GPRs that would never be
20676 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20677 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20678 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20679 specifically allow DDmode, since that does not use the SPE SIMD
20682 2014-03-21 Mark Wielaard <mjw@redhat.com>
20684 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20685 as unsigned or int depending on type and value used.
20687 2014-04-15 Richard Biener <rguenther@suse.de>
20689 PR rtl-optimization/56965
20690 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20691 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20693 * alias.c (true_dependence_1): Do not call
20694 nonoverlapping_component_refs_p.
20695 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20696 nonoverlapping_component_refs_p.
20697 (indirect_refs_may_alias_p): Likewise.
20699 2014-04-15 Teresa Johnson <tejohnson@google.com>
20701 * cfg.c (dump_bb_info): Fix flags check.
20702 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20704 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20706 PR rtl-optimization/60663
20707 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20710 2014-04-15 Richard Biener <rguenther@suse.de>
20712 * lto-streamer.h (LTO_major_version): Bump to 4.
20714 2014-04-15 Richard Biener <rguenther@suse.de>
20716 * common.opt (lto_partition_model): New enum.
20717 (flto-partition=): Merge separate options with a single with argument,
20718 add -flto-partition=one support.
20719 * flag-types.h (enum lto_partition_model): Declare.
20720 * opts.c (finish_options): Remove duplicate -flto-partition=
20722 * lto-wrapper.c (run_gcc): Adjust.
20724 2014-04-15 Richard Biener <rguenther@suse.de>
20726 * alias.c (ncr_compar): New function.
20727 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20729 2014-04-15 Richard Biener <rguenther@suse.de>
20731 * alias.c (record_component_aliases): Do not walk BINFOs.
20733 2014-04-15 Richard Biener <rguenther@suse.de>
20735 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20736 Add struct function argument and adjust.
20737 (find_func_aliases_for_call): Likewise.
20738 (find_func_aliases): Likewise.
20739 (find_func_clobbers): Likewise.
20740 (intra_create_variable_infos): Likewise.
20741 (compute_points_to_sets): Likewise.
20742 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20744 2014-04-15 Richard Biener <rguenther@suse.de>
20746 * tree.c (iterative_hash_expr): Use enum tree_code_class
20747 to store TREE_CODE_CLASS.
20748 (tree_block): Likewise.
20749 (tree_set_block): Likewise.
20750 * tree.h (fold_build_pointer_plus_loc): Use
20751 convert_to_ptrofftype_loc.
20753 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20756 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20759 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20761 * cfgloop.h (struct loop): Move force_vectorize down.
20762 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20763 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20764 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20765 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20766 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20767 * tree-core.h (enum annot_expr_kind): Add new kind values.
20768 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20769 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20771 * tree.def (ANNOTATE_EXPR): Tweak comment.
20773 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20775 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20778 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20780 * tree.h (TYPE_IDENTIFIER): Declare.
20781 * tree.c (subrange_type_for_debug_p): Use it.
20782 * godump.c (go_format_type): Likewise.
20783 * dwarf2out.c (is_cxx_auto, modified_type_die,
20784 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20785 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20787 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20790 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20792 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20794 * config/i386/i386.c (examine_argument): Return bool. Return true if
20795 parameter should be passed in memory.
20796 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20797 (construct_container): Update calls to examine_argument.
20798 (function_arg_advance_64): Ditto.
20799 (return_in_memory_32): Merge with ix86_return_in_memory.
20800 (return_in_memory_64): Ditto.
20801 (return_in_memory_ms_64): Ditto.
20803 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20805 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20806 * coverage.c (coverage_compute_profile_id): Handle externally visible
20809 2014-04-14 Martin Jambor <mjambor@suse.cz>
20811 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20812 DECL_DISREGARD_INLINE_LIMITS functions.
20814 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20817 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20819 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20822 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20823 optimize_insn_for_speed_p instead of
20824 optimize_function_for_speed_p.
20826 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20828 * doc/invoke.texi (free): Document AArch64.
20830 2014-04-14 Richard Biener <rguenther@suse.de>
20832 PR tree-optimization/60042
20833 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20834 (insert_into_preds_of_block): Do not prevent PHI insertion
20835 for REFERENCE exprs here ...
20836 (eliminate_dom_walker::before_dom_children): ... but prevent
20837 their use here under similar conditions when applied to the
20838 IL after PRE optimizations.
20840 2014-04-14 Richard Biener <rguenther@suse.de>
20842 * passes.def: Move early points-to after early SRA.
20844 2014-04-14 Richard Biener <rguenther@suse.de>
20846 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20847 check for which sign-changes we allow when forwarding
20848 a converted value into a switch.
20850 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20852 * stor-layout.c (place_field): Finalize non-constant offset for the
20855 2014-04-14 Richard Biener <rguenther@suse.de>
20857 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20859 (expand_switch_using_bit_tests_p): Likewise.
20860 (process_switch): Compute and pass on speed_p based on the
20862 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20863 optimize_bb_for_speed_p.
20865 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20867 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20868 * function.h (struct function): Rename has_force_vect_loops into
20869 has_force_vectorize_loops.
20870 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20871 (input_struct_function_base): Likewise.
20872 * lto-streamer-out.c (output_cfg): Likewise.
20873 (output_struct_function_base): Likewise.
20874 * omp-low.c (expand_omp_simd): Likewise.
20875 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20876 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20877 (version_loop_for_if_conversion): Likewise.
20878 (tree_if_conversion): Likewise.
20879 (main_tree_if_conversion): Likewise.
20880 (gate_tree_if_conversion): Likewise.
20881 * tree-inline.c (copy_loops): Likewise.
20882 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20883 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20884 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20885 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20886 * tree-vectorizer.c (vectorize_loops): Likewise.
20887 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20889 2014-04-14 Richard Biener <rguenther@suse.de>
20892 * lto-streamer-out.c (wrap_refs): New function.
20893 (lto_output): Wrap symbol references in global initializes in
20894 type-preserving MEM_REFs.
20896 2014-04-14 Christian Bruel <christian.bruel@st.com>
20898 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20900 2014-04-14 Christian Bruel <christian.bruel@st.com>
20902 * config/sh/sh.md (setmemqi): New expand pattern.
20903 * config/sh/sh.h (CLEAR_RATIO): Define.
20904 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20905 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20907 2014-04-14 Richard Biener <rguenther@suse.de>
20909 PR middle-end/55022
20910 * fold-const.c (negate_expr_p): Don't negate directional rounding
20912 (fold_negate_expr): Likewise.
20914 2014-04-14 Richard Biener <rguenther@suse.de>
20916 PR tree-optimization/59817
20917 PR tree-optimization/60453
20918 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20919 recursion to catch all CHRECs in the scalar evolution and restrict
20920 the predicate for the remains appropriately.
20922 2014-04-12 Catherine Moore <clm@codesourcery.com>
20924 * config/mips/constraints.md: Add new register constraint "kb".
20925 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20926 (*movhi_internal): Likewise.
20927 (*movqi_internal): Likewise.
20928 * config/mips/mips.h (M16_STORE_REGS): New register class.
20929 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20930 (REG_CLASS_CONTENTS): Likewise.
20931 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20933 2014-04-11 Tobias Burnus <burnus@net-b.de>
20936 * doc/invoke.texi (-Wformat-signedness): Document it.
20937 (Wformat=2): Mention that this enables -Wformat-signedness.
20939 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20941 * common/config/epiphany/epiphany-common.c
20942 (epiphany_option_optimization_table): Enable section anchors by
20943 default at -O1 or higher.
20944 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20945 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20946 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20947 carries no extra cost.
20948 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20949 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20950 * config/epiphany/predicates.md (memclob_operand): New predicate.
20951 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20952 Use memclob_operand predicate and X constraint for operand 3.
20954 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20956 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20957 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20960 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20962 PR rtl-optimization/60651
20963 * mode-switching.c (optimize_mode_switching): Make sure to emit
20964 sets of a lower numbered entity before sets of a higher numbered
20965 entity to a mode of the same or lower priority.
20966 When creating a seginfo for a basic block that starts with a code
20967 label, move the insertion point past the code label.
20968 (new_seginfo): Document and enforce requirement that
20969 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20970 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20971 * doc/tm.texi: Regenerate.
20973 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20976 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20978 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20980 * BASE-VER: Set to 4.10.0.
20982 2014-04-11 Tobias Burnus <burnus@net-b.de>
20985 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20986 * doc/gcc.texi (Service): Update description in the @menu
20987 * doc/invoke.texi (Option Summary): Remove misplaced and
20990 2014-04-11 Steve Ellcey <sellcey@mips.com>
20991 Jakub Jelinek <jakub@redhat.com>
20993 PR middle-end/60556
20994 * expr.c (convert_move): Use emit_store_flag_force instead of
20995 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20998 2014-04-11 Richard Biener <rguenther@suse.de>
21000 PR middle-end/60797
21001 * varasm.c (assemble_alias): Avoid endless error reporting
21002 recursion by setting TREE_ASM_WRITTEN.
21004 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21006 * config/s390/s390.md: Add a splitter for NOT rtx.
21008 2014-04-11 Jakub Jelinek <jakub@redhat.com>
21010 PR rtl-optimization/60663
21011 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
21013 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
21014 Jakub Jelinek <jakub@redhat.com>
21017 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
21018 flag from decl_node to node.
21020 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21023 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
21024 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
21025 ameliorating the cases where it can be.
21027 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
21030 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
21032 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21033 (loadsync_<mode>): Change mode.
21034 (load_quadpti, store_quadpti): New.
21035 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21036 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21037 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
21039 2014-04-09 Cong Hou <congh@google.com>
21042 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
21045 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21047 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
21048 instead of vnor to exploit possible fusion opportunity in the
21050 (altivec_expand_vec_perm_const_le): Likewise.
21052 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
21054 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21055 (loadsync_<mode>): Change mode.
21056 (load_quadpti, store_quadpti): New.
21057 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21058 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21060 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
21063 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
21064 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
21065 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
21067 2014-04-08 Richard Biener <rguenther@suse.de>
21069 PR middle-end/60706
21070 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
21071 a 64bit widest int print double-int similar to on HWI64 hosts.
21073 2014-04-08 Richard Biener <rguenther@suse.de>
21075 PR tree-optimization/60785
21076 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
21077 default defs properly.
21079 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
21081 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
21082 (Weffc++): Likewise.
21084 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
21086 * ipa-devirt.c (maybe_record_node): When node is not recorded,
21087 set completep to false rather than true.
21089 2014-04-07 Douglas B Rupp <rupp@adacore.com>
21092 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
21093 ARM_TARGET2_DWARF_FORMAT.
21095 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
21098 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
21099 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
21102 2014-04-07 Richard Biener <rguenther@suse.de>
21104 PR tree-optimization/60766
21105 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
21106 (may_eliminate_iv): Convert cand_value_at result to desired type.
21108 2014-04-07 Jason Merrill <jason@redhat.com>
21111 * common.opt (-fno-gnu-unique): Add.
21112 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
21114 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21116 * haifa-sched.c: Fix outdated function reference and minor
21117 grammar errors in introductory comment.
21119 2014-04-07 Richard Biener <rguenther@suse.de>
21121 PR middle-end/60750
21122 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
21123 for noreturn calls.
21124 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
21126 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
21129 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
21130 size accounting for thunks.
21131 (pa_asm_output_mi_thunk): Use final_start_function() and
21132 final_end_function() to output function start and end directives.
21134 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21136 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
21137 device specific ISA/ feature information. Remove short_sp and
21138 errata_skip ds. Add avr_device_specific_features enum to have device
21140 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
21141 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
21142 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
21143 updated device specific info.
21144 * config/avr/avr-mcus.def: Merge device specific details to
21145 dev_attribute field.
21146 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
21148 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
21149 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
21150 assembler if RMW isa supported by current device.
21151 * config/avr/genmultilib.awk: Update as device info structure changed.
21152 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
21154 2014-04-04 Cong Hou <congh@google.com>
21156 PR tree-optimization/60656
21157 * tree-vect-stmts.c (supportable_widening_operation):
21158 Fix a bug that elements in a vector with vect_used_by_reduction
21159 property are incorrectly reordered when the operation on it is not
21160 consistant with the one in reduction operation.
21162 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21164 PR rtl-optimization/60155
21165 * gcse.c (record_set_data): New function.
21166 (single_set_gcse): New function.
21167 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21168 (hoist_code): Likewise.
21169 (get_pressure_class_and_nregs): Likewise.
21171 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21173 * explow.c (probe_stack_range): Emit a final optimization blockage.
21175 2014-04-04 Anthony Green <green@moxielogic.com>
21177 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21180 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21183 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21184 flags are set only during streaming.
21185 * ipa.c (process_references, walk_polymorphic_call_targets,
21186 symtab_remove_unreachable_nodes): Drop bodies of always inline
21187 after early inlining.
21188 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21190 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21191 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21194 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21197 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21200 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21202 (cortex_a53_fdivd): Likewise.
21204 2014-04-04 Martin Jambor <mjambor@suse.cz>
21207 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21208 Adjust all callers.
21209 * cgraph.c (clone_of_p): Also return true if thunks match.
21210 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21211 cgraph_function_or_thunk_node and an obsolete comment.
21212 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21214 (build_function_decl_skip_args): Likewise.
21215 (set_new_clone_decl_and_node_flags): New function.
21216 (duplicate_thunk_for_node): Likewise.
21217 (redirect_edge_duplicating_thunks): Likewise.
21218 (cgraph_clone_node): New parameter args_to_skip, pass it to
21219 redirect_edge_duplicating_thunks which is called instead of
21220 cgraph_redirect_edge_callee.
21221 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21222 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21224 2014-04-04 Jeff Law <law@redhat.com>
21227 * config/arm/predicates.md (const_int_I_operand): New predicate.
21228 (const_int_M_operand): Similarly.
21229 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21231 (insv_t2, extv_reg, extzv_t2): Likewise.
21232 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21233 (pop_multiple_with_writeback_and_return): Likewise.
21234 (vfp_pop_multiple_with_writeback): Likewise
21236 2014-04-04 Richard Biener <rguenther@suse.de>
21239 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21240 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21242 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21243 * gimplify.c (gimple_add_tmp_var_fn): New function.
21244 * gimple-expr.h (create_tmp_reg_fn): Declare.
21245 * gimple-expr.c (create_tmp_reg_fn): New function.
21246 * gimple-low.c (record_vars_into): Don't change cfun.
21247 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21248 code generation without cfun.
21250 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21253 * Makefile.in (install-driver): Fix shell scripting.
21255 2014-04-03 Cong Hou <congh@google.com>
21257 PR tree-optimization/60505
21258 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21259 threshold of number of iterations below which no vectorization
21261 * tree-vect-loop.c (new_loop_vec_info):
21262 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21263 * tree-vect-loop.c (vect_analyze_loop_operations):
21264 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21265 * tree-vect-loop.c (vect_transform_loop):
21266 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21267 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21268 of iterations of the loop and see if we should build the epilogue.
21270 2014-04-03 Richard Biener <rguenther@suse.de>
21272 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21273 (streamer_tree_cache_create): Adjust.
21274 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21275 to allow optional nodes array.
21276 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21277 (streamer_tree_cache_append): Likewise.
21278 (streamer_tree_cache_create): Create nodes array optionally
21279 as specified by parameter.
21280 * lto-streamer-out.c (create_output_block): Avoid maintaining
21281 the node array in the writer cache.
21282 (DFS_write_tree): Remove assertion.
21283 (produce_asm_for_decls): Free the out decl state hash table early.
21284 * lto-streamer-in.c (lto_data_in_create): Adjust for
21285 streamer_tree_cache_create prototype change.
21287 2014-04-03 Richard Biener <rguenther@suse.de>
21289 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21290 set TREE_CHAIN to NULL_TREE.
21292 2014-04-03 Richard Biener <rguenther@suse.de>
21294 PR tree-optimization/60740
21295 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21296 over all GIMPLE_COND operands.
21298 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21300 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21301 (Weffc++): Remove Scott's numbering, merge lists and reference
21304 2014-04-03 Nick Clifton <nickc@redhat.com>
21306 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21309 2014-04-03 Martin Jambor <mjambor@suse.cz>
21311 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21312 mention gcc_unreachable before failing.
21313 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21316 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21319 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21320 inconsistent code and instead mark the context inconsistent.
21321 (possible_polymorphic_call_targets): For inconsistent contexts
21322 return empty complete list.
21324 2014-04-02 Anthony Green <green@moxielogic.com>
21326 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21327 (extendqisi2, extendhisi2): Define.
21328 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21329 (WCHAR_TYPE): Change to unsigned int.
21331 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21333 PR tree-optimization/60733
21334 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21335 insertion point for PHI candidates to be the end of the feeding
21336 block for the PHI argument.
21338 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21340 PR rtl-optimization/60650
21341 * lra-constraints.c (process_alt_operands): Decrease reject for
21342 earlyclobber matching.
21344 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21346 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21348 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21350 * config/spu/spu.c (pad_bb): Do not crash when the last
21351 insn is CODE_FOR_blockage.
21353 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21355 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21356 lies outside the target mode.
21358 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21361 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21362 software floating point or no floating point registers, do not
21363 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21364 in GPRs that occurs after we tested for GPRs that would never be
21367 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21368 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21369 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21370 specifically allow DDmode, since that does not use the SPE SIMD
21373 2014-04-02 Richard Biener <rguenther@suse.de>
21375 PR middle-end/60729
21376 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21377 MODE_INTs. Properly use negv_optab.
21378 (expand_abs): Likewise.
21380 2014-04-02 Richard Biener <rguenther@suse.de>
21383 * Makefile.in (install-driver): Guard extra installs with special
21386 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21388 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21389 Document vec_vgbbd.
21391 2014-04-01 Richard Henderson <rth@redhat.com>
21394 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21395 alternative enabled before register allocation.
21397 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21399 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21400 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21402 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21403 (nios2_got_address): Update nios2_large_got_address call site.
21404 (nios2_delegitimize_address): New function.
21405 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21406 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21407 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21409 2014-04-01 Martin Husemann <martin@duskware.de>
21411 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21414 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21416 PR rtl-optimization/60604
21417 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21418 check from register_operand.
21419 (register_operand): Redefine in terms of general_operand.
21420 (nonmemory_operand): Use register_operand for the non-constant cases.
21422 2014-04-01 Richard Biener <rguenther@suse.de>
21424 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21426 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21428 * doc/invoke.texi (mapp-regs): Clarify.
21430 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21432 * config/i386/avx512fintrin.h (__v32hi): Define type.
21433 (__v64qi): Likewise.
21434 (_mm512_set1_epi8): Define.
21435 (_mm512_set1_epi16): Define.
21436 (_mm512_set4_epi32): Define.
21437 (_mm512_set4_epi64): Define.
21438 (_mm512_set4_pd): Define.
21439 (_mm512_set4_ps): Define.
21440 (_mm512_setr4_epi64): Define.
21441 (_mm512_setr4_epi32): Define.
21442 (_mm512_setr4_pd): Define.
21443 (_mm512_setr4_ps): Define.
21444 (_mm512_setzero_epi32): Define.
21446 2014-03-31 Martin Jambor <mjambor@suse.cz>
21448 PR middle-end/60647
21449 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21450 callsite_arguments_match_p. Updated all callers. Also check types of
21451 corresponding formal parameters and actual arguments.
21452 (not_all_callers_have_enough_arguments_p) Renamed to
21453 some_callers_have_mismatched_arguments_p.
21455 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21457 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21459 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21462 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21465 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21467 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21468 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21470 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21471 Use FMAMODE_NOVF512 mode iterator.
21472 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21473 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21474 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21475 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21477 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21478 Use VF_128_256 mode iterator.
21479 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21482 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21484 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21485 static chain if needed.
21487 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21490 * lra-constraints.c (index_part_to_reg): New.
21491 (process_address): Use it.
21493 2014-03-27 Jeff Law <law@redhat.com>
21494 Jakub Jelinek <jakub@redhat.com>
21497 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21498 gen_rtx_{PLUS,MULT} to build up the address expression.
21500 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21501 creating non-canonical RTL.
21503 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21506 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21507 functions; reorganize to make cheap checks first.
21508 (inline_small_functions): Do not estimate growth when dumping;
21510 * ipa-inline.h (inline_summary): Add min_size.
21511 (growth_likely_positive): New function.
21512 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21513 (set_cond_stmt_execution_predicate): Cleanup.
21514 (estimate_edge_size_and_time): Compute min_size.
21515 (estimate_calls_size_and_time): Likewise.
21516 (estimate_node_size_and_time): Likewise.
21517 (inline_update_overall_summary): Update min_size.
21518 (do_estimate_edge_time): Likewise.
21519 (do_estimate_edge_size): Update.
21520 (do_estimate_edge_hints): Update.
21521 (growth_likely_positive): New function.
21523 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21526 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21527 also if addr has VOIDmode.
21529 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21531 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21532 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21534 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21535 instructions as well as AdvancedSIMD loads.
21537 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21539 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21540 Use crypto_aese type.
21541 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21542 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21543 crypto_aese, crypto_aesmc. Move to types.md.
21544 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21546 * config/arm/iterators.md (crypto_type): Likewise.
21548 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21550 * cgraph.c: Include expr.h and tree-dfa.h.
21551 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21554 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21557 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21558 regs from checking multi-reg pseudos.
21560 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21562 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21564 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21566 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21567 if it would clobber the stack pointer, even temporarily.
21569 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21571 * mode-switching.c: Make small adjustments to the top comment.
21573 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21575 * config/rs6000/constraints.md (wD constraint): New constraint to
21576 match the constant integer to get the top DImode/DFmode out of a
21577 vector in a VSX register.
21579 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21580 match the constant integer to get the top DImode/DFmode out of a
21581 vector in a VSX register.
21583 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21586 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21589 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21590 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21592 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21593 Optimize vec_extract of 64-bit values, where the value being
21594 extracted is in the top word, where we can use scalar
21595 instructions. Add direct move and store support. Combine the big
21596 endian/little endian vector select load support into a single insn.
21597 (vsx_extract_<mode>_internal1): Likewise.
21598 (vsx_extract_<mode>_internal2): Likewise.
21599 (vsx_extract_<mode>_load): Likewise.
21600 (vsx_extract_<mode>_store): Likewise.
21601 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21602 combined into vsx_extract_<mode>_load.
21603 (vsx_extract_<mode>_one_le): Likewise.
21605 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21606 define the top 64-bit vector element.
21608 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21611 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21612 Document vec_vbpermq builtin.
21615 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21616 enable use of xxsldwi and xxpermdi builtin functions.
21617 (vec_xxpermdi): Likewise.
21619 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21620 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21622 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21624 PR rtl-optimization/60650
21625 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21627 (find_spills_for): New.
21628 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21629 Spill all pseudos on the second iteration.
21631 2014-03-27 Marek Polacek <polacek@redhat.com>
21634 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21637 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21639 * config/s390/s390.c (s390_can_use_return_insn): Check for
21640 call-saved FPRs on 31 bit.
21642 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21644 PR middle-end/60682
21645 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21646 if they need regimplification, just drop them instead of
21647 calling gimple_regimplify_operands on them.
21649 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21652 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21653 (aarch64_frame_pointer_required): Adjust logic.
21654 (aarch64_can_eliminate): Adjust logic.
21655 (aarch64_override_options_after_change): Adjust logic.
21657 2014-03-27 Dehao Chen <dehao@google.com>
21659 * ipa-inline.c (early_inliner): Update node's inline info.
21661 2014-03-26 Dehao Chen <dehao@google.com>
21663 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21664 compiler inserted conditional jumps for NAN float check.
21666 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21668 * ubsan.h (ubsan_create_data): Change second argument's type
21669 to const location_t *.
21670 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21672 (ubsan_create_data): Change second argument to const location_t *PLOC.
21673 Create Loc field whenever PLOC is non-NULL.
21674 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21675 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21679 * real.c (real_to_integer2): Change type of low to UHWI.
21681 2014-03-26 Tobias Burnus <burnus@net-b.de>
21683 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21684 (CILK_SELF_SPECS): New define.
21685 (driver_self_specs): Use it.
21687 2014-03-26 Richard Biener <rguenther@suse.de>
21689 * tree-pretty-print.c (percent_K_format): Implement special
21690 case for LTO and its stripped down BLOCK tree.
21692 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21695 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21697 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21698 one range is range_int_cst_p, but not both, at least optimize
21699 addition/subtraction of 0 and multiplication by 0 or 1.
21700 * gimple-fold.c (gimple_fold_call): Fold
21701 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21702 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21703 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21705 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21707 PR rtl-optimization/60452
21708 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21709 <case REG>: Return 1 for invalid offsets from the frame pointer.
21711 2014-03-26 Marek Polacek <polacek@redhat.com>
21714 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21717 2014-03-26 Marek Polacek <polacek@redhat.com>
21720 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21723 2014-03-26 Marek Polacek <polacek@redhat.com>
21726 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21727 multiplication in unsigned type.
21729 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21731 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21733 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21735 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21737 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21740 * cif-code.def (UNREACHABLE) New code.
21741 * ipa-inline.c (inline_small_functions): Skip edges to
21742 __builtlin_unreachable.
21743 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21744 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21745 predicate to __bulitin_unreachable.
21746 (set_cond_stmt_execution_predicate): Fix issue when
21747 invert_tree_comparison returns ERROR_MARK.
21748 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21749 propagate to inline clones.
21750 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21752 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21753 * cgraphclones.c (cgraph_clone_node): If call destination is already
21754 ureachable, do not redirect it back.
21755 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21758 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21760 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21761 Do not modify inline clones.
21763 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21765 * config/i386/i386.md (general_sext_operand): New mode attr.
21766 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21767 don't generate (sign_extend (const_int)).
21768 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21769 operands[2]. Use We constraint instead of <i> and
21770 <general_sext_operand> predicate instead of <general_operand>.
21771 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21772 * config/i386/constraints.md (We): New constraint.
21773 * config/i386/predicates.md (x86_64_sext_operand,
21774 sext_operand): New predicates.
21776 2014-03-25 Martin Jambor <mjambor@suse.cz>
21779 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21780 inconsistent devirtualizations to __builtin_unreachable.
21782 2014-03-25 Marek Polacek <polacek@redhat.com>
21785 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21787 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21789 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21790 order of elements for big-endian.
21792 2014-03-25 Richard Biener <rguenther@suse.de>
21794 PR middle-end/60635
21795 * gimplify-me.c (gimple_regimplify_operands): Update the
21798 2014-03-25 Martin Jambor <mjambor@suse.cz>
21801 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21802 (lto_output_varpool_node): Likewise.
21803 (input_overwrite_node): Likewise.
21804 (input_varpool_node): Likewise.
21806 2014-03-25 Richard Biener <rguenther@suse.de>
21808 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21809 (run_gcc): Likewise.
21811 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21813 * combine.c (simplify_compare_const): Add MODE argument.
21814 Handle mode_width 0 as very large mode_width.
21815 (try_combine, simplify_comparison): Adjust callers.
21817 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21818 type to avoid signed integer overflow.
21819 * explow.c (plus_constant): Likewise.
21821 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21823 * doc/generic.texi: Correct typos.
21825 2014-03-24 Tobias Burnus <burnus@net-b.de>
21827 * doc/invoke.texi (-flto): Expand section about
21828 using static libraries with LTO.
21830 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21832 PR rtl-optimization/60501
21833 * optabs.def (addptr3_optab): New optab.
21834 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21835 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21836 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21838 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21840 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21842 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21844 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21847 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21848 (_mm256_undefined_ps): Define.
21849 (_mm256_undefined_pd): Define.
21850 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21851 (_mm_undefined_pd): Define.
21852 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21853 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21854 (_mm512_undefined_ps): Define.
21855 (_mm512_undefined_pd): Define.
21856 Use _mm*_undefined_*.
21857 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21859 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21861 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21862 (lshr_simd): DI mode added.
21863 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21864 (aarch64_ushr_simddi): Likewise.
21865 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21866 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21867 (vshrd_n_u64): Likewise.
21869 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21871 * Makefile.in (s-macro_list): Depend on cc1.
21873 2014-03-23 Teresa Johnson <tejohnson@google.com>
21875 * ipa-utils.c (ipa_print_order): Use specified dump file.
21877 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21879 PR rtl-optimization/60601
21880 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21882 * gcc.c (eval_spec_function): Initialize save_growing_value.
21884 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21887 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21888 code == MINUS_EXPR, never swap op0 with op1.
21890 * toplev.c (init_local_tick): Avoid signed integer multiplication
21892 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21893 shift by first operand's bitsize.
21895 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21898 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21899 redefine to 1 or 0.
21900 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21901 TARGET_ISA_64BIT_P(x).
21903 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21905 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21906 pattern for vector nor instead of subtract from splat(-1).
21907 (altivec_expand_vec_perm_const_le): Likewise.
21909 2014-03-21 Richard Henderson <rth@twiddle.net>
21912 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21913 related insns after epilogue_completed.
21915 2014-03-21 Martin Jambor <mjambor@suse.cz>
21918 * cgraph.h (symtab_node): New flag body_removed.
21919 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21920 when removing bodies.
21921 * symtab.c (dump_symtab_base): Dump body_removed flag.
21922 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21923 had their bodies removed.
21925 2014-03-21 Martin Jambor <mjambor@suse.cz>
21928 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21931 2014-03-21 Richard Biener <rguenther@suse.de>
21933 PR tree-optimization/60577
21934 * tree-core.h (struct tree_base): Document nothrow_flag use
21935 in DECL_NONALIASED.
21936 * tree.h (DECL_NONALIASED): New.
21937 (may_be_aliased): Adjust.
21938 * coverage.c (build_var): Set DECL_NONALIASED.
21940 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21942 * expr.c (expand_expr_real_1): Remove outdated comment.
21944 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21946 PR middle-end/60597
21947 * ira.c (adjust_cleared_regs): Call copy_rtx on
21948 *reg_equiv[REGNO (loc)].src_p before passing it to
21949 simplify_replace_fn_rtx.
21952 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21953 into CONST, put pic register as first operand of PLUS. Use
21954 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21956 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21958 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21960 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21962 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21963 around for store forwarding issue in the FPU on the UT699.
21964 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21965 loads and operations if -mfix-ut699 is specified.
21966 (divtf3_hq): Tweak attribute.
21967 (sqrttf2_hq): Likewise.
21969 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21971 * calls.c (store_one_arg): Remove incorrect const qualification on the
21972 type of the temporary.
21973 * cfgexpand.c (expand_return): Likewise.
21974 * expr.c (expand_constructor): Likewise.
21975 (expand_expr_real_1): Likewise.
21977 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21979 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21982 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21985 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21987 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21989 * config/arm/aarch-common-protos.h
21990 (alu_cost_table): Fix spelling of "extend".
21991 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21993 2014-03-19 Richard Biener <rguenther@suse.de>
21995 PR middle-end/60553
21996 * tree-core.h (tree_type_common): Re-order pointer members
21997 to reduce recursion depth during GC walks.
21999 2014-03-19 Marek Polacek <polacek@redhat.com>
22002 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
22003 before accessing it.
22005 2014-03-19 Richard Biener <rguenther@suse.de>
22008 * lto-streamer-in.c (input_function): In WPA stage do not drop
22011 2014-03-19 Jakub Jelinek <jakub@redhat.com>
22013 PR tree-optimization/60559
22014 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
22015 with build_zero_cst assignment.
22017 2014-03-18 Kai Tietz <ktietz@redhat.com>
22019 PR rtl-optimization/56356
22020 * sdbout.c (sdbout_parms): Verify that parms'
22021 incoming argument is valid.
22022 (sdbout_reg_parms): Likewise.
22024 2014-03-18 Richard Henderson <rth@redhat.com>
22027 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
22028 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
22029 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
22031 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
22033 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
22034 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
22035 Italicize plugin event names in description. Explain that
22036 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
22037 Remind that no GCC functions should be called after PLUGIN_FINISH.
22038 Explain what pragmas with expansion are.
22040 2014-03-18 Martin Liska <mliska@suse.cz>
22042 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
22043 gimple call statement is update.
22044 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
22045 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
22047 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22050 * ubsan.c (ubsan_instrument_unreachable): Call
22051 initialize_sanitizer_builtins.
22052 (ubsan_pass): Likewise.
22055 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
22056 varpool_finalize_decl instead of rest_of_decl_compilation.
22058 2014-03-18 Richard Biener <rguenther@suse.de>
22060 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
22061 by using bitmap_and_compl instead of bitmap_and_compl_into.
22062 (df_rd_transfer_function): Likewise.
22064 2014-03-18 Richard Biener <rguenther@suse.de>
22066 * doc/lto.texi (fresolution): Fix typo.
22068 2014-03-18 Richard Biener <rguenther@suse.de>
22070 * doc/invoke.texi (flto): Update for changes in 4.9.
22072 2014-03-18 Richard Biener <rguenther@suse.de>
22074 * doc/loop.texi: Remove section on the removed lambda framework.
22075 Update loop docs with recent changes in preserving loop structure.
22077 2014-03-18 Richard Biener <rguenther@suse.de>
22079 * doc/lto.texi (-fresolution): Document.
22081 2014-03-18 Richard Biener <rguenther@suse.de>
22083 * doc/contrib.texi: Adjust my name.
22085 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22088 * internal-fn.c: Include diagnostic-core.h.
22089 (expand_BUILTIN_EXPECT): New function.
22090 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
22091 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
22092 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
22093 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
22094 IFN_BUILTIN_EXPECT.
22095 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
22096 Revert 3 argument __builtin_expect code.
22097 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
22098 * gimple-fold.c (gimple_fold_call): Likewise.
22099 * tree.h (fold_builtin_expect): New prototype.
22100 * builtins.c (build_builtin_expect_predicate): Add predictor
22101 argument, if non-NULL, create 3 argument __builtin_expect.
22102 (fold_builtin_expect): No longer static. Add ARG2 argument,
22103 pass it through to build_builtin_expect_predicate.
22104 (fold_builtin_2): Adjust caller.
22105 (fold_builtin_3): Handle BUILT_IN_EXPECT.
22106 * internal-fn.def (BUILTIN_EXPECT): New.
22108 2014-03-18 Tobias Burnus <burnus@net-b.de>
22111 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
22112 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
22113 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
22115 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
22118 * predict.c (combine_predictions_for_bb): Fix up formatting.
22119 (expr_expected_value_1, expr_expected_value): Add predictor argument,
22120 fill what it points to if non-NULL.
22121 (tree_predict_by_opcode): Adjust caller, use the predictor.
22122 * predict.def (PRED_COMPARE_AND_SWAP): Add.
22124 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
22126 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
22127 proper constant for the store mode.
22129 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
22131 * symtab.c (change_decl_assembler_name): Fix transparent alias
22132 chain construction.
22134 2014-03-16 Renlin Li <Renlin.Li@arm.com>
22136 * config/aarch64/aarch64.c: Correct the comments about the
22137 aarch64 stack layout.
22139 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
22141 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
22142 check for GF_OMP_FOR_KIND_FOR.
22144 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22146 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
22147 ymm and zmm register names.
22149 2014-03-17 Jakub Jelinek <jakub@redhat.com>
22152 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
22153 note creation for the 2010-08-31 changes.
22155 2014-03-17 Marek Polacek <polacek@redhat.com>
22157 PR middle-end/60534
22158 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22159 as -fno-tree-loop-vectorize.
22160 (expand_omp_simd): Likewise.
22162 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22164 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22165 (eligible_for_call_delay): New prototype.
22166 * config/sparc/sparc.c (tls_call_delay): Rename into...
22167 (eligible_for_call_delay): ...this. Return false if the instruction
22168 cannot be put in the delay slot of a branch.
22169 (eligible_for_restore_insn): Simplify.
22170 (eligible_for_return_delay): Return false if the instruction cannot be
22171 put in the delay slot of a branch and simplify.
22172 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22173 put in the delay slot of a branch.
22174 * config/sparc/sparc.md (fix_ut699): New attribute.
22175 (tls_call_delay): Delete.
22176 (in_call_delay): Reimplement.
22177 (eligible_for_sibcall_delay): Rename into...
22178 (in_sibcall_delay): ...this.
22179 (eligible_for_return_delay): Rename into...
22180 (in_return_delay): ...this.
22181 (in_branch_delay): Reimplement.
22182 (in_uncond_branch_delay): Delete.
22183 (in_annul_branch_delay): Delete.
22185 2014-03-14 Richard Henderson <rth@redhat.com>
22188 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22189 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22190 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22191 (floathi splitters): Remove.
22192 (float<SWI48x>xf2): New pattern.
22193 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22194 code that tried to handle DImode for 32-bit, but which was excluded
22195 by the pattern's condition. Drop allocation of stack temporary.
22196 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22197 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22198 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22199 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22200 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22201 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22202 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22203 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22204 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22205 (*float<SWI48x><X87MODEF>2_i387): Remove.
22206 (all float _with_temp splitters): Remove.
22207 (*float<SWI48x><MODEF>2_i387): New pattern.
22208 (*float<SWI48><MODEF>2_sse): New pattern.
22209 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22210 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22212 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22213 Marek Polacek <polacek@redhat.com>
22215 PR middle-end/60484
22216 * common.opt (dump_base_name_prefixed): New Variable.
22217 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22218 if x_dump_base_name_prefixed is already set, set it at the end.
22220 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22222 PR rtl-optimization/60508
22223 * lra-constraints.c (get_reload_reg): Add new parameter
22225 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22226 Pass the new parameter values.
22228 2014-03-14 Richard Biener <rguenther@suse.de>
22230 * common.opt: Revert unintented changes from r205065.
22231 * opts.c: Likewise.
22233 2014-03-14 Richard Biener <rguenther@suse.de>
22235 PR middle-end/60518
22236 * cfghooks.c (split_block): Properly adjust all loops the
22237 block was a latch of.
22239 2014-03-14 Martin Jambor <mjambor@suse.cz>
22242 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22245 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22248 * config/avr/avr.c (avr_set_current_function): Pass function name
22249 through default_strip_name_encoding before sanity checking instead
22250 of skipping the first char of the assembler name.
22252 2014-03-13 Richard Henderson <rth@redhat.com>
22255 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22256 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22257 * config/i386/i386-protos.h: Likewise.
22258 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22259 in the expander instead of a splitter.
22260 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22261 any possibility of requiring a memory.
22262 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22263 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22264 (fp branch splitters): Update for ix86_split_fp_branch.
22265 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22266 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22267 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22268 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22269 (*fop_<MODEF>_3_i387): Likewise.
22270 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22271 (splitters for the fop_* register patterns): Remove.
22272 (fscalexf4_i387): Rename from *fscalexf4_i387.
22273 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22275 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22277 PR tree-optimization/59779
22278 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22279 type for bitsize and maxsize instead of HOST_WIDE_INT.
22281 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22283 PR rtl-optimization/57320
22284 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22285 the CFG after thread_prologue_and_epilogue_insns.
22287 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22289 PR rtl-optimization/57189
22290 * lra-constraints.c (process_alt_operands): Disfavor spilling
22293 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22295 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22297 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22299 PR tree-optimization/59025
22300 PR middle-end/60418
22301 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22302 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22304 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22307 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22308 calls of avr_out_plus_1.
22310 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22312 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22313 BB's single pred and update the father loop's latch info later.
22315 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22317 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22321 (VEC_base): Likewise.
22322 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22323 registers, we need to swap double words in little endian mode.
22325 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22326 to be a container mode for 128-bit integer operations added in ISA
22327 2.07. Unlike TImode and PTImode, the preferred register set is
22328 the Altivec/VMX registers for the 128-bit operations.
22330 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22332 (rs6000_split_128bit_ok_p): Likewise.
22334 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22335 macros for creating ISA 2.07 normal and overloaded builtin
22336 functions with 3 arguments.
22337 (BU_P8V_OVERLOAD_3): Likewise.
22338 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22339 for use as overloaded functions.
22340 (VPERM_1TI_UNS): Likewise.
22341 (VSEL_1TI): Likewise.
22342 (VSEL_1TI_UNS): Likewise.
22343 (ST_INTERNAL_1ti): Likewise.
22344 (LD_INTERNAL_1ti): Likewise.
22345 (XXSEL_1TI): Likewise.
22346 (XXSEL_1TI_UNS): Likewise.
22347 (VPERM_1TI): Likewise.
22348 (VPERM_1TI_UNS): Likewise.
22349 (XXPERMDI_1TI): Likewise.
22350 (SET_1TI): Likewise.
22351 (LXVD2X_V1TI): Likewise.
22352 (STXVD2X_V1TI): Likewise.
22353 (VEC_INIT_V1TI): Likewise.
22354 (VEC_SET_V1TI): Likewise.
22355 (VEC_EXT_V1TI): Likewise.
22356 (EQV_V1TI): Likewise.
22357 (NAND_V1TI): Likewise.
22358 (ORC_V1TI): Likewise.
22359 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22360 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22361 overloaded builtin.
22362 (VADDUQM): Likewise.
22363 (VSUBCUQ): Likewise.
22364 (VADDEUQM): Likewise.
22365 (VADDECUQ): Likewise.
22366 (VSUBEUQM): Likewise.
22367 (VSUBECUQ): Likewise.
22369 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22370 __int128_t and __uint128_t types.
22371 (__uint128_type): Likewise.
22372 (altivec_categorize_keyword): Add support for vector __int128_t,
22373 vector __uint128_t, vector __int128, and vector unsigned __int128
22374 as a container type for TImode operations that need to be done in
22375 VSX/Altivec registers.
22376 (rs6000_macro_to_expand): Likewise.
22377 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22378 to support 128-bit integer instructions vaddcuq, vadduqm,
22379 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22380 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22382 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22383 for V1TImode, and set up preferences to use VSX/Altivec registers.
22384 Setup VSX reload handlers.
22385 (rs6000_debug_reg_global): Likewise.
22386 (rs6000_init_hard_regno_mode_ok): Likewise.
22387 (rs6000_preferred_simd_mode): Likewise.
22388 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22389 (easy_altivec_constant): Likewise.
22390 (output_vec_const_move): Likewise.
22391 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22393 (rs6000_expand_vector_extract): Likewise.
22394 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22396 (rs6000_const_vec): Add support for V1TImode.
22397 (rs6000_emit_le_vsx_load): Swap double words when loading or
22398 storing TImode/V1TImode.
22399 (rs6000_emit_le_vsx_store): Likewise.
22400 (rs6000_emit_le_vsx_move): Likewise.
22401 (rs6000_emit_move): Add support for V1TImode.
22402 (altivec_expand_ld_builtin): Likewise.
22403 (altivec_expand_st_builtin): Likewise.
22404 (altivec_expand_vec_init_builtin): Likewise.
22405 (altivec_expand_builtin): Likewise.
22406 (rs6000_init_builtins): Add support for V1TImode type. Add
22407 support for ISA 2.07 128-bit integer builtins. Define type names
22408 for the VSX/Altivec vector types.
22409 (altivec_init_builtins): Add support for overloaded vector
22410 functions with V1TImode type.
22411 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22412 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22414 (rs6000_split_128bit_ok_p): Likewise.
22415 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22416 __int128_t and vector __uint128_t.
22418 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22419 and mode attributes.
22421 (VSX_M2): Likewise.
22426 (VS_scalar): Likewise.
22427 (VS_double): Likewise.
22428 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22430 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22431 we support the ISA 2.07 128-bit integer arithmetic instructions.
22432 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22433 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22434 and TImode types for use with the builtin functions.
22435 (V1TI_type_node): Likewise.
22436 (unsigned_V1TI_type_node): Likewise.
22437 (intTI_type_internal_node): Likewise.
22438 (uintTI_type_internal_node): Likewise.
22440 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22441 128-bit builtin functions.
22442 (UNSPEC_VADDEUQM): Likewise.
22443 (UNSPEC_VADDECUQ): Likewise.
22444 (UNSPEC_VSUBCUQ): Likewise.
22445 (UNSPEC_VSUBEUQM): Likewise.
22446 (UNSPEC_VSUBECUQ): Likewise.
22447 (VM): Add V1TImode to vector mode iterators.
22449 (VI_unit): Likewise.
22450 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22451 (altivec_vaddcuq): Likewise.
22452 (altivec_vsubuqm): Likewise.
22453 (altivec_vsubcuq): Likewise.
22454 (altivec_vaddeuqm): Likewise.
22455 (altivec_vaddecuq): Likewise.
22456 (altivec_vsubeuqm): Likewise.
22457 (altivec_vsubecuq): Likewise.
22459 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22461 (BOOL_128): Likewise.
22462 (BOOL_REGS_OUTPUT): Likewise.
22463 (BOOL_REGS_OP1): Likewise.
22464 (BOOL_REGS_OP2): Likewise.
22465 (BOOL_REGS_UNARY): Likewise.
22466 (BOOL_REGS_AND_CR0): Likewise.
22468 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22469 128-bit integer builtin support.
22470 (vec_vadduqm): Likewise.
22471 (vec_vaddecuq): Likewise.
22472 (vec_vaddeuqm): Likewise.
22473 (vec_vsubecuq): Likewise.
22474 (vec_vsubeuqm): Likewise.
22475 (vec_vsubcuq): Likewise.
22476 (vec_vsubuqm): Likewise.
22478 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22479 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22480 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22481 128-bit integer add/subtract to ISA 2.07.
22483 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22485 * config/arc/arc.c (arc_predicate_delay_insns):
22486 Fix third argument passed to conditionalize_nonjump.
22488 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22490 * config/aarch64/aarch64-builtins.c
22491 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22492 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22493 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22494 instead of __builtin_lfloor.
22495 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22497 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22499 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22500 (tree_ssa_ifcombine_bb_1): New function.
22501 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22502 is an empty forwarder block to then_bb or vice versa and then_bb
22503 and else_bb are effectively swapped.
22505 2014-03-12 Christian Bruel <christian.bruel@st.com>
22508 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22509 REG_CFA_DEF_CFA note.
22510 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22511 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22513 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22515 PR tree-optimization/60454
22516 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22518 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22520 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22521 Do not define target_cpu_default2 to generic.
22522 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22523 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22524 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22526 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22527 Marc Glisse <marc.glisse@inria.fr>
22529 PR tree-optimization/60502
22530 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22531 instead of build_low_bits_mask.
22533 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22535 PR middle-end/60482
22536 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22537 if there are multiple uses, but op doesn't live on E edge.
22538 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22539 clobber stmts before __builtin_unreachable.
22541 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22543 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22544 hard_frame_pointer_rtx.
22545 * cse.c (cse_insn): Remove volatile check.
22546 * cselib.c (cselib_process_insn): Likewise.
22547 * dse.c (scan_insn): Likewise.
22549 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22551 * config/arc/arc.c (conditionalize_nonjump): New function,
22553 (arc_ifcvt): ... this.
22554 (arc_predicate_delay_insns): Use it.
22556 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22558 * config/arc/predicates.md (extend_operand): During/after reload,
22559 allow const_int_operand.
22560 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22561 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22562 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22564 (umulsi3_highpart_i): Likewise.
22566 2014-03-11 Richard Biener <rguenther@suse.de>
22568 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22569 Add asserts to guard possible wrong-code bugs.
22571 2014-03-11 Richard Biener <rguenther@suse.de>
22573 PR tree-optimization/60429
22574 PR tree-optimization/60485
22575 * tree-ssa-structalias.c (set_union_with_increment): Properly
22576 take into account all fields that overlap the shifted vars.
22577 (do_sd_constraint): Likewise.
22578 (do_ds_constraint): Likewise.
22579 (get_constraint_for_ptr_offset): Likewise.
22581 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22583 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22584 (nios2_compute_frame_layout):
22585 Add calculation of cfun->machine->fp_save_offset.
22586 (nios2_expand_prologue): Correct setting of frame pointer register
22588 (nios2_expand_epilogue): Update recovery of stack pointer from
22589 frame pointer accordingly.
22590 (nios2_initial_elimination_offset): Update calculation of offset
22591 for eliminating to HARD_FRAME_POINTER_REGNUM.
22593 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22596 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22597 cgraph_get_create_node on VAR_DECLs.
22599 2014-03-10 Richard Biener <rguenther@suse.de>
22601 PR middle-end/60474
22602 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22604 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22606 * config/vms/vms.opt (vms_float_format): New variable.
22608 2014-03-08 Tobias Burnus <burnus@net-b.de>
22610 * doc/invoke.texi (-fcilkplus): Update implementation status.
22612 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22613 Richard Biener <rguenther@suse.de>
22615 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22616 consistently accross all TUs.
22617 (run_gcc): Enable -fshort-double automatically at link at link-time
22618 and disallow override.
22620 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22623 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22624 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22625 if they can't be used.
22627 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22629 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22630 for Solaris 11/x86 ld.
22631 * configure: Regenerate.
22633 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22635 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22636 (LIB_TLS_SPEC): Save as ld_tls_libs.
22637 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22638 (HAVE_AS_IX86_TLSLDM): New test.
22639 * configure, config.in: Regenerate.
22640 * config/i386/i386.c (legitimize_tls_address): Fall back to
22641 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22642 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22643 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22644 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22646 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22648 * common.opt (fira-loop-pressure): Mark as optimization.
22650 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22652 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22653 an OpenMP mappable type.
22655 2014-03-06 Matthias Klose <doko@ubuntu.com>
22657 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22658 MULTILIB_OSDIRNAMES is not defined.
22660 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22661 Meador Inge <meadori@codesourcery.com>
22664 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22665 (arm_legitimize_address): Call legitimize_tls_address for any
22666 arm_tls_referenced_p expression, handle constant addend. Call it
22667 before testing for !TARGET_ARM.
22668 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22670 2014-03-06 Richard Biener <rguenther@suse.de>
22672 PR middle-end/60445
22676 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22678 * tree-streamer.c (record_common_node): Assert we don't record
22679 nodes with type double.
22680 (preload_common_node): Skip type double, complex double and double
22681 pointer since it is now frontend dependent due to fshort-double option.
22683 2014-03-06 Richard Biener <rguenther@suse.de>
22685 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22686 or -fno-lto is specified and the linker has full plugin support.
22687 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22688 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22689 * lto-wrapper.c (merge_and_complain): Merge compile-time
22690 optimization levels.
22691 (run_gcc): And pass it through to the link options.
22693 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22697 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22699 * cselib.c (remove_useless_values): Skip to avoid quadratic
22700 behavior if the condition moved from...
22701 (cselib_process_insn): ... here holds.
22703 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22706 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22707 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22710 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22711 (TM_H): Add x86-tune.def.
22713 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22715 * config/aarch64/aarch64.c (generic_tunings):
22716 Use cortexa57_extra_costs.
22718 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22721 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22722 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22723 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22726 2014-03-04 Heiher <r@hev.cc>
22728 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22729 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22731 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22733 * config/i386/predicates.md (const2356_operand): Change to ...
22734 (const2367_operand): ... this.
22735 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22737 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22738 (*avx512pf_scatterpf<mode>sf): Ditto.
22739 (avx512pf_scatterpf<mode>df): Ditto.
22740 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22741 (*avx512pf_scatterpf<mode>df): Ditto.
22742 * config/i386/i386.c (ix86_expand_builtin): Update
22743 incorrect hint operand error message.
22745 2014-03-04 Richard Biener <rguenther@suse.de>
22747 * lto-section-in.c (lto_get_section_data): Fix const cast.
22749 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22751 * tree-streamer.c (record_common_node): Assert we don't record
22752 nodes with type double.
22753 (preload_common_node): Skip type double, complex double and double
22754 pointer since it is now frontend dependent due to fshort-double option.
22756 2014-03-04 Richard Biener <rguenther@suse.de>
22759 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22760 (lto_input_toplevel_asms): Likewise.
22761 * lto-section-in.c (lto_get_section_data): Instead do it here
22764 2014-03-04 Richard Biener <rguenther@suse.de>
22766 PR tree-optimization/60382
22767 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22768 dead PHIs a reduction.
22770 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22772 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22774 (_mm_prefetch): Move out of GCC target("sse") pragma.
22775 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22776 GCC target("prfchw") pragma.
22777 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22779 * config/i386/i386.c (ix86_option_override_internal): Enable
22780 -mprfchw with -mprefetchwt1.
22782 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22784 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22787 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22789 * opts.h (CL_PCH_IGNORE): Define.
22790 * targhooks.c (option_affects_pch_p):
22791 Return false for options that have CL_PCH_IGNORE set.
22792 * opt-functions.awk: Process PchIgnore.
22793 * doc/options.texi: Document PchIgnore.
22795 * config/arc/arc.opt (misize): Add PchIgnore property.
22797 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22799 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22800 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22801 constraint on constants to permit them being loaded into
22802 GENERAL_REGS or BASE_REGS.
22804 2014-03-03 Nick Clifton <nickc@redhat.com>
22806 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22807 anti-cacnonical alternatives.
22808 (negandhi3_real): New pattern.
22809 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22811 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22813 * config/avr/avr-mcus.def: Remove atxmega16x1.
22814 * config/avr/avr-tables.opt: Regenerate.
22815 * config/avr/t-multilib: Regenerate.
22816 * doc/avr-mmcu.texi: Regenerate.
22818 2014-03-03 Tobias Grosser <tobias@grosser.es>
22819 Mircea Namolaru <mircea.namolaru@inria.fr>
22821 PR tree-optimization/58028
22822 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22825 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22827 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22828 not handled by recognizers.
22830 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22832 PR middle-end/60175
22833 * function.c (expand_function_end): Don't emit
22834 clobber_return_register sequence if clobber_after is a BARRIER.
22835 * cfgexpand.c (construct_exit_block): Append instructions before
22836 return_label to prev_bb.
22838 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22840 * config/rs6000/constraints.md: Document reserved use of "wc".
22842 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22845 * ipa.c (function_and_variable_visibility): When dissolving comdat
22846 group, also set all symbols to local.
22848 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22853 2013-12-14 Jan Hubicka <jh@suse.cz>
22854 PR middle-end/58477
22855 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22857 2014-03-02 Jon Beniston <jon@beniston.com>
22863 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22864 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22865 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22866 (simple_return, *simple_return): New patterns
22867 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22868 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22870 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22872 * dwarf2out.c (gen_subprogram_die): Tidy.
22874 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22877 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22878 (*mov_t_msb_neg_negc): ... this new insn.
22880 2014-02-28 Jason Merrill <jason@redhat.com>
22883 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22886 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22889 * dwarf2out.c (decltype_auto_die): New static.
22890 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22891 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22892 (is_cxx_auto): Likewise.
22894 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22896 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22897 we are not using general regs only.
22899 2014-02-28 Richard Biener <rguenther@suse.de>
22902 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22903 previous fix and only allow to remove trivial pre-headers
22904 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22905 (remove_forwarder_block): Properly update the latch of a loop.
22907 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22910 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22911 (cselib_preserved_hash_table): New.
22912 (preserve_constants_and_equivs): Move preserved vals to it.
22913 (cselib_find_slot): Look it up first.
22914 (cselib_init): Initialize it.
22915 (cselib_finish): Release it.
22916 (dump_cselib_table): Dump it.
22918 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22921 * cselib.c (remove_useless_values): Skip to avoid quadratic
22922 behavior if the condition moved from...
22923 (cselib_process_insn): ... here holds.
22925 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22928 * var-tracking.c (vt_initialize): Apply the same condition to
22929 preserve the CFA base value.
22931 2014-02-28 Joey Ye <joey.ye@arm.com>
22934 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22935 if reload in progress or completed.
22937 2014-02-28 Tobias Burnus <burnus@net-b.de>
22939 PR middle-end/60147
22940 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22943 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22945 * doc/tm.texi.in (Condition Code Status): Update documention for
22946 relative locations of cc0-setter and cc0-user.
22948 2014-02-27 Jeff Law <law@redhat.com>
22950 PR rtl-optimization/52714
22951 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22952 into two independent simple sets, if I3 is a jump, ensure the
22953 pattern we place into I3 is a (set (pc) ...).
22955 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22956 Jeff Law <law@redhat.com>
22958 PR rtl-optimization/49847
22959 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22960 are in different blocks.
22961 * doc/tm.texi (Condition Code Status): Update documention for
22962 relative locations of cc0-setter and cc0-user.
22964 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22967 * lra.c (lra_emit_add): Check SUBREG too.
22969 2014-02-27 Andreas Schwab <schwab@suse.de>
22971 * config/m68k/m68k.c (m68k_option_override): Disable
22972 -flive-range-shrinkage for classic m68k.
22973 (m68k_override_options_after_change): Likewise.
22975 2014-02-27 Marek Polacek <polacek@redhat.com>
22977 PR middle-end/59223
22978 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22979 -Wmaybe-uninitialized.
22981 2014-02-27 Alan Modra <amodra@gmail.com>
22984 * reload1.c (emit_input_reload_insns): When reload_override_in,
22985 set old to rl->in_reg when rl->in_reg is a subreg.
22987 2014-02-26 Richard Biener <rguenther@suse.de>
22990 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22992 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22994 * common/config/i386/predicates.md (const1256_operand): Remove.
22995 (const2356_operand): New.
22996 (const_1_to_2_operand): Remove.
22997 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22998 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22999 (*avx512pf_gatherpf<mode>sf): Ditto.
23000 (avx512pf_gatherpf<mode>df): Ditto.
23001 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23002 (*avx512pf_gatherpf<mode>df): Ditto.
23003 (avx512pf_scatterpf<mode>sf): Ditto.
23004 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23005 (*avx512pf_scatterpf<mode>sf): Ditto.
23006 (avx512pf_scatterpf<mode>df): Ditto.
23007 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23008 (*avx512pf_scatterpf<mode>df): Ditto.
23009 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
23011 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
23013 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
23014 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
23015 (_mm512_mask_testn_epi64_mask): Move to ...
23016 * config/i386/avx512cdintrin.h: Here.
23017 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
23018 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
23019 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
23020 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
23021 TARGET_AVX512F from TARGET_AVX512CD.
23023 2014-02-26 Richard Biener <rguenther@suse.de>
23026 * ipa.c (walk_polymorphic_call_targets): Properly guard
23027 call to inline_update_overall_summary.
23029 2014-02-26 Bin Cheng <bin.cheng@arm.com>
23032 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
23033 and latches only if requested. Fix latch if it is removed.
23034 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
23035 LOOPS_HAVE_PREHEADERS.
23037 2014-02-25 Andrew Pinski <apinski@cavium.com>
23039 * builtins.c (expand_builtin_thread_pointer): Create a new target
23040 when the target is NULL.
23042 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
23044 PR rtl-optimization/60317
23045 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
23046 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
23047 * lra-assigns.c: Include params.h.
23048 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
23049 other reload pseudos considerations.
23051 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23053 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
23054 to use canonical form for nor<mode>3.
23056 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23059 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
23062 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
23064 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
23065 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
23066 (ix86_handle_option): Handle OPT_mprefetchwt1.
23067 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
23068 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23070 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23071 OPTION_MASK_ISA_PREFETCHWT1.
23072 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
23073 (PTA_PREFETCHWT1): New.
23074 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
23075 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
23076 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
23077 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
23078 (*prefetch_avx512pf_<mode>_: Change into ...
23079 (*prefetch_prefetchwt1_<mode>: This.
23080 * config/i386/i386.opt (mprefetchwt1): New.
23081 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
23082 (_mm_prefetch): Handle intent to write.
23083 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
23085 2014-02-25 Richard Biener <rguenther@suse.de>
23087 PR middle-end/60291
23088 * emit-rtl.c (mem_attrs_htab): Remove.
23089 (mem_attrs_htab_hash): Likewise.
23090 (mem_attrs_htab_eq): Likewise.
23091 (set_mem_attrs): Always allocate new mem-attrs when something changed.
23092 (init_emit_once): Do not allocate mem_attrs_htab.
23094 2014-02-25 Richard Biener <rguenther@suse.de>
23097 * lto-opts.c (lto_write_options): Output non-explicit conservative
23098 -fwrapv, -fno-trapv and -fno-strict-overflow.
23099 * lto-wrapper.c (merge_and_complain): Handle merging those options.
23100 (run_gcc): And pass them through.
23102 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23104 * sel-sched.c (calculate_new_fences): New parameter ptime.
23105 Calculate it as a maximum over all fence cycles.
23106 (sel_sched_region_2): Adjust the call to calculate_new_fences.
23107 Print the final schedule timing when sched_verbose.
23109 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23111 PR rtl-optimization/60292
23112 * sel-sched.c (fill_vec_av_set): Do not reset target availability
23113 bit fot the fence instruction.
23115 2014-02-24 Alangi Derick <alangiderick@gmail.com>
23117 * calls.h: Fix typo in comment.
23119 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
23121 * config/pa/pa.c (pa_output_move_double): Don't valididate when
23122 adjusting offsetable addresses.
23124 2014-02-24 Guozhi Wei <carrot@google.com>
23126 * sparseset.h (sparseset_pop): Fix the wrong index.
23128 2014-02-24 Walter Lee <walt@tilera.com>
23130 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
23131 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
23133 * common/config/tilegx/tilegx-common.c
23134 (TARGET_DEFAULT_TARGET_FLAGS): Define.
23135 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
23136 (LINK_SPEC): Ditto.
23137 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
23138 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
23139 (tilegx_gimplify_va_arg_expr): Handle big endian.
23140 (tilegx_expand_unaligned_load): Ditto.
23141 (tilegx_expand_unaligned_store): Ditto.
23142 (TARGET_RETURN_IN_MSB): New.
23143 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
23144 (TARGET_ENDIAN_DEFAULT): New.
23145 (TARGET_BIG_ENDIAN): Handle big endian.
23146 (BYTES_BIG_ENDIAN): Ditto.
23147 (WORDS_BIG_ENDIAN): Ditto.
23148 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
23149 (ENDIAN_SPEC): New.
23150 (EXTRA_SPECS): New.
23151 * config/tilegx/tilegx.md (extv): Handle big endian.
23153 (insn_st<n>): Ditto.
23154 (insn_st<n>_add<bitsuffix>): Ditto.
23155 (insn_stnt<n>): Ditto.
23156 (insn_stnt<n>_add<bitsuffix>):Ditto.
23157 (vec_interleave_highv8qi): Handle big endian.
23158 (vec_interleave_highv8qi_be): New.
23159 (vec_interleave_highv8qi_le): New.
23160 (insn_v1int_h): Handle big endian.
23161 (vec_interleave_lowv8qi): Handle big endian.
23162 (vec_interleave_lowv8qi_be): New.
23163 (vec_interleave_lowv8qi_le): New.
23164 (insn_v1int_l): Handle big endian.
23165 (vec_interleave_highv4hi): Handle big endian.
23166 (vec_interleave_highv4hi_be): New.
23167 (vec_interleave_highv4hi_le): New.
23168 (insn_v2int_h): Handle big endian.
23169 (vec_interleave_lowv4hi): Handle big endian.
23170 (vec_interleave_lowv4hi_be): New.
23171 (vec_interleave_lowv4hi_le): New.
23172 (insn_v2int_l): Handle big endian.
23173 (vec_interleave_highv2si): Handle big endian.
23174 (vec_interleave_highv2si_be): New.
23175 (vec_interleave_highv2si_le): New.
23176 (insn_v4int_h): Handle big endian.
23177 (vec_interleave_lowv2si): Handle big endian.
23178 (vec_interleave_lowv2si_be): New.
23179 (vec_interleave_lowv2si_le): New.
23180 (insn_v4int_l): Handle big endian.
23181 * config/tilegx/tilegx.opt (mbig-endian): New option.
23182 (mlittle-endian): New option.
23183 * doc/install.texi: Document tilegxbe-linux.
23184 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23186 2014-02-24 Martin Jambor <mjambor@suse.cz>
23189 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23190 there are no parameter descriptors.
23192 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23194 PR rtl-optimization/60268
23195 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23196 initialization to ...
23197 (sched_rgn_init): ... here.
23198 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23200 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23202 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23205 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23207 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23210 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23212 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23213 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23215 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23217 * config/microblaze/predicates.md: Add cmp_op predicate.
23218 * config/microblaze/microblaze.md: Add branch_compare instruction
23219 which uses cmp_op predicate and emits cmp insn before branch.
23220 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23221 to microblaze_expand_conditional_branch and consolidate logic.
23222 (microblaze_expand_conditional_branch): emit branch_compare
23223 insn instead of handling cmp op separate from branch insn.
23225 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23227 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23230 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23232 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23233 define_insn with define_expand and new define_insn
23234 *altivec_lve<VI_char>x_internal.
23235 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23236 and new define_insn *altivec_stve<VI_char>x_internal.
23237 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23239 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23241 (altivec_expand_stvex_be): New function.
23243 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23245 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23246 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23247 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23248 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23250 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23253 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23254 instead of emit_move_insn.
23256 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23258 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23259 vspltw with vsldoi.
23260 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23261 gen_altivec_vsumsws.
23263 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23265 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23266 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23267 (altivec_lvxl_<mode>): New define_expand incorporating
23268 -maltivec=be semantics where needed.
23269 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23270 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23271 semantics where needed.
23272 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23273 (altivec_stvx_<mode>): New define_expand incorporating
23274 -maltivec=be semantics where needed.
23275 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23276 VM2 iterator instead of V4SI.
23277 (altivec_stvxl_<mode>): New define_expand incorporating
23278 -maltivec=be semantics where needed.
23279 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23280 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23281 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23282 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23283 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23284 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23285 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23286 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23287 ALTIVEC_BUILTIN_STVXL.
23288 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23289 (altivec_expand_stvx_be): Likewise.
23290 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23291 (altivec_expand_lvx_be): Likewise.
23292 (altivec_expand_stvx_be): Likewise.
23293 (altivec_expand_builtin): Add cases for
23294 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23295 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23296 (altivec_init_builtins): Add definitions for
23297 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23298 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23300 2014-02-21 Catherine Moore <clm@codesourcery.com>
23302 * doc/invoke.texi (mvirt, mno-virt): Document.
23303 * config/mips/mips.opt (mvirt): New option.
23304 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23306 2014-02-21 Richard Biener <rguenther@suse.de>
23308 PR tree-optimization/60276
23309 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23310 (STMT_VINFO_MIN_NEG_DIST): New macro.
23311 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23312 STMT_VINFO_MIN_NEG_DIST.
23313 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23314 made for negative dependence distances still hold.
23316 2014-02-21 Richard Biener <rguenther@suse.de>
23318 PR middle-end/60291
23319 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23320 DECL_INITIAL for globals not in the current function context.
23322 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23324 PR tree-optimization/56490
23325 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23326 * tree-ssa-uninit.c: Include params.h.
23327 (compute_control_dep_chain): Add num_calls argument, return false
23328 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23329 num_calls to recursive call.
23330 (find_predicates): Change dep_chain into normal array,
23331 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23332 variable and adjust compute_control_dep_chain caller.
23333 (find_def_preds): Likewise.
23335 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23337 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23338 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23340 2014-02-21 Nick Clifton <nickc@redhat.com>
23342 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23343 (pushhi1): Likewise.
23344 (popqi1): Add mode to pre_dec.
23345 (pophi1): Likewise.
23347 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23349 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23350 mode for mask of V8SFmode permutation.
23352 2014-02-20 Richard Henderson <rth@redhat.com>
23355 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23356 a new pseudo for OLDVAL.
23358 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23361 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23362 gen_reg_rtx if d->testing_p.
23363 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23364 if d->testing_p and we will certainly return true.
23365 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23368 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23370 * emit-rtl.c (gen_reg_rtx): Assert that
23371 crtl->emit.regno_pointer_align_length is non-zero.
23373 2014-02-20 Richard Henderson <rth@redhat.com>
23376 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23377 on failure the store back into EXPECT.
23379 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23380 Sandra Loosemore <sandra@codesourcery.com>
23382 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23383 * config/nios2/nios2.c (nios2_function_profiler): Add
23384 -fPIC (flag_pic == 2) support.
23385 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23386 (nios2_large_offset_p): New function.
23387 (nios2_unspec_reloc_p): Move up position, update to use
23388 nios2_large_offset_p.
23389 (nios2_unspec_address): Remove function.
23390 (nios2_unspec_offset): New function.
23391 (nios2_large_got_address): New function.
23392 (nios2_got_address): Add large offset support.
23393 (nios2_legitimize_tls_address): Update usage of removed and new
23395 (nios2_symbol_binds_local_p): New function.
23396 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23397 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23398 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23399 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23400 processing for (const (unspec ...)).
23401 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23403 2014-02-20 Richard Biener <rguenther@suse.de>
23405 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23406 doing the substitution.
23407 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23409 2014-02-20 Martin Jambor <mjambor@suse.cz>
23412 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23413 info when checking whether lattices are bottom.
23415 2014-02-20 Richard Biener <rguenther@suse.de>
23417 PR middle-end/60221
23418 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23421 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23424 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23425 parameter specifying the scaling.
23426 (inline_call): Update.
23427 (want_inline_recursively): Guard division by zero.
23428 (recursive_inlining): Update.
23429 * ipa-inline.h (clone_inlined_nodes): Update.
23431 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23434 * config/i386/i386.c (classify_argument): Pass structures of size
23435 64 bytes or less in register.
23437 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23438 Kirill Yukhin <kirill.yukhin@intel.com>
23440 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23441 (_mm_rcp28_round_ss): Ditto.
23442 (_mm_rsqrt28_round_sd): Ditto.
23443 (_mm_rsqrt28_round_ss): Ditto.
23444 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23445 (_mm_rcp14_round_ss): Ditto.
23446 (_mm_rsqrt14_round_sd): Ditto.
23447 (_mm_rsqrt14_round_ss): Ditto.
23448 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23449 the first input operand, get rid of match_dup.
23450 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23452 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23454 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23455 operand as the first input operand, set type attribute.
23456 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23457 Set type attribute.
23458 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23459 operand as the first input operand, set type attribute.
23461 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23463 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23466 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23469 * config/i386/i386.c (construct_container): Remove TFmode check
23470 for X86_64_INTEGER_CLASS.
23472 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23475 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23476 only when -Wpsabi is enabled.
23478 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23481 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23482 passing arrays in registers are the same as for structs, so remove the
23483 special case for them.
23485 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23487 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23488 destination type, extract only the valid bits if the source type is not
23489 integral and has a different mode.
23491 2014-02-19 Richard Biener <rguenther@suse.de>
23494 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23497 2014-02-19 Richard Biener <rguenther@suse.de>
23500 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23501 (ipa_modify_call_arguments): Emit an argument load explicitely and
23502 preserve virtual SSA form there and for the replacement call.
23503 Do not update SSA form nor free dominance info.
23505 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23507 * ipa.c (function_and_variable_visibility): Also clear WEAK
23508 flag when disolving COMDAT_GROUP.
23510 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23512 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23513 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23514 not devirtualizing.
23515 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23516 do more sanity checks.
23517 (detect_type_change): Return true when giving up early.
23518 (compute_complex_assign_jump_func): Fix type parameter of
23519 ipa_set_ancestor_jf.
23520 (compute_complex_ancestor_jump_func): Likewise.
23521 (update_jump_functions_after_inlining): Fix updating of
23523 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23525 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23527 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23528 inline clones when edge disappears.
23530 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23533 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23534 Split 64-bit moves into 2 patterns. Do not allow the use of
23535 direct move for TDmode in little endian, since the decimal value
23536 has little endian bytes within a word, but the 64-bit pieces are
23537 ordered in a big endian fashion, and normal subreg's of TDmode are
23539 (mov<mode>_64bit_dm): Likewise.
23540 (movtd_64bit_nodm): Likewise.
23542 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23544 PR tree-optimization/60174
23545 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23546 statement of an SSA_NAME that occurs in an abnormal PHI node.
23548 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23551 * final.c (SEEN_BB): Remove.
23552 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23553 (final_scan_insn): Don't force_source_line on second
23554 NOTE_INSN_BASIC_BLOCK.
23556 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23559 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23560 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23561 (type_natural_mode): Warn ABI change when %zmm register is not
23562 available for AVX512F vector value passing.
23564 2014-02-18 Kai Tietz <ktietz@redhat.com>
23567 * config/i386/i386.c (ix86_expand_prologue): Use value in
23568 rax register as displacement when restoring %r10 or %rax.
23569 Fix wrong offset when restoring both registers.
23571 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23573 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23574 assertion with conditional return.
23576 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23577 Uros Bizjak <ubizjak@gmail.com>
23580 * config/i386/driver-i386.c (host_detect_local_cpu): If
23581 YMM state is not saved by the OS, also clear has_f16c. Move
23582 CPUID 0x80000001 handling before YMM state saving checking.
23584 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23586 PR rtl-optimization/58960
23587 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23588 factored out from ...
23589 (sched_init): ... here.
23590 (free_global_sched_pressure_data): New, factored out from ...
23591 (sched_finish): ... here.
23592 * sched-int.h (free_global_sched_pressure_data): Declare.
23593 * sched-rgn.c (nr_regions_initial): New static global.
23594 (haifa_find_rgns): Initialize it.
23595 (schedule_region): Disable sched-pressure for the newly
23598 2014-02-17 Richard Biener <rguenther@suse.de>
23600 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23601 release SSA defs of pattern stmts.
23603 2014-02-17 Richard Biener <rguenther@suse.de>
23605 * tree-inline.c (expand_call_inline): Release the virtual
23606 operand defined by the call we are about to inline.
23608 2014-02-17 Richard Biener <rguenther@suse.de>
23610 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23612 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23613 Ilya Tocar <ilya.tocar@intel.com>
23615 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23616 arguments order in builtin.
23617 (_mm512_permutexvar_epi64): Ditto.
23618 (_mm512_mask_permutexvar_epi64): Ditto
23619 (_mm512_maskz_permutexvar_epi32): Ditto
23620 (_mm512_permutexvar_epi32): Ditto
23621 (_mm512_mask_permutexvar_epi32): Ditto
23623 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23625 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23626 (p8_vmrgow): Likewise.
23628 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23630 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23633 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23636 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23637 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23638 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23639 using direct move instructions on ISA 2.07. Also adjust
23640 instruction length for 64-bit.
23641 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23642 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23644 2014-02-15 Alan Modra <amodra@gmail.com>
23648 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23649 find_replacement on parts of insn rtl that might be reloaded.
23651 2014-02-15 Richard Biener <rguenther@suse.de>
23653 PR tree-optimization/60183
23654 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23655 (tree_ssa_phiprop): Calculate and free post-dominators.
23657 2014-02-14 Jeff Law <law@redhat.com>
23659 PR rtl-optimization/60131
23660 * ree.c (get_extended_src_reg): New function.
23661 (combine_reaching_defs): Use it rather than assuming location of REG.
23662 (find_and_remove_re): Verify first operand of extension is
23663 a REG before adding the insns to the copy list.
23665 2014-02-14 Roland McGrath <mcgrathr@google.com>
23667 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23668 * configure: Regenerated.
23669 * config.in: Regenerated.
23670 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23671 instead of ASM_SHORT.
23673 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23674 Richard Earnshaw <rearnsha@arm.com>
23676 PR rtl-optimization/59535
23677 * lra-constraints.c (process_alt_operands): Encourage alternative
23678 when unassigned pseudo class is superset of the alternative class.
23679 (inherit_reload_reg): Don't inherit when optimizing for code size.
23680 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23681 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23682 modes not less than 4 for Thumb1.
23684 2014-02-14 Kyle McMartin <kyle@redhat.com>
23687 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23689 2014-02-14 Richard Biener <rguenther@suse.de>
23691 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23692 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23693 Do not strip INDIRECT_REFs.
23695 2014-02-14 Richard Biener <rguenther@suse.de>
23698 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23699 DECL_FUNCTION_SPECIFIC_TARGET.
23700 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23701 * tree-streamer-out.c (pack_ts_target_option): Remove.
23702 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23703 (write_ts_function_decl_tree_pointers): Do not stream
23704 DECL_FUNCTION_SPECIFIC_TARGET.
23705 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23706 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23707 (lto_input_ts_function_decl_tree_pointers): Do not stream
23708 DECL_FUNCTION_SPECIFIC_TARGET.
23710 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23712 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23713 (get_initial_def_for_induction, vectorizable_induction): Ignore
23714 debug stmts when looking for exit_phi.
23715 (vectorizable_live_operation): Fix up condition.
23717 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23719 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23720 nreverse() because it changes the content of original tree list.
23722 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23724 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23725 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23727 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23729 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23730 GNU coding standards.
23732 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23735 * dwarf2out.c (gen_subprogram_die): Don't call
23736 add_calling_convention_attribute if subr_die is old_die.
23738 2014-02-13 Sharad Singhai <singhai@google.com>
23740 * doc/optinfo.texi: Fix order of nodes.
23742 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23744 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23745 operands[2], not operands[3].
23747 2014-02-13 Richard Biener <rguenther@suse.de>
23750 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23751 mention the possibility of an in-tree build.
23752 (CLooG): Update recommended version to 0.18.1, mention the
23753 possibility of an in-tree build and clarify that the ISL
23754 bundled with CLooG does not work.
23756 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23759 * expr.c (compress_float_constant): If x is a hard register,
23760 extend into a pseudo and then move to x.
23762 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23764 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23765 caused by bad second argument to warning_at() with -mhotpatch and
23766 nested functions (e.g. with gfortran).
23768 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23770 * opts.c (option_name): Remove "enabled by default" rider.
23772 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23774 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23776 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23777 Uros Bizjak <ubizjak@gmail.com>
23780 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23781 * configure: Regenerated.
23783 2014-02-12 Richard Biener <rguenther@suse.de>
23785 * vec.c (vec_prefix::calculate_allocation): Move as
23786 inline variant to vec.h.
23787 (vec_prefix::calculate_allocation_1): New out-of-line version.
23788 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23789 (vec_prefix::m_has_auto_buf): Rename to ...
23790 (vec_prefix::m_using_auto_storage): ... this.
23791 (vec_prefix::calculate_allocation): Inline the easy cases
23792 and dispatch to calculate_allocation_1 which doesn't need the
23794 (va_heap::reserve): Use gcc_checking_assert.
23795 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23796 m_using_auto_storage.
23797 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23799 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23800 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23801 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23803 2014-02-12 Richard Biener <rguenther@suse.de>
23805 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23806 when we found a dependence.
23808 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23810 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23812 (maybe_fold_stmt): ... into this new function.
23813 * omp-low.c (lower_omp): Update comment.
23815 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23818 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23821 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23823 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23824 identifiers in comments.
23825 (cortexa53_extra_costs): Likewise.
23826 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23827 (cortexa7_extra_costs): Likewise.
23828 (cortexa12_extra_costs): Likewise.
23829 (cortexa15_extra_costs): Likewise.
23830 (v7m_extra_costs): Likewise.
23832 2014-02-12 Richard Biener <rguenther@suse.de>
23834 PR middle-end/60092
23835 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23836 of posix_memalign being successful.
23837 (lower_stmt): Restrict lowering of posix_memalign to when
23838 -ftree-bit-ccp is enabled.
23840 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23842 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23844 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23846 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23848 PR rtl-optimization/60116
23849 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23850 other_insn once the combination has been validated.
23852 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23855 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23857 * ipa-devirt.c: Include demangle.h
23858 (odr_violation_reported): New static variable.
23859 (add_type_duplicate): Update odr_violations.
23860 (maybe_record_node): Add completep parameter; update it.
23861 (record_target_from_binfo): Add COMPLETEP parameter;
23862 update it as needed.
23863 (possible_polymorphic_call_targets_1): Likewise.
23864 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23865 rename FINAL to COMPLETE.
23866 (record_targets_from_bases): Sanity check we found the binfo;
23867 fix COMPLETEP updating.
23868 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23869 parameter, fix computing of COMPLETEP.
23870 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23871 at LTO time do demangling.
23872 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23873 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23875 (gimple_get_virt_method_for_binfo): Likewise.
23876 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23877 gimple_get_virt_method_for_vtable): Update prototypes.
23879 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23882 * genautomata.c (add_presence_absence): Fix typo with
23883 {final_}presence_list.
23885 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23888 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23889 for VSX/Altivec vectors that land in GPR registers.
23891 2014-02-11 Richard Henderson <rth@redhat.com>
23892 Jakub Jelinek <jakub@redhat.com>
23895 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23896 around drhs if type conversion to lacc->type is not useless.
23898 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23900 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23902 (cortex-a57.cortex-a53): Likewise.
23903 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23905 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23907 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23910 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23912 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23913 add_options_for_arm_vfp3.
23915 2014-02-11 Jeff Law <law@redhat.com>
23917 PR middle-end/54041
23918 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23919 object with an undesirable mode.
23921 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23924 * config/i386/sol2-9.h: New file.
23925 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23926 *-*-solaris2.9*): Use it.
23928 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23930 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23931 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23933 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23935 * config/microblaze/microblaze.c: Extend mcpu version format
23937 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23939 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23941 2014-02-10 Richard Henderson <rth@redhat.com>
23944 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23945 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23946 ms-abi vs -mno-accumulate-outgoing-args.
23947 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23948 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23951 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23953 PR middle-end/60080
23954 * cfgexpand.c (expand_asm_operands): Attach source location to
23955 ASM_INPUT rtx objects.
23956 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23958 2014-02-10 Nick Clifton <nickc@redhat.com>
23960 * config/mn10300/mn10300.c (popcount): New function.
23961 (mn10300_expand_prologue): Include saved registers in stack usage
23964 2014-02-10 Jeff Law <law@redhat.com>
23966 PR middle-end/52306
23967 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23968 when changing the SET_DEST of a prior insn to avoid an input reload.
23970 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23972 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23973 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23974 -mcall-openbsd, or -mcall-linux.
23975 (CC1_ENDIAN_BIG_SPEC): Remove.
23976 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23977 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23978 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23979 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23980 and %cc1_endian_default.
23981 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23983 2014-02-10 Richard Biener <rguenther@suse.de>
23985 PR tree-optimization/60115
23986 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23987 MEM_REF handling. Properly verify that the accesses are not
23988 out of the objects bound.
23990 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23992 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23995 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23997 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23998 proper constants and fix formatting.
23999 (possible_polymorphic_call_targets): Fix formatting.
24001 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
24002 Ilya Tocar <ilya.tocar@intel.com>
24004 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
24005 (_mm512_loadu_epi32): Renamed into...
24006 (_mm512_loadu_si512): This.
24007 (_mm512_storeu_epi32): Renamed into...
24008 (_mm512_storeu_si512): This.
24009 (_mm512_maskz_ceil_ps): Removed.
24010 (_mm512_maskz_ceil_pd): Ditto.
24011 (_mm512_maskz_floor_ps): Ditto.
24012 (_mm512_maskz_floor_pd): Ditto.
24013 (_mm512_floor_round_ps): Ditto.
24014 (_mm512_floor_round_pd): Ditto.
24015 (_mm512_ceil_round_ps): Ditto.
24016 (_mm512_ceil_round_pd): Ditto.
24017 (_mm512_mask_floor_round_ps): Ditto.
24018 (_mm512_mask_floor_round_pd): Ditto.
24019 (_mm512_mask_ceil_round_ps): Ditto.
24020 (_mm512_mask_ceil_round_pd): Ditto.
24021 (_mm512_maskz_floor_round_ps): Ditto.
24022 (_mm512_maskz_floor_round_pd): Ditto.
24023 (_mm512_maskz_ceil_round_ps): Ditto.
24024 (_mm512_maskz_ceil_round_pd): Ditto.
24025 (_mm512_expand_pd): Ditto.
24026 (_mm512_expand_ps): Ditto.
24027 * config/i386/i386.c (ix86_builtins): Remove
24028 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
24029 (bdesc_args): Ditto.
24030 * config/i386/predicates.md (const1256_operand): New.
24031 (const_1_to_2_operand): Ditto.
24032 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24033 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24034 (*avx512pf_gatherpf<mode>sf): Ditto.
24035 (avx512pf_gatherpf<mode>df): Ditto.
24036 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24037 (*avx512pf_gatherpf<mode>df): Ditto.
24038 (avx512pf_scatterpf<mode>sf): Ditto.
24039 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24040 (*avx512pf_scatterpf<mode>sf): Ditto.
24041 (avx512pf_scatterpf<mode>df): Ditto.
24042 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24043 (*avx512pf_scatterpf<mode>df): Ditto.
24044 (avx512f_expand<mode>): Removed.
24045 (<shift_insn><mode>3<mask_name>): Change predicate type.
24047 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24049 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
24050 not at the end of datarefs vector use ordered_remove to avoid
24051 reordering datarefs vector.
24054 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
24055 mark local addressable non-static vars as GOVD_PRIVATE
24056 instead of GOVD_LOCAL.
24057 * omp-low.c (lower_omp_for): Move gimple_bind_vars
24058 and BLOCK_VARS of gimple_bind_block to new_stmt rather
24061 PR middle-end/60092
24062 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
24063 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
24064 assume_aligned or alloc_align attributes.
24065 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
24066 arguments. Handle also assume_aligned and alloc_align attributes.
24067 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
24068 calls to functions with assume_aligned or alloc_align attributes.
24069 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
24071 2014-02-08 Terry Guo <terry.guo@arm.com>
24073 * doc/invoke.texi: Document ARM -march=armv7e-m.
24075 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24077 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
24078 flag on __cilkrts_rethrow builtin.
24081 * ipa-cp.c (determine_versionability): Fail at -O0
24082 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
24083 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
24086 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24089 * tree-inline.c (copy_forbidden): Fail for
24090 __attribute__((optimize (0))) functions.
24092 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24094 * varpool.c: Include pointer-set.h.
24095 (varpool_remove_unreferenced_decls): Variables in other partitions
24096 will not be output; be however careful to not lose information
24097 about partitioning.
24099 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24101 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
24102 lookup in the vtable constructor.
24104 2014-02-07 Jeff Law <law@redhat.com>
24107 * config/m68k/m68k.md (ashldi_extsi): Turn into a
24108 define_insn_and_split.
24110 * ipa-inline.c (inline_small_functions): Fix typos.
24112 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24114 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
24115 (s390_can_use_return_insn): Declare.
24116 * config/s390/s390.h (EPILOGUE_USES): Define.
24117 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
24119 (s390_chunkify_start): Handle return JUMP_LABELs.
24120 (s390_early_mach): Emit a main_pool instruction on the entry edge.
24121 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
24122 (s390_can_use_return_insn): New functions.
24123 (s390_fix_long_loop_prediction): Handle conditional returns.
24124 (TARGET_SET_UP_BY_PROLOGUE): Define.
24125 * config/s390/s390.md (ANY_RETURN): New code iterator.
24126 (*creturn, *csimple_return, return, simple_return): New patterns.
24128 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24130 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
24131 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
24132 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
24133 REG_CFA_RESTORE list when deciding not to restore a register.
24135 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24137 * config/s390/s390.c: Include tree-pass.h and context.h.
24138 (s390_early_mach): New function, split out from...
24139 (s390_emit_prologue): ...here.
24140 (pass_data_s390_early_mach): New pass structure.
24141 (pass_s390_early_mach): New class.
24142 (s390_option_override): Create and register early_mach pass.
24143 Move to end of file.
24145 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24147 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
24148 to match for the exit block.
24150 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24152 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
24153 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
24154 Reject misaligned operands.
24156 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24158 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24160 2014-02-07 Richard Biener <rguenther@suse.de>
24162 PR middle-end/60092
24163 * gimple-low.c (lower_builtin_posix_memalign): New function.
24164 (lower_stmt): Call it to lower posix_memalign in a way
24165 to make alignment info accessible.
24167 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24170 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24171 __builtin_setjmp_receiver.
24173 2014-02-07 Richard Biener <rguenther@suse.de>
24175 PR middle-end/60092
24176 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24177 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24178 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24179 Handle BUILT_IN_POSIX_MEMALIGN.
24180 (find_func_clobbers): Likewise.
24181 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24182 (call_may_clobber_ref_p_1): Likewise.
24184 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24187 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24190 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24193 * lto-cgraph.c (lto_output_node): Use
24194 symtab_get_symbol_partitioning_class.
24195 (lto_output_varpool_node): likewise.
24196 (symtab_get_symbol_partitioning_class): Move here from
24197 lto/lto-partition.c
24198 * cgraph.h (symbol_partitioning_class): Likewise.
24199 (symtab_get_symbol_partitioning_class): Declare.
24201 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24203 * ggc.h (ggc_internal_cleared_alloc): New macro.
24204 * vec.h (vec_safe_copy): Handle memory stats.
24205 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24206 * target-globals.c (save_target_globals): Likewise.
24208 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24211 * expr.c (emit_move_resolve_push): Export; be bit more selective
24212 on when to clear alias set.
24213 * expr.h (emit_move_resolve_push): Declare.
24214 * function.h (struct function): Add tail_call_marked.
24215 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24216 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24217 * config/i386/i386.md (TImode move expander): De not call
24219 (FP push expanders): Preserve memory attributes.
24220 * config/i386/sse.md (push<mode>1): Remove.
24221 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24222 (ix86_expand_push): Remove.
24223 * config/i386/mmx.md (push<mode>1): Remove.
24225 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24227 PR rtl-optimization/60030
24228 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24229 lopart with paradoxical subreg before shifting it up by hprec.
24231 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24233 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24234 Remove extra newline at end of file.
24235 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24236 (arm_issue_rate): Handle cortexa57.
24237 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24238 (cortex-a57.cortex-a53): Likewise.
24240 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24243 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24244 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24246 (arm_expand_prologue): Adjust all callers.
24247 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24248 info, registers also at the lowest numbered registers side. Use
24249 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24253 * var-tracking.c (adjust_mems): Before adding a SET to
24254 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24256 2014-02-06 Alan Modra <amodra@gmail.com>
24259 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24260 change SDmode to DDmode when lra_in_progress.
24262 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24264 PR middle-end/59150
24265 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24266 free_data_ref on the dr first, and before goto again also set dr
24267 to the next dr. For simd_lane_access, free old datarefs[i] before
24268 overwriting it. For get_vectype_for_scalar_type failure, don't
24269 free_data_ref if simd_lane_access.
24271 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24274 * tree.h (opts_for_fn): New inline function.
24275 (opt_for_fn): Define.
24276 * config/i386/i386.c (ix86_function_regparm): Use
24277 opt_for_fn (decl, optimize) instead of optimize.
24279 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24281 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24282 for SYMBOL_REF in large memory model.
24284 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24286 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24287 and crypto support.
24288 (cortex-a57): Likewise.
24289 (cortex-a57.cortex-a53): Likewise.
24291 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24292 Kugan Vivekanandarajah <kuganv@linaro.org>
24294 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24296 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24298 2014-02-06 Richard Biener <rguenther@suse.de>
24300 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24301 set_loop_copy and initialize_original_copy_tables.
24303 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24305 * config/aarch64/aarch64-simd.md
24306 (aarch64_ashr_simddi): Change QI to SI.
24308 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24309 Jakub Jelinek <jakub@redhat.com>
24311 PR middle-end/60013
24312 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24315 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24317 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24318 CODE_FOR_altivec_vpku[hw]um to
24319 CODE_FOR_altivec_vpku[hw]um_direct.
24320 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24321 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24322 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24323 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24325 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24327 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24328 generation for -maltivec=be.
24329 (altivec_vsumsws): Simplify redundant test.
24331 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24333 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24334 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24335 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24336 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24337 gen_altivec_vpkuwum.
24338 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24340 (altivec_vpks<VI_char>ss): Likewise.
24341 (altivec_vpks<VI_char>us): Likewise.
24342 (altivec_vpku<VI_char>us): Likewise.
24343 (altivec_vpku<VI_char>um): Likewise.
24344 (altivec_vpku<VI_char>um_direct): New (copy of
24345 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24347 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24348 target is little endian and -maltivec=be is not specified.
24349 (*altivec_vupkhs<VU_char>_direct): New (copy of
24350 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24351 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24352 target is little endian and -maltivec=be is not specified.
24353 (*altivec_vupkls<VU_char>_direct): New (copy of
24354 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24355 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24356 little endian and -maltivec=be is not specified.
24357 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24358 little endian and -maltivec=be is not specified.
24360 2014-02-05 Richard Henderson <rth@redhat.com>
24363 * combine-stack-adj.c: Revert r206943.
24364 * sched-int.h (struct deps_desc): Add last_args_size.
24365 * sched-deps.c (init_deps): Initialize it.
24366 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24367 contain REG_ARGS_SIZE notes.
24369 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24371 * lto-cgraph.c (asm_nodes_output): Make global.
24372 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24373 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24374 (driver_handle_option): Handle OPT_fwpa.
24376 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24379 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24380 a comment typo and formatting issue. If odr_hash hasn't been
24381 created, return vNULL and set *completep to false.
24383 PR middle-end/57499
24384 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24385 bb with no successors.
24387 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24390 * doc/invoke.texi (-march): Clarify documentation for ARM.
24391 (-mtune): Likewise.
24394 2014-02-05 Richard Biener <rguenther@suse.de>
24396 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24397 when not vectorizing because of too many alias checks.
24398 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24399 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24401 2014-02-05 Nick Clifton <nickc@redhat.com>
24403 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24404 accept extended registers in any mode when compiling for the MN10300.
24406 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24408 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24409 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24410 sanitization attributes.
24411 (can_inline_edge_p): Likewise.
24412 (sanitize_attrs_match_for_inline_p): New function.
24414 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24416 * ipa-prop.c (detect_type_change): Shor circuit testing of
24417 type changes on THIS pointer.
24419 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24422 * config/pa/pa.c (legitimize_tls_address): Return original address
24423 if not passed a SYMBOL_REF rtx.
24424 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24426 (pa_emit_move_sequence): Simplify TLS source operands.
24427 (pa_legitimate_constant_p): Reject all TLS constants.
24428 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24429 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24431 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24433 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24434 groups when we know they are controlled by LTO.
24435 * varasm.c (default_binds_local_p_1): If object is in other partition,
24436 it will be resolved locally.
24438 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24440 * config/host-linux.c (linux_gt_pch_use_address): Don't
24441 use SSIZE_MAX because it is not always defined.
24443 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24446 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24447 threshold for pseudo splitting.
24448 (update_ebb_live_info): Process call argument hard registers and
24449 hard registers from insn definition too.
24450 (max_small_class_regs_num): New constant.
24451 (inherit_in_ebb): Update live hard regs through EBBs. Update
24452 reloads_num only for small register classes. Don't split for
24455 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24458 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24461 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24463 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24464 visibility is safe.
24466 2014-02-04 Marek Polacek <polacek@redhat.com>
24468 * gdbinit.in (pel): Define.
24470 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24472 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24475 2014-02-04 Richard Biener <rguenther@suse.de>
24478 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24479 in function context local.
24480 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24481 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24482 similar to LTO_imported_decl_ref.
24484 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24486 PR tree-optimization/60002
24487 * cgraphclones.c (build_function_decl_skip_args): Clear
24488 DECL_LANG_SPECIFIC.
24490 PR tree-optimization/60023
24491 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24492 false to gsi_replace.
24493 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24494 has been in some EH region and vec_stmt could throw, add
24495 vec_stmt into the same EH region.
24496 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24497 has no lhs, ignore it.
24498 * internal-fn.c (expand_MASK_LOAD): Likewise.
24501 * tree-inline.c (copy_forbidden): Fail for
24502 __attribute__((optimize (0))) functions.
24505 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24506 is set, copy one less argument.
24507 (expand_simd_clones): Don't subtract clone_info->inbranch
24508 from simd_clone_struct_alloc argument.
24510 PR rtl-optimization/57915
24511 * recog.c (simplify_while_replacing): If all unary/binary/relational
24512 operation arguments are constant, attempt to simplify those.
24514 PR middle-end/59261
24515 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24516 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24518 2014-02-04 Richard Biener <rguenther@suse.de>
24520 PR tree-optimization/60012
24521 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24522 TBAA disambiguation to all DDRs.
24524 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24527 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24528 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24530 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24533 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24535 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24537 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24538 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24540 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24543 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24544 to figure out targets of polymorphic calls with known decl.
24545 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24546 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24547 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24548 (get_polymorphic_call_info): ... here.
24549 (get_polymorphic_call_info_from_invariant): New function.
24551 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24553 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24554 lookup via vtable pointer; check for type consistency
24555 and turn inconsitent facts into UNREACHABLE.
24556 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24557 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24558 type inconsistent querries; return UNREACHABLE instead.
24560 2014-02-03 Richard Henderson <rth@twiddle.net>
24563 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24564 already processed this node.
24565 (normalize_one_pred_1): Pass along mark_set.
24566 (normalize_one_pred): Create and destroy a pointer_set_t.
24567 (normalize_one_pred_chain): Likewise.
24569 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24571 PR gcov-profile/58602
24572 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24574 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24577 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24578 -fno-devirtualize; try to devirtualize by the knowledge of
24579 virtual table pointer given by aggregate propagation.
24580 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24581 (ipa_print_node_jump_functions): Dump also offset that
24582 is relevant for polymorphic calls.
24583 (determine_known_aggregate_parts): Add arg_type parameter; use it
24584 instead of determining the type from pointer type.
24585 (ipa_compute_jump_functions_for_edge): Update call of
24586 determine_known_aggregate_parts.
24587 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24588 (gimple_get_virt_method_for_binfo): ... here; simplify using
24589 vtable_pointer_value_to_vtable.
24590 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24591 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24592 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24593 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24595 (vtable_pointer_value_to_binfo): ... here.
24596 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24598 2014-02-03 Teresa Johnson <tejohnson@google.com>
24600 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24601 redef of outer loop index variable.
24603 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24607 * doc/extend.texi (Function Attributes): Typo.
24609 2014-02-03 Cong Hou <congh@google.com>
24611 PR tree-optimization/60000
24612 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24613 if the vectorized statement is a store. A store statement can only
24614 appear at the end of pattern statements.
24616 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24618 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24619 (ix86_option_override_internal): Default long double to 64-bit for
24620 32-bit Bionic and to 128-bit for 64-bit Bionic.
24622 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24623 TARGET_LONG_DOUBLE_128 is true.
24624 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24626 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24627 (mlong-double-64): Negate -mlong-double-128.
24628 (mlong-double-128): New option.
24630 * config/i386/i386-c.c (ix86_target_macros): Define
24631 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24633 * doc/invoke.texi: Document -mlong-double-128.
24635 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24637 PR rtl-optimization/60024
24638 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24640 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24642 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24644 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24646 PR rtl-optimization/57662
24647 * sel-sched.c (code_motion_path_driver): Do not mark already not
24648 existing blocks in the visiting bitmap.
24650 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24652 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24653 on the insn being emitted.
24655 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24656 Will Deacon <will.deacon@arm.com>
24658 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24660 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24662 * config/arm/arm-tables.opt: Regenerate.
24664 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24666 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24667 for vector types other than V16QImode.
24668 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24669 define_expand, and call altivec_expand_vec_perm_le when producing
24670 code with little endian element order.
24671 (*altivec_vperm_<mode>_internal): New insn having previous
24672 behavior of altivec_vperm_<mode>.
24673 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24674 altivec_expand_vec_perm_le when producing code with little endian
24676 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24677 behavior of altivec_vperm_<mode>_uns.
24679 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24681 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24682 (altivec_vsumsws): Add handling for -maltivec=be with a little
24684 (altivec_vsumsws_direct): New.
24685 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24686 gen_altivec_vsumsws.
24688 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24690 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24691 vtable_pointer_value_to_binfo): New functions.
24692 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24693 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24695 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24697 * config/nios2/nios2.md (load_got_register): Initialize GOT
24698 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24699 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24701 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24703 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24704 preserverd by passthrough, do not propagate the type.
24706 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24708 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24709 (mips_atomic_assign_expand_fenv): New function.
24710 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24712 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24714 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24715 (__builtin_mips_set_fcsr): Likewise.
24716 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24717 MIPS_USI_FTYPE_VOID.
24718 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24719 (mips16_expand_set_fcsr): Likewise.
24720 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24721 (mips16_set_fcsr_stub): Likewise.
24722 (mips16_get_fcsr_one_only_stub): New class.
24723 (mips16_set_fcsr_one_only_stub): Likewise.
24724 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24725 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24726 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24727 (hard_float): New availability predicate.
24728 (mips_builtins): Add get_fcsr and set_fcsr.
24729 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24730 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24731 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24732 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24733 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24736 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24738 * config/mips/mips.c (mips_one_only_stub): New class.
24739 (mips_need_mips16_rdhwr_p): Replace with...
24740 (mips16_rdhwr_stub): ...this new variable.
24741 (mips16_stub_call_address): New function.
24742 (mips16_rdhwr_one_only_stub): New class.
24743 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24744 (mips_output_mips16_rdhwr): Delete.
24745 (mips_finish_stub): New function.
24746 (mips_code_end): Use it to handle rdhwr stubs.
24748 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24751 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24752 when calculating size of integer atomic types.
24754 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24756 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24758 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24760 PR tree-optimization/60003
24761 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24762 * profile.c (branch_prob): Use gimple_call_builtin_p
24763 to check for BUILT_IN_SETJMP_RECEIVER.
24764 * tree-inline.c (copy_bb): Call notice_special_calls.
24766 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24769 * lra-constraints.c (process_alt_operands): Update reload_sum only
24772 2014-01-31 Richard Henderson <rth@redhat.com>
24774 PR middle-end/60004
24775 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24776 until after else_eh is processed.
24778 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24780 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24781 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24782 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24783 in smmintrin.h, remove them.
24784 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24785 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24786 * config/i386/i386.md (ROUND_SAE): Fix value.
24787 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24788 (const48_operand): New.
24789 * config/i386/subst.md (round), (round_expand): Use
24790 const_4_or_8_to_11_operand.
24791 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24793 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24795 * config/i386/constraints.md (Yk): Swap meaning with k.
24796 * config/i386/i386.md (movhi_internal): Change Yk to k.
24797 (movqi_internal): Ditto.
24798 (*k<logic><mode>): Ditto.
24801 (kandn<mode>): Ditto.
24802 (*<code>hi_1): Ditto.
24803 (*<code>qi_1): Ditto.
24804 (kxnor<mode>): Ditto.
24805 (kortestzhi): Ditto.
24806 (kortestchi): Ditto.
24808 (*one_cmplhi2_1): Ditto.
24809 (*one_cmplqi2_1): Ditto.
24810 * config/i386/sse.md (): Change k to Yk.
24811 (avx512f_load<mode>_mask): Ditto.
24812 (avx512f_blendm<mode>): Ditto.
24813 (avx512f_store<mode>_mask): Ditto.
24814 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24815 (avx512f_storedqu<mode>_mask): Ditto.
24816 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24818 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24819 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24820 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24821 (avx512f_maskcmp<mode>3): Ditto.
24822 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24823 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24824 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24825 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24826 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24827 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24828 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24829 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24830 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24831 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24832 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24833 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24834 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24835 (vec_extract_lo_<mode>_maskm): Ditto.
24836 (vec_extract_hi_<mode>_maskm): Ditto.
24837 (avx512f_vternlog<mode>_mask): Ditto.
24838 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24839 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24840 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24841 (avx512f_<code>v8div16qi2_mask): Ditto.
24842 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24843 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24844 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24845 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24846 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24847 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24848 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24849 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24850 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24851 (avx512cd_maskb_vec_dupv8di): Ditto.
24852 (avx512cd_maskw_vec_dupv16si): Ditto.
24853 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24854 (avx512f_vpermi2var<mode>3_mask): Ditto.
24855 (avx512f_vpermi2var<mode>3_mask): Ditto.
24856 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24857 (*avx512f_gathersi<mode>): Ditto.
24858 (*avx512f_gathersi<mode>_2): Ditto.
24859 (*avx512f_gatherdi<mode>): Ditto.
24860 (*avx512f_gatherdi<mode>_2): Ditto.
24861 (*avx512f_scattersi<mode>): Ditto.
24862 (*avx512f_scatterdi<mode>): Ditto.
24863 (avx512f_compress<mode>_mask): Ditto.
24864 (avx512f_compressstore<mode>_mask): Ditto.
24865 (avx512f_expand<mode>_mask): Ditto.
24866 * config/i386/subst.md (mask): Change k to Yk.
24867 (mask_scalar_merge): Ditto.
24870 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24872 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24874 2014-01-31 Richard Biener <rguenther@suse.de>
24876 PR middle-end/59990
24877 * builtins.c (fold_builtin_memory_op): Make sure to not
24878 use a floating-point mode or a boolean or enumeral type for
24879 the copy operation.
24881 2014-01-30 DJ Delorie <dj@redhat.com>
24883 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24884 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24885 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24886 whenever main() has an epilogue.
24888 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24890 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24891 unused variable "field".
24892 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24893 (vsx_mergeh_<mode>): Likewise.
24894 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24895 (altivec_vmrghh): Likewise.
24896 (altivec_vmrghw): Likewise.
24897 (altivec_vmrglb): Likewise.
24898 (altivec_vmrglh): Likewise.
24899 (altivec_vmrglw): Likewise.
24900 (altivec_vspltb): Add missing uses.
24901 (altivec_vsplth): Likewise.
24902 (altivec_vspltw): Likewise.
24903 (altivec_vspltsf): Likewise.
24905 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24908 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24909 frame related instructions.
24911 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24913 PR rtl-optimization/59959
24914 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24915 any reload of register whose subreg is invalid.
24917 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24919 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24920 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24921 Add missing return type - void.
24923 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24925 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24926 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24927 remove element index adjustment for endian (now handled in vsx.md
24929 (altivec_expand_vec_perm_const): Use
24930 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24931 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24932 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24933 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24934 define_expand and a new define_insn *altivec_vspltb_internal;
24935 adjust for -maltivec=be on a little endian target.
24936 (altivec_vspltb_direct): New.
24937 (altivec_vsplth): Divide into a define_expand and a new
24938 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24939 little endian target.
24940 (altivec_vsplth_direct): New.
24941 (altivec_vspltw): Divide into a define_expand and a new
24942 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24943 little endian target.
24944 (altivec_vspltw_direct): New.
24945 (altivec_vspltsf): Divide into a define_expand and a new
24946 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24947 a little endian target.
24949 2014-01-30 Richard Biener <rguenther@suse.de>
24951 PR tree-optimization/59993
24952 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24953 can propagate form the earlier stmt and avoid the transform
24954 when the intermediate result is needed.
24956 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24958 * README.Portability: Fix typo.
24960 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24962 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24963 comparison_operator with ordered_comparison_operator.
24965 2014-01-30 Nick Clifton <nickc@redhat.com>
24967 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24968 Rename to mn10300_store_multiple_regs.
24969 * config/mn10300/mn10300.c: Likewise.
24970 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24971 store_multiple_regs.
24972 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24973 Call mn10300_store_multiple_regs.
24975 2014-01-30 Nick Clifton <nickc@redhat.com>
24976 DJ Delorie <dj@redhat.com>
24978 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24979 %fp 2 to keep registers after it properly word-aligned.
24980 (rl78_alloc_physical_registers_umul): Handle the case where both
24981 input operands are the same.
24983 2014-01-30 Richard Biener <rguenther@suse.de>
24985 PR tree-optimization/59903
24986 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24989 2014-01-30 Jason Merrill <jason@redhat.com>
24992 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24995 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24997 2014-01-30 Richard Biener <rguenther@suse.de>
24999 PR tree-optimization/59951
25000 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
25002 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
25005 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
25006 SFmode to DFmode case.
25008 2014-01-29 DJ Delorie <dj@redhat.com>
25010 * config/msp430/msp430.opt (-minrt): New.
25011 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
25013 (ENDFILE_SPEC): Likewise.
25015 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
25017 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
25018 (estimate_function_body_sizes): Use it.
25020 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
25023 * dwarf2out.c (is_cxx_auto): New.
25024 (is_base_type): Use it.
25025 (gen_type_die_with_usage): Likewise.
25027 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25029 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
25030 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
25031 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
25032 -maltivec=be with LE targets.
25033 (vsx_mergeh_<mode>): Likewise.
25034 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
25035 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
25036 (altivec_vmrghb): Replace with define_expand and new
25037 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
25038 (altivec_vmrghb_direct): New define_insn.
25039 (altivec_vmrghh): Replace with define_expand and new
25040 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
25041 (altivec_vmrghh_direct): New define_insn.
25042 (altivec_vmrghw): Replace with define_expand and new
25043 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
25044 (altivec_vmrghw_direct): New define_insn.
25045 (*altivec_vmrghsf): Adjust for endianness.
25046 (altivec_vmrglb): Replace with define_expand and new
25047 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
25048 (altivec_vmrglb_direct): New define_insn.
25049 (altivec_vmrglh): Replace with define_expand and new
25050 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
25051 (altivec_vmrglh_direct): New define_insn.
25052 (altivec_vmrglw): Replace with define_expand and new
25053 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
25054 (altivec_vmrglw_direct): New define_insn.
25055 (*altivec_vmrglsf): Adjust for endianness.
25056 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25057 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25058 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25059 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25060 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25061 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25062 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25063 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25065 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
25067 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
25068 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
25071 2014-01-29 Richard Biener <rguenther@suse.de>
25073 PR tree-optimization/58742
25074 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
25075 associate_pointerplus_align.
25076 (associate_pointerplus_diff): New function.
25077 (associate_pointerplus): Likewise. Call associate_pointerplus_align
25078 and associate_pointerplus_diff.
25080 2014-01-29 Richard Biener <rguenther@suse.de>
25082 * lto-streamer.h (LTO_major_version): Bump to 3.
25083 (LTO_minor_version): Reset to 0.
25085 2014-01-29 Renlin Li <Renlin.Li@arm.com>
25087 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
25088 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
25089 (arm_file_start): Generate correct asm header for armv7ve.
25090 * config/arm/bpabi.h: Add multilib support for armv7ve.
25091 * config/arm/driver-arm.c: Change the architectures of cortex-a7
25092 and cortex-a15 to armv7ve.
25093 * config/arm/t-aprofile: Add multilib support for armv7ve.
25094 * doc/invoke.texi: Document -march=armv7ve.
25096 2014-01-29 Richard Biener <rguenther@suse.de>
25098 PR tree-optimization/58742
25099 * tree-ssa-forwprop.c (associate_plusminus): Return true
25100 if we changed sth, defer EH cleanup to ...
25101 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
25102 (simplify_mult): New function.
25104 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25106 PR middle-end/59917
25107 PR tree-optimization/59920
25108 * tree.c (build_common_builtin_nodes): Remove
25109 __builtin_setjmp_dispatcher initialization.
25110 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
25111 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
25112 instead of gsi_after_labels + manually skipping debug stmts.
25113 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
25114 ignore bbs with IFN_ABNORMAL_DISPATCHER.
25115 * tree-inline.c (copy_edges_for_bb): Remove
25116 can_make_abnormal_goto argument, instead add abnormal_goto_dest
25117 argument. Ignore computed_goto_p stmts. Don't call
25118 make_abnormal_goto_edges. If a call might need abnormal edges
25119 for non-local gotos, see if it already has an edge to
25120 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
25121 with true argument, don't do anything then, otherwise add
25122 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
25123 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
25125 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
25126 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
25127 (lower_stmt): Don't set data->calls_builtin_setjmp.
25128 (lower_builtin_setjmp): Adjust comment.
25129 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
25130 * tree-cfg.c (found_computed_goto): Remove.
25131 (factor_computed_gotos): Remove.
25132 (make_goto_expr_edges): Return bool, true for computed gotos.
25133 Don't call make_abnormal_goto_edges.
25134 (build_gimple_cfg): Don't set found_computed_goto, don't call
25135 factor_computed_gotos.
25136 (computed_goto_p): No longer static.
25137 (make_blocks): Don't set found_computed_goto.
25138 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
25139 (make_edges): If make_goto_expr_edges returns true, push bb
25140 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
25141 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
25142 vector. Record mapping between bbs and OpenMP regions if there
25143 are any, adjust make_gimple_omp_edges caller. Call
25144 handle_abnormal_edges.
25145 (make_abnormal_goto_edges): Remove.
25146 * tree-cfg.h (make_abnormal_goto_edges): Remove.
25147 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
25148 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
25149 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
25150 * internal-fn.def (ABNORMAL_DISPATCHER): New.
25151 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
25152 filling *region also set *region_idx to (*region)->entry->index.
25155 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
25156 For REGs set ORIGINAL_REGNO.
25158 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25160 * doc/md.texi: Mention that a target shouldn't implement
25161 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25164 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25166 PR tree-optimization/59594
25167 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25168 a copy of the datarefs vector rather than the vector itself.
25170 2014-01-28 Jason Merrill <jason@redhat.com>
25173 * dwarf2out.c (auto_die): New static.
25174 (gen_type_die_with_usage): Handle C++1y 'auto'.
25175 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25178 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25181 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25182 (SPEC_X32): Likewise.
25183 (SPEC_64): Likewise.
25184 * config/i386/i386.c (ix86_option_override_internal): Turn off
25185 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25187 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25188 * config/i386/i386.h (TARGET_16BIT): New macro.
25189 (TARGET_16BIT_P): Likewise.
25190 * config/i386/i386.opt: Add m16.
25191 * doc/invoke.texi: Document -m16.
25193 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25195 PR preprocessor/59935
25196 * input.c (location_get_source_line): Bail out on when line number
25197 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25199 2014-01-28 Richard Biener <rguenther@suse.de>
25201 PR tree-optimization/58742
25202 * tree-ssa-forwprop.c (associate_plusminus): Handle
25203 pointer subtraction of the form (T)(P + A) - (T)P.
25205 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25207 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25210 2014-01-28 Richard Biener <rguenther@suse.de>
25213 2014-01-28 Richard Biener <rguenther@suse.de>
25215 PR rtl-optimization/45364
25216 PR rtl-optimization/59890
25217 * var-tracking.c (local_get_addr_clear_given_value): Handle
25218 already cleared slot.
25219 (val_reset): Handle not allocated local_get_addr_cache.
25220 (vt_find_locations): Use post-order on the inverted CFG.
25222 2014-01-28 Richard Biener <rguenther@suse.de>
25224 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25226 2014-01-28 Richard Biener <rguenther@suse.de>
25228 PR rtl-optimization/45364
25229 PR rtl-optimization/59890
25230 * var-tracking.c (local_get_addr_clear_given_value): Handle
25231 already cleared slot.
25232 (val_reset): Handle not allocated local_get_addr_cache.
25233 (vt_find_locations): Use post-order on the inverted CFG.
25235 2014-01-28 Alan Modra <amodra@gmail.com>
25237 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25238 * configure.ac <recursive call for build != host>: Define
25239 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25240 and LD_FOR_BUILD too.
25241 * configure: Regenerate.
25243 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25245 * config/i386/i386.c (get_builtin_code_for_version): Separate
25246 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25247 Broadwell from Haswell.
25249 2014-01-27 Steve Ellcey <sellcey@mips.com>
25251 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25252 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25253 * config/mips/mips.c (mips_option_override): Change setting
25255 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25256 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25257 Change from Mask to Var.
25259 2014-01-27 Jeff Law <law@redhat.com>
25261 * ipa-inline.c (inline_small_functions): Fix typo.
25263 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25265 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25266 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25267 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25268 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25269 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25270 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25271 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25272 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25273 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25274 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25275 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25276 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25277 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25278 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25279 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25280 (_mm512_storeu_epi64): Ditto.
25281 (_mm512_cmpge_epi32_mask): Ditto.
25282 (_mm512_cmpge_epu32_mask): Ditto.
25283 (_mm512_cmpge_epi64_mask): Ditto.
25284 (_mm512_cmpge_epu64_mask): Ditto.
25285 (_mm512_cmple_epi32_mask): Ditto.
25286 (_mm512_cmple_epu32_mask): Ditto.
25287 (_mm512_cmple_epi64_mask): Ditto.
25288 (_mm512_cmple_epu64_mask): Ditto.
25289 (_mm512_cmplt_epi32_mask): Ditto.
25290 (_mm512_cmplt_epu32_mask): Ditto.
25291 (_mm512_cmplt_epi64_mask): Ditto.
25292 (_mm512_cmplt_epu64_mask): Ditto.
25293 (_mm512_cmpneq_epi32_mask): Ditto.
25294 (_mm512_cmpneq_epu32_mask): Ditto.
25295 (_mm512_cmpneq_epi64_mask): Ditto.
25296 (_mm512_cmpneq_epu64_mask): Ditto.
25297 (_mm512_expand_pd): Ditto.
25298 (_mm512_expand_ps): Ditto.
25299 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25300 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25301 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25302 * config/i386/i386.c (ix86_builtins): Add
25303 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25304 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25305 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25306 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25307 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25308 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25309 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25310 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25311 IX86_BUILTIN_PMOVUSQW512_MEM.
25312 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25313 __builtin_ia32_pmovsqd512mem_mask,
25314 __builtin_ia32_pmovqd512mem_mask,
25315 __builtin_ia32_pmovusqw512mem_mask,
25316 __builtin_ia32_pmovsqw512mem_mask,
25317 __builtin_ia32_pmovqw512mem_mask,
25318 __builtin_ia32_pmovusdw512mem_mask,
25319 __builtin_ia32_pmovsdw512mem_mask,
25320 __builtin_ia32_pmovdw512mem_mask,
25321 __builtin_ia32_pmovqb512mem_mask,
25322 __builtin_ia32_pmovusqb512mem_mask,
25323 __builtin_ia32_pmovsqb512mem_mask,
25324 __builtin_ia32_pmovusdb512mem_mask,
25325 __builtin_ia32_pmovsdb512mem_mask,
25326 __builtin_ia32_pmovdb512mem_mask.
25327 (bdesc_args): Add __builtin_ia32_expanddf512,
25328 __builtin_ia32_expandsf512.
25329 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25330 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25331 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25332 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25333 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25334 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25335 (avx512f_<code>v8div16qi2_mask_store): This.
25336 (avx512f_expand<mode>): New.
25338 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25340 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25342 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25343 (_mm512_prefetch_i32scatter_pd): Ditto.
25344 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25345 (_mm512_prefetch_i64scatter_pd): Ditto.
25346 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25347 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25348 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25349 (_mm512_prefetch_i32scatter_ps): Ditto.
25350 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25351 (_mm512_prefetch_i64scatter_ps): Ditto.
25352 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25353 * config/i386/i386-builtin-types.def: Define
25354 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25355 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25356 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25357 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25358 IX86_BUILTIN_SCATTERPFQPD.
25359 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25360 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25361 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25362 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25363 __builtin_ia32_scatterpfqps.
25364 (ix86_expand_builtin): Expand new built-ins.
25365 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25366 fix memory access data type.
25367 (*avx512pf_gatherpf<mode>_mask): Ditto.
25368 (*avx512pf_gatherpf<mode>): Ditto.
25369 (avx512pf_scatterpf<mode>): Ditto.
25370 (*avx512pf_scatterpf<mode>_mask): Ditto.
25371 (*avx512pf_scatterpf<mode>): Ditto.
25372 (GATHER_SCATTER_SF_MEM_MODE): New.
25373 (avx512pf_gatherpf<mode>df): Ditto.
25374 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25375 (*avx512pf_scatterpf<mode>df): Ditto.
25377 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25380 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25381 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25384 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25386 * common/config/arm/arm-common.c
25387 (arm_rewrite_mcpu): Handle multiple names.
25389 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25391 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25393 * gimple-builder.h (create_gimple_tmp): Delete.
25395 2014-01-27 Christian Bruel <christian.bruel@st.com>
25397 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25400 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25402 * config/pa/pa.md (call): Generate indirect long calls to non-local
25403 functions when outputing 32-bit code.
25404 (call_value): Likewise except for special call to buggy powf function.
25406 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25407 portable runtime and PIC indirect calls.
25408 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25409 and PIC call sequences. Use ldo instead of blr to set return register
25410 in PIC call sequence.
25412 2014-01-25 Walter Lee <walt@tilera.com>
25414 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25415 avoid clobbering a live register.
25417 2014-01-25 Walter Lee <walt@tilera.com>
25419 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25420 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25421 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25422 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25424 2014-01-25 Walter Lee <walt@tilera.com>
25426 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25427 arguments on even registers.
25428 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25430 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25431 (BIGGEST_ALIGNMENT): Ditto.
25432 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25434 2014-01-25 Walter Lee <walt@tilera.com>
25436 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25437 insns before bundling.
25438 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25440 2014-01-25 Walter Lee <walt@tilera.com>
25442 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25443 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25444 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25446 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25448 * config/mips/constraints.md (kl): Delete.
25449 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25450 define expands, using...
25451 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25452 instructions for MIPS16.
25453 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25454 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25456 2014-01-25 Walter Lee <walt@tilera.com>
25458 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25462 2014-01-25 Walter Lee <walt@tilera.com>
25464 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25465 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25467 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25469 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25472 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25474 * print-rtl.c (in_call_function_usage): New var.
25475 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25476 EXPR_LIST mode as mode and not as reg note name.
25478 PR middle-end/59561
25479 * cfgloopmanip.c (copy_loop_info): If
25480 loop->warned_aggressive_loop_optimizations, make sure
25481 the flag is set in target loop too.
25483 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25485 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25487 * builtins.def: Likewise.
25488 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25489 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25490 * ira.c (ira_setup_eliminable_regset): Likewise.
25491 * omp-low.c (gate_expand_omp): Likewise.
25492 (execute_lower_omp): Likewise.
25493 (diagnose_sb_0): Likewise.
25494 (gate_diagnose_omp_blocks): Likewise.
25495 (simd_clone_clauses_extract): Likewise.
25498 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25500 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25501 correction for little endian...
25502 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25505 2014-01-24 Jeff Law <law@redhat.com>
25507 PR tree-optimization/59919
25508 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25509 for non-returning calls.
25511 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25513 * common/config/aarch64/aarch64-common.c
25514 (aarch64_rewrite_mcpu): Handle multiple names.
25515 * config/aarch64/aarch64.h
25516 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25518 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25520 * input.c (add_file_to_cache_tab): Handle the case where fopen
25523 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25526 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25527 from push operand if code of push isn't PRE_DEC.
25529 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25532 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25533 -mquad-memory-atomic. Update -mquad-memory documentation to say
25534 it is only used for non-atomic loads/stores.
25536 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25537 -mquad-memory or -mquad-memory-atomic switches.
25539 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25540 -mquad-memory-atomic to ISA 2.07 support.
25542 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25543 to separate support of normal quad word memory operations (ldq, stq)
25544 from the atomic quad word memory operations.
25546 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25547 support to separate non-atomic quad word operations from atomic
25548 quad word operations. Disable non-atomic quad word operations in
25549 little endian mode so that we don't have to swap words after the
25550 load and before the store.
25551 (quad_load_store_p): Add comment about atomic quad word support.
25552 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25553 options printed with -mdebug=reg.
25555 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25556 -mquad-memory-atomic as the test for whether we have quad word
25557 atomic instructions.
25558 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25559 or -mp8-vector are used, allow byte/half-word atomic operations.
25561 * config/rs6000/sync.md (load_lockedti): Insure that the address
25562 is a proper indexed or indirect address for the lqarx instruction.
25563 On little endian systems, swap the hi/lo registers after the lqarx
25565 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25566 insure the address is valid for the lqarx instruction.
25567 (store_conditionalti): Insure that the address is a proper indexed
25568 or indirect address for the stqcrx. instruction. On little endian
25569 systems, swap the hi/lo registers before doing the stqcrx.
25571 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25572 insure the address is valid for the stqcrx. instruction.
25574 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25575 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25576 type of quad memory support is available.
25578 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25580 PR regression/59915
25581 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25582 there is a danger of looping.
25584 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25586 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25587 force flag_ira_loop_pressure if set via command line.
25589 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25591 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25592 (ashr_simd): New builtin handling DI mode.
25593 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25594 (aarch64_sshr_simddi): New match pattern.
25595 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25596 (vshrd_n_s64): Likewise.
25597 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25599 2014-01-23 Nick Clifton <nickc@redhat.com>
25601 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25602 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25603 favour of mcu specific scripts.
25604 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25607 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25608 Alex Velenko <Alex.Velenko@arm.com>
25610 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25611 (vaddv_s16): Likewise.
25612 (vaddv_s32): Likewise.
25613 (vaddv_u8): Likewise.
25614 (vaddv_u16): Likewise.
25615 (vaddv_u32): Likewise.
25616 (vaddvq_s8): Likewise.
25617 (vaddvq_s16): Likewise.
25618 (vaddvq_s32): Likewise.
25619 (vaddvq_s64): Likewise.
25620 (vaddvq_u8): Likewise.
25621 (vaddvq_u16): Likewise.
25622 (vaddvq_u32): Likewise.
25623 (vaddvq_u64): Likewise.
25624 (vaddv_f32): Likewise.
25625 (vaddvq_f32): Likewise.
25626 (vaddvq_f64): Likewise.
25627 (vmaxv_f32): Likewise.
25628 (vmaxv_s8): Likewise.
25629 (vmaxv_s16): Likewise.
25630 (vmaxv_s32): Likewise.
25631 (vmaxv_u8): Likewise.
25632 (vmaxv_u16): Likewise.
25633 (vmaxv_u32): Likewise.
25634 (vmaxvq_f32): Likewise.
25635 (vmaxvq_f64): Likewise.
25636 (vmaxvq_s8): Likewise.
25637 (vmaxvq_s16): Likewise.
25638 (vmaxvq_s32): Likewise.
25639 (vmaxvq_u8): Likewise.
25640 (vmaxvq_u16): Likewise.
25641 (vmaxvq_u32): Likewise.
25642 (vmaxnmv_f32): Likewise.
25643 (vmaxnmvq_f32): Likewise.
25644 (vmaxnmvq_f64): Likewise.
25645 (vminv_f32): Likewise.
25646 (vminv_s8): Likewise.
25647 (vminv_s16): Likewise.
25648 (vminv_s32): Likewise.
25649 (vminv_u8): Likewise.
25650 (vminv_u16): Likewise.
25651 (vminv_u32): Likewise.
25652 (vminvq_f32): Likewise.
25653 (vminvq_f64): Likewise.
25654 (vminvq_s8): Likewise.
25655 (vminvq_s16): Likewise.
25656 (vminvq_s32): Likewise.
25657 (vminvq_u8): Likewise.
25658 (vminvq_u16): Likewise.
25659 (vminvq_u32): Likewise.
25660 (vminnmv_f32): Likewise.
25661 (vminnmvq_f32): Likewise.
25662 (vminnmvq_f64): Likewise.
25664 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25666 * config/aarch64/aarch64-simd.md
25667 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25668 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25669 (*aarch64_mul3_elt<mode>): Likewise.
25670 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25671 (*aarch64_mul3_elt_to_64v2df): Likewise.
25672 (*aarch64_mla_elt<mode>): Likewise.
25673 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25674 (*aarch64_mls_elt<mode>): Likewise.
25675 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25676 (*aarch64_fma4_elt<mode>): Likewise.
25677 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25678 (*aarch64_fma4_elt_to_64v2df): Likewise.
25679 (*aarch64_fnma4_elt<mode>): Likewise.
25680 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25681 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25682 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25683 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25684 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25685 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25686 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25687 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25688 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25690 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25692 * config/aarch64/aarch64-simd.md
25693 (aarch64_be_checked_get_lane<mode>): New define_expand.
25694 * config/aarch64/aarch64-simd-builtins.def
25695 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25696 New builtin definition.
25697 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25698 Use new safe be builtin.
25700 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25702 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25704 (aarch64_be_st1<mode>): Likewise.
25705 (aarch_ld1<VALL:mode>): Define_expand modified.
25706 (aarch_st1<VALL:mode>): Likewise.
25707 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25708 (UNSPEC_ST1): Likewise.
25710 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25712 * config/microblaze/microblaze.md: Add trap insn and attribute
25714 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25716 PR preprocessor/58580
25717 * input.h (location_get_source_line): Take an additional line_size
25719 (void diagnostics_file_cache_fini): Declare new function.
25720 * input.c (struct fcache): New type.
25721 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25722 New static constants.
25723 (diagnostic_file_cache_init, total_lines_num)
25724 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25725 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25726 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25727 (get_next_line, read_next_line, goto_next_line, read_line_num):
25728 New static function definitions.
25729 (diagnostic_file_cache_fini): New function.
25730 (location_get_source_line): Take an additional output line_len
25731 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25733 * diagnostic.c (diagnostic_finish): Call
25734 diagnostic_file_cache_fini.
25735 (adjust_line): Take an additional input parameter for the length
25736 of the line, rather than calculating it with strlen.
25737 (diagnostic_show_locus): Adjust the use of
25738 location_get_source_line and adjust_line with respect to their new
25739 signature. While displaying a line now, do not stop at the first
25740 null byte. Rather, display the zero byte as a space and keep
25741 going until we reach the size of the line.
25742 * Makefile.in: Add vec.o to OBJS-libcommon
25744 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25745 Ilya Tocar <ilya.tocar@intel.com>
25747 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25748 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25749 (__builtin_ia32_kmov16): Ditto.
25750 * config/i386/i386.md (UNSPEC_KMOV): New.
25753 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25755 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25756 (_mm512_storeu_si512): Ditto.
25758 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25761 * rtl.h (get_referenced_operands): Declare.
25762 * recog.c (get_referenced_operands): New function.
25763 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25764 operands have been referenced when recording LO_SUM references.
25766 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25768 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25770 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25772 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25773 Enable for generic and recent AMD targets.
25775 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25777 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25778 ARG_SIZE note when adjustment was eliminated.
25780 2014-01-22 Jeff Law <law@redhat.com>
25782 PR tree-optimization/59597
25783 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25784 in file. Accept new argument REGISTERING and use it to modify
25785 dump output appropriately.
25786 (register_jump_thread): Corresponding changes.
25787 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25788 thread paths involving joiner blocks. Add code to dump cancelled
25789 jump threading paths.
25791 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25793 PR rtl-optimization/59477
25794 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25795 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25797 2014-01-22 Tom Tromey <tromey@redhat.com>
25799 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25801 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25803 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25805 PR rtl-optimization/59896
25806 * lra-constraints.c (process_alt_operands): Check unused note for
25807 matched operands of insn with no output reloads.
25809 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25811 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25812 (mips_move_from_gpr_cost): Likewise.
25814 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25816 PR rtl-optimization/59858
25817 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25818 ira_class_hard_regs_num.
25819 (process_alt_operands): Increase reject for dying matched operand.
25821 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25824 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25825 smaller than size, perform several stores or loads and stores
25826 at dst + count - size to store or copy all of size bytes, rather
25827 than just last modesize bytes.
25829 2014-01-20 DJ Delorie <dj@redhat.com>
25831 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25832 that CLOBBERs are REGs before propogating their values.
25834 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25836 PR middle-end/59789
25837 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25838 (cgraph_inline_failed_type): New function.
25839 * cgraph.h (DEFCIFCODE): Add type.
25840 (cgraph_inline_failed_type_t): New enum.
25841 (cgraph_inline_failed_type): New prototype.
25842 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25843 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25844 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25845 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25846 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25847 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25848 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25849 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25850 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25851 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25852 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25853 OPTIMIZATION_MISMATCH.
25854 * tree-inline.c (expand_call_inline): Emit errors during
25855 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25857 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25860 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25861 mode attribute in insn output.
25863 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25865 * output.h (output_constant): Delete.
25866 * varasm.c (output_constant): Make private.
25868 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25870 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25872 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25874 PR middle-end/59860
25875 * tree.h (fold_builtin_strcat): New prototype.
25876 * builtins.c (fold_builtin_strcat): No longer static. Add len
25877 argument, if non-NULL, don't call c_strlen. Optimize
25878 directly into __builtin_memcpy instead of __builtin_strcpy.
25879 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25880 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25882 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25884 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25885 for SImode_address_operand operands, having only a REG argument.
25887 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25889 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25890 loader name using mbig-endian.
25891 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25893 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25895 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25896 (-mtune): Likewise.
25899 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25901 * config/aarch64/aarch64-protos.h
25902 (aarch64_cannot_change_mode_class_ptr): Declare.
25903 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25904 aarch64_cannot_change_mode_class_ptr): New.
25905 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25906 backend hook aarch64_cannot_change_mode_class.
25908 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25910 * common/config/aarch64/aarch64-common.c
25911 (aarch64_handle_option): Don't handle any option order logic here.
25912 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25913 selected_cpu, warn on architecture version mismatch.
25914 (aarch64_override_options): Fix parsing order for option strings.
25916 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25917 Iain Sandoe <iain@codesourcery.com>
25920 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25921 warning. Amend comment to reflect current functionality.
25923 2014-01-20 Richard Biener <rguenther@suse.de>
25925 PR middle-end/59860
25926 * builtins.c (fold_builtin_strcat): Remove case better handled
25927 by tree-ssa-strlen.c.
25929 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25931 * config/aarch64/aarch64.opt
25932 (mcpu, march, mtune): Make case-insensitive.
25934 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25937 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25938 if operands[1] is a REG or ZERO_EXTEND of a REG.
25940 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25942 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25944 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25946 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25947 long non-pic millicode calls.
25949 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25951 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25953 2014-01-19 Kito Cheng <kito@0xlab.org>
25955 * builtins.c (expand_movstr): Check movstr expand done or fail.
25957 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25958 H.J. Lu <hongjiu.lu@intel.com>
25961 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25962 to DImode for zero-extended addresses.
25964 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25966 PR rtl-optimization/57763
25967 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25968 on the new indirect jump_insn and increment LABEL_NUSES (label).
25970 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25974 * config.gcc (x86_archs): New variable.
25975 (x86_64_archs): Likewise.
25976 (x86_cpus): Likewise.
25977 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25978 --with-arch/--with-cpu= options.
25979 Support --with-arch=/--with-cpu={nehalem,westmere,
25980 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25982 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25984 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25985 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25987 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25989 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25991 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25994 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25995 clear cpp_get_options (parse_in)->warn_unused_macros for
25996 ix86_target_macros_internal with cpp_define.
25998 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
26000 * jump.c (delete_related_insns): Keep (use (insn))s.
26001 * reorg.c (redundant_insn): Check for barriers too.
26003 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26005 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
26007 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
26009 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
26010 call to $$dyncall when TARGET_LONG_CALLS is true.
26012 2014-01-17 Jeff Law <law@redhat.com>
26014 * ree.c (combine_set_extension): Temporarily disable test for
26015 changing number of hard registers.
26017 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26019 PR middle-end/58125
26020 * ipa-inline-analysis.c (inline_free_summary):
26021 Do not free summary of aliases.
26023 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26025 PR middle-end/59706
26026 * gimplify.c (gimplify_expr): Use create_tmp_var
26027 instead of create_tmp_var_raw. If cond doesn't have
26028 integral type, don't add the IFN_ANNOTATE builtin at all.
26030 2014-01-17 Martin Jambor <mjambor@suse.cz>
26033 * ipa-cp.c (prev_edge_clone): New variable.
26034 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
26035 Also resize prev_edge_clone vector.
26036 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
26037 (ipcp_edge_removal_hook): New function.
26038 (ipcp_driver): Register ipcp_edge_removal_hook.
26040 2014-01-17 Andrew Pinski <apinski@cavium.com>
26041 Steve Ellcey <sellcey@mips.com>
26044 * config/mips/mips.c (mips_print_operand): Check operand mode instead
26047 2014-01-17 Jeff Law <law@redhat.com>
26049 PR middle-end/57904
26050 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
26051 so that pass_ccp runs first.
26053 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26055 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
26056 (ix86_adjust_cost): Use !TARGET_XXX.
26057 (do_reorder_for_imul): Likewise.
26058 (swap_top_of_ready_list): Likewise.
26059 (ix86_sched_reorder): Likewise.
26061 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26063 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26064 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
26065 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
26066 (intel_memset): New. Duplicate slm_memset.
26067 (intel_cost): New. Duplicate slm_cost.
26068 (m_INTEL): New macro.
26069 (processor_target_table): Add "intel".
26070 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
26071 with PROCESSOR_INTEL for "intel".
26072 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
26073 PROCESSOR_SILVERMONT.
26074 (ix86_issue_rate): Likewise.
26075 (ix86_adjust_cost): Likewise.
26076 (ia32_multipass_dfa_lookahead): Likewise.
26077 (swap_top_of_ready_list): Likewise.
26078 (ix86_sched_reorder): Likewise.
26079 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
26080 instead of TARGET_OPT_AGU.
26081 * config/i386/i386.h (TARGET_INTEL): New.
26082 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
26083 (processor_type): Add PROCESSOR_INTEL.
26084 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
26085 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
26087 2014-01-17 Marek Polacek <polacek@redhat.com>
26090 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
26093 2014-01-17 Richard Biener <rguenther@suse.de>
26095 PR tree-optimization/46590
26096 * opts.c (default_options_table): Add entries for
26097 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
26098 all enabled at -O1 but not for -Og.
26099 * common.opt (fbranch-count-reg): Remove Init(1).
26100 (fmove-loop-invariants): Likewise.
26101 (ftree-pta): Likewise.
26103 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26105 * config/i386/i386.c (ix86_data_alignment): For compatibility with
26106 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
26107 decls to at least the GCC 4.8 used alignments.
26110 * tree-nested.c (convert_nonlocal_reference_stmt,
26111 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
26112 of GIMPLE_BIND stmts, adjust associated decls.
26114 2014-01-17 Richard Biener <rguenther@suse.de>
26116 PR tree-optimization/46590
26117 * vec.h (vec<>::bseach): New member function implementing
26118 binary search according to C89 bsearch.
26119 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
26120 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
26121 bitmap pointer again. Make accesses_in_loop a flat array.
26122 (mem_ref_obstack): New global.
26123 (outermost_indep_loop): Adjust for mem_ref->stored changes.
26124 (mark_ref_stored): Likewise.
26125 (ref_indep_loop_p_2): Likewise.
26126 (set_ref_stored_in_loop): New helper function.
26127 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
26128 (memref_free): Adjust.
26129 (record_mem_ref_loc): Simplify.
26130 (gather_mem_refs_stmt): Adjust.
26131 (sort_locs_in_loop_postorder_cmp): New function.
26132 (analyze_memory_references): Sort accesses_in_loop after
26133 loop postorder number.
26134 (find_ref_loc_in_loop_cmp): New function.
26135 (for_all_locs_in_loop): Find relevant cluster of locs in
26136 accesses_in_loop and iterate without recursion.
26137 (execute_sm): Avoid uninit warning.
26138 (struct ref_always_accessed): Simplify.
26139 (ref_always_accessed::operator ()): Likewise.
26140 (ref_always_accessed_p): Likewise.
26141 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
26142 loop postorder numbers here.
26143 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
26146 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26149 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
26150 on decls for which assemble_alias has been called.
26152 2014-01-17 Nick Clifton <nickc@redhat.com>
26154 * config/msp430/msp430.opt: (mcpu): New option.
26155 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
26156 (msp430_option_override): Parse target_cpu. If the MCU name
26157 matches a generic string, clear target_mcu.
26158 (msp430_attr): Allow numeric interrupt values up to 63.
26159 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26160 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26162 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26164 * config/msp430/msp430.md (popm): Use %J rather than %I.
26165 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26166 (addhi_cy_i): Use immediate_operand for operand 2.
26167 * doc/invoke.texi: Document -mcpu option.
26169 2014-01-17 Richard Biener <rguenther@suse.de>
26171 PR rtl-optimization/38518
26172 * df.h (df_analyze_loop): Declare.
26173 * df-core.c: Include cfgloop.h.
26174 (df_analyze_1): Split out main part of df_analyze.
26175 (df_analyze): Adjust.
26176 (loop_inverted_post_order_compute): New function.
26177 (loop_post_order_compute): Likewise.
26178 (df_analyze_loop): New function avoiding whole-function
26179 postorder computes.
26180 * loop-invariant.c (find_defs): Use df_analyze_loop.
26181 (find_invariants): Adjust.
26182 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26184 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26186 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26187 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26189 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26191 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26192 traversal when removing references.
26194 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26197 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26199 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26201 PR middle-end/56791
26202 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26203 pushing a reload for an autoinc when we had previously reloaded an
26204 inner part of the address.
26206 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26208 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26210 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26211 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26212 when not giving up or versioning for alias only because of
26214 (vect_analyze_data_ref_dependences): Set to true.
26215 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26217 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26218 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26221 PR middle-end/58344
26222 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26225 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26226 operand 0 predicate for gathers, use a new pseudo as subtarget.
26228 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26230 PR middle-end/59609
26231 * lra-constraints.c (process_alt_operands): Add printing debug info.
26232 Check absence of input/output reloads for matched operands too.
26234 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26236 PR rtl-optimization/59835
26237 * ira.c (ira_init_register_move_cost): Increase cost for
26240 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26242 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26244 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26247 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26248 non-register objects. Use gen_(high/low)part more consistently.
26251 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26254 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26255 endian support, remove tests for WORDS_BIG_ENDIAN.
26256 (p8_mfvsrd_3_<mode>): Likewise.
26257 (reload_gpr_from_vsx<mode>): Likewise.
26258 (reload_gpr_from_vsxsf): Likewise.
26259 (p8_mfvsrd_4_disf): Likewise.
26261 2014-01-16 Richard Biener <rguenther@suse.de>
26263 PR rtl-optimization/46590
26264 * lcm.c (compute_antinout_edge): Use postorder iteration.
26265 (compute_laterin): Use inverted postorder iteration.
26267 2014-01-16 Nick Clifton <nickc@redhat.com>
26269 PR middle-end/28865
26270 * varasm.c (output_constant): Return the number of bytes actually
26272 (output_constructor_array_range): Update the field size with the
26273 number of bytes emitted by output_constant.
26274 (output_constructor_regular_field): Likewise. Also do not
26275 complain if the total number of bytes emitted is now greater
26276 than the expected fieldpos.
26277 * output.h (output_constant): Update prototype and descriptive comment.
26279 2014-01-16 Marek Polacek <polacek@redhat.com>
26281 PR middle-end/59827
26282 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26283 it is error_mark_node.
26285 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26287 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26288 VALID_AVX256_REG_OR_OI_MODE.
26290 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26292 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26293 current procedure should be profiled.
26295 2014-01-15 Andrew Pinski <apinski@cavium.com>
26297 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26298 of moving from/to the STACK_REG register class.
26300 2014-01-15 Richard Henderson <rth@redhat.com>
26303 * reginfo.c (global_regs_decl): Globalize.
26304 * rtl.h (global_regs_decl): Declare.
26305 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26306 reserved via global_regs.
26308 2014-01-15 Teresa Johnson <tejohnson@google.com>
26310 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26312 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26314 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26315 and vmulosh rather than call gen_vec_widen_smult_*.
26316 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26317 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26318 (vec_widen_smult_even_v16qi): Likewise.
26319 (vec_widen_umult_even_v8hi): Likewise.
26320 (vec_widen_smult_even_v8hi): Likewise.
26321 (vec_widen_umult_odd_v16qi): Likewise.
26322 (vec_widen_smult_odd_v16qi): Likewise.
26323 (vec_widen_umult_odd_v8hi): Likewise.
26324 (vec_widen_smult_odd_v8hi): Likewise.
26325 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26326 vmuloub rather than call gen_vec_widen_umult_*.
26327 (vec_widen_umult_lo_v16qi): Likewise.
26328 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26329 vmulosb rather than call gen_vec_widen_smult_*.
26330 (vec_widen_smult_lo_v16qi): Likewise.
26331 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26332 rather than call gen_vec_widen_umult_*.
26333 (vec_widen_umult_lo_v8hi): Likewise.
26334 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26335 rather than call gen_vec_widen_smult_*.
26336 (vec_widen_smult_lo_v8hi): Likewise.
26338 2014-01-15 Jeff Law <law@redhat.com>
26340 PR tree-optimization/59747
26341 * ree.c (find_and_remove_re): Properly handle case where a second
26342 eliminated extension requires widening a copy created for elimination
26343 of a prior extension.
26344 (combine_set_extension): Ensure that the number of hard regs needed
26345 for a destination register does not change when we widen it.
26347 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26349 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26350 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26351 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26352 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26353 (avr-*-rtems*): Likewise.
26354 (bfin*-rtems*): Likewise.
26355 (moxie-*-rtems*): Likewise.
26356 (h8300-*-rtems*): Likewise.
26357 (i[34567]86-*-rtems*): Likewise.
26358 (lm32-*-rtems*): Likewise.
26359 (m32r-*-rtems*): Likewise.
26360 (m68k-*-rtems*): Likewise.
26361 (microblaze*-*-rtems*): Likewise.
26362 (mips*-*-rtems*): Likewise.
26363 (powerpc-*-rtems*): Likewise.
26364 (sh-*-rtems*): Likewise.
26365 (sparc-*-rtems*): Likewise.
26366 (sparc64-*-rtems*): Likewise.
26367 (v850-*-rtems*): Likewise.
26368 (m32c-*-rtems*): Likewise.
26370 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26372 PR rtl-optimization/59511
26373 * ira.c (ira_init_register_move_cost): Use memory costs for some
26374 cases of register move cost calculations.
26375 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26376 instead of BB frequency.
26377 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26378 * lra-assigns.c (find_hard_regno_for): Ditto.
26380 2014-01-15 Richard Biener <rguenther@suse.de>
26382 PR tree-optimization/59822
26383 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26384 (vectorizable_load): Use it to hoist defs of uses of invariant
26385 loads out of the loop.
26387 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26388 Kugan Vivekanandarajah <kuganv@linaro.org>
26391 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26394 2014-01-15 Richard Biener <rguenther@suse.de>
26396 PR rtl-optimization/59802
26397 * lcm.c (compute_available): Use inverted postorder to seed
26398 the initial worklist.
26400 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26403 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26404 ADDR_REGS for invalid symrefs in non-PIC code.
26406 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26409 * builtins.c (determine_block_size): Initialize *probable_max_size
26410 even if len_rtx is CONST_INT.
26412 2014-01-14 Andrew Pinski <apinski@cavium.com>
26414 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26415 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26416 (cortexa53_tunings): Likewise.
26417 (aarch64_sched_issue_rate): New function.
26418 (TARGET_SCHED_ISSUE_RATE): Define.
26420 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26422 * ira-costs.c (find_costs_and_classes): Add missed
26423 ira_init_register_move_cost_if_necessary.
26425 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26428 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26430 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26433 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26434 to indicate if type is used for function return value. Warn ABI
26435 change if the vector mode isn't available for function return value.
26436 (ix86_function_arg_advance): Pass false to type_natural_mode.
26437 (ix86_function_arg): Likewise.
26438 (ix86_gimplify_va_arg): Likewise.
26439 (function_arg_32): Don't warn ABI change.
26440 (ix86_function_value): Pass true to type_natural_mode.
26441 (ix86_return_in_memory): Likewise.
26442 (ix86_struct_value_rtx): Removed.
26443 (TARGET_STRUCT_VALUE_RTX): Likewise.
26445 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26447 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26448 converting a conditional jump into a conditional return.
26450 2014-01-14 Richard Biener <rguenther@suse.de>
26452 PR tree-optimization/58921
26453 PR tree-optimization/59006
26454 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26455 hoisting invariant stmts.
26456 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26457 invariant loads on the preheader edge if possible.
26459 2014-01-14 Joey Ye <joey.ye@arm.com>
26461 * doc/plugin.texi (Building GCC plugins): Update to C++.
26463 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26465 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26466 (_mm_rcp28_round_ss): Ditto.
26467 (_mm_rsqrt28_round_sd): Ditto.
26468 (_mm_rsqrt28_round_ss): Ditto.
26469 (_mm_rcp28_sd): Ditto.
26470 (_mm_rcp28_ss): Ditto.
26471 (_mm_rsqrt28_sd): Ditto.
26472 (_mm_rsqrt28_ss): Ditto.
26473 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26474 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26475 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26476 (IX86_BUILTIN_RCP28SD): Ditto.
26477 (IX86_BUILTIN_RCP28SS): Ditto.
26478 (IX86_BUILTIN_RSQRT28SD): Ditto.
26479 (IX86_BUILTIN_RSQRT28SS): Ditto.
26480 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26481 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26482 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26483 (ix86_expand_special_args_builtin): Expand new FTYPE.
26484 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26485 (srcp14<mode>): Make insn unary.
26486 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26487 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26488 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26489 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26490 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26491 Fix rounding: make it SAE only.
26492 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26494 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26496 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26497 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26498 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26499 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26500 (round_saeonly_mask_scalar_operand4): Ditto.
26501 (round_saeonly_mask_scalar_op3): Ditto.
26502 (round_saeonly_mask_scalar_op4): Ditto.
26504 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26506 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26507 Implement -maltivec=be for vec_insert and vec_extract.
26509 2014-01-10 DJ Delorie <dj@redhat.com>
26511 * config/msp430/msp430.md (call_internal): Don't allow memory
26512 references with SP as the base register.
26513 (call_value_internal): Likewise.
26514 * config/msp430/constraints.md (Yc): New. For memory references
26515 that don't use SP as a base register.
26517 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26518 "an integer without a # prefix"
26519 * config/msp430/msp430.md (epilogue_helper): Use it.
26521 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26524 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26525 AVX512F gather builtins.
26526 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26527 on gather decls with INTEGER_TYPE masktype.
26528 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26529 directly into the builtin rather than hoisting it before loop.
26531 PR tree-optimization/59387
26532 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26533 (scev_const_prop): If folded_casts and type has undefined overflow,
26534 use force_gimple_operand instead of force_gimple_operand_gsi and
26535 for each added stmt if it is assign with
26536 arith_code_with_undefined_signed_overflow, call
26537 rewrite_to_defined_overflow.
26538 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26539 gimple-fold.h instead.
26540 (arith_code_with_undefined_signed_overflow,
26541 rewrite_to_defined_overflow): Moved to ...
26542 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26543 rewrite_to_defined_overflow): ... here. No longer static.
26544 Include gimplify-me.h.
26545 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26546 rewrite_to_defined_overflow): New prototypes.
26548 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26550 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26552 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26554 * builtins.c (get_object_alignment_2): Minor tweak.
26555 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26557 2014-01-13 Christian Bruel <christian.bruel@st.com>
26559 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26560 optimized non constant lengths.
26562 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26565 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26566 load as __atomic_load_N if possible.
26568 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26570 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26572 (rs6000_expand_builtin): Adjust call.
26574 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26577 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26578 * config/rs6000/rs6000.c: Include target-globals.h.
26579 (rs6000_set_current_function): Instead of doing target_reinit
26580 unconditionally, use save_target_globals_default_opts and
26581 restore_target_globals.
26583 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26585 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26586 (rs6000_expand_builtin): Handle mffs and mtfsf.
26587 (rs6000_init_builtins): Define mffs and mtfsf.
26588 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26589 (rs6000_mffs): New pattern.
26590 (rs6000_mtfsf): New pattern.
26592 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26594 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26595 Start narrowing with START. Apply candidate-use pair
26596 and check overall cost in narrowing.
26597 (iv_ca_prune): Pass new argument.
26599 2014-01-10 Jeff Law <law@redhat.com>
26601 PR middle-end/59743
26602 * ree.c (combine_reaching_defs): Ensure the defining statement
26603 occurs before the extension when optimizing extensions with
26604 different source and destination hard registers.
26606 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26609 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26610 vtables into the type inheritance graph.
26612 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26614 PR rtl-optimization/59754
26615 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26616 modes in the REGNO != REGNO case.
26618 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26620 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26622 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26624 PR tree-optimization/59745
26625 * tree-predcom.c (tree_predictive_commoning_loop): Call
26626 free_affine_expand_cache if giving up because components is NULL.
26628 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26629 GC in payload of target_globals struct instead of allocating them on
26630 the heap and the larger structs separately using GC.
26631 * target-globals.h (struct target_globals): Make regs, hard_regs,
26632 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26633 of GTY((skip)) and change type to void *.
26634 (reset_target_globals): Cast loads from those fields to corresponding
26637 2014-01-10 Steve Ellcey <sellcey@mips.com>
26640 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26641 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26642 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26644 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26647 * aarch64-modes.def (CC_Zmode): New flags mode.
26648 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26649 represents an equality.
26650 (aarch64_get_condition_code): Handle CC_Zmode.
26651 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26653 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26655 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26656 extraction in good case.
26658 2014-01-10 Richard Biener <rguenther@suse.de>
26660 PR tree-optimization/59374
26661 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26662 checking after SLP discovery. Mark stmts not participating
26663 in any SLP instance properly.
26665 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26667 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26668 when handling a SET rtx.
26670 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26672 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26673 (cortex-a57): Likewise.
26674 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26676 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26678 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26679 non-iwmmxt builtins.
26681 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26685 * ipa-devirt.c record_target_from_binfo): Take as argument
26686 stack of binfos and lookup matching one for virtual inheritance.
26687 (possible_polymorphic_call_targets_1): Update.
26689 2014-01-10 Huacai Chen <chenhc@lemote.com>
26691 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26692 kernel strings for Loongson-2E/2F/3A.
26694 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26696 PR middle-end/59670
26697 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26698 is_gimple_call before calling gimple_call_internal_p.
26700 2014-01-09 Steve Ellcey <sellcey@mips.com>
26702 * Makefile.in (TREE_FLOW_H): Remove.
26703 (TREE_SSA_H): Add file names from tree-flow.h.
26704 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26705 * tree.h: Remove tree-flow.h reference.
26706 * hash-table.h: Remove tree-flow.h reference.
26707 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26708 reference with tree-ssa-loop.h.
26710 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26712 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26713 default element-order behavior for -maltivec.
26714 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26715 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26716 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26717 when targeting big endian, at least for now.
26718 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26720 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26722 PR middle-end/47735
26723 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26724 var satisfies use_register_for_decl, just take into account type
26725 alignment, rather than decl alignment.
26727 PR tree-optimization/59622
26728 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26729 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26730 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26731 Don't devirtualize for inplace at all. For targets.length () == 1,
26732 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26734 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26736 * config/i386/i386.md (cpu): Remove the unused btver1.
26738 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26740 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26742 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26745 * tree-core.h (struct target_globals): New forward declaration.
26746 (struct tree_target_option): Add globals field.
26747 * tree.h (TREE_TARGET_GLOBALS): Define.
26748 (prepare_target_option_nodes_for_pch): New prototype.
26749 * target-globals.h (struct target_globals): Define even if
26750 !SWITCHABLE_TARGET.
26751 * tree.c (prepare_target_option_node_for_pch,
26752 prepare_target_option_nodes_for_pch): New functions.
26753 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26754 * config/i386/i386.c: Include target-globals.h.
26755 (ix86_set_current_function): Instead of doing target_reinit
26756 unconditionally, use save_target_globals_default_opts and
26757 restore_target_globals.
26759 2014-01-09 Richard Biener <rguenther@suse.de>
26761 PR tree-optimization/59715
26762 * tree-cfg.h (split_critical_edges): Declare.
26763 * tree-cfg.c (split_critical_edges): Export.
26764 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26766 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26768 * cfgexpand.c (expand_stack_vars): Optionally disable
26769 asan stack protection.
26770 (expand_used_vars): Likewise.
26771 (partition_stack_vars): Likewise.
26772 * asan.c (asan_emit_stack_protection): Optionally disable
26773 after return stack usage.
26774 (instrument_derefs): Optionally disable memory access instrumentation.
26775 (instrument_builtin_call): Likewise.
26776 (instrument_strlen_call): Likewise.
26777 (asan_protect_global): Optionally disable global variables protection.
26778 * doc/invoke.texi: Added doc for new options.
26779 * params.def: Added new options.
26780 * params.h: Likewise.
26782 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26784 PR rtl-optimization/59724
26785 * ifcvt.c (cond_exec_process_if_block): Don't call
26786 flow_find_head_matching_sequence with 0 longest_match.
26787 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26788 non-active insns if !stop_after.
26789 (try_head_merge_bb): Revert 2014-01-07 changes.
26791 2014-01-08 Jeff Law <law@redhat.com>
26793 * ree.c (get_sub_rtx): New function, extracted from...
26794 (merge_def_and_ext): Here.
26795 (combine_reaching_defs): Use get_sub_rtx.
26797 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26799 * cgraph.h (varpool_variable_node): Do not choke on null node.
26801 2014-01-08 Catherine Moore <clm@codesourcery.com>
26803 * config/mips/mips.md (simple_return): Attempt to use JRC
26805 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26807 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26809 PR rtl-optimization/59137
26810 * reorg.c (steal_delay_list_from_target): Call update_block for
26812 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26814 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26816 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26817 two duplicate entries.
26819 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26822 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26824 * config/mips/mips.c (mips_truncated_op_cost): New function.
26825 (mips_rtx_costs): Adjust test for BADDU.
26826 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26828 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26830 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26831 (*baddu_si): ...this new pattern.
26833 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26836 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26838 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26840 PR middle-end/57748
26841 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26843 (expand_expr, expand_normal): Adjust.
26844 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26845 inner_reference_p. Use inner_reference_p to expand inner references.
26846 (store_expr): Adjust.
26847 * cfgexpand.c (expand_call_stmt): Adjust.
26849 2014-01-08 Rong Xu <xur@google.com>
26851 * gcov-io.c (gcov_var): Move from gcov-io.h.
26852 (gcov_position): Ditto.
26853 (gcov_is_error): Ditto.
26854 (gcov_rewrite): Ditto.
26855 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26856 only part to libgcc/libgcov.h.
26858 2014-01-08 Marek Polacek <polacek@redhat.com>
26860 PR middle-end/59669
26861 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26863 2014-01-08 Marek Polacek <polacek@redhat.com>
26866 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26868 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26870 PR rtl-optimization/59649
26871 * stor-layout.c (get_mode_bounds): For BImode return
26872 0 and STORE_FLAG_VALUE.
26874 2014-01-08 Richard Biener <rguenther@suse.de>
26876 PR middle-end/59630
26877 * gimple.h (is_gimple_builtin_call): Remove.
26878 (gimple_builtin_call_types_compatible_p): New.
26879 (gimple_call_builtin_p): New overload.
26880 * gimple.c (is_gimple_builtin_call): Remove.
26881 (validate_call): Rename to ...
26882 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26883 check return types.
26884 (validate_type): New static function.
26885 (gimple_call_builtin_p): New overload and adjust.
26886 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26887 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26888 (gimple_fold_stmt_to_constant_1): Likewise.
26889 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26891 2014-01-08 Richard Biener <rguenther@suse.de>
26893 PR middle-end/59471
26894 * gimplify.c (gimplify_expr): Gimplify register-register type
26895 VIEW_CONVERT_EXPRs to separate stmts.
26897 2014-01-07 Jeff Law <law@redhat.com>
26899 PR middle-end/53623
26900 * ree.c (combine_set_extension): Handle case where source
26901 and destination registers in an extension insn are different.
26902 (combine_reaching_defs): Allow source and destination registers
26903 in extension to be different under limited circumstances.
26904 (add_removable_extension): Remove restriction that the
26905 source and destination registers in the extension are the same.
26906 (find_and_remove_re): Emit a copy from the extension's
26907 destination to its source after the defining insn if
26908 the source and destination registers are different.
26910 PR middle-end/59285
26911 * ifcvt.c (merge_if_block): If we are merging a block with more than
26912 one successor with a block with no successors, remove any BARRIER
26913 after the second block.
26915 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26917 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26919 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26922 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26923 for 14-bit register offsets when INT14_OK_STRICT is false.
26925 2014-01-07 Roland Stigge <stigge@antcom.de>
26926 Michael Meissner <meissner@linux.vnet.ibm.com>
26929 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26930 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26932 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26934 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26937 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26939 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26940 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26941 rtx is const0_rtx or not.
26943 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26946 * target-globals.c (save_target_globals): Remove this_fn_optab
26948 * toplev.c: Include optabs.h.
26949 (target_reinit): Temporarily restore the global options if another
26950 set of options are in force.
26952 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26954 PR rtl-optimization/58668
26955 * cfgcleanup.c (flow_find_cross_jump): Don't count
26956 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26957 to determine what is counted.
26958 (flow_find_head_matching_sequence): Use active_insn_p to determine
26960 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26962 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26963 determine what is counted.
26965 PR tree-optimization/59643
26966 * tree-predcom.c (split_data_refs_to_components): If one dr is
26967 read and one write, determine_offset fails and the write isn't
26968 in the bad component, just put the read into the bad component.
26970 2014-01-07 Mike Stump <mikestump@comcast.net>
26971 Jakub Jelinek <jakub@redhat.com>
26974 * tree-core.h (struct tree_optimization_option): Change optabs
26975 type from unsigned char * to void *.
26976 * optabs.c (init_tree_optimization_optabs): Adjust
26977 TREE_OPTIMIZATION_OPTABS initialization.
26979 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26982 * config/i386/i386.h (struct machine_function): Add
26983 no_drap_save_restore field.
26984 * config/i386/i386.c (ix86_save_reg): Use
26985 !cfun->machine->no_drap_save_restore instead of
26986 crtl->stack_realign_needed.
26987 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26988 this function clears frame_pointer_needed. Set
26989 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26990 and DRAP reg is needed.
26992 2014-01-06 Marek Polacek <polacek@redhat.com>
26995 * doc/implement-c.texi: Mention that other integer types are
26996 permitted as bit-field types in strictly conforming mode.
26998 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
27000 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
27001 is newly allocated.
27003 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
27005 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
27007 2014-01-06 Martin Jambor <mjambor@suse.cz>
27010 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
27012 * ipa-prop.c (ipa_print_node_params): Fix indentation.
27014 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
27018 * var-tracking.c (add_stores): Preserve the value of the source even if
27019 we don't record the store.
27021 2014-01-06 Terry Guo <terry.guo@arm.com>
27023 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
27025 2014-01-05 Iain Sandoe <iain@codesourcery.com>
27028 * config/darwin.c (darwin_function_section): Adjust return values to
27029 correspond to optimisation changes made in r206070.
27031 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
27033 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
27034 from prefetch_block tune setting.
27035 (nocona_cost): Correct size of prefetch block to 64.
27037 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
27039 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
27040 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
27041 used to save the static chain register in the computation of the offset
27042 from which the FP registers need to be restored.
27044 2014-01-04 Jakub Jelinek <jakub@redhat.com>
27046 PR tree-optimization/59519
27047 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
27048 ICE if get_current_def (current_new_name) is already non-NULL, as long
27049 as it is a phi result of some other phi in *new_exit_bb that has
27052 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
27053 or vmovdqu* for misaligned_operand.
27054 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
27055 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
27056 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
27057 aligned_mem for AVX512F masked aligned load and store builtins and for
27058 non-temporal moves.
27060 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
27062 PR tree-optimization/59651
27063 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
27064 Address range for negative step should be added by TYPE_SIZE_UNIT.
27066 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
27068 * config/m68k/m68k.c (handle_move_double): Handle pushes with
27069 overlapping registers also for registers other than the stack pointer.
27071 2014-01-03 Marek Polacek <polacek@redhat.com>
27074 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
27077 2014-01-03 Jakub Jelinek <jakub@redhat.com>
27080 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
27083 * config/i386/i386.md (MODE_SIZE): New mode attribute.
27084 (push splitter): Use <P:MODE_SIZE> instead of
27085 GET_MODE_SIZE (<P:MODE>mode).
27086 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
27087 (mov -1, reg peephole2): Likewise.
27088 * config/i386/sse.md (*mov<mode>_internal,
27089 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
27090 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
27091 *<code><mode>3, *andnot<mode>3<mask_name>,
27092 <mask_codefor><code><mode>3<mask_name>): Likewise.
27093 * config/i386/subst.md (mask_mode512bit_condition,
27094 sd_mask_mode512bit_condition): Likewise.
27096 2014-01-02 Xinliang David Li <davidxl@google.com>
27098 PR tree-optimization/59303
27099 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
27100 (dump_predicates): Better output format.
27101 (pred_equal_p): New function.
27102 (is_neq_relop_p): Ditto.
27103 (is_neq_zero_form_p): Ditto.
27104 (pred_expr_equal_p): Ditto.
27105 (pred_neg_p): Ditto.
27106 (simplify_pred): Ditto.
27107 (simplify_preds_2): Ditto.
27108 (simplify_preds_3): Ditto.
27109 (simplify_preds_4): Ditto.
27110 (simplify_preds): Ditto.
27111 (push_pred): Ditto.
27112 (push_to_worklist): Ditto.
27113 (get_pred_info_from_cmp): Ditto.
27114 (is_degenerated_phi): Ditto.
27115 (normalize_one_pred_1): Ditto.
27116 (normalize_one_pred): Ditto.
27117 (normalize_one_pred_chain): Ditto.
27118 (normalize_preds): Ditto.
27119 (normalize_cond_1): Remove function.
27120 (normalize_cond): Ditto.
27121 (is_gcond_subset_of): Ditto.
27122 (is_subset_of_any): Ditto.
27123 (is_or_set_subset_of): Ditto.
27124 (is_and_set_subset_of): Ditto.
27125 (is_norm_cond_subset_of): Ditto.
27126 (pred_chain_length_cmp): Ditto.
27127 (convert_control_dep_chain_into_preds): Type change.
27128 (find_predicates): Ditto.
27129 (find_def_preds): Ditto.
27130 (destroy_predicates_vecs): Ditto.
27131 (find_matching_predicates_in_rest_chains): Ditto.
27132 (use_pred_not_overlap_with_undef_path_pred): Ditto.
27133 (is_pred_expr_subset): Ditto.
27134 (is_pred_chain_subset_of): Ditto.
27135 (is_included_in): Ditto.
27136 (is_superset_of): Ditto.
27138 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27140 Update copyright years.
27142 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27144 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
27145 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
27146 config/arc/arc.md, config/arc/arc.opt,
27147 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
27148 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
27149 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
27150 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
27151 config/linux-protos.h, config/linux.c, config/winnt-c.c,
27152 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
27153 vtable-verify.c, vtable-verify.h: Use the standard form for the
27156 2014-01-02 Tobias Burnus <burnus@net-b.de>
27158 * gcc.c (process_command): Update copyright notice dates.
27159 * gcov-dump.c: Ditto.
27161 * doc/cpp.texi: Bump @copying's copyright year.
27162 * doc/cppinternals.texi: Ditto.
27163 * doc/gcc.texi: Ditto.
27164 * doc/gccint.texi: Ditto.
27165 * doc/gcov.texi: Ditto.
27166 * doc/install.texi: Ditto.
27167 * doc/invoke.texi: Ditto.
27169 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27171 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27173 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27175 * config/i386/sse.md (*mov<mode>_internal): Guard
27176 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27178 PR rtl-optimization/59647
27179 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27180 new_rtx into UNSIGNED_FLOAT rtxes.
27182 Copyright (C) 2014 Free Software Foundation, Inc.
27184 Copying and distribution of this file, with or without modification,
27185 are permitted in any medium without royalty provided the copyright
27186 notice and this notice are preserved.