1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3 * varasm.c: Include rtl-iter.h.
4 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
5 Remove the pointer to the cumulative hashval_t and just return
6 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
7 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8 Accumulate the hashval_ts here instead of const_rtx_hash_1.
10 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
13 Give real type of data parameter. Remove return value.
14 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
15 to iterate over subrtxes.
17 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19 * var-tracking.c (use_narrower_mode_test): Turn from being a
20 for_each_rtx callback to being a function that examines each
22 (adjust_mems): Update accordingly.
24 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
26 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
27 callback to being a function that examines each subrtx itself.
28 Remove handling of null rtxes.
29 (add_uses): Update accordingly.
31 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
33 * var-tracking.c: Include rtl-iter.h.
34 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
35 to being a function that examines each subrtx itself.
36 (use_type): Update accordingly.
38 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
40 * store-motion.c: Include rtl-iter.h.
41 (extract_mentioned_regs_1): Delete.
42 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
43 for_each_rtx to iterate over subrtxes.
45 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
47 * sel-sched.c: Include rtl-iter.h
48 (count_occurrences_1): Delete.
49 (count_occurrences_equiv): Turn rtxes into const_rtxes.
50 Use FOR_EACH_SUBRTX rather than for_each_rtx.
52 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
54 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
55 * rtlanal.c (tls_referenced_p_1): Delete.
56 (tls_referenced_p): Take a const_rtx rather than an rtx.
57 Use FOR_EACH_SUBRTX rather than for_each_rtx.
59 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
61 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
62 (for_each_inc_dec): Take an rtx rather than an rtx *.
63 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
64 (cselib_record_sets): Likewise.
65 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
66 (check_for_inc_dec): Likewise.
67 * rtlanal.c (for_each_inc_dec_ops): Delete.
68 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
69 rather than a pointer to the memory address. Replace
70 for_each_inc_dec_ops argument with separate function and data
71 arguments. Abort on non-autoinc addresses.
72 (for_each_inc_dec_find_mem): Delete.
73 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
74 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
76 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
78 * rtl.h (find_all_hard_regs): Declare.
79 * rtlanal.c (find_all_hard_regs): New function.
80 (record_hard_reg_uses_1): Delete.
81 (record_hard_reg_uses): Use find_all_hard_regs.
83 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
85 * rtl.h (replace_label_data): Delete.
86 (replace_label): Take the old label, new label and update-nuses flag
87 as direct arguments. Return void.
88 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
89 * rtlanal.c (replace_label): Update interface as above. Handle
90 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
91 iterator. Use FOR_EACH_SUBRTX_PTR.
93 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
95 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
96 with const_rtx parameters.
97 * varasm.c (get_pool_constant): Likewise.
98 * rtlanal.c (rtx_referenced_p_1): Delete.
99 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
100 Assert that the rtx we're looking for is nonnull. Allow searches
101 for constant pool SYMBOL_REFs.
103 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
105 * reload1.c: Include rtl-iter.h.
106 (note_reg_elim_costly): Turn from being a for_each_rtx callback
107 to being a function that examines each subrtx itself.
108 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
110 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
112 * regcprop.c (cprop_find_used_regs_1): Delete.
113 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
115 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
117 * regcprop.c: Include rtl-iter.h.
118 (kill_value): Take a const_rtx.
119 (kill_autoinc_value): Turn from being a for_each_rtx callback
120 to being a function that examines each subrtx itself.
121 (copyprop_hardreg_forward_1): Update accordingly.
123 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
125 * reg-stack.c: Include rtl-iter.h.
126 (subst_stack_regs_in_debug_insn): Delete.
127 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
128 instead of for_each_rtx.
130 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
132 * lower-subreg.c (find_decomposable_subregs): Turn from being
133 a for_each_rtx callback to being a function that examines each
134 subrtx itself. Remove handling of null rtxes.
135 (decompose_multiword_subregs): Update accordingly.
137 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
139 * lower-subreg.c (adjust_decomposed_uses): Delete.
140 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
141 Remove handling of null rtxes.
143 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
145 * lower-subreg.c: Include rtl-iter.h.
146 (resolve_subreg_use): 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 (resolve_reg_notes, resolve_simple_move): Update accordingly.
150 (decompose_multiword_subregs): Likewise.
152 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
154 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
155 to being a function that examines each subrtx itself.
156 (simplify_using_condition, simplify_using_initial_values): Update
159 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
161 * loop-iv.c: Include rtl-iter.h.
162 (find_single_def_src): New function.
163 (replace_single_def_regs): Turn from being a for_each_rtx callback
164 to being a function that examines each subrtx itself.
165 (replace_in_expr, simplify_using_initial_values): Update accordingly.
167 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
169 * jump.c (eh_returnjump_p_1): Delete.
170 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
171 Remove handling of null rtxes.
173 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
175 * jump.c: Include rtl-iter.h.
176 (returnjump_p_1): Delete.
177 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
178 Remove handling of null rtxes.
180 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
182 * ira.c: Include rtl-iter.h.
183 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
184 to being a function that examines each subrtx itself. Remove
185 handling of null rtxes.
186 (update_equiv_regs): Update call accordingly.
188 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
190 * fwprop.c: Include rtl-iter.h.
191 (varying_mem_p): Turn from being a for_each_rtx callback to being
192 a function that examines each subrtx itself.
193 (propagate_rtx): Update accordingly.
195 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
197 * function.c: Include rtl-iter.h
198 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
199 callback to being a function that examines each subrtx itself.
200 Return the changed flag.
201 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
202 (instantiate_virtual_regs): Update calls accordingly.
204 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
206 * final.c: Include rtl-iter.h.
207 (mark_symbol_ref_as_used): Delete.
208 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
211 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
213 * emit-rtl.c: Include rtl-iter.h.
214 (find_auto_inc): Turn from being a for_each_rtx callback to being
215 a function that examines each subrtx itself. Assume the first operand
216 to an RTX_AUTOINC is the automodified register.
217 (try_split): Update call accordingly.
219 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
221 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
222 Return a bool, inverting the result so that 0/false means "not ok".
223 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
225 (mem_loc_descriptor, add_const_value_attribute)
226 (resolve_addr_in_expr): Update calls accordingly.
228 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
230 * dwarf2out.c: Include rtl-iter.h.
231 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
232 Remove unused data parameter. Return a bool, inverting the result
233 so that 0/false means "not ok".
234 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
235 instead of for_each_rtx.
237 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
239 * dse.c: Include rtl-iter.h.
240 (check_mem_read_rtx): Change void * parameter to real type.
242 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
243 for_each_rtx. Don't handle null rtxes.
245 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
247 * df-problems.c: Include rtl-iter.h.
248 (find_memory): Turn from being a for_each_rtx callback to being
249 a function that examines each subrtx itself. Continue to look for
250 volatile references even after a nonvolatile one has been found.
251 (can_move_insns_across): Update calls accordingly.
253 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
255 * ddg.c (walk_mems_2, walk_mems_1): Delete.
256 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
257 to iterate over subrtxes. Return a bool rather than an int.
259 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
261 * ddg.c: Include rtl-iter.h.
262 (mark_mem_use_1): Rename to...
263 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
264 instead of for_each_rtx.
265 (mem_read_insn_p): Update accordingly.
267 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
269 * cse.c (change_cc_mode_args): Delete.
270 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
271 a function that examines each subrtx itself. Take the fields of
272 change_cc_mode_args as argument and return void.
273 (cse_change_cc_mode_insn): Update calls accordingly.
275 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
277 * cse.c (is_dead_reg): Change argument to const_rtx.
278 (dead_debug_insn_data): Delete.
279 (is_dead_debug_insn): Expand commentary. Turn from being a
280 for_each_rtx callback to being a function that examines
281 each subrtx itself. Take the fields of dead_debug_insn_data
283 (delete_trivially_dead_insns): Update call accordingly.
285 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
287 * cse.c (check_for_label_ref): Move earlier in file. Turn from
288 being a for_each_rtx callback to being a function that examines
290 (cse_extended_basic_block): Update call accordingly.
292 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
294 * cse.c (check_dependence_data): Delete.
295 (check_dependence): Change from being a for_each_rtx callback to being
296 a function that examines all subrtxes itself. Don't handle null rtxes.
297 (invalidate): Update call accordingly.
299 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
301 * cse.c: Include rtl-iter.h.
302 (approx_reg_cost_1): Delete.
303 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
304 Don't handle null rtxes.
306 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
308 * cfgcleanup.c: Include rtl-iter.h.
309 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
310 to being a function that examines each subrtx itself.
311 (thread_jump): Update accordingly.
313 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
315 * combine-stack-adj.c: Include rtl-iter.h.
316 (record_stack_refs_data): Delete.
317 (record_stack_refs): Turn from being a for_each_rtx callback
318 to being a function that examines each subrtx itself.
319 Take a pointer to the reflist. Invert sense of return value
320 so that true means success and false means failure. Don't
322 (combine_stack_adjustments_for_block): Update accordingly.
324 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
326 * combine.c (record_truncated_value): Turn from being a for_each_rtx
327 callback to a function that takes an rtx and returns a bool
328 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
331 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
333 * combine.c: Include rtl-iter.h.
334 (unmentioned_reg_p_1): Delete.
335 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
336 Don't handle null rtxes.
338 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
340 * calls.c: Include rtl-iter.h.
341 (internal_arg_pointer_based_exp_1): Delete.
342 (internal_arg_pointer_based_exp): Take a const_rtx.
343 Use FOR_EACH_SUBRTX to iterate over subrtxes.
345 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
347 * caller-save.c: Include rtl-iter.h.
348 (add_used_regs_1): Delete.
349 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
350 to iterate over subrtxes. Assert that any remaining pseudos
353 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
355 * bt-load.c: Include rtl-iter.h.
356 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
357 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
358 to iterate over subrtxes.
359 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
360 find_btr_use rather than btr_referenced_p.
362 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
364 * alias.c: Include rtl-iter.h.
365 (refs_newer_value_cb): Delete.
366 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
368 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
370 * rtl-iter.h: New file.
371 * rtlanal.c: Include it.
372 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
373 (generic_subrtx_iterator <T>::add_single_to_queue)
374 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
375 (generic_subrtx_iterator <T>::free_array): New functions.
376 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
377 (generic_subrtx_iterator <const_rtx_accessor>)
378 (generic_subrtx_iterator <rtx_var_accessor>
379 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
380 (setup_reg_subrtx_bounds): New function.
381 (init_rtlanal): Call it.
383 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
386 * config/sh/sh.md (ashlsi3): Handle negative shift count for
388 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
390 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
392 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
394 2014-08-27 David Malcolm <dmalcolm@redhat.com>
396 * rtl.h (JUMP_LABEL_AS_INSN): New.
398 2014-08-27 David Malcolm <dmalcolm@redhat.com>
400 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
402 (alloc_EXPR_LIST): Strengthen return type from rtx to
404 (remove_free_EXPR_LIST_node): Likewise for param.
405 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
406 from rtx to rtx_expr_list *.
407 * sched-int.h (struct deps_desc): Strengthen fields
408 "pending_read_mems" and "pending_write_mems" from rtx to
411 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
412 rtx to rtx_expr_list *.
413 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
414 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
416 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
417 from rtx to rtx_expr_list *.
418 * loop-iv.c (simplify_using_initial_values): Strengthen local
419 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
420 "pnote_next" from rtx * to rtx_expr_list **.
421 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
422 param "exprp" from rtx * to rtx_expr_list **.
423 (add_insn_mem_dependence): Strengthen local "mem_list" from
424 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
426 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
427 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
428 param "old_mems_p" from rtx * to rtx_expr_list **.
429 * var-tracking.c (struct adjust_mem_data): Strengthen field
430 "side_effects" from rtx to rtx_expr_list *.
431 (adjust_insn): Replace NULL_RTX with NULL when assigning to
433 (prepare_call_arguments): Likewise.
435 2014-08-27 David Malcolm <dmalcolm@redhat.com>
437 * function.h (struct rtl_data): Strengthen field
438 "x_stack_slot_list" from rtx to rtx_expr_list *.
440 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
441 when assigning to stack_slot_list.
443 2014-08-27 David Malcolm <dmalcolm@redhat.com>
445 * function.h (struct rtl_data): Strengthen field
446 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
447 * rtl.h (remove_node_from_expr_list): Strengthen second param from
448 rtx * to rtx_expr_list **.
450 * cfgbuild.c (make_edges): In loop over
451 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
452 rtx_expr_list *, and use methods of the latter class to clarify
454 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
455 rtx_expr_list *, and use methods of the latter class to clarify
457 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
458 * reload1.c (set_initial_label_offsets): Likewise for local "x".
459 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
460 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
461 to rtx_expr_list *. Use methods of the latter class to clarify
464 2014-08-27 David Malcolm <dmalcolm@redhat.com>
466 * function.h (struct expr_status): Strengthen field
467 "x_forced_labels" from rtx to rtx_expr_list *.
469 * cfgbuild.c (make_edges): Split local "x" into two locals,
470 strengthening one from rtx to rtx_expr_list *, and using methods
472 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
473 loop over forced_labels, introduce strengthen it from rtx to
474 rtx_expr_list *, using methods to clarify the code.
475 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
476 to rtx_expr_list *, using methods of said class to clarify the
478 * reload1.c (set_initial_label_offsets): Split local "x" into two
479 per-loop variables, strengthening the first from rtx to
480 rtx_expr_list * and using methods.
482 2014-08-27 David Malcolm <dmalcolm@redhat.com>
484 * coretypes.h (class rtx_expr_list): Add forward declaration.
485 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
486 * gengenrtl.c (special_rtx): Add EXPR_LIST.
487 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
488 invariant: GET_CODE (X) == EXPR_LIST.
489 (is_a_helper <rtx_expr_list *>::test): New.
490 (rtx_expr_list::next): New.
491 (rtx_expr_list::element): New.
492 (gen_rtx_EXPR_LIST): New.
494 2014-08-27 David Malcolm <dmalcolm@redhat.com>
496 * varasm.c (mark_constants): Convert a GET_CODE check into a
497 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
498 Use methods of rtx_sequence to clarify the code.
500 2014-08-27 David Malcolm <dmalcolm@redhat.com>
502 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
503 local "seq" via a checked cast, and use methods of rtx_sequence
504 to simplify the code.
506 2014-08-27 David Malcolm <dmalcolm@redhat.com>
508 * resource.c (mark_referenced_resources): Strengthen local
509 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
510 using methods of rtx_sequence to clarify the code.
511 (find_dead_or_set_registers): Within the switch statement, convert
512 a GET_CODE check to a dyn_cast, introducing local "seq". Within
513 the JUMP_P handling, introduce another local "seq", adding a
514 checked cast to rtx_sequence *. In both cases, use methods of
515 rtx_sequence to clarify the code.
516 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
517 via a checked cast, and use methods of rtx_sequence to simplify
520 2014-08-27 David Malcolm <dmalcolm@redhat.com>
522 * reorg.c (redundant_insn): In two places in the function, replace
523 a check of GET_CODE with a dyn_cast, introducing local "seq", and
524 usings methods of rtx_sequence to clarify the code.
526 2014-08-27 David Malcolm <dmalcolm@redhat.com>
528 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
529 local "seq" with a checked cast, and use methods of rtx_sequence
532 2014-08-27 David Malcolm <dmalcolm@redhat.com>
534 * function.c (contains): Introduce local "seq" for PATTERN (insn),
535 with a checked cast, in the region for where we know it's a
536 SEQUENCE. Use methods of rtx_sequence.
538 2014-08-27 David Malcolm <dmalcolm@redhat.com>
540 * final.c (get_attr_length_1): Replace GET_CODE check with a
541 dyn_cast, introducing local "seq" and the use of methods of
543 (shorten_branches): Likewise, introducing local "body_seq".
544 Strengthen local "inner_insn" from rtx to rtx_insn *.
545 (reemit_insn_block_notes): Replace GET_CODE check with a
546 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
547 Use methods of rtx_sequence.
548 (final_scan_insn): Likewise, introducing local "seq" for when
549 "body" is known to be a SEQUENCE, using its methods.
551 2014-08-27 David Malcolm <dmalcolm@redhat.com>
553 * except.c (can_throw_external): Strengthen local "seq" from rtx
554 to rtx_sequence *. Use methods of rtx_sequence.
555 (insn_nothrow_p): Likewise.
557 2014-08-27 David Malcolm <dmalcolm@redhat.com>
559 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
560 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
561 Use methods of rtx_sequence.
562 (scan_trace): Likewise for local "pat".
564 2014-08-27 David Malcolm <dmalcolm@redhat.com>
566 * coretypes.h (class rtx_sequence): Add forward declaration.
567 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
568 invariant: GET_CODE (X) == SEQUENCE.
569 (is_a_helper <rtx_sequence *>::test): New.
570 (is_a_helper <const rtx_sequence *>::test): New.
571 (rtx_sequence::len): New.
572 (rtx_sequence::element): New.
573 (rtx_sequence::insn): New.
575 2014-08-27 David Malcolm <dmalcolm@redhat.com>
577 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
579 (alloc_INSN_LIST): Strengthen return type from rtx to
581 (copy_INSN_LIST): Likewise for return type and param.
582 (concat_INSN_LIST): Likewise for both params and return type.
583 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
584 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
585 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
586 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
588 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
589 "implicit_sets", "control_uses", "clobbers" from rtx to
591 (struct deps_desc): Likewise for fields "pending_read_insns",
592 "pending_write_insns", "pending_jump_insns",
593 "last_pending_memory_flush", "last_function_call",
594 "last_function_call_may_noreturn", "sched_before_next_call",
595 "sched_before_next_jump".
596 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
597 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
599 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
600 from rtx to rtx_insn_list *.
601 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
604 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
606 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
608 (queue_insn): Likewise for local "link".
609 (struct haifa_saved_data): Strengthen field "insn_queue" from
610 rtx * to rtx_insn_list **.
611 (save_backtrack_point): Update allocation of save->insn_queue to
612 reflect the strengthening of elements from rtx to rtx_insn_list *.
613 (queue_to_ready): Strengthen local "link" from rtx to
614 rtx_insn_list *; use methods "next" and "insn" when traversing the
616 (early_queue_to_ready): Likewise for locals "link", "next_link",
618 (schedule_block): Update allocation of insn_queue to reflect the
619 strengthening of elements from rtx to rtx_insn_list *. Strengthen
620 local "link" from rtx to rtx_insn_list *, and use methods when
622 (add_to_speculative_block): Strengthen locals "twins" and
623 "next_node" from rtx to rtx_insn_list *, and use methods when
624 working with them. Strengthen local "twin" from rtx to
625 rtx_insn *, eliminating a checked cast.
626 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
627 from rtx to rtx_insn_list *, and use methods when working with
630 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
631 from rtx to rtx_insn_list *, adding a checked cast.
632 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
634 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
635 "newlink" from rtx to rtx_insn_list *. Strengthen local
636 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
637 from rtx to rtx_insn *.
638 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
639 from rtx to rtx_insn_list *. Use methods of the latter class.
640 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
641 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
642 (remove_free_INSN_LIST_node): Strengthen return type and local
643 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
644 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
645 rtx_insn_list *, using "insn" method.
647 * sched-deps.c (add_dependence_list): Strengthen param "list"
648 from rtx to rtx_insn_list *, and use methods when working with it.
649 (add_dependence_list_and_free): Strengthen param "listp" from
650 rtx * to rtx_insn_list **.
651 (remove_from_dependence_list): Strenghten param "listp" from rtx *
652 to rtx_insn_list **, and use methods when working with *listp.
653 (remove_from_both_dependence_lists): Strengthen param "listp" from
654 rtx * to rtx_insn_list **
655 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
656 to rtx_insn_list **. Eliminate local "link", in favor of two new
657 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
659 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
660 by introducing local "cond_deps".
661 (remove_from_deps): Strengthen param "insn" from rtx to
664 * sched-rgn.c (concat_insn_mem_list): Strengthen param
665 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
666 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
667 Use methods of rtx_insn_list.
669 * store-motion.c (struct st_expr): Strengthen fields
670 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
671 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
673 (find_moveable_store): Split out "tmp" into multiple more-tightly
674 scoped locals. Use methods of rtx_insn_list *.
675 (compute_store_table): Strengthen local "tmp" from rtx to
676 rtx_insn *. Use methods of rtx_insn_list *.
678 2014-08-27 David Malcolm <dmalcolm@redhat.com>
680 * coretypes.h (class rtx_insn_list): Add forward declaration.
681 * rtl.h (class rtx_insn_list): New subclass of rtx_def
682 (is_a_helper <rtx_insn_list *>::test): New.
683 (rtx_insn_list::next): New.
684 (rtx_insn_list::insn): New.
685 (gen_rtx_INSN_LIST): Add prototype.
686 * emit-rtl.c (gen_rtx_INSN_LIST): New.
687 * gengenrtl.c (special_rtx): Add INSN_LIST.
689 2014-08-27 David Malcolm <dmalcolm@redhat.com>
691 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
692 "prev" from rtx to rtx_insn *.
694 2014-08-27 David Malcolm <dmalcolm@redhat.com>
696 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
697 functions. Require merely an rtx for now, not an rtx_insn *.
698 (BLOCK_FOR_INSN): Likewise.
699 (INSN_LOCATION): Likewise.
700 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
702 2014-08-27 David Malcolm <dmalcolm@redhat.com>
704 * rtl.h (PATTERN): Convert this macro into a pair of inline
705 functions, for now, requiring const_rtx and rtx.
707 2014-08-27 David Malcolm <dmalcolm@redhat.com>
709 * target.def (unwind_emit): Strengthen param "insn" from rtx to
711 (final_postscan_insn): Likewise.
712 (adjust_cost): Likewise.
713 (adjust_priority): Likewise.
714 (variable_issue): Likewise.
715 (macro_fusion_pair_p): Likewise.
716 (dfa_post_cycle_insn): Likewise.
717 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
718 (first_cycle_multipass_issue): Likewise.
719 (dfa_new_cycle): Likewise.
720 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
721 (speculate_insn): Likewise for param "insn".
722 (gen_spec_check): Likewise for params "insn" and "label".
723 (get_insn_spec_ds): Likewise for param "insn".
724 (get_insn_checked_ds): Likewise.
725 (dispatch_do): Likewise.
726 (dispatch): Likewise.
727 (cannot_copy_insn_p): Likewise.
728 (invalid_within_doloop): Likewise.
729 (legitimate_combined_insn): Likewise.
733 * doc/tm.texi: Automatically updated to reflect changes to
736 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
738 (schedule_block): Likewise.
739 (sched_init): Likewise.
740 (sched_speculate_insn): Strengthen param "insn" from rtx to
742 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
744 * hooks.c (hook_bool_rtx_true): Rename to...
745 hook_bool_rtx_insn_true): ...this, and strengthen first param from
747 (hook_constcharptr_const_rtx_null): Rename to...
748 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
749 first param from const_rtx to const rtx_insn *.
750 (hook_bool_rtx_int_false): Rename to...
751 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
752 param from rtx to rtx_insn *.
753 (hook_void_rtx_int): Rename to...
754 (hook_void_rtx_insn_int): ...this, and strengthen first param from
757 * hooks.h (hook_bool_rtx_true): Rename to...
758 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
760 (hook_bool_rtx_int_false): Rename to...
761 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
762 param from rtx to rtx_insn *.
763 (hook_void_rtx_int): Rename to...
764 (hook_void_rtx_insn_int): ...this, and strengthen first param from
766 (hook_constcharptr_const_rtx_null): Rename to...
767 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
768 first param from const_rtx to const rtx_insn *.
770 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
771 and local "prev" from rtx to rtx_insn *.
773 * sched-int.h (sched_speculate_insn): Strengthen first param from
776 * sel-sched.c (create_speculation_check): Likewise for local "label".
777 * targhooks.c (default_invalid_within_doloop): Strengthen param
778 "insn" from const_rtx to const rtx_insn *.
779 * targhooks.h (default_invalid_within_doloop): Strengthen param
780 from const_rtx to const rtx_insn *.
782 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
783 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
785 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
787 (arc_invalid_within_doloop): Likewise, with const.
789 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
790 (arm_cannot_copy_insn_p): Likewise for param "insn".
791 (arm_unwind_emit): Likewise.
793 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
796 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
797 (c6x_variable_issue): Likewise. Removed now-redundant checked
799 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
801 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
802 Likewise for param "insn".
803 (epiphany_mode_after): Likewise.
804 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
805 params "insn", "dep_insn".
806 (epiphany_mode_needed): Likewise for param "insn".
807 (epiphany_mode_after): Likewise.
809 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
810 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
811 (ix86_avx_u128_mode_needed): Likewise.
812 (ix86_i387_mode_needed): Likewise.
813 (ix86_mode_needed): Likewise.
814 (ix86_avx_u128_mode_after): Likewise.
815 (ix86_mode_after): Likewise.
816 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
817 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
818 (ix86_adjust_priority): Likewise for param "insn".
819 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
820 (do_dispatch): Likewise.
821 (has_dispatch): Likewise.
822 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
824 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
825 reflect renaming of default hook implementation from
826 hook_constcharptr_const_rtx_null to
827 hook_constcharptr_const_rtx_insn_null.
828 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
830 (ia64_variable_issue): Likewise for param "insn".
831 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
832 (ia64_dfa_new_cycle): Likewise.
833 (ia64_get_insn_spec_ds): Likewise.
834 (ia64_get_insn_checked_ds): Likewise.
835 (ia64_speculate_insn): Likewise.
836 (ia64_gen_spec_check): Likewise for params "insn", "label".
837 (ia64_asm_unwind_emit): Likewise for param "insn".
839 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
841 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
843 (m68k_sched_variable_issue): Likewise for param "insn".
845 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
848 * config/microblaze/microblaze.c (microblaze_adjust_cost):
849 Likewise for params "insn", "dep".
851 * config/mips/mips.c (mips_adjust_cost): Likewise.
852 (mips_variable_issue): Likewise for param "insn".
853 (mips_final_postscan_insn): Likewise.
855 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
856 for params "insn", "dep".
858 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
860 (pa_adjust_priority): Likewise for param "insn".
862 * config/picochip/picochip.c (picochip_sched_adjust_cost):
863 Likewise for params "insn", "dep_insn".
865 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
867 (rs6000_variable_issue): Likewise.
868 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
869 (rs6000_debug_adjust_cost): Likewise.
870 (rs6000_adjust_priority): Likewise for param "insn".
871 (rs6000_use_sched_lookahead_guard): Likewise.
872 (get_next_active_insn): Likewise for return type and both params.
873 (redefine_groups): Likewise for params "prev_head_insn", "tail"
874 and locals "insn", "next_insn".
875 (pad_groups): Likewise.
877 * config/s390/s390.c (s390_adjust_priority): Likewise for param
879 (s390_cannot_copy_insn_p): Likewise.
880 (s390_sched_variable_issue): Likewise for third param, eliminating
882 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
883 default hook implementation from hook_constcharptr_const_rtx_null
884 to hook_constcharptr_const_rtx_insn_null.
886 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
887 from rtx to rtx_insn *.
888 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
889 (sh_variable_issue): Likewise for param "insn".
890 (sh_dfa_new_cycle): Likewise.
891 (sh_mode_needed): Likewise.
892 (sh_mode_after): Likewise.
894 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
895 params "insn", "dep_insn".
896 (hypersparc_adjust_cost): Likewise.
897 (sparc_adjust_cost): Likewise.
899 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
900 param, eliminated checked cast.
901 (spu_sched_adjust_cost): Likewise for first and third params.
903 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
904 params "insn" and "dep_insn" from rtx to rtx_insn *.
906 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
908 2014-08-27 David Malcolm <dmalcolm@redhat.com>
910 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
911 (set_is_load_p): ...this, updating to work on a SET pattern rather
913 (is_store_insn): Rename to...
914 (set_is_store_p): ...this, updating to work on a SET pattern
916 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
917 top of function to where it is needed. Rewrite the bogus
918 condition that checks for "insn" and "dep" being PARALLEL to
919 instead use single_set, introducing locals "insn_set" and
920 "dep_set". Given that we only ever returned "cost" for a non-pair
921 of SETs, bail out early if we don't have a pair of SET.
922 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
923 use the new locals "insn_set" and "dep_set", and update calls to
924 is_load_insn and is_store_insn to be calls to set_is_load_p and
927 2014-08-27 Guozhi Wei <carrot@google.com>
930 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
931 amount before using it.
933 2014-08-27 Richard Biener <rguenther@suse.de>
935 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
936 get_maxval_strlen inside a more useful API.
937 (gimple_fold_builtin_with_strlen): Remove and fold into ...
938 (gimple_fold_builtin): ... caller.
939 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
940 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
941 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
942 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
943 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
944 gimple_fold_builtin_sprintf): Adjust to compute maxval
947 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
950 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
952 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
953 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
954 Anna Tikhonova <anna.tikhonova@intel.com>
955 Ilya Tocar <ilya.tocar@intel.com>
956 Andrey Turetskiy <andrey.turetskiy@intel.com>
957 Ilya Verbin <ilya.verbin@intel.com>
958 Kirill Yukhin <kirill.yukhin@intel.com>
959 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
962 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
963 Use `concat_tg_mode' attribute to determine asm register size.
965 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
966 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
967 Anna Tikhonova <anna.tikhonova@intel.com>
968 Ilya Tocar <ilya.tocar@intel.com>
969 Andrey Turetskiy <andrey.turetskiy@intel.com>
970 Ilya Verbin <ilya.verbin@intel.com>
971 Kirill Yukhin <kirill.yukhin@intel.com>
972 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
975 (define_mode_iterator VI48_AVX512VL): New.
976 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
977 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
978 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
979 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
980 with VI1): Change mode iterator.
981 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
982 with VI_ULOADSTORE_BW_AVX512VL): New.
983 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
984 with VI_ULOADSTORE_F_AVX512VL): Ditto.
985 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
986 with VI1): Change mode iterator.
987 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
988 with VI_ULOADSTORE_BW_AVX512VL): New.
989 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
990 with VI_ULOADSTORE_F_AVX512VL): Ditto.
991 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
992 with VI1): Change mode iterator.
993 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
994 with VI_ULOADSTORE_BW_AVX512VL): New.
995 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
996 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
997 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
998 (define_insn "<avx512>_storedqu<mode>_mask" with
1000 (define_insn "<avx512>_storedqu<mode>_mask" with
1001 VI12_AVX512VL): Ditto.
1003 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1004 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1005 Anna Tikhonova <anna.tikhonova@intel.com>
1006 Ilya Tocar <ilya.tocar@intel.com>
1007 Andrey Turetskiy <andrey.turetskiy@intel.com>
1008 Ilya Verbin <ilya.verbin@intel.com>
1009 Kirill Yukhin <kirill.yukhin@intel.com>
1010 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1012 * config/i386/sse.md
1013 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
1014 (define_mode_iterator VI48_AVX512BW): New.
1015 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
1016 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
1017 with VI48_AVX2_48_AVX512F): New.
1018 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
1019 with VI2_AVX512VL): Ditto.
1021 2014-08-27 Richard Biener <rguenther@suse.de>
1024 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
1025 (fold_builtin_3): Do not fold strcat_chk here.
1026 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
1028 (gimple_fold_builtin): Fold strcat_chk here.
1030 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
1032 * dwarf2out.h (dwarf2out_decl): Remove prototype.
1033 * dwarf2out.c (dwarf2out_decl): Make static.
1035 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
1037 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
1039 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1041 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
1042 from rtx to rtx_insn *.
1043 (cselib_lookup_from_insn): Likewise for final param.
1044 (cselib_subst_to_values_from_insn): Likewise.
1045 (cselib_add_permanent_equiv): Likewise.
1047 * cselib.c (cselib_current_insn): Likewise for this variable.
1048 (cselib_subst_to_values_from_insn): Likewise for param "insn".
1049 (cselib_lookup_from_insn): Likewise.
1050 (cselib_add_permanent_equiv): Likewise for param "insn" and local
1051 "save_cselib_current_insn".
1052 (cselib_process_insn): Replace use of NULL_RTX with NULL.
1054 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
1055 from rtx to rtx_insn *.
1057 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1059 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
1062 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1064 * df.h (df_dump_insn_problem_function): Strengthen first param of
1065 this callback from const_rtx to const rtx_insn *.
1066 (struct df_insn_info): Strengthen field "insn" from rtx to
1068 (DF_REF_INSN): Eliminate this function, reinstating the older
1070 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
1071 (df_reg_defined): Likewise.
1072 (df_find_use): Likewise.
1073 (df_reg_used): Likewise.
1074 (df_dump_insn_top): Strengthen param 1 from const_rtx to
1076 (df_dump_insn_bottom): Likewise.
1077 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
1078 (df_insn_debug_regno): Likewise.
1079 (debug_df_insn): Likewise.
1080 (df_rd_simulate_one_insn): Likewise for param 2.
1081 (df_word_lr_simulate_defs): Likewise for param 1.
1082 (df_word_lr_simulate_uses): Likewise.
1083 (df_md_simulate_one_insn): Likewise for param 2.
1084 (df_simulate_find_noclobber_defs): Likewise for param 1.
1085 (df_simulate_find_defs): Likewise.
1086 (df_simulate_defs): Likewise.
1087 (df_simulate_uses): Likewise.
1088 (df_simulate_one_insn_backwards): Likewise for param 2.
1089 (df_simulate_one_insn_forwards): Likewise.
1090 (df_uses_create): Likewise for param 2.
1091 (df_insn_create_insn_record): Likewise for param 1.
1092 (df_insn_delete): Likewise.
1093 (df_insn_rescan): Likewise.
1094 (df_insn_rescan_debug_internal): Likewise.
1095 (df_insn_change_bb): Likewise.
1096 (df_notes_rescan): Likewise.
1097 * rtl.h (remove_death): Likewise for param 2.
1098 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
1100 * sched-int.h (reemit_notes): Strengthen param from rtx to
1102 * valtrack.h (propagate_for_debug): Likewise for param 1.
1104 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
1105 local "tmp_rtx" from const_rtx to const rtx_insn *.
1106 * combine.c (remove_death): Strengthen param "insn" from rtx to
1108 (move_deaths): Likewise for local "where_dead".
1109 * cse.c (delete_trivially_dead_insns): Introduce local
1110 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
1111 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
1113 (df_reg_defined): Likewise.
1114 (df_find_use): Likewise.
1115 (df_reg_used): Likewise.
1116 (df_dump_insn_problem_data): Strengthen param "insn" from
1117 const_rtx to const rtx_insn *.
1118 (df_dump_insn_top): Likewise.
1119 (df_dump_insn_bottom): Likewise.
1120 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
1121 (df_insn_debug_regno): Likewise.
1122 (debug_df_insn): Likewise.
1123 (DF_REF_INSN): Delete.
1124 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
1125 from rtx to rtx_insn *.
1126 (df_chain_insn_top_dump): Strengthen param "insn" from
1127 const_rtx to const rtx_insn *.
1128 (df_chain_insn_bottom_dump): Likewise.
1129 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
1131 (df_word_lr_simulate_uses): Likewise.
1132 (df_print_note): Likewise.
1133 (df_remove_dead_and_unused_notes): Likewise.
1134 (df_set_unused_notes_for_mw): Likewise.
1135 (df_set_dead_notes_for_mw): Likewise.
1136 (df_create_unused_note): Likewise.
1137 (df_simulate_find_defs): Likewise.
1138 (df_simulate_find_uses): Likewise.
1139 (df_simulate_find_noclobber_defs): Likewise.
1140 (df_simulate_defs): Likewise.
1141 (df_simulate_uses): Likewise.
1142 (df_simulate_one_insn_backwards): Likewise.
1143 (df_simulate_one_insn_forwards): Likewise.
1144 (df_md_simulate_one_insn): Likewise.
1145 * df-scan.c (df_uses_create): Likewise.
1146 (df_insn_create_insn_record): Likewise.
1147 (df_insn_delete): Likewise.
1148 (df_insn_rescan): Likewise.
1149 (df_insn_rescan_debug_internal): Likewise.
1150 (df_insn_change_bb): Likewise.
1151 (df_notes_rescan): Likewise.
1152 (df_refs_add_to_chains): Likewise.
1153 (df_insn_refs_verify): Likewise.
1154 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
1155 when invoking df_insn_delete.
1156 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
1157 (set_unique_reg_note): Add checked cast.
1158 * final.c (cleanup_subreg_operands): Likewise.
1159 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
1160 "insn" from rtx to rtx_insn *.
1161 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
1162 "last" from rtx to rtx_insn *.
1163 * ira-emit.c (change_regs_in_insn): New function.
1164 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
1165 Invoke change_regs_in_insn rather than change_regs.
1166 * ira.c (update_equiv_regs): Strengthen locals "insn",
1167 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
1168 for_each_rtx_in_insn rather than for_each_rtx.
1169 * recog.c (confirm_change_group): Add checked casts.
1170 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
1172 (peep2_fill_buffer): Add checked cast.
1173 * rtlanal.c (remove_note): Likewise.
1174 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
1175 locals "next" "end" from rtx to rtx_insn *.
1177 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1179 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
1181 (struct reg_use_data): Likewise for field "insn".
1182 (insn_cost): Likewise for param.
1183 (real_insn_for_shadow): Likewise for return type and param.
1184 (increase_insn_priority): Likewise for param 1.
1185 (debug_dependencies): Likewise for both params.
1187 * haifa-sched.c (insn_delay): Likewise for param "insn".
1188 (real_insn_for_shadow): Likewise for return type and param "insn".
1189 (update_insn_after_change): Likewise for param "insn".
1190 (recompute_todo_spec): Likewise for param "next" and locals "pro",
1192 (insn_cost): Likewise for param "insn".
1193 (increase_insn_priority): Likewise.
1194 (calculate_reg_deaths): Likewise.
1195 (setup_insn_reg_pressure_info): Likewise.
1196 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1197 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1198 (model_recompute): Likewise.
1199 (must_restore_pattern_p): Likewise for param "next".
1200 (model_excess_cost): Likewise for param "insn".
1201 (queue_remove): Likewise.
1202 (adjust_priority): Likewise for param "prev".
1203 (update_register_pressure): Likewise for param "insn".
1204 (setup_insn_max_reg_pressure): Likewise for local "insn".
1205 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1206 (model_add_to_schedule): Likewise.
1207 (model_reset_queue_indices): Likewise for local "insn".
1208 (unschedule_insns_until): Strengthen local "recompute_vec" from
1209 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1210 "con" from rtx to rtx_insn *.
1211 (restore_last_backtrack_point): Likewise for both locals "x". Add
1213 (estimate_insn_tick): Likewise for param "insn".
1214 (commit_schedule): Likewise for params "prev_head", "tail" and
1216 (verify_shadows): Likewise for locals "i1", "i2".
1217 (dump_insn_stream): Likewise for params "head", "tail" and locals
1218 "next_tail", "insn".
1219 (schedule_block): Likewise for locals "insn", "x". Add a checked
1221 (fix_inter_tick): Likewise for params "head", "tail".
1222 (create_check_block_twin): Likewise for local "jump".
1223 (haifa_change_pattern): Likewise for param "insn".
1224 (haifa_speculate_insn): Likewise.
1225 (dump_new_block_header): Likewise for params "head", "tail".
1226 (fix_jump_move): Likewise for param "jump".
1227 (move_block_after_check): Likewise.
1228 (sched_init_insn_luid): Likewise for param "insn".
1229 (sched_init_luids): Likewise for local "insn".
1230 (insn_luid): Likewise for param "insn".
1231 (init_h_i_d): Likewise.
1232 (haifa_init_h_i_d): Likewise for local "insn".
1233 (haifa_init_insn): Likewise for param "insn".
1234 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1236 (create_insn_reg_use): Likewise for param "insn".
1237 (setup_insn_reg_uses): Likewise. Add a checked cast.
1238 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1239 "tail" from rtx to rtx_insn *.
1240 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1241 "insn", "next_tail".
1243 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1245 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1246 from rtx to rtx_insn *.
1247 (model_add_to_schedule): Likewise for locals "start", "end",
1250 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1252 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1254 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1255 "to" and locals "insn", "next", "copy". Remove now-redundant
1258 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1260 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1261 rtx_insn * and param 4 from rtx * to rtx_insn **.
1262 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1263 param 2 from rtx * to rtx_insn **.
1265 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1266 rtx_insn * and final param from rtx * to rtx_insn **.
1268 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1269 from rtx to rtx_insn *.
1270 (try_head_merge_bb): Likewise for both locals named "move_upto".
1271 * df-problems.c (can_move_insns_across): Likewise for params
1272 "from", "to", "across_from", "across_to" and locals "insn",
1273 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1275 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1276 from rtx to rtx_insn *.
1277 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1278 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1279 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1281 (noce_try_abs): Likewise.
1282 (noce_get_condition): Likewise for param "jump". Strengthen param
1283 "earliest" from rtx * to rtx_insn **.
1284 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1286 (find_cond_trap): Likewise.
1287 (dead_or_predicable): Likewise for local "earliest".
1288 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1290 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1291 and local "prev". Strengthen param "earliest" from rtx * to
1293 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1294 Strengthen param "earliest" from rtx * to rtx_insn **.
1296 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1298 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1299 "to" and local "insn" from rtx to rtx_insn *.
1301 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1303 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1304 from rtx to rtx_insn *.
1305 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1306 (code_motion_path_driver): Likewise for local "last_insn".
1307 (simplify_changed_insns): Likewise for local "insn".
1309 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1311 * rtl.h (push_to_sequence): Strengthen param from rtx to
1313 (push_to_sequence2): Likewise for both params.
1314 (delete_insns_since): Likewise for param.
1315 (reorder_insns_nobb): Likewise for all three params.
1316 (set_new_first_and_last_insn): Likewise for both params.
1318 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1319 rtx_insn *. Remove now-redundant cast.
1320 (set_last_insn): Likewise.
1322 * builtins.c (expand_builtin_return): Strengthen local
1323 "call_fusage" from rtx to rtx_insn *.
1324 * cfgrtl.c (create_basic_block_structure): Likewise for local
1326 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1327 "first", "last" and local "insn".
1328 (delete_insns_since): Likewise for param "from".
1329 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1331 (push_to_sequence): Likewise for param "first" and local "last".
1332 (push_to_sequence2): Likewise for params "first" and "last".
1333 * lra.c (emit_add3_insn): Likewise for local "last".
1334 (lra_emit_add): Likewise.
1335 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1337 (process_address_1): Likewise for locals "insn", last".
1338 * modulo-sched.c (ps_first_note): Likewise for return type.
1339 * optabs.c (expand_binop_directly): Likewise for param "last".
1341 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1343 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1345 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1347 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1349 * function.h (struct sequence_stack): Strengthen fields "first"
1350 and "last" from rtx to rtx_insn *.
1351 (struct emit_status): Likewise for fields "x_first_insn" and
1354 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1355 (set_first_insn): Add checked cast.
1356 (get_last_insn): Remove now-redundant checked cast.
1357 (set_last_insn): Add checked cast.
1359 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1360 "saved_first" and "saved_last" from rtx to rtx_insn *.
1362 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1364 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1365 (unlink_insn_chain): Strengthen both params from rtx to
1368 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1370 (unlink_insn_chain): Likewise for params "first" and "last".
1371 Remove now-redundant checked cast.
1372 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1373 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1375 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1377 (add_insn): Likewise for param "insn" and local "prev".
1378 (add_insn_after_nobb): Likewise for both params and local "next".
1379 (add_insn_before_nobb): Likewise for both params and local "prev".
1380 (add_insn_after): Rename param "after" to "uncast_after",
1381 introducing local "after" with another checked cast.
1382 (add_insn_before): Rename params "insn" and "before", giving them
1383 "uncast_" prefixes, adding the old names back using checked casts.
1384 (emit_note_after): Likewise for param "after".
1385 (emit_note_before): Likewise for param "before".
1386 (emit_label): Add a checked cast.
1388 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1390 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1391 "insn" from rtx to rtx_insn *.
1393 * cselib.c (cselib_record_sets_hook): Likewise.
1395 * var-tracking.c (add_with_sets): Likewise, renaming back from
1396 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1399 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1401 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1402 and "header_" from rtx to rtx_insn *.
1403 (struct basic_block_d): Likewise for field "head_" within "x"
1404 field of union basic_block_il_dependent.
1405 (BB_HEAD): Drop function...
1406 (SET_BB_HEAD): ...and this function in favor of...
1407 (BB_HEAD): ...reinstate macro.
1408 (BB_END): Drop function...
1409 (SET_BB_END): ...and this function in favor of...
1410 (BB_END): ...reinstate macro.
1411 (BB_HEADER): Drop function...
1412 (SET_BB_HEADER): ...and this function in favor of...
1413 (BB_HEADER): ...reinstate macro.
1415 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1416 (fix_crossing_unconditional_branches): Likewise.
1417 * caller-save.c (save_call_clobbered_regs): Likewise.
1418 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1419 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1420 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1421 (merge_blocks_move_successor_nojumps): Likewise.
1422 (outgoing_edges_match): Update use of for_each_rtx to
1423 for_each_rtx_in_insn.
1424 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1425 (expand_gimple_cond): Likewise.
1426 (expand_gimple_tailcall): Likewise.
1427 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1429 (construct_exit_block): Drop use of SET_BB_END.
1430 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1432 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1433 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1434 SET_BB_HEAD and SET_BB_END.
1435 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1437 (rtl_delete_block): Drop use of SET_BB_HEAD.
1438 (rtl_split_block): Drop use of SET_BB_END.
1439 (emit_nop_for_unique_locus_between): Likewise.
1440 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1441 (block_label): Drop use of SET_BB_HEAD.
1442 (fixup_abnormal_edges): Drop use of SET_BB_END.
1443 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1444 (relink_block_chain): Likewise.
1445 (fixup_reorder_chain): Drop use of SET_BB_END.
1446 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1447 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1448 rtx_insn **. Drop use of SET_BB_HEADER.
1449 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1451 (BB_HEAD): Delete this function.
1452 (SET_BB_HEAD): Likewise.
1454 (SET_BB_END): Likewise.
1455 (BB_HEADER): Likewise.
1456 (SET_BB_HEADER): Likewise.
1457 * emit-rtl.c (add_insn_after): Rename param "insn" to
1458 "uncast_insn", adding a new local "insn" and a checked cast to
1459 rtx_insn *. Drop use of SET_BB_END.
1460 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1461 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1462 (reorder_insns): Drop use of SET_BB_END.
1463 (emit_insn_after_1): Strengthen param "first" and locals "last",
1464 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1465 (emit_pattern_after_noloc): Add checked cast.
1466 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1467 (restore_other_notes): Likewise.
1468 (move_insn): Likewise.
1469 (sched_extend_bb): Likewise.
1470 (fix_jump_move): Likewise.
1471 * ifcvt.c (noce_process_if_block): Likewise.
1472 (dead_or_predicable): Likewise.
1473 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1474 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1475 * sel-sched-ir.c (sel_move_insn): Likewise.
1476 * sel-sched.c (move_nop_to_previous_block): Likewise.
1478 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1480 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1482 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1484 * basic-block.h (create_basic_block_structure): Strengthen params
1485 1 "head" and 2 "end" from rtx to rtx_insn *.
1486 * cfgrtl.c (create_basic_block_structure): Likewise.
1487 (rtl_create_basic_block): Update casts from void * to rtx to
1488 rtx_insn *, so that we can pass them as rtx_insn * to
1489 create_basic_block_structure.
1490 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1492 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1494 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1496 (check_for_inc_dec): Strengthen param "insn" from rtx to
1499 * cselib.h (cselib_process_insn): Likewise.
1501 * cselib.c (cselib_record_sets): Likewise.
1502 (cselib_process_insn): Likewise.
1504 * dse.c (struct insn_info): Likewise for field "insn".
1505 (check_for_inc_dec_1): Likewise for local "insn".
1506 (check_for_inc_dec): Likewise for param "insn".
1507 (scan_insn): Likewise.
1508 (dse_step1): Likewise for local "insn".
1510 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1511 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1513 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1515 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1516 from rtx to rtx_insn *.
1517 (DEP_PRO): Delete this function and...
1518 (SET_DEP_PRO): ...this function in favor of...
1519 (DEP_PRO): ...reinstate this macro.
1520 (DEP_CON): Delete this function and...
1521 (SET_DEP_CON): ...this function in favor of...
1522 (DEP_CON): ...reinstate this old macro.
1523 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1524 (init_dep): Likewise.
1525 (set_priorities): Likewise for both params.
1526 (sd_copy_back_deps): Likewise for params 1 and 2.
1528 * haifa-sched.c (priority): Likewise for param "insn" and local
1530 (set_priorities): Likewise for params "head" and "tail" and local
1532 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1534 (add_to_speculative_block): Add a checked cast.
1535 (create_check_block_twin): Drop use of SET_DEP_CON.
1536 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1539 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1540 Drop use of SET_DEP_PRO
1541 (init_dep): Strengthen params "pro" and "con" from rtx to
1543 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1547 (SET_DEP_PRO): Delete.
1548 (SET_DEP_CON): Delete.
1550 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1552 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1553 from rtx to rtx_insn *.
1554 (VINSN_INSN_RTX): Eliminate rvalue function and...
1555 (SET_VINSN_INSN): ...lvalue function in favor of...
1556 (VINSN_INSN_RTX): reinstate this old macro.
1558 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1559 in favor of VINSN_INSN_RTX.
1560 (VINSN_INSN_RTX): Delete this function.
1561 (SET_VINSN_INSN_RTX): Likewise.
1563 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1565 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1566 (BND_TO): Delete this function and...
1567 (SET_BND_TO): ...this functions in favor of...
1568 (BND_TO): ...reinstating this macro.
1569 (struct _fence): Strengthen field "executing_insns" from
1570 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1571 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1572 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1573 and param "insn" from rtx to insn_t.
1574 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1577 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1579 (rtx_vec_t): Likewise.
1580 (struct sched_deps_info_def): Strengthen param of "start_insn"
1581 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1582 "note_mem_dep" callback and first param of "note_dep" callback.
1584 * haifa-sched.c (add_to_speculative_block): Strengthen param
1585 "insn" from rtx to rtx_insn *.
1586 (clear_priorities): Likewise.
1587 (calc_priorities): Likewise for local "insn".
1589 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1590 Remove redundant checked cast.
1591 (haifa_note_mem_dep): Likewise for param "pending_insn".
1592 (haifa_note_dep): Likewise for param "elem".
1593 (note_mem_dep): Likewise for param "e".
1594 (sched_analyze_1): Add checked casts.
1595 (sched_analyze_2): Likewise.
1597 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1598 from rtx to rtx_insn *.
1599 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1600 from vec<rtx> * to vec<rtx_insn *> *.
1602 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1604 (flist_add): Strengthen param "executing_insns" from
1605 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1606 (advance_deps_context): Remove now-redundant checked cast.
1607 (init_fences): Replace uses of NULL_RTX with NULL.
1608 (merge_fences): Strengthen params "last_scheduled_insn" and
1609 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1610 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1611 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1612 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1613 an instruction, rather than doing double-duty as a pattern.
1614 (return_nop_to_pool): Update for change of insn_t.
1615 (deps_init_id): Remove now-redundant checked cast.
1616 (struct sched_scan_info_def): Strengthen param of "init_insn"
1617 callback from rtx to insn_t.
1618 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1619 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1621 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1622 "end" from rtx to rtx_insn *.
1623 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1624 (rtx insn_rtx, bool force_unique_p)
1625 (BND_TO): Delete function.
1626 (SET_BND_TO): Delete function.
1628 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1630 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1631 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1633 (undo_transformations): Likewise for param "insn".
1634 (update_liveness_on_insn): Likewise.
1635 (compute_live_below_insn): Likewise for param "insn" and local
1637 (update_data_sets): Likewise for param "insn".
1638 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1639 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1640 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1642 (move_cond_jump): Likewise for param "insn".
1643 (move_cond_jump): Drop use of SET_BND_TO.
1644 (compute_av_set_on_boundaries): Likewise.
1645 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1646 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1647 from rtx to rtx_insn *.
1648 (maybe_emit_renaming_copy): Likewise for param "insn".
1649 (maybe_emit_speculative_check): Likewise.
1650 (handle_emitting_transformations): Likewise.
1651 (remove_insn_from_stream): Likewise.
1652 (code_motion_process_successors): Strengthen local "succ" from rtx
1655 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1657 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1658 ilist_t, not _xlist_t;
1659 (ILIST_INSN): Define in terms of new union field "insn".
1660 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1662 (struct _list_node): Add new field "insn" to the union, of type
1664 (ilist_add): Replace macro with an inline function, requiring an
1666 (ilist_remove): Define this macro directly in terms of
1667 _list_remove, rather than indirectly via _xlist_remove.
1668 (ilist_clear): Likewise, in terms of _list_clear rather than
1670 (ilist_is_in_p): Replace macro with an inline function, requiring
1672 (_list_iter_cond_insn): New function.
1673 (ilist_iter_remove): Define this macro directly in terms of
1674 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1675 (ilist_iterator): Define directly in terms of _list_iterator
1676 rather than indirectly through _xlist_iterator.
1677 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1678 than in terms of _FOR_EACH_X.
1679 (FOR_EACH_INSN_1): Likewise.
1681 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1685 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1686 DECL_HARD_REGISTER and return for invalid register specifications.
1687 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1688 DECL_HARD_REGISTER, call expand_one_error_var.
1689 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1690 CC_REGNUM with non-MODE_CC modes.
1691 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1693 2014-08-26 Marek Polacek <polacek@redhat.com>
1696 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1698 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1700 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1701 qi cost; add di cost.
1702 (cortexa57_addrcost_table): Likewise.
1704 2014-08-26 Marek Polacek <polacek@redhat.com>
1707 * expr.c (is_aligning_offset): Remove logical not.
1709 2014-08-26 Marek Polacek <polacek@redhat.com>
1712 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1713 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1715 2014-08-26 Richard Biener <rguenther@suse.de>
1717 PR tree-optimization/62175
1718 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1719 expand possibly trapping operations.
1721 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1723 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1724 "insn" from rtx to rtx_insn *.
1725 (permute_load): Likewise for param "insn".
1726 (permute_store): Likewise.
1727 (handle_special_swappables): Likewise for local "insn".
1728 (replace_swap_with_copy): Likewise for locals "insn" and
1730 (rs6000_analyze_swaps): Likewise for local "insn".
1732 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1734 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1737 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1739 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1740 "note_list" from rtx to rtx_insn *.
1741 (BB_NOTE_LIST): Replace this function and...
1742 (SET_BB_NOTE_LIST): ...this function with...
1743 (BB_NOTE_LIST): ...the former macro implementation.
1745 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1746 local "from_start" from rtx to rtx_insn *. Strengthen param
1747 "to_endp" from rtx * to rtx_insn **.
1749 * haifa-sched.c (concat_note_lists): Likewise.
1750 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1752 (sel_restore_notes): Likewise.
1753 (move_bb_info): Likewise.
1754 (BB_NOTE_LIST): Delete this function.
1755 (SET_BB_NOTE_LIST): Delete this function.
1756 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1757 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1759 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1761 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1762 from rtx * to rtx_insn **.
1763 (reorder2): Likewise.
1764 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1765 from rtx to rtx_insn *.
1767 * doc/tm.texi: Update mechanically for above change to target.def.
1769 * sched-int.h (note_list): Strengthen this variable from rtx to
1771 (remove_notes): Likewise for both params.
1772 (restore_other_notes): Likewise for return type and first param.
1773 (struct ready_list): Strengthen field "vec" from rtx * to
1775 (struct dep_replacement): Strenghten field "insn" from rtx to
1777 (struct deps_desc): Likewise for fields "last_debug_insn",
1779 (struct haifa_sched_info): Likewise for callback field
1780 "can_schedule_ready_p"'s param, for first param of "new_ready"
1781 callback field, for both params of "rank" callback field, for
1782 first field of "print_insn" callback field (with a const), for
1783 both params of "contributes_to_priority" callback, for param
1784 of "insn_finishes_block_p" callback, for fields "prev_head",
1785 "next_tail", "head", "tail", for first param of "add_remove_insn"
1786 callback, for first param of "begin_schedule_ready" callback, for
1787 both params of "begin_move_insn" callback, and for second param
1788 of "advance_target_bb" callback.
1789 (add_dependence): Likewise for params 1 and 2.
1790 (sched_analyze): Likewise for params 2 and 3.
1791 (deps_analyze_insn): Likewise for param 2.
1792 (ready_element): Likewise for return type.
1793 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1794 (try_ready): Strenghten param from rtx to rtx_insn *.
1795 (sched_emit_insn): Likewise for return type.
1796 (record_delay_slot_pair): Likewise for params 1 and 2.
1797 (add_delay_dependencies): Likewise for param.
1798 (contributes_to_priority): Likewise for both params.
1799 (find_modifiable_mems): Likewise.
1801 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1802 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1803 "first_older_only_insn" from rtx to rtx_insn *.
1804 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1807 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1808 "last_scheduled_iter0" from rtx to rtx_insn *.
1809 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1810 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1811 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1812 "insn" from rtx to rtx_insn *.
1813 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1815 (c6x_sched_reorder2): Strengthen param "ready" and locals
1816 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1817 "insn" from rtx to rtx_insn *.
1818 (c6x_variable_issue): Add a checked cast when assigning from insn
1819 to ss.last_scheduled_iter0.
1820 (split_delayed_branch): Strengthen param "insn" and local "i1"
1821 from rtx to rtx_insn *.
1822 (split_delayed_nonbranch): Likewise.
1823 (undo_split_delayed_nonbranch): Likewise for local "insn".
1824 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1825 "entry_after", "end_packet", "head_insn", "tail_insn",
1826 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1827 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1828 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1829 but add a checked cast on loop->start_label. Consolidate calls to
1830 avoid assigning result of gen_spkernel to "insn", now an
1833 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1834 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1836 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1837 rtx_insn **. Strengthen locals "top", "next" from rtx to
1839 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1840 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1841 (add_parameter_dependencies): Strengthen params "call", "head" and
1842 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1843 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1844 (add_dependee_for_func_arg): Likewise for param "arg" and local
1846 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1847 "tail" and locals "insn", "first_arg".
1849 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1850 for params "head", "tail" and locals "insn", "next", "next_tail".
1851 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1852 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1853 "insn", "lowest", "highest" from rtx to rtx_insn *.
1854 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1856 (ia64_sched_reorder2): Likewise.
1858 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1859 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1860 from rtx * to rtx_insn **.
1861 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1863 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1865 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1866 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1869 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1870 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1872 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1873 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1874 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1876 (vr4130_reorder): Likewise.
1877 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1879 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1881 (mips_sched_reorder): Likewise.
1882 (mips_sched_reorder2): Likewise.
1884 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1886 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1887 Strengthen local "tmp" from rtx to rtx_insn *.
1888 (rs6000_sched_reorder2): Likewise.
1890 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1891 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1892 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1893 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1895 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1896 "tmp2" from rtx to rtx_insn *.
1897 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1898 Strengthen local "insn" from rtx to rtx_insn *.
1899 (ready_reorder): Strengthen param "ready" from rtx * to
1900 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1901 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1902 (sh_reorder2): Likewise.
1904 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1905 local "insn" from rtx to rtx_insn *.
1907 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1909 (scheduled_insns): Strengthen this variable from vec<rtx> to
1911 (set_modulo_params): Likewise for locals "i1", "i2".
1912 (record_delay_slot_pair): Likewise for params "i1", "i2".
1913 (add_delay_dependencies): Likewise for param "insn".
1914 (cond_clobbered_p): Likewise.
1915 (recompute_todo_spec): Likewise for local "prev".
1916 (last_scheduled_insn): Likewise for this variable.
1917 (nonscheduled_insns_begin): Likewise.
1918 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1920 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1922 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1923 Strengthen local "insn" from rtx to rtx_insn *.
1924 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1925 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1926 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1927 (ready_remove_first): Likewise for return type and local "t".
1928 (ready_element): Likewise for return type.
1929 (ready_remove): Likewise for return type and local "t".
1930 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1931 (check_clobbered_conditions): Strengthen local "x" from rtx to
1932 rtx_insn *, adding a checked cast.
1933 (schedule_insn): Likewise for param "insn".
1934 (remove_notes): Likewise for params "head", "tail" and locals
1935 "next_tail", "insn", "next".
1936 (struct haifa_saved_data): Likewise for fields
1937 "last_scheduled_insn", "nonscheduled_insns_begin".
1938 (save_backtrack_point): Update for change to field "vec" of
1940 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1942 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1943 from rtx to rtx_insn *
1944 (resolve_dependencies): Strengthen param "insn" from rtx to
1946 (restore_other_notes): Likewise for return type, for param "head"
1947 and local "note_head".
1948 (undo_all_replacements): Likewise for local "insn".
1949 (first_nonscheduled_insn): Likewise for return type and local "insn".
1950 (queue_to_ready): Likewise for local "insn", adding checked casts.
1951 (early_queue_to_ready): Likewise for local "insn".
1952 (debug_ready_list_1): Strengthen local "p" from rtx * to
1954 (move_insn): Strengthen param "insn" and local "note" from rtx to
1956 (insn_finishes_cycle_p): Likewise for param "insn".
1957 (max_issue): Likewise for local "insn".
1958 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1960 (commit_schedule): Strengthen param "prev_head" and local "insn"
1961 from rtx to rtx_insn *
1962 (prune_ready_list): Likewise for local "insn".
1963 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1964 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1965 (set_priorities): Likewise for local "prev_head".
1966 (try_ready): Likewise for param "next".
1967 (fix_tick_ready): Likewise.
1968 (change_queue_index): Likewise.
1969 (sched_extend_ready_list): Update for change to field "vec" of
1971 (generate_recovery_code): Strengthen param "insn" from rtx to
1973 (begin_speculative_block): Likewise.
1974 (create_check_block_twin): Likewise for param "insn" and locals
1975 "label", "check", "twin". Introduce local "check_pat" to avoid
1976 "check" being used as a plain rtx before being used as an insn.
1977 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1978 extracting elements from ready_list.
1979 (sched_remove_insn): Strengthen param "insn" from rtx to
1981 (sched_emit_insn): Likewise for return type.
1982 (ready_remove_first_dispatch): Likewise for return type and local
1985 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1987 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1990 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1991 from rtx to rtx_insn *.
1992 (add_dependence_list): Likewise for param "insn". Add a checked
1994 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1995 to rtx_insn *. Strengthen param "list_p" from rtx * to
1997 (chain_to_prev_insn): Strengthen param "insn" and locals
1998 "prec_nonnote", "i" from rtx to rtx_insn *.
1999 (flush_pending_lists): Likewise for param "insn".
2000 (cur_insn): Likewise for this variable.
2001 (haifa_start_insn): Add a checked cast.
2002 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
2003 (sched_analyze_reg): Likewise for param "insn".
2004 (sched_analyze_1): Likewise.
2005 (sched_analyze_2): Likewise. Add checked casts.
2006 (sched_analyze_insn): Likewise. Also for local "prev".
2007 (deps_analyze_insn): Likewise for param "insn".
2008 (sched_analyze): Likewise for params "head", "tail" and local "insn".
2009 (add_dependence_1): Likewise for params "insn", "elem".
2010 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
2011 (parse_add_or_inc): Likewise for param "insn".
2012 (find_inc): Likewise for local "inc_cand".
2013 (find_modifiable_mems): Likewise for params "head", "tail" and
2014 locals "insn", "next_tail".
2016 * sched-ebb.c (init_ready_list): Likewise for local "insn".
2017 (begin_schedule_ready): Likewise for param "insn".
2018 (begin_move_insn): Likewise for params "insn" and "last".
2019 (ebb_print_insn): Strengthen param "insn" from const_rtx to
2021 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
2022 (ebb_contributes_to_priority): Likewise for params "next", "insn".
2023 (ebb_add_remove_insn): Likewise for param "insn".
2024 (advance_target_bb): Likewise.
2026 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
2028 (check_live): Likewise for param "insn".
2029 (init_ready_list): Likewise for local "insn".
2030 (can_schedule_ready_p): Likewise for param "insn".
2031 (begin_schedule_ready): Likewise.
2032 (new_ready): Likewise for param "next".
2033 (rgn_print_insn): Likewise for param "insn".
2034 (rgn_rank): Likewise for params "insn1", "insn2".
2035 (contributes_to_priority): Likewise for params "next", "insn".
2036 (rgn_insn_finishes_block_p): Likewise for param "insn".
2037 (add_branch_dependences): Likewise for params "head", "tail" and
2038 locals "insn", "last".
2039 (rgn_add_remove_insn): Likewise for param "insn".
2040 (advance_target_bb): Likewise.
2042 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
2043 const_rtx to const rtx_insn *.
2045 * sel-sched-dump.h (sel_print_insn): Likewise.
2047 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
2048 (deps_init_id): Likewise.
2050 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
2051 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
2054 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2056 * output.h (final_start_function): Strengthen param 1 from rtx to
2059 * final.c (final_start_function): Likewise, renaming back from
2060 "uncast_first" to "first", and dropping the checked cast from rtx
2063 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2065 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
2066 * final.c (final): Likewise. Rename param back from
2067 "uncast_first" to "first" and eliminate the checked cast from rtx
2070 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2072 * output.h (shorten_branches): Strengthen param from rtx to
2075 * final.c (shorten_branches): Likewise, renaming param back from
2076 "uncast_first" to "first", and dropping the checked cast from rtx
2079 * genattr.c (gen_attr): Likewise when writing out the prototype of
2082 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2084 * sched-int.h (struct haifa_sched_info): Strengthen fields
2085 "prev_head" and "next_tail" from rtx to rtx_insn *.
2087 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2089 * rtl.h (rtx_jump_table_data::get_labels): New method.
2090 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
2091 with use of the new rtx_jump_table_data::get_labels method.
2092 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
2093 to rtx_jump_table_data *. Simplify by using get_labels method.
2094 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
2095 a dyn_cast, introducing local "table", using it to replace
2096 label-lookup logic with a get_labels method call.
2097 (patch_jump_insn): Simplify using get_labels method.
2098 * dwarf2cfi.c (create_trace_edges): Likewise.
2099 * rtlanal.c (label_is_jump_target_p): Likewise.
2101 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2103 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
2106 * emit-rtl.c (unshare_all_rtl_1): Likewise.
2107 (unshare_all_rtl_again): Likewise, also for local "p".
2109 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2111 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
2113 * cfgrtl.c (delete_insn_and_edges): Likewise.
2115 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2117 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
2118 from rtx to rtx_insn *.
2120 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
2122 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2124 * function.c (thread_prologue_and_epilogue_insns): Likewise for
2125 locals "returnjump", "epilogue_end", "insn", "next".
2127 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
2128 "returnjump" from rtx * to rtx_insn **.
2129 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
2131 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2133 * basic-block.h (struct edge_def). Strengthen "r" within
2134 union edge_def_insns from rtx to rtx_insn *.
2136 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
2137 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
2139 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
2140 from rtx to rtx_insn *.
2141 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
2143 * postreload-gcse.c (reg_killed_on_edge): Likewise.
2144 (reg_used_on_edge): Likewise.
2145 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
2146 (gt_pch_nx): New overload for rtx_insn *&.
2147 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
2148 from rtx to rtx_insn *.
2150 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2152 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
2153 from rtx to rtx_insn *.
2154 (BB_FOOTER): Replace function with access macro.
2155 (SET_BB_FOOTER): Delete.
2157 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
2159 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2160 (emit_barrier_after_bb): Likewise.
2161 (record_effective_endpoints): Likewise.
2162 (relink_block_chain): Likewise.
2163 (fixup_fallthru_exit_predecessor): Likewise.
2164 (cfg_layout_duplicate_bb): Likewise.
2165 (cfg_layout_split_block): Likewise.
2166 (cfg_layout_delete_block): Likewise.
2167 (cfg_layout_merge_blocks): Likewise.
2168 (BB_FOOTER): Delete function.
2169 (SET_BB_FOOTER): Delete function.
2170 * combine.c (update_cfg_for_uncondjump): Replace uses of
2171 SET_BB_FOOTER with BB_FOOTER.
2173 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2175 * except.h (struct eh_landing_pad_d): Strengthen field
2176 "landing_pad" from rtx to rtx_code_label *.
2178 * except.c (sjlj_emit_dispatch_table): Likewise for param
2180 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
2182 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2184 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
2185 first param from rtx to rtx_insn *.
2186 * config/xtensa/xtensa.c (struct machine_function): Likewise for
2187 field "set_frame_ptr_insn".
2188 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
2189 "csend" from rtx to rtx_code_label *.
2190 (xtensa_expand_atomic): Likewise for local "csloop".
2191 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
2193 (xtensa_call_tls_desc): Likewise for return type and locals
2194 "call_insn", "insns".
2195 (xtensa_legitimize_tls_address): Likewise for local "insns".
2196 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2198 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2200 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2201 first param from rtx to rtx_insn *.
2202 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2205 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2207 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2208 Strengthen param 1 from rtx to rtx_insn *.
2209 (tilepro_output_cbranch): Likewise.
2210 (tilepro_adjust_insn_length): Likewise.
2211 (tilepro_final_prescan_insn): Likewise for sole param.
2213 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2214 Likewise for local "last".
2215 (cbranch_predicted_p): Likewise for param "insn".
2216 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2217 (tilepro_output_cbranch_with_opcode): Likewise.
2218 (tilepro_output_cbranch): Likewise.
2219 (frame_emit_load): Likewise for return type and locals "seq",
2221 (emit_sp_adjust): Likewise for return type and local "insn".
2222 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2224 (tilepro_adjust_insn_length): Likewise for param "insn".
2225 (next_insn_to_bundle): Likewise for return type and params
2227 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2228 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2230 (match_addli_pcrel): Likewise for param "insn".
2231 (replace_addli_pcrel): Likewise.
2232 (match_auli_pcrel): Likewise.
2233 (replace_auli_pcrel): Likewise.
2234 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2236 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2237 "queue", "next_queue", "prev".
2238 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2239 (tilepro_final_prescan_insn): Likewise for param "insn".
2241 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2243 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2244 Strengthen param 1 from rtx to rtx_insn *.
2245 (tilegx_output_cbranch): Likewise.
2246 (tilegx_adjust_insn_length): Likewise.
2247 (tilegx_final_prescan_insn): Likewise for sole param.
2249 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2251 (cbranch_predicted_p): Likewise for param "insn".
2252 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2253 (tilegx_output_cbranch_with_opcode): Likewise.
2254 (tilegx_output_cbranch): Likewise.
2255 (frame_emit_load): Likewise for return type.
2256 (set_frame_related_p): Likewise for locals "seq", "insn".
2257 (emit_sp_adjust): Likewise for return type, and for local "insn".
2258 Introduce local "pat" for use in place of "insn" where the latter
2259 isn't an instruction.
2260 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2261 from rtx to rtx_insn *.
2262 (tilegx_adjust_insn_length): Likewise for param "insn".
2263 (next_insn_to_bundle): Likewise for return type and params "r" and
2265 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2267 (replace_insns): Likewise for params "old_insn", "new_insns".
2268 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2270 (replace_mov_pcrel_step2): Likewise.
2271 (replace_mov_pcrel_step3): Likewise.
2272 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2274 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2275 "queue", "next_queue", "prev".
2276 (tilegx_output_mi_thunk): Likewise for local "insn".
2277 (tilegx_final_prescan_insn): Likewise for param "insn".
2279 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2281 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2283 (frame_emit_load): Likewise.
2284 (frame_emit_add_imm): Likewise, also for local "insn".
2285 (spu_expand_prologue): Likewise for local "insn".
2286 (struct spu_bb_info): Likewise for field "prop_jump".
2287 (emit_nop_for_insn): Likewise for param "insn" and local
2289 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2291 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2292 locals "hint", "insn".
2293 (get_branch_target): Likewise for param "branch".
2294 (insn_clobbers_hbr): Likewise for param "insn".
2295 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2296 locals "insn", "before_4", "before_16".
2297 (insert_hbrp): Likewise for local "insn".
2298 (spu_machine_dependent_reorg): Likewise for locals "branch",
2299 "insn", "next", "bbend".
2300 (uses_ls_unit): Likewise for param "insn".
2301 (get_pipe): Likewise.
2302 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2303 introducing a checked cast.
2304 (spu_sched_adjust_cost): Likewise for params "insn" and
2306 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2307 (spu_sms_res_mii): Likewise.
2309 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2311 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2312 from rtx to rtx_insn *.
2313 (output_cbranch): Likewise for param 6.
2314 (output_return): Likewise for param 1.
2315 (output_sibcall): Likewise.
2316 (output_v8plus_shift): Likewise.
2317 (output_v8plus_mult): Likewise.
2318 (output_v9branch): Likewise for param 7.
2319 (output_cbcond): Likewise for param 3.
2321 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2323 (sparc_legitimize_pic_address): Likewise.
2324 (sparc_emit_call_insn): Likewise.
2325 (emit_save_or_restore_regs): Likewise.
2326 (emit_window_save): Likewise for return type and local "insn".
2327 (sparc_expand_prologue): Likewise for local "insn".
2328 (sparc_flat_expand_prologue): Likewise.
2329 (output_return): Likewise for param "insn".
2330 (output_sibcall): Likewise for param "insn" and local "delay".
2331 (output_ubranch): Likewise for param "insn".
2332 (output_cbranch): Likewise.
2333 (output_cbcond): Likewise.
2334 (output_v9branch): Likewise.
2335 (output_v8plus_shift): Likewise.
2336 (sparc_output_mi_thunk): Likewise for local "insn".
2337 (get_some_local_dynamic_name): Likewise.
2338 (output_v8plus_mult): Likewise for param "insn".
2340 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2342 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2343 from rtx to rtx_insn *.
2344 (output_branchy_insn): Likewise for param 3.
2345 (output_far_jump): Likewise for param 1.
2346 (final_prescan_insn): Likewise.
2347 (sh_insn_length_adjustment): Likewise for sole param.
2349 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2350 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2352 (sh_emit_compare_and_set): Likewise for local "lab".
2353 (output_far_jump): Strengthen param "insn" and local "prev" from
2355 (output_branchy_insn): Likewise for param "insn" and local
2357 (output_ieee_ccmpeq): Likewise for param "insn".
2358 (struct label_ref_list_d): Strengthen field "label" from rtx to
2360 (pool_node): Likewise.
2361 (pool_window_label): Likewise for this global.
2362 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2363 (dump_table): Strengthen params "start", "barrier" and local
2364 "scan" from rtx to rtx_insn *.
2365 (broken_move): Likewise for param "insn".
2366 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2367 Strengthen param "first_mova" from rtx * to rtx_insn **.
2368 (mova_p): Likewise for param "insn".
2369 (fixup_mova): Likewise for param "mova".
2370 (find_barrier): Likewise for return type, params "mova" and
2371 "from", and locals "barrier_before_mova", "found_barrier",
2372 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2373 "label" from rtx to rtx_code_label *.
2374 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2376 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2377 (split_branches): Likewise for param "first" and local "insn".
2378 (final_prescan_insn): Likewise for param "insn".
2379 (sequence_insn_p): Likewise for locals "prev", "next".
2380 (sh_insn_length_adjustment): Likewise for param "insn".
2381 (sh_can_redirect_branch): Likewise for local "insn".
2382 (find_r0_life_regions): Likewise for locals "end", "insn".
2383 (sh_output_mi_thunk): Likewise for local "insns".
2385 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2387 * config/score/score.c (score_output_mi_thunk): Strengthen local
2388 "insn" from rtx to rtx_insn *.
2389 (score_prologue): Likewise.
2391 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2393 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2394 1 from rtx to rtx_insn *.
2395 (s390_emit_jump): Likewise for return type.
2396 (s390_emit_call): Likewise.
2397 (s390_load_got): Likewise.
2399 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2401 (s390_match_ccmode): Likewise for param "insn".
2402 (s390_emit_jump): Likewise for return type.
2403 (s390_split_branches): Likewise for local "label".
2404 (struct constant): Strengthen field "label" from rtx to
2406 (struct constant_pool): Likewise for field "label". Strengthen
2407 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2409 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2411 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2412 (s390_end_pool): Likewise.
2413 (s390_dump_pool): Likewise for local "insn".
2414 (s390_mainpool_start): Likewise.
2415 (s390_chunkify_start): Likewise.
2416 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2417 with insns. Strengthen locals "label", "jump", "barrier", "next",
2418 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2419 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2421 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2422 "jump", "label", "next_insn".
2423 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2424 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2426 (s390_load_got): Likewise for return type and local "insns".
2427 (s390_save_gprs_to_fprs): Likewise for local "insn".
2428 (s390_restore_gprs_from_fprs): Likewise.
2429 (pass_s390_early_mach::execute): Likewise.
2430 (s390_emit_prologue): Likewise for local "insns".
2431 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2433 (s390_emit_call): Strengthen return type and local "insn" from
2435 (s390_emit_tpf_eh_return): Likewise for local "insn".
2436 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2437 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2438 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2440 (s390_non_addr_reg_read_p): Likewise for param "insn".
2441 (find_cond_jump): Likewise for return type and param "insn".
2442 (s390_swap_cmp): Likewise for param "insn".
2443 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2444 "prev_insn", "next_insn".
2445 (s390_reorg): Likewise for locals "insn", "target".
2446 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2447 (s390_sched_variable_issue): For now, rename param "insn" to
2448 "uncast_insn", introducing a checked cast.
2449 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2451 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2452 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2454 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2456 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2457 param from rtx to rtx_insn *.
2458 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2460 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2462 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2463 4 from rtx to rtx_insn *.
2464 (rs6000_final_prescan_insn): Likewise for first param.
2465 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2467 (rs6000_get_some_local_dynamic_name): Likewise.
2468 (output_cbranch): Likewise for param "insn".
2469 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2470 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2471 (rs6000_emit_allocate_stack): Likewise for local "insn".
2472 (load_cr_save): Likewise.
2473 (restore_saved_cr): Likewise.
2474 (restore_saved_lr): Likewise.
2475 (emit_cfa_restores): Likewise.
2476 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2477 "deleted_debug_label".
2478 (rs6000_output_mi_thunk): Likewise for local "insn".
2479 (rs6000_final_prescan_insn): Likewise for param "insn".
2481 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2483 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2484 Strengthen param "insn" from rtx to rtx_insn *.
2485 * config/picochip/picochip.c (picochip_current_prescan_insn):
2486 Likewise for this variable.
2487 (picochip_final_prescan_insn): Likewise for param "insn".
2489 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2491 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2492 from rtx to rtx_insn *.
2493 (pa_output_indirect_call): Likewise.
2494 (pa_adjust_insn_length): Likewise.
2495 (pa_attr_length_millicode_call): Likewise.
2496 (pa_attr_length_call): Likewise.
2497 (pa_attr_length_indirect_call): Likewise.
2499 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2501 (pa_attr_length_millicode_call): Likewise.
2502 (pa_attr_length_call): Likewise.
2503 (pa_output_call): Likewise.
2504 (pa_attr_length_indirect_call): Likewise.
2505 (pa_output_indirect_call): Likewise.
2507 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2509 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2510 Strengthen first param from rtx to rtx_insn *.
2511 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2514 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2516 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2517 type from rtx to rtx_insn *.
2518 (mips_expand_call): Likewise.
2519 (mips_adjust_insn_length): Likewise for first param.
2520 (mips_output_conditional_branch): Likewise.
2521 (mips_output_order_conditional_branch): Likewise.
2522 (mips_final_prescan_insn): Likewise.
2524 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2525 rtx_insn * for the SEQUENCE case.
2526 (SEQ_END): Likewise.
2527 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2528 (mips_emit_call_insn): Likewise, also for local "insn".
2529 (mips16_gp_pseudo_reg): Likewise for local "scan".
2530 (mips16_build_call_stub): Likewise for return type and for local
2531 "insn". Introduce a new local "pattern" so that "insn" can indeed
2533 (mips_expand_call): Strengthen return type and local "insn" from
2535 (mips_block_move_loop): Strengthen local "label" from rtx to
2537 (mips_expand_synci_loop): Likewise for locals "label",
2539 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2541 (mips16e_collect_argument_saves): Likewise for locals "insn",
2543 (mips_find_gp_ref): Likewise for param of callback for "pred"
2544 param, and for local "insn".
2545 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2546 (mips_insn_has_flexible_gp_ref_p): Likewise.
2547 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2549 (mips_epilogue_set_cfa): Likewise for local "insn".
2550 (mips_expand_epilogue): Likewise.
2551 (mips_adjust_insn_length): Likewise for param "insn".
2552 (mips_output_conditional_branch): Likewise.
2553 (mips_output_order_conditional_branch): Likewise.
2554 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2555 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2556 "falu2_turn_enabled_insn".
2557 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2558 "done_label" from rtx to rtx_code_label *.
2559 (struct mips16_constant): Likewise for field "label".
2560 (mips16_add_constant): Likewise for return type.
2561 (mips16_emit_constants_1): Strengthen return type and param "insn"
2562 from rtx to rtx_insn *.
2563 (mips16_emit_constants): Likewise for param "insn".
2564 (mips16_insn_length): Likewise.
2565 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2566 to rtx_code_label *.
2567 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2568 from rtx to rtx_insn *.
2569 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2570 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2571 (r10k_simplify_address): Strengthen param "insn" and local
2572 "def_insn" from rtx to rtx_insn *.
2573 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2575 (r10k_needs_protection_p_1): Update target type of cast of data
2576 from to rtx to rtx_insn *.
2577 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2578 rtx * to rtx_insn **.
2579 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2581 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2582 (mips_call_expr_from_insn): Likewise for param "insn".
2583 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2584 (mips_find_pic_call_symbol): Likewise for param "insn".
2585 (mips_annotate_pic_calls): Likewise for local "insn".
2586 (mips_sim_insn): Likewise for this variable.
2587 (struct mips_sim): Likewise for field "insn" within elements of
2589 (mips_sim_wait_reg): Likewise for param "insn".
2590 (mips_sim_wait_regs): Likewise.
2591 (mips_sim_wait_units): Likewise.
2592 (mips_sim_wait_insn): Likewise.
2593 (mips_sim_issue_insn): Likewise.
2594 (mips_sim_finish_insn): Likewise.
2595 (mips_seq_time): Likewise for param "seq" and local "insn".
2596 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2597 locals "first", "second".
2598 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2599 "last", "last2", "next".
2600 (mips_avoid_hazard): Likewise for params "after", "insn".
2601 (mips_reorg_process_insns): Likewise for locals "insn",
2602 "last_insn", "subinsn", "next_insn".
2603 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2604 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2606 (mips_output_mi_thunk): Likewise for local "insn".
2607 (mips_final_prescan_insn): Likewise for param "insn".
2609 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2611 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2612 Strengthen return type and local "insns" from rtx to rtx_insn *.
2613 (microblaze_legitimize_tls_address): Likewise for local "insns".
2614 (microblaze_block_move_loop): Strengthen local "label" from rtx
2615 to rtx_code_label *.
2616 (microblaze_expand_prologue): Strengthen two locals named "insn"
2617 from rtx to rtx_insn *.
2618 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2619 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2620 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2621 to rtx_code_label *.
2623 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2625 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2626 param from rtx to rtx_insn *.
2627 (mep_reuse_lo): Likewise for third param.
2628 (mep_use_post_modify_p): Likewise for first param.
2629 (mep_core_address_length): Likewise.
2630 (mep_cop_address_length): Likewise.
2631 (mep_final_prescan_insn): Likewise.
2632 (mep_store_data_bypass_p): Likewise for both params.
2633 (mep_mul_hilo_bypass_p): Likewise.
2634 (mep_ipipe_ldc_p): Likewise for param.
2636 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2637 (mep_rewrite_mult): Likewise.
2638 (mep_rewrite_mulsi3): Likewise.
2639 (mep_rewrite_maddsi3): Likewise.
2640 (mep_reuse_lo_p_1): Likewise.
2641 (mep_reuse_lo_p): Likewise.
2642 (mep_frame_expr): Likewise.
2643 (mep_make_parallel): Likewise for both params.
2644 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2646 (mep_use_post_modify_p): Likewise for param "insn".
2647 (mep_core_address_length): Likewise.
2648 (mep_cop_address_length): Likewise.
2649 (mep_reg_set_in_function): Likewise for local "insn".
2650 (mep_asm_without_operands_p): Likewise.
2651 (F): Likewise for return type and param "x".
2652 (add_constant): Likewise for local "insn".
2653 (maybe_dead_move): Likewise for return type and local "insn".
2654 (mep_expand_prologue): Likewise for local "insn".
2655 (mep_final_prescan_insn): Likewise for param "insn".
2656 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2657 "next", "follow", "x".
2658 (mep_insert_repeat_label_last): Likewise for return type, param
2659 "last_insn", and locals "next", "prev". Strengthen param "label"
2660 from rtx to rtx_code_label *.
2661 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2663 (struct mep_doloop_end): Likewise for fields "insn" and
2665 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2666 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2667 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2669 (mep_invert_branch): Likewise for params "insn" and "after".
2670 (mep_reorg_erepeat): Likewise for param "insns" and locals
2671 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2672 "l" from rtx to rtx_code_label *.
2673 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2674 from rtx to rtx_insn *.
2675 (mep_reorg_addcombine): Likewise for param "insns" and locals
2677 (add_sp_insn_p): Likewise for param "insn".
2678 (mep_reorg_noframe): Likewise for param "insns" and locals
2679 "start_frame_insn", "end_frame_insn", "next".
2680 (mep_reorg): Likewise for local "insns".
2681 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2683 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2684 (mep_mul_hilo_bypass_p): Likewise.
2685 (mep_ipipe_ldc_p): Likewise for param "insn".
2686 (mep_make_bundle): Likewise for return type, param "cop" and local
2687 "insn", splitting out the latter into a new local "seq" for when it
2688 is a SEQUENCE rather than an insn.
2689 (core_insn_p): Likewise for param "insn".
2690 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2691 "last", "first", "note", "prev", "core_insn".
2693 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2695 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2697 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2698 (m68k_final_prescan_insn): Likewise for first param.
2700 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2701 (m68k_set_frame_related): Likewise for param "insn".
2702 (output_btst): Likewise for param "insn".
2703 (m68k_final_prescan_insn): Likewise.
2704 (m68k_move_to_reg): Likewise for local "insn".
2705 (m68k_call_tls_get_addr): Likewise for local "insns".
2706 (m68k_call_m68k_read_tp): Likewise.
2707 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2708 (m68k_output_mi_thunk): Likewise for local "insn".
2710 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2712 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2713 first param from rtx to rtx_insn *.
2714 (iq2000_adjust_insn_length): Likewise.
2715 (iq2000_output_conditional_branch): Likewise.
2716 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2717 "insn" and local "nop_insn".
2718 (iq2000_annotate_frame_insn): Likewise for param "insn".
2719 (iq2000_expand_prologue): Likewise for both locals "insn".
2720 (iq2000_adjust_insn_length): Likewise for param "insn".
2721 (iq2000_output_conditional_branch): Likewise.
2723 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2725 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2726 "insns" from rtx to rtx_insn *.
2727 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2728 (struct spill_fill_data): Likewise for field "init_after" and for
2729 elements of array field "prev_insn".
2730 (spill_restore_mem): Likewise for locals "insn", "first".
2731 (do_spill): Likewise for local "insn".
2732 (do_restore): Likewise.
2733 (ia64_expand_prologue): Likewise.
2734 (ia64_expand_epilogue): Likewise.
2735 (emit_insn_group_barriers): Likewise for locals "insn",
2737 (emit_all_insn_group_barriers): Likewise for locals "insn",
2739 (dfa_stop_insn): Likewise for this global.
2740 (dfa_pre_cycle_insn): Likewise.
2741 (ia64_nop): Likewise.
2742 (final_emit_insn_group_barriers): Likewise for locals "insn",
2744 (emit_predicate_relation_info): Likewise for locals "head", "n",
2746 (ia64_reorg): Likewise for local "insn".
2747 (ia64_output_mi_thunk): Likewise.
2748 (expand_vec_perm_interleave_2): Likewise for local "seq".
2750 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2752 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2753 param 1 "insn" from rtx to rtx_insn *.
2754 (ix86_use_lea_for_mov): Likewise.
2755 (ix86_avoid_lea_for_addr): Likewise.
2756 (ix86_split_lea_for_addr): Likewise.
2757 (ix86_lea_for_add_ok): Likewise.
2758 (ix86_output_call_insn): Likewise.
2760 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2761 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2762 (ix86_output_function_epilogue): Likewise for locals "insn",
2763 "deleted_debug_label".
2764 (legitimize_tls_address): Likewise for local "insn".
2765 (get_some_local_dynamic_name): Likewise.
2766 (increase_distance): Likewise for params "prev", "next".
2767 (distance_non_agu_define_in_bb): Likewise for params "insn",
2768 "start" and locals "prev", "next".
2769 (distance_non_agu_define): Likewise for param "insn".
2770 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2771 locals "next", "prev".
2772 (distance_agu_use): Likewise for param "insn".
2773 (ix86_lea_outperforms): Likewise.
2774 (ix86_ok_to_clobber_flags): Likewise.
2775 (ix86_avoid_lea_for_add): Likewise.
2776 (ix86_use_lea_for_mov): Likewise.
2777 (ix86_avoid_lea_for_addr): Likewise.
2778 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2779 (ix86_split_lea_for_addr): Likewise for param "insn".
2780 (ix86_lea_for_add_ok): Likewise for param "insn".
2781 (ix86_expand_carry_flag_compare): Likewise for local
2783 (ix86_expand_int_movcc): Likewise.
2784 (ix86_output_call_insn): Likewise for param "insn".
2785 (ix86_output_call_insn): Likewise for local "i".
2786 (x86_output_mi_thunk): Introduce local "insn", using it in place
2787 of "tmp" when dealing with insns.
2788 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2790 (ix86_pad_returns): Likewise for locals "ret", "prev".
2791 (ix86_count_insn_bb): Likewise for local "insn".
2792 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2793 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2794 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2795 (expand_vec_perm_interleave2): Likewise for local "seq".
2796 (expand_vec_perm_vperm2f128_vblend): Likewise.
2797 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2798 call to for_each_rtx with for_each_rtx_in_insn.
2800 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2802 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2803 "label" from rtx to rtx_code_label *.
2804 (ix86_expand_prologue): Likewise.
2805 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2807 (ix86_split_idivmod): Likewise for locals "end_label" and
2809 (ix86_expand_branch): Likewise for local "label2".
2810 (ix86_expand_aligntest): Likewise for return type and local "label".
2811 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2813 (expand_movmem_epilogue): Likewise for the various locals named
2815 (expand_setmem_epilogue): Likewise.
2816 (expand_small_movmem_or_setmem): Likewise for local "label".
2817 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2818 Strengthen param "done_label" from rtx * to rtx_code_label **.
2819 Strengthen locals "loop_label" and "label" from rtx to
2821 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2822 Likewise for locals "loop_label", "label".
2823 (ix86_expand_set_or_movmem): Likewise for locals "label",
2824 "jump_around_label", "hot_label".
2825 (ix86_expand_strlensi_unroll_1): Likewise for locals
2826 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2828 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2829 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2830 "label2", "jump_label".
2831 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2833 (ix86_expand_lfloorceil): Likewise for local "label".
2834 (ix86_expand_rint): Likewise.
2835 (ix86_expand_floorceildf_32): Likewise.
2836 (ix86_expand_floorceil): Likewise.
2837 (ix86_expand_rounddf_32): Likewise.
2838 (ix86_expand_trunc): Likewise.
2839 (ix86_expand_truncdf_32): Likewise.
2840 (ix86_expand_round): Likewise.
2842 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2844 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2845 first param from rtx to rtx_insn *.
2846 (h8300_insn_length_from_table): Likewise.
2847 * config/h8300/h8300.c (F): Likewise for return type and param
2849 (Fpa): Add a checked cast to rtx_insn *.
2850 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2852 (final_prescan_insn): Likewise for param "insn".
2853 (h8300_binary_length): Likewise.
2854 (h8300_insn_length_from_table): Likewise.
2856 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2858 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2859 Strengthen first param "insn" from rtx to rtx_insn *.
2861 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2863 (frame_insn): Likewise for return type. Introduce local "insn"
2864 for use in place of local "x" for use as an rtx_insn *.
2865 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2866 (epiphany_expand_prologue): Likewise for local "insn".
2867 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2868 * config/epiphany/resolve-sw-modes.c
2869 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2872 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2874 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2875 param from rtx to rtx_insn *.
2876 (c6x_final_prescan_insn): Likewise for first param.
2878 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2879 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2880 (c6x_expand_compare): Strengthen local "insns" from rtx to
2882 (c6x_get_unit_specifier): Likewise for param "insn".
2883 (c6x_print_unit_specifier_field): Likewise.
2884 (c6x_final_prescan_insn): Likewise.
2885 (emit_add_sp_const): Likewise for local "insn".
2886 (c6x_expand_prologue): Likewise.
2888 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2890 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2891 param 1 from rtx to rtx_insn *.
2892 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2893 the various locals named "insn".
2894 (expand_epilogue_reg_restore): Likewise.
2895 (frame_related_constant_load): Likewise.
2896 (add_to_reg): Likewise.
2897 (emit_link_insn): Likewise.
2898 (do_link): Likewise.
2899 (expand_interrupt_handler_prologue): Likewise.
2900 (branch_dest): Likewise for param "branch".
2901 (asm_conditional_branch): Likewise for param "insn".
2902 (gen_one_bundle): Likewise for elements of param "slot" and local
2904 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2905 elements of local "slot".
2906 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2907 "queue", "next_queue", "prev".
2908 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2909 (add_sched_insns_for_speculation): Likewise for local "insn".
2911 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2913 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2914 from rtx to rtx_insn *.
2915 (output_movhi): Likewise.
2916 (output_movsisf): Likewise.
2917 (avr_out_tstsi): Likewise.
2918 (avr_out_tsthi): Likewise.
2919 (avr_out_tstpsi): Likewise.
2920 (avr_out_compare): Likewise.
2921 (avr_out_compare64): Likewise.
2922 (avr_out_movpsi): Likewise.
2923 (ashlqi3_out): Likewise.
2924 (ashlhi3_out): Likewise.
2925 (ashlsi3_out): Likewise.
2926 (ashrqi3_out): Likewise.
2927 (ashrhi3_out): Likewise.
2928 (ashrsi3_out): Likewise.
2929 (lshrqi3_out): Likewise.
2930 (lshrhi3_out): Likewise.
2931 (lshrsi3_out): Likewise.
2932 (avr_out_ashlpsi3): Likewise.
2933 (avr_out_ashrpsi3): Likewise.
2934 (avr_out_lshrpsi3): Likewise.
2935 (avr_out_fract): Likewise.
2936 (avr_out_sbxx_branch): Likewise.
2937 (avr_out_round): Likewise.
2938 (avr_out_xload): Likewise.
2939 (avr_out_movmem): Likewise.
2940 (adjust_insn_length): Likewise.
2941 (avr_out_lpm): Likewise.
2942 (reg_unused_after): Likewise.
2943 (_reg_unused_after): Likewise.
2944 (avr_jump_mode): Likewise for second param.
2945 (jump_over_one_insn): Likewise for first param.
2946 (avr_final_prescan_insn): Likewise.
2947 (out_shift_with_cnt): Likewise for second param.
2949 * config/avr/avr.c (get_sequence_length): Likewise for param
2950 "insns" and local "insn".
2951 (emit_push_byte): Likewise for local "insn".
2952 (emit_push_sfr): Likewise.
2953 (avr_prologue_setup_frame): Likewise for locals "insn",
2954 "fp_plus_insns", "sp_plus_insns".
2955 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2957 (avr_jump_mode): Likewise for param "insn".
2958 (avr_final_prescan_insn): Likewise.
2959 (avr_find_unused_d_reg): Likewise.
2960 (avr_out_lpm_no_lpmx): Likewise.
2961 (avr_out_lpm): Likewise.
2962 (avr_out_xload): Likewise.
2963 (output_movqi): Likewise.
2964 (output_movhi): Likewise.
2965 (out_movqi_r_mr): Likewise.
2966 (out_movhi_r_mr): Likewise.
2967 (out_movsi_r_mr): Likewise.
2968 (out_movsi_mr_r): Likewise.
2969 (output_movsisf): Likewise.
2970 (avr_out_load_psi): Likewise.
2971 (avr_out_store_psi): Likewise.
2972 (avr_out_movpsi): Likewise.
2973 (out_movqi_mr_r): Likewise.
2974 (avr_out_movhi_mr_r_xmega): Likewise.
2975 (out_movhi_mr_r): Likewise.
2976 (compare_condition): Likewise for param "insn" and local "next".
2977 (compare_sign_p): Likewise for param "insn".
2978 (compare_diff_p): Likewise.
2979 (compare_eq_p): Likewise.
2980 (avr_out_compare): Likewise.
2981 (avr_out_compare64): Likewise.
2982 (avr_out_tsthi): Likewise.
2983 (avr_out_tstpsi): Likewise.
2984 (avr_out_tstsi): Likewise.
2985 (out_shift_with_cnt): Likewise.
2986 (ashlqi3_out): Likewise.
2987 (ashlhi3_out): Likewise.
2988 (avr_out_ashlpsi3): Likewise.
2989 (ashlsi3_out): Likewise.
2990 (ashrqi3_out): Likewise.
2991 (ashrhi3_out): Likewise.
2992 (avr_out_ashrpsi3): Likewise.
2993 (ashrsi3_out): Likewise.
2994 (lshrqi3_out): Likewise.
2995 (lshrhi3_out): Likewise.
2996 (avr_out_lshrpsi3): Likewise.
2997 (lshrsi3_out): Likewise.
2998 (avr_out_fract): Likewise.
2999 (avr_out_round): Likewise.
3000 (avr_adjust_insn_length): Likewise.
3001 (reg_unused_after): Likewise.
3002 (_reg_unused_after): Likewise.
3003 (avr_compare_pattern): Likewise.
3004 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
3005 and locals "branch1", "branch2", "insn2", "jump".
3006 (avr_reorg): Likewise for local "insn".
3007 (avr_2word_insn_p): Likewise for param "insn".
3008 (jump_over_one_insn_p): Likewise.
3009 (avr_out_sbxx_branch): Likewise.
3010 (avr_out_movmem): Likewise.
3012 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3014 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
3015 param from rtx to rtx_insn *.
3016 (thumb1_final_prescan_insn): Likewise.
3017 (thumb2_final_prescan_insn): Likewise.
3019 * config/arm/arm.c (emit_set_insn): Strengthen return type from
3021 (struct minipool_node): Likewise for field "insn".
3022 (dump_minipool): Likewise for param "scan".
3023 (create_fix_barrier): Likewise for local "from". Strengthen local
3024 "label" from rtx to rtx_code_label *.
3025 (push_minipool_barrier): Strengthen param "insn" from rtx to
3027 (push_minipool_fix): Likewise.
3028 (note_invalid_constants): Likewise.
3029 (thumb2_reorg): Likewise for local "insn".
3030 (arm_reorg): Likewise.
3031 (thumb2_final_prescan_insn): Likewise for param
3032 "insn" and local "first_insn".
3033 (arm_final_prescan_insn): Likewise for param "insn" and locals
3034 "start_insn", "this_insn".
3035 (arm_debugger_arg_offset): Likewise for param "insn".
3036 (thumb1_emit_multi_reg_push): Likewise for return type and local
3038 (thumb1_final_prescan_insn): Likewise for param "insn".
3039 (thumb_far_jump_used_p): Likewise for local "insn".
3040 (thumb1_expand_prologue): Likewise.
3041 (arm_expand_epilogue_apcs_frame): Likewise.
3042 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
3043 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
3044 from rtx to rtx_code_label *.
3045 (arm_split_atomic_op): Likewise for local "label".
3046 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
3048 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3050 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
3051 first param from rtx to rtx_insn *.
3052 (arc_verify_short): Likewise.
3053 (arc_short_long): Likewise.
3054 (arc_need_delay): Likewise.
3056 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
3058 (arc_ccfsm_advance): Likewise for param "insn" and locals
3059 "start_insn", "this_insn".
3060 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
3061 (arc_ccfsm_post_advance): Likewise for param "insn".
3062 (arc_next_active_insn): Likewise for return type and param "insn".
3063 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
3064 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
3065 (output_short_suffix): Likewise for local "insn".
3066 (arc_final_prescan_insn): Likewise for param "insn". Remove
3067 now-redundant checked cast.
3068 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
3069 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
3070 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
3071 for use where lc_set became an insn.
3072 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
3074 (arc_get_insn_variants): Likewise for local "prev".
3075 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
3077 (arc_predicate_delay_insns): Likewise for local "insn".
3078 (arc_pad_return): Likewise for local "prev". For now, add a
3079 checked cast when extracting the insn from "final_sequence".
3080 (arc_short_long): Likewise for param "insn".
3081 (arc_need_delay): Likewise for param "insn" and local "next".
3082 (arc_label_align): Likewise for locals "prev", "next".
3084 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3086 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
3087 "insn" from rtx to rtx_insn *.
3088 (alpha_gp_save_rtx): Likewise for local "seq".
3089 (alpha_instantiate_decls): Likewise for local "top".
3090 (get_some_local_dynamic_name): Likewise for local "insn".
3091 (alpha_does_function_need_gp): Likewise.
3092 (set_frame_related_p): Likewise for return type and for locals
3094 (emit_frame_store_1): Likewise for local "insn".
3095 (alpha_expand_prologue): Likewise for locals "insn", "seq".
3096 (alpha_end_function): Likewise for local "insn".
3097 (alpha_output_mi_thunk_osf): Likewise.
3098 (alphaev4_insn_pipe): Likewise for param "insn".
3099 (alphaev5_insn_pipe): Likewise.
3100 (alphaev4_next_group): Likewise for return type and param 1
3102 (alphaev5_next_group): Likewise.
3103 (alpha_align_insns_1): Likewise for return type and param 1 of
3104 callback param "next_group", and for locals "i", "next", "prev",
3105 "where", "where2", "insn".
3107 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
3109 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
3110 rather than modifying the stmt.
3112 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3114 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
3115 cgraph_state conversion.
3117 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3119 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3120 Strengthen local "insns" from rtx to rtx_insn *.
3121 (aarch64_set_frame_expr): Likewise for local "insn".
3122 (aarch64_save_or_restore_fprs): Likewise.
3123 (aarch64_save_or_restore_callee_save_registers): Likewise.
3124 (aarch64_expand_prologue): Likewise.
3125 (aarch64_expand_epilogue): Likewise.
3126 (aarch64_output_mi_thunk): Likewise.
3127 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
3128 "label2" from rtx to rtx_code_label *.
3129 (aarch64_split_atomic_op): Likewise for local "label".
3131 2014-08-25 Martin Liska <mliska@suse.cz>
3133 * cgraph.h (symtab_node):
3134 (bool needed_p (void)): created from decide_is_symbol_needed
3135 (bool referred_to_p (void)): created from referred_to_p
3136 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
3137 * cgraph.h (cgraph_node):
3138 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
3139 (void expand (void)): created from expand_function
3140 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
3141 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
3142 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
3143 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
3144 * cgraph.h (varpool_node):
3145 (static void add (tree decl): created from varpool_add_new_variable
3146 * cgraph.h (cgraph_edge):
3148 (void remove_caller (void)): created from cgraph_edge_remove_caller
3149 (void remove_callee (void)): created from cgraph_edge_remove_callee
3150 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
3151 created from cgraph_set_call_stmt
3152 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
3153 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
3154 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
3155 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
3156 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
3157 created from cgraph_speculative_call_info
3158 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
3159 int freq_scale, bool update_original)): created from cgraph_clone_edge
3160 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
3161 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
3162 (bool recursive_p (void)): created from cgraph_edge_recursive_p
3163 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
3164 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
3165 (static void rebuild_references (void)): created from cgraph_rebuild_references
3166 * cgraph.h (symbol_table):
3167 (create_reference): renamed from add_reference
3168 (maybe_create_reference): renamed from maybe_add_reference
3169 (void register_symbol (symtab_node *node)): new function
3170 (void clear_asm_symbols (void)): new function
3171 (void unregister (symtab_node *node)): new function
3172 (void release_symbol (cgraph_node *node, int uid)): new function
3173 (cgraph_node * allocate_cgraph_symbol (void)): new function
3174 (void initialize (void)): created from cgraph_init
3175 (symtab_node *first_symbol (void)):new function
3176 (asm_node *first_asm_symbol (void)):new function
3177 (symtab_node *first_defined_symbol (void)):new function
3178 (varpool_node *first_variable (void)):new function
3179 (varpool_node *next_variable (varpool_node *node)):new function
3180 (varpool_node *first_static_initializer (void)):new function
3181 (varpool_node *next_static_initializer (varpool_node *node)):new function
3182 (varpool_node *first_defined_variable (void)):new function
3183 (varpool_node *next_defined_variable (varpool_node *node)):new function
3184 (cgraph_node *first_defined_function (void)):new function
3185 (cgraph_node *next_defined_function (cgraph_node *node)):new function
3186 (cgraph_node *first_function (void)):new function
3187 (cgraph_node *next_function (cgraph_node *node)):new function
3188 (cgraph_node *first_function_with_gimple_body (void)):new function
3189 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
3190 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
3191 created from symtab_remove_unreachable_nodes
3192 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
3193 (void process_new_functions (void)): created from cgraph_process_new_functions
3194 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3195 (bool output_variables (void)): created from varpool_node::output_variables
3196 (void output_asm_statements (void)): created from output_asm_statements
3197 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3198 (void compile (void)): created from compile
3199 (void output_weakrefs (void)): created from output_weakrefs
3200 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3201 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3202 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3203 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3204 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3205 created from cgraph_next_function_with_gimple_body
3206 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3207 created from cgraph_remove_edge_removal_hook
3208 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3209 created from cgraph_add_node_removal_hook
3210 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3211 created from cgraph_remove_node_removal_hook
3212 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3213 created from varpool_add_node_removal_hook
3214 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3215 created from varpool_remove_node_removal_hook
3216 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3217 created from cgraph_add_function_insertion_hook
3218 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3219 created from cgraph_remove_function_insertion_hook
3220 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3221 created from varpool_add_variable_insertion_hook
3222 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3223 created from varpool_remove_variable_insertion_hook
3224 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3225 created from cgraph_add_edge_duplication_hook
3226 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3227 created from cgraph_remove_edge_duplication_hook
3228 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3229 created from cgraph_add_node_duplication_hook
3230 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3231 created from cgraph_remove_node_duplication_hook
3232 (void call_edge_removal_hooks (cgraph_edge *e)):
3233 created from cgraph_call_edge_removal_hooks
3234 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3235 created from call_function_insertion_hooks
3236 (void call_cgraph_removal_hooks (cgraph_node *node)):
3237 created from cgraph_call_node_removal_hooks
3238 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3239 created from cgraph_node::call_duplication_hooks
3240 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3241 created from cgraph_call_edge_duplication_hooks
3242 (void call_varpool_removal_hooks (varpool_node *node)):
3243 created from varpool_call_node_removal_hooks
3244 (void call_varpool_insertion_hooks (varpool_node *node)):
3245 created from varpool_call_variable_insertion_hooks
3246 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3247 created from insert_to_assembler_name_hash
3248 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3249 created from unlink_from_assembler_name_hash
3250 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3251 created from symtab_prevail_in_asm_name_hash
3252 (void symtab_initialize_asm_name_hash (void)):
3253 created from symtab_initialize_asm_name_hash
3254 (void change_decl_assembler_name (tree decl, tree name)):
3255 created from change_decl_assembler_name
3256 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3257 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3258 created from decl_assembler_name_hash
3259 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3260 created from decl_assembler_name_equal
3261 (static hashval_t hash_node_by_assembler_name (const void *p)):
3262 created from hash_node_by_assembler_name
3263 (static int eq_assembler_name (const void *p1, const void *p2)):
3264 created from eq_assembler_name
3266 2014-08-25 Marek Polacek <polacek@redhat.com>
3268 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3270 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3272 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3273 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3274 SWI1248_AVX512BW mode iterator.
3276 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3279 * config/sh/predicates.md (general_extend_operand): Disable
3280 TRUNCATE before reload completes.
3282 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3284 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3286 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3289 * config/sh/sh.opt (musermode): Allow negative form.
3290 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3291 targets that don't support it.
3292 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3293 Document -mno-usermode option.
3295 2014-08-24 Kito Cheng <kito@0xlab.org>
3297 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3298 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3299 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3300 * doc/tm.texi: Regenerate.
3302 2014-08-24 Kito Cheng <kito@0xlab.org>
3304 * ira.c: Fix typo in comment.
3306 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3308 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3309 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3311 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3314 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3315 last_address when the current function is a thunk.
3316 (pa_asm_output_mi_thunk): When we don't have named sections or they
3317 are not being used, check that thunk can reach the stub table with a
3320 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3322 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3324 (pass_web::execute): Likewise for local "insn".
3326 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3328 * var-tracking.c (struct micro_operation_def): Strengthen field
3329 "insn" from rtx to rtx_insn *.
3330 (struct emit_note_data_def): Likewise.
3331 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3332 (vt_stack_adjustments): Likewise for local "insn".
3333 (adjust_insn): Likewise for param "insn".
3334 (val_store): Likewise.
3335 (val_resolve): Likewise.
3336 (struct count_use_info): Likewise for field "insn".
3337 (log_op_type): Likewise for param "insn".
3338 (reverse_op): Likewise.
3339 (prepare_call_arguments): Likewise.
3340 (add_with_sets): The initial param takes an insn, but we can't
3341 yet strengthen it from rtx to rtx_insn * since it's used as a
3342 cselib_record_sets_hook callback. For now rename initial param
3343 from "insn" to "uncast_insn", and introduce a local "insn" of
3344 the stronger rtx_insn * type, with a checked cast.
3345 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3347 (emit_note_insn_var_location): Likewise.
3348 (emit_notes_for_changes): Likewise.
3349 (emit_notes_for_differences): Likewise.
3350 (next_non_note_insn_var_location): Likewise for return type and
3352 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3353 (vt_initialize): Likewise for local "insn".
3354 (delete_debug_insns): Likewise for locals "insn" and "next".
3356 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3358 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3360 (mark_constant_pool): Likewise for local "insn".
3362 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3364 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3366 (dead_debug_promote_uses): Likewise.
3367 (dead_debug_insert_temp): Likewise.
3369 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3371 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3372 from const_rtx to const rtx_insn *.
3373 (store_killed_after): Likewise. Strengthen locals "last", "act"
3374 from rtx to rtx_insn *.
3375 (store_killed_before): Strengthen param "insn" from const_rtx to
3376 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3377 (find_moveable_store): Strengthen param "insn" from rtx to
3379 (compute_store_table): Likewise for local "insn".
3380 (insert_insn_start_basic_block): Likewise for param "insn" and
3381 locals "prev", "before", "insn".
3382 (insert_store): For now, add a checked cast to rtx_insn * on the
3383 result of gen_move_insn.
3384 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3386 (replace_store_insn): Likewise. For now, add a checked cast to
3387 rtx_insn * on the result of gen_move_insn.
3389 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3391 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3393 (expand_sjlj_dispatch_table): Likewise.
3395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3397 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3398 "insn" from rtx to rtx_insn *.
3400 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3402 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3403 "insn" from rtx to rtx_insn *.
3404 (dup_block_and_redirect): Likewise for param 3 "before".
3406 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3407 from rtx to rtx_insn *.
3408 (move_insn_for_shrink_wrap): Likewise.
3409 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3410 (dup_block_and_redirect): Likewise for param "before" and local
3412 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3414 (convert_to_simple_return): Likewise for local "start".
3416 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3417 Strengthen local "insn" from rtx to rtx_insn *, for use when
3418 invoking requires_stack_frame_p.
3420 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3422 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3424 (speculate_expr): Likewise for locals "orig_insn_rtx",
3426 (eq_transformed_insns): Likewise for locals "i1", "i2".
3427 (check_for_new_jump): Likewise for return type and local "end".
3428 (find_new_jump): Likewise for return type and local "jump".
3429 (sel_split_edge): Likewise for local "jump".
3430 (sel_create_recovery_block): Likewise.
3431 (sel_redirect_edge_and_branch_force): Likewise.
3432 (sel_redirect_edge_and_branch): Likewise.
3434 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3436 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3437 "new_insn" from rtx to rtx_insn *.
3438 (create_insn_rtx_with_rhs): Likewise for return type and for local
3440 (create_insn_rtx_with_lhs): Likewise.
3441 (create_speculation_check): Likewise for local "insn_rtx".
3442 (implicit_clobber_conflict_p): Likewise for local "insn".
3443 (get_expr_cost): Likewise.
3444 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3445 (move_cond_jump): Likewise for locals "next", "prev", "link",
3446 "head", "from", "to".
3448 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3450 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3451 "next" from rtx to rtx_insn *.
3452 (find_conditional_protection): Likewise for local "next".
3453 (is_conditionally_protected): Likewise for local "insn1".
3454 (is_pfree): Likewise for locals "insn1", "insn2".
3456 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3458 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3459 from rtx to rtx_insn *.
3461 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3462 locals "insn1", "insn2" from rtx to rtx_insn *.
3463 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3464 locals "insn", "prev", "last_jump", "next_tail".
3465 (schedule_ebb): Likewise for params "head", "tail".
3466 (schedule_ebbs): Likewise for locals "tail", "head".
3468 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3469 to rtx_insn on "last_insn" in one of the invocations of
3472 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3474 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3475 "elem", "insn" from rtx to rtx_insn *.
3476 (change_spec_dep_to_hard): Likewise.
3477 (get_back_and_forw_lists): Likewise for local "con".
3478 (sd_add_dep): Likewise for locals "elem", "insn".
3479 (sd_resolve_dep): Likewise for locals "pro", "con".
3480 (sd_unresolve_dep): Likewise.
3481 (sd_delete_dep): Likewise.
3482 (chain_to_prev_insn): Likewise for local "pro".
3483 (find_inc): Likewise for locals "pro", "con".
3485 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3487 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3489 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3491 (modified_between_p): Strengthen local "insn" from rtx to
3493 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3494 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3497 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3499 * resource.c (next_insn_no_annul): Strengthen local "next" from
3501 (mark_referenced_resources): Likewise for local "insn".
3503 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3505 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3507 (find_reloads): Likewise for param 1.
3508 (subst_reloads): Likewise for sole param.
3509 (find_equiv_reg): Likwise for param 2.
3510 (regno_clobbered_p): Likwise for param 2.
3511 (reload): Likewise for param 1.
3513 * caller-save.c (save_call_clobbered_regs): Strengthen local
3514 "insn" from rtx to rtx_insn *.
3515 (insert_one_insn): Likewise for local "insn".
3517 * reload.c (this_insn): Likewise for this global.
3518 (find_reloads): Likewise for param "insn".
3519 (find_reloads_toplev): Likewise.
3520 (find_reloads_address): Likewise.
3521 (subst_reg_equivs): Likewise.
3522 (update_auto_inc_notes): Likewise.
3523 (find_reloads_address_1): Likewise.
3524 (find_reloads_subreg_address): Likewise.
3525 (subst_reloads): Likewise.
3526 (find_equiv_reg): Likewise, also for local "p".
3527 (regno_clobbered_p): Likewise for param "insn".
3529 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3531 (spill_reg_store): Likewise for the elements of this array.
3532 (remove_init_insns): Likewise for local "equiv_insn".
3533 (will_delete_init_insn_p): Likewise for param "insn".
3534 (reload): Likewise for param ""first" and local "insn".
3535 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3537 (calculate_elim_costs_all_insns): Likewise.
3538 (delete_caller_save_insns): Likewise.
3539 (spill_failure): Likewise for param "insn".
3540 (delete_dead_insn): Likewise.
3541 (set_label_offsets): Likewise.
3542 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3544 (elimination_costs_in_insn): Likewise for param "insn".
3545 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3546 when referring to an insn.
3547 (set_initial_label_offsets): Likewise.
3548 (set_offsets_for_label): Strengthen param "insn" from rtx to
3550 (init_eliminable_invariants): Likewise for param "first" and local
3552 (fixup_eh_region_note): Likewise for param "insn".
3553 (reload_as_needed): Likewise for locals "prev", "insn",
3554 "old_next", "old_prev", "next".
3555 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3557 (reload_inheritance_insn): Strengthen elements of this array from
3559 (failed_reload): Likewise for param "insn".
3560 (choose_reload_regs): Likewise for local "insn". Replace use of
3561 NULL_RTX with NULL when referring to an insn.
3562 (input_reload_insns): Strengthen elements of this array from rtx
3564 (other_input_address_reload_insns): Likewise for this global.
3565 (other_input_reload_insns): Likewise for this global.
3566 (input_address_reload_insns): Likwise for the elements of this
3568 (inpaddr_address_reload_insns): Likwise for the elements of this
3570 (output_reload_insns): Likewise for the elements of this array.
3571 (output_address_reload_insns): Likewise for the elements of this
3573 (outaddr_address_reload_insns): Likewise for the elements of this
3575 (operand_reload_insns): Likewise for this global.
3576 (other_operand_reload_insns): Likewise for this global.
3577 (other_output_reload_insns): Likewise for the elements of this
3579 (new_spill_reg_store): Likewise for the elements of this
3581 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3582 Strengthen local "where" from rtx * to rtx_insn **.
3583 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3584 from rtx to rtx_insn *.
3585 (do_input_reload): Likewise for local "insn".
3586 (do_output_reload): Likewise for local "insn".
3587 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3588 (emit_insn_if_valid_for_reload): Likewise for return type and local
3589 "last". Add checked cast to rtx_insn when returning "insn" since
3590 this has been through emit_insn.
3591 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3592 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3593 returning "insn" since it's been through
3594 emit_insn_if_valid_for_reload at this point.
3595 (delete_output_reload): Strengthen param "insn" and locals
3596 "output_reload_insn", "i2" from rtx to rtx_insn *.
3597 (delete_address_reloads): Likewise for params "dead_insn",
3598 "current_insn" and locals "prev", "next".
3599 (delete_address_reloads_1): Likewise for params "dead_insn",
3600 "current_insn" and locals "prev", "i2".
3601 (inc_for_reload): Likewise for locals "last", "add_insn".
3602 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3605 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3606 param of this duplicate of the prototype from reload.h
3608 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3610 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3612 (regstat_bb_compute_calls_crossed): Likewise.
3614 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3616 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3618 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3620 (regrename_analyze): Strengthen local "insn" from rtx to
3622 (scan_rtx_reg): Likewise for param "insn".
3623 (scan_rtx_address): Likewise.
3624 (scan_rtx): Likewise.
3625 (restore_operands): Likewise.
3626 (record_out_operands): Likewise.
3627 (build_def_use): Likewise for local "insn". Replace use of
3628 NULL_RTX with NULL when dealing with an insn.
3630 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3632 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3633 * reginfo.c (reg_scan): Likewise, also for local "insn".
3634 (reg_scan_mark_refs): Likewise for param "insn".
3635 (init_subregs_of_mode): Likewise for local "insn".
3637 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3639 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3640 "insn" from rtx to rtx_insn *.
3641 (replace_oldest_value_reg): Likewise for param "insn".
3642 (replace_oldest_value_addr): Likewise.
3643 (replace_oldest_value_mem): Likewise.
3644 (apply_debug_insn_changes): Likewise for local "last_insn".
3645 (copyprop_hardreg_forward_1): Likewise for local "insn".
3647 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3649 * reg-stack.c (next_flags_user): Strengthen return type and param
3650 "insn" from rtx to rtx_insn *.
3651 (straighten_stack): Likewise for param "insn".
3652 (check_asm_stack_operands): Likewise.
3653 (remove_regno_note): Likewise.
3654 (emit_pop_insn): Likewise for return type, param "insn", local
3656 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3657 "limit" from rtx to rtx_insn *.
3658 (swap_to_top): Likewise for param "insn".
3659 (move_for_stack_reg): Likewise.
3660 (move_nan_for_stack_reg): Likewise.
3661 (swap_rtx_condition): Likewise.
3662 (compare_for_stack_reg): Likewise.
3663 (subst_all_stack_regs_in_debug_insn): Likewise.
3664 (subst_stack_regs_pat): Likewise, and local "insn2".
3665 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3667 (subst_stack_regs): Likewise.
3668 (change_stack): Likewise.
3669 (convert_regs_1): Likewise for locals "insn", "next".
3671 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3673 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3675 (combine_set_extension): Likewise for param "curr_insn".
3676 (transform_ifelse): Likewise for param "def_insn".
3677 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3678 from vec<rtx> * to vec<rtx_insn *> *.
3679 (is_cond_copy_insn): Likewise for param "insn".
3680 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3682 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3683 local "def_insn" from rtx to rtx_insn *.
3684 (get_sub_rtx): Likewise for param "def_insn".
3685 (merge_def_and_ext): Likewise.
3686 (combine_reaching_defs): Likewise.
3687 (add_removable_extension): Likewise for param "insn".
3688 (find_removable_extensions): Likewise for local "insn".
3689 (find_and_remove_re): Likewise for locals "curr_insn" and
3690 "def_insn". Strengthen locals "reinsn_del_list" and
3691 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3693 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3695 * recog.c (split_insn): Strengthen param "insn" and locals
3696 "first", "last" from rtx to rtx_insn *.
3697 (split_all_insns): Likewise for locals "insn", "next".
3698 (split_all_insns_noflow): Likewise.
3700 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3702 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3704 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3705 (debug_rtx_find): Likewise for param 1 "x".
3707 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3708 const_rtx to const rtx_insn *. Likewise for local "insn".
3709 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3710 (debug_rtx_find): Likewise for param 1 "x".
3711 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3712 from const_rtx to const rtx_insn * within the appropriate cases of
3713 the switch statement.
3715 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3716 Strengthen local "insns" from rtx to rtx_insn * since this is
3717 passed to a call to debug_rtx_list.
3719 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3721 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3724 * function.c (stack_protect_epilogue): Add checked cast to
3725 rtx_insn for now when invoking predict_insn_def.
3727 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3729 (predict_insn_def): Likewise.
3730 (rtl_predict_edge): Likewise for local "last_insn".
3731 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3733 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3735 (bb_estimate_probability_locally): Likewise for local "last_insn".
3736 (expensive_function_p): Likewise for local "insn".
3738 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3739 local "jmp", since this is used when invoking predict_insn_def.
3741 2014-08-22 Marek Polacek <polacek@redhat.com>
3744 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3746 2014-08-22 Marek Polacek <polacek@redhat.com>
3749 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3750 a comparison in parens.
3751 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3754 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3756 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3759 * cprop.c (fis_get_condition): Likewise.
3761 * postreload.c (reload_cse_regs): Likewise for param "first".
3762 (reload_cse_simplify): Likewise for param "insn".
3763 (reload_cse_regs_1): Likewise for local "insn".
3764 (reload_cse_simplify_set): Likewise for param "insn".
3765 (reload_cse_simplify_operands): Likewise.
3766 (struct reg_use): Likewise for field "insn".
3767 (reload_combine_purge_insn_uses): Likewise for param "insn".
3768 (fixup_debug_insns): Likewise for params "from", "to" and local
3770 (try_replace_in_use): Likewise for local "use_insn".
3771 (reload_combine_recognize_const_pattern): Likewise for param
3772 "insn" and locals "add_moved_after_insn", "use_insn".
3773 (reload_combine_recognize_pattern): Likewise for param "insn" and
3775 (reload_combine): Likewise for locals "insn", "prev".
3776 (reload_combine_note_use): Likewise for param "insn".
3777 (move2add_use_add2_insn): Likewise.
3778 (move2add_use_add3_insn): Likewise.
3779 (reload_cse_move2add): Likewise, also for local "next".
3780 (move2add_note_store): Likewise for local "insn".
3782 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3784 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3786 (struct unoccr): Likewise.
3787 (struct modifies_mem): Likewise.
3788 (alloc_mem): Likewise for local "insn".
3789 (insert_expr_in_table): Likewise for param "insn".
3790 (dump_expr_hash_table_entry): Likewise for local "insn".
3791 (oprs_unchanged_p): Likewise for param "insn".
3792 (load_killed_in_block_p): Likewise for local "setter".
3793 (record_last_reg_set_info): Likewise for param "insn".
3794 (record_last_reg_set_info_regno): Likewise.
3795 (record_last_mem_set_info): Likewise.
3796 (record_last_set_info): Likewise for local "last_set_insn".
3797 (record_opr_changes): Likewise for param "insn".
3798 (hash_scan_set): Likewise.
3799 (compute_hash_table): Likewise for local "insn".
3800 (get_avail_load_store_reg): Likewise for param "insn".
3801 (eliminate_partially_redundant_load): Likewise, also for locals
3802 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3804 (eliminate_partially_redundant_loads): Likewise for local "insn".
3806 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3808 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3810 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3811 (expand_twoval_unop): Likewise for locals entry_last", "last".
3812 (expand_twoval_binop): Likewise.
3813 (expand_twoval_binop_libfunc): Likewise for local "insns".
3814 (widen_leading): Likewise for local "last".
3815 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3816 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3817 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3818 (expand_parity): Likewise for locals "last" and "seq".
3819 (expand_ffs): Likewise for local "seq". Strengthen local
3820 "nonzero_label" from rtx to rtx_code_label *.
3821 (expand_absneg_bit): Strengthen local "insns" from rtx to
3823 (expand_unop_direct): Likewise for local "last".
3824 (expand_unop): Likewise for locals "last", "insns".
3825 (expand_abs_nojump): Likewise for local "last".
3826 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3827 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3829 (expand_copysign_absneg): Strengthen local "label" from rtx to
3831 (expand_copysign_bit): Strengthen local "insns" from rtx to
3833 (struct no_conflict_data): Likewise for fields "first", "insn".
3834 (emit_libcall_block_1): Likewise for param "insns" and locals
3835 "next", "last", "insn".
3836 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3837 on "insns" when invoking emit_libcall_block_1. Ultimately we
3838 want to strengthen insns itself.
3839 (prepare_cmp_insn): Strengthen local "last" from rtx to
3841 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3842 (prepare_float_lib_cmp): Likewise for local "insns".
3843 (emit_conditional_move): Likewise for local "last".
3844 (emit_conditional_add): Likewise.
3845 (have_sub2_insn): Likewise for local "seq".
3846 (expand_float): Likewise for local "insns". Strengthen locals
3847 "label", "neglabel" from rtx to rtx_code_label *.
3848 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3849 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3850 (expand_fixed_convert): Likewise for local "insns" (to
3852 (expand_sfix_optab): Likewise for local "last".
3853 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3854 to rtx_code_label *.
3855 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3856 from rtx to rtx_insn *.
3857 (expand_atomic_fetch_op): Likewise for local "insn".
3858 (maybe_legitimize_operand_same_code): Likewise for local "last".
3859 (maybe_legitimize_operands): Likewise.
3861 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3863 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3864 "insn" from rtx to rtx_insn *.
3865 (ps_rtl_insn): Likewise for return type.
3866 (doloop_register_get): Likewise for params "head", "tail" and
3867 locals "insn", "first_insn_not_to_check".
3868 (schedule_reg_move): Likewise for local "this_insn".
3869 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3870 of gen_move_insn for now.
3871 (reset_sched_times): Strengthen local "insn" from rtx to
3873 (permute_partial_schedule): Likewise.
3874 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3875 (dump_insn_location): Likewise for param "insn".
3876 (loop_canon_p): Likewise for local "insn".
3877 (sms_schedule): Likewise.
3878 (print_partial_schedule): Likewise.
3879 (ps_has_conflicts): Likewise.
3881 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3883 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3884 "tailp" from rtx * to rtx_insn **.
3886 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3887 from rtx to rtx_insn *.
3888 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3889 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3890 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3892 * modulo-sched.c (const_iteration_count): Strengthen return type
3893 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3894 use of NULL_RTX with NULL when working with insns.
3895 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3897 (sms_schedule): Likewise.
3898 * sched-rgn.c (init_ready_list): Likewise, also for locals
3899 "src_head" and "src_next_tail".
3900 (compute_block_dependences): Likewise.
3901 (free_block_dependencies): Likewise.
3902 (debug_rgn_dependencies): Likewise.
3903 (free_rgn_deps): Likewise.
3904 (compute_priorities): Likewise.
3905 (schedule_region): Likewise.
3906 * sel-sched.c (find_ebb_boundaries): Likewise.
3908 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3909 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3911 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3913 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3914 from rtx to rtx_insn *.
3915 (new_seginfo): Likewise for param "insn".
3916 (create_pre_exit): Likewise for locals "last_insn",
3917 "before_return_copy", "return_copy".
3918 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3921 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3923 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3924 from rtx to rtx_insn *.
3925 (lra_push_insn): Likewise for 1st param.
3926 (lra_push_insn_and_update_insn_regno_info): Likewise.
3927 (lra_pop_insn): Likewise for return type.
3928 (lra_invalidate_insn_data): Likewise for 1st param.
3929 (lra_set_insn_deleted): Likewise.
3930 (lra_delete_dead_insn): Likewise.
3931 (lra_process_new_insns): Likewise for first 3 params.
3932 (lra_set_insn_recog_data): Likewise for 1st param.
3933 (lra_update_insn_recog_data): Likewise.
3934 (lra_set_used_insn_alternative): Likewise.
3935 (lra_invalidate_insn_regno_info): Likewise.
3936 (lra_update_insn_regno_info): Likewise.
3937 (lra_former_scratch_operand_p): Likewise.
3938 (lra_eliminate_regs_1): Likewise.
3939 (lra_get_insn_recog_data): Likewise.
3941 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3944 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3946 (substitute_within_insn): New.
3947 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3948 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3949 Replace call to "substitute" with call to substitute_within_insn.
3951 * lra-constraints.c (curr_insn): Strengthen from rtx to
3953 (get_equiv_with_elimination): Likewise for param "insn".
3954 (match_reload): Strengthen params "before" and "after" from rtx *
3956 (emit_spill_move): Likewise for return type. Add a checked cast
3957 to rtx_insn * on result of gen_move_insn for now.
3958 (check_and_process_move): Likewise for local "before". Replace
3959 NULL_RTX with NULL when referring to insns.
3960 (process_addr_reg): Strengthen params "before" and "after" from
3961 rtx * to rtx_insn **.
3962 (insert_move_for_subreg): Likewise.
3963 (simplify_operand_subreg): Strengthen locals "before" and "after"
3964 from rtx to rtx_insn *.
3965 (process_address_1): Strengthen params "before" and "after" from
3966 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3968 (process_address): Strengthen params "before" and "after" from
3969 rtx * to rtx_insn **.
3970 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3971 (curr_insn_transform): Strengthen locals "before" and "after"
3972 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3974 (loc_equivalence_callback): Update cast of "data", changing
3975 resulting type from rtx to rtx_insn *.
3976 (substitute_pseudo_within_insn): New.
3977 (inherit_reload_reg): Strengthen param "insn" from rtx to
3978 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3979 NULL when referring to insns. Add a checked cast to rtx_insn *
3980 when using usage_insn to invoke lra_update_insn_regno_info.
3981 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3982 likewise for locals "restore", "save". Add checked casts to
3983 rtx_insn * when using usage_insn to invoke
3984 lra_update_insn_regno_info and lra_process_new_insns. Replace
3985 NULL_RTX with NULL when referring to insns.
3986 (split_if_necessary): Strengthen param "insn" from rtx to
3988 (update_ebb_live_info): Likewise for params "head", "tail" and local
3990 (get_last_insertion_point): Likewise for return type and local "insn".
3991 (get_live_on_other_edges): Likewise for local "last".
3992 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3993 "prev_insn", "next_insn", "restore".
3994 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3995 (undo_optional_reloads): Likewise for local "insn".
3997 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3999 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
4001 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
4003 (spill_pseudos): Likewise for local "insn".
4004 (init_elimination): Likewise.
4005 (process_insn_for_elimination): Likewise for param "insn".
4007 * lra-lives.c (curr_insn): Likewise.;
4009 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
4010 (remove_pseudos): Likewise for param "insn".
4011 (spill_pseudos): Likewise for local "insn".
4012 (lra_final_code_change): Likewise for locals "insn", "curr".
4014 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
4015 (lra_set_insn_deleted): Likewise.
4016 (lra_delete_dead_insn): Likewise, and for local "prev".
4017 (new_insn_reg): Likewise for param "insn".
4018 (lra_set_insn_recog_data): Likewise.
4019 (lra_update_insn_recog_data): Likewise.
4020 (lra_set_used_insn_alternative): Likewise.
4021 (get_insn_freq): Likewise.
4022 (invalidate_insn_data_regno_info): Likewise.
4023 (lra_invalidate_insn_regno_info): Likewise.
4024 (lra_update_insn_regno_info): Likewise.
4025 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
4027 (lra_push_insn_1): Strengthen param "insn" from rtx to
4029 (lra_push_insn): Likewise.
4030 (lra_push_insn_and_update_insn_regno_info): Likewise.
4031 (lra_pop_insn): Likewise for return type and local "insn".
4032 (push_insns): Likewise for params "from", "to", and local "insn".
4033 (setup_sp_offset): Likewise for params "from", "last" and locals
4035 (lra_process_new_insns): Likewise for params "insn", "before",
4036 "after" and local "last".
4037 (struct sloc): Likewise for field "insn".
4038 (lra_former_scratch_operand_p): Likewise for param "insn".
4039 (remove_scratches): Likewise for locals "insn", "last".
4040 (check_rtl): Likewise for local "insn".
4041 (add_auto_inc_notes): Likewise for param "insn".
4042 (update_inc_notes): Likewise for local "insn".
4043 (lra): Replace NULL_RTX with NULL when referring to insn.
4045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4047 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
4049 (resolve_reg_notes): Likewise.
4050 (resolve_simple_move): Likewise for return type, param "insn", and
4051 locals "insns", "minsn".
4052 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
4053 (resolve_use): Likewise.
4054 (resolve_debug): Likewise.
4055 (find_decomposable_shift_zext): Likewise.
4056 (resolve_shift_zext): Likewise for return type, param "insn", and
4057 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
4058 (decompose_multiword_subregs): Likewise for local "insn",
4059 "orig_insn", "decomposed_shift", "end".
4061 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4063 * basic-block.h (basic_block split_edge_and_insert): Strengthen
4064 param "insns" from rtx to rtx_insn *.
4066 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
4068 (struct iv_to_split): Likewise.
4069 (loop_exit_at_end_p): Likewise for local "insn".
4070 (split_edge_and_insert): Likewise for param "insns".
4071 (compare_and_jump_seq): Likewise for return type, param "cinsn",
4072 and locals "seq", "jump".
4073 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
4074 "branch_code"; update invocations of compare_and_jump_seq to
4075 eliminate NULL_RTX in favor of NULL.
4076 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
4078 (reset_debug_uses_in_loop): Likewise.
4079 (analyze_insn_to_expand_var): Likewise for param "insn".
4080 (analyze_iv_to_split_insn): Likewise.
4081 (analyze_insns_in_loop): Likewise for local "insn".
4082 (insert_base_initialization): Likewise for param
4083 "insn" and local "seq".
4084 (split_iv): Likewise for param "insn" and local "seq".
4085 (expand_var_during_unrolling): Likewise for param "insn".
4086 (insert_var_expansion_initialization): Likewise for local "seq".
4087 (combine_var_copies_in_loop_exit): Likewise.
4088 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
4090 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
4091 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
4094 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4096 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
4098 (iv_analyze_result): Likewise.
4099 (iv_analyze_expr): Likewise.
4102 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
4103 local "def_insn" from rtx to rtx_insn *.
4104 (get_biv_step_1): Likewise for local "insn".
4105 (iv_analyze_expr): Likewise for param "insn".
4106 (iv_analyze_def): Likewise for local "insn".
4107 (iv_analyze_op): Likewise for param "insn".
4108 (iv_analyze): Likewise.
4109 (iv_analyze_result): Likewise.
4111 (suitable_set_for_replacement): Likewise.
4112 (simplify_using_initial_values): Likewise for local "insn".
4113 (iv_number_of_iterations): Likewise for param "insn".
4114 (check_simple_exit): Add checked cast to rtx_insn when invoking
4115 iv_number_of_iterations for now (until get_condition is
4118 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
4119 "insn" from rtx to rtx_insn *.
4120 (analyze_insns_in_loop): Likewise for local "insn".
4122 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4124 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
4126 (struct invariant): Likewise.
4127 (hash_invariant_expr_1): Likewise for param "insn".
4128 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
4129 (find_exits): Likewise for local "insn".
4130 (create_new_invariant): Likewise for param "insn".
4131 (check_dependencies): Likewise.
4132 (find_invariant_insn): Likewise.
4133 (record_uses): Likewise.
4134 (find_invariants_insn): Likewise.
4135 (find_invariants_bb): Likewise for local "insn".
4136 (get_pressure_class_and_nregs): Likewise for param "insn".
4137 (calculate_loop_reg_pressure): Likewise for local "insn".
4139 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4141 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
4143 (add_test): Likewise for locals "seq", "jump".
4144 (doloop_modify): Likewise for locals "sequence", "jump_insn".
4146 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4148 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
4150 (rebuild_jump_labels_chain): Likewise for param "chain".
4152 * cfgexpand.c (pass_expand::execute): Add checked cast to
4153 rtx_insn * when calling rebuild_jump_labels_chain in region where
4154 we know e->insns.r is non-NULL.
4156 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
4158 (rebuild_jump_labels): Likewise.
4159 (rebuild_jump_labels_chain): Likewise for param "chain".
4160 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
4161 (init_label_info): Likewise for param "f".
4162 (maybe_propagate_label_ref): Likewise for params "jump_insn",
4163 "prev_nonjump_insn".
4164 (mark_all_labels): Likewise for param "f" and locals "insn",
4165 "prev_nonjump_insn".
4167 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4169 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
4170 from rtx to rtx_insn *insn.
4171 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
4172 (ira_add_allocno_copy): Likewise.
4173 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
4175 (ira_create_copy): Likewise.
4176 (ira_add_allocno_copy): Likewise.
4177 (create_bb_allocnos): Likewise for local "insn".
4178 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
4179 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
4180 process_regs_for_copy for rtx_insn * param.
4181 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
4182 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
4183 process_regs_for_copy for rtx_insn * param.
4184 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
4185 * ira-costs.c (record_reg_classes): Likewise for param "insn".
4186 (record_operand_costs): Likewise.
4187 (scan_one_insn): Likewise for return type, and for param "insn".
4188 (process_bb_for_costs): Likewise for local "insn".
4189 (process_bb_node_for_hard_reg_moves): Likewise.
4190 * ira-emit.c (struct move): Likewise for field "insn".
4191 (create_move): Eliminate use of NULL_RTX when dealing with an
4193 (emit_move_list): Strengthen return type and locals "result",
4194 "insn" from rtx to rtx_insn *insn.
4195 (emit_moves): Likewise for locals "insns", "tmp".
4196 (ira_emit): Likewise for local "insn".
4197 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4199 (find_call_crossed_cheap_reg): Likewise.
4200 (process_bb_node_lives): Likewise for local "insn".
4201 * ira.c (decrease_live_ranges_number): Likewise.
4202 (compute_regs_asm_clobbered): Likewise.
4203 (build_insn_chain): Likewise.
4204 (find_moveable_pseudos): Likewise, also locals "def_insn",
4205 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4206 to rtx_insn **. Add a checked cast when assigning from
4207 "closest_use" into closest_uses array in a region where we know
4208 it's a non-NULL insn.
4209 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4211 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4212 "last_interesting_insn", "uin".
4213 (move_unallocated_pseudos): Likewise for locals "def_insn",
4214 "move_insn", "newinsn".
4216 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4218 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4219 Strengthen locals "done_label", "do_error" from rtx to
4221 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4222 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4224 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4225 "done_label", "do_error" to rtx_code_label * and local "last" to
4227 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4228 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4229 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4230 "after_lopart_neg", "do_overflow", "hipart_different" to
4231 rtx_code_label * and local "last" to rtx_insn *.
4233 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4235 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4236 "insn" and "move_insn" from rtx to rtx_insn *.
4238 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4240 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4242 (cheap_bb_rtx_cost_p): Likewise.
4243 (first_active_insn): Likewise for return type and local "insn".
4244 (last_active_insn): Likewise for return type and locals "insn",
4246 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4248 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4250 (noce_try_move): Likewise for local "seq".
4251 (noce_try_store_flag): Likewise.
4252 (noce_try_store_flag_constants): Likewise.
4253 (noce_try_addcc): Likewise.
4254 (noce_try_store_flag_mask): Likewise.
4255 (noce_try_cmove): Likewise.
4256 (noce_try_minmax): Likewise.
4257 (noce_try_abs): Likewise.
4258 (noce_try_sign_mask): Likewise.
4259 (noce_try_bitop): Likewise.
4260 (noce_can_store_speculate_p): Likewise for local "insn".
4261 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4263 (check_cond_move_block): Likewise for local "insn".
4264 (cond_move_convert_if_block): Likewise.
4265 (cond_move_process_if_block): Likewise for locals "seq",
4267 (noce_find_if_block): Likewise for local "jump".
4268 (merge_if_block): Likewise for local "last".
4269 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4270 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4271 (block_has_only_trap): Likewise for return type and local "trap".
4272 (find_if_case_1): Likewise for local "jump".
4273 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4276 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4278 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4279 "last_insn", "loop_end" from rtx to rtx_insn *.
4281 * hw-doloop.c (scan_loop): Likewise for local "insn".
4282 (discover_loop): Likewise for param "tail_insn".
4283 (discover_loops): Likewise for local "tail".
4285 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4286 cast to rtx_insn * when assigning from an rtx local to a
4287 hwloop_info's "last_insn" field.
4289 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4291 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4292 (add_delay_dependencies): Strengthen local "pro" from rtx to
4294 (recompute_todo_spec): Likewise.
4295 (dep_cost_1): Likewise for locals "insn", "used".
4296 (schedule_insn): Likewise for local "dbg".
4297 (schedule_insn): Likewise for locals "pro", "next".
4298 (unschedule_insns_until): Likewise for local "con".
4299 (restore_pattern): Likewise for local "next".
4300 (estimate_insn_tick): Likewise for local "pro".
4301 (resolve_dependencies): Likewise for local "next".
4302 (fix_inter_tick): Likewise.
4303 (fix_tick_ready): Likewise for local "pro".
4304 (add_to_speculative_block): Likewise for locals "check", "twin",
4306 (sched_extend_bb): Likewise for locals "end", "insn".
4307 (init_before_recovery): Likewise for local "x".
4308 (sched_create_recovery_block): Likewise for local "barrier".
4309 (create_check_block_twin): Likewise for local "pro".
4310 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4312 (unlink_bb_notes): Update for change to type of bb_header.
4313 Strengthen locals "prev", "label", "note", "next" from rtx to
4315 (clear_priorities): Likewise for local "pro".
4317 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4319 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4321 (test_insn): Likewise for this global.
4322 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4324 (oprs_anticipatable_p): Likewise.
4325 (oprs_available_p): Likewise.
4326 (insert_expr_in_table): Strengthen param "insn" from rtx to
4328 (hash_scan_set): Likewise.
4329 (hash_scan_clobber): Likewise.
4330 (hash_scan_call): Likewise.
4331 (hash_scan_insn): Likewise.
4332 (compute_hash_table_work): Likewise for local "insn".
4333 (process_insert_insn): Likewise for return type and local "pat".
4334 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4335 "pat", "pat_end", "maybe_cc0_setter".
4336 (pre_edge_insert): Likewise for local "insn".
4337 (pre_insert_copy_insn): Likewise for param "insn".
4338 (pre_insert_copies): Likewise for local "insn".
4339 (struct set_data): Likewise for field "insn".
4340 (single_set_gcse): Likewise for param "insn".
4341 (gcse_emit_move_after): Likewise.
4342 (pre_delete): Likewise for local "insn".
4343 (update_bb_reg_pressure): Likewise for param "from" and local
4345 (should_hoist_expr_to_dom): Likewise for param "from".
4346 (hoist_code): Likewise for local "insn".
4347 (get_pressure_class_and_nregs): Likewise for param "insn".
4348 (calculate_bb_reg_pressure): Likewise for local "insn".
4349 (compute_ld_motion_mems): Likewise.
4351 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4353 * genpeep.c (main): Rename param back from "uncast_ins1" to
4354 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4357 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4359 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4362 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4363 documentation to state it is only for VSX operations.
4365 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4366 constraint only active if VSX.
4368 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4369 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4372 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4374 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4375 Strengthen local "insn" from rtx to rtx_insn *.
4376 (use_killed_between): Likewise for param "target_insn".
4377 (all_uses_available_at): Likewise for param "target_insn" and
4379 (update_df_init): Likewise for params "def_insn", "insn".
4380 (update_df): Likewise for param "insn".
4381 (try_fwprop_subst): Likewise for param "def_insn" and local
4383 (free_load_extend): Likewise for param "insn".
4384 (forward_propagate_subreg): Likewise for param "def_insn" and
4386 (forward_propagate_asm): Likewise for param "def_insn" and local
4388 (forward_propagate_and_simplify): Likewise for param "def_insn"
4389 and local "use_insn".
4390 (forward_propagate_into): Likewise for locals "def_insn" and
4393 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4395 * function.c (emit_initial_value_sets): Strengthen local "seq"
4396 from rtx to rtx_insn *.
4397 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4399 (instantiate_virtual_regs): Likewise for local "insn".
4400 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4401 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4402 (expand_function_end): Likewise for locals "insn" and "seq".
4403 (epilogue_done): Likewise for local "insn".
4404 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4406 (reposition_prologue_and_epilogue_notes): Likewise for locals
4407 "insn", "last", "note", "first".
4408 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4409 (pass_match_asm_constraints::execute): Likewise for local "insn".
4411 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4413 * output.h (final_scan_insn): Strengthen return type from rtx to
4415 (final_forward_branch_p): Likewise for param.
4416 (current_output_insn): Likewise for this global.
4418 * final.c (rtx debug_insn): Likewise for this variable.
4419 (current_output_insn): Likewise.
4420 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4421 adding "insn" back in as an rtx_insn * with a checked cast, so
4422 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4424 (compute_alignments): Strengthen local "label" from rtx to
4426 (shorten_branches): Rename param from "first" to "uncast_first",
4427 introducing a new local rtx_insn * "first" using a checked cast to
4428 effectively strengthen "first" from rtx to rtx_insn * without
4429 affecting the type signature. Strengthen locals "insn", "seq",
4430 "next", "label" from rtx to rtx_insn *.
4431 (change_scope): Strengthen param "orig_insn" and local "insn" from
4433 (final_start_function): Rename param from "first" to "uncast_first",
4434 introducing a new local rtx_insn * "first" using a checked cast to
4435 effectively strengthen "first" from rtx to rtx_insn * without
4436 affecting the type signature. Strengthen local "insn" from rtx to
4438 (dump_basic_block_info): Strengthen param "insn" from rtx to
4440 (final): Rename param from "first" to "uncast_first",
4441 introducing a new local rtx_insn * "first" using a checked cast to
4442 effectively strengthen "first" from rtx to rtx_insn * without
4443 affecting the type signature. Strengthen locals "insn", "next"
4444 from rtx to rtx_insn *.
4445 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4447 (call_from_call_insn): Strengthen param "insn" from rtx to
4449 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4450 introducing a new local rtx_insn * "insn" using a checked cast to
4451 effectively strengthen "insn" from rtx to rtx_insn * without
4452 affecting the type signature. Strengthen return type and locals
4453 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4454 now-redundant checked cast to rtx_insn * from both invocations of
4455 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4456 introducing a local "call_insn" for use when invoking
4457 call_from_call_insn.
4458 (notice_source_line): Strengthen param "insn" from rtx to
4460 (leaf_function_p): Likewise for local "insn".
4461 (final_forward_branch_p): Likewise.
4462 (leaf_renumber_regs): Likewise for param "first".
4463 (rest_of_clean_state): Likewise for locals "insn" and "next".
4464 (self_recursive_call_p): Likewise for param "insn".
4465 (collect_fn_hard_reg_usage): Likewise for local "insn".
4466 (get_call_fndecl): Likewise for param "insn".
4467 (get_call_cgraph_rtl_info): Likewise.
4468 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4469 introducing a new local rtx_insn * "insn" using a checked cast to
4470 effectively strengthen "insn" from rtx to rtx_insn * without
4471 affecting the type signature.
4473 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4474 cast when assigning from param "insn" to current_output_insn.
4475 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4476 so that we can assign it back to current_output_insn.
4478 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4480 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4481 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4482 atmxt540s and atmxt540sreva devices.
4483 * config/avr/avr-tables.opt: Regenerate.
4484 * config/avr/t-multilib: Regenerate.
4485 * doc/avr-mmcu.texi: Regenerate.
4487 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4489 * expr.c (convert_move): Strengthen local "insns" from rtx to
4491 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4492 "top_label" from rtx to rtx_code_label *.
4493 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4495 (emit_single_push_insn): Likewise for locals "prev", "last".
4496 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4497 to rtx_code_label *.
4498 (store_constructor): Likewise for locals "loop_start", "loop_end".
4499 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4501 (expand_expr_real_2): Likewise.
4502 (expand_expr_real_1): Strengthen local "label" from rtx to
4505 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4507 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4508 from rtx to rtx_insn *.
4509 (store_bit_field_1): Likewise.
4510 (extract_bit_field_1): Likewise.
4511 (expand_mult_const): Likewise for local "insns".
4512 (expmed_mult_highpart): Strengthen local "label" from rtx to
4514 (expand_smod_pow2): Likewise.
4515 (expand_sdiv_pow2): Likewise.
4516 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4517 rtx_insn *. Strengthen locals "label", "label1", "label2",
4518 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4519 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4520 (emit_store_flag): Likewise.
4521 (emit_store_flag_force): Strengthen local "label" from rtx to
4523 (do_cmp_and_jump): Likewise for param "label".
4525 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4527 * explow.c (force_reg): Strengthen local "insn" from rtx to
4529 (adjust_stack_1): Likewise.
4530 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4531 "final_label", "available_label", "space_available" from rtx to
4533 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4534 (anti_adjust_stack_and_probe): Likewise.
4536 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4538 * except.h (sjlj_emit_function_exit_after): Strengthen param
4539 "after" from rtx to rtx_insn *. This is only called with
4540 result of get_last_insn (in function.c) so type-change should be
4543 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4544 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4545 to rtx_insn *. These fields are only used from except.c so this
4546 type-change should be self-contained to this patch.
4548 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4549 local "last" from rtx to rtx_insn *.
4550 (dw2_build_landing_pads): Likewise for local "seq".
4551 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4552 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4553 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4555 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4557 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4558 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4559 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4560 referring to an insn. Strengthen local "dispatch_label" from
4561 rtx to rtx_code_label *.
4562 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4564 (expand_eh_return): Strengthen local "around_label" from
4565 rtx to rtx_code_label *.
4566 (convert_to_eh_region_ranges): Strengthen locals "iter",
4567 "last_action_insn", "first_no_action_insn",
4568 "first_no_action_insn_before_switch",
4569 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4571 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4573 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4574 from rtx to rtx_insn *.
4575 (cached_next_real_insn): Likewise.
4576 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4578 (dwarf2out_var_location): Strengthen locals "next_real",
4579 "next_note", "expected_next_loc_note", "last_start", "insn" from
4582 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4584 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4585 from rtx to rtx_insn *.
4586 (create_pseudo_cfg): Likewise for local "insn".
4588 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4590 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4591 from rtx to rtx_insn *.
4592 (df_bb_regno_last_def_find): Likewise.
4594 * df-problems.c (df_rd_bb_local_compute): Likewise.
4595 (df_lr_bb_local_compute): Likewise.
4596 (df_live_bb_local_compute): Likewise.
4597 (df_chain_remove_problem): Likewise.
4598 (df_chain_create_bb): Likewise.
4599 (df_word_lr_bb_local_compute): Likewise.
4600 (df_remove_dead_eq_notes): Likewise for param "insn".
4601 (df_note_bb_compute): Likewise for local "insn".
4602 (simulate_backwards_to_point): Likewise.
4603 (df_md_bb_local_compute): Likewise.
4605 * df-scan.c (df_scan_free_bb_info): Likewise.
4606 (df_scan_start_dump): Likewise.
4607 (df_scan_start_block): Likewise.
4608 (df_install_ref_incremental): Likewise for local "insn".
4609 (df_insn_rescan_all): Likewise.
4610 (df_reorganize_refs_by_reg_by_insn): Likewise.
4611 (df_reorganize_refs_by_insn_bb): Likewise.
4612 (df_recompute_luids): Likewise.
4613 (df_bb_refs_record): Likewise.
4614 (df_update_entry_exit_and_calls): Likewise.
4615 (df_bb_verify): Likewise.
4617 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4619 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4620 "first_note" from rtx to rtx_insn *.
4621 (get_node_of_insn): Likewise for param 2 "insn".
4622 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4624 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4626 (mem_write_insn_p): Likewise.
4627 (mem_access_insn_p): Likewise.
4628 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4629 (def_has_ccmode_p): Likewise for param "insn".
4630 (add_cross_iteration_register_deps): Likewise for locals
4631 "def_insn" and "use_insn".
4632 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4633 (build_intra_loop_deps): Likewise for local "src_insn".
4634 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4636 (get_node_of_insn): Likewise for param "insn".
4638 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4640 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4641 (deletable_insn_p): Strengthen param "insn" from rtx to
4642 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4643 find_call_stack_args, since this is guarded by CALL_P (insn).
4644 (marked_insn_p): Strengthen param "insn" from rtx to
4646 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4647 invoking find_call_stack_args, since this is guarded by
4649 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4650 rtx_insn *; we know this is an insn since this was called by
4652 (mark_nonreg_stores_2): Likewise.
4653 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4655 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4656 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4658 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4659 from rtx to rtx_insn *.
4660 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4662 (delete_unmarked_insns): Likewise for locals "insn", "next".
4663 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4664 (mark_reg_dependencies): Likewise for param "insn".
4665 (rest_of_handle_ud_dce): Likewise for local "insn".
4666 (word_dce_process_block): Likewise.
4667 (dce_process_block): Likewise.
4669 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4671 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4672 from rtx to rtx_insn *.
4673 (struct change_cc_mode_args): Likewise for field "insn".
4674 (this_insn): Strengthen from rtx to rtx_insn *.
4675 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4677 (validate_canon_reg): Strengthen param "insn" from rtx to
4679 (canon_reg): Likewise.
4680 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4682 (record_jump_equiv): Strengthen param "insn" from rtx to
4684 (try_back_substitute_reg): Likewise, also for locals "prev",
4686 (find_sets_in_insn): Likewise for param "insn".
4687 (canonicalize_insn): Likewise.
4688 (cse_insn): Likewise. Add a checked cast.
4689 (invalidate_from_clobbers): Likewise for param "insn".
4690 (invalidate_from_sets_and_clobbers): Likewise.
4691 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4693 (cse_prescan_path): Strengthen local "insn" from rtx to
4695 (cse_extended_basic_block): Likewise for locals "insn" and
4697 (cse_main): Likewise for param "f".
4698 (check_for_label_ref): Likewise for local "insn".
4699 (set_live_p): Likewise for second param ("insn").
4700 (insn_live_p): Likewise for first param ("insn") and for local
4702 (cse_change_cc_mode_insn): Likewise for first param "insn".
4703 (cse_change_cc_mode_insns): Likewise for first and second params
4705 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4707 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4710 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4711 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4712 Anna Tikhonova <anna.tikhonova@intel.com>
4713 Ilya Tocar <ilya.tocar@intel.com>
4714 Andrey Turetskiy <andrey.turetskiy@intel.com>
4715 Ilya Verbin <ilya.verbin@intel.com>
4716 Kirill Yukhin <kirill.yukhin@intel.com>
4717 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4719 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4721 * config/i386/sse.md
4722 (define_mode_iterator VI248_AVX2): Delete.
4723 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4724 (define_mode_iterator VI48_AVX2): Ditto.
4725 (define_insn <shift_insn><mode>3): Delete.
4726 (define_insn "<shift_insn><mode>3<mask_name>" with
4727 VI2_AVX2_AVX512BW): New.
4728 (define_insn "<shift_insn><mode>3<mask_name>" with
4731 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4732 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4733 Anna Tikhonova <anna.tikhonova@intel.com>
4734 Ilya Tocar <ilya.tocar@intel.com>
4735 Andrey Turetskiy <andrey.turetskiy@intel.com>
4736 Ilya Verbin <ilya.verbin@intel.com>
4737 Kirill Yukhin <kirill.yukhin@intel.com>
4738 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4740 * config/i386/sse.md
4741 (define_mode_iterator VI4F_BRCST32x2): New.
4742 (define_mode_attr 64x2_mode): Ditto.
4743 (define_mode_attr 32x2mode): Ditto.
4744 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4745 with VI4F_BRCST32x2): Ditto.
4746 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4747 with V16FI mode iterator): Ditto.
4748 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4750 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4751 with VI8F_BRCST64x2): Ditto.
4753 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4754 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4755 Anna Tikhonova <anna.tikhonova@intel.com>
4756 Ilya Tocar <ilya.tocar@intel.com>
4757 Andrey Turetskiy <andrey.turetskiy@intel.com>
4758 Ilya Verbin <ilya.verbin@intel.com>
4759 Kirill Yukhin <kirill.yukhin@intel.com>
4760 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4762 * config/i386/sse.md
4763 (define_mode_iterator VI8_AVX512VL): New.
4764 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4766 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4768 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4769 (define_mode_iterator V48_AVX512VL): New.
4770 (define_mode_iterator V12_AVX512VL): Ditto.
4771 (define_insn <avx512>_load<mode>_mask): Split into two similar
4772 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4773 Refactor output template.
4774 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4776 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4778 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4780 (reg_available_p): Likewise for param "insn".
4781 (insert_set_in_table): Likewise.
4782 (hash_scan_set): Likewise.
4783 (hash_scan_insn): Likewise.
4784 (make_set_regs_unavailable): Likewise.
4785 (compute_hash_table_work): Likewise for local "insn".
4786 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4788 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4789 (try_replace_reg): Likewise.
4790 (find_avail_set): Likewise.
4791 (cprop_jump): Likewise for params "setcc", "jump".
4792 (constprop_register): Likewise for param "insn".
4793 (cprop_insn): Likewise.
4794 (do_local_cprop): Likewise.
4795 (local_cprop_pass): Likewise for local "insn".
4796 (bypass_block): Likewise for params "setcc" and "jump".
4797 (bypass_conditional_jumps): Likewise for locals "setcc" and
4799 (one_cprop_pass): Likewise for local "insn".
4801 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4803 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4804 from rtx to rtx_insn *.
4805 (struct comparison): Likewise, also for field "prev_clobber".
4806 (conforming_compare): Likewise for param "insn".
4807 (arithmetic_flags_clobber_p): Likewise.
4808 (find_flags_uses_in_insn): Likewise.
4809 (find_comparison_dom_walker::before_dom_children): Likewise for
4810 locals "insn", "next", "last_clobber".
4811 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4813 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4815 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4816 "insn" from rtx to rtx_insn *.
4817 (single_set_for_csa): Likewise for param "insn".
4818 (record_one_stack_ref): Likewise.
4819 (try_apply_stack_adjustment): Likewise.
4820 (struct record_stack_refs_data): Likewise for field "insn".
4821 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4822 (prev_active_insn_bb): Likewise for return type and param "insn".
4823 (next_active_insn_bb): Likewise.
4824 (force_move_args_size_note): Likewise for params "prev" and "last"
4825 and locals "test", "next_candidate", "prev_candidate".
4826 (combine_stack_adjustments_for_block): Strengthen locals
4827 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4830 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4832 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4833 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4834 (subst_insn): Likewise for this variable.
4835 (added_links_insn): Likewise.
4836 (struct insn_link): Likewise for field "insn".
4837 (alloc_insn_link): Likewise for param "insn".
4838 (struct undobuf): Likewise for field "other_insn".
4839 (find_single_use): Likewise for param "insn" and local "next".
4840 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4841 (delete_noop_moves): Likewise for locals "insn", "next".
4842 (create_log_links): Likewise for locals "insn", "use_insn".
4843 Strengthen local "next_use" from rtx * to rtx_insn **.
4844 (insn_a_feeds_b): Likewise for params "a", "b".
4845 (combine_instructions): Likewise for param "f" and locals "insn",
4846 "next", "prev", "first", "last_combined_insn", "link", "link1",
4847 "temp". Replace use of NULL_RTX with NULL when referring to
4849 (setup_incoming_promotions): Likewise for param "first"
4850 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4851 (can_combine_p): Likewise for params "insn", "i3", "pred",
4852 "pred2", "succ", "succ2" and for local "p".
4853 (combinable_i3pat): Likewise for param "i3".
4854 (cant_combine_insn_p): Likewise for param "insn".
4855 (likely_spilled_retval_p): Likewise.
4856 (adjust_for_new_dest): Likewise.
4857 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4858 (try_combine): Likewise for return type and for params "i3", "i2",
4859 "i1", "i0", "last_combined_insn", and for locals "insn",
4860 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4861 "i0_insn". Eliminate local "tem" in favor of new locals
4862 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4863 checked cast for now to rtx_insn * on the return type of
4864 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4866 (find_split_point): Strengthen param "insn" from rtx to
4868 (simplify_set): Likewise for local "other_insn".
4869 (recog_for_combine): Likewise for param "insn".
4870 (record_value_for_reg): Likewise.
4871 (record_dead_and_set_regs_1): Likewise for local
4873 (record_dead_and_set_regs): Likewise for param "insn".
4874 (record_promoted_value): Likewise.
4875 (check_promoted_subreg): Likewise.
4876 (get_last_value_validate): Likewise.
4877 (reg_dead_at_p): Likewise.
4878 (move_deaths): Likewise for param "to_insn".
4879 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4880 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4881 in favor of new locals "tem_note" and "tem_insn", the latter being
4883 (distribute_links): Strengthen locals "place", "insn" from rtx to
4886 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4888 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4890 (can_delete_label_p): Require a const rtx_code_label * rather than
4892 (delete_insn): Add checked cast to rtx_code_label * when we know
4893 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4895 (delete_insn_chain): Strengthen locals "prev" and "current" from
4896 rtx to rtx_insn *. Add a checked cast when assigning from
4897 "finish" (strengthening the params will come later). Add a
4898 checked cast to rtx_note * in region where we know
4900 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4902 (compute_bb_for_insn): Likewise.
4903 (free_bb_for_insn): Likewise for local "insn".
4904 (compute_bb_for_insn): Likewise.
4905 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4906 local "insn" from rtx to rtx_insn *
4907 (flow_active_insn_p): Require a const rtx_insn * rather than a
4909 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4911 (can_fallthru): Likewise for locals "insn" and "insn2".
4912 (bb_note): Likewise for local "note".
4913 (first_insn_after_basic_block_note): Likewise for local "note" and
4915 (rtl_split_block): Likewise for locals "insn" and "next".
4916 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4918 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4919 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4921 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4922 them), "kill_from", "barrier", "new_insn".
4923 (patch_jump_insn): Likewise for params "insn", "old_label".
4924 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4925 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4926 "old_label", "new_label".
4927 (rtl_tidy_fallthru_edge): Likewise for local "q".
4928 (rtl_split_edge): Likewise for locals "before", "last".
4929 (commit_one_edge_insertion): Likewise for locals "before",
4930 "after", "insns", "tmp", "last", adding a checked cast where
4931 currently necessary.
4932 (commit_edge_insertions): Likewise.
4933 (rtl_dump_bb): Likewise for locals "insn", "last".
4934 (print_rtl_with_bb): Likewise for local "x".
4935 (rtl_verify_bb_insns): Likewise for local "x".
4936 (rtl_verify_bb_pointers): Likewise for local "insn".
4937 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4939 (rtl_verify_fallthru): Likewise for local "insn".
4940 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4941 (purge_dead_edges): Likewise for local "insn".
4942 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4943 (skip_insns_after_block): Likewise for return type and for locals
4944 "insn", "last_insn", "next_head", "prev".
4945 (record_effective_endpoints): Likewise for locals "next_insn",
4947 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4948 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4949 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4950 (duplicate_insn_chain): For now, add checked cast from rtx to
4951 rtx_insn * when returning insn.
4952 (cfg_layout_duplicate_bb): Likewise for local "insn".
4953 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4955 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4956 (rtl_block_empty_p): Likewise.
4957 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4958 "split_point", "last".
4959 (rtl_block_ends_with_call_p): Likewise for local "insn".
4960 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4962 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4963 "split_at_insn" from rtx to rtx_insn *.
4964 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4965 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4966 to const rtx_insn *.
4967 (rtl_account_profile_record): Likewise.
4969 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4971 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4973 (average_num_loop_insns): Likewise.
4974 (init_set_costs): Likewise for local "seq".
4975 (seq_cost): Likewise for param "seq", from const_rtx to const
4978 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4980 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4983 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4985 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4986 "f1" and "f2" from rtx * to rtx_insn **.
4987 (flow_find_head_matching_sequence): Likewise.
4989 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4990 "cbranch_insn" from rtx to rtx_insn *.
4991 (thread_jump): Likewise for local "insn".
4992 (try_forward_edges): Likewise for local "last".
4993 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4994 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4996 (can_replace_by): Likewise for params "i1", "i2".
4997 (old_insns_match_p): Likewise.
4998 (merge_notes): Likewise.
4999 (walk_to_nondebug_insn): Likewise for param "i1".
5000 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
5001 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
5002 "afterlast1", "afterlast2" from rtx to rtx_insn *.
5003 (flow_find_head_matching_sequence): Strengthen params "f1" and
5004 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
5005 "last1", "last2", "beforelast1", "beforelast2" from rtx to
5007 (outgoing_edges_match): Likewise for locals "last1", "last2".
5008 (try_crossjump_to_edge): Likewise for local "insn".
5009 Replace call to for_each_rtx with for_each_rtx_in_insn.
5011 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
5012 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
5013 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
5014 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
5015 (try_optimize_cfg): Strengthen local "last" from rtx to
5017 (delete_dead_jumptables): Likewise for locals "insn", "next",
5020 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
5021 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
5022 "rtx else_first_tail", to reflect the basic-block.h changes above.
5024 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5026 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
5028 (purge_dead_tablejump_edges): Likewise.
5029 (find_bb_boundaries): Likewise for locals "insn", "end",
5030 "flow_transfer_insn".
5032 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5034 * caller-save.c (save_call_clobbered_regs): Strengthen locals
5035 "ins" and "prev" from rtx to rtx_insn *.
5037 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5039 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
5041 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
5042 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
5044 (load_register_parameters): Likewise for local "before_arg".
5045 (check_sibcall_argument_overlap): Likewise for param "insn".
5046 (expand_call): Likewise for locals "normal_call_insns",
5047 "tail_call_insns", "insns", "before_call", "after_args",
5048 "before_arg", "last", "prev". Strengthen one of the "last" from
5049 rtx to rtx_call_insn *.
5050 (fixup_tail_calls): Strengthen local "insn" from rtx to
5052 (emit_library_call_value_1): Likewise for locals "before_call" and
5055 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5057 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
5058 and "last" from rtx to rtx_insn *.
5059 (expand_builtin_nonlocal_goto): Likewise for local "insn".
5060 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
5062 (expand_errno_check): Strengthen local "lab" from rtx to
5064 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
5066 (expand_builtin_mathfn_2): Likewise.
5067 (expand_builtin_mathfn_ternary): Likewise.
5068 (expand_builtin_mathfn_3): Likewise.
5069 (expand_builtin_interclass_mathfn): Likewise for local "last".
5070 (expand_builtin_int_roundingfn): Likewise for local "insns".
5071 (expand_builtin_int_roundingfn_2): Likewise.
5072 (expand_builtin_strlen): Likewise for local "before_strlen".
5073 (expand_builtin_strncmp): Likewise for local "seq".
5074 (expand_builtin_signbit): Likewise for local "last".
5075 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
5076 from rtx to rtx_code_label *.
5077 (expand_stack_restore): Strengthen local "prev" from rtx to
5080 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5082 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
5084 (struct btr_def_s): Likewise.
5085 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
5087 (add_btr_def): Likewise.
5088 (new_btr_user): Likewise.
5089 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
5091 (link_btr_uses): Likewise.
5092 (move_btr_def): Likewise for locals "insp", "old_insn",
5093 "new_insn". Add checked cast to rtx_insn * for now on result of
5095 (can_move_up): Strengthen param "insn" from const_rtx to
5098 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5100 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
5102 (get_uncond_jump_length): Likewise for locals "label", "jump".
5103 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
5105 (add_labels_and_missing_jumps): Likewise for local "new_jump".
5106 (fix_up_fall_thru_edges): Likewise for local "old_jump".
5107 (find_jump_block): Likewise for local "insn".
5108 (fix_crossing_conditional_branches): Likewise for locals
5109 "old_jump", "new_jump".
5110 (fix_crossing_unconditional_branches): Likewise for locals
5111 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
5112 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
5114 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5116 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
5118 (struct mem_insn): Likewise for field "insn".
5119 (reg_next_use): Strengthen from rtx * to rtx_insn **.
5120 (reg_next_inc_use): Likewise.
5121 (reg_next_def): Likewise.
5122 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
5123 from rtx to rtx_insn *.
5124 (move_insn_before): Likewise for param "next_insn" and local "insns".
5125 (attempt_change): Likewise for local "mov_insn".
5126 (try_merge): Likewise for param "last_insn".
5127 (get_next_ref): Likewise for return type and local "insn".
5128 Strengthen param "next_array" from rtx * to rtx_insn **.
5129 (parse_add_or_inc): Strengthen param "insn" from rtx to
5131 (find_inc): Likewise for locals "insn" and "other_insn" (three of
5133 (merge_in_block): Likewise for locals "insn", "curr",
5135 (pass_inc_dec::execute): Update allocations of the arrays to
5136 reflect the stronger types.
5138 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5140 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
5141 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
5142 from rtx to rtx_code_label *.
5144 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5146 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
5149 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5151 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
5152 generated a warning and prevented bootstrapping the compiler.
5154 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5156 * rtl.h (delete_related_insns): Strengthen return type from rtx to
5159 * jump.c (delete_related_insns): Likewise, also for locals "next"
5162 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5164 * genautomata.c (output_internal_insn_latency_func): When writing
5165 the function "internal_insn_latency" to insn-automata.c,
5166 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
5167 allowing the optional guard function of (define_bypass) clauses to
5168 expect a pair of rtx_insn *, rather than a pair of rtx.
5169 (output_insn_latency_func): When writing the function
5170 "insn_latency", add an "uncast_" prefix to params "insn" and
5171 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
5172 using checked casts from the params, thus enabling the above
5173 change to the generated "internal_insn_latency" function.
5175 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
5177 PR tree-optimization/62091
5178 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
5179 handle correctly arrays.
5180 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
5182 (record_known_type): Walk into inner type.
5183 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
5184 condition on no type changes.
5186 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5188 * genattrtab.c (write_attr_get): Within the generated get_attr_
5189 functions, rename param "insn" to "uncast_insn" and reintroduce
5190 "insn" as an local rtx_insn * using a checked cast, so that "insn"
5191 is an rtx_insn * within insn-attrtab.c
5193 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5195 * output.h (peephole): Strengthen return type from rtx to
5197 * rtl.h (delete_for_peephole): Likewise for both params.
5198 * genpeep.c (main): In generated "peephole" function, strengthen
5199 return type and local "insn" from rtx to rtx_insn *. For now,
5200 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5201 rtx_insn *, with a checked cast.
5202 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5203 locals "insn", "next", "prev" from rtx to rtx_insn *.
5205 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5207 PR tree-optimization/62112
5208 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5209 * gimple-iterator.h (gsi_replace): Return bool.
5210 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5211 moved from ref_may_alias_global_p.
5212 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5214 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5215 (stmt_kills_ref_p_1): Rename...
5216 (stmt_kills_ref_p): ... to this.
5217 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5218 stmt_kills_ref_p): Declare.
5219 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5220 Move the self-assignment case...
5221 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5223 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5225 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5227 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5228 "after". For now, don't strengthen param "trial", which requires
5229 adding checked casts when returning it.
5231 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5233 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5234 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5235 "var_location" hook from rtx to rtx_insn *.
5236 (debug_nothing_rtx): Delete in favor of...
5237 (debug_nothing_rtx_code_label): New prototype.
5238 (debug_nothing_rtx_rtx): Delete unused prototype.
5239 (debug_nothing_rtx_insn): New prototype.
5241 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5242 invoking debug_hooks->var_location (in two places, one in a NOTE
5243 case of a switch statement, the other guarded by a CALL_P
5244 conditional. Add checked cast to rtx_code_label * when invoking
5245 debug_hooks->label (within CODE_LABEL case of switch statement).
5247 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5248 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5249 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5250 (xcoff_debug_hooks): Likewise.
5251 * debug.c (do_nothing_debug_hooks): Likewise.
5252 (debug_nothing_rtx): Delete in favor of...
5253 (debug_nothing_rtx_insn): New function.
5254 (debug_nothing_rtx_rtx): Delete unused function.
5255 (debug_nothing_rtx_code_label): New function.
5256 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5257 debug_nothing_rtx to debug_nothing_rtx_code_label.
5258 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5260 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5261 debug_nothing_rtx to debug_nothing_rtx_insn.
5262 (sdbout_label): Strengthen param "insn" from rtx to
5264 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5265 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5266 "var_location" hook from debug_nothing_rtx to
5267 debug_nothing_rtx_insn.
5269 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5271 * recog.h (insn_output_fn): Update this function typedef to match
5272 the changes below to the generated output functions, strengthening
5273 the 2nd param from rtx to rtx_insn *.
5275 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5276 insn when invoking an output function, to match the new signature
5277 of insn_output_fn with a stronger second param.
5279 * genconditions.c (write_header): In the generated code for
5280 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5281 to match the other changes in this patch.
5283 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5284 the generated "gen_" functions from rtx to rtx_insn * within their
5287 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5288 the subfunctions within the generated "recog_", "split", "peephole2"
5289 function trees from rtx to rtx_insn *. For now, the top-level
5290 generated functions ("recog", "split", "peephole2") continue to
5291 take a plain rtx for "insn", to avoid introducing dependencies on
5292 other patches. Rename this 2nd param from "insn" to
5293 "uncast_insn", and reintroduce "insn" as a local variable of type
5294 rtx_insn *, initialized at the top of the generated function with
5295 a checked cast on "uncast_insn".
5296 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5297 the generated "gen_" functions from rtx to rtx_insn * within their
5300 * genoutput.c (process_template): Strengthen the 2nd param within
5301 the generated "output_" functions "insn" from rtx to rtx_insn *.
5303 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5305 * tree-profile.c (tree_profiling): Skip external functions
5306 when doing coverage instrumentation.
5307 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5309 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5311 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5312 (vec_mergee): Likewise.
5313 (vec_mergeo): Likewise.
5314 (vec_cntlz): Likewise.
5315 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5316 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5317 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5319 * doc/extend.texi: Document various forms of vec_cpsgn,
5320 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5321 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5322 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5323 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5324 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5326 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5328 * config/rs6000/rs6000.c (context.h): New include.
5329 (tree-pass.h): Likewise.
5330 (make_pass_analyze_swaps): New decl.
5331 (rs6000_option_override): Register pass_analyze_swaps.
5332 (swap_web_entry): New subsclass of web_entry_base (df.h).
5333 (special_handling_values): New enum.
5334 (union_defs): New function.
5335 (union_uses): Likewise.
5336 (insn_is_load_p): Likewise.
5337 (insn_is_store_p): Likewise.
5338 (insn_is_swap_p): Likewise.
5339 (rtx_is_swappable_p): Likewise.
5340 (insn_is_swappable_p): Likewise.
5341 (chain_purpose): New enum.
5342 (chain_contains_only_swaps): New function.
5343 (mark_swaps_for_removal): Likewise.
5344 (swap_const_vector_halves): Likewise.
5345 (adjust_subreg_index): Likewise.
5346 (permute_load): Likewise.
5347 (permute_store): Likewise.
5348 (handle_special_swappables): Likewise.
5349 (replace_swap_with_copy): Likewise.
5350 (dump_swap_insn_table): Likewise.
5351 (rs6000_analyze_swaps): Likewise.
5352 (pass_data_analyze_swaps): New pass_data.
5353 (pass_analyze_swaps): New rtl_opt_pass.
5354 (make_pass_analyze_swaps): New function.
5355 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5357 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5359 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5360 type from rtx to rtx_insn *.
5361 (create_copy_of_insn_rtx): Likewise.
5362 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5363 (create_copy_of_insn_rtx): Likewise, also for local "res".
5365 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5367 * rtl.h (find_first_parameter_load): Strengthen return type from
5369 * rtlanal.c (find_first_parameter_load): Strengthen return type
5370 from rtx to rtx_insn *. Add checked cast for now, to postpone
5371 strengthening the params.
5373 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5376 * diagnostic.c: Set default caret.
5377 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5379 * diagnostic.h (struct diagnostic_context):
5381 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5383 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5384 (sel_bb_head): Strengthen return type insn_t (currently just an
5386 (sel_bb_end): Likewise.
5388 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5389 (sel_bb_head): Strengthen return type and local "head" from
5390 insn_t (currently just an rtx) to rtx_insn *.
5391 (sel_bb_end): Likewise for return type.
5392 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5395 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5397 * basic-block.h (get_last_bb_insn): Strengthen return type from
5399 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5402 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5405 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5407 (diagnostic_report_diagnostic): ... from here.
5408 * toplev.c (general_init): Move code to c-family.
5410 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5412 * df.h (web_entry_base): Replace existing struct web_entry with a
5413 new class web_entry_base with only the predecessor member.
5414 (unionfind_root): Remove declaration and move to class member.
5415 (unionfind_union): Remove declaration and move to friend
5417 (union_defs): Remove declaration.
5418 * web.c (web_entry_base::unionfind_root): Modify to be member
5419 function and adjust accessors.
5420 (unionfind_union): Modify to be friend function and adjust
5422 (web_entry): New subclass of web_entry_base containing the reg
5424 (union_match_dups): Modify for struct -> class changes.
5425 (union_defs): Likewise.
5426 (entry_register): Likewise.
5427 (pass_web::execute): Likewise.
5429 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5431 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5432 builtin define __VEC_ELEMENT_REG_ORDER__.
5434 2014-08-20 Martin Jambor <mjambor@suse.cz>
5435 Wei Mi <wmi@google.com>
5439 * tree-ssa-operands.c (update_stmt_operands): Remove
5440 MODIFIED_NORETURN_CALLS.
5441 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5442 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5443 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5444 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5445 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5446 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5447 (gimple_call_set_ctrl_altering): New func.
5448 (gimple_call_ctrl_altering_p): Ditto.
5449 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5450 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5451 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5452 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5453 remove MODIFIED_NORETURN_CALLS.
5455 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5457 * coverage.c (coverage_compute_profile_id): Return non-0;
5458 also handle symbols with unique name.
5459 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5461 2014-08-20 Steve Ellcey <sellcey@mips.com>
5464 * doc/sourcebuild.texi (non_strict_align): New.
5466 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5468 * cgraphunit.c (ipa_passes, compile): Reshedule
5469 symtab_remove_unreachable_nodes passes; update comments.
5470 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5471 TODO_remove_functions before the pass; the functions ought to be
5473 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5474 TODO_remove_functions.
5475 * passes.c (pass_data_early_local_passes): Do not schedule function
5477 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5479 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5482 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5483 before setting the option.
5484 * diagnostic.c (diagnostic_classify_diagnostic): Record
5485 command-line status.
5487 2014-08-20 Richard Biener <rguenther@suse.de>
5490 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5491 to build uint{16,32,64}_type_node.
5493 2014-08-20 Terry Guo <terry.guo@arm.com>
5495 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5496 with immediate_operand.
5498 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5500 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5501 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5504 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5506 PR preprocessor/51303
5507 * incpath.c (remove_duplicates): Use cpp_warning.
5509 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5513 * doc/options.texi (CPP): Document it.
5514 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5515 * optc-gen.awk: Handle CPP.
5516 * opth-gen.awk: Likewise.
5518 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5520 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5522 (duplicate_insn_chain): Likewise.
5523 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5524 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5525 checked cast for now (until we can strengthen the params in the
5527 (duplicate_insn_chain): Likewise.
5529 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5531 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5533 (prev_cc0_setter): Likewise.
5535 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5536 rtx_insn *, adding checked casts for now as necessary.
5537 (prev_cc0_setter): Likewise.
5539 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5541 * expr.h (emit_move_insn): Strengthen return type from rtx to
5543 (emit_move_insn_1): Likewise.
5544 (emit_move_complex_push): Likewise.
5545 (emit_move_complex_parts): Likewise.
5547 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5548 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5550 (emit_move_complex_push): Strengthen return type from rtx to
5552 (emit_move_complex): Likewise, also for local "ret".
5553 (emit_move_ccmode): Likewise.
5554 (emit_move_multi_word): Likewise for return type and locals
5556 (emit_move_insn_1): Likewise for return type and locals "result",
5558 (emit_move_insn): Likewise for return type and local "last_insn".
5559 (compress_float_constant): Likewise.
5561 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5563 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5564 from rtx to rtx_insn *.
5566 * rtl.h (emit_insn_before): Likewise.
5567 (emit_insn_before_noloc): Likewise.
5568 (emit_insn_before_setloc): Likewise.
5569 (emit_jump_insn_before): Likewise.
5570 (emit_jump_insn_before_noloc): Likewise.
5571 (emit_jump_insn_before_setloc): Likewise.
5572 (emit_call_insn_before): Likewise.
5573 (emit_call_insn_before_noloc): Likewise.
5574 (emit_call_insn_before_setloc): Likewise.
5575 (emit_debug_insn_before): Likewise.
5576 (emit_debug_insn_before_noloc): Likewise.
5577 (emit_debug_insn_before_setloc): Likewise.
5578 (emit_label_before): Likewise.
5579 (emit_insn_after): Likewise.
5580 (emit_insn_after_noloc): Likewise.
5581 (emit_insn_after_setloc): Likewise.
5582 (emit_jump_insn_after): Likewise.
5583 (emit_jump_insn_after_noloc): Likewise.
5584 (emit_jump_insn_after_setloc): Likewise.
5585 (emit_call_insn_after): Likewise.
5586 (emit_call_insn_after_noloc): Likewise.
5587 (emit_call_insn_after_setloc): Likewise.
5588 (emit_debug_insn_after): Likewise.
5589 (emit_debug_insn_after_noloc): Likewise.
5590 (emit_debug_insn_after_setloc): Likewise.
5591 (emit_label_after): Likewise.
5592 (emit_insn): Likewise.
5593 (emit_debug_insn): Likewise.
5594 (emit_jump_insn): Likewise.
5595 (emit_call_insn): Likewise.
5596 (emit_label): Likewise.
5597 (gen_clobber): Likewise.
5598 (emit_clobber): Likewise.
5599 (gen_use): Likewise.
5600 (emit_use): Likewise.
5603 (emit_barrier_before): Strengthen return type from rtx to
5605 (emit_barrier_after): Likewise.
5606 (emit_barrier): Likewise.
5608 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5609 from rtx to rtx_insn *. Add checked casts for now when converting
5610 "last" from rtx to rtx_insn *.
5611 (emit_insn_before_noloc): Likewise for return type.
5612 (emit_jump_insn_before_noloc): Likewise.
5613 (emit_call_insn_before_noloc): Likewise.
5614 (emit_debug_insn_before_noloc): Likewise.
5615 (emit_barrier_before): Strengthen return type and local "insn"
5616 from rtx to rtx_barrier *.
5617 (emit_label_before): Strengthen return type from rtx to
5618 rtx_insn *. Add checked cast for now when returning param
5619 (emit_pattern_after_noloc): Strengthen return type from rtx to
5620 rtx_insn *. Add checked casts for now when converting "last" from
5622 (emit_insn_after_noloc): Strengthen return type from rtx to
5624 (emit_jump_insn_after_noloc): Likewise.
5625 (emit_call_insn_after_noloc): Likewise.
5626 (emit_debug_insn_after_noloc): Likewise.
5627 (emit_barrier_after): Strengthen return type from rtx to
5629 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5630 Add checked cast for now when converting "label" from rtx to
5632 (emit_pattern_after_setloc): Strengthen return type from rtx to
5633 rtx_insn *. Add checked casts for now when converting "last" from
5635 (emit_pattern_after): Strengthen return type from rtx to
5637 (emit_insn_after_setloc): Likewise.
5638 (emit_insn_after): Likewise.
5639 (emit_jump_insn_after_setloc): Likewise.
5640 (emit_jump_insn_after): Likewise.
5641 (emit_call_insn_after_setloc): Likewise.
5642 (emit_call_insn_after): Likewise.
5643 (emit_debug_insn_after_setloc): Likewise.
5644 (emit_debug_insn_after): Likewise.
5645 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5646 when converting "last" from rtx to rtx_insn *.
5647 (emit_pattern_before): Strengthen return type from rtx to
5649 (emit_insn_before_setloc): Likewise.
5650 (emit_insn_before): Likewise.
5651 (emit_jump_insn_before_setloc): Likewise.
5652 (emit_jump_insn_before): Likewise.
5653 (emit_call_insn_before_setloc): Likewise.
5654 (emit_call_insn_before): Likewise.
5655 (emit_debug_insn_before_setloc): Likewise.
5656 (emit_debug_insn_before): Likewise.
5657 (emit_insn): Strengthen return type and locals "last", "insn",
5658 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5659 within cases where we know we have an insn.
5660 (emit_debug_insn): Likewise.
5661 (emit_jump_insn): Likewise.
5662 (emit_call_insn): Strengthen return type and local "insn" from rtx
5664 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5665 a checked cast to rtx_insn * for now on "label".
5666 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5667 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5668 (emit_use): Likewise.
5669 (gen_use): Likewise, also for local "seq".
5670 (emit): Likewise for return type and local "insn".
5671 (rtx_insn): Likewise for return type and local "new_rtx".
5673 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5674 from rtx to rtx_barrier *.
5676 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5677 changed return type from rtx to rtx_insn *, we must update
5678 "emit_fn" type, and this in turn means updating...
5679 (frame_insn): ...this. Strengthen return type from rtx to
5680 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5682 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5684 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5685 rtx to rtx_jump_table_data *. Also for local.
5686 * rtl.h (emit_jump_table_data): Likewise.
5688 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5690 * basic-block.h (create_basic_block_structure): Strengthen third
5691 param "bb_note" from rtx to rtx_note *.
5692 * rtl.h (emit_note_before): Strengthen return type from rtx to
5694 (emit_note_after): Likewise.
5695 (emit_note): Likewise.
5696 (emit_note_copy): Likewise. Also, strengthen param similarly.
5697 * function.h (struct rtl_data): Strengthen field
5698 "x_stack_check_probe_note" from rtx to rtx_note *.
5700 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5701 from rtx to rtx_note *.
5702 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5703 "bb_note" from rtx to rtx_note *.
5704 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5705 when calling emit_note_copy.
5706 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5708 (emit_note_after): Likewise.
5709 (emit_note_before): Likewise.
5710 (emit_note_copy): Likewise. Also, strengthen param similarly.
5711 (emit_note): Likewise.
5712 * except.c (emit_note_eh_region_end): Likewise for return type.
5713 Strengthen local "next" from rtx to rtx_insn *.
5714 (convert_to_eh_region_ranges): Strengthen local "note"
5715 from rtx to rtx_note *.
5716 * final.c (change_scope): Likewise.
5717 (reemit_insn_block_notes): Likewise, for both locals named "note".
5718 Also, strengthen local "insn" from rtx to rtx_insn *.
5719 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5721 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5722 strengthen local "seq" from rtx to rtx_insn *.
5723 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5725 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5727 (get_bb_note_from_pool): Strengthen return type from rtx to
5729 (sel_create_basic_block): Strengthen local "new_bb_note" from
5730 insn_t to rtx_note *.
5731 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5732 "note" from rtx to rtx_note *.
5733 (emit_notes_in_bb): Likewise.
5735 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5737 * function.h (struct rtl_data): Strengthen field
5738 "x_parm_birth_insn" from rtx to rtx_insn *.
5739 * function.c (struct assign_parm_data_all): Strengthen fields
5740 "first_conversion_insn" and "last_conversion_insn" from rtx to
5743 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5745 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5746 to rtx_insn *; also for local "var_end_seq".
5747 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5748 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5750 (expand_gimple_cond): Likewise for locals "last2" and "last".
5751 (mark_transaction_restart_calls): Likewise for local "insn".
5752 (expand_gimple_stmt): Likewise for return type and locals "last"
5754 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5755 (avoid_complex_debug_insns): Likewise for param "insn".
5756 (expand_debug_locations): Likewise for locals "insn", "last",
5757 "prev_insn" and "insn2".
5758 (expand_gimple_basic_block): Likewise for local "last".
5759 (construct_exit_block): Likewise for locals "head", "end",
5761 (pass_expand::execute): Likewise for locals "var_seq",
5762 "var_ret_seq", "next".
5764 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5766 * asan.h (asan_emit_stack_protection): Strengthen return type from
5768 * asan.c (asan_emit_stack_protection): Likewise. Add local
5769 "insns" to hold the return value.
5771 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5773 * basic-block.h (bb_note): Strengthen return type from rtx to
5775 * sched-int.h (bb_note): Likewise.
5776 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5778 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5780 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5783 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5784 "insn" from rtx to rtx_insn *.
5785 (make_debug_insn_raw): Strengthen return type from rtx to
5786 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5787 (make_jump_insn_raw): Strengthen return type from rtx to
5788 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5789 (make_call_insn_raw): Strengthen return type from rtx to
5790 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5791 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5792 callback from rtx to rtx_insn *; likewise for local "insn" and
5793 "next", adding a checked cast to rtx_insn in the relevant cases of
5794 the switch statement.
5795 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5796 callback from rtx to rtx_insn *.
5797 (emit_pattern_after_setloc): Likewise.
5798 (emit_pattern_after): Likewise.
5799 (emit_pattern_before_setloc): Likewise.
5800 (emit_pattern_before): Likewise.
5802 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5804 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5806 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5807 accepting an rtx_insn *.
5808 (last_call_insn): Strengthen return type from rtx to
5811 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5813 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5814 "insns" from rtx to rtx_insn *.
5815 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5816 locals "insn" and "prev".
5818 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5820 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5821 rtx_jump_table_data **.
5823 * cfgbuild.c (make_edges): Introduce local "table", using it in
5824 place of "tmp" for jump table data.
5825 (find_bb_boundaries): Strengthen local "table" from rtx to
5826 rtx_jump_table_data *.
5827 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5828 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5829 (try_crossjump_to_edge): Likewise.
5830 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5832 (patch_jump_insn): Introduce local "table", using it in place of
5833 "tmp" for jump table data.
5834 (force_nonfallthru_and_redirect): Introduce local "table", so that
5835 call to tablejump_p can receive an rtx_jump_table_data **. Update
5836 logic around the call to overwrite "note" appropriately if
5837 tablejump_p returns non-zero.
5838 (get_last_bb_insn): Introduce local "table", using it in place of
5839 "tmp" for jump table data.
5840 * dwarf2cfi.c (create_trace_edges): Likewise.
5842 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5843 from rtx to rtx_jump_table_data *.
5844 (create_fix_barrier): Strengthen local "tmp" from rtx to
5845 rtx_jump_table_data *.
5846 (arm_reorg): Likewise for local "table".
5848 * config/s390/s390.c (s390_chunkify_start): Likewise.
5850 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5852 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5853 rtx to rtx_jump_table_data *.
5855 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5856 rtx_jump_table_data **. Add a checked cast when writing through
5857 the pointer: we know there that local "table" is non-NULL and that
5858 JUMP_TABLE_DATA_P (table) holds.
5859 (label_is_jump_target_p): Introduce local "table", using it in
5860 place of "tmp" for jump table data.
5862 2014-08-19 Marek Polacek <polacek@redhat.com>
5865 * doc/invoke.texi: Document -Wbool-compare.
5867 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5869 * rtl.h (entry_of_function): Strengthen return type from rtx to
5871 * cfgrtl.c (entry_of_function): Likewise.
5873 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5875 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5876 rtx_insn *, adding a checked cast for now.
5877 (get_last_insn): Likewise.
5879 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5881 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5884 * emit-rtl.c (gen_label_rtx): Likewise.
5886 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5888 * rtl.h (previous_insn): Strengthen return type from rtx to
5890 (next_insn): Likewise.
5891 (prev_nonnote_insn): Likewise.
5892 (prev_nonnote_insn_bb): Likewise.
5893 (next_nonnote_insn): Likewise.
5894 (next_nonnote_insn_bb): Likewise.
5895 (prev_nondebug_insn): Likewise.
5896 (next_nondebug_insn): Likewise.
5897 (prev_nonnote_nondebug_insn): Likewise.
5898 (next_nonnote_nondebug_insn): Likewise.
5899 (prev_real_insn): Likewise.
5900 (next_real_insn): Likewise.
5901 (prev_active_insn): Likewise.
5902 (next_active_insn): Likewise.
5904 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5905 rtx_insn *, adding a checked cast.
5906 (previous_insn): Likewise.
5907 (next_nonnote_insn): Likewise.
5908 (next_nonnote_insn_bb): Likewise.
5909 (prev_nonnote_insn): Likewise.
5910 (prev_nonnote_insn_bb): Likewise.
5911 (next_nondebug_insn): Likewise.
5912 (prev_nondebug_insn): Likewise.
5913 (next_nonnote_nondebug_insn): Likewise.
5914 (prev_nonnote_nondebug_insn): Likewise.
5915 (next_real_insn): Likewise.
5916 (prev_real_insn): Likewise.
5917 (next_active_insn): Likewise.
5918 (prev_active_insn): Likewise.
5920 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5921 param "stepfunc" so that it returns an rtx_insn * rather than an
5922 rtx, to track the change to prev_nonnote_insn_bb, which is the
5923 only function this is called with.
5924 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5926 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5928 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5931 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5933 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5934 (class rtx_nonjump_insn): Likewise.
5935 (class rtx_jump_insn): Likewise.
5936 (class rtx_call_insn): Likewise.
5937 (class rtx_jump_table_data): Likewise.
5938 (class rtx_barrier): Likewise.
5939 (class rtx_code_label): Likewise.
5940 (class rtx_note): Likewise.
5942 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5943 adding the invariant DEBUG_INSN_P (X).
5944 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5945 the invariant NONJUMP_INSN_P (X).
5946 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5947 the invariant JUMP_P (X).
5948 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5949 the invariant CALL_P (X).
5950 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5951 invariant JUMP_TABLE_DATA_P (X).
5952 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5953 invariant BARRIER_P (X).
5954 (class rtx_code_label): New, a subclass of rtx_insn, adding
5955 the invariant LABEL_P (X).
5956 (class rtx_note): New, a subclass of rtx_insn, adding
5957 the invariant NOTE_P(X).
5958 (is_a_helper <rtx_debug_insn *>::test): New.
5959 (is_a_helper <rtx_nonjump_insn *>::test): New.
5960 (is_a_helper <rtx_jump_insn *>::test): New.
5961 (is_a_helper <rtx_call_insn *>::test): New.
5962 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5963 overloaded for both rtx and rtx_insn *.
5964 (is_a_helper <rtx_barrier *>::test): New.
5965 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5966 for both rtx and rtx_insn *.
5967 (is_a_helper <rtx_note *>::test): New.
5969 2014-08-19 Marek Polacek <polacek@redhat.com>
5971 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5972 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5973 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5974 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5976 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5978 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5979 rtx_insn *. To help with transition, for now, convert from an
5980 access macro into a pair of functions: BND_TO, returning an
5982 (SET_BND_TO): New function, for use where BND_TO is used as an
5985 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5987 (BND_TO): New function, adding a checked cast.
5988 (SET_BND_TO): New function.
5990 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5992 (compute_av_set_on_boundaries): Likewise.
5994 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5996 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5997 destination if it is used in source.
5998 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5999 (*popcount<mode>2_falsedep_1): Likewise.
6001 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
6004 * configure.ac: Set install_gold_as_default to no first.
6005 * configure: Regenerated.
6007 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6009 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
6010 "note_list" field will eventually be an rtx_insn *. To help with
6011 transition, for now, convert from an access macro into a pair of
6012 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
6013 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
6016 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
6017 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
6019 * sel-sched-ir.c (init_bb): Likewise.
6020 (sel_restore_notes): Likewise.
6021 (move_bb_info): Likewise.
6022 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
6023 (SET_BB_NOTE_LIST): New function.
6025 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6027 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
6028 field will eventually be an rtx_insn *. To help with transition,
6029 for now, convert from an access macro into a pair of functions:
6030 VINSN_INSN_RTX, returning an rtx_insn *, and...
6031 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
6032 is used as an lvalue.
6034 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
6035 SET_VINSN_INSN_RTX where it's used as an lvalue.
6036 (VINSN_INSN_RTX): New function.
6037 (SET_VINSN_INSN_RTX): New function.
6039 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6041 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
6042 eventually be rtx_insn *, but to help with transition, for now,
6043 convert from an access macro into a pair of functions: DEP_PRO
6044 returning an rtx_insn * and...
6045 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
6046 lvalue, returning an rtx&.
6047 (DEP_CON): Analogous changes to DEP_PRO above.
6048 (SET_DEP_CON): Likewise.
6050 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
6051 an lvalue to SET_DEP_CON.
6052 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
6053 (sd_copy_back_deps): Likewise for DEP_CON.
6054 (DEP_PRO): New function, adding a checked cast for now.
6055 (DEP_CON): Likewise.
6056 (SET_DEP_PRO): New function.
6057 (SET_DEP_CON): Likewise.
6059 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
6061 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
6062 (extra_options): Add i386/cygwin.opt.
6063 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
6064 (CPP_SPEC): Accept -pthread.
6066 (GOMP_SELF_SPECS): Update comment.
6067 * config/i386/cygwin.opt: New file for -pthread flag.
6069 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6071 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
6072 * df.h (DF_REF_INSN): Convert from a macro to a function, so
6073 that we can return an rtx_insn *.
6075 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
6077 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
6078 when building executables, not DLLs. Add --large-address-aware
6079 under the same conditions.
6080 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
6081 when building executables, not DLLs. Add --large-address-aware
6082 under the same conditions when using -m32.
6084 * config/i386/cygwin-stdint.h: Throughout, make type
6085 definitions dependent on target architecture, not host.
6087 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6089 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
6090 the return type from rtx to rtx_insn *, which will enable various
6091 conversions in followup patches. For now this is is done by a
6093 (NEXT_INSN): Likewise.
6094 (SET_PREV_INSN): Convert to an inline function. This is intended
6095 for use as an lvalue, and so returns an rtx& to allow in-place
6097 (SET_NEXT_INSN): Likewise.
6099 2014-07-08 Mark Wielaard <mjw@redhat.com>
6102 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
6104 2014-08-19 Marek Polacek <polacek@redhat.com>
6107 * cgraphunit.c (handle_alias_pairs): Fix condition.
6109 2014-08-19 Richard Biener <rguenther@suse.de>
6111 * gimple-fold.c (fold_gimple_assign): Properly build a
6112 null-pointer constant when devirtualizing addresses.
6114 2014-07-07 Mark Wielaard <mjw@redhat.com>
6116 * dwarf2out.c (decl_quals): New function.
6117 (modified_type_die): Take one cv_quals argument instead of two,
6118 one for const and one for volatile.
6119 (add_type_attribute): Likewise.
6120 (generic_parameter_die): Call add_type_attribute with one modifier
6122 (base_type_for_mode): Likewise.
6123 (add_bounds_info): Likewise.
6124 (add_subscript_info): Likewise.
6125 (gen_array_type_die): Likewise.
6126 (gen_descr_array_type_die): Likewise.
6127 (gen_entry_point_die): Likewise.
6128 (gen_enumeration_type_die): Likewise.
6129 (gen_formal_parameter_die): Likewise.
6130 (gen_subprogram_die): Likewise.
6131 (gen_variable_die): Likewise.
6132 (gen_const_die): Likewise.
6133 (gen_field_die): Likewise.
6134 (gen_pointer_type_die): Likewise.
6135 (gen_reference_type_die): Likewise.
6136 (gen_ptr_to_mbr_type_die): Likewise.
6137 (gen_inheritance_die): Likewise.
6138 (gen_subroutine_type_die): Likewise.
6139 (gen_typedef_die): Likewise.
6140 (force_type_die): Likewise.
6142 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6144 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
6146 * configure: Regenerate.
6148 2014-08-19 Richard Biener <rguenther@suse.de>
6150 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
6151 DECL_EXTERNALs in BLOCKs as non-references.
6152 * tree-streamer-out.c (streamer_write_chain): Likewise.
6154 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
6155 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6156 Anna Tikhonova <anna.tikhonova@intel.com>
6157 Ilya Tocar <ilya.tocar@intel.com>
6158 Andrey Turetskiy <andrey.turetskiy@intel.com>
6159 Ilya Verbin <ilya.verbin@intel.com>
6160 Kirill Yukhin <kirill.yukhin@intel.com>
6161 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6163 * config/i386/sse.md
6164 (define_mode_iterator VI48_AVX512F): Delete.
6165 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
6166 (define_mode_iterator VI2_AVX512VL): Ditto.
6167 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
6170 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
6172 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
6173 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
6174 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6175 with VI48_AVX512F_AVX512VL): New.
6176 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6177 with VI2_AVX512VL): Ditto.
6179 2014-08-19 Marek Polacek <polacek@redhat.com>
6181 * doc/invoke.texi: Document -Wc99-c11-compat.
6183 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6185 * rtl.h (PREV_INSN): Split macro in two: the existing one,
6187 (SET_PREV_INSN): New macro, for use as an lvalue.
6188 (NEXT_INSN, SET_NEXT_INSN): Likewise.
6190 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
6191 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
6192 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6193 (fixup_abnormal_edges): Likewise.
6194 (unlink_insn_chain): Likewise.
6195 (fixup_reorder_chain): Likewise.
6196 (cfg_layout_delete_block): Likewise.
6197 (cfg_layout_merge_blocks): Likewise.
6198 * combine.c (update_cfg_for_uncondjump): Likewise.
6199 * emit-rtl.c (link_insn_into_chain): Likewise.
6200 (remove_insn): Likewise.
6201 (delete_insns_since): Likewise.
6202 (reorder_insns_nobb): Likewise.
6203 (emit_insn_after_1): Likewise.
6204 * final.c (rest_of_clean_state): Likewise.
6205 (final_scan_insn): Likewise.
6206 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6207 * haifa-sched.c (concat_note_lists): Likewise.
6208 (remove_notes): Likewise.
6209 (restore_other_notes): Likewise.
6210 (move_insn): Likewise.
6211 (unlink_bb_notes): Likewise.
6212 (restore_bb_notes): Likewise.
6213 * jump.c (delete_for_peephole): Likewise.
6214 * optabs.c (emit_libcall_block_1): Likewise.
6215 * reorg.c (emit_delay_sequence): Likewise.
6216 (fill_simple_delay_slots): Likewise.
6217 * sel-sched-ir.c (sel_move_insn): Likewise.
6218 (sel_remove_insn): Likewise.
6219 (get_bb_note_from_pool): Likewise.
6220 * sel-sched.c (move_nop_to_previous_block): Likewise.
6222 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6223 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6224 (c6x_gen_bundles): Likewise.
6225 (hwloop_optimize): Likewise.
6226 * config/frv/frv.c (frv_function_prologue): Likewise.
6227 (frv_register_nop): Likewise.
6228 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6229 (ia64_reorg): Likewise.
6230 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6231 (mep_make_bundle): Likewise.
6232 (mep_bundle_insns): Likewise.
6233 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6234 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6235 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6237 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6239 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6240 return type from rtx to rtx_insn *.
6242 (BB_HEADER): Likewise.
6243 (BB_FOOTER): Likewise.
6244 (SET_BB_HEAD): Convert to a function.
6245 (SET_BB_END): Likewise.
6246 (SET_BB_HEADER): Likewise.
6247 (SET_BB_FOOTER): Likewise.
6249 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6250 Strengthen the return type from rtx to rtx_insn *. For now, this
6251 is done by adding a checked cast, but this will eventually
6252 become a field lookup.
6254 (BB_HEADER): Likewise.
6255 (BB_FOOTER): Likewise.
6256 (SET_BB_HEAD): New function, from macro of same name. This is
6257 intended for use as an lvalue, and so returns an rtx& to allow
6258 in-place modification.
6259 (SET_BB_END): Likewise.
6260 (SET_BB_HEADER): Likewise.
6261 (SET_BB_FOOTER): Likewise.
6263 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6265 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6267 (SET_BB_HEAD): New macro, for use as a lvalue.
6268 (BB_END, SET_BB_END): Likewise.
6269 (BB_HEADER, SET_BB_HEADER): Likewise.
6270 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6272 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6273 of BB_* macros into SET_BB_* macros.
6274 (fix_crossing_unconditional_branches): Likewise.
6275 * caller-save.c (save_call_clobbered_regs): Likewise.
6276 (insert_one_insn): Likewise.
6277 * cfgbuild.c (find_bb_boundaries): Likewise.
6278 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6279 (outgoing_edges_match): Likewise.
6280 (try_optimize_cfg): Likewise.
6281 * cfgexpand.c (expand_gimple_cond): Likewise.
6282 (expand_gimple_tailcall): Likewise.
6283 (expand_gimple_basic_block): Likewise.
6284 (construct_exit_block): Likewise.
6285 * cfgrtl.c (delete_insn): Likewise.
6286 (create_basic_block_structure): Likewise.
6287 (rtl_delete_block): Likewise.
6288 (rtl_split_block): Likewise.
6289 (emit_nop_for_unique_locus_between): Likewise.
6290 (rtl_merge_blocks): Likewise.
6291 (block_label): Likewise.
6292 (try_redirect_by_replacing_jump): Likewise.
6293 (emit_barrier_after_bb): Likewise.
6294 (fixup_abnormal_edges): Likewise.
6295 (record_effective_endpoints): Likewise.
6296 (relink_block_chain): Likewise.
6297 (fixup_reorder_chain): Likewise.
6298 (fixup_fallthru_exit_predecessor): Likewise.
6299 (cfg_layout_duplicate_bb): Likewise.
6300 (cfg_layout_split_block): Likewise.
6301 (cfg_layout_delete_block): Likewise.
6302 (cfg_layout_merge_blocks): Likewise.
6303 * combine.c (update_cfg_for_uncondjump): Likewise.
6304 * emit-rtl.c (add_insn_after): Likewise.
6305 (remove_insn): Likewise.
6306 (reorder_insns): Likewise.
6307 (emit_insn_after_1): Likewise.
6308 * haifa-sched.c (get_ebb_head_tail): Likewise.
6309 (restore_other_notes): Likewise.
6310 (move_insn): Likewise.
6311 (sched_extend_bb): Likewise.
6312 (fix_jump_move): Likewise.
6313 * ifcvt.c (noce_process_if_block): Likewise.
6314 (dead_or_predicable): Likewise.
6315 * ira.c (update_equiv_regs): Likewise.
6316 * reg-stack.c (change_stack): Likewise.
6317 * sel-sched-ir.c (sel_move_insn): Likewise.
6318 * sel-sched.c (move_nop_to_previous_block): Likewise.
6320 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6321 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6323 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6325 * rtl.h (for_each_rtx_in_insn): New function.
6326 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6328 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6330 * coretypes.h (class rtx_insn): Add forward declaration.
6332 * rtl.h: Include is-a.h.
6333 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6334 workaround to ensure gengtype knows inheritance is occurring,
6335 whilst continuing to use the pre-existing special-casing for
6337 (class rtx_insn): New subclass of rtx_def, adding the
6338 invariant that we're dealing with something we can sanely use
6339 INSN_UID, NEXT_INSN, PREV_INSN on.
6340 (is_a_helper <rtx_insn *>::test): New.
6341 (is_a_helper <const rtx_insn *>::test): New.
6343 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6345 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6347 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6349 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6352 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6354 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6355 to BUILT_IN_UNREACHABLE.
6357 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6360 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6362 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6363 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6364 (ffs<mode>2): Do not expand with tzcnt for
6365 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6366 (ffssi2_no_cmove): Ditto.
6367 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6368 (ctz<mode>2): New expander.
6369 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6370 (*ctz<mode>2_falsedep): New insn.
6371 (*ctz<mode>2): Rename from ctz<mode>2.
6372 (clz<mode>2_lzcnt): New expander.
6373 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6374 (*clz<mode>2_lzcnt_falsedep): New insn.
6375 (*clz<mode>2): Rename from ctz<mode>2.
6376 (popcount<mode>2): New expander.
6377 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6378 (*popcount<mode>2_falsedep): New insn.
6379 (*popcount<mode>2): Rename from ctz<mode>2.
6380 (*popcount<mode>2_cmp): Remove.
6381 (*popcountsi2_cmp_zext): Ditto.
6383 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6385 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6386 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6387 * config/microblaze/microblaze.h
6388 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6390 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6393 * configure.ac: Set install_gold_as_default to no for
6395 * configure: Regenerated.
6397 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6399 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6400 * config.in: Add undef of HAVE_isl.
6401 * configure: Regenerate.
6402 * configure.ac: Add definition of HAVE_isl.
6403 * graphite-blocking.c: Add checking of HAVE_isl.
6404 * graphite-dependences.c: Likewise.
6405 * graphite-interchange.c: Likewise.
6406 * graphite-isl-ast-to-gimple.c: Likewise.
6407 * graphite-optimize-isl.c: Likewise.
6408 * graphite-poly.c: Likewise.
6409 * graphite-scop-detection.c: Likewise.
6410 * graphite-sese-to-poly.c: Likewise.
6411 * graphite.c: Likewise.
6412 * toplev.c: Replace the checking of HAVE_cloog with the checking
6415 2014-08-18 Richard Biener <rguenther@suse.de>
6417 PR tree-optimization/62090
6418 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6419 (fold_builtin_3): Do not fold snprintf.
6420 (fold_builtin_4): Likewise.
6421 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6422 moved from builtins.c.
6423 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6424 (gimple_fold_builtin): Do not fold sprintf here.
6426 2014-08-18 Richard Biener <rguenther@suse.de>
6428 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6430 (maybe_canonicalize_mem_ref_addr): ... this function.
6431 (fold_stmt_1): Apply it here before all simplification.
6433 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6436 * cgraph.h (cgraph_node::create_indirect_edge): Add
6437 compute_indirect_info param.
6438 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6439 indirect_info only when it is required.
6440 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6441 indirect_info fore cloned indirect edge.
6443 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6444 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6445 Anna Tikhonova <anna.tikhonova@intel.com>
6446 Ilya Tocar <ilya.tocar@intel.com>
6447 Andrey Turetskiy <andrey.turetskiy@intel.com>
6448 Ilya Verbin <ilya.verbin@intel.com>
6449 Kirill Yukhin <kirill.yukhin@intel.com>
6450 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6452 * config/i386/sse.md
6453 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6454 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6456 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6457 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6458 Anna Tikhonova <anna.tikhonova@intel.com>
6459 Ilya Tocar <ilya.tocar@intel.com>
6460 Andrey Turetskiy <andrey.turetskiy@intel.com>
6461 Ilya Verbin <ilya.verbin@intel.com>
6462 Kirill Yukhin <kirill.yukhin@intel.com>
6463 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6465 * config/i386/sse.md
6466 (define_mode_iterator VF1_AVX512VL): New.
6467 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6468 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6471 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6472 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6473 Anna Tikhonova <anna.tikhonova@intel.com>
6474 Ilya Tocar <ilya.tocar@intel.com>
6475 Andrey Turetskiy <andrey.turetskiy@intel.com>
6476 Ilya Verbin <ilya.verbin@intel.com>
6477 Kirill Yukhin <kirill.yukhin@intel.com>
6478 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6480 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6481 * config/i386/i386.md
6482 (define_code_iterator any_float): New.
6483 (define_code_attr floatsuffix): New.
6484 * config/i386/sse.md
6485 (define_mode_iterator VF1_128_256VL): New.
6486 (define_mode_iterator VF2_512_256VL): New.
6487 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6489 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6490 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6492 (define_mode_attr qq2pssuff): New.
6493 (define_mode_attr sselongvecmode): New.
6494 (define_mode_attr sselongvecmodelower): New.
6495 (define_mode_attr sseintvecmode3): New.
6496 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6498 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6499 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6500 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6501 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6503 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6504 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6505 Anna Tikhonova <anna.tikhonova@intel.com>
6506 Ilya Tocar <ilya.tocar@intel.com>
6507 Andrey Turetskiy <andrey.turetskiy@intel.com>
6508 Ilya Verbin <ilya.verbin@intel.com>
6509 Kirill Yukhin <kirill.yukhin@intel.com>
6510 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6512 * config/i386/sse.md
6513 (define_mode_iterator VF2_AVX512VL): New.
6514 (define_mode_attr sseintvecmode2): New.
6515 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6516 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6517 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6519 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6521 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6523 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6526 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6527 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6528 Anna Tikhonova <anna.tikhonova@intel.com>
6529 Ilya Tocar <ilya.tocar@intel.com>
6530 Andrey Turetskiy <andrey.turetskiy@intel.com>
6531 Ilya Verbin <ilya.verbin@intel.com>
6532 Kirill Yukhin <kirill.yukhin@intel.com>
6533 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6535 * config/i386/i386.md
6536 (define_insn "*movoi_internal_avx"): Add evex version.
6537 (define_insn "*movti_internal"): Ditto.
6539 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6540 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6541 Anna Tikhonova <anna.tikhonova@intel.com>
6542 Ilya Tocar <ilya.tocar@intel.com>
6543 Andrey Turetskiy <andrey.turetskiy@intel.com>
6544 Ilya Verbin <ilya.verbin@intel.com>
6545 Kirill Yukhin <kirill.yukhin@intel.com>
6546 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6548 * config/i386/i386.md
6549 (define_attr "isa"): Add avx512dq, noavx512dq.
6550 (define_attr "enabled"): Ditto.
6551 * config/i386/sse.md
6552 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6554 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6555 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6556 Anna Tikhonova <anna.tikhonova@intel.com>
6557 Ilya Tocar <ilya.tocar@intel.com>
6558 Andrey Turetskiy <andrey.turetskiy@intel.com>
6559 Ilya Verbin <ilya.verbin@intel.com>
6560 Kirill Yukhin <kirill.yukhin@intel.com>
6561 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6563 * config/i386/i386.c
6564 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6565 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6566 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6567 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6568 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6569 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6570 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6571 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6572 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6573 * config/i386/sse.md
6574 (define_mode_iterator VMOVE): Allow V4TI mode.
6575 (define_mode_iterator V_AVX512VL): New.
6576 (define_mode_iterator V): New handling for AVX512VL.
6577 (define_insn "avx512f_load<mode>_mask"): Delete.
6578 (define_insn "<avx512>_load<mode>_mask"): New.
6579 (define_insn "avx512f_store<mode>_mask"): Delete.
6580 (define_insn "<avx512>_store<mode>_mask"): New.
6583 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6586 * asan.c (instrument_derefs): Fix bitfield check.
6588 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6590 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6591 * config/rs6000/htm.md (ttest): Remove clobber.
6592 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6593 (and_operand): Reformat.
6594 (and_2rld_operand): New predicate.
6595 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6597 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6598 parameter. Handle AND directly.
6599 (rs6000_split_logical_di): Remove last parameter.
6600 (rs6000_split_logical): Remove last parameter. Remove obsolete
6602 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6603 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6604 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6605 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6606 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6607 and 5 anonymous splitters): Delete.
6608 (and<mode>3): New expander.
6609 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6610 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6611 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6612 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6613 (floatdisf2_internal1): Remove clobbers.
6614 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6615 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6616 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6617 (and<mode>3 for BOOL_128): Remove clobber.
6618 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6619 rs6000_split_logical.
6620 (*bool<mode>3_internal for BOOL_128): Adjust call of
6621 rs6000_split_logical.
6622 (*boolc<mode>3_internal1 for BOOL_128,
6623 *boolc<mode>3_internal2 for BOOL_128,
6624 *boolcc<mode>3_internal1 for BOOL_128,
6625 *boolcc<mode>3_internal2 for BOOL_128,
6626 *eqv<mode>3_internal1 for BOOL_128,
6627 *eqv<mode>3_internal2 for BOOL_128,
6628 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6629 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6631 (*vec_reload_and_reg_<mptrsize>): Delete.
6633 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6635 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6636 and split, *boolccsi3_internal3 and split): Delete.
6637 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6638 *boolccdi3_internal3 and split): Delete.
6639 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6640 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6642 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6644 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6645 and split, *boolcsi3_internal3 and split): Delete.
6646 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6647 *boolcdi3_internal3 and split): Delete.
6648 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6650 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6652 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6653 <'u'>: Also support printing the low-order 16 bits.
6654 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6655 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6656 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6657 *booldi3_internal3 and split): Delete.
6658 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6659 *bool<mode>3_dot2): New.
6660 (two anonymous define_splits for non_logical_cint_operand): Merge.
6662 2014-08-17 Marek Polacek <polacek@redhat.com>
6663 Manuel López-Ibáñez <manu@gcc.gnu.org>
6666 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6667 (diagnostic_show_locus): Don't print caret diagnostic
6668 if a column is larger than the line_width.
6670 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6672 * common.opt: Make the ISL AST generator to be the main code generator
6675 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6677 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6679 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6682 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6684 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6685 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6686 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6688 * config/pa/pa.md (begin_brtab): Delete insn.
6689 (end_brtab): Likewise.
6691 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6693 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6695 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6697 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6698 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6699 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6700 (get_dynamic_type): Remove.
6701 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6702 (clear_speculation): Bring to ipa-deivrt.h
6703 (get_class_context): Rename to ...
6704 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6705 (contains_type_p): Update.
6706 (get_dynamic_type): Rename to ...
6707 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6708 (possible_polymorphic_call_targets): UPdate.
6709 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6710 * ipa-prop.c (ipa_analyze_call_uses): Update.
6712 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6714 * doc/invoke.texi (SH options): Document missing processor variant
6715 options. Remove references to Hitachi. Undocument deprecated mspace
6718 2014-08-15 Jason Merrill <jason@redhat.com>
6720 * tree.c (type_hash_canon): Uncomment assert.
6722 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6724 * input.h (in_system_header_at): Add comment.
6726 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6729 * diagnostic.c (build_message_string): Make it extern.
6730 * diagnostic.h (build_message_string): Make it extern.
6732 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6734 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6735 load/store from/to non-floating class pseudo.
6737 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6739 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6741 2014-08-15 Richard Biener <rguenther@suse.de>
6743 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6744 (get_constraint_for_ssa_var): Remove dead code.
6745 (get_constraint_for_1): Adjust.
6746 (find_what_var_points_to): Likewise.
6747 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6749 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6752 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6753 (_mm512_mask_cmpge_epu32_mask): Ditto.
6754 (_mm512_cmpge_epu32_mask): Ditto.
6755 (_mm512_mask_cmpge_epi64_mask): Ditto.
6756 (_mm512_cmpge_epi64_mask): Ditto.
6757 (_mm512_mask_cmpge_epu64_mask): Ditto.
6758 (_mm512_cmpge_epu64_mask): Ditto.
6759 (_mm512_mask_cmple_epi32_mask): Ditto.
6760 (_mm512_cmple_epi32_mask): Ditto.
6761 (_mm512_mask_cmple_epu32_mask): Ditto.
6762 (_mm512_cmple_epu32_mask): Ditto.
6763 (_mm512_mask_cmple_epi64_mask): Ditto.
6764 (_mm512_cmple_epi64_mask): Ditto.
6765 (_mm512_mask_cmple_epu64_mask): Ditto.
6766 (_mm512_cmple_epu64_mask): Ditto.
6767 (_mm512_mask_cmplt_epi32_mask): Ditto.
6768 (_mm512_cmplt_epi32_mask): Ditto.
6769 (_mm512_mask_cmplt_epu32_mask): Ditto.
6770 (_mm512_cmplt_epu32_mask): Ditto.
6771 (_mm512_mask_cmplt_epi64_mask): Ditto.
6772 (_mm512_cmplt_epi64_mask): Ditto.
6773 (_mm512_mask_cmplt_epu64_mask): Ditto.
6774 (_mm512_cmplt_epu64_mask): Ditto.
6775 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6776 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6777 (_mm512_cmpneq_epu32_mask): Ditto.
6778 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6779 (_mm512_cmpneq_epi64_mask): Ditto.
6780 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6781 (_mm512_cmpneq_epu64_mask): Ditto.
6782 (_mm512_castpd_ps): Ditto.
6783 (_mm512_castpd_si512): Ditto.
6784 (_mm512_castps_pd): Ditto.
6785 (_mm512_castps_si512): Ditto.
6786 (_mm512_castsi512_ps): Ditto.
6787 (_mm512_castsi512_pd): Ditto.
6788 (_mm512_castpd512_pd128): Ditto.
6789 (_mm512_castps512_ps128): Ditto.
6790 (_mm512_castsi512_si128): Ditto.
6791 (_mm512_castpd512_pd256): Ditto.
6792 (_mm512_castps512_ps256): Ditto.
6793 (_mm512_castsi512_si256): Ditto.
6794 (_mm512_castpd128_pd512): Ditto.
6795 (_mm512_castps128_ps512): Ditto.
6796 (_mm512_castsi128_si512): Ditto.
6797 (_mm512_castpd256_pd512): Ditto.
6798 (_mm512_castps256_ps512): Ditto.
6799 (_mm512_castsi256_si512): Ditto.
6800 (_mm512_cmpeq_epu32_mask): Ditto.
6801 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6802 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6803 (_mm512_cmpeq_epu64_mask): Ditto.
6804 (_mm512_cmpgt_epu32_mask): Ditto.
6805 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6806 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6807 (_mm512_cmpgt_epu64_mask): Ditto.
6808 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6809 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6810 * config/i386/i386.c (enum ix86_builtins): Add
6811 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6812 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6813 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6814 (bdesc_args): Add __builtin_ia32_si512_256si,
6815 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6816 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6817 __builtin_ia32_pd512_pd.
6818 (ix86_expand_args_builtin): Handle new FTYPEs.
6819 * config/i386/sse.md (castmode): Add 512-bit modes.
6820 (AVX512MODE2P): New.
6821 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6822 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6824 2014-08-15 Richard Biener <rguenther@suse.de>
6826 * fold-const.c (tree_swap_operands_p): Put all constants
6827 last, also strip sign-changing NOPs when considering further
6828 canonicalization. Canonicalize also when optimizing for size.
6830 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6832 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6833 one_match > zero_match case to just before simple_sequence.
6835 2014-08-15 Richard Biener <rguenther@suse.de>
6837 * data-streamer.h (streamer_string_index, string_for_index):
6839 * data-streamer-out.c (streamer_string_index): Make static.
6840 * data-streamer-in.c (string_for_index): Likewise.
6841 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6842 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6844 2014-08-15 Richard Biener <rguenther@suse.de>
6846 PR tree-optimization/62031
6847 * tree-data-ref.c (dr_analyze_indices): Do not set
6848 DR_UNCONSTRAINED_BASE.
6849 (dr_may_alias_p): All indirect accesses have to go the
6850 formerly DR_UNCONSTRAINED_BASE path.
6851 * tree-data-ref.h (struct indices): Remove
6852 unconstrained_base member.
6853 (DR_UNCONSTRAINED_BASE): Remove.
6855 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6858 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6859 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6860 in OMP_CLAUSE_MAP in some outer target region.
6862 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6864 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6865 name_expansion_cache.
6866 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6867 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6868 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6869 (difference_cannot_overflow_p): New parameter. Use affine
6870 expansion for equality check.
6871 (iv_elimination_compare_lt): Pass new argument.
6873 2014-08-14 DJ Delorie <dj@redhat.com>
6875 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6876 variables to the accumulator.
6878 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6879 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6880 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6883 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6884 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6885 (umulqihi3_virt): Likewise.
6886 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6887 (umulqihi3_real): Likewise.
6889 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6891 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6893 PR tree-optimization/62091
6894 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6895 function_entry_reached.
6896 (walk_aliased_vdefs): Clear it here.
6897 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6899 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6901 * ipa-utils.h (compare_virtual_tables): Declare.
6902 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6904 2014-08-14 Marek Polacek <polacek@redhat.com>
6907 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6908 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6910 2014-08-14 Tom de Vries <tom@codesourcery.com>
6912 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6914 2014-08-14 Tom de Vries <tom@codesourcery.com>
6916 PR rtl-optimization/62004
6917 PR rtl-optimization/62030
6918 * ifcvt.c (rtx_interchangeable_p): New function.
6919 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6920 * emit-rtl.h (mem_attrs_eq_p): Declare.
6922 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6924 * graphite-scop-detection.c:
6925 Add inclusion of cp-tree.h.
6926 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6927 in case they are pointers to object types
6929 2014-08-14 Richard Biener <rguenther@suse.de>
6931 * BASE-VER: Change to 5.0.0
6933 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6934 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6935 Anna Tikhonova <anna.tikhonova@intel.com>
6936 Ilya Tocar <ilya.tocar@intel.com>
6937 Andrey Turetskiy <andrey.turetskiy@intel.com>
6938 Ilya Verbin <ilya.verbin@intel.com>
6939 Kirill Yukhin <kirill.yukhin@intel.com>
6940 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6942 * config/i386/sse.md (define_mode_attr avx512): New.
6943 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6945 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6946 (define_mode_attr ssse3_avx2): Ditto.
6947 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6948 (define_mode_attr avx2_avx512bw): New.
6949 (define_mode_attr ssedoublemodelower): New.
6950 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6952 (define_mode_attr ssebytemode): Allow V8DI modes.
6953 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6954 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6955 (define_mode_attr ssePSmode2): New.
6956 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6958 (define_mode_attr dbpsadbwmode): New.
6959 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6960 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6961 (vi8_sse4_1_avx2_avx512): New.
6962 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6964 (define_mode_attr blendbits): Move before its immediate use.
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/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6976 * config/i386/subst.md
6977 (define_mode_iterator SUBST_V): Update.
6978 (define_mode_iterator SUBST_A): Ditto.
6979 (define_subst_attr "mask_operand7"): New.
6980 (define_subst_attr "mask_operand10"): New.
6981 (define_subst_attr "mask_operand_arg34") : New.
6982 (define_subst_attr "mask_expand_op3"): New.
6983 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6984 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6985 (define_subst_attr "mask_avx512vl_condition"): New.
6986 (define_subst_attr "round_mask_operand4"): Ditto.
6987 (define_subst_attr "round_mask_scalar_op3"): Delete.
6988 (define_subst_attr "round_mask_op4"): New.
6989 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6991 (define_subst_attr "round_modev8sf_condition"): New.
6992 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6994 (define_subst_attr "round_saeonly_mask_operand4"): New.
6995 (define_subst_attr "round_saeonly_mask_op4"): New.
6996 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6997 V8DImode, V16SImode.
6998 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6999 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
7000 (define_subst_attr "mask_expand4_args"): New.
7001 (define_subst "mask_expand4"): New.
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.md
7013 (define_attr "isa"): Add avx512bw,noavx512bw.
7014 (define_attr "enabled"): Ditto.
7015 (define_split): Add 32/64-bit mask logic.
7016 (define_insn "*k<logic>qi"): New.
7017 (define_insn "*k<logic>hi"): New.
7018 (define_insn "*anddi_1"): Add mask version.
7019 (define_insn "*andsi_1"): Ditto.
7020 (define_insn "*<code><mode>_1"): Ditto.
7021 (define_insn "*<code>hi_1"): Ditto.
7022 (define_insn "kxnor<mode>"): New.
7023 (define_insn "kunpcksi"): New.
7024 (define_insn "kunpckdi"): New.
7025 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
7026 (define_insn "*one_cmplhi2_1"): Ditto.
7028 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7029 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7030 Anna Tikhonova <anna.tikhonova@intel.com>
7031 Ilya Tocar <ilya.tocar@intel.com>
7032 Andrey Turetskiy <andrey.turetskiy@intel.com>
7033 Ilya Verbin <ilya.verbin@intel.com>
7034 Kirill Yukhin <kirill.yukhin@intel.com>
7035 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7037 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
7040 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7041 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7042 Anna Tikhonova <anna.tikhonova@intel.com>
7043 Ilya Tocar <ilya.tocar@intel.com>
7044 Andrey Turetskiy <andrey.turetskiy@intel.com>
7045 Ilya Verbin <ilya.verbin@intel.com>
7046 Kirill Yukhin <kirill.yukhin@intel.com>
7047 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7049 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
7051 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
7052 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
7053 xmm/ymm16+ when availble.
7054 * config/i386/i386.h
7055 (HARD_REGNO_NREGS): Add mask regs.
7056 (VALID_AVX512F_REG_MODE): Ditto.
7057 (VALID_AVX512F_REG_MODE) : Define.
7058 (VALID_MASK_AVX512BW_MODE): Ditto.
7059 (reg_class) (MASK_REG_P(X)): Define.
7060 * config/i386/i386.md: Do not split long moves with mask register,
7061 use kmovb if avx512bw is availible.
7062 (movdi_internal): Handle mask registers.
7064 2014-08-14 Richard Biener <rguenther@suse.de>
7066 PR tree-optimization/62081
7067 * tree-ssa-loop.c (pass_fix_loops): New pass.
7068 (pass_tree_loop::gate): Do not fixup loops here.
7069 * tree-pass.h (make_pass_fix_loops): Declare.
7070 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
7072 2014-08-14 Richard Biener <rguenther@suse.de>
7074 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
7075 (type_hash_canon): ... this and avoid 2nd lookup for the add.
7077 2014-08-14 Richard Biener <rguenther@suse.de>
7079 PR tree-optimization/62090
7080 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
7081 (fold_builtin_2): Do not fold sprintf.
7082 (fold_builtin_3): Likewise.
7083 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
7084 moved from builtins.c.
7085 (gimple_fold_builtin): Fold sprintf.
7087 2014-08-14 Richard Biener <rguenther@suse.de>
7089 PR rtl-optimization/62079
7090 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
7093 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7095 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
7096 current_function_decl.
7098 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7100 * cgraph.c (cgraph_node::function_symbol): Fix wrong
7101 cgraph_function_node to cgraph_node::function_symbol
7104 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
7106 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
7107 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
7109 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
7111 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
7114 2014-08-13 Roman Gareev <gareevroman@gmail.com>
7116 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
7119 2014-08-12 Jakub Jelinek <jakub@redhat.com>
7122 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
7123 any registers that are used in mem_insn.
7125 2014-08-12 Steve Ellcey <sellcey@mips.com>
7127 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
7129 2014-08-12 Steve Ellcey <sellcey@mips.com>
7131 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
7132 (MULTILIB_DIRNAMES): Ditto.
7133 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
7134 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
7135 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
7136 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
7137 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
7138 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
7140 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7143 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
7144 of __ARM_SIZEOF_WCHAR_T.
7146 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7149 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
7150 Remove unnecessary attributes.
7152 2014-08-12 Yury Gribov <y.gribov@samsung.com>
7154 * internal-fn.c (init_internal_fns): Fix off-by-one.
7156 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
7157 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7158 Anna Tikhonova <anna.tikhonova@intel.com>
7159 Ilya Tocar <ilya.tocar@intel.com>
7160 Andrey Turetskiy <andrey.turetskiy@intel.com>
7161 Ilya Verbin <ilya.verbin@intel.com>
7162 Kirill Yukhin <kirill.yukhin@intel.com>
7163 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7165 * config/i386/i386.c (standard_sse_constant_opcode): Use
7166 vpxord/vpternlog if avx512 is availible.
7168 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7171 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
7172 bitfields, that is when size doesn't match the size of type or the
7173 size of the constructor.
7175 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7177 * config/rs6000/constraints.md (wh constraint): New constraint,
7178 for FP registers if direct move is available.
7179 (wi constraint): New constraint, for VSX/FP registers that can
7180 handle 64-bit integers.
7181 (wj constraint): New constraint for VSX/FP registers that can
7182 handle 64-bit integers for direct moves.
7183 (wk constraint): New constraint for VSX/FP registers that can
7184 handle 64-bit doubles for direct moves.
7185 (wy constraint): Make documentation match implementation.
7187 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
7188 scalar_in_vmx_p field to simplify tests of whether SFmode or
7189 DFmode can go in the Altivec registers.
7190 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
7191 (rs6000_setup_reg_addr_masks): Likewise.
7192 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
7193 field, and wh/wi/wj/wk constraints.
7194 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7195 the wh/wi/wj/wk constraints.
7196 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7197 upper registers, prefer VSX registers unless the operation is a
7198 memory operation with REG+OFFSET addressing.
7200 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7201 DImode. Change SFmode to use ww constraint instead of d to allow
7202 SF registers in the upper registers.
7205 (VSr5): Fix thinko in comment.
7206 (VSa): New mode attribute that is an alternative to wa, that
7207 returns the VSX register class that a mode can go in, but may not
7208 be the preferred register class.
7209 (VS_64dm): New mode attribute for appropriate register classes for
7210 referencing 64-bit elements of vectors for direct moves and normal
7212 (VS_64reg): Likewise.
7213 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7214 register allocator to only registers the data type can handle.
7215 (vsx_le_perm_load_<mode>): Likewise.
7216 (vsx_le_perm_store_<mode>): Likewise.
7217 (vsx_xxpermdi2_le_<mode>): Likewise.
7218 (vsx_xxpermdi4_le_<mode>): Likewise.
7219 (vsx_lxvd2x2_le_<mode>): Likewise.
7220 (vsx_lxvd2x4_le_<mode>): Likewise.
7221 (vsx_stxvd2x2_le_<mode>): Likewise.
7222 (vsx_add<mode>3): Likewise.
7223 (vsx_sub<mode>3): Likewise.
7224 (vsx_mul<mode>3): Likewise.
7225 (vsx_div<mode>3): Likewise.
7226 (vsx_tdiv<mode>3_internal): Likewise.
7227 (vsx_fre<mode>2): Likewise.
7228 (vsx_neg<mode>2): Likewise.
7229 (vsx_abs<mode>2): Likewise.
7230 (vsx_nabs<mode>2): Likewise.
7231 (vsx_smax<mode>3): Likewise.
7232 (vsx_smin<mode>3): Likewise.
7233 (vsx_sqrt<mode>2): Likewise.
7234 (vsx_rsqrte<mode>2): Likewise.
7235 (vsx_tsqrt<mode>2_internal): Likewise.
7236 (vsx_fms<mode>4): Likewise.
7237 (vsx_nfma<mode>4): Likewise.
7238 (vsx_eq<mode>): Likewise.
7239 (vsx_gt<mode>): Likewise.
7240 (vsx_ge<mode>): Likewise.
7241 (vsx_eq<mode>_p): Likewise.
7242 (vsx_gt<mode>_p): Likewise.
7243 (vsx_ge<mode>_p): Likewise.
7244 (vsx_xxsel<mode>): Likewise.
7245 (vsx_xxsel<mode>_uns): Likewise.
7246 (vsx_copysign<mode>3): Likewise.
7247 (vsx_float<VSi><mode>2): Likewise.
7248 (vsx_floatuns<VSi><mode>2): Likewise.
7249 (vsx_fix_trunc<mode><VSi>2): Likewise.
7250 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7251 (vsx_x<VSv>r<VSs>i): Likewise.
7252 (vsx_x<VSv>r<VSs>ic): Likewise.
7253 (vsx_btrunc<mode>2): Likewise.
7254 (vsx_b2trunc<mode>2): Likewise.
7255 (vsx_floor<mode>2): Likewise.
7256 (vsx_ceil<mode>2): Likewise.
7257 (vsx_<VS_spdp_insn>): Likewise.
7258 (vsx_xscvspdp): Likewise.
7259 (vsx_xvcvspuxds): Likewise.
7260 (vsx_float_fix_<mode>2): Likewise.
7261 (vsx_set_<mode>): Likewise.
7262 (vsx_extract_<mode>_internal1): Likewise.
7263 (vsx_extract_<mode>_internal2): Likewise.
7264 (vsx_extract_<mode>_load): Likewise.
7265 (vsx_extract_<mode>_store): Likewise.
7266 (vsx_splat_<mode>): Likewise.
7267 (vsx_xxspltw_<mode>): Likewise.
7268 (vsx_xxspltw_<mode>_direct): Likewise.
7269 (vsx_xxmrghw_<mode>): Likewise.
7270 (vsx_xxmrglw_<mode>): Likewise.
7271 (vsx_xxsldwi_<mode>): Likewise.
7272 (vsx_xscvdpspn): Tighten constraints to only use register classes
7274 (vsx_xscvspdpn): Likewise.
7275 (vsx_xscvdpspn_scalar): Likewise.
7277 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7278 wj, and wk constraints.
7279 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7280 general purpose registers.
7282 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7284 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7285 DImode instead of wm. Use wk constraint for direct move of DFmode
7287 (extendsidi2_lfiwax): Likewise.
7290 (movdi_internal64): Likewise.
7292 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7293 wk constraints. Make the wy constraint documentation match them
7296 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7298 Replacement of isl_int by isl_val
7299 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7300 (compute_bounds_for_param): use isl_val instead of isl_int
7301 (compute_bounds_for_loop): likewise
7302 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7303 (build_linearized_memory_access): use isl_val instead of isl_int
7304 (pdr_stride_in_loop): likewise
7305 * graphite-optimize-isl.c:
7306 (getPrevectorMap): use isl_val instead of isl_int
7308 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7309 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7310 (extern the_isl_ctx): declare
7311 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7312 (extract_affine_gmp): likewise
7314 (build_loop_iteration_domains): likewise
7315 (add_param_constraints): likewise
7317 2014-08-11 Richard Biener <rguenther@suse.de>
7319 PR tree-optimization/62075
7320 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7321 handle uses in patterns.
7323 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7324 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7325 Anna Tikhonova <anna.tikhonova@intel.com>
7326 Ilya Tocar <ilya.tocar@intel.com>
7327 Andrey Turetskiy <andrey.turetskiy@intel.com>
7328 Ilya Verbin <ilya.verbin@intel.com>
7329 Kirill Yukhin <kirill.yukhin@intel.com>
7330 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7332 * common/config/i386/i386-common.c
7333 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7334 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7335 (ix86_handle_option): Handle OPT_mavx512vl.
7336 * config/i386/cpuid.h (bit_AVX512VL): Define.
7337 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7338 set -mavx512vl accordingly.
7339 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7340 OPTION_MASK_ISA_AVX512VL.
7341 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7342 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7343 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7344 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7345 * config/i386/i386.h (TARGET_AVX512VL): Define.
7346 (TARGET_AVX512VL_P(x)): Ditto.
7347 * config/i386/i386.opt: Add mavx512vl.
7349 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7351 PR tree-optimization/62073
7352 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7355 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7356 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7357 Anna Tikhonova <anna.tikhonova@intel.com>
7358 Ilya Tocar <ilya.tocar@intel.com>
7359 Andrey Turetskiy <andrey.turetskiy@intel.com>
7360 Ilya Verbin <ilya.verbin@intel.com>
7361 Kirill Yukhin <kirill.yukhin@intel.com>
7362 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7364 * common/config/i386/i386-common.c
7365 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7366 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7367 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7368 (ix86_handle_option): Handle OPT_mavx512bw.
7369 * config/i386/cpuid.h (bit_AVX512BW): Define.
7370 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7371 set -mavx512bw accordingly.
7372 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7373 OPTION_MASK_ISA_AVX512BW.
7374 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7375 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7376 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7377 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7378 * config/i386/i386.h (TARGET_AVX512BW): Define.
7379 (TARGET_AVX512BW_P(x)): Ditto.
7380 * config/i386/i386.opt: Add mavx512bw.
7382 2014-08-11 Richard Biener <rguenther@suse.de>
7384 PR tree-optimization/62070
7385 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7386 Remove SSA checking.
7388 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7390 * asan.c (asan_check_flags): New enum.
7391 (build_check_stmt_with_calls): Removed function.
7392 (build_check_stmt): Split inlining logic to
7393 asan_expand_check_ifn.
7394 (instrument_derefs): Rename parameter.
7395 (instrument_mem_region_access): Rename parameter.
7396 (instrument_strlen_call): Likewise.
7397 (asan_expand_check_ifn): New function.
7398 (asan_instrument): Remove old code.
7399 (pass_sanopt::execute): Change handling of
7400 asan-instrumentation-with-call-threshold.
7401 (asan_clear_shadow): Fix formatting.
7402 (asan_function_start): Likewise.
7403 (asan_emit_stack_protection): Likewise.
7404 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7406 * internal-fn.c (expand_ASAN_CHECK): New function.
7407 * internal-fn.def (ASAN_CHECK): New internal function.
7408 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7410 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7411 * tree.c: Small comment fix.
7413 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7415 * gimple.c (gimple_call_fnspec): Support internal functions.
7416 (gimple_call_return_flags): Use const.
7417 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7418 * internal-fn.def: Add fnspec information.
7419 * internal-fn.h (internal_fn_fnspec): New function.
7420 (init_internal_fns): Declare new function.
7421 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7422 (init_internal_fns): New function.
7423 * tree-core.h: Update macro call.
7424 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7426 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7428 * lto-streamer.h (struct output_block::symbol): Change from
7429 struct symtab_node to plain symtab_node.
7430 (referenced_from_this_partition_p): Change first parameter
7431 from struct symtab_node to plain symtab_node.
7433 2014-08-10 Marek Polacek <polacek@redhat.com>
7436 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7438 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7440 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7441 DECL correctly; do not give up on types in static storage.
7443 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7445 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7447 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7449 * graphite-isl-ast-to-gimple.c:
7450 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7452 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7454 2014-08-08 Guozhi Wei <carrot@google.com>
7456 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7458 2014-08-08 Cary Coutant <ccoutant@google.com>
7460 * dwarf2out.c (get_skeleton_type_unit): Remove.
7461 (output_skeleton_debug_sections): Remove skeleton type units.
7462 (output_comdat_type_unit): Likewise.
7463 (dwarf2out_finish): Likewise.
7465 2014-08-07 Yi Yang <ahyangyi@google.com>
7467 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7469 2014-08-08 Richard Biener <rguenther@suse.de>
7471 * lto-streamer.h (struct lto_input_block): Make it a class
7473 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7474 (struct lto_function_header, struct lto_simple_header,
7475 struct lto_simple_header_with_strings,
7476 struct lto_decl_header, struct lto_function_header): Make
7477 a simple inheritance hieararchy. Remove unused fields.
7478 (struct lto_asm_header): Remove.
7479 * lto-streamer-out.c (produce_asm): Adjust.
7480 (lto_output_toplevel_asms): Likewise.
7481 (produce_asm_for_decls): Likewise.
7482 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7483 * data-streamer-in.c (string_for_index): Likewise.
7484 * ipa-inline-analysis.c (inline_read_section): Likewise.
7485 * ipa-prop.c (ipa_prop_read_section): Likewise.
7486 (read_replacements_section): Likewise.
7487 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7488 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7489 (lto_destroy_simple_input_block): Likewise.
7490 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7491 (lto_input_toplevel_asms): Likewise.
7493 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7494 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7495 Anna Tikhonova <anna.tikhonova@intel.com>
7496 Ilya Tocar <ilya.tocar@intel.com>
7497 Andrey Turetskiy <andrey.turetskiy@intel.com>
7498 Ilya Verbin <ilya.verbin@intel.com>
7499 Kirill Yukhin <kirill.yukhin@intel.com>
7500 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7502 * common/config/i386/i386-common.c
7503 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7504 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7505 (ix86_handle_option): Handle OPT_mavx512dq.
7506 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7507 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7508 set -mavx512dq accordingly.
7509 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7510 OPTION_MASK_ISA_AVX512DQ.
7511 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7512 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7513 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7514 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7515 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7516 (TARGET_AVX512DQ_P(x)): Ditto.
7517 * config/i386/i386.opt: Add mavx512dq.
7519 2014-08-08 Richard Biener <rguenther@suse.de>
7521 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7522 target_percent, target_percent_s): Export.
7523 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7524 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7525 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7526 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7527 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7528 Move to gimple-fold.c.
7529 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7531 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7532 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7533 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7534 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7535 (rewrite_call_expr_array): Remove.
7536 (fold_builtin_sprintf_chk): Likewise.
7537 (fold_builtin_snprintf_chk): Likewise.
7538 (fold_builtin_varargs): Remove handling of sprintf_chk,
7539 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7540 (gimple_fold_builtin_sprintf_chk): Remove.
7541 (gimple_fold_builtin_snprintf_chk): Likewise.
7542 (gimple_fold_builtin_varargs): Likewise.
7543 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7544 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7545 * gimple.c (gimple_seq_add_seq_without_update): New function.
7546 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7547 * gimple-fold.c: Include output.h.
7548 (gsi_replace_with_seq_vops): New function, split out from ...
7549 (gimplify_and_update_call_from_tree): ... here.
7550 (replace_call_with_value): New function.
7551 (replace_call_with_call_and_fold): Likewise.
7552 (var_decl_component_p): Moved from builtins.c.
7553 (gimple_fold_builtin_memory_op): Moved from builtins.c
7554 fold_builtin_memory_op and rewritten to GIMPLE.
7555 (gimple_fold_builtin_memset): Likewise.
7556 (gimple_fold_builtin_strcpy): Likewise.
7557 (gimple_fold_builtin_strncpy): Likewise.
7558 (gimple_fold_builtin_strcat): Likewise.
7559 (gimple_fold_builtin_fputs): Likewise.
7560 (gimple_fold_builtin_memory_chk): Likewise.
7561 (gimple_fold_builtin_stxcpy_chk): Likewise.
7562 (gimple_fold_builtin_stxncpy_chk): Likewise.
7563 (gimple_fold_builtin_snprintf_chk): Likewise.
7564 (gimple_fold_builtin_sprintf_chk): Likewise.
7565 (gimple_fold_builtin_strlen): New function.
7566 (gimple_fold_builtin_with_strlen): New function split out from
7567 gimple_fold_builtin.
7568 (gimple_fold_builtin): Change signature and handle
7569 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7570 here. Call gimple_fold_builtin_with_strlen.
7571 (gimple_fold_call): Adjust.
7573 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7575 * calls.c (precompute_arguments): Check
7576 promoted_for_signed_and_unsigned_p and set the promoted mode.
7577 (promoted_for_signed_and_unsigned_p): New function.
7578 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7579 and set the promoted mode.
7580 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7581 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7582 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7585 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7587 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7588 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7589 (expand_call): Likewise.
7590 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7591 to get promoted mode.
7592 * combine.c (record_promoted_value): Skip > 0 comparison with
7593 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7594 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7595 of SUBREG_PROMOTED_UNSIGNED_P.
7596 (convert_modes): Likewise.
7597 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7598 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7599 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7600 SUBREG_PROMOTED_UNSIGNED_SET.
7601 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7602 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7603 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7604 SUBREG_PROMOTED_SET.
7605 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7606 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7607 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7608 of SUBREG_PROMOTED_UNSIGNED_P.
7609 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7610 (SUBREG_PROMOTED_SET): New define.
7611 (SUBREG_PROMOTED_GET): Likewise.
7612 (SUBREG_PROMOTED_SIGN): Likewise.
7613 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7614 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7615 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7616 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7617 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7618 (nonzero_bits1): Skip > 0 comparison with the results as
7619 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7620 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7621 of !SUBREG_PROMOTED_UNSIGNED_P.
7622 * simplify-rtx.c (simplify_unary_operation_1): Use new
7623 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7624 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7625 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7626 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7628 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7630 * ipa-devirt.c: Include gimple-pretty-print.h
7631 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7633 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7634 (get_polymorphic_call_info): Fix return value
7635 (type_change_info): New sturcture based on ipa-prop
7637 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7638 based on ipa-prop variant.
7639 (extr_type_from_vtbl_ptr_store): New function
7640 based on ipa-prop variant.
7641 (record_known_type): New function.
7642 (check_stmt_for_type_change): New function.
7643 (get_dynamic_type): New function.
7644 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7645 * tree-ssa-pre.c: ipa-utils.h
7646 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7647 machinery; sanity check with ipa-prop devirtualization.
7648 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7651 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7653 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7654 * alias.c, cfgexpand.c, cgraphbuild.c,
7655 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7656 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7657 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7658 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7659 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7660 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7661 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7662 dse.c, except.c, gengtype.c, gimple-expr.c,
7663 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7664 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7665 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7666 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7667 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7668 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7670 * pointer-set.c: Remove file.
7671 * pointer-set.h: Remove file.
7673 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7675 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7676 * config/arm/types.md (f_sels, f_seld): Delete.
7678 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7680 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7681 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7682 (aarch64_movdi_<mode>high): Likewise.
7683 (aarch64_mov<mode>high_di): Likewise.
7684 (aarch64_movdi_<mode>low): Likewise.
7685 (aarch64_mov<mode>low_di): Likewise.
7686 (aarch64_movtilow_tilow): Likewise.
7687 Add comment explaining usage of fp,simd attributes and of
7688 TARGET_FLOAT and TARGET_SIMD.
7690 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7691 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7693 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7694 Use MOVN when one of the half-words is 0xffff.
7696 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7698 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7700 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7702 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7703 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7704 (rfs_str): String corresponding to RFS_* constants.
7705 (rank_for_schedule_stats_t): New typedef.
7706 (rank_for_schedule_stats): New static variable.
7707 (rfs_result): New static function.
7708 (rank_for_schedule): Track statistics for deciding heuristics.
7709 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7711 (ready_sort): Use them for debug printouts.
7712 (schedule_block): Init statistics state. Print statistics on
7713 rank_for_schedule decisions.
7715 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7717 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7719 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7721 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7724 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7726 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7727 function to not conflict.
7728 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7729 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7730 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7731 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7732 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7735 2014-08-07 Marek Polacek <polacek@redhat.com>
7737 * fold-const.c (fold_binary_loc): Add folding of
7738 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7740 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7742 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7743 instead of type size.
7744 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7746 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7748 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7749 (*thumb1_movqi_insn): Likewise.
7750 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7752 2014-08-07 Tom de Vries <tom@codesourcery.com>
7754 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7755 (glibc_2_11_or_earlier): Remove effective-target keywords.
7757 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7759 * config/arm/arm.c (bdesc_2arg): Fix typo.
7760 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7762 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7764 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7766 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7769 * haifa-sched.c (advance_one_cycle): Fix dump.
7770 (schedule_block): Don't advance cycle if we are already at the
7771 beginning of the cycle.
7773 2014-08-06 Martin Jambor <mjambor@suse.cz>
7776 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7778 2014-08-06 Richard Biener <rguenther@suse.de>
7781 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7783 (lto_input_tree): Pop SCCs here.
7785 2014-08-06 Richard Biener <rguenther@suse.de>
7787 PR tree-optimization/61320
7788 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7789 handle misaligned loads.
7791 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7793 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7794 (aarch64_expand_vec_perm_const): Check for dup before zip.
7796 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7798 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7799 CONST_INT_P instead of GET_CODE and compare.
7800 (aarch64_select_cc_mode): Likewise.
7801 (aarch64_print_operand): Likewise.
7802 (aarch64_rtx_costs): Likewise.
7803 (aarch64_simd_valid_immediate): Likewise.
7804 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7805 (aarch64_simd_emit_pair_result_insn): Likewise.
7807 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7809 * gdbhooks.py (find_gcc_source_dir): New helper function.
7810 (class PassNames): New class, locating and parsing passes.def.
7811 (class BreakOnPass): New command "break-on-pass".
7813 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7815 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7818 2014-08-05 Richard Biener <rguenther@suse.de>
7820 PR rtl-optimization/61672
7821 * emit-rtl.h (mem_attrs_eq_p): Declare.
7822 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7823 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7824 * cfgcleanup.c (merge_memattrs): Likewise.
7827 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7829 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7830 rather than singleton vectors.
7831 (vqdmlsls_lane_s32): Likewise.
7833 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7835 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7836 Use VSDQ_HSI mode iterator.
7837 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7838 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7839 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7840 Use BUILTIN_VDQHS macro.
7841 (sqrdmulh_laneq): Likewise.
7842 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7843 (vqdmlals_laneq_s32): Likewise.
7844 (vqdmlslh_laneq_s16): Likewise.
7845 (vqdmlsls_laneq_s32): Likewise.
7846 (vqdmulhh_laneq_s16): Likewise.
7847 (vqdmulhs_laneq_s32): Likewise.
7848 (vqrdmulhh_laneq_s16): Likewise.
7849 (vqrdmulhs_laneq_s32): Likewise.
7851 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7853 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7854 (vmuld_laneq_f64): Likewise.
7855 (vmuls_laneq_f32): Likewise.
7856 (vmul_n_f64): Likewise.
7857 (vmuld_lane_f64): Reimplement in C.
7858 (vmuls_lane_f32): Likewise.
7860 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7862 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7864 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7866 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7868 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7869 (rbitsi2): Likewise.
7870 (*arm_rev): Set predicable and predicable_short_it attributes.
7872 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7874 * convert.c (convert_to_integer): Guard transformation to lrint by
7877 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7879 * config/aarch64/aarch64-builtins.c
7880 (aarch64_simd_builtin_type_mode): Delete.
7881 (v8qi_UP): Remap to V8QImode.
7882 (v4hi_UP): Remap to V4HImode.
7883 (v2si_UP): Remap to V2SImode.
7884 (v2sf_UP): Remap to V2SFmode.
7885 (v1df_UP): Remap to V1DFmode.
7886 (di_UP): Remap to DImode.
7887 (df_UP): Remap to DFmode.
7888 (v16qi_UP):V16QImode.
7889 (v8hi_UP): Remap to V8HImode.
7890 (v4si_UP): Remap to V4SImode.
7891 (v4sf_UP): Remap to V4SFmode.
7892 (v2di_UP): Remap to V2DImode.
7893 (v2df_UP): Remap to V2DFmode.
7894 (ti_UP): Remap to TImode.
7895 (ei_UP): Remap to EImode.
7896 (oi_UP): Remap to OImode.
7897 (ci_UP): Map to CImode.
7898 (xi_UP): Remap to XImode.
7899 (si_UP): Remap to SImode.
7900 (sf_UP): Remap to SFmode.
7901 (hi_UP): Remap to HImode.
7902 (qi_UP): Remap to QImode.
7903 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7904 (VAR1): Build builtin name.
7905 (aarch64_init_simd_builtins): Remove dead code.
7907 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7909 * graphite-isl-ast-to-gimple.c:
7910 (set_options): New function.
7911 (scop_to_isl_ast): Add calling of set_options.
7913 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7915 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7916 (analyze_iv_to_split_insn): Don't initialize them.
7917 (get_ivts_expr): Removed.
7918 (allocate_basic_variable, insert_base_initialization): Use
7919 SET_SRC instead of *get_ivts_expr.
7920 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7922 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7924 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7925 (translate_isl_ast_for_loop): Add checking of the
7926 flag_loop_parallelize_all.
7927 (ast_build_before_for): New function.
7928 (scop_to_isl_ast): Add checking of the
7929 flag_loop_parallelize_all.
7930 * graphite-dependences.c: Move the defenition of the
7931 scop_get_dependences from graphite-optimize-isl.c to this file.
7932 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7933 (carries_deps): Add checking of the x's value.
7934 * graphite-optimize-isl.c: Move the defenition of the
7935 scop_get_dependences to graphite-dependences.c.
7936 * graphite-poly.h: Add declarations of scop_get_dependences
7939 2014-08-04 Rohit <rohitarulraj@freescale.com>
7942 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7944 (alt_reg_names): Likewise.
7945 (rs6000_dwarf_register_span): For SPE high registers, replace
7946 dwarf register numbers with GCC hard register numbers.
7947 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7948 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7949 register number for the corresponding GCC hard register number.
7950 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7951 newly added GCC hard register numbers for SPE high registers.
7952 (DWARF_FRAME_REGISTERS): Likewise.
7953 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7954 (DWARF_FRAME_REGNUM): Likewise.
7955 (FIXED_REGISTERS): Likewise.
7956 (CALL_USED_REGISTERS): Likewise.
7957 (CALL_REALLY_USED_REGISTERS): Likewise.
7958 (REG_ALLOC_ORDER): Likewise.
7959 (enum reg_class): Likewise.
7960 (REG_CLASS_NAMES): Likewise.
7961 (REG_CLASS_CONTENTS): Likewise.
7962 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7964 2014-08-04 Richard Biener <rguenther@suse.de>
7966 * gimple-fold.h (gimple_fold_builtin): Remove.
7967 * gimple-fold.c (gimple_fold_builtin): Make static.
7968 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7969 fold_stmt, not gimple_fold_builtin.
7971 2014-08-04 Martin Liska <mliska@suse.cz>
7973 * cgraph.h (csi_end_p): Removed.
7974 (csi_next): Likewise.
7975 (csi_node): Likewise.
7976 (csi_start): Likewise.
7977 (cgraph_node_in_set_p): Likewise.
7978 (cgraph_node_set_size): Likewise.
7979 (vsi_end_p): Likewise.
7980 (vsi_next): Likewise.
7981 (vsi_node): Likewise.
7982 (vsi_start): Likewise.
7983 (varpool_node_set_size): Likewise.
7984 (cgraph_node_set_nonempty_p): Likewise.
7985 (varpool_node_set_nonempty_p): Likewise.
7986 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7988 * ipa-inline-transform.c: Likewise.
7989 * ipa-utils.c (cgraph_node_set_new): Removed.
7990 (cgraph_node_set_add): Likewise.
7991 (cgraph_node_set_remove): Likewise.
7992 (cgraph_node_set_find): Likewise.
7993 (dump_cgraph_node_set): Likewise.
7994 (debug_cgraph_node_set): Likewise.
7995 (free_cgraph_node_set): Likewise.
7996 (varpool_node_set_new): Likewise.
7997 (varpool_node_set_add): Likewise.
7998 (varpool_node_set_remove): Likewise.
7999 (varpool_node_set_find): Likewise.
8000 (dump_varpool_node_set): Likewise.
8001 (free_varpool_node_set): Likewise.
8002 (debug_varpool_node_set): Likewise.
8003 * tree-emutls.c (struct tls_var_data):
8004 (emutls_index): Removed.
8005 (emutls_decl): Likewise.
8006 (gen_emutls_addr): Function implementation uses newly added
8007 hash_map<varpool_node *, tls_var_data>.
8008 (clear_access_vars): Likewise.
8009 (create_emultls_var): Likewise.
8010 (ipa_lower_emutls): Likewise.
8011 (reset_access): New function.
8013 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8015 * config/i386/i386.c (ix86_option_override_internal): Add
8016 PTA_RDRND and PTA_MOVBE for bdver4.
8018 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8019 James Greenhalgh <james.greenhalgh@arm.com>
8021 * doc/md.texi (clrsb): Document.
8022 (clz): Change reference to x into operand 1.
8024 (popcount): Likewise.
8026 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8029 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
8030 move to subtarget in serial version if result is ignored.
8032 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8033 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8035 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
8036 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
8037 (sched_analyze_insn): Update use of try_group_insn to
8038 sched_macro_fuse_insns.
8039 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
8040 arguments that are not conditional jumps.
8042 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8044 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
8045 family information. Handle BTVER2 cpu with cpuid family value.
8047 2014-08-04 Tom de Vries <tom@codesourcery.com>
8049 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
8050 (glibc_2_11_or_earlier): Document effective-target keywords.
8052 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
8054 * ipa-devirt.c (odr_type_warn_count): Add type.
8055 (possible_polymorphic_call_targets): Set it.
8056 (ipa_devirt): Use it.
8058 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
8060 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
8062 * ipa-devirt.c: Include hash-map.h
8063 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
8064 (clear_speculation): Break out of ...
8065 (get_class_context): ... here; speed up handling obviously useless
8067 (odr_type_warn_count, decl_warn_count): New structures.
8068 (final_warning_record): New structure.
8069 (final_warning_records): New static variable.
8070 (possible_polymorphic_call_targets): Cleanup handling of
8071 speculative info; do not build speculation when user do not care;
8072 record info about warnings when asked for.
8073 (add_decl_warning): New function.
8074 (type_warning_cmp): New function.
8075 (decl_warning_cmp): New function.
8076 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
8077 (gate): Enable pass when warnings are requested.
8078 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
8081 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8083 * hash-map.h (default_hashmap_traits::mark_key_deleted):
8085 (hash_map::remove): New method.
8086 (hash_map::traverse): New method.
8087 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
8088 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
8089 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
8090 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
8091 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
8092 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
8095 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8097 * hash-set.h: new File.
8098 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
8099 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
8100 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
8101 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
8102 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
8103 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
8104 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
8105 varpool.c: Use hash_set instead of pointer_set.
8107 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
8109 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
8111 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8113 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
8114 for frame access when strict_p is false.
8116 2014-08-01 Renlin Li <renlin.li@arm.com>
8117 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8119 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
8120 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
8121 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
8123 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
8125 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
8126 aarch64_mem_pair_offset.
8128 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8130 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
8132 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
8133 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
8135 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
8137 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
8139 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
8142 * cgraphunit.c (analyze_functions): Use get_create rather than get
8143 for decls which are clones of abstract functions.
8145 2014-08-01 Martin Liska <mliska@suse.cz>
8147 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
8148 * ipa-prop.h (count_formal_params): Global function created from static.
8149 * ipa-prop.c (count_formal_params): Likewise.
8150 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
8151 profiles for semantically equivalent functions.
8152 * passes.c (do_per_function): If we load body of a function
8153 during WPA, this condition should behave same.
8154 * varpool.c (ctor_for_folding): More tolerant assert for variable
8155 aliases created during WPA.
8157 2014-08-01 Martin Liska <mliska@suse.cz>
8159 * doc/invoke.texi (Options That Control Optimization): Documentation
8160 for -foptimize-strlen introduced. Optimization levels default options
8163 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8165 * opts.c (common_handle_option): Handle -fsanitize=alignment.
8166 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
8167 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
8169 * stor-layout.h (min_align_of_type): New prototype.
8170 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
8171 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
8173 * ubsan.c: Include builtins.h.
8174 (ubsan_expand_bounds_ifn): Change return type to bool,
8176 (ubsan_expand_null_ifn): Change return type to bool, change
8177 argument to gimple_stmt_iterator *. Handle both null and alignment
8178 sanitization, take type from ckind argument's type rather than
8180 (instrument_member_call): Removed.
8181 (instrument_mem_ref): Remove t argument, add mem and base arguments.
8182 Handle both null and alignment sanitization, don't say whole
8183 struct access is member access. Build 3 argument IFN_UBSAN_NULL
8184 call instead of 2 argument.
8185 (instrument_null): Adjust instrument_mem_ref caller. Don't
8186 instrument calls here.
8187 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
8189 * stor-layout.c (min_align_of_type): New function.
8190 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
8191 Or it into SANITIZE_UNDEFINED.
8192 * doc/invoke.texi (-fsanitize=alignment): Document.
8194 2014-07-31 Andi Kleen <ak@linux.intel.com>
8196 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8198 2014-07-31 Andi Kleen <ak@linux.intel.com>
8200 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8202 (vn_reference_compute_hash): Dito.
8203 (vn_nary_op_compute_hash): Dito.
8204 (vn_phi_compute_hash): Dito.
8205 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8207 2014-07-31 Andi Kleen <ak@linux.intel.com>
8209 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8210 Rename to inchash:add_expr_commutative. Convert to inchash.
8211 (iterative_hash_hashable_expr): Rename to
8212 inchash:add_hashable_expr. Convert to inchash.
8213 (avail_expr_hash): Dito.
8215 2014-07-31 Andi Kleen <ak@linux.intel.com>
8217 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8220 2014-07-31 Andi Kleen <ak@linux.intel.com>
8222 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8224 2014-07-31 Andi Kleen <ak@linux.intel.com>
8226 * Makefile.in (OBJS): Add rtlhash.o
8227 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8228 (loc_checksum): Dito.
8229 (loc_checksum_ordered): Dito.
8230 (hash_loc_operands): Dito.
8232 (hash_loc_list): Dito.
8233 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8234 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8235 * rtlhash.c: New file.
8236 * rtlhash.h: New file.
8238 2014-07-31 Andi Kleen <ak@linux.intel.com>
8240 * inchash.h (inchash): Change inchash class to namespace.
8241 (class hash): ... Rename from inchash.
8242 (add_object): Move from macro to class template.
8243 * lto-streamer-out.c (hash_tree): Change inchash
8245 * tree.c (build_type_attribute_qual_variant): Dito.
8246 (type_hash_list): Dito.
8247 (attribute_hash_list): Dito.
8248 (iterative_hstate_expr): Rename to inchash::add_expr
8249 (build_range_type_1): Change inchash to inchash::hash
8250 and use hash::add_expr.
8251 (build_array_type_1): Dito.
8252 (build_function_type): Dito
8253 (build_method_type_directly): Dito.
8254 (build_offset_type): Dito.
8255 (build_complex_type): Dito.
8256 (make_vector_type): Dito.
8257 * tree.h (iterative_hash_expr): Dito.
8259 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8261 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8263 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8265 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8266 correct alphabetical position.
8267 (vpaddd_f64): Rewrite using builtins.
8268 (vpaddd_s64): Move to correct alphabetical position.
8271 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8274 * config/sh/sh.c (sh_legitimate_address_p,
8275 sh_legitimize_reload_address): Handle reg+reg address modes when
8276 ALLOW_INDEXED_ADDRESS is false.
8277 * config/sh/predicates.md (general_movsrc_operand,
8278 general_movdst_operand): Likewise.
8280 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8282 * config/aarch64/aarch64-builtins.c
8283 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8286 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8288 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8289 the generated mask based on BYTES_BIG_ENDIAN.
8290 (aarch64_simd_check_vect_par_cnst_half): New.
8291 * config/aarch64/aarch64-protos.h
8292 (aarch64_simd_check_vect_par_cnst_half): New.
8293 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8294 the check out to aarch64_simd_check_vect_par_cnst_half.
8295 (vect_par_cnst_lo_half): Likewise.
8296 * config/aarch64/aarch64-simd.md
8297 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8298 (move_hi_quad_<mode>): Always generate a low mask.
8300 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8302 * doc/invoke.texi (AVR Options): Add documentation about
8303 __AVR_DEVICE_NAME__ built-in macro.
8305 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8308 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8309 constraints are satisfied.
8310 (<shift>di3_neon): Likewise.
8312 2014-07-31 Richard Biener <rguenther@suse.de>
8314 PR tree-optimization/61964
8315 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8316 by structural equality.
8318 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8320 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8321 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8322 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8324 * gcc.c (sanitize_spec_function): Support new option.
8325 (SANITIZER_SPEC): Remove now redundant check.
8326 * opts.c (common_handle_option): Support new option.
8327 (finish_options): Check for incompatibilities.
8328 * toplev.c (process_options): Split userspace-specific checks.
8330 2014-07-31 Richard Biener <rguenther@suse.de>
8332 * lto-streamer.h (struct output_block): Remove global.
8333 (struct data_in): Remove labels, num_named_labels and
8335 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8336 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8338 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8341 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8342 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8343 (isolate_path): New argument to avoid inserting a trap.
8344 (find_implicit_erroneous_behaviour): Handle returning the address
8345 of a local variable.
8346 (find_explicit_erroneous_behaviour): Likewise.
8348 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8351 * toplev.c (init_random_seed): Move piece of code never called to
8353 (set_random_seed): see above.
8355 2014-07-31 Tom de Vries <tom@codesourcery.com>
8357 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8359 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8361 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8362 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8364 2014-07-31 Richard Biener <rguenther@suse.de>
8366 * data-streamer.h (streamer_write_data_stream): Declare here,
8368 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8369 * lto-cgraph.c (lto_output_node): Adjust.
8370 (lto_output_varpool_node): Likewise.
8371 * data-streamer-out.c (streamer_string_index): Likewise.
8372 (streamer_write_data_stream, lto_append_block): Move from ...
8373 * lto-section-out.c (lto_output_data_stream,
8374 lto_append_block): ... here.
8376 2014-07-30 Mike Stump <mikestump@comcast.net>
8378 * configure.ac: Also check for popen.
8379 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8380 * configure: Regenerate.
8381 * config.in: Regenerate.
8383 2014-07-30 Martin Jambor <mjambor@suse.cz>
8385 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8386 parameter to gimple.
8388 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8390 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8391 address as second parameter to __tpf_eh_return routine.
8393 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8395 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8398 2014-07-30 Tom Tromey <tromey@redhat.com>
8401 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8402 * doc/extend.texi (Type Attributes): Document designated_init
8405 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8407 * graphite-isl-ast-to-gimple.c:
8408 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8409 (gcc_expression_from_isl_expression): Pass type to
8410 gcc_expression_from_isl_ast_expr_id.
8412 2014-07-30 Richard Biener <rguenther@suse.de>
8414 * lto-streamer.h (lto_write_data): New function.
8415 * langhooks.c (lhd_append_data): Do not free block.
8416 * lto-section-out.c (lto_write_data): New function writing
8417 raw data to the current section.
8418 (lto_write_stream): Adjust for langhook semantic change.
8419 (lto_destroy_simple_output_block): Write header directly.
8420 * lto-opts.c (lto_write_options): Write options directly.
8421 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8422 (lto_output_toplevel_asms): Likewise.
8423 (copy_function_or_variable): Copy data directly.
8424 (write_global_references): Output index table directly.
8425 (lto_output_decl_state_refs): Likewise.
8426 (write_symbol): Write data directly.
8427 (produce_symtab): Adjust.
8428 (produce_asm_for_decls): Output header and refs directly.
8430 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8432 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8433 to speculative_targets
8434 (get_class_context): Fix handling of contextes without outer type;
8435 avoid matching non-polymorphic types in LTO.
8436 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8437 parameter to speculative_targetsp; handle speculation.
8438 (dump_possible_polymorphic_call_targets): Update dumping.
8440 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8442 * common.opt (Wodr): Enable by default.
8444 2014-07-29 Olivier Hainque <hainque@adacore.com>
8446 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8448 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8451 * gengtype.c (strtoken): New function.
8452 (create_user_defined_type): Replace strtok with strtoken.
8454 2014-07-29 Nathan Sidwell <nathan@acm.org>
8456 * gcov-io.c (gcov_var): Make hidden.
8457 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8458 (gcov_do_dump): Declare.
8459 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8461 2014-07-29 Martin Jambor <mjambor@suse.cz>
8463 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8464 parameter to gimple.
8465 (sra_modify_assign): Likewise.
8467 2014-07-29 Richard Biener <rguenther@suse.de>
8470 * expr.c (expand_expr_real_2): Revert last change.
8472 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8474 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8475 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8476 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8478 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8479 (contains_type_p): Forward declare.
8480 (polymorphic_call_target_hasher::hash): Hash speculative info.
8481 (polymorphic_call_target_hasher::equal): Compare speculative info.
8482 (get_class_context): Handle speuclation.
8483 (contains_type_p): Update.
8484 (get_polymorphic_call_info_for_decl): Update.
8485 (walk_ssa_copies): Break out from ...
8486 (get_polymorphic_call_info): ... here; set speculative context
8488 * ipa-prop.c (ipa_write_indirect_edge_info,
8489 ipa_read_indirect_edge_info): Stream speculative context.
8490 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8491 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8492 SPECULATIVE_MAYBE_DERIVED_TYPE).
8493 (possible_polymorphic_call_targets overriders): Update.
8494 (dump_possible_polymorphic_call_targets overriders): Update.
8495 (dump_possible_polymorphic_call_target_p overriders): Update.
8497 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8499 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8500 ipa-devirt path; fix thinko there.
8502 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8504 * config/i386/i386.c (ix86_return_in_memory): Replace one
8505 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8507 2014-07-28 Marek Polacek <polacek@redhat.com>
8509 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8511 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8513 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8514 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8515 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8516 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8517 (USE_LD_AS_NEEDED): Likewise.
8518 (ASM_APP_ON): Likewise.
8519 (ASM_APP_OFF): Likewise.
8520 (TARGET_POSIX_IO): Likewise.
8521 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8522 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8523 (USE_LD_AS_NEEDED): Likewise.
8524 (ASM_APP_ON): Likewise.
8525 (ASM_APP_OFF): Likewise.
8526 (TARGET_POSIX_IO): Likewise.
8528 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8531 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8532 operators other than the equality operators.
8534 2014-07-28 Richard Biener <rguenther@suse.de>
8537 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8538 sure to register SImode ones, not only >= word_mode ones.
8539 * expr.c (expand_expr_real_2): When expanding -ftrapv
8540 binops do not use OPTAB_LIB_WIDEN.
8542 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8545 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8546 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8547 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8548 inserting them in the insn stream.
8550 2014-07-28 Marek Polacek <polacek@redhat.com>
8553 * common.opt (Wodr): Add Var.
8555 2014-07-28 Richard Biener <rguenther@suse.de>
8557 PR tree-optimization/61921
8558 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8559 if there is a varpool node before dereferencing it.
8561 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8563 * graphite-sese-to-poly.c:
8564 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8565 id of the pbb), which contains pointer to the pbb1.
8567 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8569 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8571 * graphite-isl-ast-to-gimple.c:
8572 (graphite_create_new_guard): New function.
8573 (translate_isl_ast_node_if): New function.
8574 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8576 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8578 2014-07-27 Anthony Green <green@moxielogic.com>
8580 * config.gcc: Add moxie-*-moxiebox* configuration.
8581 * config/moxie/moxiebox.h: New file.
8583 2014-07-26 Andrew Pinski <apinski@cavium.com>
8585 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8586 from the read only register.
8588 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8590 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8591 as the allocation class if it isn't likely to be spilled.
8593 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8595 * rtl.h (tls_referenced_p): Declare.
8596 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8597 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8598 (mips_cannot_force_const_mem): Use tls_referenced_p.
8599 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8600 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8601 instead of pa_tls_referenced_p.
8602 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8603 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8604 (pa_legitimate_constant_p): Likewise.
8605 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8606 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8607 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8608 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8609 rs6000_tls_referenced_p.
8610 (rs6000_tls_symbol_ref_1): Delete.
8612 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8615 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8616 Optimize inverse of a VEC_CONCAT.
8618 2014-07-25 Xinliang David Li <davidxl@google.com>
8620 * params.def: New parameter.
8621 * coverage.c (get_coverage_counts): Check new flag.
8622 (coverage_compute_profile_id): Check new flag.
8623 (coverage_begin_function): Check new flag.
8624 (coverage_end_function): Check new flag.
8625 * value-prof.c (coverage_node_map_initialized_p): New function.
8626 (init_node_map): Populate map with all functions.
8627 * doc/invoke.texi: Document new parameter.
8629 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8630 Richard Biener <rguenther@suse.de>
8632 * lto-streamer-out.c (struct sccs): Turn to ...
8633 (class DFS): ... this one; refactor the DFS walk so it can
8634 be re-done on per-SCC basis.
8635 (DFS::DFS): New constructor.
8636 (DFS::~DFS): New destructor.
8637 (hash_tree): Add new MAP argument holding in-SCC hash values;
8638 remove POINTER_TYPE hashing hack.
8639 (scc_entry_compare): Rename to ...
8640 (DFS::scc_entry_compare): ... this one.
8641 (hash_scc): Rename to ...
8642 (DFS::hash_scc): ... this one; pass output_block instead
8643 of streamer_cache; work harder to get unique and stable SCC
8645 (DFS_write_tree): Rename to ...
8646 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8647 (lto_output_tree): Update.
8649 2014-07-25 Andi Kleen <ak@linux.intel.com>
8651 * lto-streamer-out.c (hash_tree): Convert to inchash.
8653 2014-07-25 Andi Kleen <ak@linux.intel.com>
8655 * tree.c (build_type_attribute_qual_variant): Use inchash.
8656 (type_hash_list): Dito.
8657 (attribute_hash_list): Dito
8658 (iterative_hstate_expr): Dito.
8659 (iterative_hash_expr): Dito.
8660 (build_range_type_1): Dito.
8661 (build_array_type_1): Dito.
8662 (build_function_type): Dito.
8663 (build_method_type_directly): Dito.
8664 (build_offset_type): Dito.
8665 (build_complex_type): Dito.
8666 (make_vector_type): Dito.
8667 * tree.h (iterative_hash_expr): Add compat wrapper.
8668 (iterative_hstate_expr): Add.
8670 2014-07-25 Andi Kleen <ak@linux.intel.com>
8672 * Makefile.in (OBJS): Add inchash.o.
8673 (PLUGIN_HEADERS): Add inchash.h.
8674 * ipa-devirt.c: Include inchash.h.
8675 * lto-streamer-out.c: Dito.
8676 * tree-ssa-dom.c: Dito.
8677 * tree-ssa-pre.c: Dito.
8678 * tree-ssa-sccvn.c: Dito.
8679 * tree-ssa-tail-merge.c: Dito.
8681 * tree.c (iterative_hash_hashval_t): Move to ...
8682 (iterative_hash_host_wide_int): Move to ...
8683 * inchash.c: Here. New file.
8684 * tree.h (iterative_hash_hashval_t): Move to ...
8685 (iterative_hash_host_wide_int): Move to ...
8686 * inchash.h: Here. New file.
8688 2014-07-25 Richard Biener <rguenther@suse.de>
8692 * fold-const.c (native_encode_int): Add and handle offset
8693 parameter to do partial encodings of expr.
8694 (native_encode_fixed): Likewise.
8695 (native_encode_real): Likewise.
8696 (native_encode_complex): Likewise.
8697 (native_encode_vector): Likewise.
8698 (native_encode_string): Likewise.
8699 (native_encode_expr): Likewise.
8700 * fold-const.c (native_encode_expr): Add offset parameter
8702 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8703 (fold_ctor_reference): Handle all reads from tcc_constant
8706 2014-07-25 Richard Biener <rguenther@suse.de>
8708 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8711 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8713 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8715 2014-07-24 Kyle McMartin <kyle@redhat.com>
8717 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8719 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8721 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8723 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8725 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8726 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8727 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8729 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8731 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8732 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8733 aggregate types. Instead, *all* aggregate types, except for single-
8734 element or homogeneous float/vector aggregates, are quadword-aligned
8735 if required by their type alignment. Issue -Wpsabi note when a type
8736 is now treated differently than before.
8738 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8740 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8741 does not fit fully into floating-point registers, and there is still
8742 space in the register parameter area, use GPRs to pass those parts
8743 of the argument. Issue -Wpsabi note if any parameter is now treated
8744 differently than before.
8745 (rs6000_arg_partial_bytes): Update.
8747 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8749 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8751 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8753 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8754 * toplev.c (initialize_rtl): Don't use it. Move previously
8755 "language-dependent" calls to...
8756 (backend_init): ...here.
8757 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8758 Assert that RTL initialization hasn't happend yet.
8760 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8762 PR rtl-optimization/61629
8763 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8764 they have already been initialized.
8766 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8769 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8770 DECL_INCOMING_RTL and entry_parm.
8771 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8772 * calls.c (load_register_parameters): Likewise argument values.
8773 (emit_library_call_value_1, store_one_arg): Likewise argument
8775 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8777 * explow.c (validize_mem): Modify the argument in-place.
8779 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8781 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8782 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8784 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8786 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8787 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8789 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8791 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8792 (aarch64_save_callee_saves): New parameter "skip_wb".
8793 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8795 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8797 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8799 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8801 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8803 * graphite-isl-ast-to-gimple.c:
8804 (graphite_create_new_loop): Add calling of isl_id_free to properly
8805 decrement reference counts.
8807 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8809 2014-07-24 Martin Liska <mliska@suse.cz>
8810 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8812 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8813 (rs6000_code_end): Likewise.
8815 2014-07-24 Martin Liska <mliska@suse.cz>
8817 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8818 symtab_node funtion used.
8819 (rs6000_xcoff_declare_object_name): Likewise.
8821 2014-07-24 Martin Liska <mliska@suse.cz>
8823 * cgraphunit.c (compile): Correct function used.
8825 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8827 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8830 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8833 * varasm.c (bss_initializer_p): Handle offlined ctors.
8834 (align_variable, get_variable_align): Likewise.
8835 (make_decl_one_only): Likewise.
8836 (default_binds_local_p_1): Likewise.
8837 (decl_binds_to_current_def_p): Likewise.
8838 (get_variable_section): Get constructor if it is offlined.
8839 (assemble_variable_contents): Sanity check that the caller
8840 streamed in the ctor in LTO.
8842 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8844 * graphite-isl-ast-to-gimple.c:
8845 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8846 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8847 isl_ast_op_pdiv_r to the different case.
8849 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8851 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8854 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8855 when flag_errno_math is on.
8857 2014-07-24 Martin Liska <mliska@suse.cz>
8859 * cgraph.h (varpool_node):
8860 (availability get_availability (void)):
8861 created from cgraph_variable_initializer_availability
8862 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8863 created from: cgraph_variable_initializer_availability
8864 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8865 (void finalize_named_section_flags (void)):
8866 created from varpool_finalize_named_section_flags
8867 (bool assemble_decl (void)): created from varpool_assemble_decl
8868 (void analyze (void)): created from varpool_analyze_node
8869 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8870 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8871 (void remove_initializer (void)): created from varpool_remove_initializer
8872 (tree get_constructor (void)): created from varpool_get_constructor
8873 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8874 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8875 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8876 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8877 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8878 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8879 (static bool output_variables (void)): created from varpool_output_variables
8880 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8881 created from varpool_extra_name_alias
8882 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8883 (static void dump_varpool (FILE *f)): created from dump_varpool
8884 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8885 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8886 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8887 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8888 (void assemble_aliases (void)): created from assemble_aliases
8890 2014-07-24 Martin Liska <mliska@suse.cz>
8892 * cgraph.h (symtab_node):
8893 (void register_symbol (void)): created from symtab_register_node
8894 (void remove (void)): created from symtab_remove_node
8895 (void dump (FILE *f)): created from dump_symtab_node
8896 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8897 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8898 (struct ipa_ref *add_reference (symtab_node *referred_node,
8899 enum ipa_ref_use use_type)): created from add_reference
8900 (struct ipa_ref *add_reference (symtab_node *referred_node,
8901 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8902 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8903 gimple stmt)): created from maybe_add_reference
8904 (bool semantically_equivalent_p (symtab_node *target)): created from
8905 symtab_semantically_equivalent_p
8906 (void remove_from_same_comdat_group (void)): created from
8907 remove_from_same_comdat_group
8908 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8909 symtab_add_to_same_comdat_group
8910 (void dissolve_same_comdat_group_list (void)): created from
8911 symtab_dissolve_same_comdat_group_list
8912 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8913 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8914 created from symtab_alias_ultimate_target
8915 (inline symtab_node *next_defined_symbol (void)): created from
8916 symtab_next_defined_symbol
8917 (bool resolve_alias (symtab_node *target)): created from
8918 symtab_resolve_alias
8919 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8920 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8921 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8922 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8923 (void set_section (const char *section)): created from set_section_1
8924 (enum availability get_availability (void)): created from symtab_node_availability
8925 (void make_decl_local (void)): created from symtab_make_decl_local
8926 (bool real_symbol_p (void)): created from symtab_read_node
8927 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8928 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8929 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8930 symtab_in_same_comdat_p;
8931 (bool address_taken_from_non_vtable_p (void)): created from
8932 address_taken_from_non_vtable_p
8933 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8934 (static void dump_table (FILE *)): created from dump_symtab
8935 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8936 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8937 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8938 symtab_used_from_object_file_p
8939 (void dump_base (FILE *)): created from dump_symtab_base
8940 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8941 (void unregister (void)): created from symtab_unregister_node
8942 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8943 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8944 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8945 symtab_nonoverwritable_alias_1
8946 * cgraph.h (cgraph_node):
8947 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8948 created from cgraph_remove_node_and_inline_clones
8949 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8950 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8951 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8952 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8953 created from cgraph_function_node
8954 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8955 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8956 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8957 created from cgraph_create_clone
8958 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8959 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8960 created from cgraph_create_virtual_clone
8961 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8962 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8963 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8964 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8965 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8966 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8967 created from cgraph_function_version_info
8968 (struct cgraph_function_version_info *insert_new_function_version (void)):
8969 created from insert_new_cgraph_node_version
8970 (struct cgraph_function_version_info *function_version (void)): created from
8971 get_cgraph_node_version
8972 (void analyze (void)): created from analyze_function
8973 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8974 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8975 tree real_alias) cgraph_add_thunk
8976 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8977 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8978 created from cgraph_function_or_thunk_node
8979 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8980 created from expand_thunk
8981 (void reset (void)): created from cgraph_reset_node
8982 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8983 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8984 (void remove (void)): created from cgraph_remove_node
8985 (void dump (FILE *f)): created from dump_cgraph_node
8986 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8987 (bool get_body (void)): created from cgraph_get_body
8988 (void release_body (void)): created from cgraph_release_function_body
8989 (void unnest (void)): created from cgraph_unnest_node
8990 (void make_local (void)): created from cgraph_make_node_local
8991 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8992 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8993 gcov_type count, int freq)): created from cgraph_create_edge
8994 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8995 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8996 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8997 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8998 created from cgraph_create_edge_including_clones
8999 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
9000 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
9001 (void remove_callers (void)): created from cgraph_node_remove_callers
9002 (void remove_callees (void)): created from cgraph_node_remove_callees
9003 (enum availability get_availability (void)): created from cgraph_function_body_availability
9004 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
9005 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
9006 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
9007 (void call_duplication_hooks (cgraph_node *node2)): created from
9008 cgraph_call_node_duplication_hooks
9009 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
9010 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
9011 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
9012 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
9013 (void call_function_insertion_hooks (void)):
9014 created from cgraph_call_function_insertion_hooks
9015 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
9016 (bool local_p (void)): created from cgraph_local_node
9017 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
9018 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
9019 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
9020 (inline bool only_called_directly_or_aliased_p (void)):
9021 created from cgraph_only_called_directly_or_aliased_p
9022 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
9023 created from cgraph_will_be_removed_from_program_if_no_direct_calls
9024 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
9025 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
9026 (bool can_remove_if_no_direct_calls_p (void)):
9027 created from cgraph_can_remove_if_no_direct_calls_p
9028 (inline bool has_gimple_body_p (void)):
9029 created from cgraph_function_with_gimple_body_p
9030 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
9031 (static void dump_cgraph (FILE *f)): created from dump_cgraph
9032 (static inline void debug_cgraph (void)): created from debug_cgraph
9033 (static void record_function_versions (tree decl1, tree decl2)):
9034 created from record_function_versions
9035 (static void delete_function_version (tree decl)):
9036 created from delete_function_version
9037 (static void add_new_function (tree fndecl, bool lowered)):
9038 created from cgraph_add_new_function
9039 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
9040 (static cgraph_node * create (tree decl)): created from cgraph_create_node
9041 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
9042 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
9043 (static cgraph_node *get_for_asmname (tree asmname)):
9044 created from cgraph_node_for_asm
9045 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
9046 created from cgraph_same_body_alias
9047 (static bool used_from_object_file_p_worker (cgraph_node *node,
9048 void *): new function
9049 (static bool non_local_p (cgraph_node *node, void *)):
9050 created from cgraph_non_local_node_p_1
9051 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
9052 created from verify_cgraph
9053 (static bool make_local (cgraph_node *node, void *)):
9054 created from cgraph_make_node_local
9055 (static cgraph_node *create_alias (tree alias, tree target)):
9056 created from cgraph_create_function_alias
9057 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
9058 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
9059 created from cgraph_create_edge_1
9060 * cgraph.h (varpool_node):
9061 (void remove (void)): created from varpool_remove_node
9062 (void dump (FILE *f)): created from dump_varpool_node
9064 2014-07-24 Richard Biener <rguenther@suse.de>
9067 * tree-ssa-structalias.c (create_variable_info_for_1):
9068 Use varpool_get_constructor.
9069 (create_variable_info_for): Likewise.
9071 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9073 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
9074 subtract outgoing area size when restoring stack_pointer_rtx.
9076 2014-07-24 Nick Clifton <nickc@redhat.com>
9078 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
9079 that operations are taking place in parallel.
9080 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
9082 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
9084 * omp-low.c (extract_omp_for_data): Add missing break statement.
9086 2014-07-24 Richard Biener <rguenther@suse.de>
9088 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
9089 * tree-inline.c (estimate_move_cost): Add speed_p parameter
9090 and adjust MOVE_RATIO query accordingly.
9091 (estimate_num_insns): Adjust callers.
9092 * ipa-prop.c (ipa_populate_param_decls): Likewise.
9093 * ipa-cp.c (gather_context_independent_values,
9094 estimate_local_effects): Likewise.
9095 * ipa-split.c (consider_split): Likewise.
9097 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
9099 * config/i386/driver-i386.c: Remove names of unused arguments and
9100 unnecessary unused attributes.
9101 * config/i386/host-mingw32.c: Likewise.
9102 * config/i386/i386.c: Likewise.
9103 * config/i386/winnt-stubs.c: Likewise.
9104 * config/i386/winnt.c: Likewise.
9106 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9108 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
9109 (aarch64_gen_loadwb_pair): New helper function.
9110 (aarch64_expand_epilogue): Simplify code using new helper functions.
9111 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
9113 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9115 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
9116 (aarch64_gen_storewb_pair): New helper function.
9117 (aarch64_expand_prologue): Simplify code using new helper functions.
9118 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
9120 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9122 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
9123 Rename to aarch64_save_callee_saves, remove restore code.
9124 (aarch64_restore_callee_saves): New function.
9126 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9128 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
9129 (aarch64_save_callee_saves): New function to handle reg save
9130 for both core and vectore regs.
9132 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9134 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
9135 (aarch64_gen_store_pair): New helper function.
9136 (aarch64_save_or_restore_callee_save_registers)
9137 (aarch64_save_or_restore_fprs): Use new helper functions.
9139 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9141 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
9142 (aarch64_save_or_restore_callee_save_registers)
9143 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
9145 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9147 * config/aarch64/aarch64.c
9148 (aarch64_save_or_restore_callee_save_registers)
9149 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
9151 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9153 * config/aarch64/aarch64.c
9154 (aarch64_save_or_restore_callee_save_registers)
9155 (aarch64_save_or_restore_fprs): Remove 'increment'.
9157 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9159 * config/aarch64/aarch64.c
9160 (aarch64_save_or_restore_callee_save_registers)
9161 (aarch64_save_or_restore_fprs): Use register offset in
9162 cfun->machine->frame.reg_offset.
9164 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9166 * config/aarch64/aarch64.c
9167 (aarch64_save_or_restore_callee_save_registers)
9168 (aarch64_save_or_restore_fprs): Remove base_rtx.
9170 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9172 * config/aarch64/aarch64.c
9173 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
9174 to 'start_offset'. Remove local variable 'start_offset'.
9176 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9178 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
9179 type to HOST_WIDE_INT.
9181 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9183 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9184 (aarch64_save_or_restore_fprs)
9185 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
9187 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9189 * config/arm/t-rtems-eabi: Add
9190 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
9191 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
9192 mbig-endian/mthumb/march=armv7-r, and
9193 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9196 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9197 Chris Johns <chrisj@rtems.org>
9198 Joel Sherrill <joel.sherrill@oarcorp.com>
9200 * config.gcc: Add nios2-*-rtems*.
9201 * config/nios2/rtems.h: New file.
9202 * gcc/config/nios2/t-rtems: New file.
9204 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9207 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9208 constant numbers, not general constants.
9209 (rs6000_expand_vector_init): Ditto.
9211 2014-07-23 Nathan Sidwell <nathan@acm.org>
9213 * gcov-tool.c (gcov_list): Declare here.
9214 (set_gcov_list): Remove.
9215 (gcov_output_files): Set gcov_list directly.
9217 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9219 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9221 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9223 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9224 callee-saved registers are available for padding purpose
9225 and r3 is not mandatory, then prefer use those callee-saved
9228 2014-07-23 Richard Biener <rguenther@suse.de>
9230 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9231 * combine.c: Include statistics.h and params.h.
9232 (combine_instructions): Guard three and four insn combines
9233 with max-combine-insns value. Record statistics for combines
9235 * doc/invoke.texi (max-combine-insns): Document new param.
9237 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9239 * graphite-isl-ast-to-gimple.c:
9240 (translate_isl_ast_node_block): New function.
9241 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9243 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9244 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9246 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9248 * graphite-isl-ast-to-gimple.c:
9249 (get_max_schedule_dimensions): New function.
9250 (extend_schedule): Likewise.
9251 (generate_isl_schedule): Add calling of extend_schedule and
9252 get_max_schedule_dimensions.
9254 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9256 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9257 (case UNSPEC): Handle UNSPEC_RBIT.
9259 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9261 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9262 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9264 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9266 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9268 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9270 * graphite-isl-ast-to-gimple.c:
9271 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9273 (build_iv_mapping): New function.
9274 (translate_isl_ast_node_user): Likewise.
9275 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9277 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9278 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9279 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9281 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9284 * config/arm/arm.md (setmem): New pattern.
9285 * config/arm/arm-protos.h (struct tune_params): New fields.
9286 (arm_gen_setmem): New prototype.
9287 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9288 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9289 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9290 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9291 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9292 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9293 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9294 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9295 (arm_const_inline_cost): New function.
9296 (arm_block_set_max_insns): New function.
9297 (arm_block_set_non_vect_profit_p): New function.
9298 (arm_block_set_vect_profit_p): New function.
9299 (arm_block_set_unaligned_vect): New function.
9300 (arm_block_set_aligned_vect): New function.
9301 (arm_block_set_unaligned_non_vect): New function.
9302 (arm_block_set_aligned_non_vect): New function.
9303 (arm_block_set_vect, arm_gen_setmem): New functions.
9305 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9307 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9309 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9312 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9313 out of #ifdef __OPTIMIZE__.
9315 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9317 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9318 different trapping status if -fnon-call-exceptions is enabled.
9320 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9322 * expr.c (store_field): Handle VOIDmode for calls that return values
9323 in multiple locations.
9325 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9327 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9328 (altivec_vsldoi_<mode>): Likewise.
9330 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9332 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9333 to the number of characters in the line.
9335 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9337 * graphite-isl-ast-to-gimple.c: Add using of
9338 build_nonstandard_integer_type instead of int128_integer_type_node.
9340 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9342 * toplev.c (output_stack_usage): Adjust the location of the warning.
9344 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9346 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9347 (*membar_storeload): Disable for LEON3.
9349 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9351 PR rtl-optimization/61461
9352 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9354 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9357 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9358 Fix instruction constraint.
9359 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9361 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9363 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9365 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9367 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9368 GNU coding standards.
9369 (nds32_register_move_cost): Likewise.
9370 (nds32_memory_move_cost): Likewise.
9371 (nds32_address_cost): Likewise.
9373 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9375 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9377 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9379 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9380 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9381 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9382 (HAVE_sync_compare_and_swapqi): Define.
9383 (HAVE_sync_compare_and_swaphi): Likewise.
9384 (HAVE_sync_compare_and_swapsi): Likewise.
9386 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9388 * config/mips/p5600.md: Add missing cpu tests.
9390 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9392 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9393 (vmla_f64): Likewise.
9394 (vfms_f64): Likewise.
9395 (vmls_f64): Likewise.
9397 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9399 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9400 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9402 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9404 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9405 (vmlal_high_lane_s32): Likewise.
9406 (vmlal_high_lane_u16): Likewise.
9407 (vmlal_high_lane_u32): Likewise.
9408 (vmlsl_high_lane_s16): Likewise.
9409 (vmlsl_high_lane_s32): Likewise.
9410 (vmlsl_high_lane_u16): Likewise.
9411 (vmlsl_high_lane_u32): Likewise.
9413 2014-07-17 Terry Guo <terry.guo@arm.com>
9415 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9416 (alus_reg): Renamed to alus_sreg.
9417 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9418 from alu_reg to alu_sreg. Change type of dsp instructions from
9419 alu_reg to alu_dsp_reg.
9420 * config/arm/thumb1.md: Likewise.
9421 * config/arm/thumb2.md: Likewise.
9422 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9423 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9424 with alu_sreg and alus_sreg.
9425 * config/arm/arm1026ejs.md (alu_op): Likewise.
9426 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9427 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9428 * config/arm/fa526.md (526_alu_op): Likewise.
9429 * config/arm/fa606te.md (606te_alu_op): Likewise.
9430 * config/arm/fa626te.md (626te_alu_op): Likewise.
9431 * config/arm/fa726te.md (726te_alu_op): Likewise.
9432 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9433 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9434 alu_sreg, alu_dsp_reg and alus_sreg.
9435 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9436 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9437 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9438 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9439 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9440 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9441 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9442 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9443 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9444 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9445 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9446 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9447 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9448 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9449 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9450 alus_reg to alus_sreg.
9452 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9454 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9457 2014-07-17 Richard Biener <rguenther@suse.de>
9459 PR rtl-optimization/61801
9460 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9461 don't set reg_pending_barrier if it appears in a debug-insn.
9463 2014-07-16 DJ Delorie <dj@redhat.com>
9465 * config/rx/rx.c (rx_option_override): Fix alignment values.
9466 (rx_align_for_label): Likewise.
9468 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9471 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9472 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9473 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9475 (cris_print_index, cris_print_operand, cris_constant_index_p)
9476 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9477 (cris_address_cost): Ditto last CONSTANT_P.
9478 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9479 callers changed. Yield cris_offsettable_symbol for non-PIC
9480 constant symbolic expressions including labels. Yield cris_unspec
9482 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9483 target to pic_offset_table_rtx for calls that will likely go
9484 through PLT, const0_rtx when they can't. All callers changed.
9485 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9486 symbolic expressions to be PICified. Remove second, redundant,
9487 assert on can_create_pseudo_p returning non-zero. Use
9488 replace_equiv_address_nv, not replace_equiv_address, for final
9490 * config/cris/cris.md ("movsi"): Move variable t to pattern
9491 toplevel. Adjust assert for new cris_symbol_type member. Use
9492 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9493 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9495 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9496 ("call", "call_value"): Use second incoming operand as a marker
9497 for pic-offset-table-register being used.
9498 ("*expanded_call_non_v32", "*expanded_call_v32")
9499 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9500 second incoming operand to CALL, match cris_call_type_marker.
9501 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9502 ("*expanded_call_side"): Ditto. Fix typo in comment.
9503 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9505 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9506 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9507 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9508 users changed. Add members cris_offsettable_symbol and cris_unspec.
9509 (cris_symbol_type): Rename from cris_pic_symbol_type.
9510 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9512 * config/cris/cris-protos.h (cris_symbol_type_of,
9513 cris_expand_pic_call_address): Adjust prototypes.
9514 (cris_legitimate_constant_p): New prototype.
9516 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9517 an existing tmake_file. Don't add t-slibgcc and t-linux.
9519 2014-07-17 Jason Merrill <jason@redhat.com>
9522 * symtab.c (symtab_remove_from_same_comdat_group): Also
9523 set_comdat_group to NULL_TREE.
9524 (verify_symtab): Fix diagnostic.
9526 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9529 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9531 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9533 Support location tracking for built-in macro tokens
9534 * input.h (is_location_from_builtin_token): New function declaration.
9535 * input.c (is_location_from_builtin_token): New function definition.
9536 * toplev.c (general_init): Tell libcpp what the pre-defined
9537 spelling location for built-in tokens is.
9539 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9541 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9542 on the FUNCTION_DECL.
9544 2014-07-16 Richard Biener <rguenther@suse.de>
9547 * doc/extend.texi (always_inline): Clarify.
9549 2014-07-15 Eric Christopher <echristo@gmail.com>
9551 * doc/invoke.texi (Link Options): Document -z option.
9553 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9555 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9556 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9558 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9560 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9562 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9564 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9565 varpool_assemble_decl.
9566 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9569 2014-07-15 Michael Matz <matz@suse.de>
9571 PR rtl-optimization/61772
9572 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9574 2014-07-15 Richard Biener <rguenther@suse.de>
9576 * opts.c (default_options_table): Disable bit-ccp at -Og.
9578 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9580 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9582 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9584 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9585 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9586 call langhook for unknown declaration.
9587 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9588 * tree.h (DECL_ARGUMENTS): Update.
9589 * print-tree.c (print_node): Update.
9590 * tree-core.h (tree_decl_non_common): Remove arguments.
9591 (tree_function_decl): Add arguments.
9593 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9595 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9597 2014-07-14 Richard Biener <rguenther@suse.de>
9599 PR tree-optimization/61779
9600 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9601 simplifying a condition.
9603 2014-07-14 Richard Biener <rguenther@suse.de>
9605 * builtins.c (c_strlen): Make only_value == 2 really only
9606 affect warning generation.
9608 2014-07-14 Richard Biener <rguenther@suse.de>
9610 PR tree-optimization/61757
9611 PR tree-optimization/61783
9612 PR tree-optimization/61787
9613 * tree-ssa-dom.c (record_equality): Revert canonicalization
9614 change and add comment.
9615 (propagate_rhs_into_lhs): Revert previous fix, removing
9616 loop depth restriction again.
9618 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9620 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9621 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9622 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9623 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9624 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9625 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9626 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9628 2014-07-14 Richard Biener <rguenther@suse.de>
9630 * cgraph.h (decl_in_symtab_p): Make inline.
9632 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9635 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9638 * config/i386/i386.c (classify_argument): Don't merge classes above
9641 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9643 * cgraph.h (symtab_node): Add nonzero_address.
9644 (decl_in_symtab_p): Break out from ...
9645 (symtab_get_node): ... here.
9646 * fold-const.c: Include cgraph.h
9647 (tree_single_nonzero_warnv_p): Use symtab to determine
9648 if symbol is non-zero.
9649 * symtab.c (symtab_node::nonzero_address): New method.
9651 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9653 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9654 forgotten in previous commit.
9656 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9658 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9660 * ipa-devirt.c: Include stor-layout.h and intl.h
9661 (odr_subtypes_equivalent_p): New function.
9662 (warn_odr): New function.
9663 (warn_type_mismatch): New function.
9664 (odr_types_equivalent_p): New function.
9665 (add_type_duplicate): Use it.
9666 * common.opt (Wodr): New flag.
9667 * doc/invoke.texi (Wodr): Document new warning.
9669 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9671 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9672 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9673 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9674 (varpool_get_constructor): Push CTORS_IN timevar.
9675 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9677 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9679 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9680 Remove VOID_FTYPE_PUSHORT.
9681 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9682 Change code to USHORT_FTYPE_VOID.
9683 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9684 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9685 (ix86_atomic_assign_expand_fenv): Update for
9686 __builtin_ia32_fnstsw changes.
9687 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9688 (fnstsw): Change operand 0 to nonimmediate operand.
9690 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9692 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9693 (varpool_get_constructor): New function.
9694 (varpool_ctor_useable_for_folding_p): Break out from ...
9695 (ctor_for_folding): ... here; use varpool_get_constructor.
9696 (varpool_assemble_decl): Likewise.
9697 * lto-streamer.h (struct output_block): Turn cgraph_node
9699 (lto_input_variable_constructor): Declare.
9700 * ipa-visibility.c (function_and_variable_visibility): Use
9701 varpool_get_constructor.
9702 * cgraph.h (varpool_get_constructor): Declare.
9703 (varpool_ctor_useable_for_folding_p): New function.
9704 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9705 parameter; return error_mark_node for non-trivial constructors.
9706 (lto_write_tree_1, DFS_write_tree): Update use of
9707 get_symbol_initial_value.
9708 (output_function): Update initialization of symbol.
9709 (output_constructor): New function.
9710 (copy_function): Rename to ..
9711 (copy_function_or_variable): ... this one; handle vars too.
9712 (lto_output): Output variable sections.
9713 * lto-streamer-in.c (input_constructor): New function.
9714 (lto_read_body): Rename from ...
9715 (lto_read_body_or_constructor): ... this one; handle vars too.
9716 (lto_input_variable_constructor): New function.
9717 * ipa-prop.c (ipa_prop_write_jump_functions,
9718 ipa_prop_write_all_agg_replacement): Update.
9719 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9720 (output_cgraph_opt_summary): Set symbol to NULL.
9722 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9724 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9725 non-polymorphic types.
9726 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9727 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9728 of types is not polymorphic.
9730 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9732 * lra-constraints.c (remove_inheritance_pseudos): Process
9733 destination pseudo too.
9735 2014-07-11 Rong Xu <xur@google.com>
9737 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9740 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9742 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9743 * config/avr/avr-devices.c (AVR_MCU): Same.
9744 (avr_mcu_types): add text start value to end of device list.
9745 * config/avr/avr-mcus.def: Add text section start for all devices.
9746 (ata5782): Add new avr5 device.
9748 * config/avr/avr-tables.opt: Regenerate.
9749 * config/avr/avr.h: Add declaration for text section start handler.
9750 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9752 (LINK_SPEC): Include text section start handler to linker spec.
9753 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9754 pass -Ttext option to linker if the text section start for the device
9756 * config/avr/t-multilib: Regenerate.
9757 * doc/avr-mmcu.texi: Regenerate.
9759 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9761 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9762 * config/rs6000/aix52.h (LINK_SPEC): Same.
9763 * config/rs6000/aix53.h (LINK_SPEC): Same.
9764 * config/rs6000/aix61.h (LINK_SPEC): Same.
9765 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9767 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9769 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9770 (graphite_verify): New function.
9771 (ivs_params_clear): New function.
9772 (gcc_expression_from_isl_ast_expr_id): New function.
9773 (gcc_expression_from_isl_expr_int): New function.
9774 (binary_op_to_tree): New function.
9775 (ternary_op_to_tree): New function.
9776 (unary_op_to_tree): New function.
9777 (nary_op_to_tree): New function.
9778 (gcc_expression_from_isl_expr_op): New function.
9779 (gcc_expression_from_isl_expression): New function.
9780 (graphite_create_new_loop): New function.
9781 (translate_isl_ast_for_loop): New function.
9782 (get_upper_bound): New function.
9783 (graphite_create_new_loop_guard): New function.
9784 (translate_isl_ast_node_for): New function.
9785 (translate_isl_ast): New function.
9786 (add_parameters_to_ivs_params): New function.
9787 (scop_to_isl_ast): New parameter ip.
9788 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9790 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9792 * config/xtensa/predicates.md (call expander): Update for
9793 DECL_SECTION_NAME being string.
9795 2014-07-11 Richard Biener <rguenther@suse.de>
9798 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9799 can be implemented with a single load followed by a single store.
9800 (c_strlen): Only warn when only_value is not 2.
9802 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9804 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9806 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9809 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9810 (*movhi_bytes): Likewise.
9811 (*arm_movqi_insn): Likewise.
9813 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9816 * config/alpha/alpha.c: Include tree-pass.h, context.h
9818 (pass_data_handle_trap_shadows): New pass.
9819 (pass_handle_trap_shadows::gate): New pass gate function.
9820 (make_pass_handle_trap_shadows): New function.
9821 (rest_of_handle_trap_shadows): Ditto.
9823 (alpha_align_insns_1): Rename from alpha_align_insns.
9824 (pass_data_align_insns): New pass.
9825 (pass_align_insns::gate): New pass gate function.
9826 (make_pass_aling_insns): New function.
9827 (rest_of_align_insns): Ditto.
9828 (alpha_align_insns): Ditto.
9830 (alpha_option_override): Declare handle_trap_shadows info
9831 and align_insns_info. Register handle_trap_shadows and align_insns
9833 (alpha_reorg): Do not call alpha_trap_shadows and
9834 alpha_align_insn from here.
9836 (alpha_pad_function_end): Do not skip BARRIERs.
9838 2014-07-10 Rong Xu <xur@google.com>
9840 Add gcov-tool: an offline gcda profile processing tool support.
9841 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9842 (gcov_is_error): Ditto.
9843 (gcov_read_string): Ditto.
9844 (gcov_read_sync): Ditto.
9845 * gcov-io.h: Move counter defines to gcov-counter.def.
9846 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9847 * coverage.c: Ditto.
9848 * gcov-tool.c: Offline gcda profile processing tool.
9849 (unlink_gcda_file): Remove one gcda file.
9850 (unlink_profile_dir): Remove gcda files from the profile path.
9851 (gcov_output_files): Output gcda files to an output dir.
9852 (profile_merge): Merge two profiles in directory.
9853 (print_merge_usage_message): Print merge usage.
9854 (merge_usage): Print merge usage and exit.
9855 (do_merge): Driver for profile merge sub-command.
9856 (profile_rewrite): Rewrite profile.
9857 (print_rewrite_usage_message): Print rewrite usage.
9858 (rewrite_usage): Print rewrite usage and exit.
9859 (do_rewrite): Driver for profile rewrite sub-command.
9860 (print_usage): Print gcov-info usage and exit.
9861 (print_version): Print gcov-info version.
9862 (process_args): Process arguments.
9863 (main): Main routine for gcov-tool.
9864 * Makefile.in: Build and install gcov-tool.
9865 * gcov-counter.def: New file split from gcov-io.h.
9866 * doc/gcc.texi: Include gcov-tool.texi.
9867 * doc/gcov-tool.texi: Document for gcov-tool.
9869 2014-07-10 Richard Biener <rguenther@suse.de>
9871 PR tree-optimization/61757
9872 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9873 (propagate_rhs_into_lhs): Revert part of last change.
9875 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9877 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9880 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9883 * function.c (allocate_struct_function): Revert r188667 change.
9885 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9887 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9889 * doc/install.texi: Remove links to defunct package providers for
9892 2014-07-09 Tom de Vries <tom@codesourcery.com>
9894 * final.c (get_call_fndecl): Declare.
9895 (self_recursive_call_p): New function.
9896 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9898 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9900 * ipa-devirt.c (record_node): Walk through aliases.
9902 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9904 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9906 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9909 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9911 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9913 * ipa-visibility.c (function_and_variable_visibility): Remove
9914 temporary hack disabling local aliases on AIX.
9916 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9918 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9919 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9921 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9923 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9924 * rs6000/rs6000.c: Inline output of .set instruction.
9925 (declare_alias_data): New struct.
9926 (rs6000_declare_alias): New function.
9927 (rs6000_xcoff_declare_function_name): Use it.
9928 (rs6000_xcoff_declare_object_name): New function.
9929 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9930 (ASM_OUTPUT_DEF): Turn to empty definition.
9932 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9935 * hash-table.h: use hash_table::value_type instead of
9936 Descriptor::value_type in the return types of several methods.
9938 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9940 * tree-pass.h (pass_data): Remove has_execute member.
9941 * passes.c (execute_one_pass): Don't check pass->has_execute.
9942 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9943 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9944 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9945 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9946 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9947 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9948 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9949 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9950 gimple-low.c, gimple-ssa-isolate-paths.c,
9951 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9952 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9953 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9954 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9955 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9956 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9957 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9958 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9959 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9960 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9961 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9962 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9963 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9964 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9965 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9966 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9967 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9968 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9969 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9970 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9971 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9972 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9973 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9974 web.c: Remove initializer for pass_data::has_execute.
9976 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9978 * graphite-htab.h: Use hash_map instead of hash_table.
9979 * graphite-clast-to-gimple.c: Adjust.
9980 * passes.c: Use hash_map instead of hash_table.
9982 * sese.h: Remove now unused code.
9984 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9987 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9990 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9992 PR rtl-optimization/61673
9993 * combine.c (simplify_comparison): Test just mode's sign bit
9994 in tmode rather than the sign bit and any bits above it.
9996 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9998 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9999 Add __isl_give to the declaration.
10000 (generate_isl_schedule): Likewise.
10001 (scop_to_isl_ast): Likewise.
10003 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10005 * config/arm/arm.c (cortexa5_extra_costs): New table.
10006 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
10008 2014-07-08 Jakub Jelinek <jakub@redhat.com>
10010 PR tree-optimization/61725
10011 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
10012 range, use range_includes_zerop_p instead of integer_zerop on
10013 vr0->min, only use log2 of max if min is not negative.
10015 2014-07-08 Richard Biener <rguenther@suse.de>
10017 * tree-ssa-dom.h (loop_depth_of_name): Remove.
10018 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
10019 restriction on loop depth difference.
10020 (record_equality): Likewise.
10021 (propagate_rhs_into_lhs): Likewise. Simplify condition.
10022 (loop_depth_of_name): Remove.
10023 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
10024 restriction on loop depth difference.
10025 (init_copy_prop): Likewise.
10027 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10029 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
10031 (walk_aliased_vdefs): Likewise.
10032 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
10033 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
10034 (detect_type_change_from_memory_writes): Check if entry was reached.
10036 2014-07-08 Richard Biener <rguenther@suse.de>
10038 PR tree-optimization/61681
10039 * tree-ssa-structalias.c (find_what_var_points_to): Expand
10040 NONLOCAL inside ESCAPED.
10042 2014-07-08 Richard Biener <rguenther@suse.de>
10044 PR tree-optimization/61680
10045 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10046 Handle properly all read-write dependences with group accesses.
10048 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10050 PR tree-optimization/61576
10051 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
10052 block containing reduction statement is predecessor of phi basi block.
10054 2014-07-08 Marek Polacek <polacek@redhat.com>
10057 * fold-const.c (round_up_loc): Change the parameter type.
10059 * fold-const.h (round_up_loc): Adjust declaration.
10060 * stor-layout.c (finalize_record_size): Check for too large types.
10062 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
10064 * symtab.c: Include calls.h.
10065 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
10067 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
10069 * config/rs6000/rs6000.c (output_vec_const_move): Handle
10070 little-endian code generation.
10071 * config/rs6000/spe.md (spe_evmergehi): Rename to...
10072 (vec_perm00_v2si): ... this. Handle little-endian code generation.
10073 (spe_evmergehilo): Rename to...
10074 (vec_perm01_v2si): ... this. Handle little-endian code generation.
10075 (spe_evmergelo): Rename to...
10076 (vec_perm11_v2si): ... this. Handle little-endian code generation.
10077 (spe_evmergelohi): Rename to...
10078 (vec_perm10_v2si): ... this. Handle little-endian code generation.
10079 (spe_evmergehi, spe_evmergehilo): New expanders.
10080 (spe_evmergelo, spe_evmergelohi): Likewise.
10081 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
10082 (*frob_tf_ti): Likewise.
10083 (*frob_<mode>_di_2): Likewise.
10084 (*frob_tf_di_8_2): Likewise.
10085 (*frob_di_<mode>): Likewise.
10086 (*frob_ti_tf): Likewise.
10087 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
10088 (*frob_ti_<mode>_8_2): Likewise.
10089 (*frob_ti_tf_2): Likewise.
10090 (mov_si<mode>_e500_subreg0): Rename to...
10091 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
10093 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
10094 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
10095 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
10096 the big endianness only.
10097 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
10098 (*mov_si<mode>_e500_subreg0_2): Rename to...
10099 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
10100 big big endianness only.
10101 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
10102 (*mov_si<mode>_e500_subreg4): Rename to...
10103 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
10105 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
10106 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
10107 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
10108 the big endianness only.
10109 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
10111 (*mov_si<mode>_e500_subreg4_2): Rename to...
10112 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
10114 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
10115 (*mov_sitf_e500_subreg8): Rename to...
10116 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
10118 (*mov_sitf_e500_subreg8_le): New instruction pattern.
10119 (*mov_sitf_e500_subreg8_2): Rename to...
10120 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
10122 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
10123 (*mov_sitf_e500_subreg12): Rename to...
10124 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
10126 (*mov_sitf_e500_subreg12_le): New instruction pattern.
10127 (*mov_sitf_e500_subreg12_2): Rename to...
10128 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
10130 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
10132 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
10134 * asan.c (instrument_strlen_call): Do not instrument first byte
10135 in strlen if already instrumented.
10137 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10139 * config/arm/arm.opt (mwords-little-endian): Delete.
10140 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
10141 of TARGET_LITTLE_WORDS.
10142 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
10143 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
10145 * doc/invoke.texi: Remove references to -mwords-little-endian.
10147 2014-07-07 Jakub Jelinek <jakub@redhat.com>
10149 * expmed.c (struct init_expmed_rtl): Change all fields but
10150 pow2 and cint from struct rtx_def to rtx.
10151 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
10152 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
10155 2014-07-06 Marek Polacek <polacek@redhat.com>
10158 * doc/invoke.texi: Document -Wsizeof-array-argument.
10160 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10162 * wide-int.h (wide_int_storage): Change declaration from struct
10165 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
10167 * cgraph.c (cgraph_create_indirect_edge): Update call of
10168 get_polymorphic_call_info.
10169 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
10170 (possible_polymorphic_call_targets): Add parameter call.
10171 (decl_maybe_in_construction_p): New predicate.
10172 (get_polymorphic_call_info): Add parameter call;
10173 use decl_maybe_in_construction_p.
10174 * gimple-fold.c (fold_gimple_assign): Update use of
10175 possible_polymorphic_call_targets.
10176 (gimple_fold_call): Likewise.
10177 * ipa-prop.c: Inlcude calls.h
10178 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
10179 (param_type_may_change_p): New predicate.
10180 (detect_type_change_from_memory_writes): Break out from ...
10181 (detect_type_change): ... this one; use param_type_may_change_p.
10182 (detect_type_change_ssa): Use param_type_may_change_p.
10183 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
10185 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
10188 * config/arm/arm-protos.h (arm_legitimate_address_p,
10189 arm_is_constant_pool_ref): Add prototypes.
10190 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
10191 (arm_is_constant_pool_ref) New function.
10192 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
10193 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10194 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10195 operand. Remove pool_range and neg_pool_range attributes.
10196 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10197 pool_range and neg_pool_range attributes.
10198 * config/arm/constraints.md (Uh): New constraint.
10199 (Uq): Don't allow constant pool references.
10201 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10203 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10204 (move_lo_quad_internal_be_<mode>): Likewise.
10205 (move_lo_quad_<mode>): Convert to define_expand.
10206 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10207 (aarch64_simd_move_hi_quad_be_<mode>): New.
10208 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10209 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10210 (aarch64_combinez_be<mode>): New.
10211 (aarch64_combine<mode>): Convert to define_expand.
10212 (aarch64_combine_internal<mode>): New.
10213 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10215 2014-07-04 Tom de Vries <tom@codesourcery.com>
10217 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10218 combination of earlyclobber and read/write modifiers.
10220 2014-07-04 Tom de Vries <tom@codesourcery.com>
10222 * config/aarch64/aarch64-simd.md
10223 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10225 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10228 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10230 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10232 PR middle-end/61654
10233 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10235 PR tree-optimization/61684
10236 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10237 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10239 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10240 Kito Cheng <kito@0xlab.org>
10241 Monk Chiang <sh.chiang04@gmail.com>
10243 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10244 (nds32_symbol_load_store_p): Move to ...
10245 (nds32_fp_as_gp_check_available): Move to ...
10246 * config/nds32/nds32-fp-as-gp.c: ... here.
10247 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10248 extern declaration.
10250 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10251 Kito Cheng <kito@0xlab.org>
10252 Monk Chiang <sh.chiang04@gmail.com>
10254 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10255 (nds32_expand_store_multiple): Move to ...
10256 (nds32_expand_movmemqi): Move to ...
10257 * config/nds32/nds32-memory-manipulation.c: ... here.
10259 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10260 Kito Cheng <kito@0xlab.org>
10261 Monk Chiang <sh.chiang04@gmail.com>
10263 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10264 (nds32_output_casesi_pc_relative): Move to ...
10265 (nds32_output_casesi): Move to ...
10266 (nds32_mem_format): Move to ...
10267 (nds32_output_16bit_store): Move to ...
10268 (nds32_output_16bit_load): Move to ...
10269 (nds32_output_32bit_store): Move to ...
10270 (nds32_output_32bit_load): Move to ...
10271 (nds32_output_32bit_load_s): Move to ...
10272 (nds32_output_stack_push): Move to ...
10273 (nds32_output_stack_pop): Move to ...
10274 * config/nds32/nds32-md-auxiliary.c: ... here.
10276 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10277 Ling-Hua Tseng <uranus@tinlans.org>
10279 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10280 the purpose of this file.
10282 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10283 Kito Cheng <kito@0xlab.org>
10284 Monk Chiang <sh.chiang04@gmail.com>
10286 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10287 (nds32_address_cost): Move implementation to ...
10288 * config/nds32/nds32-cost.c: ... here.
10289 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10290 (nds32_address_cost_impl): Declare.
10292 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10293 Kito Cheng <kito@0xlab.org>
10294 Monk Chiang <sh.chiang04@gmail.com>
10296 * config/nds32/nds32.c
10297 (nds32_consecutive_registers_load_store_p): Move to ...
10298 (nds32_valid_multiple_load_store): Move to ...
10299 (nds32_valid_stack_push_pop): Move to ...
10300 (nds32_can_use_bclr_p): Move to ...
10301 (nds32_can_use_bset_p): Move to ...
10302 (nds32_can_use_btgl_p): Move to ...
10303 (nds32_can_use_bitci_p): Move to ...
10304 * config/nds32/nds32-predicates.c: ... here.
10306 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10307 Kito Cheng <kito@0xlab.org>
10308 Monk Chiang <sh.chiang04@gmail.com>
10310 * config/nds32/nds32.c
10311 (nds32_expand_builtin_null_ftype_reg): Move to ...
10312 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10313 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10314 (nds32_init_builtins): Move implementation to ...
10315 (nds32_expand_builtin): Move implementation to ...
10316 * config/nds32/nds32-intrinsic.c: ... here.
10317 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10318 (nds32_expand_builtin_impl): Declare.
10320 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10321 Kito Cheng <kito@0xlab.org>
10322 Monk Chiang <sh.chiang04@gmail.com>
10324 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10325 (nds32_emit_section_tail_template): Move to ...
10326 (nds32_emit_isr_jmptbl_section): Move to ...
10327 (nds32_emit_isr_vector_section): Move to ...
10328 (nds32_emit_isr_reset_conten): Move to ...
10329 (nds32_check_isr_attrs_conflict): Move to ...
10330 (nds32_construct_isr_vectors_information): Move to ...
10331 (nds32_asm_file_start): Move implementation to ...
10332 (nds32_asm_file_end): Move implementation to ...
10333 * config/nds32/nds32-isr.c: ... here.
10334 * config/nds32/nds32-protos.h
10335 (nds32_check_isr_attrs_conflict): Declare.
10336 (nds32_construct_isr_vectors_information): Declare.
10337 (nds32_asm_file_start_for_isr): Declare.
10338 (nds32_asm_file_end_for_isr): Declare.
10340 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10341 Kito Cheng <kito@0xlab.org>
10342 Monk Chiang <sh.chiang04@gmail.com>
10344 * config.gcc (nds32*): Add new modules to extra_objs.
10345 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10346 (nds32be-*-*): Likewise.
10347 * config/nds32/nds32-cost.c: New file.
10348 * config/nds32/nds32-fp-as-gp.c: New file.
10349 * config/nds32/nds32-intrinsic.c: New file.
10350 * config/nds32/nds32-isr.c: New file.
10351 * config/nds32/nds32-md-auxiliary.c: New file.
10352 * config/nds32/nds32-memory-manipulation.c: New file.
10353 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10354 * config/nds32/nds32-predicates.c: New file.
10355 * config/nds32/t-nds32: New file.
10357 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10359 PR tree-optimization/61682
10360 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10361 using cases and when one of the operands is equal to 1.
10363 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10365 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10366 ashr<mode>3): Correct mode of operands[2].
10367 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10368 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10369 Correct mode of operands[2]. Fix split condition.
10371 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10373 * arm.md (arch): Add armv6_or_vfpv3.
10374 (arch_enabled): Add test for the above.
10375 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10377 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10379 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10381 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10382 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10383 HWI 1 and negate the unsigned value.
10384 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10385 use AND instead of shift.
10386 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10388 2014-07-03 Marek Polacek <polacek@redhat.com>
10390 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10391 (-fsanitize=float-divide-by-zero): Move to the table with
10392 -fsanitize=undefined suboptions.
10393 (-fsanitize=float-cast-overflow): Likewise.
10395 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10397 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10398 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10401 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10403 * loop-invariant.c (struct invariant): Add a new member: eqno;
10404 (find_identical_invariants): Update eqno;
10405 (create_new_invariant): Init eqno;
10406 (get_inv_cost): Compute comp_cost with eqno;
10408 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10410 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10411 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10412 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10413 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10414 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10416 2014-07-02 Christian Bruel <christian.bruel@st.com>
10420 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10421 (make_preds_opaque): Delete.
10422 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10423 (commit_mode_sets): New function.
10424 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10425 Process all modes at once.
10426 * basic-block.h (pre_edge_lcm_avs): Declare.
10427 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10428 Call clear_aux_for_edges. Fix comments.
10429 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10430 (pre_edge_rev_lcm): Idem.
10431 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10433 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10434 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10436 * config/i386/i386.c (x96_emit_mode_set): Idem.
10437 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10438 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10439 (fpscr_toggle) Disallow from delay slot.
10440 * target.def (emit_mode_set): Add prev_mode parameter.
10441 * doc/tm.texi: Regenerate.
10443 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10445 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10448 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10450 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10451 vtable_pointer_value_to_vtable): Constify.
10452 (contains_polymorphic_type_p): Declare.
10453 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10454 vtable_pointer_value_to_vtable): Constify.
10455 (contains_polymorphic_type_p): New predicate.
10456 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10458 (ipa_set_ancestor_jf): Likewise.
10459 (detect_type_change): Return false in easy cases.
10460 (compute_complex_assign_jump_func): Require type to contain
10462 (compute_known_type_jump_func): Likewise.
10464 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10466 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10468 (type_in_anonymous_namespace_p): Constify argument.
10469 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10470 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10471 (main_odr_variant): New function.
10472 (hash_type_name): Make static; update assert; do not ICE on
10474 (types_same_for_odr): Bring here from tree.c; simplify and remove
10475 old structural comparing code that doesn't work for templates.
10476 (odr_hasher::equal): Update assert.
10477 (add_type_duplicate): Return true when bases should be computed;
10478 replace incomplete loader by complete; do not output duplicated
10479 warnings; do not ICE on non-records; set odr_violated flag.
10480 (get_odr_type): Be ready to replace incomplete type by complete
10481 one; work on ODR variants instead of main variants; reorder item
10482 in array so bases have still smaller indexes.
10483 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10484 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10486 2014-07-01 Cary Coutant <ccoutant@google.com>
10488 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10490 (resolve_addr_in_expr): When replacing the rtx in a location list
10491 entry, get a new address table entry.
10492 (dwarf2out_finish): Call index_location_lists even if there are no
10493 addr_index_table entries yet.
10495 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10497 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10498 change for not being obvious.
10500 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10502 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10505 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10507 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10508 (vcagt_f64): Likewise.
10509 (vcale_f64): Likewise.
10510 (vcaled_f64): Likewise.
10511 (vcales_f32): Likewise.
10512 (vcalt_f64): Likewise.
10513 (vcaltd_f64): Likewise.
10514 (vcalts_f32): Likewise.
10516 2014-07-01 Marek Polacek <polacek@redhat.com>
10518 * doc/invoke.texi: Document -Wint-conversion.
10520 2014-07-01 Marek Polacek <polacek@redhat.com>
10523 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10525 2014-07-01 Martin Liska <mliska@suse.cz>
10527 IPA REF alias refactoring
10528 * cgraph.h (iterate_direct_aliases): New function.
10529 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10530 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10531 FOR_EACH_ALIAS added.
10532 (cgraph_for_node_and_aliases): Likewise.
10533 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10534 * ipa-inline.c (reset_edge_caches): Likewise.
10535 (update_caller_keys): Likewise.
10536 * trans-mem.c (ipa_tm_execute): Likewise.
10537 *varpool.c (varpool_analyze_node): Likewise.
10538 (varpool_for_node_and_aliases): Likewise.
10539 * ipa-ref.h (first_alias): New function.
10540 (last_alias): Likewise.
10541 (has_aliases_p): Likewise.
10542 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10543 is sensitive to IPA_REF_ALIASes.
10544 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10545 are put at the beginning of the list.
10546 (symtab_node::iterate_direct_aliases): New function.
10548 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10551 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10553 (write_ts_type_common_tree_pointers): Do not stream fields not set
10554 for incomplete types; do not stream duplicated fields for variants;
10555 sanity check that variant and type match.
10556 (write_ts_type_non_common_tree_pointers): Likewise.
10557 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10558 TYPE_SIZE whether type is complete.
10559 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10560 write_ts_type_common_tree_pointers
10561 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10563 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10565 * var-tracking.c (add_stores): Return instead of asserting if old
10566 and new values for conditional store are the same.
10568 2014-06-30 Richard Henderson <rth@redhat.com>
10572 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10573 the cfg if there were any changes.
10574 * passes.def: Revert move of peephole2 after reorder_blocks;
10575 move duplicate_computed_gotos before peephole2.
10577 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10579 * except.c (emit_note_eh_region_end): New helper function.
10580 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10581 emit EH_REGION_END note.
10582 * jump.c (cleanup_barriers): Do not split a call and its
10583 corresponding CALL_ARG_LOCATION note.
10585 2014-06-30 Jeff Law <law@redhat.com>
10587 PR tree-optimization/61607
10588 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10589 deeper into the SSA_NAME_VALUE chain.
10591 2014-06-30 Marek Polacek <polacek@redhat.com>
10593 * convert.c (convert_to_integer): Don't instrument conversions if the
10594 function has no_sanitize_undefined attribute.
10595 * ubsan.c: Don't run the ubsan pass if the function has
10596 no_sanitize_undefined attribute.
10598 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10600 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10601 -fsanitize=undefined suboptions.
10603 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10605 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10606 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10607 against bigendian and adjust indices.
10609 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10611 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10613 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10616 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10617 Add alternative; make early clobber. Adjust both split patterns
10618 to use operand 0 as the working register.
10620 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10622 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10623 as ira_object_id_map might be NULL, or 1.
10625 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10627 * loop-invariant.c (get_inv_cost): Handle register class.
10628 (gain_for_invariant): Check the register pressure of the inv
10629 and its overlapped register class, other than all.
10631 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10633 * doc/invoke.texi (Optimize Options): Fix descriptions of
10634 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10636 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10638 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10641 2014-06-29 Tobias Grosser <tobias@grosser.es>
10644 * graphite-isl-ast-to-gimple.c: Add missing guards.
10646 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10648 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10649 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10650 * flag-types.h: Add new enum fgraphite_generator.
10651 * graphite-isl-ast-to-gimple.c: New.
10652 * graphite-isl-ast-to-gimple.h: New.
10653 * graphite.c (graphite_transform_loops): Add choice of Graphite
10654 code generator, which depends on flag_graphite_code_gen.
10656 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10658 * graphite-dependences.c (subtract_commutative_associative_deps):
10659 Add NULL checking of the following variables: must_raw_no_source,
10660 may_raw_no_source, must_war_no_source, may_war_no_source,
10661 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10662 must_war, may_war, must_waw, may_waw.
10664 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10666 * graphite-clast-to-gimple.c: gloog is renamed to
10667 graphite_regenerate_ast_cloog. gloog_error is renamed to
10668 graphite_regenerate_error.
10669 * graphite-clast-to-gimple.h: The definition of the struct
10670 bb_pbb_def is moved to graphite-htab.h.
10671 Add inclusion of the hash-table.h.
10672 * graphite-htab.h: The declaration of the function gloog is moved
10673 to graphite-clast-to-gimple.h and renamed to
10674 graphite_regenerate_ast_cloog.
10675 * graphite.c (graphite_transform_loops): gloog is renamed
10676 to graphite_regenerate_ast_cloog.
10678 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10680 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10682 (write_ts_type_common_tree_pointers): Do not stream fields not set
10683 for incomplete types; do not stream duplicated fields for variants;
10684 sanity check that variant and type match.
10685 (write_ts_type_non_common_tree_pointers): Likewise.
10686 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10687 TYPE_SIZE whether type is complete.
10688 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10689 write_ts_type_common_tree_pointers
10690 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10692 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10694 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10696 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10698 * tree-inline.c (remap_type_1): Do not duplicate fields
10699 that are shared in between type and its main variant.
10701 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10703 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10705 (ipa_set_ancestor_jf) Likewise.
10706 (check_stmt_for_type_change): Check that we work on main variant.
10707 (detect_type_change): Look into main variant.
10708 (compute_known_type_jump_func): Check that main variant has BINFO.
10710 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10712 * ipa-devirt.c (set_type_binfo): New function.
10713 (add_type_duplicate): Use it.
10714 (get_odr_type): Sanity check that binfos points to main variants.
10715 (get_class_context): Be sure the context's outer_type is main variant.
10716 (contains_type_p): Walk main variant.
10717 (get_polymorphic_call_info_for_decl): Set outer_type to be
10719 (get_polymorphic_call_info): Likewise.
10720 (possible_polymorphic_call_targets): Sanity check that we operate
10723 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10725 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10727 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10729 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10730 accidental change due to wide-int branch merge.
10732 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10734 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10735 compressed debug support.
10736 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10737 * configure: Regenerate.
10738 * config.in: Regenerate.
10739 * common.opt (compressed_debug_sections): New enum.
10740 (gz, gz=): New options.
10741 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10742 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10743 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10744 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10745 LINK_COMPRESS_DEBUG_SPEC.
10746 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10747 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10748 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10749 (Debugging Options): Document -gz[=type].
10751 2014-06-27 Martin Jambor <mjambor@suse.cz>
10754 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10755 args_to_skip, use those from node instead. Copy args_to_skip and
10756 combined_args_to_skip from node to the new thunk.
10757 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10758 (cgraph_create_virtual_clone): Moved computation of
10759 combined_args_to_skip...
10760 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10762 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10764 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10765 redundant diagnostic machinary.
10767 2014-06-27 Richard Biener <rguenther@suse.de>
10769 * tree-ssa-math-opts.c (bswap_replace): Fix
10770 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10772 2014-06-27 Martin Liska <mliska@suse.cz>
10774 * gimple.h (gimple_location_safe): New function introduced.
10775 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10776 of gimple_location_safe replaces gimple_location.
10777 (gimple_fold_call): Likewise.
10778 * ipa-devirt.c (ipa_devirt): Likewise.
10779 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10780 * ipa.c (walk_polymorphic_call_targets): Likewise.
10781 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10783 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10785 PR tree-optimization/57233
10786 PR tree-optimization/61299
10787 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10789 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10790 would be lowered to scalar shifts, check if corresponding
10791 shifts and vector BIT_IOR_EXPR are supported and don't lower
10792 or lower just to narrower vector type in that case.
10793 * expmed.c (expand_shift_1): Fix up handling of vector
10794 shifts and rotates.
10796 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10799 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10801 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10803 * doc/invoke.texi (-fsemantic-interposition): Document.
10804 * common.opt (fsemantic-interposition): New flag.
10805 * varasm.c (decl_replaceable_p): Use it.
10807 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10810 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10811 extraction other than index 3.
10813 2014-06-26 Teresa Johnson <tejohnson@google.com>
10815 * doc/invoke.texi: Fix typo.
10816 * dumpfile.c: Add support for documented -fdump-* options
10817 optimized/missed/note/optall.
10819 2014-06-26 Martin Jambor <mjambor@suse.cz>
10821 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10822 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10823 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10824 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10825 * opts.c (default_options_optimization): Set
10826 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10827 * doc/invoke.texi (allow-load-data-races)
10828 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10829 (allow-store-data-races): Document the new default.
10831 2014-06-26 Martin Jambor <mjambor@suse.cz>
10833 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10834 renamed to ipa_impossible_devirt_target. Fix typo.
10835 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10836 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10837 ipa_impossible_devirt_target.
10839 2014-06-26 Richard Biener <rguenther@suse.de>
10841 PR tree-optimization/61607
10842 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10843 explaining why we restrict copies on loop depth.
10844 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10846 (record_equivalences_from_phis): Instead add it here.
10848 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10850 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10851 (LTO_WRAPPER_OBJS): New variable.
10852 (lto-wrapper$(exeext)): Use it.
10853 * collect2.c: Include "collect-utils.h".
10854 (verbose, debug): Remove variables.
10855 (at_file_supplied): No longer static.
10856 (tool_name): New variable.
10857 (do_wait, fork_execute, maybe_unlink): Don't declare.
10858 (tool_cleanup): No longer static.
10859 (notice): Remove function.
10860 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10861 fork_execute calls.
10862 (collect_wait, do_wait, collect_execute): Remove functions.
10863 (maybe_unlink): No longer static.
10864 * collect2.h (verbose, debug): Don't declare.
10865 (at_file_supplied): Declare.
10866 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10868 (collect_execute): Replace with implementation from collect2, plus a
10869 new arg use_atfile. All callers changed.
10870 (collect_wait): Replace with implementation from collect2.
10871 (maybe_unlink_file): Remove function.
10872 (fork_execute): Replace with implementation from collect2, plus a
10873 new arg use_atfile. All callers changed.
10874 (do_wait): Add call to utils_cleanup to the error path.
10875 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10876 (tool_cleanup): Adjust declarations.
10877 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10878 * tlink.c: Include "collect-utils.h".
10879 (tlink_execute): New arg use_atfile. All callers changed.
10880 (tlink_init, tlink_execute): Remove declarations.
10882 * collect-utils.c (save_temps): New variable.
10883 (do_wait): Use it instead of debug. Use fatal_error.
10884 * collect-utils.h (save_temps): Declare.
10885 * collect2.c (verbose): Rename from vflag. All uses changed.
10886 (tool_cleanup): New function, copied from collect_atexit.
10887 (collect_atexit, handler): Just call it.
10888 * collect2.h (verbose): Declaration renamed from vflag.
10889 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10892 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10893 (lto-wrapper$(exeext)): Link with collect-utils.o.
10894 * collect-utils.c: New file.
10895 * collect-utils.h: New file.
10896 * lto-wrapper.c: Include "collect-utils.h".
10897 (args_name): Delete variable.
10898 (tool_name): New variable.
10899 (tool_cleanup): New function.
10900 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10901 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10902 (fork_execute): Remove functions.
10904 2014-06-26 Nick Clifton <nickc@redhat.com>
10906 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10908 * doc/extend.texi (Function Attributes): Fix typo in description
10909 of RX vector attribute.
10911 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10913 * config.gcc (supported_defaults): Error when passing either
10914 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10916 2014-06-26 Richard Biener <rguenther@suse.de>
10918 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10919 propagating volatile pointers.
10921 2014-06-26 Richard Biener <rguenther@suse.de>
10923 PR tree-optimization/61607
10924 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10925 loop if we redirected its latch edge.
10926 (thread_block_1): Do not cancel loops prematurely.
10928 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10930 * toplev.c (backend_init_target): Move init_emit_regs and
10932 (backend_init) ... here; skip ira_init_once and backend_init_target.
10933 (target_reinit) ... and here; clear
10934 this_target_rtl->lang_dependent_initialized.
10935 (lang_dependent_init_target): Clear
10936 this_target_rtl->lang_dependent_initialized;
10937 break out rtl initialization to ...
10938 (initialize_rtl): ... here; call also backend_init_target
10940 * toplev.h (initialize_rtl): New function.
10941 * function.c: Include toplev.h
10942 (init_function_start): Call initialize_rtl.
10943 * rtl.h (target_rtl): Add target_specific_initialized,
10944 lang_dependent_initialized.
10946 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10947 Jakub Jelinek <jakub@redhat.com>
10949 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10951 2014-06-25 Tom de Vries <tom@codesourcery.com>
10953 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10955 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10957 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10958 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10959 Issue a strict overflow warning if appropriate.
10961 2014-06-25 Martin Liska <mliska@suse.cz>
10963 IPA REF refactoring
10964 * Makefile.in: Removed header file (ipa-ref-inline.h).
10965 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10967 (cgraph_speculative_call_info): Likewise.
10968 (cgraph_for_node_thunks_and_aliases): Likewise.
10969 (cgraph_for_node_and_aliases): Likewise.
10970 (verify_cgraph_node): Likewise.
10971 * cgraph.h: Batch of IPA REF functions become member functions of
10972 symtab_node: add_reference, maybe_add_reference, clone_references,
10973 clone_referring, clone_reference, find_reference,
10974 remove_stmt_references, remove_all_references,
10975 remove_all_referring, dump_references, dump_referring,
10976 has_alias_p, iterate_reference, iterate_referring.
10977 * cgraphbuild.c (record_reference): New IPA REF function used.
10978 (record_type_list): Likewise.
10979 (record_eh_tables): Likewise.
10980 (mark_address): Likewise.
10981 (mark_load): Likewise.
10982 (mark_store): Likewise.
10983 (pass_build_cgraph_edges): Likewise.
10984 (rebuild_cgraph_edge): Likewise.
10985 (cgraph_rebuild_references): Likewise.
10986 (pass_remove_cgraph_callee_edges): Likewise.
10987 * cgraphclones.c (cgraph_clone_node): Likewise.
10988 (cgraph_create_virtual_clone): Likewise.
10989 (cgraph_materialize_clone): Likewise.
10990 (cgraph_materialize_all_clones): Likewise.
10991 * cgraphunit.c (cgraph_reset_node): Likewise.
10992 (cgraph_reset_node): Likewise.
10993 (analyze_function): Likewise.
10994 (assemble_thunks_and_aliases): Likewise.
10995 (expand_function): Likewise.
10996 * ipa-comdats.c (propagate_comdat_group): Likewise.
10997 (enqueue_references): Likewise.
10998 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10999 (create_specialized_node): Likewise.
11000 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
11001 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
11002 * ipa-inline.c (reset_edge_caches): Likewise.
11003 (update_caller_keys): Likewise.
11004 (execute): Likewise.
11005 * ipa-prop.c (remove_described_reference): Likewise.
11006 (propagate_controlled_uses): Likewise.
11007 (ipa_edge_duplication_hook): Likewise.
11008 (ipa_modify_call_arguments): Likewise.
11009 * ipa-pure-const.c (propagate_pure_const): Likewise.
11010 * ipa-ref-inline.h: Header file removed, functions moved
11011 to symtab_node class.
11012 * ipa-ref.c (remove_reference): New class member function.
11013 (cannot_lead_to_return): New class member function.
11014 (referring_ref_list): Likewise.
11015 (referred_ref_list): Likewise.
11016 Rest of functions moved to symtab_node class.
11017 * ipa-ref.h: New member functions remove_reference,
11018 cannot_lead_to_return, referring_ref_list, referred_ref_list added
11020 ipa_ref_list class has new member functions: first_reference,
11021 first_referring, clear, nreferences.
11022 * ipa-reference.c (analyze_function): New IPA REF function used.
11023 (write_node_summary_p): Likewise.
11024 (ipa_reference_write_optimization_summary): Likewise.
11025 * ipa-split.c (split_function): Likewise.
11026 * ipa-utils.c (ipa_reverse_postorder): Likewise.
11027 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
11028 (function_and_variable_visibility): Likewise.
11029 * ipa.c (has_addr_references_p): Likewise.
11030 (process_references): Argument type changed.
11031 (symtab_remove_unreachable_nodes): New IPA REF function used.
11032 (process_references): Likewise.
11033 (set_writeonly_bit): Likewise.
11034 * lto-cgraph.c: Implementation of new symtab_node member functions
11035 that uses new IPA REF functions.
11036 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
11038 * lto-streamer-out.c (output_symbol_p): Likewise.
11039 * lto-streamer.h (referenced_from_this_partition_p): Argument type
11041 * symtab.c: Implementation of new IPA REF API.
11042 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
11043 (ipa_tm_create_version): Likewise.
11044 (ipa_tm_execute): Likewise.
11045 * tree-emutls.c (gen_emutls_addr): Likewise.
11046 * tree-inline.c (copy_bb): Likewise.
11047 (delete_unreachable_blocks_update_callgraph): Likewise.
11048 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
11049 (varpool_for_node_and_aliases): Likewise.
11051 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
11053 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
11055 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
11058 * fold-const.c (fold_checksum_tree): Use a hash_table of const
11059 tree_node * instead of tree_node *.
11061 (print_fold_checksum): Likewise.
11062 (fold_check_failed): Likewise.
11063 (debug_fold_checksum): Likewise.
11064 (fold_build1_stat_loc): Likewise.
11065 (fold_build2_stat_loc): Likewise.
11066 (fold_build3_stat_loc): Likewise.
11067 (fold_build_call_array_loc): Likewise.
11069 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
11071 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
11072 implementation with call to...
11073 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
11075 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
11078 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
11080 PR tree-optimization/57742
11081 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
11082 after replacing the statement.
11084 2014-06-25 Nick Clifton <nickc@redhat.com>
11086 * config/v850/v850.c (GHS_default_section_names): Change to const
11088 (GHS_current_section_names): Likewise.
11089 (v850_insert_attributes): Do not build strings, just assign the
11090 names directly. Change the type of 'chosen_section' to const
11092 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
11093 directly to the array entry.
11094 * config/v850/v850.h (GHS_default_section_names): Change to const
11096 (GHS_current_section_names): Likewise.
11098 2014-06-25 Jakub Jelinek <jakub@redhat.com>
11100 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
11101 (LANG_HOOKS_DECLS): Add it.
11102 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
11104 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
11105 * langhooks.h (struct lang_hooks_for_decls): Add
11106 omp_clause_linear_ctor hook.
11107 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
11108 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
11109 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
11110 combined simd loop use omp_clause_linear_ctor hook.
11112 2014-06-24 Cong Hou <congh@google.com>
11114 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
11115 pattern recognition.
11116 (type_conversion_p): PROMOTION is true if it's a type promotion
11117 conversion, and false otherwise. Return true if the given expression
11118 is a type conversion one.
11119 * tree-vectorizer.h: Adjust the number of patterns.
11120 * tree.def: Add SAD_EXPR.
11121 * optabs.def: Add sad_optab.
11122 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
11123 * expr.c (expand_expr_real_2): Likewise.
11124 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
11125 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11126 * optabs.c (optab_for_tree_code): Likewise.
11127 * tree-cfg.c (estimate_operator_cost): Likewise.
11128 * tree-ssa-operands.c (get_expr_operands): Likewise.
11129 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
11130 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
11131 * doc/generic.texi: Add document for SAD_EXPR.
11132 * doc/md.texi: Add document for ssad and usad.
11134 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11136 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
11137 qualification in cast.
11139 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
11141 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
11142 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
11143 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
11144 (tree_function_decl): ... here.
11145 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
11146 streaming of vindex to ...
11147 (write_ts_function_decl_tree_pointers): ... here.
11148 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
11149 Do not stream DECL_VINDEX.
11150 (lto_input_ts_function_decl_tree_pointers): Stream it here.
11152 2014-06-24 Catherine Moore <clm@codesourcery.com>
11153 Sandra Loosemore <sandra@codesourcery.com>
11155 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
11156 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
11157 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
11159 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11161 * doc/invoke.texi (Warning Options): Remove duplicated
11162 -Wmaybe-uninitialized.
11164 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11166 PR tree-optimization/57742
11167 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
11168 (handle_builtin_malloc, handle_builtin_memset): New functions.
11169 (strlen_optimize_stmt): Call them.
11170 * passes.def: Move strlen after loop+dom but before vrp.
11172 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11175 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
11176 model family 6 CPU with has_longmode never use a CPU without
11179 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
11182 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
11185 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11187 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
11188 * dominance.c (iterate_fix_dominators): Use hash_map instead of
11190 * hash-map.h: New file.
11191 * ipa-comdats.c: Use hash_map instead of pointer_map.
11193 * lto-section-out.c: Adjust.
11194 * lto-streamer.h: Replace pointer_map with hash_map.
11195 * symtab.c (verify_symtab): Likewise.
11196 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11197 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11198 * tree-streamer.h: Likewise.
11199 * tree-streamer.c: Adjust.
11200 * pointer-set.h: Remove pointer_map.
11202 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11204 * hash-table.h: Add a template arg to choose between storing values
11205 and storing pointers to values, and then provide partial
11206 specializations for both.
11207 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11208 should store, not the type values should point to.
11209 * tree-into-ssa.c (var_info_hasher): Likewise.
11210 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11211 * tree-complex.c: Adjust.
11212 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11213 table instead of int_tree_map *.
11214 * tree-parloops.c: Adjust.
11215 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11216 type is being stored.
11217 * tree-vectorizer.c: Adjust.
11219 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11221 * hash-table.h: Remove a layer of indirection from hash_table so that
11222 it contains the hash table's data instead of a pointer to the data.
11223 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11224 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11225 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11226 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11227 fold-const.c, gcse.c, ggc-common.c,
11228 gimple-ssa-strength-reduction.c, gimplify.c,
11229 graphite-clast-to-gimple.c, graphite-dependences.c,
11230 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11231 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11232 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11233 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11234 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11235 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11236 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11237 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11238 tree-ssa-live.c, tree-ssa-loop-im.c,
11239 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11240 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11241 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11242 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11243 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11244 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11245 vtable-verify.c, vtable-verify.h: Adjust.
11247 2014-06-24 Richard Biener <rguenther@suse.de>
11249 PR tree-optimization/61572
11250 * tree-ssa-sink.c (statement_sink_location): Do not sink
11251 loads from hard registers.
11253 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11255 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11256 not mentioned in clauses use private clause if the iterator is
11257 declared in #pragma omp for simd, and when adding lastprivate
11258 instead, add it to the outer #pragma omp for too. Diagnose
11259 if the variable is private in outer context. For simd collapse > 1
11260 loops, replace all iterators with temporaries.
11261 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11262 same even in collapse > 1 loops.
11264 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11265 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11267 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11268 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11270 (gimplify_adjust_omp_clauses): Likewise.
11271 * omp-low.c (lower_rec_simd_input_clauses,
11272 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11273 safelen the same as safelen(1).
11274 * tree-nested.c (convert_nonlocal_omp_clauses,
11275 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11276 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11277 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11278 Fixup handling of GIMPLE_OMP_TARGET.
11279 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11282 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11284 PR tree-optimization/61554
11285 * tree-ssa-propagate.c: Include "bitmap.h".
11286 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11287 properly update constructor/destructor.
11288 (substitute_and_fold_dom_walker::before_dom_children):
11289 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11290 need_eh_cleaup instead.
11291 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11294 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11296 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11297 * tree-pass.h (make_pass_ipa_single_use): New pass.
11298 * cgraph.h (used_by_single_function): New flag.
11299 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11301 * passes.def (pass_ipa_single_use): Scedule.
11302 * ipa.c (BOTTOM): New macro.
11303 (meet): New function
11304 (propagate_single_user): New function.
11305 (ipa_single_use): New function.
11306 (pass_data_ipa_single_use): New pass.
11307 (pass_ipa_single_use): New pass.
11308 (pass_ipa_single_use::gate): New gate.
11309 (make_pass_ipa_single_use): New function.
11311 2014-06-23 Kai Tietz <ktietz@redhat.com>
11314 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11315 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11317 2014-06-23 Richard Biener <rguenther@suse.de>
11319 * tree-ssa-loop.c (gate_loop): New function.
11320 (pass_tree_loop::gate): Call it.
11321 (pass_data_tree_no_loop, pass_tree_no_loop,
11322 make_pass_tree_no_loop): New.
11323 * tree-vectorizer.c: Include tree-scalar-evolution.c
11324 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11326 (pass_slp_vectorize::clone): New method.
11327 * timevar.def (TV_TREE_NOLOOP): New.
11328 * tree-pass.h (make_pass_tree_no_loop): Declare.
11329 * passes.def (pass_tree_no_loop): New pass group with
11332 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11335 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11336 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11338 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11340 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11341 "yes" where needed.
11343 2014-06-23 Alan Modra <amodra@gmail.com>
11346 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11347 to zero on debug statements.
11349 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11352 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11353 Ignore third operand if present by marking qualifier_internal.
11355 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11357 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11359 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11360 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11361 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11362 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11363 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11364 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11365 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11366 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11367 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11368 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11369 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11370 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11371 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11372 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11373 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11374 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11375 logic in GCC vector extensions
11377 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11378 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11379 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11380 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11381 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11382 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11383 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11384 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11385 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11386 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11388 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11390 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11393 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11394 (vget_low_s64): Use __GET_LOW macro.
11395 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11396 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11397 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11398 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11399 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11401 (vcombine_s64): Use GCC vector extensions; remove cast.
11402 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11403 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11404 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11405 Fix type signature; remove cast.
11407 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11410 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11412 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11414 (BUILTIN_VD1): New.
11415 (BUILTIN_VD_RE): Remove.
11416 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11417 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11418 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11419 variant but not df.
11420 (vreinterpretv1df*, vreinterpret*v1df): New.
11421 (vreinterpretdf*, vreinterpret*df): Remove.
11422 * config/aarch64/aarch64-simd.md (aarch64_create,
11423 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11424 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11426 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11427 (vcreate_f64): Remove cast, use v1df builtin.
11428 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11429 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11430 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11431 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11432 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11433 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11434 add range check using __builtin_aarch64_im_lane_boundsi.
11435 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11436 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11437 type signature, use gcc vector extensions.
11438 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11439 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11440 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11441 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11442 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11443 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11444 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11445 vreinterpret_u64_f64): Use v1df builtin not df.
11447 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11449 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11452 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11454 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11457 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11459 * loop-invariant.c (pre_check_invariant_p): New function.
11460 (find_invariant_insn): Call pre_check_invariant_p.
11462 2014-06-22 Richard Henderson <rth@redhat.com>
11465 * compare-elim.c (struct comparison): Add eh_note.
11466 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11467 a redundant comparison in a different EH region. Purge EH edges if
11470 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11472 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11473 (var_shift): Use it.
11474 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11475 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11476 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11477 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11478 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11479 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11480 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11481 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11482 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11483 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11484 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11485 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11486 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11487 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11488 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11489 *rotldi3_internal15be): Use the new attribute. Merge register and
11490 integer alternatives.
11492 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11494 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11495 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11496 split, *ashrdi3_internal3 and split): Delete, merge into...
11497 (ashr<mode>3): New expander.
11498 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11499 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11501 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11503 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11504 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11505 *rotldi3_internal3 and split): Delete, merge into...
11506 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11507 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11508 Use "rotlw" extended mnemonic.
11510 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11512 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11513 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11514 and split, *ashldi3_internal3 and split): Delete, merge into...
11515 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11516 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11518 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11520 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11521 (lshrsi3, two anonymous define_insns and define_splits,
11522 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11523 *lshrdi3_internal3 and split): Delete, merge into...
11524 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11525 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11527 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11529 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11530 Remove "O" alternative.
11532 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11534 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11535 (mips_move_from_gpr_cost): Likewise.
11536 (mips_register_move_cost): Update accordingly.
11537 (mips_secondary_reload_class): Remove name of in_p.
11539 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11542 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11543 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11545 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11547 * config/nios2/nios2.c: Include "builtins.h".
11549 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11551 * cgraph.h (tls_model_names): New variable.
11552 * print-tree.c (print_node): Simplify.
11553 * varpool.c (tls_model_names): New variable.
11554 (dump_varpool_node): Output tls model.
11556 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11558 * ipa-visibility.c (function_and_variable_visibility): Disable
11559 temporarily local aliases for some targets.
11561 2014-06-20 Marek Polacek <polacek@redhat.com>
11563 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11564 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11565 into SANITIZE_UNDEFINED.
11566 * doc/invoke.texi: Describe -fsanitize=bounds.
11567 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11568 functions created in the FEs.
11569 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11570 (expand_UBSAN_BOUNDS): New function.
11571 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11572 * internal-fn.h: Don't define internal functions here.
11573 * opts.c (common_handle_option): Add -fsanitize=bounds.
11574 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11575 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11576 * tree-core.h: Define internal functions here.
11577 (struct tree_base): Add ifn field.
11578 * tree-pretty-print.c: Include "internal-fn.h".
11579 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11580 * tree.c (get_callee_fndecl): Likewise.
11581 (build_call_expr_internal_loc): New function.
11582 * tree.def (CALL_EXPR): Update description.
11583 * tree.h (CALL_EXPR_IFN): Define.
11584 (build_call_expr_internal_loc): Declare.
11585 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11587 (ubsan_type_descriptor): Change bool parameter to enum
11588 ubsan_print_style. Adjust the code. Add handling of
11590 (ubsan_expand_bounds_ifn): New function.
11591 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11592 (ubsan_build_overflow_builtin): Likewise.
11593 (instrument_bool_enum_load): Likewise.
11594 (ubsan_instrument_float_cast): Likewise.
11595 * ubsan.h (enum ubsan_print_style): New enum.
11596 (ubsan_expand_bounds_ifn): Declare.
11597 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11599 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11601 * config/rs6000/rs6000.md: Append `DONE' to preparation
11602 statements of `bswap' pattern splitters.
11604 2014-06-20 Tom de Vries <tom@codesourcery.com>
11606 * target.def (call_fusage_contains_non_callee_clobbers): Update
11608 * doc/tm.texi: Regenerate.
11610 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11611 Max Ostapenko <m.ostapenko@partner.samsung.com>
11614 * asan.c (instrument_strlen_call): Fixed instrumentation of
11617 2014-06-20 Martin Jambor <mjambor@suse.cz>
11620 * ipa-prop.c (impossible_devirt_target): New function.
11621 (try_make_edge_direct_virtual_call): Use it, also instead of
11624 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11625 Max Ostapenko <m.ostapenko@partner.samsung.com>
11628 * asan.c (build_check_stmt): Add condition.
11630 2014-06-20 Martin Jambor <mjambor@suse.cz>
11633 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11636 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11638 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11640 (VCONQ): Make comment more helpful.
11642 * config/aarch64/aarch64-simd.md
11643 (aarch64_sqdmulh_lane<mode>):
11644 Use VCOND for operands 2. Update lane checking and flipping logic.
11645 (aarch64_sqrdmulh_lane<mode>): Likewise.
11646 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11647 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11648 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11649 attribute of operand 3 to VCOND.
11650 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11651 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11652 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11653 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11654 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11655 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11657 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11658 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11659 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11660 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11661 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11662 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11663 operand to VCOND. Update lane flipping and bounds checking logic.
11664 (aarch64_sqdmlal2_lane<mode>): Likewise.
11665 (aarch64_sqdmlsl_lane<mode>): Likewise.
11666 (aarch64_sqdmull_lane<mode>): Likewise.
11667 (aarch64_sqdmull2_lane<mode>): Likewise.
11668 (aarch64_sqdmlal_laneq<mode>):
11669 Replace VCON usage with VCONQ.
11670 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11671 (aarch64_sqdmlal2_laneq<mode>): Emit
11672 aarch64_sqdmlal2_laneq<mode>_internal insn.
11673 Replace VCON with VCONQ.
11674 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11675 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11676 (aarch64_sqdmull_laneq<mode>): Emit
11677 aarch64_sqdmull_laneq<mode>_internal insn.
11678 Replace VCON with VCONQ.
11679 (aarch64_sqdmull2_laneq<mode>): Emit
11680 aarch64_sqdmull2_laneq<mode>_internal insn.
11681 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11682 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11683 of 3rd argument to int16x4_t.
11684 (vqdmlalh_lane_s16): Likewise.
11685 (vqdmlslh_lane_s16): Likewise.
11686 (vqdmull_high_lane_s16): Likewise.
11687 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11688 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11689 (vqdmlsl_lane_s16): Likewise.
11690 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11691 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11692 (vqdmlals_lane_s32): Likewise.
11693 (vqdmlsls_lane_s32): Likewise.
11694 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11695 (vqdmulls_lane_s32): Likewise.
11696 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11697 (vqdmlsl_lane_s32): Likewise.
11698 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11699 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11700 (vqrdmulhh_lane_s16): Likewise.
11701 (vqdmlsl_high_lane_s16): Likewise.
11702 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11703 (vqdmlsl_high_lane_s32): Likewise.
11704 (vqrdmulhs_lane_s32): Likewise.
11706 2014-06-20 Tom de Vries <tom@codesourcery.com>
11708 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11709 get_call_reg_set_usage.
11711 2014-06-20 Tom de Vries <tom@codesourcery.com>
11713 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11714 it contains all call_used_regs.
11716 2014-06-20 Tom de Vries <tom@codesourcery.com>
11718 * final.c (collect_fn_hard_reg_usage): Add and use variable
11719 function_used_regs.
11721 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11723 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11724 (set_init_priority, get_init_priority, set_fini_priority,
11725 get_fini_priority): New methods.
11726 * tree.c (init_priority_for_decl): Remove.
11727 (init_ttree): Do not initialize init priority.
11728 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11729 (decl_priority_info): Remove.
11730 (decl_init_priority_insert): Rewrite.
11731 (decl_fini_priority_insert): Rewrite.
11732 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11733 tree_priority_map_marked_p): Remove.
11734 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11735 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11736 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11737 not output priorities.
11738 (pack_ts_function_decl_value_fields): Likewise.
11739 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11740 not input priorities.
11741 (unpack_ts_function_decl_value_fields): Likewise.
11742 * symtab.c (symbol_priority_map): Declare.
11743 (init_priority_hash): Declare.
11744 (symtab_unregister_node): Unregister from priority hash, too.
11745 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11747 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11748 (symbol_priority_info): New function.
11749 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11751 * tree-core.h (tree_priority_map): Remove.
11753 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11755 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11756 0xff to uint64_t before shifting it up.
11758 2014-06-20 Julian Brown <julian@codesourcery.com>
11759 Chung-Lin Tang <cltang@codesourcery.com>
11761 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11762 TARGET_THUMB1_ONLY. Add comments.
11764 2014-06-19 Tom de Vries <tom@codesourcery.com>
11766 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11767 return type to void.
11768 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11770 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11772 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11773 as "move", from depends_on.
11775 2014-06-19 Terry Guo <terry.guo@arm.com>
11777 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11780 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11782 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11784 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11786 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11789 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11790 addresses here if reload in progress or completed.
11792 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11794 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11795 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11796 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11797 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11798 (mips_register_priority): New function that implements the target
11799 hook TARGET_REGISTER_PRIORITY.
11800 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11801 (mips_lra_p): Likewise for TARGET_LRA_P.
11802 (TARGET_REGISTER_PRIORITY): Define macro.
11803 (TARGET_SPILL_CLASS): Likewise.
11804 (TARGET_LRA_P): Likewise.
11805 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11807 (REG_CLASS_NAMES): Likewise.
11808 (REG_CLASS_CONTENTS): Likewise.
11809 (BASE_REG_CLASS): Use M16_SP_REGS.
11810 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11811 New set attribute to enable alternatives depending on the register
11813 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11814 (*lea64): Disable pattern for MIPS16.
11815 * config/mips/mips.opt (mlra): New option.
11817 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11819 * lra-constraints.c (base_to_reg): New function.
11820 (process_address): Use new function.
11822 2014-06-18 Tom de Vries <tom@codesourcery.com>
11824 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11825 * config/aarch64/aarch64.c
11826 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11827 (aarch64_emit_call_insn): New function.
11828 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11830 * config/aarch64/aarch64.md (define_expand "call_internal")
11831 (define_expand "call_value_internal", define_expand "sibcall_internal")
11832 (define_expand "sibcall_value_internal"): New.
11833 (define_expand "call", define_expand "call_value")
11834 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11835 expand variant and aarch64_emit_call_insn.
11837 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11838 Tom de Vries <tom@codesourcery.com>
11840 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11841 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11843 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11844 clobbers to CALL_INSN_FUNCTION_USAGE.
11845 (define_expand "sibcall_internal")
11846 (define_expand "sibcall_value_internal"): New.
11847 (define_expand "call", define_expand "call_value"): Add argument to
11848 arm_emit_call_insn.
11849 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11850 (define_expand "sibcall_value"): Use sibcall_value_internal and
11851 arm_emit_call_insn.
11853 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11855 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11857 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11859 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11862 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11864 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11865 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11866 annotations. Fix DWARF information.
11868 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11870 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11871 __udivmoddi4, and fixups for negative operands.
11873 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11875 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11877 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11879 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11882 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11884 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11887 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11889 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11890 describing register usage on function entry and exit.
11892 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11894 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11895 (__aeabi_ldivmod): Fix whitespace.
11897 2014-06-18 Andreas Schwab <schwab@suse.de>
11899 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11900 Remove blank line after @item.
11902 2014-06-18 Richard Henderson <rth@redhat.com>
11905 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11907 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11909 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11910 POST_MODIFY for neon loads and stores.
11911 (arm_print_operand): Output post-index register for neon loads and
11914 2014-06-18 Richard Biener <rguenther@suse.de>
11916 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11918 2014-06-18 Richard Biener <rguenther@suse.de>
11920 * tree-pass.h (make_pass_dce_loop): Remove.
11921 * passes.def: Replace pass_dce_loop with pass_dce.
11922 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11923 changed free niter estimates and reset the scev cache.
11924 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11925 make_pass_dce_loop): Remove.
11926 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11927 (fini_copy_prop): Return whether something changed. Always
11928 let substitute_and_fold perform DCE and free niter estimates
11929 and reset the scev cache if so.
11930 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11931 (pass_data_copy_prop): Do not unconditionally schedule
11932 cleanup-cfg or update-ssa.
11934 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11936 PR tree-optimization/61518
11937 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11938 reduction var is used in reduction stmt or phi-function only.
11940 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11942 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11944 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11946 PR tree-optimization/61517
11947 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11948 whose rhs's first tree is the source expression instead of the
11950 (find_bswap_or_nop): Likewise.
11951 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11952 gimple stmt whose rhs's first tree is the source. In the memory source
11953 case, move the stmt to be replaced close to one of the original load to
11954 avoid the problem of a store between the load and the stmt's original
11956 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11959 2014-06-18 Andreas Schwab <schwab@suse.de>
11961 PR rtl-optimization/54555
11962 * postreload.c (move2add_use_add2_insn): Substitute
11963 STRICT_LOW_PART only if it is cheaper.
11965 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11967 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11968 Do not use unspec as call operand. Use memory_operand instead of
11969 memory_nox32_operand and add "m" operand constraint. Disable
11970 pattern for TARGET_X32.
11971 (*sibcall_pop_memory): Ditto.
11972 (*sibcall_value_memory): Ditto.
11973 (*sibcall_value_pop_memory): Ditto.
11974 (sibcall peepholes): Merge SImode and DImode patterns using
11975 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11976 Disable pattern for TARGET_X32. Check if eliminated register is
11977 really dead after call insn. Generate call RTX without unspec operand.
11978 (sibcall_value peepholes): Ditto.
11979 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11980 instead of memory_nox32_operand. Check if eliminated register is
11981 really dead after call insn. Generate call RTX without unspec operand.
11982 (sibcall_value_pop peepholes): Ditto.
11983 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11985 2014-06-18 Terry Guo <terry.guo@arm.com>
11988 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11991 2014-06-18 Olivier Hainque <hainque@adacore.com>
11993 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11994 memorization of the end of block source location.
11995 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11996 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11997 end source location info we have on the block entry/exit code we
12000 2014-06-18 Richard Biener <rguenther@suse.de>
12002 * common.opt (fssa-phiopt): New option.
12003 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
12005 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
12006 * doc/invoke.texi (-fssa-phiopt): Document.
12008 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12010 * genattrtab.c (n_bypassed): New variable.
12011 (process_bypasses): Initialise n_bypassed.
12012 Count number of bypassed reservations.
12013 (make_automaton_attrs): Allocate space for bypassed reservations
12014 rather than number of bypasses.
12016 2014-06-18 Richard Biener <rguenther@suse.de>
12018 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
12019 we propagated anything.
12020 (substitute_and_fold_dom_walker::before_dom_children): Something
12021 changed if we propagated into PHI arguments.
12022 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
12025 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
12027 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
12029 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
12030 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
12031 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
12032 Introduces alternative way of loads group permutaions.
12033 (vect_transform_grouped_load): Try alternative way of permutations.
12035 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12037 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
12038 changed in ORT_TARGET region, don't jump to do_outer.
12039 (struct gimplify_adjust_omp_clauses_data): New type.
12040 (gimplify_adjust_omp_clauses_1): Adjust for data being
12041 a struct gimplify_adjust_omp_clauses_data pointer instead
12042 of tree *. Pass pre_p as a new argument to
12043 lang_hooks.decls.omp_finish_clause hook.
12044 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
12045 splay_tree_foreach to pass both list_p and pre_p.
12046 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
12047 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
12048 gimplify_adjust_omp_clauses callers.
12049 * langhooks.c (lhd_omp_finish_clause): New function.
12050 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
12051 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
12052 * langhooks.h (struct lang_hooks_for_decls): Add a new
12053 gimple_seq * argument to omp_finish_clause hook.
12054 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
12055 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
12056 (scan_omp_parallel, lower_omp_for): When adding
12057 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
12058 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
12059 * tree-nested.c (convert_nonlocal_omp_clauses,
12060 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
12061 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
12063 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
12065 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
12066 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
12068 2014-06-17 Xinliang David Li <davidxl@google.com>
12070 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
12071 * passes.c (pass_init_dump_file): Do not set initialize
12072 flag to false unconditionally.
12074 2014-06-17 Richard Biener <rguenther@suse.de>
12076 * genopinit.c (main): Use vec<>::qsort method.
12077 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
12079 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
12081 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
12083 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
12084 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
12085 (mips_move_to_gpr_cost): Remove ST_REGS case.
12086 (mips_move_from_gpr_cost): Likewise.
12087 (mips_register_move_cost): Likewise.
12088 (mips_secondary_reload_class): Likewise.
12090 2014-06-17 Richard Biener <rguenther@suse.de>
12092 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
12093 (pass_all_optimizations): Move 3rd copy-prop pass from after
12094 fre to before ifcombine/phiopt.
12096 2014-06-17 Richard Biener <rguenther@suse.de>
12098 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
12099 and allow all blocks to be forwarders.
12101 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
12104 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
12105 variable 'size'; calculate 'size' right in the front; use
12106 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
12107 pcum->aapcs_stack_words.
12109 2014-06-17 Nick Clifton <nickc@redhat.com>
12111 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
12112 (umulhi3, mulsidi3, umulsidi3): Likewise.
12114 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
12116 PR middle-end/61508
12117 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
12118 check for section name.
12120 2014-06-17 Richard Biener <rguenther@suse.de>
12122 * tree-ssa-propagate.c: Include domwalk.h.
12123 (substitute_and_fold): Outline main worker into a domwalker ...
12124 (substitute_and_fold_dom_walker::before_dom_children): ... here.
12125 Schedule stmts we can fully propagate for removal. Remove
12127 (substitute_and_fold): Apply a dominator walk to perform
12128 substitution. Process stmts scheduled for removal here.
12130 2014-06-17 Richard Biener <rguenther@suse.de>
12132 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
12133 of PHI node moving.
12135 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12137 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
12138 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
12139 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12140 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
12141 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
12143 (get_fpscr) : Likewise.
12145 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12147 PR rtl-optimization/61325
12148 * lra-constraints.c (valid_address_p): Add forward declaration.
12149 (simplify_operand_subreg): Check address validity before and after
12150 alter_reg of memory subreg.
12152 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
12154 * config/i386/i386.c (decide_alg): Correctly handle
12155 maximum size of stringop algorithm.
12157 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12159 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
12161 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12163 PR rtl-optimization/61522
12164 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
12166 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
12169 * symtab.c (symtab_node::reset_section): New method.
12170 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12172 * cgraph.h (reset_section): Declare.
12173 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12174 do not consider comdat locals.
12175 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12177 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12178 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12179 reset sections of symbols dragged out of the comdats.
12180 (function_and_variable_visibility): Reset sections of
12183 2014-06-16 Richard Biener <rguenther@suse.de>
12185 PR tree-optimization/61482
12186 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
12187 [-INF(OVF), +INF(OVF)] range.
12189 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12191 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
12192 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
12193 handling 32-bit multiplication.
12195 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12197 PR middle-end/61430
12198 * lra-lives.c (process_bb_lives): Skip creating copy during
12199 insn scan when src/dest has constrained to same regno.
12201 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12203 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12204 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12206 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12208 * asan.c (check_func): New function.
12209 (maybe_create_ssa_name): Likewise.
12210 (build_check_stmt_with_calls): Likewise.
12211 (use_calls_p): Likewise.
12212 (report_error_func): Change interface.
12213 (build_check_stmt): Allow non-integer lengths; add support
12215 (asan_instrument): Likewise.
12216 (instrument_mem_region_access): Moved code to build_check_stmt.
12217 (instrument_derefs): Likewise.
12218 (instrument_strlen_call): Likewise.
12219 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12220 * doc/invoke.texi: Describe new parameter.
12221 * params.def: Define new parameter.
12222 * params.h: Likewise.
12223 * sanitizer.def: Describe new builtins.
12225 2014-06-16 Richard Biener <rguenther@suse.de>
12227 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12228 Make all defs available at the end.
12229 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12231 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12234 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12236 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12239 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12240 initialization. Replace remaining use of uid.
12242 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12244 * c-family/c-common.c (handle_tls_model_attribute): Use
12245 set_decl_tls_model.
12246 * c-family/c-common.c (handle_tls_model_attribute): Use
12247 set_decl_tls_model.
12248 * cgraph.h (struct varpool_node): Add tls_model.
12249 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12250 * tree.h (DECL_TLS_MODEL): Update.
12251 (DECL_THREAD_LOCAL_P): Check that variable is static.
12252 (decl_tls_model): Declare.
12253 (set_decl_tls_model): Declare.
12254 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12255 set symbol prorperties.
12256 (get_emutls_init_templ_addr): Cleanup.
12257 (new_emutls_decl): Update.
12258 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12259 (lto_input_varpool_node): Likewise.
12260 * lto-streamer-out.c (hash_tree): Likewise.
12261 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12262 not stream DECL_TLS_MODEL.
12263 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12264 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12266 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12268 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12270 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12272 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12273 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12275 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12276 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12277 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12278 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12279 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12280 (df_get_artificial_defs, df_get_artificial_uses)
12281 (df_single_def, df_single_use): Update accordingly.
12282 (df_refs_chain_dump): Take the first element in a linked list as
12283 parameter, rather than a pointer to an array of pointers.
12284 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12285 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12286 (df_chain_create_bb_process_use): Likewise.
12287 (df_md_bb_local_compute_process_def): Likewise.
12288 * fwprop.c (process_defs, process_uses): Likewise.
12289 (register_active_defs, update_uses): Likewise.
12290 (forward_propagate_asm): Update for new df_ref linking.
12291 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12292 (df_null_ref_rec, df_null_mw_rec): Likewise.
12293 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12295 (df_scan_free_bb_info): Remove check for null artificial_defs.
12296 (df_install_ref_incremental): Adjust for new df_ref linking.
12297 Use a single-element insertion rather than a full sort.
12298 (df_ref_chain_delete_du_chain): Take the first element
12299 in a linked list as parameter, rather than a pointer to an array of
12301 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12302 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12303 (df_insn_info_delete): Remove check for null defs and call to
12304 df_scan_free_mws_vec.
12305 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12306 null rather than df_null_*_rec.
12307 (df_insn_rescan_debug_internal): Likewise, and update null
12308 checks in the same way. Remove check for null defs.
12309 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12310 Move a single element rather doing a full sort.
12311 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12313 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12314 Initialize df_ref and df_mw_hardreg lists to null rather than
12316 (df_ref_compare): Take df_refs as parameter, transferring the
12317 old interface to...
12318 (df_ref_ptr_compare): ...this new function.
12319 (df_sort_and_compress_refs): Update accordingly.
12320 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12321 old interface to...
12322 (df_mw_ptr_compare): ...this new function.
12323 (df_sort_and_compress_mws): Update accordingly.
12324 (df_install_refs, df_install_mws): Return a linked list rather than
12325 an array of pointers.
12326 (df_refs_add_to_chains): Assert that old lists are empty rather
12328 (df_insn_refs_verify): Don't handle null defs speciailly.
12329 * web.c (union_match_dups): Update for new df_ref linking.
12331 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12333 * df.h (df_ref_create, df_ref_remove): Delete.
12334 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12335 (df_ref_remove): Likewise.
12337 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12339 * df.h (df_single_def, df_single_use): New functions.
12340 * ira.c (find_moveable_pseudos): Use them.
12342 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12344 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12345 * df-problems.c (df_note_bb_compute): Use it.
12346 * regstat.c (regstat_bb_compute_ri): Likewise.
12348 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12350 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12351 * cse.c (cse_extended_basic_block): Use them.
12352 * dce.c (mark_artificial_use): Likewise.
12353 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12354 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12355 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12356 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12357 (df_simulate_initialize_backwards): Likewise.
12358 (df_simulate_finalize_backwards): Likewise.
12359 (df_simulate_initialize_forwards): Likewise.
12360 (df_md_simulate_artificial_defs_at_top): Likewise.
12361 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12362 * regrename.c (init_rename_info): Likewise.
12363 * regstat.c (regstat_bb_compute_ri): Likewise.
12364 (regstat_bb_compute_calls_crossed): Likewise.
12366 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12368 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12369 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12370 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12371 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12372 * combine.c (create_log_links): Likewise.
12373 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12374 (try_eliminate_compare): Likewise.
12375 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12376 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12377 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12378 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12379 (word_dce_process_block, dce_process_block): Likewise.
12380 * ddg.c (def_has_ccmode_p): Likewise.
12381 * df-core.c (df_bb_regno_first_def_find): Likewise.
12382 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12383 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12384 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12385 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12386 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12387 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12388 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12389 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12390 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12391 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12392 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12393 * fwprop.c (local_ref_killed_between_p): Likewise.
12394 (all_uses_available_at, free_load_extend): Likewise.
12395 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12396 * hw-doloop.c (scan_loop): Likewise.
12397 * ifcvt.c (dead_or_predicable): Likewise.
12398 * init-regs.c (initialize_uninitialized_regs): Likewise.
12399 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12400 (process_bb_node_lives): Likewise.
12401 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12402 (find_moveable_pseudos): Likewise.
12403 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12404 * recog.c (peep2_find_free_register): Likewise.
12405 * ree.c (get_defs): Likewise.
12406 * regstat.c (regstat_bb_compute_ri): Likewise.
12407 (regstat_bb_compute_calls_crossed): Likewise.
12408 * sched-deps.c (find_inc, find_mem): Likewise.
12409 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12410 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12411 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12412 (prepare_shrink_wrap): Likewise.
12413 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12414 * web.c (union_defs, pass_web::execute): Likewise.
12415 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12416 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12418 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12420 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12421 to inheritance pseudos.
12422 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12424 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12427 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12428 (BU_MISC_2): Rename to ...
12429 (BU_LDBL128_2): ... this.
12430 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12431 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12432 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12433 RS6000_BTM_LDBL128.
12434 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12435 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12436 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12437 (unpacktf_1): Likewise.
12438 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12439 (__builtin_longdouble_dw1): Likewise.
12440 * doc/sourcebuild.texi (longdouble128): Document.
12442 2014-06-13 Jeff Law <law@redhat.com>
12444 PR rtl-optimization/61094
12445 PR rtl-optimization/61446
12446 * ree.c (combine_reaching_defs): Get the mode for the copy from
12447 the extension insn rather than the defining insn.
12449 2014-06-13 Dehao Chen <dehao@google.com>
12451 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12453 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12455 * doc/install.texi (--enable-linker-plugin-configure-flags)
12456 (--enable-linker-plugin-flags): Document new flags.
12458 2014-06-13 Martin Jambor <mjambor@suse.cz>
12461 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12462 cache_token if returning early.
12464 2014-06-13 Nick Clifton <nickc@redhat.com>
12466 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12467 requested alignment is active.
12468 (LABEL_ALIGN): Likewise.
12469 (LOOP_ALIGN): Likewise.
12471 2014-06-13 Richard Biener <rguenther@suse.de>
12473 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12474 Rewrite to propagate the VN result into all uses where
12475 possible and to remove stmts becoming dead because of that.
12476 (eliminate): Generalize stmt removal handling, remove in
12477 reverse dominator order to support proper debug stmt
12478 generation. Update stmts before removing stmts.
12479 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12481 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12483 PR tree-optimization/61375
12484 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12485 symbolic number cannot be represented in an uint64_t.
12486 (find_bswap_or_nop_1): Likewise.
12488 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12490 * symtab.c (symtab_node::reset_section): New method.
12491 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12493 * cgraph.h (reset_section): Declare.
12494 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12495 do not consider comdat locals.
12496 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12498 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12499 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12500 reset sections of symbols dragged out of the comdats.
12501 (function_and_variable_visibility): Reset sections of
12504 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12506 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12507 to use symtab and decl_binds_to_current_def_p
12508 * tree-vectorizer.c (increase_alignment): Increase alignment
12509 of alias target, too.
12511 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12513 PR middle-end/61486
12514 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12515 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12516 if outer combined construct is distribute.
12517 (gimplify_omp_for): For OMP_DISTRIBUTE set
12518 gimplify_omp_ctxp->distribute.
12519 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12520 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12521 mapping into decl map.
12523 2014-06-12 Jason Merrill <jason@redhat.com>
12525 * common.opt (fabi-version): Change default to 0.
12527 2014-06-12 Jason Merrill <jason@redhat.com>
12529 * toplev.c (process_options): Reject -fabi-version=1.
12531 2014-06-12 Jeff Law <law@redhat.com>
12533 PR tree-optimization/61009
12534 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12535 value when we stop processing a block due to problematic PHIs.
12537 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12539 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12540 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12541 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12542 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12543 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12544 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12545 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12546 are not in the spec.
12548 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12551 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12552 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12555 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12557 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12559 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12562 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12563 loading from address spaces.
12565 2014-06-12 Martin Liska <mliska@suse.cz>
12568 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12569 statement is reachable.
12571 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12573 * symtab.c (section_hash): New hash.
12574 (symtab_unregister_node): Clear section before freeing.
12575 (hash_section_hash_entry): New haser.
12576 (eq_sections): New function.
12577 (symtab_node::set_section_for_node): New method.
12578 (set_section_1): Update.
12579 (symtab_node::set_section): Take string instead of tree as parameter.
12580 (symtab_resolve_alias): Update.
12581 * cgraph.h (section_hash_entry_d): New structure.
12582 (section_hash_entry): New typedef.
12583 (cgraph_node): Change comdat_group_ to x_comdat_group,
12584 change section_ to x_section and turn into section_hash_entry;
12585 update accestors; put set_section_for_node offline.
12586 * tree.c (decl_section_name): Turn into string.
12587 (set_decl_section_name): Change parameter to be string.
12588 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12589 * sdbout.c (sdbout_one_type): Update.
12590 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12591 * varasm.c (IN_NAMED_SECTION, get_named_section,
12592 resolve_unique_section, hot_function_section, get_named_text_section,
12593 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12594 make_decl_rtl, default_unique_section): Update.
12595 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12596 (c6x_elf_unique_section): Update.
12597 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12598 * config/pa/pa.c (pa_function_section): Update.
12599 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12600 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12601 * config/arc/arc.c (arc_in_small_data_p): Update.
12602 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12603 * config/mcore/mcore.c (mcore_unique_section): Update.
12604 * config/mips/mips.c (mips16_build_function_stub): Update.
12605 (mips16_build_call_stub): Update.
12606 (mips_function_rodata_section): Update.
12607 (mips_in_small_data_p): Update.
12608 * config/score/score.c (score_in_small_data_p): Update.
12609 * config/rx/rx.c (rx_in_small_data): Update.
12610 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12611 (rs6000_xcoff_asm_named_section): Update.
12612 (rs6000_xcoff_unique_section): Update.
12613 * config/frv/frv.c (frv_string_begins_with): Update.
12614 (frv_in_small_data_p): Update.
12615 * config/v850/v850.c (v850_encode_data_area): Update.
12616 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12617 (bfin_handle_l1_data_attribute): Update.
12618 (bfin_handle_l2_attribute): Update.
12619 * config/mep/mep.c (mep_unique_section): Update.
12620 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12622 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12623 (h8300_handle_tiny_data_attribute): Update.
12624 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12625 (m32r_in_small_data_p): Update.
12626 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12627 * config/i386/i386.c (ix86_in_large_data_p): Update.
12628 * config/i386/winnt.c (i386_pe_unique_section): Update.
12629 * config/darwin.c (darwin_function_section): Update.
12630 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12631 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12632 (new_emutls_decl): Update.
12633 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12634 input_varpool_node): Update.
12635 (ead_string_cst): Turn to ...
12636 (read_string): ... this one.
12637 * dwarf2out.c (secname_for_decl): Update.
12638 * asan.c (asan_protect_global): Update.
12640 2014-06-11 DJ Delorie <dj@redhat.com>
12642 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12644 * config/rx/rx.c (rx_option_override): Likewise.
12645 (rx_align_for_label): Likewise.
12647 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12649 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12651 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12654 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12656 * common.md: New file.
12657 * doc/md.texi: Update description of generic, machine-independent
12659 * config/s390/constraints.md (e): Delete.
12660 * Makefile.in (md_file): Include common.md.
12661 * config/m32c/t-m32c (md_file): Likewise.
12662 * genpreds.c (general_mem): New array.
12663 (generic_constraint_letters): Remove constraints now defined by
12665 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12666 Allow the first character to be '<' or '>' as well.
12667 * genoutput.c (general_mem): New array.
12668 (indep_constraints): Remove constraints now defined by common.md.
12669 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12670 Remove special handling of 'm'.
12671 * ira-costs.c (record_reg_classes): Remove special handling of
12672 constraints now defined by common.md.
12673 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12674 * ira-lives.c (single_reg_class): Likewise.
12675 (ira_implicitly_set_insn_hard_regs): Likewise.
12676 * lra-constraints.c (reg_class_from_constraints): Likewise.
12677 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12678 * postreload.c (reload_cse_simplify_operands): Likewise.
12679 * reload.c (push_secondary_reload, scratch_reload_class)
12680 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12681 * reload1.c (maybe_fix_stack_asms): Likewise.
12682 * targhooks.c (default_secondary_reload): Likewise.
12683 * stmt.c (parse_output_constraint): Likewise.
12684 * recog.c (preprocess_constraints): Likewise.
12685 (constrain_operands, peep2_find_free_register): Likewise.
12686 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12687 must be handled specially.
12689 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12691 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12692 * genpreds.c (have_const_dbl_constraints): Delete.
12693 (add_constraint): Don't set it.
12694 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12695 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12696 constraints using the lookup_constraint logic.
12697 * ira-lives.c (single_reg_class): Likewise.
12698 * ira.c (ira_setup_alts): Likewise.
12699 * lra-constraints.c (process_alt_operands): Likewise.
12700 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12701 * reload.c (find_reloads): Likewise.
12703 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12705 * genpreds.c (const_int_start, const_int_end): New variables.
12706 (choose_enum_order): Output CONST_INT constraints before memory
12708 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12710 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12711 * ira.c (ira_setup_alts): Likewise.
12712 * lra-constraints.c (process_alt_operands): Likewise.
12713 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12714 * reload.c (find_reloads): Likewise.
12716 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12718 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12719 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12720 * recog.c (preprocess_constraints): Update accordingly.
12722 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12724 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12725 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12726 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12727 * genpreds.c (print_type_tree): New function.
12728 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12729 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12730 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12731 Write out enum constraint_type and get_constraint_type.
12732 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12733 constraint_num rather than a constraint string.
12734 (satisfies_address_constraint_p): Likewise.
12735 (reg_class_from_constraints): Avoid old constraint macros.
12736 (process_alt_operands, process_address_1): Likewise.
12737 (curr_insn_transform): Likewise.
12738 * ira-costs.c (record_reg_classes): Likewise.
12739 (record_operand_costs): Likewise.
12740 * ira-lives.c (single_reg_class): Likewise.
12741 (ira_implicitly_set_insn_hard_regs): Likewise.
12742 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12743 * postreload.c (reload_cse_simplify_operands): Likewise.
12744 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12745 (constrain_operands, peep2_find_free_register): Likewise.
12746 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12747 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12748 * reload1.c (maybe_fix_stack_asms): Likewise.
12749 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12750 * targhooks.c (default_secondary_reload): Likewise.
12751 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12752 to EXTRA_CONSTRAINT_STR.
12753 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12755 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12757 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12758 (write_constraint_satisfied_p_array): ...this new function.
12759 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12761 (write_insn_preds_c): Update accordingly.
12763 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12765 * genpreds.c (write_lookup_constraint): Rename to...
12766 (write_lookup_constraint_1): ...this.
12767 (write_lookup_constraint_array): New function.
12768 (write_tm_preds_h): Define lookup_constraint as an inline function
12769 that uses write_lookup_constraint_array where possible.
12770 (write_insn_preds_c): Update for the changes above.
12772 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12774 * doc/md.texi (regclass_for_constraint): Rename to...
12775 (reg_class_for_constraint): ...this.
12776 * genpreds.c (num_constraints, enum_order, register_start)
12777 (register_end, satisfied_start, memory_start, memory_end)
12778 (address_start, address_end): New variables.
12779 (add_constraint): Count the number of constraints.
12780 (choose_enum_order): New function.
12781 (write_enum_constraint_num): Iterate over enum_order.
12782 (write_regclass_for_constraint): Rename to...
12783 (write_reg_class_for_constraint_1): ...this and update output
12785 (write_constraint_satisfied_p): Rename to...
12786 (write_constraint_satisfied_p_1): ...this and update output
12787 accordingly. Do nothing if all extra constraints are register
12789 (write_insn_extra_memory_constraint): Delete.
12790 (write_insn_extra_address_constraint): Delete.
12791 (write_range_function): New function.
12792 (write_tm_preds_h): Define constraint_satisfied_p and
12793 reg_class_for_constraint as inline functions that do a range check
12794 before calling the out-of-line function. Use write_range_function
12795 to implement insn_extra_{register,memory,address}_constraint,
12796 the first of which is new.
12797 (write_insn_preds_c): Update after above changes to write_* functions.
12798 (main): Call choose_enum_order.
12800 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12802 PR tree-optimization/61306
12803 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12804 expression instead of its size.
12805 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12806 false to prevent optimization when the result is unpredictable due to
12807 arithmetic right shift of signed type with highest byte is set.
12808 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12809 (init_symbolic_number): Likewise.
12810 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12811 when the result is unpredictable due to sign extension.
12813 2014-06-11 Terry Guo <terry.guo@arm.com>
12815 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12816 (*thumb1_addsi3): Ditto.
12817 (*thumb_subdi3): Ditto.
12818 (thumb1_subsi3_insn): Ditto.
12819 (*thumb_mulsi3): Ditto.
12820 (*thumb_mulsi3_v6): Ditto.
12821 (*thumb1_andsi3_insn): Ditto.
12822 (thumb1_bicsi3): Ditto.
12823 (*thumb1_iorsi3_insn): Ditto.
12824 (*thumb1_xorsi3_insn): Ditto.
12825 (*thumb1_ashlsi3): Ditto.
12826 (*thumb1_ashrsi3): Ditto.
12827 (*thumb1_lshrsi3): Ditto.
12828 (*thumb1_rotrsi3): Ditto.
12829 (*thumb1_negdi2): Ditto.
12830 (*thumb1_negsi2): Ditto.
12831 (*thumb1_abssi2): Ditto.
12832 (*thumb1_neg_abssi2): Ditto.
12833 (*thumb1_one_cmplsi2): Ditto.
12834 (*thumb1_zero_extendhisi2): Ditto.
12835 (*thumb1_zero_extendqisi2): Ditto.
12836 (*thumb1_zero_extendqisi2_v6): Ditto.
12837 (thumb1_extendhisi2): Ditto.
12838 (thumb1_extendqisi2): Ditto.
12839 (*thumb1_movdi_insn): Ditto.
12840 (*thumb1_movsi_insn): Ditto.
12841 (*thumb1_movhi_insn): Ditto.
12842 (thumb_movhi_clobber): Ditto.
12843 (*thumb1_movqi_insn): Ditto.
12844 (*thumb1_movhf): Ditto.
12845 (*thumb1_movsf_insn): Ditto.
12846 (*thumb_movdf_insn): Ditto.
12847 (movmem12b): Ditto.
12849 (cbranchqi4): Ditto.
12850 (cbranchsi4_insn): Ditto.
12851 (cbranchsi4_scratch): Ditto.
12852 (*negated_cbranchsi4): Ditto.
12853 (*tbit_cbranch): Ditto.
12854 (*tlobits_cbranch): Ditto.
12855 (*tstsi3_cbranch): Ditto.
12856 (*cbranchne_decr1): Ditto.
12857 (*addsi3_cbranch): Ditto.
12858 (*addsi3_cbranch_scratch): Ditto.
12859 (*thumb_cmpdi_zero): Ditto.
12860 (cstoresi_eq0_thumb1): Ditto.
12861 (cstoresi_ne0_thumb1): Ditto.
12862 (*cstoresi_eq0_thumb1_insn): Ditto.
12863 (*cstoresi_ne0_thumb1_insn): Ditto.
12864 (cstoresi_nltu_thumb1): Ditto.
12865 (cstoresi_ltu_thumb1): Ditto.
12866 (thumb1_addsi3_addgeu): Ditto.
12867 (*thumb_jump): Ditto.
12868 (*call_reg_thumb1_v5): Ditto.
12869 (*call_reg_thumb1): Ditto.
12870 (*call_value_reg_thumb1_v5): Ditto.
12871 (*call_value_reg_thumb1): Ditto.
12872 (*call_insn): Ditto.
12873 (*call_value_insn): Ditto.
12874 (thumb1_casesi_internal_pic): Ditto.
12875 (thumb1_casesi_dispatch): Ditto.
12876 (*thumb1_indirect_jump): Ditto.
12877 (prologue_thumb1_interwork): Ditto.
12878 (*epilogue_insns): Ditto.
12879 (consttable_1): Ditto.
12880 (consttable_2): Ditto.
12881 (tablejump): Ditto.
12882 (*thumb1_tablejump): Ditto.
12883 (thumb_eh_return): Ditto.
12884 (define_peephole2): Two of them are thumb1 only and got moved into
12885 new file thumb1.md.
12886 (define_split): Six of them are thumb1 only and got moved into new
12888 * config/arm/thumb1.md: New file comprised of above thumb1 only
12891 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12893 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12894 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12896 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12897 (aarch64_crc_builtin_datum): New struct.
12898 (aarch64_crc_builtin_data): New.
12899 (aarch64_init_crc32_builtins): New function.
12900 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12901 (aarch64_crc32_expand_builtin): New.
12902 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12903 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12904 __ARM_FEATURE_CRC32 when appropriate.
12905 (TARGET_CRC32): Define.
12906 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12907 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12908 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12909 (aarch64_<crc_variant>): New pattern.
12910 * config/aarch64/arm_acle.h: New file.
12911 * config/aarch64/iterators.md (CRC): New int iterator.
12912 (crc_variant, crc_mode): New int attributes.
12913 * doc/aarch64-acle-intrinsics.texi: New file.
12914 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12915 Include aarch64-acle-intrinsics.texi.
12917 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12919 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12920 check for stores group of length 3.
12921 (vect_permute_store_chain): New permutations for stores group of
12923 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12924 of vec_perm_shuffle for the new permutations.
12926 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12928 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12929 table rewriting temporarily on targets not supporting ONE_ONLY.
12931 2014-06-11 Richard Biener <rguenther@suse.de>
12933 PR middle-end/61437
12935 2014-06-04 Richard Biener <rguenther@suse.de>
12937 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12938 TREE_PUBLIC and DECL_EXTERNAL decls.
12940 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12942 * varasm.c (set_implicit_section): New function.
12943 (resolve_unique_section): Use it to set implicit section
12945 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12946 (default_function_section): Likewise.
12947 (decl_binds_to_current_def_p): Constify argument.
12948 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12949 * asan.c (asan_protect_global): Use
12950 symtab_get_node (decl)->implicit_section.
12951 * symtab.c (dump_symtab_base): Dump implicit sections.
12952 (verify_symtab_base): Verify sanity of sectoins and comdats.
12953 (symtab_resolve_alias): Alias share the section of its target.
12954 (set_section_1): New function.
12955 (symtab_node::set_section): Move here, recurse to aliases.
12956 (verify_symtab): Check for duplicated symtab lists.
12957 * tree-core.h (implicit_section_name_p): Remove.
12958 * tree-vect-data-refs.c: Include varasm.h.
12959 (vect_can_force_dr_alignment_p): Fix conditional on when
12960 decl bints to current definition; use
12961 symtab_get_node (decl)->implicit_section.
12962 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12963 * cgraph.h (struct symtab_node): Add implicit_section.
12964 (set_section): Rename to ...
12965 (set_section_for_node): ... this one.
12966 (set_section): Declare.
12967 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12968 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12969 input_overwrite_node, input_varpool_node): Stream implicit_section.
12970 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12971 removal; it will fail in LTO.
12973 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12975 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12976 Change second alternative type to f_mcr.
12977 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12978 and 12th alternatives' types to f_mcr and f_mrc.
12979 (*movdi_aarch64): Same for 12th and 13th alternatives.
12980 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12981 (aarch64_movtilow_tilow): Change type to fmov.
12983 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12985 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12986 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12988 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12990 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12992 (aarch64_sqrdmulh_lane<mode>): Likewise.
12993 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12994 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12995 (aarch64_sqdmulh_laneq<mode>): New expander.
12996 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12997 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12998 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12999 (aarch64_sqdmulh_lane<mode>): New expander.
13000 (aarch64_sqrdmulh_lane<mode>): Likewise.
13001 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
13002 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
13003 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
13004 (aarch64_sqdmlal_laneq<mode>): Likewise.
13005 (aarch64_sqdmlsl_lane<mode>): Likewise.
13006 (aarch64_sqdmlsl_laneq<mode>): Likewise.
13007 (aarch64_sqdmlal2_lane<mode>): Likewise.
13008 (aarch64_sqdmlal2_laneq<mode>): Likewise.
13009 (aarch64_sqdmlsl2_lane<mode>): Likewise.
13010 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
13011 (aarch64_sqdmull_lane<mode>): Likewise.
13012 (aarch64_sqdmull_laneq<mode>): Likewise.
13013 (aarch64_sqdmull2_lane<mode>): Likewise.
13014 (aarch64_sqdmull2_laneq<mode>): Likewise.
13016 2014-06-10 Richard Biener <rguenther@suse.de>
13018 PR tree-optimization/61438
13019 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
13020 (eliminate_dom_walker::before_dom_children): Only try to inhibit
13021 insertion of IVs if running PRE.
13022 (eliminate): Adjust.
13023 (pass_pre::execute): Likewise.
13024 (pass_fre::execute): Likewise.
13026 2014-06-10 Richard Biener <rguenther@suse.de>
13028 PR middle-end/61456
13029 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
13030 Do not use the main variant for the type comparison.
13031 (ncr_compar): Likewise.
13032 (nonoverlapping_component_refs_p): Likewise.
13034 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
13036 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
13037 REG_CFA_RESTORE mode.
13039 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
13041 * config/i386/i386.c (expand_vec_perm_pblendv): New.
13042 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
13043 expand_vec_perm_pblendv.
13045 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13047 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
13049 Simplify description of __crc32d and __crc32cd intrinsics.
13050 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
13053 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
13056 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
13057 * config.in: Regenerate.
13058 * configure: Likewise.
13060 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
13062 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
13064 (intersect_static_var_sets): Remove.
13065 (propagate): Do not prune local statics.
13067 2014-06-10 Jakub Jelinek <jakub@redhat.com>
13070 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
13071 Set lastprivate_firstprivate even if omp_private_outer_ref
13072 langhook returns true.
13073 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
13074 langhook, call unshare_expr on new_var and call
13075 build_outer_var_ref to get the last argument.
13077 2014-06-10 Marek Polacek <polacek@redhat.com>
13080 * doc/extend.texi: Add cindex for transparent_union.
13082 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
13084 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
13085 init_symbolic_number ().
13087 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
13089 PR middle-end/61141
13090 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
13091 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
13092 (verify_rtl_sharing): Likewise.
13094 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
13097 * tree.c (build_qualified_type): Use a canonical type for
13100 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13102 * config/arm/arm-modes.def: Remove XFmode.
13104 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
13107 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
13108 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
13109 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
13110 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
13111 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
13112 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
13113 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
13114 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
13115 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
13117 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
13119 * tree-core.h (tree_decl_with_vis): Remove section_name.
13121 2014-06-09 Kito Cheng <kito@0xlab.org>
13123 * ira.c (ira): Don't call init_caller_save if LRA enabled
13124 since LRA use its own infrastructure to handle that.
13126 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13128 * symtab.c (dump_symtab_base): Update dumping.
13129 (symtab_make_decl_local): Clear only DECL_COMDAT.
13130 * tree-vect-data-refs.c (Check that variable is static before
13131 tampering with sections.
13132 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
13133 (cgraph_create_virtual_clone): Likewise.
13134 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
13135 (decl_section_name, set_decl_section_name): New accessors.
13136 (find_decls_types_r): Do not walk section name
13137 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
13138 (decl_comdat_group, decl_comdat_group_id): Constify.
13139 (decl_section_name, set_decl_section_name): Update.
13140 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
13141 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
13142 (cgraph_make_node_local_1): Clear section and comdat group.
13143 * cgraph.h (set_comdat_group): Sanity check.
13144 (get_section, set_section): New.
13145 * ipa-comdats.c (ipa_comdats): Use get_section.
13146 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
13147 * lto-streamer-out.c: Do not follow section names.
13148 * c-family/c-common.c (handle_section_attribute): Update.
13149 * lto-cgraph.c (lto_output_node): Output section.
13150 (lto_output_varpool_node): Likewise.
13151 (read_comdat_group): Rename to ...
13152 (read_identifier): ... this one.
13153 (read_string_cst): New function.
13154 (input_node, input_varpool_node): Input section names.
13155 * tree-emutls.c (get_emutls_init_templ_addr): Update.
13156 (new_emutls_decl): Update.
13157 (secname_for_decl): Check section names only of static vars.
13158 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
13159 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
13160 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
13161 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
13162 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
13163 * config/mcore/mcore.c (mcore_unique_section): Likewise.
13164 * config/mips/mips.c (mips16_build_function_stub): Likewise.
13165 * config/v850/v850.c (v850_insert_attributes): Likewise.
13166 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
13168 (h8300_handle_tiny_data_attribute): Likewise.
13169 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
13170 (bfin_handle_l2_attribute): Likewise.
13172 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13174 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
13175 remove static initializer.
13177 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13179 * varasm.c (use_blocks_for_decl_p): Check symbol table
13180 instead of alias attribute.
13181 (place_block_symbol): Recurse on aliases.
13183 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13185 * ipa-visibility.c: Include varasm.h
13186 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
13188 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13190 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
13191 outputting aliases.
13193 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13195 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13196 from test_insn into GGC space escape via SET_SRC.
13198 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13200 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13201 call statement, if any.
13202 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13203 statements, if any. Tidy up.
13205 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13208 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13209 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13210 handles swapping the two 64-bit double words on little endian
13211 systems. Include V1TImode and optionally TImode in VSX_LE so that
13212 these types are properly swapped. Change all of the insns and
13213 splits that do the 64-bit swaps to use VSX_LE.
13214 (vsx_le_perm_load_<mode>): Likewise.
13215 (vsx_le_perm_store_<mode>): Likewise.
13216 (splitters for little endian memory operations): Likewise.
13217 (vsx_xxpermdi2_le_<mode>): Likewise.
13218 (vsx_lxvd2x2_le_<mode>): Likewise.
13219 (vsx_stxvd2x2_le_<mode>): Likewise.
13221 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13224 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13225 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13226 and corresponding splitters. Zero extend general register
13227 or memory input operand to XMM temporary. Enable for
13228 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13229 (floatunssi<mode>2): Update expander predicate.
13231 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13233 PR rtl-optimization/61325
13234 * lra-constraints.c (process_address_1): Check scale equal to one
13235 to prevent transformation: base + scale * index => base + new_reg.
13237 2014-06-06 Richard Biener <rguenther@suse.de>
13239 PR tree-optimization/59299
13240 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13242 (nearest_common_dominator_of_uses): Likewise.
13243 (statement_sink_location): Adjust. Support sinking loads.
13245 2014-06-06 Martin Jambor <mjambor@suse.cz>
13247 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13248 (build_agg_jump_func_from_list): Likewise.
13249 (determine_known_aggregate_parts): Renamed to
13250 determine_locally_known_aggregate_parts. Moved some functionality
13251 to the two functions above, removed bound checks.
13253 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13255 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13256 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13257 (aarch64_progress_pointer): Likewise.
13258 (aarch64_copy_one_part_and_move_pointers): Likewise.
13259 (aarch64_expand_movmen): Likewise.
13260 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13261 * config/aarch64/aarch64.md (movmem<mode>): New.
13263 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13265 * targhooks.c (default_add_stmt_cost): Call target specific
13266 hook instead of default one.
13268 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13270 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13271 endianness instead of host endianness.
13272 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13275 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13278 * function.c (instantiate_decls): Process the saved static chain.
13279 (expand_function_start): If not optimizing, save the static chain
13281 * tree-nested.c (convert_all_function_calls): Always create the static
13282 chain for nested functions if not optimizing.
13284 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13286 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13288 2014-06-06 Richard Biener <rguenther@suse.de>
13290 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13291 (construct_init_block): Likewise.
13292 (construct_exit_block): Likewise.
13293 (pass_expand::execute): Likewise.
13294 * graphite.c (graphite_transforms): Replace check for current_loops
13295 with a check for > 1 loops.
13296 (pass_graphite_transforms::execute): Adjust.
13297 * ipa-split.c (split_function): Remove check for current_loops.
13298 * omp-low.c (expand_parallel_call): Likewise.
13299 (expand_omp_for_init_counts): Likewise.
13300 (extract_omp_for_update_vars): Likewise.
13301 (expand_omp_for_generic): Likewise.
13302 (expand_omp_sections): Likewise.
13303 (expand_omp_target): Likewise.
13304 * tracer.c (tail_duplicate): Likewise.
13305 (pass_tracer::execute): Likewise.
13306 * trans-mem.c (expand_transaction): Likewise.
13307 * tree-complex.c (expand_complex_div_wide): Likewise.
13308 * tree-eh.c (lower_resx): Likewise.
13309 (cleanup_empty_eh_merge_phis): Likewise.
13310 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13311 current_loops with a check for > 1 loops.
13312 (pass_predcom::execute): Adjust.
13313 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13314 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13315 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13316 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13317 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13318 * tree-switch-conversion.c (process_switch): Likewise.
13319 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13320 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13321 (execute_vrp): Likewise.
13322 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13324 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13326 * rtl.h (insn_location): Declare.
13327 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13328 with UNKNOWN_LOCATION.
13329 * emit-rtl.c (insn_location): New function.
13330 * final.c (notice_source_line): Check that the instruction has a
13331 location before retrieving it and use insn_location.
13332 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13333 * print-rtl.c (print_rtx): Likewise.
13335 2014-06-06 Richard Biener <rguenther@suse.de>
13337 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13339 2014-06-06 Christian Bruel <christian.bruel@st.com>
13341 PR tree-optimization/43934
13342 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13345 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13347 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13348 return NO_REGS for extra address and memory constraints. Handle
13349 operands that match (or are equivalent to something that matches)
13350 extra constant constraints. Ignore other non-register operands.
13352 2014-06-06 Alan Modra <amodra@gmail.com>
13355 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13356 * doc/tm.texi: Regenerate.
13357 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13358 Use throughout in place of REG_PARM_STACK_SPACE.
13359 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13360 "incoming" param. Pass to rs6000_function_parms_need_stack.
13361 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13362 prototype_p when incoming. Use function decl when incoming
13363 to handle K&R style functions.
13364 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13365 (INCOMING_REG_PARM_STACK_SPACE): Define.
13367 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13370 * cfgexpand.c (expand_debug_expr): Use address space of nested
13371 TREE_TYPE for ADDR_EXPR and MEM_REF.
13373 2014-06-05 Jeff Law <law@redhat.com>
13375 PR tree-optimization/61289
13376 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13377 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13378 looking for those which match LHS. All callers changed.
13379 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13380 parameters and code which manipulated them. All callers changed.
13381 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13382 and DST_MAP parameters. Simplify invalidation code by just calling
13383 invalidate_equivalences. All callers changed.
13384 (thread_across_edge): Simplify now that we don't need to maintain
13385 the map of equivalences to invalidate.
13387 2014-06-05 Kai Tietz <ktietz@redhat.com>
13388 Richard Henderson <rth@redhat.com>
13391 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13392 checking for !TARGET_X32.
13393 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13394 (sibcall_intern): New define_insn, plus required peepholes.
13395 (sibcall_pop_intern): Likewise.
13396 (sibcall_value_intern): Likewise.
13397 (sibcall_value_pop_intern): Likewise.
13399 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13401 * tree-inline.c (tree_function_versioning): Check DF info existence
13402 before accessing it.
13404 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13406 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13408 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13409 aarch64_frame hard_fp_offset and frame_size.
13410 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13411 frame_size; remove original_frame_size.
13412 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13413 (aarch64_initial_elimination_offset): Remove frame_size and
13414 offset. Use aarch64_frame frame_size.
13416 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13417 Jiong Wang <jiong.wang@arm.com>
13418 Renlin <renlin.li@arm.com>
13420 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13421 initialization of R30 offset. Update offset. Iterate core
13422 regisers upto X30. Remove X29, X30 specific code.
13424 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13425 Jiong Wang <jiong.wang@arm.com>
13427 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13428 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13429 (aarch64_register_saved_on_entry): Adjust test.
13431 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13433 * config/aarch64/aarch64.h (machine_function): Move
13434 saved_varargs_size from here...
13435 (aarch64_frame): ... to here.
13437 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13438 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13439 (aarch64_initial_elimination_offset)
13440 (aarch64_setup_incoming_varargs): Adjust location of
13441 saved_varargs_size.
13443 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13445 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13448 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13449 Prachi Godbole <Prachi.Godbole@imgtec.com>
13451 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13452 mips32r5 entry to use PROCESSOR_P5600.
13453 * config/mips/mips-tables.opt: Regenerate.
13454 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13455 * config/mips/mips.c (mips_fmadd_bypass): New function.
13456 (mips_rtx_cost_data): Add costs for p5600.
13457 (mips_issue_rate): Add support for p5600.
13458 (mips_multipass_dfa_lookahead): Likewise.
13459 * config/mips/mips.h (TUNE_P5600): New define.
13460 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13461 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13462 * config/mips/mips.md: Include p5600.md.
13463 (processor): Add p5600.
13464 * config/mips/p5600.md: New file.
13466 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13468 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13469 * config/i386/predicates.md (palignr_operand): New.
13470 Indicates if permutation is suitable for palignr instruction.
13472 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13474 PR tree-optimization/61319
13475 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13476 stmt belongs to loop.
13478 2014-06-05 Richard Biener <rguenther@suse.de>
13480 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13481 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13482 (lookup_tmp_var): Adjust.
13483 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13485 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13487 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13489 2014-06-05 Marek Polacek <polacek@redhat.com>
13492 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13494 2014-06-04 Tom de Vries <tom@codesourcery.com>
13496 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13499 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13501 PR tree-optimization/61385
13502 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13504 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13506 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13507 changed to use fatal_error.
13508 (main): Ensure lto_wrapper_cleanup is run atexit.
13510 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13512 * lra-constraints.c (valid_address_p): Move earlier in file.
13513 (address_eliminator): New structure.
13514 (satisfies_memory_constraint_p): New function.
13515 (satisfies_address_constraint_p): Likewise.
13516 (process_alt_operands, process_address, curr_insn_transform): Use them.
13518 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13520 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13522 (target_lra_int, default_target_lra_int, this_target_lra_int)
13523 (op_alt_data): Delete.
13524 * lra.h (lra_init): Delete.
13525 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13526 (init_insn_code_data_once): Remove op_alt_data handling.
13527 (finish_insn_code_data_once): Likewise.
13528 (init_op_alt_data): Delete.
13529 (get_static_insn_data): Initialize operand_alternative to null.
13530 (free_insn_recog_data): Cast operand_alternative before freeing it.
13531 (setup_operand_alternative): Take the operand_alternative as
13532 parameter and assume it isn't already cached in the static
13534 (lra_set_insn_recog_data): Update accordingly.
13535 (lra_init): Delete.
13536 * ira.c (ira_init): Don't call lra_init.
13537 * target-globals.h (this_target_lra_int): Declare.
13538 (target_globals): Remove lra_int.
13539 (restore_target_globals): Update accordingly.
13540 * target-globals.c: Don't include lra-int.h.
13541 (default_target_globals, save_target_globals): Remove lra_int.
13543 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13545 * recog.h (operand_alternative): Convert reg_class, reject,
13546 matched and matches into bitfields.
13547 (preprocess_constraints): New overload.
13548 (preprocess_insn_constraints): New function.
13549 (preprocess_constraints): Take the insn as parameter.
13550 (recog_op_alt): Change into a pointer.
13551 (target_recog): Add x_op_alt.
13552 * recog.c (asm_op_alt): New variable.
13553 (recog_op_alt): Change into a pointer.
13554 (preprocess_constraints): New overload, replacing the old function
13555 definition with one that doesn't use global state.
13556 (preprocess_insn_constraints): New function.
13557 (preprocess_constraints): Use them. Take the insn as parameter.
13558 Use asm_op_alt for asms.
13559 (recog_init): Free existing x_op_alt entries.
13560 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13562 (make_early_clobber_and_input_conflicts): Likewise.
13563 (process_bb_node_lives): Pass the insn to process_constraints.
13564 * reg-stack.c (check_asm_stack_operands): Likewise.
13565 (subst_asm_stack_regs): Likewise.
13566 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13567 * regrename.c (build_def_use): Likewise.
13568 * sched-deps.c (sched_analyze_insn): Likewise.
13569 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13570 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13571 (note_invalid_constants): Likewise.
13572 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13573 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13576 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13578 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13579 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13581 (make_early_clobber_and_input_conflicts): Likewise.
13582 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13584 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13586 * recog.h (alternative_class): New function.
13587 (which_op_alt): Return a const recog_op_alt.
13588 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13589 (subst_asm_stack_regs): Likewise.
13590 * config/arm/arm.c (note_invalid_constants): Likewise.
13591 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13592 the operand_alternative; use alternative class instead.
13593 * sel-sched.c (get_reg_class): Likewise.
13594 * regrename.c (build_def_use): Likewise.
13595 (hide_operands, restore_operands, record_out_operands): Update type
13598 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13600 * recog.h (recog_op_alt): Convert to a flat array.
13601 (which_op_alt): New function.
13602 * recog.c (recog_op_alt): Convert to a flat array.
13603 (preprocess_constraints): Update accordingly, grouping all
13604 operands of the same alternative together, rather than the
13606 * ira-lives.c (check_and_make_def_conflict): Likewise.
13607 (make_early_clobber_and_input_conflicts): Likewise.
13608 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13609 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13610 (subst_asm_stack_regs): Likewise.
13611 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13612 * regrename.c (hide_operands, record_out_operands): Likewise.
13613 (build_def_use): Likewise.
13614 * sel-sched.c (get_reg_class): Likewise.
13615 * config/arm/arm.c (note_invalid_constants): Likewise.
13617 2014-06-04 Jason Merrill <jason@redhat.com>
13621 * gimplify.c (gimplify_arg): Non-static.
13622 * gimplify.h: Declare it.
13624 2014-06-04 Richard Biener <rguenther@suse.de>
13626 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13627 TREE_PUBLIC and DECL_EXTERNAL decls.
13629 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13631 * regcprop.c (copyprop_hardreg_forward_1): Account for
13632 HARD_REGNO_CALL_PART_CLOBBERED.
13634 2014-06-04 Richard Biener <rguenther@suse.de>
13636 * configure.ac: Check whether the underlying type of int64_t
13637 is long or long long.
13638 * configure: Regenerate.
13639 * config.in: Likewise.
13640 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13641 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13643 2014-06-04 Richard Biener <rguenther@suse.de>
13645 PR tree-optimization/60098
13646 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13648 (dse_optimize_stmt): Simplify, now that we found a kill
13651 2014-06-04 Richard Biener <rguenther@suse.de>
13653 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13654 of accesses with non-invariant address.
13656 2014-06-04 Martin Liska <mliska@suse.cz>
13658 * cgraph.h (cgraph_make_wrapper): New function introduced.
13659 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13660 * ipa-inline.h (inline_analyze_function): The function is global.
13661 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13663 2014-06-04 Martin Liska <mliska@suse.cz>
13665 * tree.h (private_lookup_attribute_starting): New function.
13666 (lookup_attribute_starting): Likewise.
13667 * tree.c (private_lookup_attribute_starting): Likewise.
13669 2014-06-04 Martin Liska <mliska@suse.cz>
13671 * cgraph.h (expand_thunk): New argument added.
13672 (address_taken_from_non_vtable_p): New global function.
13673 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13674 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13675 * cgraphunit.c (analyze_function): Likewise.
13676 (assemble_thunks_and_aliases): Argument added to call.
13677 (expand_thunk): New argument forces to produce GIMPLE thunk.
13679 2014-06-04 Martin Liska <mliska@suse.cz>
13681 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13682 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13683 * profile.c (branch_prob): Likewise.
13685 2014-06-04 Martin Jambor <mjambor@suse.cz>
13688 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13689 handler for switch on an ipa_ref_use enum.
13690 * ipa-reference.c (analyze_function): Likewise.
13692 2014-06-04 Kai Tietz <ktietz@redhat.com>
13694 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13695 from old call-instruction.
13697 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13699 * config/aarch64/aarch64.c (aarch64_classify_address)
13700 (aarch64_legitimize_reload_address): Support full addressing modes
13702 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13703 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13705 2014-06-03 Andrew Pinski <apinski@cavium.com>
13707 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13710 2014-06-03 Andrew Pinski <apinski@cavium.com>
13712 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13713 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13715 2014-06-03 Kai Tietz <ktietz@redhat.com>
13717 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13720 2014-06-03 Dehao Chen <dehao@google.com>
13722 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13725 2014-06-03 Marek Polacek <polacek@redhat.com>
13728 * doc/invoke.texi: Document -Wswitch-bool.
13729 * function.c (stack_protect_epilogue): Cast controlling expression of
13731 * gengtype.c (walk_type): Generate switch expression with its
13732 controlling expression cast to int.
13734 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13736 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13738 * config/avr/avr-tables.opt: Regenerate.
13739 * config/avr/t-multilib: Regenerate.
13740 * doc/avr-mmcu.texi: Regenerate.
13742 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13743 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13745 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13746 (ata6617c, ata664251): Add new avr35 devices.
13747 (ata6612c): Add new avr4 device.
13748 (ata6613c, ata6614q): Add new avr5 devices.
13749 * config/avr/avr-tables.opt: Regenerate.
13750 * config/avr/t-multilib: Regenerate.
13751 * doc/avr-mmcu.texi: Regenerate.
13753 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13755 * gcc/config/aarch64/aarch64-builtins.c
13756 (aarch64_types_binop_ssu_qualifiers): New static data.
13757 (TYPES_BINOP_SSU): Define.
13758 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13759 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13760 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13761 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13762 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13763 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13764 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13765 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13766 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13767 suffix to builtin function name, remove cast.
13768 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13769 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13770 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13772 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13774 * gcc/config/aarch64/aarch64-builtins.c
13775 (aarch64_types_binop_uus_qualifiers,
13776 aarch64_types_shift_to_unsigned_qualifiers,
13777 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13778 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13779 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13780 sqshlu_n, uqshl_n): Update qualifiers.
13781 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13782 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13783 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13784 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13785 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13786 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13787 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13788 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13789 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13790 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13791 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13792 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13793 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13794 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13795 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13796 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13797 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13798 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13799 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13800 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13801 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13802 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13803 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13804 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13805 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13806 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13807 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13809 2014-06-03 Teresa Johnson <tejohnson@google.com>
13811 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13813 2014-06-02 Jason Merrill <jason@redhat.com>
13816 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13818 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13820 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13823 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13825 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13827 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13828 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13829 * config/aarch64/iterators.md (REVERSE): New iterator.
13830 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13831 (rev_op): New int_attribute.
13832 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13833 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13834 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13835 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13836 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13837 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13838 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13839 Replace temporary __asm__ with __builtin_shuffle.
13841 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13843 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13845 * config/mips/mips-tables.opt: Regenerate.
13846 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13847 to use mips_isa_rev rather than ISA_MIPS32R2.
13848 * config/mips/mips.h (ISA_MIPS32R3): New define.
13849 (ISA_MIPS32R5): New define.
13850 (ISA_MIPS64R3): New define.
13851 (ISA_MIPS64R5): New define.
13852 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13853 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13854 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13856 (MIPS_ISA_SYNCI_SPEC): Likewise.
13857 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13858 (LINK_SPEC): Added mips32r3 and mips32r5.
13859 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13860 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13861 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13862 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13863 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13864 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13865 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13867 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13869 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13871 * config/mips/mips.opt (mxpa): New option.
13872 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13875 2014-06-03 Martin Jambor <mjambor@suse.cz>
13878 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13881 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13883 PR tree-optimization/61328
13884 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13885 initialization from find_bswap_or_nop_1.
13886 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13887 in source_expr2 before using the size value the function sets. Also
13888 make use of init_symbolic_number () in both the old place and
13889 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13890 doing recursion in the GIMPLE_BINARY_RHS case.
13892 2014-06-03 Richard Biener <rguenther@suse.de>
13894 PR tree-optimization/61383
13895 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13898 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13900 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13901 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13902 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13903 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13905 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13906 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13907 * system.h: ...here and make it unconditional.
13908 * target.def (conditional_register_usage): Mention
13909 define_register_constraint instead of old-style constraint macros.
13910 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13911 * doc/tm.texi: Regenerate.
13912 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13913 protected by !USE_MD_CONSTRAINTS.
13914 * config/frv/frv.md: Remove quote from old version of documentation.
13915 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13916 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13917 CONST_DOUBLE_OK_FOR_LETTER.
13918 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13920 2014-06-02 Andrew Pinski <apinski@cavium.com>
13922 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13923 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13924 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13925 file whose name depends on -mabi= and -mbig-endian.
13926 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13927 Handle LP64 better and handle ilp32 too.
13928 (MULTILIB_OPTIONS): Delete.
13929 (MULTILIB_DIRNAMES): Delete.
13931 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13933 * expr.h: Remove prototypes of functions defined in builtins.c.
13934 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13935 Remove prototypes of functions defined in builtins.c.
13936 * builtins.h: Update prototype list to include all exported functions.
13937 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13938 no_c99_libc_has_function): Move to targhooks.c
13939 (build_string_literal, build_call_expr_loc_array,
13940 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13942 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13943 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13944 no_c99_libc_has_function): Relocate from builtins.c.
13945 * tree.c: Include builtins.h.
13946 (build_call_expr_loc_array, build_call_expr_loc_vec,
13947 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13949 * fold-const.h (fold_fma): Move prototype to builtins.h.
13950 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13951 * asan.c: Include builtins.h.
13952 * cfgexpand.c: Likewise.
13953 * convert.c: Likewise.
13954 * emit-rtl.c: Likewise.
13955 * except.c: Likewise.
13956 * expr.c: Likewise.
13957 * fold-const.c: Likewise.
13958 * gimple-fold.c: Likewise.
13959 * gimple-ssa-strength-reduction.c: Likewise.
13960 * gimplify.c: Likewise.
13961 * ipa-inline.c: Likewise.
13962 * ipa-prop.c: Likewise.
13963 * lto-streamer-out.c: Likewise.
13964 * stmt.c: Likewise.
13965 * tree-inline.c: Likewise.
13966 * tree-object-size.c: Likewise.
13967 * tree-sra.c: Likewise.
13968 * tree-ssa-ccp.c: Likewise.
13969 * tree-ssa-forwprop.c: Likewise.
13970 * tree-ssa-loop-ivcanon.c: Likewise.
13971 * tree-ssa-loop-ivopts.c: Likewise.
13972 * tree-ssa-math-opts.c: Likewise.
13973 * tree-ssa-reassoc.c: Likewise.
13974 * tree-ssa-threadedge.c: Likewise.
13975 * tree-streamer-in.c: Likewise.
13976 * tree-vect-data-refs.c: Likewise.
13977 * tree-vect-patterns.c: Likewise.
13978 * tree-vect-stmts.c: Likewise.
13979 * config/aarch64/aarch64.c: Likewise.
13980 * config/alpha/alpha.c: Likewise.
13981 * config/arc/arc.c: Likewise.
13982 * config/arm/arm.c: Likewise.
13983 * config/avr/avr.c: Likewise.
13984 * config/bfin/bfin.c: Likewise.
13985 * config/c6x/c6x.c: Likewise.
13986 * config/cr16/cr16.c: Likewise.
13987 * config/cris/cris.c: Likewise.
13988 * config/epiphany/epiphany.c: Likewise.
13989 * config/fr30/fr30.c: Likewise.
13990 * config/frv/frv.c: Likewise.
13991 * config/h8300/h8300.c: Likewise.
13992 * config/i386/i386.c: Likewise.
13993 * config/i386/winnt.c: Likewise.
13994 * config/ia64/ia64.c: Likewise.
13995 * config/iq2000/iq2000.c: Likewise.
13996 * config/lm32/lm32.c: Likewise.
13997 * config/m32c/m32c.c: Likewise.
13998 * config/m32r/m32r.c: Likewise.
13999 * config/m68k/m68k.c: Likewise.
14000 * config/mcore/mcore.c: Likewise.
14001 * config/mep/mep.c: Likewise.
14002 * config/microblaze/microblaze.c: Likewise.
14003 * config/mips/mips.c: Likewise.
14004 * config/mmix/mmix.c: Likewise.
14005 * config/mn10300/mn10300.c: Likewise.
14006 * config/moxie/moxie.c: Likewise.
14007 * config/msp430/msp430.c: Likewise.
14008 * config/nds32/nds32.c: Likewise.
14009 * config/pa/pa.c: Likewise.
14010 * config/pdp11/pdp11.c: Likewise.
14011 * config/picochip/picochip.c: Likewise.
14012 * config/rl78/rl78.c: Likewise.
14013 * config/rs6000/rs6000.c: Likewise.
14014 * config/rx/rx.c: Likewise.
14015 * config/s390/s390.c: Likewise.
14016 * config/score/score.c: Likewise.
14017 * config/sh/sh.c: Likewise.
14018 * config/sparc/sparc.c: Likewise.
14019 * config/spu/spu.c: Likewise.
14020 * config/stormy16/stormy16.c: Likewise.
14021 * config/tilegx/tilegx.c: Likewise.
14022 * config/tilepro/tilepro.c: Likewise.
14023 * config/v850/v850.c: Likewise.
14024 * config/vax/vax.c: Likewise.
14025 * config/xtensa/xtensa.c: Likewise.
14027 2014-06-02 Jeff Law <law@redhat.com>
14029 PR rtl-optimization/61094
14030 * ree.c (combine_reaching_defs): Do not reextend an insn if it
14031 was marked as do_no_reextend. If a copy is needed to eliminate
14032 an extension, then mark it as do_not_reextend.
14034 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
14036 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
14038 2014-06-02 Richard Henderson <rth@redhat.com>
14041 * config/alpha/alpha.c (print_operand_address): Allow symbolic
14042 addresses inside asms. Use output_operand_lossage instead of
14045 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
14048 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
14049 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
14051 2014-06-02 Tom de Vries <tom@codesourcery.com>
14053 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
14054 case that x has VOIDmode.
14056 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
14058 * varasm.c (copy_constant): Delete function.
14059 (build_constant_desc): Don't call it.
14061 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14064 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
14065 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
14066 with immediate_operand.
14068 2014-06-02 Andreas Schwab <schwab@suse.de>
14070 * config/ia64/ia64.c
14071 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
14072 pending_data_specs first.
14074 2014-06-02 Richard Biener <rguenther@suse.de>
14076 PR tree-optimization/61378
14077 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
14078 valueized_anything.
14080 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
14082 * config/i386/constraints.md (Bw): Rename from 'w'.
14083 (Bz): Rename from 'z'.
14084 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
14086 2014-06-01 Kai Tietz <ktietz@redhat.com>
14089 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
14090 * config/i386/i386.md (sibcall_insn_operand): Use Bs
14091 instead of m constraint.
14093 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
14095 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
14096 a separate alternative where the scratch operand 2 is marked as
14099 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
14101 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
14102 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
14103 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
14104 and __builtins_arm_get_fpscr.
14105 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14106 __builtins_arm_get_fpscr.
14107 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
14108 __builtins_arm_ldfpscr.
14109 (arm_atomic_assign_expand_fenv): New function.
14110 * config/arm/vfp.md (set_fpscr): New pattern.
14111 (get_fpscr) : Likewise.
14112 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
14114 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14115 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
14117 2014-05-30 Jakub Jelinek <jakub@redhat.com>
14119 * asan.c (report_error_func): Add SLOW_P argument, use
14120 BUILT_IN_ASAN_*_N if set.
14121 (build_check_stmt): Likewise.
14122 (instrument_derefs): If T has insufficient alignment,
14123 force same handling as for odd sizes.
14125 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
14126 BUILT_IN_ASAN_REPORT_STORE_N): New.
14127 * asan.c (struct asan_mem_ref): Change access_size type to
14129 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
14130 update_mem_ref_hash_table): Likewise.
14131 (asan_mem_ref_hasher::hash): Hash in a HWI.
14132 (report_error_func): Change size_in_bytes argument to HWI.
14133 Use *_N builtins if size_in_bytes is larger than 16 or not power of
14135 (build_shadow_mem_access): New function.
14136 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
14137 Handle size_in_bytes not power of two or larger than 16.
14138 (instrument_derefs): Don't give up if size_in_bytes is not
14139 power of two or is larger than 16.
14141 2014-05-30 Kai Tietz <ktietz@redhat.com>
14144 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
14145 for sibling-tail-calls.
14146 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
14148 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
14149 (sibcall_insn_operand): Add check for sibcall_memory_operand.
14151 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14153 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
14154 * config/avr/avr-tables.opt: Regenerate.
14155 * config/avr/t-multilib: Regenerate.
14156 * doc/avr-mmcu.texi: Regenerate.
14158 2014-05-30 Ian Lance Taylor <iant@google.com>
14160 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
14163 2014-05-30 Tom de Vries <tom@codesourcery.com>
14165 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14168 2014-05-30 Tom de Vries <tom@codesourcery.com>
14170 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14171 * lra.c (initialize_lra_reg_info_element): Add init of
14172 actual_call_used_reg_set field.
14173 (lra): Call lra_create_live_ranges before lra_inheritance for
14175 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14177 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
14178 instead of call_used_reg_set for -fuse-caller-save.
14179 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14181 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14183 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
14185 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
14187 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14189 * ira.c (ira_get_dup_out_num): Check for output operands at
14190 the start of the loop. Handle cases where an included alternative
14191 follows an excluded one.
14193 2014-05-29 Mike Stump <mikestump@comcast.net>
14196 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14197 post ld passes when lto is used.
14199 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14201 PR rtl-optimization/61325
14202 * lra-constraints.c (process_address): Rename to process_address_1.
14203 (process_address): New function.
14205 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14207 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14208 TYPES_BINOPV): New static data.
14209 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14211 * config/aarch64/aarch64-simd.md (aarch64_ext,
14212 aarch64_im_lane_boundsi): New patterns.
14213 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14215 (aarch64_evpc_ext): New function.
14217 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14219 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14220 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14221 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14222 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14223 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14225 2014-05-29 Tom de Vries <tom@codesourcery.com>
14227 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14229 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14230 Richard Sandiford <rdsandiford@googlemail.com>
14232 * arm/iterators.md (shiftable_ops): New code iterator.
14233 (t2_binop0, arith_shift_insn): New code attributes.
14234 * arm/predicates.md (shift_nomul_operator): New predicate.
14235 * arm/arm.md (insn_enabled): Delete.
14236 (enabled): Remove insn_enabled test.
14237 (*arith_shiftsi): Delete. Replace with ...
14238 (*<arith_shift_insn>_multsi): ... new pattern.
14239 (*<arith_shift_insn>_shiftsi): ... new pattern.
14240 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14242 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14243 Tom de Vries <tom@codesourcery.com>
14245 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14246 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14248 (mips_split_call): Use POST_CALL_TMP_REG.
14249 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14251 2014-05-29 Tom de Vries <tom@codesourcery.com>
14253 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14254 with #ifdef STACK_REGS.
14256 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14258 * varasm.c (get_variable_section): Walk aliases.
14259 (place_block_symbol): Walk aliases.
14261 2014-05-28 Tom de Vries <tom@codesourcery.com>
14264 2014-05-28 Tom de Vries <tom@codesourcery.com>
14266 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14267 * lra.c (initialize_lra_reg_info_element): Add init of
14268 actual_call_used_reg_set field.
14269 (lra): Call lra_create_live_ranges before lra_inheritance for
14271 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14273 * lra-constraints.c (need_for_call_save_p): Use
14274 actual_call_used_reg_set instead of call_used_reg_set for
14276 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14278 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14280 * doc/md.texi: Document that the % constraint character must
14281 be at the beginning of the string.
14282 * genoutput.c (validate_insn_alternatives): Check that '=',
14283 '+' and '%' only appear at the beginning of a constraint.
14284 * ira.c (commutative_constraint_p): Delete.
14285 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14286 at the start of the string.
14287 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14289 * config/arm/neon.md (bicdi3_neon): Likewise.
14290 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14291 (slt_si, sltu_si): Likewise.
14292 * config/vax/vax.md (sbcdi3): Likewise.
14293 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14294 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14295 (mul64): Move '%' to beginning of constraint.
14296 * config/arm/arm.md (*xordi3_insn): Likewise.
14297 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14298 (xorsi3): Likewise.
14300 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14302 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14304 2014-05-28 Jason Merrill <jason@redhat.com>
14307 * cgraph.h (symtab_node::get_comdat_group_id): New.
14308 * cgraphunit.c (analyze_functions): Call it.
14309 * symtab.c (dump_symtab_node): Likewise.
14310 * tree.c (decl_comdat_group_id): New.
14311 * tree.h: Declare it.
14312 * lto-streamer-out.c (write_symbol): Use it.
14313 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14315 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14317 PR bootstrap/PR61146
14318 * wide-int.cc: Do not include longlong.h when compiling with clang.
14320 2014-05-28 Richard Biener <rguenther@suse.de>
14322 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14323 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14324 (vrp_visit_assignment_or_call): Print less vertical space.
14325 (vrp_visit_stmt): Likewise.
14326 (vrp_visit_phi_node): Likewise. For a PHI argument with
14327 VR_VARYING range consider recording it as copy.
14329 2014-05-28 Richard Biener <rguenther@suse.de>
14332 2014-05-28 Richard Biener <rguenther@suse.de>
14334 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14336 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14338 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14339 sufficiently aligned and an offset is used at the same time.
14340 (expand_expr_real_1): Likewise.
14342 2014-05-28 Richard Biener <rguenther@suse.de>
14344 PR middle-end/61045
14345 * fold-const.c (fold_comparison): When folding
14346 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14347 the sign of the remaining constant operand stays the same.
14349 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14351 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14352 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14353 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14355 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14356 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14357 (m32bit-doubles) Likewise.
14358 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14359 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14362 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14364 * configure.ac ($gcc_cv_ld_clearcap): New test.
14365 * configure: Regenerate.
14366 * config.in: Regenerate.
14367 * config/sol2.opt (mclear-hwcap): New option.
14368 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14369 * config/sol2-clearcap.map: Moved here from
14370 testsuite/gcc.target/i386/clearcap.map.
14371 * config/sol2-clearcapv2.map: Move here from
14372 gcc.target/i386/clearcapv2.map.
14373 * config/t-sol2 (install): Depend on install-clearcap-map.
14374 (install-clearcap-map): New target.
14375 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14378 2014-05-28 Richard Biener <rguenther@suse.de>
14380 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14381 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14382 ... here and remove the rest.
14383 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14385 2014-05-28 Richard Biener <rguenther@suse.de>
14387 PR tree-optimization/61335
14388 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14389 new range fails, drop to varying.
14391 2014-05-28 Olivier Hainque <hainque@adacore.com>
14393 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14394 (CPP_SPEC): Add entry for -mcpu=8548.
14395 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14396 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14398 2014-05-28 Tom de Vries <tom@codesourcery.com>
14400 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14401 * lra.c (initialize_lra_reg_info_element): Add init of
14402 actual_call_used_reg_set field.
14403 (lra): Call lra_create_live_ranges before lra_inheritance for
14405 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14407 * lra-constraints.c (need_for_call_save_p): Use
14408 actual_call_used_reg_set instead of call_used_reg_set for
14410 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14412 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14413 Tom de Vries <tom@codesourcery.com>
14415 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14417 (@item -fuse-caller-save): New item.
14419 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14420 Tom de Vries <tom@codesourcery.com>
14422 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14423 OPT_fuse_caller_save.
14425 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14426 Tom de Vries <tom@codesourcery.com>
14428 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14429 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14430 get_call_reg_set_usage.
14431 * resource.c (mark_set_resources, mark_target_live_regs): Use
14432 get_call_reg_set_usage.
14433 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14435 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14436 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14437 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14438 * ira-build.c (ira_create_allocno): Init
14439 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14440 (create_cap_allocno, propagate_allocno_info)
14441 (propagate_some_info_from_allocno)
14442 (copy_info_to_removed_store_destinations): Handle
14443 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14444 * ira-costs.c (ira_tune_allocno_costs): Use
14445 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14447 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14448 Tom de Vries <tom@codesourcery.com>
14450 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14451 and function_used_regs_valid fields.
14452 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14453 find_all_hard_reg_sets.
14454 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14455 (get_call_reg_set_usage): New function.
14456 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14457 * regs.h (get_call_reg_set_usage): Declare.
14459 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14462 * config/dbx.h (License): Add Runtime Library Exception.
14463 * config/newlib-stdint.h (License): Same.
14464 * config/rtems.h (License): Same
14465 * config/initfini-array.h (License): Same
14466 * config/v850/v850.h (License): Same.
14467 * config/v850/v850-opts.h (License): Same
14468 * config/v850/rtems.h (License): Same.
14470 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14473 * doc/extend.texi (Local Labels): Note that label differences are
14474 not supported for AVR.
14476 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14477 Olivier Hainque <hainque@adacore.com>
14479 * rtl.h (set_for_reg_notes): Declare.
14480 * emit-rtl.c (set_for_reg_notes): New function.
14481 (set_unique_reg_note): Use it.
14482 * optabs.c (add_equal_note): Likewise
14484 2014-05-27 Andrew Pinski <apinski@cavium.com>
14486 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14487 Use <w> for the register in assembly template.
14488 (stack_protect_test): Use the mode of operands[0] for the result.
14489 (stack_protect_test_<mode>): Use <w> for the register
14490 in assembly template.
14492 2014-05-27 DJ Delorie <dj@redhat.com>
14494 * config/rx/rx.c (add_vector_labels): New.
14495 (rx_output_function_prologue): Call it.
14496 (rx_handle_func_attribute): Don't require empty arguments.
14497 (rx_handle_vector_attribute): New.
14498 (rx_attribute_table): Add "vector" attribute.
14499 * doc/extend.texi (interrupt, vector): Document new/changed
14500 RX-specific attributes.
14502 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14504 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14506 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14507 predicate to detect a negative quotient.
14509 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14511 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14512 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14513 Add X - Y CMP 0 to X CMP Y transformation.
14514 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14516 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14518 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14521 2014-05-27 Steve Ellcey <sellcey@mips.com>
14523 * config/mips/mips.c: Add include of cgraph.h.
14525 2014-05-27 Richard Biener <rguenther@suse.de>
14527 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14529 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14532 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14533 * config/arm/arm-cores.def (License): Same.
14534 * config/arm/arm-opts.h (License): Same.
14535 * config/arm/aout.h (License): Same.
14536 * config/arm/bpabi.h (License): Same.
14537 * config/arm/elf.h (License): Same.
14538 * config/arm/linux-elf.h (License): Same.
14539 * config/arm/linux-gas.h (License): Same.
14540 * config/arm/netbsd-elf.h (License): Same.
14541 * config/arm/uclinux-eabi.h (License): Same.
14542 * config/arm/uclinux-elf.h (License): Same.
14543 * config/arm/vxworks.h (License): Same.
14545 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14547 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14548 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14549 (arm_init_neon_builtins): Handle NEON_BSWAP.
14550 Define required type nodes.
14551 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14552 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14553 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14554 * config/arm/iterators.md (VDQHSD): New mode iterator.
14556 2014-05-27 Richard Biener <rguenther@suse.de>
14558 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14559 Try using literal operands when comparing value-ranges failed.
14561 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14563 * ira.c (commutative_operand): Adjust for change to recog_data.
14564 [Missing from previous commit.]
14566 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14568 * system.h (TEST_BIT): New macro.
14569 * recog.h (alternative_mask): New type.
14570 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14571 (recog_data_d): Replace alternative_enabled_p array with
14572 enabled_alternatives.
14573 (target_recog): New structure.
14574 (default_target_recog, this_target_recog): Declare.
14575 (get_enabled_alternatives, recog_init): Likewise.
14576 * recog.c (default_target_recog, this_target_recog): New variables.
14577 (get_enabled_alternatives): New function.
14578 (extract_insn): Use it.
14579 (recog_init): New function.
14580 (preprocess_constraints, constrain_operands): Adjust for change to
14582 * postreload.c (reload_cse_simplify_operands): Likewise.
14583 * reload.c (find_reloads): Likewise.
14584 * ira-costs.c (record_reg_classes): Likewise.
14585 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14586 all alternatives after a disabled one would be skipped.
14587 (ira_implicitly_set_insn_hard_regs): Likewise.
14588 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14589 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14590 with enabled_alternatives.
14591 * lra.c (free_insn_recog_data): Update accordingly.
14592 (lra_update_insn_recog_data): Likewise.
14593 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14594 * lra-constraints.c (process_alt_operands): Likewise. Handle
14595 only_alternative as part of the enabled mask.
14596 * target-globals.h (this_target_recog): Declare.
14597 (target_globals): Add a recog field.
14598 (restore_target_globals): Restore this_target_recog.
14599 * target-globals.c: Include recog.h.
14600 (default_target_globals): Initialize recog field.
14601 (save_target_globals): Likewise.
14602 * reginfo.c (reinit_regs): Call recog_init.
14603 * toplev.c (backend_init_target): Likewise.
14605 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14607 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14608 rather than any named insn's code.
14610 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14613 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14614 * config/arm/arm-cores.def (License): Same.
14616 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14618 * tree.h (decl_comdat_group): Declare.
14619 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14620 * tree.c (decl_comdat_group): Here.
14622 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14624 PR rtl-optimization/61222
14625 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14626 the shift, truncate the PLUS operand to the result mode.
14628 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14631 * config/i386/i386.c (ix86_rtx_costs)
14632 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14635 2014-05-26 Martin Jambor <mjambor@suse.cz>
14637 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14640 2014-05-26 Richard Biener <rguenther@suse.de>
14642 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14643 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14644 Provide specializations.
14645 (wi::int_traits <HOST_WIDE_INT>,
14646 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14648 2014-05-26 Alan Modra <amodra@gmail.com>
14651 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14652 params and return a bool. Remove dead code. Update comment.
14653 Assert we have a const_int source. Remove bogus code from
14654 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14655 handling of constants > 2G and reg_equal note, from..
14656 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14657 return value. Update comment. If we can, use a new pseudo
14658 for intermediate calculations.
14659 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14661 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14662 call to rs6000_emit_set_const in splitter.
14663 (movdi_internal64+2, +3): Likewise.
14665 2014-05-26 Richard Biener <rguenther@suse.de>
14667 * system.h: Define __STDC_FORMAT_MACROS before
14668 including inttypes.h.
14669 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14670 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14671 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14672 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14673 HOST_WIDEST_INT_C): Remove.
14674 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14675 if C99 inttypes.h is not available.
14676 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14677 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14678 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14679 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14680 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14681 (struct output_info): Likewise.
14682 (print_statistics): Adjust.
14683 (dump_bitmap_statistics): Likewise.
14684 * bt-load.c (migrate_btr_defs): Print with PRId64.
14685 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14686 (MAX_SAFE_MULTIPLIER): Adjust.
14687 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14688 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14689 dump_cgraph_node): Likewise.
14690 * final.c (dump_basic_block_info): Likewise.
14691 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14692 * gcov.c (format_gcov): Likewise.
14693 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14695 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14696 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14697 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14698 Use PRId64 for dumping.
14699 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14700 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14701 (add_allocno_hard_regs): Adjust.
14702 * loop-doloop.c (doloop_modify): Print using PRId64.
14703 * loop-iv.c (inverse): Compute in uint64_t.
14704 (determine_max_iter, iv_number_of_iterations): Likewise.
14705 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14706 Print using PRId64.
14707 * lto-streamer-out.c (write_symbol): Use uint64_t.
14708 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14709 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14710 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14711 * modulo-sched.c (const_iteration_count): Use int64_t.
14712 (sms_schedule): Dump using PRId64.
14713 * predict.c (dump_prediction): Likewise.
14714 * pretty-print.h (pp_widest_integer): Remove.
14715 * profile.c (get_working_sets, is_edge_inconsistent,
14716 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14717 * tree-pretty-print.c (pp_double_int): Remove case handling
14718 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14719 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14721 (pass_optimize_bswap::execute): Remove restriction on hosts.
14722 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14723 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14724 * tree.c (widest_int_cst_value): Remove.
14725 * tree.h (widest_int_cst_value): Likewise.
14726 * value-prof.c (dump_histogram_value): Print using PRId64.
14727 * gengtype.c (main): Also inject int64_t.
14728 * ggc-page.c (struct max_alignment): Use int64_t.
14729 * alloc-pool.c (struct allocation_object_def): Likewise.
14730 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14732 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14733 * doc/tm.texi: Regenerated.
14734 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14735 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14736 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14737 mmix_output_register_setting): Use [u]int64_t in prototypes.
14738 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14739 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14740 mmix_output_octa, mmix_output_shifted_value): Adjust.
14741 (mmix_intval): Adjust. Remove unreachable case.
14742 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14744 2014-05-26 Richard Biener <rguenther@suse.de>
14746 * configure.ac: Drop __int64 type check. Insist that we
14747 found uint64_t and int64_t.
14748 * hwint.h (HOST_BITS_PER___INT64): Remove.
14749 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14750 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14751 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14752 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14753 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14754 for dst_q_src_df_rms_cdt.
14755 * configure: Regenerate.
14756 * config.in: Likewise.
14758 2014-05-26 Michael Tautschnig <mt@debian.org>
14761 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14762 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14764 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14766 PR rtl-optimization/61278
14767 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14769 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14771 PR rtl-optimization/61220
14772 Part of PR rtl-optimization/61225
14773 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14774 insn; skip split_edge for a block with only one successor.
14776 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14778 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14781 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14783 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14784 (update_vtable_references): New function.
14785 (function_and_variable_visibility): Rewrite also vtable initializers.
14786 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14788 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14790 * ggc.h (ggc_grow): New function.
14791 * ggc-none.c (ggc_grow): New function.
14792 * ggc-page.c (ggc_grow): Likewise.
14794 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14796 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14797 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14798 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14799 varpool_externally_visible_p, can_replace_by_local_alias,
14800 update_visibility_by_resolution_info, function_and_variable_visibility,
14801 pass_data_ipa_function_and_variable_visibility,
14802 make_pass_ipa_function_and_variable_visibility,
14803 whole_program_function_and_variable_visibility,
14804 pass_data_ipa_whole_program_visibility,
14805 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14806 * cgraph.h (cgraph_local_node_p): Declare.
14807 * ipa-visibility.c: New file.
14808 * Makefile.in (OBJS): Add ipa-visiblity.o
14810 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14812 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14813 that var decl is available.
14815 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14817 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14818 symtab_node pointer.
14819 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14820 (find_decls_types_r): Do not walk COMDAT_GROUP.
14821 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14822 * varasm.c (make_decl_one_only): Use set_comdat_group;
14823 create node if needed.
14824 * ipa-inline-transform.c (save_inline_function_body): Update
14825 way we decl->symtab mapping.
14826 * symtab.c (symtab_hash, hash_node, eq_node
14827 symtab_insert_node_to_hashtable): Remove.
14828 (symtab_register_node): Update.
14829 (symtab_unregister_node): Update.
14830 (symtab_get_node): Reimplement as inline function.
14831 (symtab_add_to_same_comdat_group): Update.
14832 (symtab_dissolve_same_comdat_group_list): Update.
14833 (dump_symtab_base): Update.
14834 (verify_symtab_base): Update.
14835 (symtab_make_decl_local): Update.
14836 (fixup_same_cpp_alias_visibility): Update.
14837 (symtab_nonoverwritable_alias): Update.
14838 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14839 * ipa.c (update_visibility_by_resolution_info): UPdate.
14840 * bb-reorder.c: Include cgraph.h
14841 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14842 with comdat groups.
14843 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14844 * cgraph.c (cgraph_get_create_node): Update.
14845 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14847 (symtab_get_node): Make inline.
14848 (symtab_insert_node_to_hashtable): Remove.
14849 (symtab_can_be_discarded): Update.
14850 (decl_comdat_group): New function.
14851 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14853 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14855 (read_comdat_group): New function.
14856 (input_node, input_varpool_node): Use it.
14857 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14859 * mips.c (mips_start_unique_function): Likewise.
14860 (ix86_code_end): Likewise.
14861 (rs6000_code_end): Likweise.
14862 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14864 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14866 * gengtype-state.c (fatal_reading_state): Bring offline.
14867 * optabs.c (widening_optab_handler): Bring offline.
14868 * optabs.h (widening_optab_handler): Likewise.
14869 * final.c (get_attr_length_1): Likewise.
14871 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14873 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14875 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14877 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14878 (ppc440-compare): Include shift with dot.
14879 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14880 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14882 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14884 (e6500_sfx2): Include it.
14885 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14886 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14887 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14888 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14889 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14890 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14891 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14892 *lshiftrt_internal1le, *lshiftrt_internal1be,
14893 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14894 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14895 *rotldi3_internal10le, *rotldi3_internal10be,
14896 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14897 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14898 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14899 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14900 define_insns): Use type "shift" in the appropriate alternatives.
14902 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14904 * config/rs6000/rs6000.md (type): Add "logical". Delete
14906 (dot): Adjust comment.
14907 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14908 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14909 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14910 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14911 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14912 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14913 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14914 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14916 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14917 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14918 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14919 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14920 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14921 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14922 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14923 * config/rs6000/8540.md (ppc8540_su): Adjust.
14924 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14925 cell-cmp-microcoded): Adjust.
14926 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14927 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14928 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14929 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14930 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14931 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14932 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14933 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14934 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14936 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14937 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14938 Adjust. Adjust comment.
14939 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14940 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14942 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14944 * config/rs6000/rs6000.md (type): Add "add".
14945 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14946 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14947 define_insns): Use it.
14948 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14950 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14951 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14952 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14953 * config/rs6000/601.md (ppc601-integer): Adjust.
14954 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14955 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14956 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14957 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14958 * config/rs6000/8540.md (ppc8540_su): Adjust.
14959 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14960 cell-cmp-microcoded): Adjust.
14961 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14962 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14963 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14964 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14965 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14966 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14967 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14968 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14969 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14971 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14972 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14973 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14974 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14976 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14978 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14979 "delayed_compare", "var_delayed_compare".
14980 (var_shift): New attribute.
14981 (cell_micro): Adjust.
14982 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14983 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14984 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14985 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14986 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14987 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14988 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14989 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14990 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14991 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14992 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14993 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14994 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14995 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14996 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14997 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14998 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14999 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
15000 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
15001 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
15002 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
15003 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
15004 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
15005 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15006 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15008 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15009 * config/rs6000/440.md (ppc440-integer): Adjust.
15010 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15011 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
15012 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15013 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15014 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15015 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15016 * config/rs6000/8540.md (ppc8540_su): Adjust.
15017 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15018 cell-cmp-microcoded): Adjust.
15019 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
15020 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15021 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
15022 e500mc64_delayed): Adjust.
15023 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
15024 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
15025 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15026 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
15027 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
15028 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
15029 power6-delayed-compare, power6-var-delayed-compare): Adjust.
15030 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
15031 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
15033 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15034 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15036 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15038 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
15039 (bits): New mode_attr.
15040 (idiv_ldiv): Delete mode_attr.
15041 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
15042 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15043 rs6000_adjust_priority, is_nonpipeline_insn,
15044 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15046 * config/rs6000/40x.md (ppc403-idiv): Adjust.
15047 * config/rs6000/440.md (ppc440-idiv): Adjust.
15048 * config/rs6000/476.md (ppc476-idiv): Adjust.
15049 * config/rs6000/601.md (ppc601-idiv): Adjust.
15050 * config/rs6000/603.md (ppc603-idiv): Adjust.
15051 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
15052 ppc620-ldiv): Adjust.
15053 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
15054 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
15055 * config/rs6000/8540.md (ppc8540_divide): Adjust.
15056 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
15057 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
15058 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
15059 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
15060 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
15061 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
15062 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
15063 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
15064 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
15065 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
15066 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
15067 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
15068 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
15069 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
15070 * config/rs6000/titan.md (titan_fxu_div): Adjust.
15072 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15074 * config/rs6000/rs6000.md (type): Delete "insert_word",
15075 "insert_dword". Add "insert".
15076 (size): Update comment.
15077 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15078 insn_must_be_first_in_group): Adjust.
15079 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15080 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15081 *insvsi_internal6, insvdi_internal): Adjust.
15083 * config/rs6000/40x.md (ppc403-integer): Adjust.
15084 * config/rs6000/440.md (ppc440-integer): Adjust.
15085 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
15086 * config/rs6000/601.md (ppc601-integer): Adjust.
15087 * config/rs6000/603.md (ppc603-integer): Adjust.
15088 * config/rs6000/6xx.md (ppc604-integer): Adjust.
15089 * config/rs6000/7450.md (ppc7450-integer): Adjust.
15090 * config/rs6000/7xx.md (ppc750-integer): Adjust.
15091 * config/rs6000/8540.md (ppc8540_su): Adjust.
15092 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
15093 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
15094 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15095 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
15096 * config/rs6000/e5500.md (e5500_sfx): Adjust.
15097 * config/rs6000/e6500.md (e6500_sfx): Adjust.
15098 * config/rs6000/mpc.md (mpccore-integer): Adjust.
15099 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
15100 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
15101 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
15102 * config/rs6000/power7.md (power7-integer): Adjust.
15103 * config/rs6000/power8.md (power8-1cyc): Adjust.
15104 * config/rs6000/rs64.md (rs64a-integer): Adjust.
15105 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15107 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15109 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
15110 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
15111 (size): New attribute.
15112 (dot): New attribute.
15113 (cell_micro): Adjust.
15114 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
15115 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
15116 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
15117 umuldi3_highpart): Adjust.
15118 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15119 rs6000_adjust_priority, is_nonpipeline_insn,
15120 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15122 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
15123 ppc405-imul3): Adjust.
15124 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
15125 * config/rs6000/476.md (ppc476-imul): Adjust.
15126 * config/rs6000/601.md (ppc601-imul): Adjust.
15127 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
15128 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
15129 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
15130 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
15131 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
15133 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
15134 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
15135 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
15136 cell-imul): Adjust.
15137 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
15138 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
15139 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
15140 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
15141 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
15142 * config/rs6000/mpc.md (mpccore-imul): Adjust.
15143 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
15144 power4-lmul, power4-imul, power4-imul3): Adjust.
15145 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
15146 power5-lmul, power5-imul, power5-imul3): Adjust.
15147 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
15148 power6-lmul, power6-imul, power6-imul3): Adjust.
15149 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
15150 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
15152 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
15153 rs64a-lmul): Adjust.
15154 * config/rs6000/titan.md (titan_imul): Adjust.
15156 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15158 * config/rs6000/rs6000.md (type): Add new value "halfmul".
15159 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
15160 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
15161 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
15162 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
15163 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
15164 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
15165 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
15166 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
15167 * config/rs6000/titan.md: Delete nonsensical comment.
15168 (titan_imul): Add type imul3.
15169 (titan_mulhw): Remove type imul3; add type halfmul.
15171 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15173 * config/rs6000/rs6000.md (type): Reorder, reformat.
15175 2014-05-23 Martin Jambor <mjambor@suse.cz>
15177 PR tree-optimization/53787
15178 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
15179 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
15180 analysis_done, update all uses.
15181 * ipa-prop.c: Include domwalk.h
15182 (param_analysis_info): Removed.
15183 (param_aa_status): New type.
15184 (ipa_bb_info): Likewise.
15185 (func_body_info): Likewise.
15186 (ipa_get_bb_info): New function.
15187 (aa_overwalked): Likewise.
15188 (find_dominating_aa_status): Likewise.
15189 (parm_bb_aa_status_for_bb): Likewise.
15190 (parm_preserved_before_stmt_p): Changed to use new param AA info.
15191 (load_from_unmodified_param): Accept func_body_info as a parameter
15192 instead of parms_ainfo.
15193 (parm_ref_data_preserved_p): Changed to use new param AA info.
15194 (parm_ref_data_pass_through_p): Likewise.
15195 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15196 (compute_complex_assign_jump_func): Changed to use new param AA info.
15197 (compute_complex_ancestor_jump_func): Likewise.
15198 (ipa_compute_jump_functions_for_edge): Likewise.
15199 (ipa_compute_jump_functions): Removed.
15200 (ipa_compute_jump_functions_for_bb): New function.
15201 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15203 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15204 and info, moved variable declarations down.
15205 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15207 (ipa_analyze_stmt_uses): Likewise.
15208 (ipa_analyze_params_uses): Removed.
15209 (ipa_analyze_params_uses_in_bb): New function.
15210 (ipa_analyze_controlled_uses): Likewise.
15211 (free_ipa_bb_info): Likewise.
15212 (analysis_dom_walker): New class.
15213 (ipa_analyze_node): Handle node-specific forbidden analysis,
15214 initialize and free func_body_info, use dominator walker.
15215 (ipcp_modif_dom_walker): New class.
15216 (ipcp_transform_function): Create and free func_body_info, use
15217 ipcp_modif_dom_walker, moved a lot of functionality there.
15219 2014-05-23 Marek Polacek <polacek@redhat.com>
15220 Jakub Jelinek <jakub@redhat.com>
15222 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15223 * gcc.c (sanitize_spec_function): Likewise.
15224 * convert.c (convert_to_integer): Include "ubsan.h". Add
15225 floating-point to integer instrumentation.
15226 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15227 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15228 SANITIZE_NONDEFAULT.
15229 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15230 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15231 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15232 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15233 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15234 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15235 float/double/long double.
15236 (ubsan_instrument_float_cast): New function.
15237 * ubsan.h (ubsan_instrument_float_cast): Declare.
15239 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15241 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15243 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15244 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15245 Adjust for tailcalling through registers.
15246 * config/aarch64/aarch64.h (enum reg_class): New caller save
15248 (REG_CLASS_NAMES): Likewise.
15249 (REG_CLASS_CONTENTS): Likewise.
15250 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15251 Allow tailcalling without decls.
15253 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15255 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15256 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15258 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15259 gsi, and variables v_* to v*.
15261 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15263 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15265 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15267 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15268 * omp-low.c: Update accordingly.
15270 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15271 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15272 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15273 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15274 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15275 GF_OMP_TARGET_KIND_UPDATE.
15277 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15278 Explicitly enumerate the expected region types.
15280 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15283 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15284 documentation; the old documentation didn't clearly state the
15285 constraints on the contents of the pointed-to storage.
15287 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15289 Fix bootstrap error on ia64
15290 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15291 Return default value.
15293 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15295 PR tree-optimization/54733
15296 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15298 (find_bswap_or_nop_load): New.
15299 (find_bswap_1): Renamed to ...
15300 (find_bswap_or_nop_1): This. Also add support for memory source.
15301 (find_bswap): Renamed to ...
15302 (find_bswap_or_nop): This. Also add support for memory source and
15303 detection of bitwise operations equivalent to load in target
15305 (execute_optimize_bswap): Likewise. Also move its leading comment back
15306 in place and split statement transformation into ...
15307 (bswap_replace): This.
15309 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15311 PR rtl-optimization/61215
15312 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15313 simplify_gen_subreg until final substitution.
15315 2014-05-23 Alan Modra <amodra@gmail.com>
15318 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15319 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15320 Use "Y" constraint rather than "m".
15322 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15324 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15326 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15327 New function declaration.
15328 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15329 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15330 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15331 (aarch64_init_builtins) : Initialize builtins
15332 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15333 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15334 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15335 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15336 and __builtins_aarch64_set_fpsr.
15337 (aarch64_atomic_assign_expand_fenv): New function.
15338 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15339 (get_fpcr) : Likewise.
15340 (set_fpsr) : Likewise.
15341 (get_fpsr) : Likewise.
15342 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15343 and UNSPECV_SET_FPSR.
15344 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15345 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15346 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15348 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15350 PR rtl-optimization/60969
15351 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15352 constraints. Set up mem cost for NO_REGS case.
15354 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15356 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15358 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15360 * config/darwin.c: Include "lto-section-names.h".
15361 (LTO_SEGMENT_NAME): Don't define.
15362 * config/i386/winnt.c: Include "lto-section-names.h".
15363 * lto-streamer.c: Include "lto-section-names.h".
15364 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15365 * lto-wrapper.c: Include "lto-section-names.h".
15366 (LTO_SECTION_NAME_PREFIX): Don't define.
15367 * lto-section-names.h: New file.
15368 * cgraphunit.c: Include "lto-section-names.h".
15370 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15372 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15374 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15377 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15379 2014-05-22 Nick Clifton <nickc@redhat.com>
15381 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15383 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15385 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15386 -> (T)A transformation to integer types.
15388 2014-05-22 Teresa Johnson <tejohnson@google.com>
15390 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15391 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15392 (gcov_rewrite): Use gcov_nonruntime_assert.
15393 (gcov_open): Ditto.
15394 (gcov_write_words): Ditto.
15395 (gcov_write_length): Ditto.
15396 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15397 gcc_assert from IN_LIBGCOV code.
15398 (gcov_read_summary): Use gcov_error to flag profile corruption.
15399 (gcov_sync): Use gcov_nonruntime_assert.
15400 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15401 (gcov_histo_index): Use gcov_nonruntime_assert.
15402 (static void gcov_histogram_merge): Ditto.
15403 (compute_working_sets): Ditto.
15404 * gcov-io.h (gcov_nonruntime_assert): Define.
15405 (gcov_error): Define for !IN_LIBGCOV
15407 2014-05-22 Richard Biener <rguenther@suse.de>
15409 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15410 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15411 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15412 and deallocation site.
15413 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15414 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15415 passing through the incoming points-to set.
15416 (handle_lhs_call): Use flags argument instead of recomputing it.
15417 (find_func_aliases_for_call): Call handle_lhs_call with proper
15420 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15422 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15423 all padding bits in REAL_VALUE_TYPE are cleared.
15425 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15427 Cleanup and improve multipass_dfa_lookahead_guard
15428 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15429 (core2i7_first_cycle_multipass_begin,)
15430 (core2i7_first_cycle_multipass_issue,)
15431 (core2i7_first_cycle_multipass_backtrack): Update signature.
15432 * config/ia64/ia64.c
15433 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15434 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15435 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15437 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15438 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15440 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15442 * doc/tm.texi: Regenerate.
15444 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15445 * haifa-sched.c (ready_try): Make signed to allow negative values.
15446 (rebug_ready_list_1): Update.
15447 (choose_ready): Simplify.
15448 (sched_extend_ready_list): Update.
15450 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15452 Remove IA64 speculation tweaking flags
15453 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15454 speculation tuning flags.
15455 (msched-prefer-non-data-spec-insns,)
15456 (msched-prefer-non-control-spec-insns): Obsolete options.
15457 * haifa-sched.c (choose_ready): Remove handling of
15458 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15459 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15460 and PREFER_NON_DATA_SPEC.
15461 * sel-sched.c (process_spec_exprs): Remove handling of
15462 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15464 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15466 Improve scheduling debug output
15467 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15468 (advance_one_cycle): Update.
15469 (schedule_insn, queue_to_ready): Add debug printouts.
15470 (debug_ready_list_1): New static function.
15471 (debug_ready_list): Update.
15472 (max_issue): Add debug printouts.
15473 (dump_insn_stream): New static function.
15474 (schedule_block): Use it. Also better indent printouts.
15476 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15478 Fix sched_insn debug counter
15479 * haifa-sched.c (schedule_insn): Update.
15480 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15481 (save_backtrack_point, restore_backtrack_point): Update.
15482 (first_nonscheduled_insn): New static function.
15483 (queue_to_ready, choose_ready): Use it.
15484 (schedule_block): Init nonscheduled_insns_begin.
15485 (sched_emit_insn): Update.
15488 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15490 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15492 (aarch64_secondary_reload) : LikeWise.
15493 (aarch64_class_max_nregs) : Remove CORE_REGS.
15494 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15495 (REG_CLASS_NAMES) : Likewise.
15496 (REG_CLASS_CONTENTS) : LikeWise.
15497 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15499 2014-05-21 Guozhi Wei <carrot@google.com>
15502 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15504 (vqdmulhq_n_s16): Likewise.
15506 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15508 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15510 2014-05-21 Marek Polacek <polacek@redhat.com>
15513 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15515 2014-05-21 Martin Jambor <mjambor@suse.cz>
15517 * doc/invoke.texi (Optimize Options): Document parameters
15518 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15519 ipa-cp-array-index-hint-bonus.
15521 2014-05-21 Mark Wielaard <mjw@redhat.com>
15524 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15525 version >= 3 or not strict DWARF.
15526 * langhooks.h (struct lang_hooks_for_types): Add
15527 enum_underlying_base_type.
15528 * langhooks.c (lhd_enum_underlying_base_type): New function.
15529 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15530 enum_underlying_base_type.
15531 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15532 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15533 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15535 2014-05-21 Richard Biener <rguenther@suse.de>
15537 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15539 2014-05-21 John Marino <gnugcc@marino.st>
15541 * config.gcc (*-*-dragonfly*): New target.
15542 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15543 * configure: Regenerate.
15544 * config/dragonfly-stdint.h: New.
15545 * config/dragonfly.h: New.
15546 * config/dragonfly.opt: New.
15547 * config/i386/dragonfly.h: New.
15548 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15550 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15552 * tree.def (VOID_CST): New.
15553 * tree-core.h (TI_VOID): New.
15554 * tree.h (void_node): New.
15555 * tree.c (tree_node_structure_for_code, tree_code_size)
15556 (iterative_hash_expr): Handle VOID_CST.
15557 (build_common_tree_nodes): Initialize void_node.
15559 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15561 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15563 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15565 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15568 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15569 flag_reorder_blocks_and_partition.
15570 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15572 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15575 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15577 (*addc_r_t): Add new insn_and_split.
15579 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15581 PR middle-end/61252
15582 * omp-low.c (handle_simd_reference): New function.
15583 (lower_rec_input_clauses): Use it. Defer adding reference
15584 initialization even for reduction without placeholder if in simd,
15585 handle it properly later on.
15587 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15589 PR tree-optimization/60899
15590 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15591 assume all static symbols will have definition wile parsing and
15592 check the do have definition later in compilation; check that
15593 variable referring symbol will be output before concluding that
15594 reference is safe; be conservative for referring local statics;
15595 be more precise about when comdat is output in other partition.
15597 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15600 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15602 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15603 (ipa_inline): Loop inline_to_all_callers until no more aliases
15606 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15608 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15609 set writeonly flag only for vars actually written to.
15611 2014-05-20 Dehao Chen <dehao@google.com>
15613 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15614 and callee count to get clone count.
15615 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15616 count in copy_body.
15618 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15620 PR rtl-optimization/61243
15621 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15623 2014-05-20 Xinliang David Li <davidxl@google.com>
15625 * cgraphunit.c (walk_polymorphic_call_targets): Add
15626 dbgcnt and fopt-info support.
15627 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15628 * ipa-devirt.c (ipa_devirt): Ditto.
15629 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15630 * ipa.c (walk_polymorphic_call_targets): Ditto.
15631 * gimple-fold.c (fold_gimple_assign): Ditto.
15632 (gimple_fold_call): Ditto.
15633 * dbgcnt.def: New counter.
15635 2014-05-20 DJ Delorie <dj@redhat.com>
15637 * config/msp430/msp430.md (split): Don't allow subregs when
15638 splitting SImode adds.
15639 (andneghi): Fix subtraction logic.
15640 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15642 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15644 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15646 * except.c (switch_to_exception_section, resolve_unique_section,
15647 get_named_text_section, default_function_rodata_section,
15648 align_variable, get_block_for_decl, default_section_type_flags):
15649 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15650 * symtab.c (symtab_add_to_same_comdat_group,
15651 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15652 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15654 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15655 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15656 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15657 (c6x_function_in_section_p): Likewise.
15658 * config/darwin.c (machopic_select_section): Likewise.
15659 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15660 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15661 * config/mep/mep.c (mep_select_section): LIkewise.
15662 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15664 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15666 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15667 EH region of calls to pure functions that can throw an exception.
15668 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15669 (copy_reference_ops_from_call): Also copy the EH region of the call if
15670 it can throw an exception.
15672 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15674 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15675 nested VEC_SELECTs that are inverses of each other.
15677 2014-05-20 Richard Biener <rguenther@suse.de>
15679 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15680 (extract_and_process_scc_for_name): not here.
15681 (cond_dom_walker::before_dom_children): Only process
15682 stmts that end the BB in interesting ways.
15683 (run_scc_vn): Mark param uses as visited.
15685 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15687 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15690 2014-05-20 Nick Clifton <nickc@redhat.com>
15692 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15693 (msp430_gimplify_va_arg_expr): New function.
15694 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15696 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15697 operand 0 in order to prevent confusion about the number of
15698 registers involved.
15700 2014-05-20 Richard Biener <rguenther@suse.de>
15702 PR tree-optimization/61221
15703 * tree-ssa-pre.c (el_to_update): Remove.
15704 (eliminate_dom_walker::before_dom_children): Handle released
15705 VDEFs by value-numbering them to the associated VUSE. Update
15706 stmt immediately for substituted call address.
15707 (eliminate): Remove delayed stmt updating code.
15708 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15709 possibly late re-numbered vuses.
15710 (vn_reference_lookup_2): Adjust.
15711 (vn_reference_lookup_pieces): Likewise.
15712 (vn_reference_lookup): Likewise.
15714 2014-05-20 Richard Biener <rguenther@suse.de>
15716 * config.gcc: Remove need_64bit_hwint.
15717 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15718 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15720 * config.in: Regenerate.
15721 * configure: Likewise.
15723 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15725 * doc/extend.texi: Create Label Attributes section,
15726 move all label attributes into it and reference it.
15728 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15730 * arm.c (thumb1_reorg): When scanning backwards skip anything
15731 that's not a proper insn.
15733 2014-05-19 Richard Biener <rguenther@suse.de>
15735 PR tree-optimization/61221
15736 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15737 Do nothing for unreachable blocks.
15738 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15739 Improve unreachability detection.
15741 2014-05-19 Richard Biener <rguenther@suse.de>
15743 PR tree-optimization/61209
15744 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15746 2014-05-19 Nick Clifton <nickc@redhat.com>
15748 * except.c (init_eh): Fix computation of builtin setjmp buffer
15749 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15751 2014-05-19 Richard Biener <rguenther@suse.de>
15753 PR tree-optimization/61184
15754 * tree-vrp.c (is_negative_overflow_infinity): Use
15755 TREE_OVERFLOW_P and do that check first.
15756 (is_positive_overflow_infinity): Likewise.
15757 (is_overflow_infinity): Likewise.
15758 (vrp_operand_equal_p): Properly treat operands with
15759 differing overflow as not equal.
15761 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15763 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15764 shift simplification where it was intended.
15766 2014-05-19 Christian Bruel <christian.bruel@st.com>
15769 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15771 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15774 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15777 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15779 * reg-notes.def (CROSSING_JUMP): Likewise.
15780 * rtl.h (rtx_def): Update comment for jump flag.
15781 (CROSSING_JUMP_P): Define.
15782 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15783 of a REG_CROSSING_JUMP note.
15784 * cfghooks.c (tidy_fallthru_edges): Likewise.
15785 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15786 * emit-rtl.c (try_split): Likewise.
15787 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15788 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15789 * jump.c (redirect_jump_2): Likewise.
15790 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15791 (relax_delay_slots): Likewise.
15792 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15793 (bbit_di): Likewise.
15794 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15795 * config/sh/sh.md (jump_compact): Likewise.
15796 * bb-reorder.c (rotate_loop): Likewise.
15797 (pass_duplicate_computed_gotos::execute): Likewise.
15798 (add_reg_crossing_jump_notes): Rename to...
15799 (update_crossing_jump_flags): ...this.
15800 (pass_partition_blocks::execute): Update accordingly.
15802 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15804 * tree.h: Remove extraneous template <>.
15806 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15808 * ipa.c (symtab_remove_unreachable_nodes): Remove
15809 symbol from comdat group if its body was eliminated.
15810 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15811 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15812 (symtab_unregister_node): ... this one.
15813 (verify_symtab_base): More strict checking of comdats.
15814 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15816 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15818 * tree-pass.h (make_pass_ipa_comdats): New pass.
15819 * timevar.def (TV_IPA_COMDATS): New timevar.
15820 * passes.def (pass_ipa_comdats): Add.
15821 * Makefile.in (OBJS): Add ipa-comdats.o
15822 * ipa-comdats.c: New file.
15824 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15826 * ipa.c (update_visibility_by_resolution_info): New function.
15827 (function_and_variable_visibility): Use it.
15829 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15831 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15833 (FOR_EACH_DEFINED_SYMBOL): New macro.
15834 (varpool_first_static_initializer, varpool_next_static_initializer,
15835 varpool_first_defined_variable, varpool_next_defined_variable):
15837 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15839 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15841 * ggc-page.c (ggc_handle_finalizers): Add comment.
15843 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15845 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15846 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15847 (ggc_internal_cleared_alloc): Likewise.
15848 * ggc-page.c (finalizer): New class.
15849 (vec_finalizer): Likewise.
15850 (globals::finalizers): New member.
15851 (globals::vec_finalizers): Likewise.
15852 (ggc_internal_alloc): Record the finalizer if any for the block being
15854 (ggc_handle_finalizers): New function.
15855 (ggc_collect): Call ggc_handle_finalizers.
15856 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15858 (ggc_internal_cleared_alloc): Likewise.
15859 (finalize): New function.
15860 (need_finalization_p): Likewise.
15861 (ggc_alloc): Install the type's destructor as the finalizer if it
15862 might do something.
15863 (ggc_cleared_alloc): Likewise.
15864 (ggc_vec_alloc): Likewise.
15865 (ggc_cleared_vec_alloc): Likewise.
15867 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15869 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15871 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15873 * alias.c (record_alias_subset): Adjust.
15874 * bitmap.c (bitmap_element_allocate): Likewise.
15875 (bitmap_gc_alloc_stat): Likewise.
15876 * cfg.c (init_flow): Likewise.
15877 (alloc_block): Likewise.
15878 (unchecked_make_edge): Likewise.
15879 * cfgloop.c (alloc_loop): Likewise.
15880 (flow_loops_find): Likewise.
15881 (rescan_loop_exit): Likewise.
15882 * cfgrtl.c (init_rtl_bb_info): Likewise.
15883 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15884 (cgraph_allocate_node): Likewise.
15885 (cgraph_create_edge_1): Likewise.
15886 (cgraph_allocate_init_indirect_info): Likewise.
15887 * cgraphclones.c (cgraph_clone_edge): Likewise.
15888 * cgraphunit.c (add_asm_node): Likewise.
15889 (init_lowered_empty_function): Likewise.
15890 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15891 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15892 (alpha_use_linkage): Likewise.
15893 * config/arc/arc.c (arc_init_machine_status): Likewise.
15894 * config/arm/arm.c (arm_init_machine_status): Likewise.
15895 * config/avr/avr.c (avr_init_machine_status): Likewise.
15896 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15897 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15898 * config/cris/cris.c (cris_init_machine_status): Likewise.
15899 * config/darwin.c (machopic_indirection_name): Likewise.
15900 (darwin_build_constant_cfstring): Likewise.
15901 (darwin_enter_string_into_cfstring_table): Likewise.
15902 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15903 * config/frv/frv.c (frv_init_machine_status): Likewise.
15904 * config/i386/i386.c (get_dllimport_decl): Likewise.
15905 (ix86_init_machine_status): Likewise.
15906 (assign_386_stack_local): Likewise.
15907 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15908 (i386_pe_maybe_record_exported_symbol): Likewise.
15909 (i386_pe_record_stub): Likewise.
15910 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15911 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15912 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15913 (m32c_note_pragma_address): Likewise.
15914 * config/mep/mep.c (mep_init_machine_status): Likewise.
15915 (mep_note_pragma_flag): Likewise.
15916 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15917 (mips16_local_alias): Likewise.
15918 (mips_init_machine_status): Likewise.
15919 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15920 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15921 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15922 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15923 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15924 * config/pa/pa.c (pa_init_machine_status): Likewise.
15925 (pa_get_deferred_plabel): Likewise.
15926 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15927 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15928 (rs6000_init_machine_status): Likewise.
15929 (output_toc): Likewise.
15930 * config/s390/s390.c (s390_init_machine_status): Likewise.
15931 * config/score/score.c (score_output_external): Likewise.
15932 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15933 * config/spu/spu.c (spu_init_machine_status): Likewise.
15934 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15935 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15936 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15937 * coverage.c (coverage_end_function): Likewise.
15938 * dbxout.c (dbxout_init): Likewise.
15939 * doc/gty.texi: Don't mention variable_size attribute.
15940 * dwarf2cfi.c (new_cfi): Adjust.
15941 (new_cfi_row): Likewise.
15942 (copy_cfi_row): Likewise.
15943 (create_cie_data): Likewise.
15944 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15945 (new_loc_descr): Likewise.
15946 (find_AT_string_in_table): Likewise.
15947 (add_addr_table_entry): Likewise.
15948 (new_die): Likewise.
15949 (add_var_loc_to_decl): Likewise.
15950 (clone_die): Likewise.
15951 (clone_as_declaration): Likewise.
15952 (break_out_comdat_types): Likewise.
15953 (new_loc_list): Likewise.
15954 (add_loc_descr_to_each): Likewise.
15955 (add_location_or_const_value_attribute): Likewise.
15956 (add_linkage_name): Likewise.
15957 (lookup_filename): Likewise.
15958 (dwarf2out_var_location): Likewise.
15959 (new_line_info_table): Likewise.
15960 (dwarf2out_init): Likewise.
15961 (mem_loc_descriptor): Likewise.
15962 (loc_descriptor): Likewise.
15963 (add_const_value_attribute): Likewise.
15964 (tree_add_const_value_attribute): Likewise.
15965 (comp_dir_string): Likewise.
15966 (dwarf2out_vms_debug_main_pointer): Likewise.
15967 (string_cst_pool_decl): Likewise.
15968 * emit-rtl.c (set_mem_attrs): Likewise.
15969 (get_reg_attrs): Likewise.
15970 (start_sequence): Likewise.
15971 (init_emit): Likewise.
15972 (init_emit_regs): Likewise.
15973 * except.c (init_eh_for_function): Likewise.
15974 (gen_eh_region): Likewise.
15975 (gen_eh_region_catch): Likewise.
15976 (gen_eh_landing_pad): Likewise.
15977 (add_call_site): Likewise.
15978 * function.c (add_frame_space): Likewise.
15979 (insert_temp_slot_address): Likewise.
15980 (assign_stack_temp_for_type): Likewise.
15981 (get_hard_reg_initial_val): Likewise.
15982 (allocate_struct_function): Likewise.
15983 (prepare_function_start): Likewise.
15984 (types_used_by_var_decl_insert): Likewise.
15985 * gengtype.c (variable_size_p): Remove function.
15986 (enum alloc_quantity): Remove enum.
15987 (write_typed_alloc_def): Remove function.
15988 (write_typed_struct_alloc_def): Likewise.
15989 (write_typed_typedef_alloc_def): Likewise.
15990 (write_typed_alloc_defns): Likewise.
15992 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15993 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15994 * ggc.h (ggc_alloc): new function.
15995 (ggc_cleared_alloc): Likewise.
15996 (ggc_vec_alloc): Template on type of vector element, and remove
15997 element size argument.
15998 (ggc_cleared_vec_alloc): Likewise.
15999 * gimple.c (gimple_build_omp_for): Adjust.
16000 (gimple_copy): Likewise.
16001 * ipa-cp.c (get_replacement_map): Likewise.
16002 (find_aggregate_values_for_callers_subset): Likewise.
16003 (known_aggs_to_agg_replacement_list): Likewise.
16004 * ipa-devirt.c (get_odr_type): Likewise.
16005 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
16006 (read_agg_replacement_chain): Likewise.
16007 * loop-iv.c (get_simple_loop_desc): Likewise.
16008 * lto-cgraph.c (input_node_opt_summary): Likewise.
16009 * lto-section-in.c (lto_new_in_decl_state): Likewise.
16010 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
16011 (input_eh_region): Likewise.
16012 (input_eh_lp): Likewise.
16013 (input_cfg): Likewise.
16014 * optabs.c (set_optab_libfunc): Likewise.
16015 (init_tree_optimization_optabs): Likewise.
16016 (set_conv_libfunc): Likewise.
16017 * passes.c (do_per_function_toporder): Likewise.
16018 * rtl.h: Don't use variable_size gty attribute.
16019 * sese.c (if_region_set_false_region): Adjust.
16020 * stringpool.c (gt_pch_save_stringpool): Likewise.
16021 * target-globals.c (save_target_globals): Likewise.
16022 * toplev.c (general_init): Likewise.
16023 * trans-mem.c (record_tm_replacement): Likewise.
16024 (split_bb_make_tm_edge): Likewise.
16025 * tree-cfg.c (move_sese_region_to_fn): Likewise.
16026 * tree-data-ref.h (lambda_vector_new): Likewise.
16027 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
16028 * tree-iterator.c (tsi_link_before): Likewise.
16029 (tsi_link_after): Likewise.
16030 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
16031 * tree-ssa-loop-niter.c (record_estimate): Likewise.
16032 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
16033 * tree-ssa-operands.h: Don't use variable_size gty attribute.
16034 * tree-ssa.c (init_tree_ssa): Adjust.
16035 * tree-ssanames.c (set_range_info): Likewise.
16036 (get_ptr_info): Likewise.
16037 (duplicate_ssa_name_ptr_info): Likewise.
16038 (duplicate_ssa_name_range_info): Likewise.
16039 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
16040 (unpack_ts_fixed_cst_value_fields): Likewise.
16041 * tree.c (build_fixed): Likewise.
16042 (build_real): Likewise.
16043 (build_string): Likewise.
16044 (decl_priority_info): Likewise.
16045 (decl_debug_expr_insert): Likewise.
16046 (decl_value_expr_insert): Likewise.
16047 (decl_debug_args_insert): Likewise.
16048 (type_hash_add): Likewise.
16049 (build_omp_clause): Likewise.
16050 * ubsan.c (decl_for_type_insert): Likewise.
16051 * varasm.c (get_unnamed_section): Likewise.
16052 (get_noswitch_section): Likewise.
16053 (get_section): Likewise.
16054 (get_block_for_section): Likewise.
16055 (create_block_symbol): Likewise.
16056 (build_constant_desc): Likewise.
16057 (create_constant_pool): Likewise.
16058 (force_const_mem): Likewise.
16059 (record_tm_clone_pair): Likewise.
16060 * varpool.c (varpool_create_empty_node): Likewise.
16062 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16064 * dwarf2out.c (tree_add_const_value_attribute): Call
16065 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
16066 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
16067 instead of ggc_internal_<x>alloc_stat.
16068 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
16069 (ggc_realloc): Likewise.
16070 * ggc-none.c (ggc_internal_alloc): Likewise.
16071 (ggc_internal_cleared_alloc): Likewise.
16072 * ggc-page.c: Likewise.
16073 * ggc.h (ggc_internal_alloc_stat): Likewise.
16074 (ggc_internal_alloc): Remove macro.
16075 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
16076 (ggc_internal_cleared_alloc): Remove macro.
16077 (GGC_RESIZEVEC): Adjust.
16078 (ggc_resizevar): Remove macro.
16079 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
16080 (ggc_internal_cleared_vec_alloc_stat): Likewise.
16081 (ggc_internal_vec_cleared_alloc): Remove macro.
16082 (ggc_alloc_atomic_stat): Drop _stat suffix.
16083 (ggc_alloc_atomic): Remove macro.
16084 (ggc_alloc_cleared_atomic): Remove macro.
16085 (ggc_alloc_string_stat): Drop _stat suffix.
16086 (ggc_alloc_string): Remove macro.
16087 (ggc_alloc_rtx_def_stat): Adjust.
16088 (ggc_alloc_tree_node_stat): Likewise.
16089 (ggc_alloc_cleared_tree_node_stat): Likewise.
16090 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
16091 (ggc_alloc_cleared_simd_clone_stat): Likewise.
16092 * gimple.c (gimple_build_omp_for): Likewise.
16093 (gimple_copy): Likewise.
16094 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
16095 * toplev.c (realloc_for_line_map): Adjust.
16096 * tree-data-ref.h (lambda_vector_new): Likewise.
16097 * tree-phinodes.c (allocate_phi_node): Likewise.
16098 * tree.c (grow_tree_vec_stat): Likewise.
16099 * vec.h (va_gc::reserve): Adjust.
16101 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
16103 * config/microblaze/microblaze.c (break_handler): New Declaration.
16104 (microblaze_break_function_p,microblaze_is_break_handler): New.
16105 (compute_frame_size): Use microblaze_break_function_p.
16106 Add the test of break_handler.
16107 (microblaze_function_prologue) : Add the test of variable
16108 break_handler. Check the fnname by BREAK_HANDLER_NAME.
16109 (microblaze_function_epilogue) : Add the test of break_handler.
16110 (microblaze_globalize_label) : Add the test of break_handler.
16111 Check the name by BREAK_HANDLER_NAME.
16113 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
16115 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
16116 microblaze_is_break_handler test.
16117 (call_internal1,call_value_intern): Use microblaze_break_function_p.
16118 Use SYMBOL_REF_DECL.
16120 * config/microblaze/microblaze-protos.h
16121 (microblaze_break_function_p,microblaze_is_break_handler):
16124 * doc/extend.texi (MicroBlaze break_handler Functions): Document
16125 new MicroBlaze break_handler functions.
16127 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16129 * doc/extend.texi (Size of an asm): Move node text according
16130 to its @menu entry position.
16132 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
16134 PR tree-optimization/61140
16135 PR tree-optimization/61150
16136 PR tree-optimization/61197
16137 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
16139 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16141 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
16143 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
16145 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
16146 __SIZEOF_INT128__ is defined.
16148 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16150 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
16151 (rs6000_delegitimize_address): Use it.
16153 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16155 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
16156 inplace argument. Store the new address in the original MEM when true.
16157 * emit-rtl.c (change_address_1): Likewise.
16158 (adjust_address_1, adjust_automodify_address_1, offset_address):
16159 Update accordingly.
16160 * rtl.h (plus_constant): Add an inplace argument.
16161 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
16162 when true. Avoid generating (plus X (const_int 0)).
16163 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
16164 in-place. Pass true to plus_constant.
16165 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
16167 2014-05-16 Dehao Chen <dehao@google.com>
16169 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
16171 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16174 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
16176 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
16178 2014-05-16 Dehao Chen <dehao@google.com>
16180 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
16181 optimize_function_for_size_p.
16182 * regs.h (REG_FREQ_FROM_BB): Likewise.
16184 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16187 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
16188 negt_reg_operand cases.
16189 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
16191 * config/sh/predicates.md (cbranch_treg_value): Simplify.
16193 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16195 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16198 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16201 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16203 * tree-cfg.c (dump_function_to_file): Dump the return type of
16204 functions, in a line to itself before the function body, mimicking
16205 the layout of a C function.
16207 2014-05-16 Dehao Chen <dehao@google.com>
16209 * cfghooks.c (make_forwarder_block): Use direct computation to
16210 get fall-through edge's count and frequency.
16212 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16214 * config/arc/arc.c (arc_init): Fix typo in error message.
16215 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16216 (split_stack_prologue_scratch_regno): Likewise.
16217 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16218 word from error message.
16220 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16222 * ira-costs.c: Fix typo in comment.
16224 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16226 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16228 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16230 * varpool.c (dump_varpool_node): Dump write-only flag.
16231 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16233 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16234 write-only variables.
16235 * ipa.c (process_references): New function.
16236 (set_readonly_bit): New function.
16237 (set_writeonly_bit): New function.
16238 (clear_addressable_bit): New function.
16239 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16240 fix handling of aliases.
16241 * cgraph.h (struct varpool_node): Add writeonly flag.
16243 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16245 PR rtl-optimization/60969
16246 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16247 Calculate costs for this case.
16249 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16251 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16252 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16254 2014-05-16 Richard Biener <rguenther@suse.de>
16256 PR tree-optimization/61194
16257 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16258 bool patterns ending in a COND_EXPR.
16260 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16262 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16264 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16266 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16267 where we were unable to cost an RTX.
16269 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16271 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16274 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16275 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16277 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16279 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16280 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16282 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16283 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16285 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16286 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16288 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16291 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16292 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16294 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16297 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16298 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16300 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16301 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16303 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16304 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16306 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16307 rotates and shifts.
16309 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16310 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16312 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16313 ZERO_EXTEND and SIGN_EXTEND better.
16315 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16316 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16318 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16319 logical operations.
16321 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16322 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16324 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16325 costs when costing loads and stores to memory.
16327 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16328 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16330 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16333 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16335 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16337 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16338 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16340 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16342 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16344 (aarch64_rtx_mult_cost): New.
16345 (aarch64_rtx_costs): Use it, refactor as appropriate.
16347 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16348 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16350 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16351 emit instructions, return number of instructions which would
16353 (aarch64_add_constant): Update call to aarch64_build_constant.
16354 (aarch64_output_mi_thunk): Likewise.
16355 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16358 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16360 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16361 (TARGET_RTX_COSTS): Call it.
16363 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16365 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16366 (cortexa57_vector_cost): Likewise.
16367 (cortexa57_tunings): Use them.
16369 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16371 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16372 (cpu_addrcost_table): Use it.
16373 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16374 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16377 2014-05-16 Richard Biener <rguenther@suse.de>
16379 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16380 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16381 (visit_phi): Ignore edges marked as not executable.
16382 (class cond_dom_walker): New.
16383 (cond_dom_walker::before_dom_children): Value-number
16384 control statements and mark successor edges as not
16385 executable if possible.
16386 (run_scc_vn): First walk all control statements in
16387 dominator order, marking edges as not executable.
16388 * tree-inline.c (copy_edges_for_bb): Be not confused
16389 about random edge flags.
16391 2014-05-16 Richard Biener <rguenther@suse.de>
16393 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16395 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16398 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16399 (__TM_simple_begin): Use it.
16400 (__TM_begin): Likewise.
16402 2014-05-15 Martin Jambor <mjambor@suse.cz>
16405 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16406 type_preserved flag when the indirect edge is polymorphic.
16408 2014-05-15 Martin Jambor <mjambor@suse.cz>
16410 PR tree-optimization/61090
16411 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16412 build_ref_for_model.
16414 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16416 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16417 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16419 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16421 PR tree-optimization/61158
16422 * fold-const.c (fold_binary_loc): If X is zero-extended and
16423 shiftc >= prec, make sure zerobits is all ones instead of
16424 invoking undefined behavior.
16426 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16428 * regcprop.h: New file.
16429 * regcprop.c (skip_debug_insn_p): New decl.
16430 (replace_oldest_value_reg): Check skip_debug_insn_p.
16431 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16432 * shrink-wrap.c: Include regcprop.h.
16433 (prepare_shrink_wrap): Call
16434 copyprop_hardreg_forward_bb_without_debug_insn.
16436 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16438 * shrink-wrap.h: Update comment.
16439 * shrink-wrap.c: Update comment.
16440 (next_block_for_reg): Rename to live_edge_for_reg.
16441 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16442 (move_insn_for_shrink_wrap): Split live_edge.
16443 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16445 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16447 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16449 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16450 * config/sparc/sparc.md (fptype_ut699): New attribute.
16451 (in_branch_delay): Return false if -mfix-ut699 is specified and
16452 fptype_ut699 is set to single.
16453 (truncdfsf2): Add fptype_ut699 attribute.
16454 (fix_truncdfsi2): Likewise.
16455 (floatsisf2): Change fptype attribute.
16456 (fix_truncsfsi2): Likewise.
16457 (negtf2_notv9): Delete.
16458 (negtf2_v9): Likewise.
16459 (negtf2_hq): New instruction.
16460 (negtf2): New instruction and splitter.
16461 (negdf2_notv9): Rewrite.
16462 (abstf2_notv9): Delete.
16463 (abstf2_hq_v9): Likewise.
16464 (abstf2_v9): Likewise.
16465 (abstf2_hq): New instruction.
16466 (abstf2): New instruction and splitter.
16467 (absdf2_notv9): Rewrite.
16469 2014-05-14 Cary Coutant <ccoutant@google.com>
16472 * opts.c (common_handle_option): Don't special-case "-g".
16473 (set_debug_level): Default to at least level 2 with "-g".
16475 2014-05-14 DJ Delorie <dj@redhat.com>
16477 * config/msp430/msp430.c (msp430_builtin): Add
16478 MSP430_BUILTIN_DELAY_CYCLES.
16479 (msp430_init_builtins): Register void __delay_cycles(long long).
16480 (msp430_builtin_decl): Add it.
16481 (cg_magic_constant): New.
16482 (msp430_expand_delay_cycles): New.
16483 (msp430_expand_builtin): Call it.
16484 (msp430_print_operand_raw): Change integer printing from "int" to
16486 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16487 (delay_cycles_start): New.
16488 (delay_cycles_end): New.
16489 (delay_cycles_32): New.
16490 (delay_cycles_32x): New.
16491 (delay_cycles_16): New.
16492 (delay_cycles_16x): New.
16493 (delay_cycles_2): New.
16494 (delay_cycles_1): New.
16495 * doc/extend.texi: Document __delay_cycles().
16497 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16499 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16500 length attribute computation.
16502 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16505 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16507 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16510 * config/sparc/sparc.md: Fix types of low and high in DI constant
16511 splitter. Use gen_int_mode in some other splitters.
16513 2014-05-14 Martin Jambor <mjambor@suse.cz>
16516 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16518 2014-05-14 James Norris <jnorris@codesourcery.com>
16520 * omp-low.c (expand_parallel_call): Remove shadow variable.
16521 (expand_omp_taskreg): Likewise.
16523 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16525 * common/config/i386/i386-common.c
16526 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16527 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16528 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16529 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16530 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16531 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16532 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16533 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16534 xsavecintrin.h, xsavesintrin.h.
16535 (x86_64-*-*): Ditto.
16536 * config/i386/clflushoptintrin.h: New.
16537 * config/i386/xsavecintrin.h: Ditto.
16538 * config/i386/xsavesintrin.h: Ditto.
16539 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16540 (bit_XSAVES): Ditto.
16541 (bit_XSAVES): Ditto.
16542 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16543 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16545 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16546 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16547 OPTION_MASK_ISA_XSAVES.
16548 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16549 -mxsavec, -mxsaves.
16550 (PTA_CLFLUSHOPT) Define.
16551 (PTA_XSAVEC): Ditto.
16552 (PTA_XSAVES): Ditto.
16553 (ix86_option_override_internal): Handle new options.
16554 (ix86_valid_target_attribute_inner_p): Ditto.
16555 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16556 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16557 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16558 (bdesc_special_args): Add __builtin_ia32_xsaves,
16559 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16560 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16561 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16562 (ix86_expand_builtin): Handle new builtins.
16563 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16564 (TARGET_CLFLUSHOPT_P): Ditto.
16565 (TARGET_XSAVEC): Ditto.
16566 (TARGET_XSAVEC_P): Ditto.
16567 (TARGET_XSAVES): Ditto.
16568 (TARGET_XSAVES_P): Ditto.
16569 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16570 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16571 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16573 (ANY_XRSTOR64): Ditto.
16575 (xrstor): Change into <xrstor>.
16576 (xrstor_rex64): Change into <xrstor>_rex64.
16577 (xrstor64): Change into <xrstor>64
16579 * config/i386/i386.opt (mclflushopt): New.
16582 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16584 * doc/invoke.texi: Document new options.
16586 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16588 PR rtl-optimization/60866
16589 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16590 Default it to -1. Pass it down to init_simplejump_data.
16591 (init_simplejump_data): New parameter old_seqno. Pass it down
16592 to get_seqno_for_a_jump.
16593 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16594 initializing new jump seqno as a last resort. Add comment.
16595 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16596 jump and pass it down to sel_init_new_insn.
16597 (sel_redirect_edge_and_branch_force): Likewise.
16599 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16601 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16602 shifted values to avoid build warning.
16604 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16606 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16607 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16608 (cfg_layout_merge_blocks): Likewise.
16609 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16611 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16613 PR rtl-optimization/60901
16614 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16615 bb predecessor belongs to the same scheduling region. Adjust comment.
16617 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16619 * doc/sourcebuild.texi: (dfp_hw): Document.
16620 (p8vector_hw): Likewise.
16621 (powerpc_eabi_ok): Likewise.
16622 (powerpc_elfv2): Likewise.
16623 (powerpc_htm_ok): Likewise.
16624 (ppc_recip_hw): Likewise.
16625 (vsx_hw): Likewise.
16627 2014-05-13 Cary Coutant <ccoutant@google.com>
16629 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16631 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16633 * gengtype-parse.c (require3): Eliminate in favor of...
16635 (require_template_declaration): Update to support optional single *
16638 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16639 (create_user_defined_type): Handle a single level of explicit
16640 pointerness within template arguments.
16641 (struct write_types_data): Add field "kind".
16642 (filter_type_name): Handle "*" character.
16643 (write_user_func_for_structure_ptr): Require a write_types_data
16644 rather than just a prefix string, so that we can look up the kind
16645 of the wtd and use it as an index into wrote_user_func_for_ptr,
16646 ensuring that such functions are written at most once. Support
16647 subclasses by invoking the marking function of the ultimate base class.
16648 (write_user_func_for_structure_body): Require a write_types_data
16649 rather than just a prefix string, so that we can pass this to
16650 write_user_func_for_structure_ptr.
16651 (write_func_for_structure): Likewise.
16652 (ggc_wtd): Add initializer of new "kind" field.
16653 (pch_wtd): Likewise.
16655 * gengtype.h (enum write_types_kinds): New.
16656 (struct type): Add field wrote_user_func_for_ptr to the "s"
16659 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16661 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16662 instead of const_binop.
16663 (fold_binary_loc): Likewise.
16665 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16667 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16668 calculation to match get_ref_base_and_extent.
16670 2014-05-13 Catherine Moore <clm@codesourcery.com>
16671 Sandra Loosemore <sandra@codesourcery.com>
16673 * configure.ac: Fix assembly for explicit JALR relocation check.
16674 * configure: Regenerate.
16676 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16678 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16679 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16680 Remove associated type declarations and initialisations.
16681 (arm_expand_neon_builtin): Likewise.
16682 (neon_emit_pair_result_insn): Delete.
16683 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16684 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16685 (neon_vzip<mode>): Likewise.
16686 (neon_vuzp<mode>): Likewise.
16688 2014-05-13 Richard Biener <rguenther@suse.de>
16691 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16692 it needs revisiting whether the call still may be tail-called.
16694 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16696 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16697 * rtl.h (block_symbol): Reduce number of fields to 2.
16698 (rtx_def): Add u2.symbol_ref_flags.
16699 (SYMBOL_REF_FLAGS): Use it.
16700 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16701 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16702 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16703 Lower index of SYMBOL_REF_DATA.
16704 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16705 Print SYMBOL_REF_FLAGS at the same time.
16706 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16708 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16710 * rtl.def (VAR_LOCATION): Remove "i" field.
16711 * rtl.h (rtx_def): Add u2.var_location_status.
16712 (PAT_VAR_LOCATION_STATUS): Use it.
16713 (gen_rtx_VAR_LOCATION): Declare.
16714 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16715 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16716 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16718 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16720 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16721 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16723 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16725 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16726 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16727 * rtl.h (rtx_def): Add insn_uid to u2 field.
16728 (RTX_FLAG_CHECK8): Delete in favor of...
16729 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16730 (INSN_DELETED_P): Update accordingly.
16731 (INSN_UID): Use u2.insn_uid.
16732 (INSN_CHAIN_CODE_P): Define.
16733 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16734 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16735 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16736 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16737 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16738 indices accordingly.
16739 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16740 Update indices for insn-chain rtxes.
16741 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16742 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16743 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16744 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16745 * combine.c (try_combine): Likewise.
16746 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16748 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16750 * rtl.def (REG): Remove middle field.
16751 * rtl.h (rtx_def): Add orignal_regno to u2.
16752 (ORIGINAL_REGNO): Use it instead of field 1.
16753 (REG_ATTRS): Lower field index accordingly.
16754 * gengtype.c (adjust_field_rtx_def): Remove handling of
16755 ORIGINAL_REGNO. Move REG_ATTRS index down.
16756 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16757 code that prints the REGNO.
16759 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16761 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16764 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16766 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16768 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16770 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16771 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16773 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16775 * config/aarch64/aarch64-protos.h
16776 (aarch64_hard_regno_caller_save_mode): New prototype.
16777 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16779 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16781 2014-05-13 Christian Bruel <christian.bruel@st.com>
16783 * target.def (mode_switching): New hook vector.
16784 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16785 (mode_exit, modepriority_to_mode): Likewise.
16786 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16787 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16788 * target.h: Include tm.h and hard-reg-set.h.
16789 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16790 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16791 * doc/tm.texi Regenerate.
16792 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16793 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16794 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16795 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16796 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16797 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16798 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16799 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16800 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16801 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16802 (ix86_emit_mode_set): Hookify.
16803 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16805 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16806 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16807 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16808 (epiphany_mode_priority_to_mode): Remove declaration.
16809 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16810 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16811 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16813 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16814 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16815 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16817 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16820 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16821 is const0_rtx, return immediately. Don't test count == 0 when
16824 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16826 * Makefile.in: add shrink-wrap.o.
16827 * config/i386/i386.c: include "shrink-wrap.h"
16828 * function.c: Likewise.
16829 (requires_stack_frame_p, next_block_for_reg,
16830 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16831 dup_block_and_redirect): Move to shrink-wrap.c
16832 (thread_prologue_and_epilogue_insns): Extract three code segments
16833 as functions in shrink-wrap.c
16834 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16836 * shrink-wrap.c: New file.
16837 * shrink-wrap.h: New file.
16839 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16841 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16842 reference to Solaris.
16844 2014-05-12 Mike Stump <mikestump@comcast.net>
16847 * genattrtab.c (filename): Add.
16848 (convert_set_attr_alternative): Improve error message.
16849 (check_defs): Restore read_md_filename for error messages.
16850 (gen_insn): Save filename.
16852 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16854 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16855 -fno-local-ivars and -fivar-visibility.
16856 * c-family/c.opt: Make -Wshadow also implicitly enable
16859 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16861 * doc/tm.texi: Remove reference to deleted macro.
16862 * doc/tm.texi.in: Likewise.
16864 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16867 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16870 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16873 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16874 * config/arm/aout.h (License): Same.
16875 * config/arm/bpabi.h (License): Same.
16876 * config/arm/elf.h (License): Same.
16877 * config/arm/linux-elf.h (License): Same.
16878 * config/arm/linux-gas.h (License): Same.
16879 * config/arm/netbsd-elf.h (License): Same.
16880 * config/arm/uclinux-eabi.h (License): Same.
16881 * config/arm/uclinux-elf.h (License): Same.
16882 * config/arm/vxworks.h (License): Same.
16884 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16886 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16887 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16888 number of operands to 3.
16889 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16890 * tree-nested.c (convert_nonlocal_omp_clauses,
16891 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16892 * gimplify.c (gimplify_scan_omp_clauses): Handle
16893 OMP_CLAUSE_LINEAR_STMT.
16894 * omp-low.c (lower_rec_input_clauses): Fix typo.
16895 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16896 cast between Fortran boolean_type_node and C _Bool if
16899 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16901 PR tree-optimization/61136
16902 * wide-int.h (multiple_of_p): Define a version that doesn't return
16904 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16905 integer_zerop/const_binop pair.
16906 (multiple_of_p): Likewise, converting both operands to widest_int
16909 2014-05-09 Teresa Johnson <tejohnson@google.com>
16911 * cgraphunit.c (analyze_functions): Use correct dump file.
16913 2014-05-09 Florian Weimer <fweimer@redhat.com>
16915 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16917 (stack_protect_return_slot_p): New function.
16918 (expand_used_vars): Call stack_protect_decl_p and
16919 stack_protect_return_slot_p for -fstack-protector-strong.
16921 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16922 Andrew Haley <aph@redhat.com>
16923 Richard Sandiford <rdsandiford@googlemail.com>
16925 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16928 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16930 PR middle-end/61111
16931 * fold-const.c (fold_binary_loc): Changed width of mask.
16933 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16935 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16936 unsigned int initializers for regno_in, regno_out.
16938 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16941 * config/avr/avr.md (cc): Add new attribute set_vzn.
16942 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16943 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16944 with INC, DEC or NEG.
16945 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16946 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16947 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16949 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16952 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16954 * wide-int.cc (UTItype): Define.
16955 (UDWtype): Define for appropriate W_TYPE_SIZE.
16957 2014-05-09 Richard Biener <rguenther@suse.de>
16959 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16960 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16961 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16962 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16963 ssa_propagate): Adjust.
16965 2014-05-08 Jeff Law <law@redhat.com>
16967 PR tree-optimization/61009
16968 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16969 tri-state rather than a boolean. When a block is too big to
16970 thread through, inform caller via negative return value.
16971 (thread_across_edge): If a block was too big for normal threading,
16972 then it's too big for a joiner too, so remove temporary equivalences
16973 and return immediately.
16975 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16976 Matthias Klose <doko@ubuntu.com>
16979 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16981 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16984 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16986 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16989 * config/alpha/alpha.c: Include gimple-iterator.h.
16990 (alpha_gimple_fold_builtin): New function. Move
16991 ALPHA_BUILTIN_UMULH folding from ...
16992 (alpha_fold_builtin): ... here.
16993 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16995 2014-05-08 Wei Mi <wmi@google.com>
16998 * config/i386/i386.c (ix86_compute_frame_layout): Update
16999 preferred_stack_boundary for call, expanded from tls descriptor.
17000 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
17001 to depend on SP register.
17002 (*tls_local_dynamic_base_32_gnu): Ditto.
17003 (*tls_local_dynamic_32_once): Ditto.
17004 (tls_global_dynamic_64_<mode>): Set
17005 ix86_tls_descriptor_calls_expanded_in_cfun.
17006 (tls_local_dynamic_base_64_<mode>): Ditto.
17007 (tls_global_dynamic_32): Set
17008 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
17009 to depend on SP register.
17010 (tls_local_dynamic_base_32): Ditto.
17012 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17014 * config/arm/arm_neon.h: Update comment.
17015 * config/arm/neon-docgen.ml: Delete.
17016 * config/arm/neon-gen.ml: Delete.
17017 * doc/arm-neon-intrinsics.texi: Update comment.
17019 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17021 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
17023 (vand, vorr, veor, vorn, vbic): Remove.
17024 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
17026 (neon_vsub_unspec): Likewise.
17027 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
17029 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17031 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
17032 (vadd_s16): Likewise.
17033 (vadd_s32): Likewise.
17034 (vadd_f32): Likewise.
17035 (vadd_u8): Likewise.
17036 (vadd_u16): Likewise.
17037 (vadd_u32): Likewise.
17038 (vadd_s64): Likewise.
17039 (vadd_u64): Likewise.
17040 (vaddq_s8): Likewise.
17041 (vaddq_s16): Likewise.
17042 (vaddq_s32): Likewise.
17043 (vaddq_s64): Likewise.
17044 (vaddq_f32): Likewise.
17045 (vaddq_u8): Likewise.
17046 (vaddq_u16): Likewise.
17047 (vaddq_u32): Likewise.
17048 (vaddq_u64): Likewise.
17049 (vmul_s8): Likewise.
17050 (vmul_s16): Likewise.
17051 (vmul_s32): Likewise.
17052 (vmul_f32): Likewise.
17053 (vmul_u8): Likewise.
17054 (vmul_u16): Likewise.
17055 (vmul_u32): Likewise.
17056 (vmul_p8): Likewise.
17057 (vmulq_s8): Likewise.
17058 (vmulq_s16): Likewise.
17059 (vmulq_s32): Likewise.
17060 (vmulq_f32): Likewise.
17061 (vmulq_u8): Likewise.
17062 (vmulq_u16): Likewise.
17063 (vmulq_u32): Likewise.
17064 (vsub_s8): Likewise.
17065 (vsub_s16): Likewise.
17066 (vsub_s32): Likewise.
17067 (vsub_f32): Likewise.
17068 (vsub_u8): Likewise.
17069 (vsub_u16): Likewise.
17070 (vsub_u32): Likewise.
17071 (vsub_s64): Likewise.
17072 (vsub_u64): Likewise.
17073 (vsubq_s8): Likewise.
17074 (vsubq_s16): Likewise.
17075 (vsubq_s32): Likewise.
17076 (vsubq_s64): Likewise.
17077 (vsubq_f32): Likewise.
17078 (vsubq_u8): Likewise.
17079 (vsubq_u16): Likewise.
17080 (vsubq_u32): Likewise.
17081 (vsubq_u64): Likewise.
17082 (vand_s8): Likewise.
17083 (vand_s16): Likewise.
17084 (vand_s32): Likewise.
17085 (vand_u8): Likewise.
17086 (vand_u16): Likewise.
17087 (vand_u32): Likewise.
17088 (vand_s64): Likewise.
17089 (vand_u64): Likewise.
17090 (vandq_s8): Likewise.
17091 (vandq_s16): Likewise.
17092 (vandq_s32): Likewise.
17093 (vandq_s64): Likewise.
17094 (vandq_u8): Likewise.
17095 (vandq_u16): Likewise.
17096 (vandq_u32): Likewise.
17097 (vandq_u64): Likewise.
17098 (vorr_s8): Likewise.
17099 (vorr_s16): Likewise.
17100 (vorr_s32): Likewise.
17101 (vorr_u8): Likewise.
17102 (vorr_u16): Likewise.
17103 (vorr_u32): Likewise.
17104 (vorr_s64): Likewise.
17105 (vorr_u64): Likewise.
17106 (vorrq_s8): Likewise.
17107 (vorrq_s16): Likewise.
17108 (vorrq_s32): Likewise.
17109 (vorrq_s64): Likewise.
17110 (vorrq_u8): Likewise.
17111 (vorrq_u16): Likewise.
17112 (vorrq_u32): Likewise.
17113 (vorrq_u64): Likewise.
17114 (veor_s8): Likewise.
17115 (veor_s16): Likewise.
17116 (veor_s32): Likewise.
17117 (veor_u8): Likewise.
17118 (veor_u16): Likewise.
17119 (veor_u32): Likewise.
17120 (veor_s64): Likewise.
17121 (veor_u64): Likewise.
17122 (veorq_s8): Likewise.
17123 (veorq_s16): Likewise.
17124 (veorq_s32): Likewise.
17125 (veorq_s64): Likewise.
17126 (veorq_u8): Likewise.
17127 (veorq_u16): Likewise.
17128 (veorq_u32): Likewise.
17129 (veorq_u64): Likewise.
17130 (vbic_s8): Likewise.
17131 (vbic_s16): Likewise.
17132 (vbic_s32): Likewise.
17133 (vbic_u8): Likewise.
17134 (vbic_u16): Likewise.
17135 (vbic_u32): Likewise.
17136 (vbic_s64): Likewise.
17137 (vbic_u64): Likewise.
17138 (vbicq_s8): Likewise.
17139 (vbicq_s16): Likewise.
17140 (vbicq_s32): Likewise.
17141 (vbicq_s64): Likewise.
17142 (vbicq_u8): Likewise.
17143 (vbicq_u16): Likewise.
17144 (vbicq_u32): Likewise.
17145 (vbicq_u64): Likewise.
17146 (vorn_s8): Likewise.
17147 (vorn_s16): Likewise.
17148 (vorn_s32): Likewise.
17149 (vorn_u8): Likewise.
17150 (vorn_u16): Likewise.
17151 (vorn_u32): Likewise.
17152 (vorn_s64): Likewise.
17153 (vorn_u64): Likewise.
17154 (vornq_s8): Likewise.
17155 (vornq_s16): Likewise.
17156 (vornq_s32): Likewise.
17157 (vornq_s64): Likewise.
17158 (vornq_u8): Likewise.
17159 (vornq_u16): Likewise.
17160 (vornq_u32): Likewise.
17161 (vornq_u64): Likewise.
17163 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17165 * wide-int.cc (UTItype): Define.
17166 (UDWtype): Define for appropriate W_TYPE_SIZE.
17168 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
17170 PR tree-optimization/59100
17171 * tree-ssa-phiopt.c: Include tree-inline.h.
17172 (neutral_element_p, absorbing_element_p): New functions.
17173 (value_replacement): Handle conditional binary operations with a
17174 neutral or absorbing element.
17176 2014-05-08 Richard Biener <rguenther@suse.de>
17178 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
17179 folding the expression.
17180 (valueize_expr): Remove.
17181 (visit_reference_op_load): Do not valueize the result of
17183 (simplify_binary_expression): Likewise.
17184 (simplify_unary_expression): Likewise.
17186 2014-05-08 Richard Biener <rguenther@suse.de>
17188 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
17189 looking at TYPE_ARG_TYPES.
17191 2014-05-08 Richard Biener <rguenther@suse.de>
17193 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17194 pointer propagation special-case.
17196 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17198 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17199 core part of address expressions.
17201 2014-05-08 Alan Modra <amodra@gmail.com>
17204 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17205 loads and stores when -mno-strict-align at any alignment.
17206 (expand_block_clear): Similarly. Also correct calculation of
17209 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17211 PR middle-end/39246
17212 * tree-complex.c (expand_complex_move): Keep line info when expanding
17214 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17215 of complex expression. Use new argument to display correct location
17216 for values coming from phi statement.
17217 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17218 (warn_uninitialized_phi): Pass location of phi argument to
17220 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17221 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17223 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17225 * config/rs6000/predicates.md (indexed_address_mem): New.
17226 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17227 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17228 fpstore_ux, fpstore_u.
17229 (sign_extend, indexed, update): New.
17230 (cell_micro): Adjust.
17231 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17232 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17233 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17234 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17235 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17236 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17237 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17238 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17239 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17240 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17241 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17242 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17243 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17244 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17245 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17247 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17248 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17249 *vsx_extract_<mode>_store): Adjust.
17250 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17251 is_cracked_insn, insn_must_be_first_in_group,
17252 insn_must_be_last_in_group): Adjust.
17254 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17256 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17257 ppc440-fpstore): Adjust.
17258 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17259 ppc476-fpstore): Adjust.
17260 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17261 ppc601-fpstore): Adjust.
17262 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17264 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17266 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17267 ppc7450-fpstore): Adjust.
17268 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17269 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17270 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17272 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17273 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17274 cell-fpstore, cell-fpstore-update): Adjust.
17275 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17276 ppce300c3_store, ppce300c3_fpstore): Adjust.
17277 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17278 e500mc_fpstore): Adjust.
17279 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17280 e500mc64_store, e500mc64_fpstore): Adjust.
17281 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17282 e5500_fpstore): Adjust.
17283 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17284 e6500_fpstore): Adjust.
17285 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17287 * config/rs6000/power4.md (power4-load, power4-load-ext,
17288 power4-load-ext-update, power4-load-ext-update-indexed,
17289 power4-load-update-indexed, power4-load-update, power4-fpload,
17290 power4-fpload-update, power4-store, power4-store-update,
17291 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17293 * config/rs6000/power5.md (power5-load, power5-load-ext,
17294 power5-load-ext-update, power5-load-ext-update-indexed,
17295 power5-load-update-indexed, power5-load-update, power5-fpload,
17296 power5-fpload-update, power5-store, power5-store-update,
17297 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17299 * config/rs6000/power6.md (power6-load, power6-load-ext,
17300 power6-load-update, power6-load-update-indexed,
17301 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17302 power6-fpload-update, power6-store, power6-store-update,
17303 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17305 * config/rs6000/power7.md (power7-load, power7-load-ext,
17306 power7-load-update, power7-load-update-indexed,
17307 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17308 power7-fpload-update, power7-store, power7-store-update,
17309 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17311 * config/rs6000/power8.md (power8-load, power8-load-update,
17312 power8-load-ext, power8-load-ext-update, power8-fpload,
17313 power8-fpload-update, power8-store, power8-store-update-indexed,
17314 power8-fpstore, power8-fpstore-update): Adjust.
17315 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17317 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17318 titan_lsu_store, titan_lsu_fpstore): Adjust.
17319 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17321 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17324 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17325 unrolled byte insns. Emit address increments after move insns.
17327 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17329 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17330 const_gimple, rather than a gimple.
17331 (gimple_call_builtin_p): Likewise, for the three variants.
17333 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17334 (gimple_call_builtin_p): Likewise, for the three variants.
17336 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17338 PR tree-optimization/61095
17339 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17341 2014-05-07 Richard Biener <rguenther@suse.de>
17343 PR tree-optimization/61034
17344 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17345 (maybe_skip_until): Use translate to take into account
17346 lattices when trying to do disambiguations.
17347 (get_continuation_for_phi_1): Likewise.
17348 (get_continuation_for_phi): Adjust for added translate arguments.
17349 (walk_non_aliased_vuses): Likewise.
17350 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17351 (walk_non_aliased_vuses): Likewise.
17352 (call_may_clobber_ref_p_1): Declare.
17353 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17354 calls. Stop early if we are only supposed to disambiguate.
17355 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17357 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17359 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17360 Emit an error when the function has arguments.
17362 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17364 * cfgloop.h (unswitch_loops): Remove.
17365 * doc/passes.texi: Remove references to loop-unswitch.c
17366 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17368 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17370 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17371 check for loads group of length 3.
17372 (vect_permute_load_chain): New permutations for loads group of
17374 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17375 of vec_perm_shuffle for the new permutations.
17377 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17379 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17380 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17381 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17382 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17383 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17384 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17385 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17386 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17388 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17390 * loop-unswitch.c: Delete.
17392 2014-05-07 Richard Biener <rguenther@suse.de>
17394 * config.gcc: Always set need_64bit_hwint to yes.
17396 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17398 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17399 of using optimize_size.
17401 2014-05-06 Mike Stump <mikestump@comcast.net>
17403 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17405 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17407 * config/i386/sse.md (*mov<mode>_internal)
17408 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17409 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17410 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17411 (*<code><mode>3, *andnot<mode>3<mask_name>)
17412 (<mask_codefor><code><mode>3<mask_name>): Only consider
17413 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17415 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17418 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17420 * lra-constraints.c (valid_address_p): Move earlier in file.
17421 Add a constraint argument to the address_info version.
17422 (satisfies_memory_constraint_p): New function.
17423 (satisfies_address_constraint_p): Likewise.
17424 (process_alt_operands, curr_insn_transform): Use them.
17425 (process_address): Pass the constraint to valid_address_p when
17426 checking address operands.
17428 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17430 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17431 to their respective blocks. Fix inadvertent use of "node".
17433 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17435 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17437 (init_emit_once): ...here.
17438 * rtl.h (init_derived_machine_modes): Declare.
17439 * toplev.c (do_compile): Call it even if no_backend.
17441 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17442 Mike Stump <mikestump@comcast.net>
17443 Richard Sandiford <rdsandiford@googlemail.com>
17444 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17446 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17447 (rtx_equal_for_memref_p): Update comment.
17448 (adjust_offset_for_component_ref): Use wide-int interfaces.
17449 * builtins.c (get_object_alignment_2): Likewise.
17450 (c_readstr): Likewise.
17451 (target_char_cast): Add comment.
17452 (determine_block_size): Use wide-int interfaces.
17453 (expand_builtin_signbit): Likewise.
17454 (fold_builtin_int_roundingfn): Likewise.
17455 (fold_builtin_bitop): Likewise.
17456 (fold_builtin_bswap): Likewise.
17457 (fold_builtin_logarithm): Use signop.
17458 (fold_builtin_pow): Likewise.
17459 (fold_builtin_memory_op): Use wide-int interfaces.
17460 (fold_builtin_object_size): Likewise.
17461 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17462 nb_iterations_estimate.
17463 (record_niter_bound): Use wide-int interfaces.
17464 (get_estimated_loop_iterations_int): Likewise.
17465 (get_estimated_loop_iterations): Likewise.
17466 (get_max_loop_iterations): Likewise.
17467 * cfgloop.h: Include wide-int.h.
17468 (struct nb_iter_bound): Change bound to widest_int.
17469 (struct loop): Change nb_iterations_upper_bound and
17470 nb_iterations_estimate to widest_int.
17471 (record_niter_bound): Switch to use widest_int.
17472 (get_estimated_loop_iterations): Likewise.
17473 (get_max_loop_iterations): Likewise.
17474 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17475 update for wide-int.
17476 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17477 * combine.c (try_combine): Likewise.
17478 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17479 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17481 (aarch64_float_const_representable_p): Likewise.
17482 * config/arc/arc.c: Include wide-int.h.
17483 (arc_can_use_doloop_p): Use wide-int interfaces.
17484 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17485 (vfp3_const_double_index): Likewise.
17486 * config/avr/avr.c (avr_out_round): Likewise.
17487 (avr_fold_builtin): Likewise.
17488 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17489 (bfin_can_use_doloop_p): Likewise.
17490 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17491 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17492 * config/i386/i386.c: Include wide-int.h.
17493 (ix86_data_alignment): Use wide-int interfaces.
17494 (ix86_local_alignment): Likewise.
17495 (ix86_emit_swsqrtsf): Update real_from_integer.
17496 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17497 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17498 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17499 (zero_constant): Likewise.
17500 (input_operand): Likewise.
17501 (splat_input_operand): Likewise.
17502 (non_logical_cint_operand): Change const_double to const_wide_int.
17503 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17504 (easy_altivec_constant): Remove comment.
17505 (paired_expand_vector_init): Use CONSTANT_P.
17506 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17507 (rs6000_emit_move): Update checks.
17508 (rs6000_aggregate_candidate): Use wide-int interfaces.
17509 (rs6000_expand_ternop_builtin): Likewise.
17510 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17511 (rs6000_assemble_integer): Likewise.
17512 (rs6000_hash_constant): Likewise.
17513 (output_toc): Likewise.
17514 (rs6000_rtx_costs): Likewise.
17515 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17516 * config/rs6000/rs6000-c.c: Include wide-int.h.
17517 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17518 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17519 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17520 Handle CONST_WIDE_INT.
17521 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17522 Use tree_fits_uhwi_p.
17523 * config/sparc/sparc.c: Include wide-int.h.
17524 (sparc_fold_builtin): Use wide-int interfaces.
17525 * config/vax/vax.c: Include wide-int.h.
17526 (vax_float_literal): Use real_from_integer.
17527 * coretypes.h (struct hwivec_def): New.
17529 (const_hwivec): New.
17530 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17531 (equiv_constant): Handle CONST_WIDE_INT.
17532 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17533 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17534 * dbxout.c (stabstr_U): Use wide-int interfaces.
17535 (dbxout_type): Update to use cst_fits_shwi_p.
17536 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17537 (TARGET_SUPPORTS_WIDE_INT): Add default.
17538 * dfp.c: Include wide-int.h.
17539 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17540 decimal_real_to_integer.
17541 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17542 decimal_real_to_integer.
17543 * doc/generic.texi (Constant expressions): Update for wide_int.
17544 * doc/rtl.texi (const_double): Likewise.
17545 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17546 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17547 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17548 (REAL_VALUE_FROM_INT): Remove.
17549 (TARGET_SUPPORTS_WIDE_INT): New.
17550 * doc/tm.texi: Regenerate.
17551 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17552 * double-int.h: Include wide-int.h.
17553 (struct wi::int_traits): New.
17554 * dwarf2out.c (get_full_len): New.
17555 (dw_val_equal_p): Add case dw_val_class_wide_int.
17556 (size_of_loc_descr): Likewise.
17557 (output_loc_operands): Likewise.
17558 (insert_double): Remove.
17559 (insert_wide_int): New.
17560 (add_AT_wide): New.
17561 (print_die): Add case dw_val_class_wide_int.
17562 (attr_checksum): Likewise.
17563 (attr_checksum_ordered): Likewise.
17564 (same_dw_val_p): Likewise.
17565 (size_of_die): Likewise.
17566 (value_format): Likewise.
17567 (output_die): Likewise.
17568 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17570 (clz_loc_descriptor): Use wide-int interfaces.
17571 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17572 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17573 (round_up_to_align): Use wide-int interfaces.
17574 (field_byte_offset): Likewise.
17575 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17576 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17577 CONST_DOUBLE handling. Use wide-int interfaces.
17578 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17579 (gen_enumeration_type_die): Use add_AT_wide.
17580 (hash_loc_operands): Add case dw_val_class_wide_int.
17581 (compare_loc_operands): Likewise.
17582 * dwarf2out.h: Include wide-int.h.
17583 (wide_int_ptr): New.
17584 (enum dw_val_class): Add dw_val_class_wide_int.
17585 (struct dw_val_struct): Add val_wide.
17586 * emit-rtl.c (const_wide_int_htab): New.
17587 (const_wide_int_htab_hash): New.
17588 (const_wide_int_htab_eq): New.
17589 (lookup_const_wide_int): New.
17590 (const_double_htab_hash): Use wide-int interfaces.
17591 (const_double_htab_eq): Likewise.
17592 (rtx_to_double_int): Conditionally compile for wide-int.
17593 (immed_double_int_const): Rename to immed_wide_int_const and
17594 update for wide-int.
17595 (immed_double_const): Conditionally compile for wide-int.
17596 (init_emit_once): Use wide-int interfaces.
17597 * explow.c (plus_constant): Likewise.
17598 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17599 (lshift_value): Use wide-int interfaces.
17600 (expand_mult): Likewise.
17601 (choose_multiplier): Likewise.
17602 (expand_smod_pow2): Likewise.
17603 (make_tree): Likewise.
17604 * expr.c (convert_modes): Consolidate handling of constants.
17605 Use wide-int interfaces.
17606 (emit_group_load_1): Add note.
17607 (store_expr): Update comment.
17608 (get_inner_reference): Use wide-int interfaces.
17609 (expand_constructor): Update comment.
17610 (expand_expr_real_2): Use wide-int interfaces.
17611 (expand_expr_real_1): Likewise.
17612 (reduce_to_bit_field_precision): Likewise.
17613 (const_vector_from_tree): Likewise.
17614 * final.c: Include wide-int-print.h.
17615 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17616 * fixed-value.c: Include wide-int.h.
17617 (fixed_from_string): Use wide-int interfaces.
17618 (fixed_to_decimal): Likewise.
17619 (fixed_convert_from_real): Likewise.
17620 (real_convert_from_fixed): Likewise.
17621 * fold-const.h (mem_ref_offset): Return an offset_int.
17622 (div_if_zero_remainder): Remove code parameter.
17623 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17624 Use wide-int interfaces.
17625 (may_negate_without_overflow_p): Use wide-int interfaces.
17626 (negate_expr_p): Likewise.
17627 (fold_negate_expr): Likewise.
17628 (int_const_binop_1): Likewise.
17629 (const_binop): Likewise.
17630 (fold_convert_const_int_from_int): Likewise.
17631 (fold_convert_const_int_from_real): Likewise.
17632 (fold_convert_const_int_from_fixed): Likewise.
17633 (fold_convert_const_fixed_from_int): Likewise.
17634 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17635 (sign_bit_p): Use wide-int interfaces.
17636 (make_range_step): Likewise.
17637 (build_range_check): Likewise. Pass an integer of the correct type
17638 instead of using integer_one_node.
17639 (range_predecessor): Pass an integer of the correct type instead
17640 of using integer_one_node.
17641 (range_successor): Likewise.
17642 (merge_ranges): Likewise.
17643 (unextend): Use wide-int interfaces.
17644 (extract_muldiv_1): Likewise.
17645 (fold_div_compare): Likewise.
17646 (fold_single_bit_test): Likewise.
17647 (fold_sign_changed_comparison): Likewise.
17648 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17649 (fold_plusminus_mult_expr): Use wide-int interfaces.
17650 (native_encode_int): Likewise.
17651 (native_interpret_int): Likewise.
17652 (fold_unary_loc): Likewise.
17653 (pointer_may_wrap_p): Likewise.
17654 (size_low_cst): Likewise.
17655 (mask_with_tz): Likewise.
17656 (fold_binary_loc): Likewise.
17657 (fold_ternary_loc): Likewise.
17658 (multiple_of_p): Likewise.
17659 (tree_call_nonnegative_warnv_p): Update calls to
17660 tree_int_cst_min_precision and real_from_integer.
17661 (fold_negate_const): Use wide-int interfaces.
17662 (fold_abs_const): Likewise.
17663 (fold_relational_const): Use tree_int_cst_lt.
17664 (round_up_loc): Use wide-int interfaces.
17665 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17666 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17667 * gengtype.c: Remove include of double-int.h.
17668 (do_typedef): Use wide-int interfaces.
17669 (open_base_files): Add wide-int.h.
17670 (main): Add offset_int and widest_int typedefs.
17671 * gengtype-lex.l: Handle "^".
17672 (CXX_KEYWORD): Add "static".
17673 * gengtype-parse.c (require3): New.
17674 (require_template_declaration): Handle constant template arguments
17675 and nested templates.
17676 * gengtype-state.c: Don't include "double-int.h".
17677 * genpreds.c (write_one_predicate_function): Update comment.
17678 (write_tm_constrs_h): Add check for hval and lval use in
17680 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17681 (add_to_sequence): Likewise.
17682 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17683 and const_double_operand.
17684 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17686 * gimple-fold.c (get_base_constructor): Likewise.
17687 (fold_array_ctor_reference): Likewise.
17688 (fold_nonarray_ctor_reference): Likewise.
17689 (fold_const_aggregate_ref_1): Likewise.
17690 (gimple_val_nonnegative_real_p): Likewise.
17691 (gimple_fold_indirect_ref): Likewise.
17692 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17693 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17694 (struct slsr_cand_d): Change index to be widest_int.
17695 (struct incr_info_d): Change incr to be widest_int.
17696 (alloc_cand_and_find_basis): Use wide-int interfaces.
17697 (slsr_process_phi): Likewise.
17698 (backtrace_base_for_ref): Likewise. Return a widest_int.
17699 (restructure_reference): Take a widest_int instead of a double_int.
17700 (slsr_process_ref): Use wide-int interfaces.
17701 (create_mul_ssa_cand): Likewise.
17702 (create_mul_imm_cand): Likewise.
17703 (create_add_ssa_cand): Likewise.
17704 (create_add_imm_cand): Take a widest_int instead of a double_int.
17705 (slsr_process_add): Use wide-int interfaces.
17706 (slsr_process_cast): Likewise.
17707 (slsr_process_copy): Likewise.
17708 (dump_candidate): Likewise.
17709 (dump_incr_vec): Likewise.
17710 (replace_ref): Likewise.
17711 (cand_increment): Likewise. Return a widest_int.
17712 (cand_abs_increment): Likewise.
17713 (replace_mult_candidate): Take a widest_int instead of a double_int.
17714 (replace_unconditional_candidate): Use wide-int interfaces.
17715 (incr_vec_index): Take a widest_int instead of a double_int.
17716 (create_add_on_incoming_edge): Likewise.
17717 (create_phi_basis): Use wide-int interfaces.
17718 (replace_conditional_candidate): Likewise.
17719 (record_increment): Take a widest_int instead of a double_int.
17720 (record_phi_increments): Use wide-int interfaces.
17721 (phi_incr_cost): Take a widest_int instead of a double_int.
17722 (lowest_cost_path): Likewise.
17723 (total_savings): Likewise.
17724 (analyze_increments): Use wide-int interfaces.
17725 (ncd_with_phi): Take a widest_int instead of a double_int.
17726 (ncd_of_cand_and_phis): Likewise.
17727 (nearest_common_dominator_for_cands): Likewise.
17728 (insert_initializers): Use wide-int interfaces.
17729 (all_phi_incrs_profitable): Likewise.
17730 (replace_one_candidate): Likewise.
17731 (replace_profitable_candidates): Likewise.
17732 * godump.c: Include wide-int-print.h.
17733 (go_output_typedef): Use wide-int interfaces.
17734 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17735 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17736 (build_loop_iteration_domains): Likewise.
17737 * hooks.h: Include wide-int.h rather than double-int.h.
17738 (hook_bool_dint_dint_uint_bool_true): Delete.
17739 (hook_bool_wint_wint_uint_bool_true): Declare.
17740 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17741 (hook_bool_wint_wint_uint_bool_true): New.
17742 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17744 (ubsan_expand_si_overflow_mul_check): Likewise.
17745 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17746 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17747 (get_ancestor_addr_info): Likewise.
17748 (ipa_modify_call_arguments): Likewise.
17749 * loop-doloop.c (doloop_modify): Likewise.
17750 (doloop_optimize): Likewise.
17751 * loop-iv.c (iv_number_of_iterations): Likewise.
17752 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17753 (unroll_loop_constant_iterations): Likewise.
17754 (decide_unroll_runtime_iterations): Likewise.
17755 (unroll_loop_runtime_iterations): Likewise.
17756 (decide_peel_simple): Likewise.
17757 (decide_unroll_stupid): Likewise.
17758 * lto-streamer-in.c (streamer_read_wi): Add.
17759 (input_cfg): Use wide-int interfaces.
17760 (lto_input_tree_1): Likewise.
17761 * lto-streamer-out.c (streamer_write_wi): Add.
17762 (hash_tree): Use wide-int interfaces.
17763 (output_cfg): Likewise.
17764 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17765 (GTFILES): Add wide-int.h and signop.h.
17766 (TAGS): Look for .cc files too.
17767 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17768 * optabs.c (expand_subword_shift): Likewise.
17769 (expand_doubleword_shift): Likewise.
17770 (expand_absneg_bit): Likewise.
17771 (expand_copysign_absneg): Likewise.
17772 (expand_copysign_bit): Likewise.
17773 * postreload.c (reload_cse_simplify_set): Likewise.
17774 * predict.c (predict_iv_comparison): Likewise.
17775 * pretty-print.h: Include wide-int-print.h.
17777 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17778 * print-tree.c: Include wide-int-print.h.
17779 (print_node_brief): Use wide-int interfaces.
17780 (print_node): Likewise.
17781 * read-rtl.c (validate_const_wide_int): New.
17782 (read_rtx_code): Add CONST_WIDE_INT case.
17783 * real.c: Include wide-int.h.
17784 (real_to_integer2): Delete.
17785 (real_to_integer): New function, returning a wide_int.
17786 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17787 (ten_to_ptwo): Update call to real_from_integer.
17788 (real_digit): Likewise.
17789 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17790 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17791 (REAL_VALUE_TO_INT): Delete.
17792 (real_to_integer): Declare a wide-int form.
17793 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17794 * recog.c (const_int_operand): Improve comment.
17795 (const_scalar_int_operand): New.
17796 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17797 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17798 (split_double): Likewise.
17799 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17800 (rtx_size): Likewise.
17801 (rtx_alloc_stat_v): New.
17802 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17803 (cwi_output_hex): New.
17804 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17805 (cwi_check_failed_bounds): New.
17806 * rtl.def (CONST_WIDE_INT): New.
17807 * rtl.h: Include <utility> and wide-int.h.
17808 (struct hwivec_def): New.
17809 (CWI_GET_NUM_ELEM): New.
17810 (CWI_PUT_NUM_ELEM): New.
17811 (struct rtx_def): Add num_elem and hwiv.
17812 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17813 (CASE_CONST_UNIQUE): Likewise.
17814 (CASE_CONST_ANY): Likewise.
17815 (CONST_SCALAR_INT_P): Likewise.
17816 (CONST_WIDE_INT_P): New.
17818 (HWIVEC_CHECK): New.
17819 (cwi_check_failed_bounds): New.
17821 (HWIVEC_CHECK): New.
17822 (CONST_WIDE_INT_VEC) New.
17823 (CONST_WIDE_INT_NUNITS) New.
17824 (CONST_WIDE_INT_ELT) New.
17825 (rtx_mode_t): New type.
17826 (wi::int_traits <rtx_mode_t>): New.
17828 (wi::min_value): New.
17829 (wi::max_value): New.
17831 (const_wide_int_alloc): New.
17832 (immed_wide_int_const): New.
17833 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17834 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17835 * signop.h: New file.
17836 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17837 (simplify_const_unary_operation): Use wide-int interfaces.
17838 (simplify_binary_operation_1): Likewise.
17839 (simplify_const_binary_operation): Likewise.
17840 (simplify_const_relational_operation): Likewise.
17841 (simplify_immed_subreg): Likewise.
17842 * stmt.c (expand_case): Likewise.
17843 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17844 signop rather than a bool.
17845 * stor-layout.c (layout_type): Use wide-int interfaces.
17846 (initialize_sizetypes): Update calls to
17847 set_min_and_max_values_for_integral_type.
17848 (set_min_and_max_values_for_integral_type): Take a signop rather
17849 than a bool. Use wide-int interfaces.
17850 (fixup_signed_type): Update accordingly. Remove
17851 HOST_BITS_PER_DOUBLE_INT limit.
17852 (fixup_unsigned_type): Likewise.
17853 * system.h (STATIC_CONSTANT_P): New.
17854 (STATIC_ASSERT): New.
17855 * target.def (can_use_doloop_p): Take widest_ints rather than
17857 * target.h: Include wide-int.h rather than double-int.h.
17858 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17860 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17861 rather than INT_CST_LT_UNSIGNED.
17862 (can_use_doloop_if_innermost): Take widest_ints rather than
17864 * tree-affine.c: Include wide-int-print.h.
17865 (double_int_ext_for_comb): Delete.
17866 (wide_int_ext_for_comb): New.
17867 (aff_combination_zero): Use wide-int interfaces.
17868 (aff_combination_const): Take a widest_int instead of a double_int.
17869 (aff_combination_elt): Use wide-int interfaces.
17870 (aff_combination_scale): Take a widest_int instead of a double_int.
17871 (aff_combination_add_elt): Likewise.
17872 (aff_combination_add_cst): Likewise.
17873 (aff_combination_add): Use wide-int interfaces.
17874 (aff_combination_convert): Likewise.
17875 (tree_to_aff_combination): Likewise.
17876 (add_elt_to_tree): Take a widest_int instead of a double_int.
17877 (aff_combination_to_tree): Use wide-int interfaces.
17878 (aff_combination_remove_elt): Likewise.
17879 (aff_combination_add_product): Take a widest_int instead of
17881 (aff_combination_mult): Use wide-int interfaces.
17882 (aff_combination_expand): Likewise.
17883 (double_int_constant_multiple_p): Delete.
17884 (wide_int_constant_multiple_p): New.
17885 (aff_combination_constant_multiple_p): Take a widest_int pointer
17886 instead of a double_int pointer.
17887 (print_aff): Use wide-int interfaces.
17888 (get_inner_reference_aff): Take a widest_int pointer
17889 instead of a double_int pointer.
17890 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17891 * tree-affine.h: Include wide-int.h.
17892 (struct aff_comb_elt): Change type of coef to widest_int.
17893 (struct affine_tree_combination): Change type of offset to widest_int.
17894 (double_int_ext_for_comb): Delete.
17895 (wide_int_ext_for_comb): New.
17896 (aff_combination_const): Use widest_int instead of double_int.
17897 (aff_combination_scale): Likewise.
17898 (aff_combination_add_elt): Likewise.
17899 (aff_combination_constant_multiple_p): Likewise.
17900 (get_inner_reference_aff): Likewise.
17901 (aff_comb_cannot_overlap_p): Likewise.
17902 (aff_combination_zero_p): Use wide-int interfaces.
17903 * tree.c: Include tree.h.
17904 (init_ttree): Use make_int_cst.
17905 (tree_code_size): Removed code for INTEGER_CST case.
17906 (tree_size): Add INTEGER_CST case.
17907 (make_node_stat): Update comment.
17908 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17909 (build_int_cst_type): Use wide-int interfaces.
17910 (double_int_to_tree): Likewise.
17911 (double_int_fits_to_tree_p): Delete.
17912 (force_fit_type_double): Delete.
17913 (force_fit_type): New.
17914 (int_cst_hash_hash): Use wide-int interfaces.
17915 (int_cst_hash_eq): Likewise.
17916 (build_int_cst_wide): Delete.
17917 (wide_int_to_tree): New.
17918 (cache_integer_cst): Use wide-int interfaces.
17919 (build_low_bits_mask): Likewise.
17920 (cst_and_fits_in_hwi): Likewise.
17921 (real_value_from_int_cst): Likewise.
17922 (make_int_cst_stat): New.
17923 (integer_zerop): Use wide_int interfaces.
17924 (integer_onep): Likewise.
17925 (integer_all_onesp): Likewise.
17926 (integer_pow2p): Likewise.
17927 (integer_nonzerop): Likewise.
17928 (tree_log2): Likewise.
17929 (tree_floor_log2): Likewise.
17930 (tree_ctz): Likewise.
17931 (int_size_in_bytes): Likewise.
17932 (mem_ref_offset): Return an offset_int rather than a double_int.
17933 (build_type_attribute_qual_variant): Use wide_int interfaces.
17934 (type_hash_eq): Likewise
17935 (tree_int_cst_equal): Likewise.
17936 (tree_int_cst_lt): Delete.
17937 (tree_int_cst_compare): Likewise.
17938 (tree_fits_shwi_p): Use wide_int interfaces.
17939 (tree_fits_uhwi_p): Likewise.
17940 (tree_int_cst_sign_bit): Likewise.
17941 (tree_int_cst_sgn): Likewise.
17942 (tree_int_cst_min_precision): Take a signop rather than a bool.
17943 (simple_cst_equal): Use wide_int interfaces.
17944 (compare_tree_int): Likewise.
17945 (iterative_hash_expr): Likewise.
17946 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17948 (get_type_static_bounds): Use wide_int interfaces.
17949 (tree_int_cst_elt_check_failed): New.
17950 (build_common_tree_nodes): Reordered to set prec before filling in
17952 (int_cst_value): Check cst_and_fits_in_hwi.
17953 (widest_int_cst_value): Use wide_int interfaces.
17954 (upper_bound_in_type): Likewise.
17955 (lower_bound_in_type): Likewise.
17956 (num_ending_zeros): Likewise.
17957 (drop_tree_overflow): Likewise.
17958 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17959 (gen_conditions_for_pow_cst_base): Likewise.
17960 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17961 (group_case_labels_stmt): Use wide-int interfaces.
17962 (verify_gimple_assign_binary): Likewise.
17963 (print_loop): Likewise.
17964 * tree-chrec.c (tree_fold_binomial): Likewise.
17965 * tree-core.h (struct tree_base): Add int_length.
17966 (struct tree_int_cst): Change rep of value.
17967 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17968 (dr_may_alias_p): Likewise.
17969 (max_stmt_executions_tree): Likewise.
17970 * tree.def (INTEGER_CST): Update comment.
17971 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17972 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17973 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17974 (dequeue_and_dump): Use wide-int interfaces.
17975 * tree.h: Include wide-int.h.
17976 (NULL_TREE): Moved to earlier loc in file.
17977 (TREE_INT_CST_ELT_CHECK): New.
17978 (tree_int_cst_elt_check_failed): New.
17980 (TREE_INT_CST): Delete.
17981 (TREE_INT_CST_LOW): Use wide-int interfaces.
17982 (TREE_INT_CST_HIGH): Delete.
17983 (TREE_INT_CST_NUNITS): New.
17984 (TREE_INT_CST_EXT_NUNITS): Likewise.
17985 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17986 (TREE_INT_CST_ELT): Likewise.
17987 (INT_CST_LT): Delete.
17988 (tree_int_cst_elt_check): New (two forms).
17989 (type_code_size): Update comment.
17990 (make_int_cst_stat, make_int_cst): New.
17991 (tree_to_double_int): Delete.
17992 (double_int_fits_to_tree_p): Delete.
17993 (force_fit_type_double): Delete.
17994 (build_int_cstu): Replace with out-of-line function.
17995 (build_int_cst_wide): Delete.
17996 (tree_int_cst_lt): Define inline.
17997 (tree_int_cst_le): New.
17998 (tree_int_cst_compare): Define inline.
17999 (tree_int_cst_min_precision): Take a signop rather than a bool.
18000 (wi::int_traits <const_tree>): New.
18001 (wi::int_traits <tree>): New.
18002 (wi::extended_tree): New.
18003 (wi::int_traits <wi::extended_tree>): New.
18004 (wi::to_widest): New.
18005 (wi::to_offset): New.
18006 (wi::fits_to_tree_p): New.
18007 (wi::min_value): New.
18008 (wi::max_value): New.
18009 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
18010 (copy_tree_body_r): Likewise.
18011 * tree-object-size.c (compute_object_offset): Likewise.
18012 (addr_object_size): Likewise.
18013 * tree-predcom.c: Include wide-int-print.h.
18014 (struct dref_d): Change type of offset to widest_int.
18015 (dump_dref): Call wide-int printer.
18016 (aff_combination_dr_offset): Use wide-int interfaces.
18017 (determine_offset): Take a widest_int pointer rather than a
18018 double_int pointer.
18019 (split_data_refs_to_components): Use wide-int interfaces.
18020 (suitable_component_p): Likewise.
18021 (order_drefs): Likewise.
18022 (add_ref_to_chain): Likewise.
18023 (valid_initializer_p): Likewise.
18024 (determine_roots_comp): Likewise.
18025 * tree-pretty-print.c: Include wide-int-print.h.
18026 (dump_generic_node): Use wide-int interfaces.
18027 * tree-sra.c (sra_ipa_modify_expr): Likewise.
18028 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
18029 (move_fixed_address_to_symbol): Likewise.
18030 (move_hint_to_base): Likewise.
18031 (move_pointer_to_base): Likewise.
18032 (move_variant_to_index): Likewise.
18033 (most_expensive_mult_to_index): Likewise.
18034 (addr_to_parts): Likewise.
18035 (copy_ref_info): Likewise.
18036 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
18037 (indirect_refs_may_alias_p): Likewise.
18038 (stmt_kills_ref_p_1): Likewise.
18039 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
18040 * tree-ssa-ccp.c: Update comment at top of file. Include
18042 (struct prop_value_d): Change type of mask to widest_int.
18043 (extend_mask): New function.
18044 (dump_lattice_value): Use wide-int interfaces.
18045 (get_default_value): Likewise.
18046 (set_constant_value): Likewise.
18047 (set_value_varying): Likewise.
18048 (valid_lattice_transition): Likewise.
18049 (set_lattice_value): Likewise.
18050 (value_to_double_int): Delete.
18051 (value_to_wide_int): New.
18052 (get_value_from_alignment): Use wide-int interfaces.
18053 (get_value_for_expr): Likewise.
18054 (do_dbg_cnt): Likewise.
18055 (ccp_finalize): Likewise.
18056 (ccp_lattice_meet): Likewise.
18057 (bit_value_unop_1): Use widest_ints rather than double_ints.
18058 (bit_value_binop_1): Likewise.
18059 (bit_value_unop): Use wide-int interfaces.
18060 (bit_value_binop): Likewise.
18061 (bit_value_assume_aligned): Likewise.
18062 (evaluate_stmt): Likewise.
18063 (ccp_fold_stmt): Likewise.
18064 (visit_cond_stmt): Likewise.
18065 (ccp_visit_stmt): Likewise.
18066 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
18067 (constant_pointer_difference): Likewise.
18068 (associate_pointerplus): Likewise.
18069 (combine_conversions): Likewise.
18070 * tree-ssa-loop.h: Include wide-int.h.
18071 (struct tree_niter_desc): Change type of max to widest_int.
18072 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
18073 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
18074 (remove_redundant_iv_tests): Likewise.
18075 (canonicalize_loop_induction_variables): Likewise.
18076 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
18077 (constant_multiple_of): Take a widest_int pointer instead of
18078 a double_int pointer.
18079 (get_computation_aff): Use wide-int interfaces.
18080 (ptr_difference_cost): Likewise.
18081 (difference_cost): Likewise.
18082 (get_loop_invariant_expr_id): Likewise.
18083 (get_computation_cost_at): Likewise.
18084 (iv_elimination_compare_lt): Likewise.
18085 (may_eliminate_iv): Likewise.
18086 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
18087 instead of double_int.
18088 (max_loop_iterations): Likewise.
18089 (max_stmt_executions): Likewise.
18090 (estimated_stmt_executions): Likewise.
18091 * tree-ssa-loop-niter.c: Include wide-int-print.h.
18092 (split_to_var_and_offset): Use wide-int interfaces.
18093 (determine_value_range): Likewise.
18094 (bound_difference_of_offsetted_base): Likewise.
18095 (bounds_add): Take a widest_int instead of a double_int.
18096 (number_of_iterations_ne_max): Use wide-int interfaces.
18097 (number_of_iterations_ne): Likewise.
18098 (number_of_iterations_lt_to_ne): Likewise.
18099 (assert_loop_rolls_lt): Likewise.
18100 (number_of_iterations_lt): Likewise.
18101 (number_of_iterations_le): Likewise.
18102 (number_of_iterations_cond): Likewise.
18103 (number_of_iterations_exit): Likewise.
18104 (finite_loop_p): Likewise.
18105 (derive_constant_upper_bound_assign): Likewise.
18106 (derive_constant_upper_bound): Return a widest_int.
18107 (derive_constant_upper_bound_ops): Likewise.
18108 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
18109 (record_estimate): Take a widest_int rather than a double_int.
18110 (record_nonwrapping_iv): Use wide-int interfaces.
18111 (double_int_cmp): Delete.
18112 (wide_int_cmp): New.
18113 (bound_index): Take a widest_int rather than a double_int.
18114 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
18115 (maybe_lower_iteration_bound): Likewise.
18116 (estimate_numbers_of_iterations_loop): Likewise.
18117 (estimated_loop_iterations): Take a widest_int pointer than than
18118 a double_int pointer.
18119 (estimated_loop_iterations_int): Use wide-int interfaces.
18120 (max_loop_iterations): Take a widest_int pointer than than
18121 a double_int pointer.
18122 (max_loop_iterations_int): Use wide-int interfaces.
18123 (max_stmt_executions): Take a widest_int pointer than than
18124 a double_int pointer.
18125 (estimated_stmt_executions): Likewise.
18126 (n_of_executions_at_most): Use wide-int interfaces.
18127 (scev_probably_wraps_p): Likewise.
18128 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
18129 to real_to_integer.
18130 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
18132 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
18133 double_ints. Adjust for trailing_wide_ints <3> representation.
18134 (set_nonzero_bits): Likewise.
18135 (get_range_info): Return wide_ints rather than double_ints.
18136 Adjust for trailing_wide_ints <3> representation.
18137 (get_nonzero_bits): Likewise.
18138 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
18140 * tree-ssanames.h (struct range_info_def): Replace min, max and
18141 nonzero_bits with a trailing_wide_ints <3>.
18142 (set_range_info): Use wide_int_refs rather than double_ints.
18143 (set_nonzero_bits): Likewise.
18144 (get_range_info): Return wide_ints rather than double_ints.
18145 (get_nonzero_bits): Likewise.
18146 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
18147 * tree-ssa-pre.c (phi_translate_1): Likewise.
18148 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
18149 (acceptable_pow_call): Likewise.
18150 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
18152 (vn_reference_fold_indirect): Likewise.
18153 (vn_reference_maybe_forwprop_address): Likewise.
18154 (valueize_refs_1): Likewise.
18155 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
18156 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
18157 tree_int_cst_lt and tree_int_cst_le.
18158 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
18160 (streamer_alloc_tree): Likewise.
18161 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
18162 (streamer_write_tree_header): Likewise.
18163 (streamer_write_integer_cst): Likewise.
18164 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18165 (build_constructors): Likewise.
18166 (array_value_type): Likewise.
18167 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
18168 (vect_check_gather): Likewise.
18169 * tree-vect-generic.c (build_replicated_const): Likewise.
18170 (expand_vector_divmod): Likewise.
18171 * tree-vect-loop.c (vect_transform_loop): Likewise.
18172 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
18173 (vect_do_peeling_for_alignment): Likewise.
18174 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
18175 * tree-vrp.c: Include wide-int.h.
18176 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
18177 (extract_range_from_assert): Use wide-int interfaces.
18178 (vrp_int_const_binop): Likewise.
18179 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
18180 double_int pointers.
18181 (ranges_from_anti_range): Use wide-int interfaces.
18182 (quad_int_cmp): Delete.
18183 (quad_int_pair_sort): Likewise.
18184 (extract_range_from_binary_expr_1): Use wide-int interfaces.
18185 (extract_range_from_unary_expr_1): Likewise.
18186 (adjust_range_with_scev): Likewise.
18187 (masked_increment): Take and return wide_ints rather than double_ints.
18188 (register_edge_assert_for_2): Use wide-int interfaces.
18189 (check_array_ref): Likewise.
18190 (search_for_addr_array): Likewise.
18191 (maybe_set_nonzero_bits): Likewise.
18192 (union_ranges): Pass an integer of the correct type instead of
18193 using integer_one_node.
18194 (intersect_ranges): Likewise.
18195 (simplify_truth_ops_using_ranges): Likewise.
18196 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18197 (range_fits_type_p): Likewise.
18198 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18200 (simplify_conversion_using_ranges): Use wide-int interfaces.
18201 (simplify_float_conversion_using_ranges): Likewise.
18202 (vrp_finalize): Likewise.
18203 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18204 (gimple_stringops_transform): Likewise.
18205 * varasm.c (decode_addr_const): Likewise.
18206 (const_hash_1): Likewise.
18207 (const_rtx_hash_1): Likewise
18208 (output_constant): Likewise.
18209 (array_size_for_constructor): Likewise.
18210 (output_constructor_regular_field): Likewise.
18211 (output_constructor_bitfield): Likewise.
18212 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18213 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18215 * gencheck.c: Define BITS_PER_UNIT.
18216 * wide-int.cc: New.
18218 * wide-int-print.cc: New.
18219 * wide-int-print.h: New.
18221 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18223 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18225 2014-05-06 Richard Biener <rguenther@suse.de>
18227 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18228 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18229 (TODO_verify_all): Adjust.
18230 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18231 TODO_verify_stmts and TODO_verify_rtl_sharing.
18232 * bb-reorder.c: Likewise.
18233 * cfgexpand.c: Likewise.
18234 * cprop.c: Likewise.
18236 * function.c: Likewise.
18237 * fwprop.c: Likewise.
18238 * gcse.c: Likewise.
18239 * gimple-ssa-isolate-paths.c: Likewise.
18240 * gimple-ssa-strength-reduction.c: Likewise.
18241 * ipa-split.c: Likewise.
18242 * loop-init.c: Likewise.
18243 * loop-unroll.c: Likewise.
18244 * lower-subreg.c: Likewise.
18245 * modulo-sched.c: Likewise.
18246 * postreload-gcse.c: Likewise.
18247 * predict.c: Likewise.
18248 * recog.c: Likewise.
18249 * sched-rgn.c: Likewise.
18250 * store-motion.c: Likewise.
18251 * tracer.c: Likewise.
18252 * trans-mem.c: Likewise.
18253 * tree-call-cdce.c: Likewise.
18254 * tree-cfg.c: Likewise.
18255 * tree-cfgcleanup.c: Likewise.
18256 * tree-complex.c: Likewise.
18257 * tree-eh.c: Likewise.
18258 * tree-emutls.c: Likewise.
18259 * tree-if-conv.c: Likewise.
18260 * tree-into-ssa.c: Likewise.
18261 * tree-loop-distribution.c: Likewise.
18262 * tree-object-size.c: Likewise.
18263 * tree-parloops.c: Likewise.
18264 * tree-pass.h: Likewise.
18265 * tree-sra.c: Likewise.
18266 * tree-ssa-ccp.c: Likewise.
18267 * tree-ssa-copy.c: Likewise.
18268 * tree-ssa-copyrename.c: Likewise.
18269 * tree-ssa-dce.c: Likewise.
18270 * tree-ssa-dom.c: Likewise.
18271 * tree-ssa-dse.c: Likewise.
18272 * tree-ssa-forwprop.c: Likewise.
18273 * tree-ssa-ifcombine.c: Likewise.
18274 * tree-ssa-loop-ch.c: Likewise.
18275 * tree-ssa-loop-ivcanon.c: Likewise.
18276 * tree-ssa-loop.c: Likewise.
18277 * tree-ssa-math-opts.c: Likewise.
18278 * tree-ssa-phiopt.c: Likewise.
18279 * tree-ssa-phiprop.c: Likewise.
18280 * tree-ssa-pre.c: Likewise.
18281 * tree-ssa-reassoc.c: Likewise.
18282 * tree-ssa-sink.c: Likewise.
18283 * tree-ssa-strlen.c: Likewise.
18284 * tree-ssa-tail-merge.c: Likewise.
18285 * tree-ssa-uncprop.c: Likewise.
18286 * tree-switch-conversion.c: Likewise.
18287 * tree-tailcall.c: Likewise.
18288 * tree-vect-generic.c: Likewise.
18289 * tree-vectorizer.c: Likewise.
18290 * tree-vrp.c: Likewise.
18291 * tsan.c: Likewise.
18292 * var-tracking.c: Likewise.
18293 * bt-load.c: Likewise.
18294 * cfgcleanup.c: Likewise.
18295 * combine-stack-adj.c: Likewise.
18296 * combine.c: Likewise.
18297 * compare-elim.c: Likewise.
18298 * config/epiphany/resolve-sw-modes.c: Likewise.
18299 * config/i386/i386.c: Likewise.
18300 * config/mips/mips.c: Likewise.
18301 * config/s390/s390.c: Likewise.
18302 * config/sh/sh_treg_combine.cc: Likewise.
18303 * config/sparc/sparc.c: Likewise.
18306 * final.c: Likewise.
18307 * ifcvt.c: Likewise.
18308 * mode-switching.c: Likewise.
18309 * passes.c: Likewise.
18310 * postreload.c: Likewise.
18312 * reg-stack.c: Likewise.
18313 * regcprop.c: Likewise.
18314 * regrename.c: Likewise.
18317 2014-05-06 Richard Biener <rguenther@suse.de>
18319 PR middle-end/61070
18320 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18321 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18323 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18326 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18328 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18329 Tom de Vries <tom@codesourcery.com>
18331 * target.def (call_fusage_contains_non_callee_clobbers): New
18333 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18335 (@node Miscellaneous Register Hooks): New node.
18336 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18337 * doc/tm.texi: Regenerate.
18339 2014-05-05 Marek Polacek <polacek@redhat.com>
18342 * opts.c (common_handle_option): Call error_at instead of warning_at.
18344 2014-05-05 Richard Biener <rguenther@suse.de>
18346 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18347 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18348 under the TODO_verify_il umbrella.
18350 2014-05-05 Richard Biener <rguenther@suse.de>
18352 * passes.c (execute_function_todo): Move TODO_verify_flow under
18353 the TODO_verify_ul umbrella.
18355 2014-05-05 Richard Biener <rguenther@suse.de>
18357 PR middle-end/61010
18358 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18359 X & CST away from a CST that is the mask of a mode.
18361 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18363 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18364 int argument to enum machine_mode.
18365 (picochip_class_max_nregs): Ditto.
18366 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18367 (picochip_class_max_nregs): Ditto.
18369 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18371 * target.def: Add new target hook.
18372 * doc/tm.texi: Regenerate.
18373 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18374 * targhooks.c (default_keep_leaf_when_profiled): New function.
18376 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18377 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18379 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18381 PR tree-optimization/60363
18382 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18383 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18384 (update_destination_phis): New parameter.
18385 (create_edge_and_update_destination_phis): Ditto.
18386 (ssa_fix_duplicate_block_edges): Pass new arguments.
18387 (thread_single_edge): Ditto.
18389 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18391 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18392 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18393 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18394 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18395 Use RS6000_BTM_HARD_FLOAT.
18396 (BU_MISC_2): Likewise.
18397 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18398 RS6000_BTM_HARD_FLOAT.
18399 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18400 is explicitly used.
18401 (rs6000_invalid_builtin): Add hard floating builtin support.
18402 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18403 hard float builtins.
18404 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18406 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18408 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18409 Add missing function* argument.
18411 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18413 * lra-constraints.c (valid_address_p): Move earlier in file.
18414 Add a constraint argument to the address_info version.
18415 (satisfies_memory_constraint_p): New function.
18416 (satisfies_address_constraint_p): Likewise.
18417 (process_alt_operands, curr_insn_transform): Use them.
18418 (process_address): Pass the constraint to valid_address_p when
18419 checking address operands.
18421 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18423 * config/mips/mips.c (mips_isa_rev): New variable.
18424 (mips_set_architecture): Set it.
18425 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18427 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18428 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18429 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18430 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18431 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18432 conditions in terms of mips_isa_rev.
18433 (mips_isa_rev): Declare.
18435 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18437 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18438 (prob_unlikely, prob_likely): Make variables const.
18440 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18442 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18444 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18446 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18448 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18450 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18451 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18452 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18454 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18455 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18457 Replace usage of ROUND_REG with sh_round_reg.
18458 Use CEIL instead of ROUND_ADVANCE.
18460 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18463 * config/sh/sh.c: Include stdlib headers before everything else.
18465 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18467 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18468 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18469 (gimplify_adjust_omp_clauses): Simd region is never
18470 directly nested in combined parallel. Instead, for linear
18471 with copyin/copyout, if in combined for simd loop, make decl
18472 firstprivate/lastprivate on OMP_FOR.
18473 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18474 expand_omp_for_static_chunk): When setting endvar, also set
18475 fd->loop.v to the same value.
18477 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18479 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18481 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18483 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18486 2014-05-02 Marek Polacek <polacek@redhat.com>
18488 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18490 2014-05-02 Kito Cheng <kito@0xlab.org>
18492 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18493 to a C expression marco.
18494 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18495 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18496 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18497 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18498 HONOR_REG_ALLOC_ORDER.
18499 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18501 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18503 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18505 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18507 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18509 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18511 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18512 (convert_scalar_cond_reduction): Likewise.
18513 (predicate_scalar_phi): Add recognition and transformation
18514 of simple conditioanl reduction to be vectorizable.
18516 2014-05-01 Marek Polacek <polacek@redhat.com>
18519 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18521 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18523 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18524 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18525 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18526 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18527 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18528 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18529 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18530 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18532 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18534 * config/arc/arc.opt (mlra): Move comment above option name
18535 to avoid mis-parsing as language options.
18537 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18539 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18540 * config/sol2.h: ... here.
18541 * config/sol2-10.h: Remove.
18543 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18544 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18545 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18546 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18547 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18548 * config/sol2.h: ... here.
18549 (SECTION_NAME_FORMAT): Don't redefine.
18550 (STARTFILE_ARCH32_SPEC): Rename to ...
18551 (STARTFILE_ARCH_SPEC): ... this.
18552 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18553 * config/sparc/sol2.h: ... here.
18554 (SECTION_NAME_FORMAT): Don't undef.
18555 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18556 (SUBTARGET_EXTRA_SPECS): Remove.
18557 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18559 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18560 (MD_STARTFILE_PREFIX): Remove.
18561 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18562 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18563 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18564 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18565 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18566 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18567 * config/i386/sol2.h: ... here.
18568 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18569 * config/i386/sol2-bi.h: Remove.
18570 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18571 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18573 * config/i386/t-sol2-64: Rename to ...
18574 * config/i386/t-sol2: ... this.
18575 * config/sparc/t-sol2-64: Rename to ...
18576 * config/sparc/t-sol2: ... this.
18578 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18579 sol2_tm_file_head, sol2_tm_file_tail.
18580 Include ${cpu_type}/sol2.h before sol2.h.
18582 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18583 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18584 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18585 Reflect i386/t-sol2-64 renaming.
18586 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18587 Reflect sparc/t-sol2-64 renaming.
18589 2014-04-30 Richard Biener <rguenther@suse.de>
18591 * passes.c (execute_function_todo): Move TODO_verify_stmts
18592 and TODO_verify_ssa under the TODO_verify_il umbrella.
18593 * tree-ssa.h (verify_ssa): Adjust prototype.
18594 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18595 we should verify SSA operands.
18596 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18597 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18598 whether we should verify whether not throwing stmts have EH info.
18599 * graphite-scop-detection.c (create_sese_edges): Adjust.
18600 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18601 * tree-eh.c (lower_try_finally_switch): Do not add the
18602 default case label twice.
18604 2014-04-30 Marek Polacek <polacek@redhat.com>
18606 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18607 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18608 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18609 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18611 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18613 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18614 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18615 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18616 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18617 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18618 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18619 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18620 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18622 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18624 * tree-cfg.c (dump_function_to_file): Dump the return type of
18625 functions, in a line to itself before the function body, mimicking
18626 the layout of a C function.
18628 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18630 PR tree-optimization/60971
18631 * tree-tailcall.c (process_assignment): Reject conversions which
18634 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18636 * calls.c (initialize_argument_information): Always treat
18637 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18638 (expand_call): Likewise.
18639 (emit_library_call_calue_1): Likewise.
18640 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18641 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18644 2014-04-29 Nick Clifton <nickc@redhat.com>
18646 * config/msp430/msp430.md (umulsidi): Fix typo.
18647 (mulhisi3): Enable even inside interrupt handlers.
18648 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18649 bigger return address pushed in large mode.
18651 2014-04-29 Nick Clifton <nickc@redhat.com>
18653 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18654 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18656 * config/m32r/m32r.c (init_reg_tables): Likewise.
18657 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18658 enum to hold the modes.
18660 2014-04-29 Richard Biener <rguenther@suse.de>
18662 * dominance.c (free_dominance_info): Add overload with
18663 function parameter.
18664 (dom_info_state): Likewise.
18665 (dom_info_available_p): Likewise.
18666 * basic-block.h (free_dominance_info, dom_info_state,
18667 dom_info_available_p): Declare overloads.
18668 * passes.c (execute_function_todo): Verify that verifiers
18669 don't change dominator info state. Drop dominator info
18670 for IPA pass invocations.
18671 * cgraph.c (release_function_body): Restore asserts that
18672 dominator information is released.
18674 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18676 * doc/invoke.texi: Fix typo.
18677 * tree-vrp.c: Fix typos.
18678 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18680 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18682 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18684 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18686 * config/aarch64/aarch64-builtins.c
18687 (aarch64_types_storestruct_lane_qualifiers): New.
18688 (TYPES_STORESTRUCT_LANE): Likewise.
18689 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18690 (st3_lane): Likewise.
18691 (st4_lane): Likewise.
18692 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18693 (vec_store_lanesci_lane<mode>): Likewise.
18694 (vec_store_lanesxi_lane<mode>): Likewise.
18695 (aarch64_st2_lane<VQ:mode>): Likewise.
18696 (aarch64_st3_lane<VQ:mode>): Likewise.
18697 (aarch64_st4_lane<VQ:mode>): Likewise.
18698 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18699 * config/aarch64/arm_neon.h
18700 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18701 use new macro arguments.
18702 (__ST3_LANE_FUNC): Likewise.
18703 (__ST4_LANE_FUNC): Likewise.
18704 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18705 (V_THREE_ELEM): Likewise.
18706 (V_FOUR_ELEM): Likewise.
18708 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18710 * doc/gimple.texi: Replace the description of the now-defunct
18711 union gimple_statement_d with a diagram showing the
18712 gimple_statement_base class hierarchy and its relationships to
18713 the GSS_ and GIMPLE_ enums.
18715 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18717 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18718 * config/aarch64/aarch64.c
18719 (aarch64_cannot_change_mode_class): Weaken conditions.
18720 (aarch64_modes_tieable_p): New.
18721 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18723 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18725 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18726 (loadsync_<mode>): Change mode.
18727 (load_quadpti, store_quadpti): New.
18728 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18729 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18731 2014-04-28 Martin Jambor <mjambor@suse.cz>
18733 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18734 same alias type as the original statement.
18735 (subreplacement_assignment_data): New type.
18736 (handle_unscalarized_data_in_subtree): New type of parameter,
18737 generate new memory accesses with same alias type as the original
18739 (load_assign_lhs_subreplacements): Likewise.
18740 (sra_modify_constructor_assign): Generate new memory accesses with
18741 same alias type as the original statement.
18743 2014-04-28 Richard Biener <rguenther@suse.de>
18745 * tree-pass.h (TODO_verify_il): Define.
18746 (TODO_verify_all): Complete properly.
18747 * passes.c (execute_function_todo): Move existing loop-closed
18748 SSA verification under TODO_verify_il.
18749 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18750 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18751 Fix tree sharing issue.
18753 2014-04-28 Richard Biener <rguenther@suse.de>
18755 PR middle-end/60092
18756 * builtins.def (DEF_C11_BUILTIN): Add.
18757 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18758 * coretypes.h (enum function_class): Add function_c11_misc.
18759 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18760 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18761 (call_may_clobber_ref_p_1): Likewise.
18762 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18763 (mark_all_reaching_defs_necessary_1): Likewise.
18764 (propagate_necessity): Likewise.
18765 (eliminate_unnecessary_stmts): Likewise.
18766 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18768 2014-04-28 Richard Biener <rguenther@suse.de>
18770 * tree-vrp.c (vrp_var_may_overflow): Remove.
18771 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18772 with overflow immediately bump to one before that value and
18773 let iteration figure out overflow status.
18775 2014-04-28 Richard Biener <rguenther@suse.de>
18777 * configure.ac: Do valgrind header checks unconditionally.
18778 Add --enable-valgrind-annotations.
18779 * system.h: Guard valgrind header inclusion with
18780 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18781 * alloc-pool.c (pool_alloc, pool_free): Use
18782 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18783 to guard possibly dead code.
18784 * config.in: Regenerated.
18785 * configure: Likewise.
18787 2014-04-28 Jeff Law <law@redhat.com>
18789 PR tree-optimization/60902
18790 * tree-ssa-threadedge.c
18791 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18792 over real defs when invalidating outputs from statements that do not
18793 produce useful outputs for threading.
18795 2014-04-28 Richard Biener <rguenther@suse.de>
18797 PR tree-optimization/60979
18798 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18799 SCOPs that end in a block with a successor with abnormal
18802 2014-04-28 Richard Biener <rguenther@suse.de>
18804 * tree-pass.h (execute_pass_list): Adjust prototype.
18805 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18806 (do_per_function): Change callback signature, push all actual
18807 work to the callbals.
18808 (do_per_function_toporder): Likewise.
18809 (execute_function_dump): Adjust.
18810 (execute_function_todo): Likewise.
18811 (clear_last_verified): Likewise.
18812 (verify_curr_properties): Likewise.
18813 (update_properties_after_pass): Likewise.
18814 (execute_pass_list_1): Split out from ...
18815 (execute_pass_list): ... here. Adjust.
18816 (execute_ipa_pass_list): Likewise.
18817 * cgraphunit.c (cgraph_add_new_function): Adjust.
18818 (analyze_function): Likewise.
18819 (expand_function): Likewise.
18820 * cgraph.c (release_function_body): Free dominance info
18821 here instead of asserting it was magically freed elsewhere.
18823 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18825 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18826 * configure: Regenerate.
18827 * config/sparc/sparc.opt (muser-mode): New option.
18828 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18830 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18831 * doc/invoke.texi (SPARC options): Document -muser-mode.
18833 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18835 * cselib.c (find_slot_memmode): Delete.
18836 (cselib_hasher): Change compare_type to a struct.
18837 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18839 (preserve_constants_and_equivs): Adjust for new compare_type.
18840 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18841 (wrap_constant): Delete.
18842 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18844 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18846 * doc/install.texi (Building with profile feedback): Remove
18849 2014-04-26 Tom de Vries <tom@codesourcery.com>
18851 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18854 2014-04-25 Cary Coutant <ccoutant@google.com>
18857 * dwarf2out.c (should_move_die_to_comdat): A type definition
18858 can contain a subprogram definition, but don't move it to a
18860 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18861 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18863 (clone_tree_hash): Rename to...
18864 (clone_tree_partial): ...this; change callers. Copy
18865 DW_TAG_subprogram DIEs as declarations.
18866 (copy_decls_walk): Don't copy children of a declaration into a
18869 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18872 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18875 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18877 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18878 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18880 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18883 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18885 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18887 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18889 PR tree-optimization/60930
18890 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18891 creating a multiply candidate by folding two constant
18892 multiplicands when the result overflows.
18894 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18896 PR tree-optimization/60960
18897 * tree-vect-generic.c (expand_vector_operation): Only call
18898 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18900 2014-04-25 Tom de Vries <tom@codesourcery.com>
18902 * expr.c (clobber_reg_mode): New function.
18903 * expr.h (clobber_reg): New function.
18905 2014-04-25 Tom de Vries <tom@codesourcery.com>
18907 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18910 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18911 Tom de Vries <tom@codesourcery.com>
18913 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18915 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18916 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18917 new argument to find_all_hard_reg_sets call.
18919 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18921 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18922 Use HOST_WIDE_INT_C for mask literal.
18923 (aarch_rev16_shleft_mask_imm_p): Likewise.
18925 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18928 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18930 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18932 PR preprocessor/56540
18933 * config/i386/i386-c.c (ix86_target_macros): Define
18934 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18936 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18938 * configure.ac (tga_func): Remove.
18939 (LIB_TLS_SPEC): Remove.
18940 * configure: Regenerate.
18941 * config.in: Regenerate.
18942 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18944 2014-04-25 Richard Biener <rguenther@suse.de>
18947 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18948 call stmt use/clobber sets during stmt walk instead of
18949 walking the possibly incomplete set of caller edges.
18951 2014-04-25 Richard Biener <rguenther@suse.de>
18954 * passes.c (apply_ipa_transforms): Inline into only caller ...
18955 (execute_one_pass): ... here. Properly bring in function
18956 bodies for nodes we want to apply IPA transforms to.
18958 2014-04-24 Cong Hou <congh@google.com>
18960 PR tree-optimization/60896
18961 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18962 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18963 (vect_mark_pattern_stmts): Set the def type of all statements in
18964 PATTERN_DEF_SEQ as vect_internal_def.
18966 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18968 * doc/extend.texi (PowerPC Built-in Functions): Document new
18969 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18970 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18972 * config/rs6000/predicates.md (const_0_to_3_operand): New
18973 predicate to match 0..3 integer constants.
18975 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18976 to support adding miscellaneous builtin functions.
18977 (BU_DFP_MISC_2): Likewise.
18978 (BU_P7_MISC_1): Likewise.
18979 (BU_P7_MISC_2): Likewise.
18980 (BU_P8V_MISC_3): Likewise.
18981 (BU_MISC_1): Likewise.
18982 (BU_MISC_2): Likewise.
18983 (DIVWE): Add extended divide builtin functions.
18984 (DIVWEO): Likewise.
18985 (DIVWEU): Likewise.
18986 (DIVWEUO): Likewise.
18988 (DIVDEO): Likewise.
18989 (DIVDEU): Likewise.
18990 (DIVDEUO): Likewise.
18991 (DXEX): Add decimal floating-point builtin functions.
18993 (DDEDPD): Likewise.
18994 (DDEDPDQ): Likewise.
18995 (DENBCD): Likewise.
18996 (DENBCDQ): Likewise.
19000 (DSCLIQ): Likewise.
19002 (DSCRIQ): Likewise.
19003 (CDTBCD): Add new BCD builtin functions.
19004 (CBCDTD): Likewise.
19005 (ADDG6S): Likewise.
19006 (BCDADD): Likewise.
19007 (BCDADD_LT): Likewise.
19008 (BCDADD_EQ): Likewise.
19009 (BCDADD_GT): Likewise.
19010 (BCDADD_OV): Likewise.
19011 (BCDSUB): Likewise.
19012 (BCDSUB_LT): Likewise.
19013 (BCDSUB_EQ): Likewise.
19014 (BCDSUB_GT): Likewise.
19015 (BCDSUB_OV): Likewise.
19016 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
19017 (UNPACK_TD): Likewise.
19018 (PACK_TF): Likewise.
19019 (UNPACK_TF): Likewise.
19020 (UNPACK_TF_0): Likewise.
19021 (UNPACK_TF_1): Likewise.
19022 (PACK_V1TI): Likewise.
19023 (UNPACK_V1TI): Likewise.
19025 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
19026 support for decimal floating point builtin functions.
19027 (rs6000_expand_ternop_builtin): Add checks for the new builtin
19028 functions that take constant arguments.
19029 (rs6000_invalid_builtin): Add decimal floating point builtin support.
19030 (rs6000_init_builtins): Setup long double, _Decimal64, and
19031 _Decimal128 types for new builtin functions.
19032 (builtin_function_type): Set the unsigned flags appropriately for
19033 the new builtin functions.
19034 (rs6000_opt_masks): Add support for decimal floating point builtin
19037 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
19038 floating point builtin functions.
19039 (RS6000_BTM_COMMON): Likewise.
19040 (RS6000_BTI_long_double): Likewise.
19041 (RS6000_BTI_dfloat64): Likewise.
19042 (RS6000_BTI_dfloat128): Likewise.
19043 (long_double_type_internal_node): Likewise.
19044 (dfloat64_type_internal_node): Likewise.
19045 (dfloat128_type_internal_node): Likewise.
19047 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
19048 2.07 bcd arithmetic instructions.
19049 (UNSPEC_BCDSUB): Likewise.
19050 (UNSPEC_BCD_OVERFLOW): Likewise.
19051 (UNSPEC_BCD_ADD_SUB): Likewise.
19052 (bcd_add_sub): Likewise.
19053 (BCD_TEST): Likewise.
19054 (bcd<bcd_add_sub>): Likewise.
19055 (bcd<bcd_add_sub>_test): Likewise.
19056 (bcd<bcd_add_sub>_test2): Likewise.
19057 (bcd<bcd_add_sub>_<code>): Likewise.
19058 (peephole2 for combined bcd ops): Likewise.
19060 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
19061 decimal floating point builtin functions.
19062 (UNSPEC_DENBCD): Likewise.
19063 (UNSPEC_DXEX): Likewise.
19064 (UNSPEC_DIEX): Likewise.
19065 (UNSPEC_DSCLI): Likewise.
19066 (UNSPEC_DSCRI): Likewise.
19067 (D64_D128): Likewise.
19068 (dfp_suffix): Likewise.
19069 (dfp_ddedpd_<mode>): Likewise.
19070 (dfp_denbcd_<mode>): Likewise.
19071 (dfp_dxex_<mode>): Likewise.
19072 (dfp_diex_<mode>): Likewise.
19073 (dfp_dscli_<mode>): Likewise.
19074 (dfp_dscri_<mode>): Likewise.
19076 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
19078 (UNSPEC_CDTBCD): Likewise.
19079 (UNSPEC_CBCDTD): Likewise.
19080 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
19081 (UNSPEC_DIVEO): Likewise.
19082 (UNSPEC_DIVEU): Likewise.
19083 (UNSPEC_DIVEUO): Likewise.
19084 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
19085 pack/unpack 128-bit types.
19086 (UNSPEC_PACK_128BIT): Likewise.
19087 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
19088 (udiv<mode>3): Use idiv_ldiv mode attribute.
19089 (div<mode>3): Likewise.
19090 (addg6s): Add new BCD builtin functions.
19091 (cdtbcd): Likewise.
19092 (cbcdtd): Likewise.
19093 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
19094 (div_extend): Likewise.
19095 (div<div_extend>_<mode>"): Likewise.
19096 (FP128_64): Add support for new builtin functions to pack/unpack
19098 (unpack<mode>): Likewise.
19099 (unpacktf_0): Likewise.
19100 (unpacktf_1): Likewise.
19101 (unpack<mode>_dm): Likewise.
19102 (unpack<mode>_nodm): Likewise.
19103 (pack<mode>): Likewise.
19104 (unpackv1ti): Likewise.
19105 (packv1ti): Likewise.
19107 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
19109 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
19112 2014-04-24 Jakub Jelinek <jakub@redhat.com>
19114 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
19115 * gimplify.c (omp_is_private): Change last argument's type to int.
19116 Only diagnose lastprivate if the simd argument is 1, only diagnose
19117 linear if the simd argument is 2.
19118 (gimplify_omp_for): Adjust omp_is_private callers. When adding
19119 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
19120 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
19121 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
19122 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
19123 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19124 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
19125 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19126 * tree-nested.c (convert_nonlocal_omp_clauses,
19127 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
19129 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
19132 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
19135 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
19137 * flag-types.h (enum ivar_visibility): Add.
19139 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
19141 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
19142 function * argument.
19144 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
19146 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
19148 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19149 Tom de Vries <tom@codesourcery.com>
19151 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
19152 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
19154 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
19155 * emit-rtl.c (try_split): Same.
19157 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19158 Tom de Vries <tom@codesourcery.com>
19160 * common.opt (fuse-caller-save): New option.
19162 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
19164 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
19165 elements for big-endian.
19167 2014-04-24 Richard Biener <rguenther@suse.de>
19169 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
19170 during TER and instead use the sepops interface for expanding
19171 non-GIMPLE_SINGLE_RHS.
19173 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19175 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
19176 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
19178 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19180 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
19181 assembler 64-bit option.
19182 * configure: Regenerate.
19184 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19186 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
19187 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
19188 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
19189 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
19190 (TARGET_CRYPTO): Take TARGET_SIMD into account.
19192 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19194 * config/aarch64/aarch64-builtins.c
19195 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19196 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19197 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19198 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19200 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19201 (Vrevsuff): New mode attribute.
19203 2014-04-24 Terry Guo <terry.guo@arm.com>
19205 * config/arm/arm.h (machine_function): Define variable
19206 after_arm_reorg here.
19207 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19208 (arm_split_constant): Update the way to access variable
19210 (arm_reorg): Ditto.
19211 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19213 2014-04-23 Tom de Vries <tom@codesourcery.com>
19215 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19217 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19219 * is-a.h: Update comments to reflect the following changes to the
19220 "pointerness" of the API, making the template parameter match the
19221 return type, allowing use of is-a.h with typedefs of pointers.
19222 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19223 that the return type matches the parameter to the is_a_helper.
19225 (dyn_cast): Likewise.
19227 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19228 pointer from the is-a.h API.
19230 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19231 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19233 (is_a_helper <varpool_node>::test): Likewise, convert to...
19234 (is_a_helper <varpool_node *>::test): ...this.
19236 (varpool_first_variable): Update for removal of implicit pointer
19237 from the is-a.h API.
19238 (varpool_next_variable): Likewise.
19239 (varpool_first_static_initializer): Likewise.
19240 (varpool_next_static_initializer): Likewise.
19241 (varpool_first_defined_variable): Likewise.
19242 (varpool_next_defined_variable): Likewise.
19243 (cgraph_first_defined_function): Likewise.
19244 (cgraph_next_defined_function): Likewise.
19245 (cgraph_first_function): Likewise.
19246 (cgraph_next_function): Likewise.
19247 (cgraph_first_function_with_gimple_body): Likewise.
19248 (cgraph_next_function_with_gimple_body): Likewise.
19249 (cgraph_alias_target): Likewise.
19250 (varpool_alias_target): Likewise.
19251 (cgraph_function_or_thunk_node): Likewise.
19252 (varpool_variable_node): Likewise.
19253 (symtab_real_symbol_p): Likewise.
19254 * cgraphunit.c (referred_to_p): Likewise.
19255 (analyze_functions): Likewise.
19256 (handle_alias_pairs): Likewise.
19257 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19258 * gimple-ssa.h (gimple_vuse_op): Likewise.
19259 (gimple_vdef_op): Likewise.
19260 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19261 * gimple.c (gimple_build_asm_1): Likewise.
19262 (gimple_build_try): Likewise.
19263 (gimple_build_resx): Likewise.
19264 (gimple_build_eh_dispatch): Likewise.
19265 (gimple_build_omp_for): Likewise.
19266 (gimple_omp_for_set_clauses): Likewise.
19268 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19269 (is_a_helper <gimple_statement_asm *>::test): ...this.
19270 (is_a_helper <gimple_statement_bind>::test): Convert to...
19271 (is_a_helper <gimple_statement_bind *>::test): ...this.
19272 (is_a_helper <gimple_statement_call>::test): Convert to...
19273 (is_a_helper <gimple_statement_call *>::test): ...this.
19274 (is_a_helper <gimple_statement_catch>::test): Convert to...
19275 (is_a_helper <gimple_statement_catch *>::test): ...this.
19276 (is_a_helper <gimple_statement_resx>::test): Convert to...
19277 (is_a_helper <gimple_statement_resx *>::test): ...this.
19278 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19279 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19280 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19281 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19282 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19283 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19284 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19285 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19286 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19287 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19288 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19289 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19290 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19291 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19292 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19293 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19294 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19295 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19296 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19297 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19298 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19299 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19300 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19301 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19302 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19303 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19304 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19305 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19306 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19307 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19308 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19309 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19310 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19311 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19312 (is_a_helper <gimple_statement_phi>::test): Convert to...
19313 (is_a_helper <gimple_statement_phi *>::test): ...this.
19314 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19315 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19316 (is_a_helper <gimple_statement_try>::test): Convert to...
19317 (is_a_helper <gimple_statement_try *>::test): ...this.
19318 (is_a_helper <gimple_statement_wce>::test): Convert to...
19319 (is_a_helper <gimple_statement_wce *>::test): ...this.
19320 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19321 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19322 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19323 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19324 (is_a_helper <const gimple_statement_call>::test): Convert to...
19325 (is_a_helper <const gimple_statement_call *>::test): ...this.
19326 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19327 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19328 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19329 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19330 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19331 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19332 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19333 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19334 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19336 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19338 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19340 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19342 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19343 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19344 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19346 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19347 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19349 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19350 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19351 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19352 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19353 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19354 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19356 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19357 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19358 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19359 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19361 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19362 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19363 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19364 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19365 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19366 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19367 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19368 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19369 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19370 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19371 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19372 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19373 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19374 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19375 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19376 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19378 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19380 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19381 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19383 (gimple_use_ops): Update for removal of implicit pointer from the
19385 (gimple_set_use_ops): Likewise.
19386 (gimple_vuse): Likewise.
19387 (gimple_vdef): Likewise.
19388 (gimple_vuse_ptr): Likewise.
19389 (gimple_vdef_ptr): Likewise.
19390 (gimple_set_vuse): Likewise.
19391 (gimple_set_vdef): Likewise.
19392 (gimple_omp_return_set_lhs): Likewise.
19393 (gimple_omp_return_lhs): Likewise.
19394 (gimple_omp_return_lhs_ptr): Likewise.
19395 (gimple_call_fntype): Likewise.
19396 (gimple_call_set_fntype): Likewise.
19397 (gimple_call_set_internal_fn): Likewise.
19398 (gimple_call_use_set): Likewise.
19399 (gimple_call_clobber_set): Likewise.
19400 (gimple_bind_vars): Likewise.
19401 (gimple_bind_set_vars): Likewise.
19402 (gimple_bind_body_ptr): Likewise.
19403 (gimple_bind_set_body): Likewise.
19404 (gimple_bind_add_stmt): Likewise.
19405 (gimple_bind_block): Likewise.
19406 (gimple_bind_set_block): Likewise.
19407 (gimple_asm_ninputs): Likewise.
19408 (gimple_asm_noutputs): Likewise.
19409 (gimple_asm_nclobbers): Likewise.
19410 (gimple_asm_nlabels): Likewise.
19411 (gimple_asm_input_op): Likewise.
19412 (gimple_asm_input_op_ptr): Likewise.
19413 (gimple_asm_output_op): Likewise.
19414 (gimple_asm_output_op_ptr): Likewise.
19415 (gimple_asm_set_output_op): Likewise.
19416 (gimple_asm_clobber_op): Likewise.
19417 (gimple_asm_set_clobber_op): Likewise.
19418 (gimple_asm_label_op): Likewise.
19419 (gimple_asm_set_label_op): Likewise.
19420 (gimple_asm_string): Likewise.
19421 (gimple_catch_types): Likewise.
19422 (gimple_catch_types_ptr): Likewise.
19423 (gimple_catch_handler_ptr): Likewise.
19424 (gimple_catch_set_types): Likewise.
19425 (gimple_catch_set_handler): Likewise.
19426 (gimple_eh_filter_types): Likewise.
19427 (gimple_eh_filter_types_ptr): Likewise.
19428 (gimple_eh_filter_failure_ptr): Likewise.
19429 (gimple_eh_filter_set_types): Likewise.
19430 (gimple_eh_filter_set_failure): Likewise.
19431 (gimple_eh_must_not_throw_fndecl): Likewise.
19432 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19433 (gimple_eh_else_n_body_ptr): Likewise.
19434 (gimple_eh_else_e_body_ptr): Likewise.
19435 (gimple_eh_else_set_n_body): Likewise.
19436 (gimple_eh_else_set_e_body): Likewise.
19437 (gimple_try_eval_ptr): Likewise.
19438 (gimple_try_cleanup_ptr): Likewise.
19439 (gimple_try_set_eval): Likewise.
19440 (gimple_try_set_cleanup): Likewise.
19441 (gimple_wce_cleanup_ptr): Likewise.
19442 (gimple_wce_set_cleanup): Likewise.
19443 (gimple_phi_capacity): Likewise.
19444 (gimple_phi_num_args): Likewise.
19445 (gimple_phi_result): Likewise.
19446 (gimple_phi_result_ptr): Likewise.
19447 (gimple_phi_set_result): Likewise.
19448 (gimple_phi_arg): Likewise.
19449 (gimple_phi_set_arg): Likewise.
19450 (gimple_resx_region): Likewise.
19451 (gimple_resx_set_region): Likewise.
19452 (gimple_eh_dispatch_region): Likewise.
19453 (gimple_eh_dispatch_set_region): Likewise.
19454 (gimple_omp_critical_name): Likewise.
19455 (gimple_omp_critical_name_ptr): Likewise.
19456 (gimple_omp_critical_set_name): Likewise.
19457 (gimple_omp_for_clauses): Likewise.
19458 (gimple_omp_for_clauses_ptr): Likewise.
19459 (gimple_omp_for_set_clauses): Likewise.
19460 (gimple_omp_for_collapse): Likewise.
19461 (gimple_omp_for_index): Likewise.
19462 (gimple_omp_for_index_ptr): Likewise.
19463 (gimple_omp_for_set_index): Likewise.
19464 (gimple_omp_for_initial): Likewise.
19465 (gimple_omp_for_initial_ptr): Likewise.
19466 (gimple_omp_for_set_initial): Likewise.
19467 (gimple_omp_for_final): Likewise.
19468 (gimple_omp_for_final_ptr): Likewise.
19469 (gimple_omp_for_set_final): Likewise.
19470 (gimple_omp_for_incr): Likewise.
19471 (gimple_omp_for_incr_ptr): Likewise.
19472 (gimple_omp_for_set_incr): Likewise.
19473 (gimple_omp_for_pre_body_ptr): Likewise.
19474 (gimple_omp_for_set_pre_body): Likewise.
19475 (gimple_omp_parallel_clauses): Likewise.
19476 (gimple_omp_parallel_clauses_ptr): Likewise.
19477 (gimple_omp_parallel_set_clauses): Likewise.
19478 (gimple_omp_parallel_child_fn): Likewise.
19479 (gimple_omp_parallel_child_fn_ptr): Likewise.
19480 (gimple_omp_parallel_set_child_fn): Likewise.
19481 (gimple_omp_parallel_data_arg): Likewise.
19482 (gimple_omp_parallel_data_arg_ptr): Likewise.
19483 (gimple_omp_parallel_set_data_arg): Likewise.
19484 (gimple_omp_task_clauses): Likewise.
19485 (gimple_omp_task_clauses_ptr): Likewise.
19486 (gimple_omp_task_set_clauses): Likewise.
19487 (gimple_omp_task_child_fn): Likewise.
19488 (gimple_omp_task_child_fn_ptr): Likewise.
19489 (gimple_omp_task_set_child_fn): Likewise.
19490 (gimple_omp_task_data_arg): Likewise.
19491 (gimple_omp_task_data_arg_ptr): Likewise.
19492 (gimple_omp_task_set_data_arg): Likewise.
19493 (gimple_omp_taskreg_clauses): Likewise.
19494 (gimple_omp_taskreg_clauses_ptr): Likewise.
19495 (gimple_omp_taskreg_set_clauses): Likewise.
19496 (gimple_omp_taskreg_child_fn): Likewise.
19497 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19498 (gimple_omp_taskreg_set_child_fn): Likewise.
19499 (gimple_omp_taskreg_data_arg): Likewise.
19500 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19501 (gimple_omp_taskreg_set_data_arg): Likewise.
19502 (gimple_omp_task_copy_fn): Likewise.
19503 (gimple_omp_task_copy_fn_ptr): Likewise.
19504 (gimple_omp_task_set_copy_fn): Likewise.
19505 (gimple_omp_task_arg_size): Likewise.
19506 (gimple_omp_task_arg_size_ptr): Likewise.
19507 (gimple_omp_task_set_arg_size): Likewise.
19508 (gimple_omp_task_arg_align): Likewise.
19509 (gimple_omp_task_arg_align_ptr): Likewise.
19510 (gimple_omp_task_set_arg_align): Likewise.
19511 (gimple_omp_single_clauses): Likewise.
19512 (gimple_omp_single_clauses_ptr): Likewise.
19513 (gimple_omp_single_set_clauses): Likewise.
19514 (gimple_omp_target_clauses): Likewise.
19515 (gimple_omp_target_clauses_ptr): Likewise.
19516 (gimple_omp_target_set_clauses): Likewise.
19517 (gimple_omp_target_child_fn): Likewise.
19518 (gimple_omp_target_child_fn_ptr): Likewise.
19519 (gimple_omp_target_set_child_fn): Likewise.
19520 (gimple_omp_target_data_arg): Likewise.
19521 (gimple_omp_target_data_arg_ptr): Likewise.
19522 (gimple_omp_target_set_data_arg): Likewise.
19523 (gimple_omp_teams_clauses): Likewise.
19524 (gimple_omp_teams_clauses_ptr): Likewise.
19525 (gimple_omp_teams_set_clauses): Likewise.
19526 (gimple_omp_sections_clauses): Likewise.
19527 (gimple_omp_sections_clauses_ptr): Likewise.
19528 (gimple_omp_sections_set_clauses): Likewise.
19529 (gimple_omp_sections_control): Likewise.
19530 (gimple_omp_sections_control_ptr): Likewise.
19531 (gimple_omp_sections_set_control): Likewise.
19532 (gimple_omp_for_set_cond): Likewise.
19533 (gimple_omp_for_cond): Likewise.
19534 (gimple_omp_atomic_store_set_val): Likewise.
19535 (gimple_omp_atomic_store_val): Likewise.
19536 (gimple_omp_atomic_store_val_ptr): Likewise.
19537 (gimple_omp_atomic_load_set_lhs): Likewise.
19538 (gimple_omp_atomic_load_lhs): Likewise.
19539 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19540 (gimple_omp_atomic_load_set_rhs): Likewise.
19541 (gimple_omp_atomic_load_rhs): Likewise.
19542 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19543 (gimple_omp_continue_control_def): Likewise.
19544 (gimple_omp_continue_control_def_ptr): Likewise.
19545 (gimple_omp_continue_set_control_def): Likewise.
19546 (gimple_omp_continue_control_use): Likewise.
19547 (gimple_omp_continue_control_use_ptr): Likewise.
19548 (gimple_omp_continue_set_control_use): Likewise.
19549 (gimple_transaction_body_ptr): Likewise.
19550 (gimple_transaction_label): Likewise.
19551 (gimple_transaction_label_ptr): Likewise.
19552 (gimple_transaction_set_body): Likewise.
19553 (gimple_transaction_set_label): Likewise.
19555 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19556 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19557 * ipa-ref.c (ipa_record_reference): Likewise.
19558 * ipa-reference.c (analyze_function): Likewise.
19559 (ipa_reference_write_optimization_summary): Likewise.
19560 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19561 (address_taken_from_non_vtable_p): Likewise.
19562 (comdat_can_be_unshared_p_1): Likewise.
19563 * lto-cgraph.c (lto_output_ref): Likewise.
19564 (add_references): Likewise.
19565 (compute_ltrans_boundary): Likewise.
19566 (output_symtab): Likewise.
19567 (input_ref): Likewise.
19568 (input_cgraph_1): Likewise.
19569 (output_cgraph_opt_summary): Likewise.
19570 * lto-streamer-out.c (lto_output): Likewise.
19571 (output_symbol_p): Likewise.
19572 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19573 (lsei_start_function_in_partition): Likewise.
19574 (lsei_next_variable_in_partition): Likewise.
19575 (lsei_start_variable_in_partition): Likewise.
19576 * symtab.c (insert_to_assembler_name_hash): Likewise.
19577 (unlink_from_assembler_name_hash): Likewise.
19578 (symtab_unregister_node): Likewise.
19579 (symtab_remove_node): Likewise.
19580 (dump_symtab_node): Likewise.
19581 (verify_symtab_base): Likewise.
19582 (verify_symtab_node): Likewise.
19583 (symtab_make_decl_local): Likewise.
19584 (symtab_alias_ultimate_target): Likewise.
19585 (symtab_resolve_alias): Likewise.
19586 (symtab_get_symbol_partitioning_class): Likewise.
19587 * tree-phinodes.c (allocate_phi_node): Likewise.
19588 (reserve_phi_args_for_new_edge): Likewise.
19589 (remove_phi_args): Likewise.
19590 * varpool.c (varpool_node_for_asm): Likewise.
19591 (varpool_remove_unreferenced_decls): Likewise.
19593 2014-04-23 Jeff Law <law@redhat.com>
19595 PR tree-optimization/60902
19596 * tree-ssa-threadedge.c
19597 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19598 invalidate outputs from statements that do not produce useful
19599 outputs for threading.
19601 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19603 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19604 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19605 machine descriptions for Stack Smashing Protector.
19607 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19609 * aarch64.md (<optab>_rol<mode>3): New pattern.
19610 (<optab>_rolsi3_uxtw): Likewise.
19611 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19613 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19615 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19616 (arm_cortex_a12_tune): Likewise.
19618 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19620 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19622 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19624 * config/arm/arm.md (arm_rev16si2): New pattern.
19625 (arm_rev16si2_alt): Likewise.
19626 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19628 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19630 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19631 (rev16<mode>2_alt): Likewise.
19632 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19633 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19634 (aarch_rev16_shleft_mask_imm_p): Likewise.
19635 (aarch_rev16_p_1): Likewise.
19636 (aarch_rev16_p): Likewise.
19637 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19638 (aarch_rev16_shright_mask_imm_p): Likewise.
19639 (aarch_rev16_shleft_mask_imm_p): Likewise.
19641 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19643 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19644 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19646 (cortex_a53_extra_costs): Likewise.
19647 (cortex_a57_extra_costs): Likewise.
19648 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19649 (cortexa7_extra_costs): Likewise.
19650 (cortexa8_extra_costs): Likewise.
19651 (cortexa12_extra_costs): Likewise.
19652 (cortexa15_extra_costs): Likewise.
19653 (v7m_extra_costs): Likewise.
19654 (arm_new_rtx_costs): Handle BSWAP.
19656 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19658 * config/arm/arm.c (cortexa8_extra_costs): New table.
19659 (arm_cortex_a8_tune): New tuning struct.
19660 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19662 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19664 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19666 2014-04-23 Richard Biener <rguenther@suse.de>
19668 * Makefile.in (OBJS): Remove loop-unswitch.o.
19669 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19670 * passes.def (pass_rtl_unswitch): Likewise.
19671 * loop-init.c (gate_rtl_unswitch): Likewise.
19672 (rtl_unswitch): Likewise.
19673 (pass_data_rtl_unswitch): Likewise.
19674 (pass_rtl_unswitch): Likewise.
19675 (make_pass_rtl_unswitch): Likewise.
19676 * rtl.h (reversed_condition): Likewise.
19677 (compare_and_jump_seq): Likewise.
19678 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19680 * loop-unroll.c (compare_and_jump_seq): Likewise.
19682 2014-04-23 Richard Biener <rguenther@suse.de>
19684 PR tree-optimization/60903
19685 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19686 commented code block.
19687 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19688 loop flags to newly created BBs and edges.
19690 2014-04-23 Nick Clifton <nickc@redhat.com>
19692 * config/msp430/msp430.c (msp430_handle_option): Move function
19694 (msp430_option_override): Simplify mcu and mcpu option handling.
19695 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19696 support for -mhwmult command line option.
19697 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19698 -mhwmult command line option.
19699 (msp430_hwmult_enabled): Delete.
19700 (msp43o_output_labelref): Add support for -mhwmult command line option.
19701 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19702 (umulsidi3): Likewise.
19703 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19704 (mcpu, mlarge, msmall): Likewise.
19705 (mhwmult): New option.
19706 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19708 (msp430_is_f5_mcu): Remove prototype.
19709 (msp430_use_f5_series_hwmult): Add prototype.
19710 * config/msp430/msp430-opts.h: New file.
19711 * common/config/msp430: New directory.
19712 * common/config/msp430/msp430-common.c: New file.
19713 * config.gcc (msp430): Remove target_has_targetm_common.
19714 * doc/invoke.texi: Document -mhwmult command line option.
19716 2014-04-23 Nick Clifton <nickc@redhat.com>
19718 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19719 default-manifest.o if it can be found in the search path.
19720 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19722 2014-04-23 Terry Guo <terry.guo@arm.com>
19724 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19726 2014-04-23 Richard Biener <rguenther@suse.de>
19728 PR middle-end/60895
19729 * tree-inline.c (declare_return_variable): Use mark_addressable.
19731 2014-04-23 Richard Biener <rguenther@suse.de>
19733 PR middle-end/60891
19734 * loop-init.c (loop_optimizer_init): Make sure to apply
19735 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19737 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19740 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19742 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19743 if flag_sanitize_undefined_trap_on_error.
19744 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19745 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19746 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19747 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19748 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19749 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19750 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19751 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19752 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19753 * ubsan.c (ubsan_instrument_unreachable): Return
19754 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19755 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19756 if flag_sanitize_undefined_trap_on_error and
19757 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19758 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19759 instrument_bool_enum_load): Emit __builtin_trap () if
19760 flag_sanitize_undefined_trap_on_error and
19761 __builtin_handle_*_abort () if !flag_sanitize_recover.
19762 * doc/invoke.texi (-fsanitize-recover,
19763 -fsanitize-undefined-trap-on-error): Document.
19765 2014-04-22 Christian Bruel <christian.bruel@st.com>
19767 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19768 Force immediates to SImode.
19770 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19772 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19773 (lroundsfsi2): New.
19774 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19775 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19776 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19777 (nios2_fpu_insn): Add entry for round.
19778 (N2FPU_NO_ERRNO_P): Define.
19779 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19781 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19783 2014-04-22 Richard Henderson <rth@redhat.com>
19785 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19786 (add<GPI>3_compare0): Remove leading * from name.
19787 (add<GPI>3_carryin): Likewise.
19788 (sub<GPI>3_compare0): Likewise.
19789 (sub<GPI>3_carryin): Likewise.
19790 (<su_optab>mulditi3): New expander.
19791 (multi3): New expander.
19792 (madd<GPI>): Remove leading * from name.
19794 2014-04-22 Martin Jambor <mjambor@suse.cz>
19796 * cgraphclones.c (cgraph_function_versioning): Copy
19797 ipa_transforms_to_apply instead of asserting it is empty.
19799 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19802 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19803 on count_exp to get mode.
19805 2014-04-22 Andrew Pinski <apinski@cavium.com>
19807 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19808 Handle TLS for ILP32.
19809 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19810 (tlsie_small_<mode>): this and handle PTR.
19811 (tlsie_small_sidi): New pattern.
19812 (tlsle_small): Change to an expand to handle ILP32.
19813 (tlsle_small_<mode>): New pattern.
19814 (tlsdesc_small): Rename to ...
19815 (tlsdesc_small_<mode>): this and handle PTR.
19817 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19819 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19821 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19823 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19824 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19825 (aarch64_types_signed_poly_qualifiers): Likewise.
19826 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19827 (aarch64_types_poly_signed_qualifiers): Likewise.
19828 (TYPES_REINTERP_SS): Type macro added.
19829 (TYPES_REINTERP_SU): Likewise.
19830 (TYPES_REINTERP_SP): Likewise.
19831 (TYPES_REINTERP_US): Likewise.
19832 (TYPES_REINTERP_PS): Likewise.
19833 (aarch64_fold_builtin): New expression folding added.
19834 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19835 Declarations removed.
19836 (REINTERP_SS): Declarations added.
19837 (REINTERP_US): Likewise.
19838 (REINTERP_PS): Likewise.
19839 (REINTERP_SU): Likewise.
19840 (REINTERP_SP): Likewise.
19841 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19842 (vreinterpretq_p8_f64): Likewise.
19843 (vreinterpret_p16_f64): Likewise.
19844 (vreinterpretq_p16_f64): Likewise.
19845 (vreinterpret_f32_f64): Likewise.
19846 (vreinterpretq_f32_f64): Likewise.
19847 (vreinterpret_f64_f32): Likewise.
19848 (vreinterpret_f64_p8): Likewise.
19849 (vreinterpret_f64_p16): Likewise.
19850 (vreinterpret_f64_s8): Likewise.
19851 (vreinterpret_f64_s16): Likewise.
19852 (vreinterpret_f64_s32): Likewise.
19853 (vreinterpret_f64_s64): Likewise.
19854 (vreinterpret_f64_u8): Likewise.
19855 (vreinterpret_f64_u16): Likewise.
19856 (vreinterpret_f64_u32): Likewise.
19857 (vreinterpret_f64_u64): Likewise.
19858 (vreinterpretq_f64_f32): Likewise.
19859 (vreinterpretq_f64_p8): Likewise.
19860 (vreinterpretq_f64_p16): Likewise.
19861 (vreinterpretq_f64_s8): Likewise.
19862 (vreinterpretq_f64_s16): Likewise.
19863 (vreinterpretq_f64_s32): Likewise.
19864 (vreinterpretq_f64_s64): Likewise.
19865 (vreinterpretq_f64_u8): Likewise.
19866 (vreinterpretq_f64_u16): Likewise.
19867 (vreinterpretq_f64_u32): Likewise.
19868 (vreinterpretq_f64_u64): Likewise.
19869 (vreinterpret_s64_f64): Likewise.
19870 (vreinterpretq_s64_f64): Likewise.
19871 (vreinterpret_u64_f64): Likewise.
19872 (vreinterpretq_u64_f64): Likewise.
19873 (vreinterpret_s8_f64): Likewise.
19874 (vreinterpretq_s8_f64): Likewise.
19875 (vreinterpret_s16_f64): Likewise.
19876 (vreinterpretq_s16_f64): Likewise.
19877 (vreinterpret_s32_f64): Likewise.
19878 (vreinterpretq_s32_f64): Likewise.
19879 (vreinterpret_u8_f64): Likewise.
19880 (vreinterpretq_u8_f64): Likewise.
19881 (vreinterpret_u16_f64): Likewise.
19882 (vreinterpretq_u16_f64): Likewise.
19883 (vreinterpret_u32_f64): Likewise.
19884 (vreinterpretq_u32_f64): Likewise.
19886 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19888 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19889 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19890 (vreinterpret_p8_s8): Likewise.
19891 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19892 (vreinterpret_p8_s16): Likewise.
19893 (vreinterpret_p8_s32): Likewise.
19894 (vreinterpret_p8_s64): Likewise.
19895 (vreinterpret_p8_f32): Likewise.
19896 (vreinterpret_p8_u8): Likewise.
19897 (vreinterpret_p8_u16): Likewise.
19898 (vreinterpret_p8_u32): Likewise.
19899 (vreinterpret_p8_u64): Likewise.
19900 (vreinterpret_p8_p16): Likewise.
19901 (vreinterpretq_p8_s8): Likewise.
19902 (vreinterpretq_p8_s16): Likewise.
19903 (vreinterpretq_p8_s32): Likewise.
19904 (vreinterpretq_p8_s64): Likewise.
19905 (vreinterpretq_p8_f32): Likewise.
19906 (vreinterpretq_p8_u8): Likewise.
19907 (vreinterpretq_p8_u16): Likewise.
19908 (vreinterpretq_p8_u32): Likewise.
19909 (vreinterpretq_p8_u64): Likewise.
19910 (vreinterpretq_p8_p16): Likewise.
19911 (vreinterpret_p16_s8): Likewise.
19912 (vreinterpret_p16_s16): Likewise.
19913 (vreinterpret_p16_s32): Likewise.
19914 (vreinterpret_p16_s64): Likewise.
19915 (vreinterpret_p16_f32): Likewise.
19916 (vreinterpret_p16_u8): Likewise.
19917 (vreinterpret_p16_u16): Likewise.
19918 (vreinterpret_p16_u32): Likewise.
19919 (vreinterpret_p16_u64): Likewise.
19920 (vreinterpret_p16_p8): Likewise.
19921 (vreinterpretq_p16_s8): Likewise.
19922 (vreinterpretq_p16_s16): Likewise.
19923 (vreinterpretq_p16_s32): Likewise.
19924 (vreinterpretq_p16_s64): Likewise.
19925 (vreinterpretq_p16_f32): Likewise.
19926 (vreinterpretq_p16_u8): Likewise.
19927 (vreinterpretq_p16_u16): Likewise.
19928 (vreinterpretq_p16_u32): Likewise.
19929 (vreinterpretq_p16_u64): Likewise.
19930 (vreinterpretq_p16_p8): Likewise.
19931 (vreinterpret_f32_s8): Likewise.
19932 (vreinterpret_f32_s16): Likewise.
19933 (vreinterpret_f32_s32): Likewise.
19934 (vreinterpret_f32_s64): Likewise.
19935 (vreinterpret_f32_u8): Likewise.
19936 (vreinterpret_f32_u16): Likewise.
19937 (vreinterpret_f32_u32): Likewise.
19938 (vreinterpret_f32_u64): Likewise.
19939 (vreinterpret_f32_p8): Likewise.
19940 (vreinterpret_f32_p16): Likewise.
19941 (vreinterpretq_f32_s8): Likewise.
19942 (vreinterpretq_f32_s16): Likewise.
19943 (vreinterpretq_f32_s32): Likewise.
19944 (vreinterpretq_f32_s64): Likewise.
19945 (vreinterpretq_f32_u8): Likewise.
19946 (vreinterpretq_f32_u16): Likewise.
19947 (vreinterpretq_f32_u32): Likewise.
19948 (vreinterpretq_f32_u64): Likewise.
19949 (vreinterpretq_f32_p8): Likewise.
19950 (vreinterpretq_f32_p16): Likewise.
19951 (vreinterpret_s64_s8): Likewise.
19952 (vreinterpret_s64_s16): Likewise.
19953 (vreinterpret_s64_s32): Likewise.
19954 (vreinterpret_s64_f32): Likewise.
19955 (vreinterpret_s64_u8): Likewise.
19956 (vreinterpret_s64_u16): Likewise.
19957 (vreinterpret_s64_u32): Likewise.
19958 (vreinterpret_s64_u64): Likewise.
19959 (vreinterpret_s64_p8): Likewise.
19960 (vreinterpret_s64_p16): Likewise.
19961 (vreinterpretq_s64_s8): Likewise.
19962 (vreinterpretq_s64_s16): Likewise.
19963 (vreinterpretq_s64_s32): Likewise.
19964 (vreinterpretq_s64_f32): Likewise.
19965 (vreinterpretq_s64_u8): Likewise.
19966 (vreinterpretq_s64_u16): Likewise.
19967 (vreinterpretq_s64_u32): Likewise.
19968 (vreinterpretq_s64_u64): Likewise.
19969 (vreinterpretq_s64_p8): Likewise.
19970 (vreinterpretq_s64_p16): Likewise.
19971 (vreinterpret_u64_s8): Likewise.
19972 (vreinterpret_u64_s16): Likewise.
19973 (vreinterpret_u64_s32): Likewise.
19974 (vreinterpret_u64_s64): Likewise.
19975 (vreinterpret_u64_f32): Likewise.
19976 (vreinterpret_u64_u8): Likewise.
19977 (vreinterpret_u64_u16): Likewise.
19978 (vreinterpret_u64_u32): Likewise.
19979 (vreinterpret_u64_p8): Likewise.
19980 (vreinterpret_u64_p16): Likewise.
19981 (vreinterpretq_u64_s8): Likewise.
19982 (vreinterpretq_u64_s16): Likewise.
19983 (vreinterpretq_u64_s32): Likewise.
19984 (vreinterpretq_u64_s64): Likewise.
19985 (vreinterpretq_u64_f32): Likewise.
19986 (vreinterpretq_u64_u8): Likewise.
19987 (vreinterpretq_u64_u16): Likewise.
19988 (vreinterpretq_u64_u32): Likewise.
19989 (vreinterpretq_u64_p8): Likewise.
19990 (vreinterpretq_u64_p16): Likewise.
19991 (vreinterpret_s8_s16): Likewise.
19992 (vreinterpret_s8_s32): Likewise.
19993 (vreinterpret_s8_s64): Likewise.
19994 (vreinterpret_s8_f32): Likewise.
19995 (vreinterpret_s8_u8): Likewise.
19996 (vreinterpret_s8_u16): Likewise.
19997 (vreinterpret_s8_u32): Likewise.
19998 (vreinterpret_s8_u64): Likewise.
19999 (vreinterpret_s8_p8): Likewise.
20000 (vreinterpret_s8_p16): Likewise.
20001 (vreinterpretq_s8_s16): Likewise.
20002 (vreinterpretq_s8_s32): Likewise.
20003 (vreinterpretq_s8_s64): Likewise.
20004 (vreinterpretq_s8_f32): Likewise.
20005 (vreinterpretq_s8_u8): Likewise.
20006 (vreinterpretq_s8_u16): Likewise.
20007 (vreinterpretq_s8_u32): Likewise.
20008 (vreinterpretq_s8_u64): Likewise.
20009 (vreinterpretq_s8_p8): Likewise.
20010 (vreinterpretq_s8_p16): Likewise.
20011 (vreinterpret_s16_s8): Likewise.
20012 (vreinterpret_s16_s32): Likewise.
20013 (vreinterpret_s16_s64): Likewise.
20014 (vreinterpret_s16_f32): Likewise.
20015 (vreinterpret_s16_u8): Likewise.
20016 (vreinterpret_s16_u16): Likewise.
20017 (vreinterpret_s16_u32): Likewise.
20018 (vreinterpret_s16_u64): Likewise.
20019 (vreinterpret_s16_p8): Likewise.
20020 (vreinterpret_s16_p16): Likewise.
20021 (vreinterpretq_s16_s8): Likewise.
20022 (vreinterpretq_s16_s32): Likewise.
20023 (vreinterpretq_s16_s64): Likewise.
20024 (vreinterpretq_s16_f32): Likewise.
20025 (vreinterpretq_s16_u8): Likewise.
20026 (vreinterpretq_s16_u16): Likewise.
20027 (vreinterpretq_s16_u32): Likewise.
20028 (vreinterpretq_s16_u64): Likewise.
20029 (vreinterpretq_s16_p8): Likewise.
20030 (vreinterpretq_s16_p16): Likewise.
20031 (vreinterpret_s32_s8): Likewise.
20032 (vreinterpret_s32_s16): Likewise.
20033 (vreinterpret_s32_s64): Likewise.
20034 (vreinterpret_s32_f32): Likewise.
20035 (vreinterpret_s32_u8): Likewise.
20036 (vreinterpret_s32_u16): Likewise.
20037 (vreinterpret_s32_u32): Likewise.
20038 (vreinterpret_s32_u64): Likewise.
20039 (vreinterpret_s32_p8): Likewise.
20040 (vreinterpret_s32_p16): Likewise.
20041 (vreinterpretq_s32_s8): Likewise.
20042 (vreinterpretq_s32_s16): Likewise.
20043 (vreinterpretq_s32_s64): Likewise.
20044 (vreinterpretq_s32_f32): Likewise.
20045 (vreinterpretq_s32_u8): Likewise.
20046 (vreinterpretq_s32_u16): Likewise.
20047 (vreinterpretq_s32_u32): Likewise.
20048 (vreinterpretq_s32_u64): Likewise.
20049 (vreinterpretq_s32_p8): Likewise.
20050 (vreinterpretq_s32_p16): Likewise.
20051 (vreinterpret_u8_s8): Likewise.
20052 (vreinterpret_u8_s16): Likewise.
20053 (vreinterpret_u8_s32): Likewise.
20054 (vreinterpret_u8_s64): Likewise.
20055 (vreinterpret_u8_f32): Likewise.
20056 (vreinterpret_u8_u16): Likewise.
20057 (vreinterpret_u8_u32): Likewise.
20058 (vreinterpret_u8_u64): Likewise.
20059 (vreinterpret_u8_p8): Likewise.
20060 (vreinterpret_u8_p16): Likewise.
20061 (vreinterpretq_u8_s8): Likewise.
20062 (vreinterpretq_u8_s16): Likewise.
20063 (vreinterpretq_u8_s32): Likewise.
20064 (vreinterpretq_u8_s64): Likewise.
20065 (vreinterpretq_u8_f32): Likewise.
20066 (vreinterpretq_u8_u16): Likewise.
20067 (vreinterpretq_u8_u32): Likewise.
20068 (vreinterpretq_u8_u64): Likewise.
20069 (vreinterpretq_u8_p8): Likewise.
20070 (vreinterpretq_u8_p16): Likewise.
20071 (vreinterpret_u16_s8): Likewise.
20072 (vreinterpret_u16_s16): Likewise.
20073 (vreinterpret_u16_s32): Likewise.
20074 (vreinterpret_u16_s64): Likewise.
20075 (vreinterpret_u16_f32): Likewise.
20076 (vreinterpret_u16_u8): Likewise.
20077 (vreinterpret_u16_u32): Likewise.
20078 (vreinterpret_u16_u64): Likewise.
20079 (vreinterpret_u16_p8): Likewise.
20080 (vreinterpret_u16_p16): Likewise.
20081 (vreinterpretq_u16_s8): Likewise.
20082 (vreinterpretq_u16_s16): Likewise.
20083 (vreinterpretq_u16_s32): Likewise.
20084 (vreinterpretq_u16_s64): Likewise.
20085 (vreinterpretq_u16_f32): Likewise.
20086 (vreinterpretq_u16_u8): Likewise.
20087 (vreinterpretq_u16_u32): Likewise.
20088 (vreinterpretq_u16_u64): Likewise.
20089 (vreinterpretq_u16_p8): Likewise.
20090 (vreinterpretq_u16_p16): Likewise.
20091 (vreinterpret_u32_s8): Likewise.
20092 (vreinterpret_u32_s16): Likewise.
20093 (vreinterpret_u32_s32): Likewise.
20094 (vreinterpret_u32_s64): Likewise.
20095 (vreinterpret_u32_f32): Likewise.
20096 (vreinterpret_u32_u8): Likewise.
20097 (vreinterpret_u32_u16): Likewise.
20098 (vreinterpret_u32_u64): Likewise.
20099 (vreinterpret_u32_p8): Likewise.
20100 (vreinterpret_u32_p16): Likewise.
20101 (vreinterpretq_u32_s8): Likewise.
20102 (vreinterpretq_u32_s16): Likewise.
20103 (vreinterpretq_u32_s32): Likewise.
20104 (vreinterpretq_u32_s64): Likewise.
20105 (vreinterpretq_u32_f32): Likewise.
20106 (vreinterpretq_u32_u8): Likewise.
20107 (vreinterpretq_u32_u16): Likewise.
20108 (vreinterpretq_u32_u64): Likewise.
20109 (vreinterpretq_u32_p8): Likewise.
20110 (vreinterpretq_u32_p16): Likewise.
20112 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20114 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
20116 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
20118 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
20119 (vqnegd_s64): Likewise.
20120 (vqabs_s64): Likewise.
20121 (vqabsd_s64): Likewise.
20123 2014-04-22 Richard Henderson <rth@redhat.com>
20125 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
20126 computation to the top of the loop.
20128 2014-04-22 Renlin <renlin.li@arm.com>
20129 Jiong Wang <jiong.wang@arm.com>
20131 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
20132 * config/aarch64/aarch64.c (aarch64_layout_frame)
20133 (aarch64_initial_elimination_offset): Likewise.
20135 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
20137 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
20140 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
20142 * machmode.h (bitwise_mode_for_mode): Declare.
20143 * stor-layout.h (bitwise_type_for_mode): Likewise.
20144 * stor-layout.c (bitwise_mode_for_mode): New function.
20145 (bitwise_type_for_mode): Likewise.
20146 * builtins.c (fold_builtin_memory_op): Use it instead of
20147 int_mode_for_mode and build_nonstandard_integer_type.
20149 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20151 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
20152 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
20153 (*-*-solaris2*): Simplify.
20154 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
20155 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
20156 *-*-solaris2.9* handling.
20158 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
20160 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
20161 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
20162 handling, simplify.
20163 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
20164 * configure: Regenerate.
20166 * config/i386/sol2-9.h: Remove.
20168 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
20169 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
20170 Remove Solaris 9 references.
20172 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
20174 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
20175 (floatuns<GPI:mode><GPF:mode>2): Remove.
20176 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
20177 and floatuns conversions.
20178 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
20179 and floatuns conversions.
20180 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
20181 (w1,w2): New mode attributes for inequal width conversions.
20183 2014-04-22 Renlin Li <Renlin.Li@arm.com>
20185 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
20186 the output asm format.
20188 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
20190 * config/aarch64/aarch64-simd.md
20191 (aarch64_cm<optab>di): Always split.
20192 (*aarch64_cm<optab>di): New.
20193 (aarch64_cmtstdi): Always split.
20194 (*aarch64_cmtstdi): New.
20196 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20198 PR tree-optimization/60823
20199 * omp-low.c (ipa_simd_modify_function_body): Go through
20200 all SSA_NAMEs and for those refering to vector arguments
20201 which are going to be replaced adjust SSA_NAME_VAR and,
20202 if it is a default definition, change it into a non-default
20203 definition assigned at the beginning of function from new_decl.
20204 (ipa_simd_modify_stmt_ops): Rewritten.
20205 * tree-dfa.c (set_ssa_default_def): When removing default def,
20206 check for NULL loc instead of NULL *loc.
20208 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20210 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20211 restrictions on core registers for DImode values in Thumb2.
20213 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20215 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20216 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20218 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20220 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20221 (*iordi_notzesidi_di): Likewise.
20222 (*iordi_notsesidi_di): Likewise.
20224 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20226 * config/arm/arm-protos.h (tune_params): New struct members.
20227 * config/arm/arm.c: Initialise tune_params per processor.
20228 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20229 for speed, based on new tune_params.
20231 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20233 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20234 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20235 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20236 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20237 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20238 (vrnda_f64): Likewise.
20239 (vrndi_f64): Likewise.
20240 (vrndm_f64): Likewise.
20241 (vrndn_f64): Likewise.
20242 (vrndp_f64): Likewise.
20243 (vrndx_f64): Likewise.
20245 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20247 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20248 GET_MODE_SIZE argument is enum machine_mode.
20250 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20253 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20254 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20256 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20258 PR middle-end/60281
20259 * asan.c (asan_emit_stack_protection): Force the base to align to
20260 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20261 appropriate bits if STRICT_ALIGNMENT.
20262 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20264 (expand_used_vars): Leave a space in the stack frame for alignment
20265 if STRICT_ALIGNMENT.
20267 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20269 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20271 (gimple_store_p): Likewise.
20272 (gimple_assign_load_p): Likewise.
20273 (gimple_assign_cast_p): Likewise.
20274 (gimple_clobber_p): Likewise.
20276 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20277 rather than a gimple.
20278 (gimple_assign_cast_p): Likewise.
20280 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20283 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20284 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20286 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20287 more debug information for E500 if -mdebug=reg.
20289 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20292 * config/i386/i386.c (ix86_expand_builtin)
20293 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20294 register for target RTX.
20295 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20297 2014-04-18 Cong Hou <congh@google.com>
20299 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20300 the widen-mult pattern by handling two operands with different sizes,
20301 and operands whose size is smaller than half of the result type.
20303 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20305 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20306 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20307 (do_estimate_edge_time): Compute it.
20308 * ipa-inline.c (want_inline_small_function_p): Bypass
20309 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20311 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20313 * ipa-inline.c (spec_rem): New static variable.
20314 (dump_overall_stats): New function.
20315 (dump_inline_stats): New function.
20317 2014-04-18 Richard Henderson <rth@redhat.com>
20319 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20320 to GET_MODE_SIZE, not a reg_class_t.
20322 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20324 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20325 (vsx_xxmrglw_<mode>): Likewise.
20327 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20330 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20331 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20332 (rs6000_init_hard_regno_mode_ok): Likewise.
20334 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20336 * ipa-inline.c (inline_small_functions): Account only non-cold
20338 * doc/invoke.texi (inline-unit-growth): Update documentation.
20340 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20342 * config/rs6000/rs6000.md (addti3, subti3): New.
20344 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20347 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20348 comment. Check optimize_insn_for_size_p instead of
20349 optimize_insn_for_speed_p.
20351 2014-04-17 Martin Jambor <mjambor@suse.cz>
20353 * gimple-iterator.c (gsi_start_edge): New function.
20354 * gimple-iterator.h (gsi_start_edge): Declare.
20355 * tree-sra.c (single_non_eh_succ): New function.
20356 (disqualify_ops_if_throwing_stmt): Renamed to
20357 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20358 having one non-EH successor BB.
20359 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20360 generate loads into replacements.
20361 (sra_modify_assign): Likewise and and also use the simple path for
20363 (sra_modify_function_body): Commit statements on edges.
20365 2014-04-17 Richard Biener <rguenther@suse.de>
20367 PR middle-end/60849
20368 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20369 comparison results and add clarifying comment.
20371 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20373 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20374 (blank_mode): Initialize it.
20375 (emit_mode_size_inline, emit_mode_nunits_inline,
20376 emit_mode_inner_inline): New functions.
20377 (emit_insn_modes_h): Call them and surround their output with
20378 #if GCC_VERSION >= 4001 ... #endif.
20379 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20380 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20381 mode_* arrays if the argument is __builtin_constant_p.
20382 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20383 is enum machine_mode.
20385 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20387 * passes.c (opt_pass::execute): Adjust.
20388 (pass_manager::execute_pass_mode_switching): Likewise.
20389 (early_local_passes::execute): Likewise.
20390 (execute_one_pass): Pass cfun to the pass's execute method.
20391 * tree-pass.h (opt_pass::execute): Add function * argument.
20392 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20393 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20394 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20395 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20396 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20397 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20398 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20399 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20400 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20401 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20402 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20403 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20404 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20405 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20406 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20407 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20408 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20409 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20410 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20411 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20412 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20413 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20414 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20415 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20416 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20417 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20418 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20419 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20420 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20423 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20425 * passes.c (opt_pass::gate): Take function * argument.
20426 (gate_all_early_local_passes): Merge into
20427 (early_local_passes::gate): this.
20428 (gate_all_early_optimizations): Merge into
20429 (all_early_optimizations::gate): this.
20430 (gate_all_optimizations): Mege into
20431 (all_optimizations::gate): this.
20432 (gate_all_optimizations_g): Merge into
20433 (all_optimizations_g::gate): this.
20434 (gate_rest_of_compilation): Mege into
20435 (rest_of_compilation::gate): this.
20436 (gate_postreload): Merge into
20437 (postreload::gate): this.
20438 (dump_one_pass): Pass cfun to the pass's gate method.
20439 (execute_ipa_summary_passes): Likewise.
20440 (execute_one_pass): Likewise.
20441 (ipa_write_summaries_2): Likewise.
20442 (ipa_write_optimization_summaries_1): Likewise.
20443 (ipa_read_summaries_1): Likewise.
20444 (ipa_read_optimization_summaries_1): Likewise.
20445 (execute_ipa_stmt_fixups): Likewise.
20446 * tree-pass.h (opt_pass::gate): Add function * argument.
20447 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20448 combine-stack-adj.c, combine.c, compare-elim.c,
20449 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20450 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20451 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20452 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20453 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20454 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20455 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20456 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20457 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20458 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20459 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20460 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20461 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20462 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20463 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20464 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20465 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20466 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20467 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20468 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20469 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20470 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20471 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20472 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20473 var-tracking.c, vtable-verify.c, web.c: Adjust.
20475 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20477 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20478 * configure: Regenerate.
20480 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20482 * passes.c (dump_one_pass): don't check pass->has_gate.
20483 (execute_ipa_summary_passes): Likewise.
20484 (execute_one_pass): Likewise.
20485 (ipa_write_summaries_2): Likewise.
20486 (ipa_write_optimization_summaries_1): Likewise.
20487 (ipa_read_optimization_summaries_1): Likewise.
20488 (execute_ipa_stmt_fixups): Likewise.
20489 * tree-pass.h (pass_data::has_gate): Remove.
20490 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20491 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20492 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20493 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20494 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20495 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20496 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20497 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20498 gimple-low.c, gimple-ssa-isolate-paths.c,
20499 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20500 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20501 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20502 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20503 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20504 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20505 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20506 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20507 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20508 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20509 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20510 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20511 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20512 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20513 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20514 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20515 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20516 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20517 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20518 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20519 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20520 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20523 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20525 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20527 * passes.c (pass_manager::register_dump_files_1): Merge into
20528 (pass_manager::register_dump_files): this, and remove its handling of
20529 properties since the pass always has the properties anyway.
20530 (pass_manager::pass_manager): Adjust.
20532 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20534 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20535 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20536 dealing with properties.
20537 (pass_manager::register_dump_files): Adjust.
20539 2014-03-20 Mark Wielaard <mjw@redhat.com>
20541 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20542 then represent the bound as normal constant value.
20544 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20547 Forward port from 4.8 branch
20548 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20550 * config/i386/bmiintrin.h (_blsi_u32): New.
20551 (_blsi_u64): Ditto.
20552 (_blsr_u32): Ditto.
20553 (_blsr_u64): Ditto.
20554 (_blsmsk_u32): Ditto.
20555 (_blsmsk_u64): Ditto.
20556 (_tzcnt_u32): Ditto.
20557 (_tzcnt_u64): Ditto.
20559 2014-04-17 Kito Cheng <kito@0xlab.org>
20561 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20563 2014-04-17 Richard Biener <rguenther@suse.de>
20565 PR middle-end/60849
20566 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20567 boolean results for comparisons.
20569 2014-04-17 Richard Biener <rguenther@suse.de>
20571 PR tree-optimization/60836
20572 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20573 initial PHI args to be gimple values.
20575 2014-04-17 Richard Biener <rguenther@suse.de>
20577 PR tree-optimization/60841
20578 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20579 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20580 of stmts to SLP build.
20581 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20582 (vect_analyze_slp): Likewise.
20583 (vect_analyze_slp_instance): Likewise.
20584 (vect_build_slp_tree): Limit overall SLP tree growth.
20585 * tree-vectorizer.h (vect_analyze_data_refs,
20586 vect_analyze_slp): Adjust prototypes.
20588 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20590 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20593 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20595 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20596 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20597 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20598 for TARGET_SLOW_PSHUFB
20600 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20602 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20603 * config/i386/i386.c (intel_cost): Ditto.
20605 2014-04-17 Joey Ye <joey.ye@arm.com>
20607 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20609 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20611 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20612 with -fuse-profile.
20614 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20616 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20617 (type_all_derivations_known_p): New predicate.
20618 (type_all_ctors_visible_p): New predicate.
20619 (type_possibly_instantiated_p): New predicate.
20620 (get_odr_type): Compute all_derivations_known.
20621 (dump_odr_type): Dump the flag.
20622 (maybe_record_type): Cleanup.
20623 (record_target_from_binfo): Add bases_to_consider array;
20624 record bases for types w/o instances and skip CXX destructor.
20625 (possible_polymorphic_call_targets_1): Add bases_to_consider
20626 and consider_construction parameters; check if type may have instance.
20627 (get_polymorphic_call_info): Set maybe_in_construction to true
20628 when we know nothing.
20629 (record_targets_from_bases): Skip CXX destructors; they are
20630 never called for types in construction.
20631 (possible_polymorphic_call_targets): Do not record target when
20632 type may not have instance.
20634 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20637 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20638 external aliases alive, too.
20640 2014-04-16 Andrew Pinski <apinski@cavium.com>
20642 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20645 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20647 * final.c (compute_alignments): Do not apply loop alignment to a block
20648 falling through to the exit.
20650 2014-04-16 Catherine Moore <clm@codesourcery.com>
20652 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20653 Adjust constraints for microMIPS store patterns.
20655 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20657 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20659 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20661 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20662 (append_use): Run at -O0.
20663 (append_vdef): Likewise.
20664 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20665 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20667 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20669 PR tree-optimization/60844
20670 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20671 (propagate_op_to_single_use, remove_visited_stmt_chain,
20672 linearize_expr, repropagate_negates, reassociate_bb): Use it
20673 instead of gsi_remove.
20675 2014-04-16 Martin Jambor <mjambor@suse.cz>
20677 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20678 ipa_transforms_to_apply.
20679 (cgraph_function_versioning): Assert that old_node has empty
20680 ipa_transforms_to_apply.
20681 * trans-mem.c (ipa_tm_create_version): Likewise.
20682 * tree-inline.c (tree_function_versioning): Do not duplicate
20683 ipa_transforms_to_apply.
20685 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20688 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20690 Pass necessary as flags on 64-bit Solaris/x86.
20691 Use lowercase relocs for x86_64-*-*.
20692 * configure: Regenerate.
20694 2014-04-15 Jan Hubicka <jh@suse.cz>
20696 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20697 (maybe_record_node, likely_target_p): Use it.
20699 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20702 Revert following patch
20704 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20707 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20708 software floating point or no floating point registers, do not
20709 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20710 in GPRs that occurs after we tested for GPRs that would never be
20713 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20714 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20715 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20716 specifically allow DDmode, since that does not use the SPE SIMD
20719 2014-03-21 Mark Wielaard <mjw@redhat.com>
20721 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20722 as unsigned or int depending on type and value used.
20724 2014-04-15 Richard Biener <rguenther@suse.de>
20726 PR rtl-optimization/56965
20727 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20728 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20730 * alias.c (true_dependence_1): Do not call
20731 nonoverlapping_component_refs_p.
20732 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20733 nonoverlapping_component_refs_p.
20734 (indirect_refs_may_alias_p): Likewise.
20736 2014-04-15 Teresa Johnson <tejohnson@google.com>
20738 * cfg.c (dump_bb_info): Fix flags check.
20739 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20741 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20743 PR rtl-optimization/60663
20744 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20747 2014-04-15 Richard Biener <rguenther@suse.de>
20749 * lto-streamer.h (LTO_major_version): Bump to 4.
20751 2014-04-15 Richard Biener <rguenther@suse.de>
20753 * common.opt (lto_partition_model): New enum.
20754 (flto-partition=): Merge separate options with a single with argument,
20755 add -flto-partition=one support.
20756 * flag-types.h (enum lto_partition_model): Declare.
20757 * opts.c (finish_options): Remove duplicate -flto-partition=
20759 * lto-wrapper.c (run_gcc): Adjust.
20761 2014-04-15 Richard Biener <rguenther@suse.de>
20763 * alias.c (ncr_compar): New function.
20764 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20766 2014-04-15 Richard Biener <rguenther@suse.de>
20768 * alias.c (record_component_aliases): Do not walk BINFOs.
20770 2014-04-15 Richard Biener <rguenther@suse.de>
20772 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20773 Add struct function argument and adjust.
20774 (find_func_aliases_for_call): Likewise.
20775 (find_func_aliases): Likewise.
20776 (find_func_clobbers): Likewise.
20777 (intra_create_variable_infos): Likewise.
20778 (compute_points_to_sets): Likewise.
20779 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20781 2014-04-15 Richard Biener <rguenther@suse.de>
20783 * tree.c (iterative_hash_expr): Use enum tree_code_class
20784 to store TREE_CODE_CLASS.
20785 (tree_block): Likewise.
20786 (tree_set_block): Likewise.
20787 * tree.h (fold_build_pointer_plus_loc): Use
20788 convert_to_ptrofftype_loc.
20790 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20793 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20796 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20798 * cfgloop.h (struct loop): Move force_vectorize down.
20799 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20800 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20801 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20802 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20803 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20804 * tree-core.h (enum annot_expr_kind): Add new kind values.
20805 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20806 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20808 * tree.def (ANNOTATE_EXPR): Tweak comment.
20810 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20812 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20815 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20817 * tree.h (TYPE_IDENTIFIER): Declare.
20818 * tree.c (subrange_type_for_debug_p): Use it.
20819 * godump.c (go_format_type): Likewise.
20820 * dwarf2out.c (is_cxx_auto, modified_type_die,
20821 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20822 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20824 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20827 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20829 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20831 * config/i386/i386.c (examine_argument): Return bool. Return true if
20832 parameter should be passed in memory.
20833 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20834 (construct_container): Update calls to examine_argument.
20835 (function_arg_advance_64): Ditto.
20836 (return_in_memory_32): Merge with ix86_return_in_memory.
20837 (return_in_memory_64): Ditto.
20838 (return_in_memory_ms_64): Ditto.
20840 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20842 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20843 * coverage.c (coverage_compute_profile_id): Handle externally visible
20846 2014-04-14 Martin Jambor <mjambor@suse.cz>
20848 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20849 DECL_DISREGARD_INLINE_LIMITS functions.
20851 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20854 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20856 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20859 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20860 optimize_insn_for_speed_p instead of
20861 optimize_function_for_speed_p.
20863 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20865 * doc/invoke.texi (free): Document AArch64.
20867 2014-04-14 Richard Biener <rguenther@suse.de>
20869 PR tree-optimization/60042
20870 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20871 (insert_into_preds_of_block): Do not prevent PHI insertion
20872 for REFERENCE exprs here ...
20873 (eliminate_dom_walker::before_dom_children): ... but prevent
20874 their use here under similar conditions when applied to the
20875 IL after PRE optimizations.
20877 2014-04-14 Richard Biener <rguenther@suse.de>
20879 * passes.def: Move early points-to after early SRA.
20881 2014-04-14 Richard Biener <rguenther@suse.de>
20883 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20884 check for which sign-changes we allow when forwarding
20885 a converted value into a switch.
20887 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20889 * stor-layout.c (place_field): Finalize non-constant offset for the
20892 2014-04-14 Richard Biener <rguenther@suse.de>
20894 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20896 (expand_switch_using_bit_tests_p): Likewise.
20897 (process_switch): Compute and pass on speed_p based on the
20899 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20900 optimize_bb_for_speed_p.
20902 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20904 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20905 * function.h (struct function): Rename has_force_vect_loops into
20906 has_force_vectorize_loops.
20907 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20908 (input_struct_function_base): Likewise.
20909 * lto-streamer-out.c (output_cfg): Likewise.
20910 (output_struct_function_base): Likewise.
20911 * omp-low.c (expand_omp_simd): Likewise.
20912 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20913 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20914 (version_loop_for_if_conversion): Likewise.
20915 (tree_if_conversion): Likewise.
20916 (main_tree_if_conversion): Likewise.
20917 (gate_tree_if_conversion): Likewise.
20918 * tree-inline.c (copy_loops): Likewise.
20919 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20920 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20921 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20922 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20923 * tree-vectorizer.c (vectorize_loops): Likewise.
20924 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20926 2014-04-14 Richard Biener <rguenther@suse.de>
20929 * lto-streamer-out.c (wrap_refs): New function.
20930 (lto_output): Wrap symbol references in global initializes in
20931 type-preserving MEM_REFs.
20933 2014-04-14 Christian Bruel <christian.bruel@st.com>
20935 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20937 2014-04-14 Christian Bruel <christian.bruel@st.com>
20939 * config/sh/sh.md (setmemqi): New expand pattern.
20940 * config/sh/sh.h (CLEAR_RATIO): Define.
20941 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20942 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20944 2014-04-14 Richard Biener <rguenther@suse.de>
20946 PR middle-end/55022
20947 * fold-const.c (negate_expr_p): Don't negate directional rounding
20949 (fold_negate_expr): Likewise.
20951 2014-04-14 Richard Biener <rguenther@suse.de>
20953 PR tree-optimization/59817
20954 PR tree-optimization/60453
20955 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20956 recursion to catch all CHRECs in the scalar evolution and restrict
20957 the predicate for the remains appropriately.
20959 2014-04-12 Catherine Moore <clm@codesourcery.com>
20961 * config/mips/constraints.md: Add new register constraint "kb".
20962 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20963 (*movhi_internal): Likewise.
20964 (*movqi_internal): Likewise.
20965 * config/mips/mips.h (M16_STORE_REGS): New register class.
20966 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20967 (REG_CLASS_CONTENTS): Likewise.
20968 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20970 2014-04-11 Tobias Burnus <burnus@net-b.de>
20973 * doc/invoke.texi (-Wformat-signedness): Document it.
20974 (Wformat=2): Mention that this enables -Wformat-signedness.
20976 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20978 * common/config/epiphany/epiphany-common.c
20979 (epiphany_option_optimization_table): Enable section anchors by
20980 default at -O1 or higher.
20981 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20982 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20983 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20984 carries no extra cost.
20985 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20986 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20987 * config/epiphany/predicates.md (memclob_operand): New predicate.
20988 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20989 Use memclob_operand predicate and X constraint for operand 3.
20991 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20993 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20994 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20997 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20999 PR rtl-optimization/60651
21000 * mode-switching.c (optimize_mode_switching): Make sure to emit
21001 sets of a lower numbered entity before sets of a higher numbered
21002 entity to a mode of the same or lower priority.
21003 When creating a seginfo for a basic block that starts with a code
21004 label, move the insertion point past the code label.
21005 (new_seginfo): Document and enforce requirement that
21006 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
21007 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
21008 * doc/tm.texi: Regenerate.
21010 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
21013 * config/arc/arc.c (arc_save_restore): Fix assert typo.
21015 2013-04-11 Jakub Jelinek <jakub@redhat.com>
21017 * BASE-VER: Set to 4.10.0.
21019 2014-04-11 Tobias Burnus <burnus@net-b.de>
21022 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
21023 * doc/gcc.texi (Service): Update description in the @menu
21024 * doc/invoke.texi (Option Summary): Remove misplaced and
21027 2014-04-11 Steve Ellcey <sellcey@mips.com>
21028 Jakub Jelinek <jakub@redhat.com>
21030 PR middle-end/60556
21031 * expr.c (convert_move): Use emit_store_flag_force instead of
21032 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
21035 2014-04-11 Richard Biener <rguenther@suse.de>
21037 PR middle-end/60797
21038 * varasm.c (assemble_alias): Avoid endless error reporting
21039 recursion by setting TREE_ASM_WRITTEN.
21041 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21043 * config/s390/s390.md: Add a splitter for NOT rtx.
21045 2014-04-11 Jakub Jelinek <jakub@redhat.com>
21047 PR rtl-optimization/60663
21048 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
21050 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
21051 Jakub Jelinek <jakub@redhat.com>
21054 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
21055 flag from decl_node to node.
21057 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21060 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
21061 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
21062 ameliorating the cases where it can be.
21064 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
21067 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
21069 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21070 (loadsync_<mode>): Change mode.
21071 (load_quadpti, store_quadpti): New.
21072 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21073 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21074 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
21076 2014-04-09 Cong Hou <congh@google.com>
21079 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
21082 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21084 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
21085 instead of vnor to exploit possible fusion opportunity in the
21087 (altivec_expand_vec_perm_const_le): Likewise.
21089 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
21091 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21092 (loadsync_<mode>): Change mode.
21093 (load_quadpti, store_quadpti): New.
21094 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21095 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21097 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
21100 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
21101 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
21102 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
21104 2014-04-08 Richard Biener <rguenther@suse.de>
21106 PR middle-end/60706
21107 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
21108 a 64bit widest int print double-int similar to on HWI64 hosts.
21110 2014-04-08 Richard Biener <rguenther@suse.de>
21112 PR tree-optimization/60785
21113 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
21114 default defs properly.
21116 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
21118 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
21119 (Weffc++): Likewise.
21121 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
21123 * ipa-devirt.c (maybe_record_node): When node is not recorded,
21124 set completep to false rather than true.
21126 2014-04-07 Douglas B Rupp <rupp@adacore.com>
21129 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
21130 ARM_TARGET2_DWARF_FORMAT.
21132 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
21135 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
21136 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
21139 2014-04-07 Richard Biener <rguenther@suse.de>
21141 PR tree-optimization/60766
21142 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
21143 (may_eliminate_iv): Convert cand_value_at result to desired type.
21145 2014-04-07 Jason Merrill <jason@redhat.com>
21148 * common.opt (-fno-gnu-unique): Add.
21149 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
21151 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21153 * haifa-sched.c: Fix outdated function reference and minor
21154 grammar errors in introductory comment.
21156 2014-04-07 Richard Biener <rguenther@suse.de>
21158 PR middle-end/60750
21159 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
21160 for noreturn calls.
21161 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
21163 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
21166 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
21167 size accounting for thunks.
21168 (pa_asm_output_mi_thunk): Use final_start_function() and
21169 final_end_function() to output function start and end directives.
21171 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21173 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
21174 device specific ISA/ feature information. Remove short_sp and
21175 errata_skip ds. Add avr_device_specific_features enum to have device
21177 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
21178 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
21179 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
21180 updated device specific info.
21181 * config/avr/avr-mcus.def: Merge device specific details to
21182 dev_attribute field.
21183 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
21185 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
21186 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
21187 assembler if RMW isa supported by current device.
21188 * config/avr/genmultilib.awk: Update as device info structure changed.
21189 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
21191 2014-04-04 Cong Hou <congh@google.com>
21193 PR tree-optimization/60656
21194 * tree-vect-stmts.c (supportable_widening_operation):
21195 Fix a bug that elements in a vector with vect_used_by_reduction
21196 property are incorrectly reordered when the operation on it is not
21197 consistant with the one in reduction operation.
21199 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21201 PR rtl-optimization/60155
21202 * gcse.c (record_set_data): New function.
21203 (single_set_gcse): New function.
21204 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21205 (hoist_code): Likewise.
21206 (get_pressure_class_and_nregs): Likewise.
21208 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21210 * explow.c (probe_stack_range): Emit a final optimization blockage.
21212 2014-04-04 Anthony Green <green@moxielogic.com>
21214 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21217 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21220 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21221 flags are set only during streaming.
21222 * ipa.c (process_references, walk_polymorphic_call_targets,
21223 symtab_remove_unreachable_nodes): Drop bodies of always inline
21224 after early inlining.
21225 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21227 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21228 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21231 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21234 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21237 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21239 (cortex_a53_fdivd): Likewise.
21241 2014-04-04 Martin Jambor <mjambor@suse.cz>
21244 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21245 Adjust all callers.
21246 * cgraph.c (clone_of_p): Also return true if thunks match.
21247 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21248 cgraph_function_or_thunk_node and an obsolete comment.
21249 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21251 (build_function_decl_skip_args): Likewise.
21252 (set_new_clone_decl_and_node_flags): New function.
21253 (duplicate_thunk_for_node): Likewise.
21254 (redirect_edge_duplicating_thunks): Likewise.
21255 (cgraph_clone_node): New parameter args_to_skip, pass it to
21256 redirect_edge_duplicating_thunks which is called instead of
21257 cgraph_redirect_edge_callee.
21258 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21259 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21261 2014-04-04 Jeff Law <law@redhat.com>
21264 * config/arm/predicates.md (const_int_I_operand): New predicate.
21265 (const_int_M_operand): Similarly.
21266 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21268 (insv_t2, extv_reg, extzv_t2): Likewise.
21269 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21270 (pop_multiple_with_writeback_and_return): Likewise.
21271 (vfp_pop_multiple_with_writeback): Likewise
21273 2014-04-04 Richard Biener <rguenther@suse.de>
21276 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21277 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21279 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21280 * gimplify.c (gimple_add_tmp_var_fn): New function.
21281 * gimple-expr.h (create_tmp_reg_fn): Declare.
21282 * gimple-expr.c (create_tmp_reg_fn): New function.
21283 * gimple-low.c (record_vars_into): Don't change cfun.
21284 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21285 code generation without cfun.
21287 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21290 * Makefile.in (install-driver): Fix shell scripting.
21292 2014-04-03 Cong Hou <congh@google.com>
21294 PR tree-optimization/60505
21295 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21296 threshold of number of iterations below which no vectorization
21298 * tree-vect-loop.c (new_loop_vec_info):
21299 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21300 * tree-vect-loop.c (vect_analyze_loop_operations):
21301 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21302 * tree-vect-loop.c (vect_transform_loop):
21303 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21304 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21305 of iterations of the loop and see if we should build the epilogue.
21307 2014-04-03 Richard Biener <rguenther@suse.de>
21309 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21310 (streamer_tree_cache_create): Adjust.
21311 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21312 to allow optional nodes array.
21313 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21314 (streamer_tree_cache_append): Likewise.
21315 (streamer_tree_cache_create): Create nodes array optionally
21316 as specified by parameter.
21317 * lto-streamer-out.c (create_output_block): Avoid maintaining
21318 the node array in the writer cache.
21319 (DFS_write_tree): Remove assertion.
21320 (produce_asm_for_decls): Free the out decl state hash table early.
21321 * lto-streamer-in.c (lto_data_in_create): Adjust for
21322 streamer_tree_cache_create prototype change.
21324 2014-04-03 Richard Biener <rguenther@suse.de>
21326 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21327 set TREE_CHAIN to NULL_TREE.
21329 2014-04-03 Richard Biener <rguenther@suse.de>
21331 PR tree-optimization/60740
21332 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21333 over all GIMPLE_COND operands.
21335 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21337 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21338 (Weffc++): Remove Scott's numbering, merge lists and reference
21341 2014-04-03 Nick Clifton <nickc@redhat.com>
21343 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21346 2014-04-03 Martin Jambor <mjambor@suse.cz>
21348 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21349 mention gcc_unreachable before failing.
21350 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21353 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21356 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21357 inconsistent code and instead mark the context inconsistent.
21358 (possible_polymorphic_call_targets): For inconsistent contexts
21359 return empty complete list.
21361 2014-04-02 Anthony Green <green@moxielogic.com>
21363 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21364 (extendqisi2, extendhisi2): Define.
21365 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21366 (WCHAR_TYPE): Change to unsigned int.
21368 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21370 PR tree-optimization/60733
21371 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21372 insertion point for PHI candidates to be the end of the feeding
21373 block for the PHI argument.
21375 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21377 PR rtl-optimization/60650
21378 * lra-constraints.c (process_alt_operands): Decrease reject for
21379 earlyclobber matching.
21381 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21383 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21385 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21387 * config/spu/spu.c (pad_bb): Do not crash when the last
21388 insn is CODE_FOR_blockage.
21390 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21392 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21393 lies outside the target mode.
21395 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21398 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21399 software floating point or no floating point registers, do not
21400 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21401 in GPRs that occurs after we tested for GPRs that would never be
21404 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21405 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21406 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21407 specifically allow DDmode, since that does not use the SPE SIMD
21410 2014-04-02 Richard Biener <rguenther@suse.de>
21412 PR middle-end/60729
21413 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21414 MODE_INTs. Properly use negv_optab.
21415 (expand_abs): Likewise.
21417 2014-04-02 Richard Biener <rguenther@suse.de>
21420 * Makefile.in (install-driver): Guard extra installs with special
21423 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21425 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21426 Document vec_vgbbd.
21428 2014-04-01 Richard Henderson <rth@redhat.com>
21431 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21432 alternative enabled before register allocation.
21434 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21436 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21437 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21439 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21440 (nios2_got_address): Update nios2_large_got_address call site.
21441 (nios2_delegitimize_address): New function.
21442 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21443 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21444 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21446 2014-04-01 Martin Husemann <martin@duskware.de>
21448 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21451 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21453 PR rtl-optimization/60604
21454 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21455 check from register_operand.
21456 (register_operand): Redefine in terms of general_operand.
21457 (nonmemory_operand): Use register_operand for the non-constant cases.
21459 2014-04-01 Richard Biener <rguenther@suse.de>
21461 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21463 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21465 * doc/invoke.texi (mapp-regs): Clarify.
21467 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21469 * config/i386/avx512fintrin.h (__v32hi): Define type.
21470 (__v64qi): Likewise.
21471 (_mm512_set1_epi8): Define.
21472 (_mm512_set1_epi16): Define.
21473 (_mm512_set4_epi32): Define.
21474 (_mm512_set4_epi64): Define.
21475 (_mm512_set4_pd): Define.
21476 (_mm512_set4_ps): Define.
21477 (_mm512_setr4_epi64): Define.
21478 (_mm512_setr4_epi32): Define.
21479 (_mm512_setr4_pd): Define.
21480 (_mm512_setr4_ps): Define.
21481 (_mm512_setzero_epi32): Define.
21483 2014-03-31 Martin Jambor <mjambor@suse.cz>
21485 PR middle-end/60647
21486 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21487 callsite_arguments_match_p. Updated all callers. Also check types of
21488 corresponding formal parameters and actual arguments.
21489 (not_all_callers_have_enough_arguments_p) Renamed to
21490 some_callers_have_mismatched_arguments_p.
21492 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21494 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21496 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21499 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21502 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21504 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21505 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21507 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21508 Use FMAMODE_NOVF512 mode iterator.
21509 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21510 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21511 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21512 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21514 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21515 Use VF_128_256 mode iterator.
21516 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21519 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21521 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21522 static chain if needed.
21524 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21527 * lra-constraints.c (index_part_to_reg): New.
21528 (process_address): Use it.
21530 2014-03-27 Jeff Law <law@redhat.com>
21531 Jakub Jelinek <jakub@redhat.com>
21534 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21535 gen_rtx_{PLUS,MULT} to build up the address expression.
21537 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21538 creating non-canonical RTL.
21540 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21543 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21544 functions; reorganize to make cheap checks first.
21545 (inline_small_functions): Do not estimate growth when dumping;
21547 * ipa-inline.h (inline_summary): Add min_size.
21548 (growth_likely_positive): New function.
21549 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21550 (set_cond_stmt_execution_predicate): Cleanup.
21551 (estimate_edge_size_and_time): Compute min_size.
21552 (estimate_calls_size_and_time): Likewise.
21553 (estimate_node_size_and_time): Likewise.
21554 (inline_update_overall_summary): Update min_size.
21555 (do_estimate_edge_time): Likewise.
21556 (do_estimate_edge_size): Update.
21557 (do_estimate_edge_hints): Update.
21558 (growth_likely_positive): New function.
21560 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21563 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21564 also if addr has VOIDmode.
21566 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21568 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21569 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21571 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21572 instructions as well as AdvancedSIMD loads.
21574 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21576 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21577 Use crypto_aese type.
21578 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21579 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21580 crypto_aese, crypto_aesmc. Move to types.md.
21581 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21583 * config/arm/iterators.md (crypto_type): Likewise.
21585 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21587 * cgraph.c: Include expr.h and tree-dfa.h.
21588 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21591 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21594 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21595 regs from checking multi-reg pseudos.
21597 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21599 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21601 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21603 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21604 if it would clobber the stack pointer, even temporarily.
21606 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21608 * mode-switching.c: Make small adjustments to the top comment.
21610 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21612 * config/rs6000/constraints.md (wD constraint): New constraint to
21613 match the constant integer to get the top DImode/DFmode out of a
21614 vector in a VSX register.
21616 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21617 match the constant integer to get the top DImode/DFmode out of a
21618 vector in a VSX register.
21620 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21623 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21626 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21627 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21629 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21630 Optimize vec_extract of 64-bit values, where the value being
21631 extracted is in the top word, where we can use scalar
21632 instructions. Add direct move and store support. Combine the big
21633 endian/little endian vector select load support into a single insn.
21634 (vsx_extract_<mode>_internal1): Likewise.
21635 (vsx_extract_<mode>_internal2): Likewise.
21636 (vsx_extract_<mode>_load): Likewise.
21637 (vsx_extract_<mode>_store): Likewise.
21638 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21639 combined into vsx_extract_<mode>_load.
21640 (vsx_extract_<mode>_one_le): Likewise.
21642 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21643 define the top 64-bit vector element.
21645 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21648 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21649 Document vec_vbpermq builtin.
21652 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21653 enable use of xxsldwi and xxpermdi builtin functions.
21654 (vec_xxpermdi): Likewise.
21656 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21657 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21659 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21661 PR rtl-optimization/60650
21662 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21664 (find_spills_for): New.
21665 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21666 Spill all pseudos on the second iteration.
21668 2014-03-27 Marek Polacek <polacek@redhat.com>
21671 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21674 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21676 * config/s390/s390.c (s390_can_use_return_insn): Check for
21677 call-saved FPRs on 31 bit.
21679 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21681 PR middle-end/60682
21682 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21683 if they need regimplification, just drop them instead of
21684 calling gimple_regimplify_operands on them.
21686 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21689 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21690 (aarch64_frame_pointer_required): Adjust logic.
21691 (aarch64_can_eliminate): Adjust logic.
21692 (aarch64_override_options_after_change): Adjust logic.
21694 2014-03-27 Dehao Chen <dehao@google.com>
21696 * ipa-inline.c (early_inliner): Update node's inline info.
21698 2014-03-26 Dehao Chen <dehao@google.com>
21700 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21701 compiler inserted conditional jumps for NAN float check.
21703 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21705 * ubsan.h (ubsan_create_data): Change second argument's type
21706 to const location_t *.
21707 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21709 (ubsan_create_data): Change second argument to const location_t *PLOC.
21710 Create Loc field whenever PLOC is non-NULL.
21711 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21712 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21716 * real.c (real_to_integer2): Change type of low to UHWI.
21718 2014-03-26 Tobias Burnus <burnus@net-b.de>
21720 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21721 (CILK_SELF_SPECS): New define.
21722 (driver_self_specs): Use it.
21724 2014-03-26 Richard Biener <rguenther@suse.de>
21726 * tree-pretty-print.c (percent_K_format): Implement special
21727 case for LTO and its stripped down BLOCK tree.
21729 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21732 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21734 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21735 one range is range_int_cst_p, but not both, at least optimize
21736 addition/subtraction of 0 and multiplication by 0 or 1.
21737 * gimple-fold.c (gimple_fold_call): Fold
21738 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21739 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21740 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21742 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21744 PR rtl-optimization/60452
21745 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21746 <case REG>: Return 1 for invalid offsets from the frame pointer.
21748 2014-03-26 Marek Polacek <polacek@redhat.com>
21751 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21754 2014-03-26 Marek Polacek <polacek@redhat.com>
21757 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21760 2014-03-26 Marek Polacek <polacek@redhat.com>
21763 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21764 multiplication in unsigned type.
21766 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21768 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21770 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21772 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21774 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21777 * cif-code.def (UNREACHABLE) New code.
21778 * ipa-inline.c (inline_small_functions): Skip edges to
21779 __builtlin_unreachable.
21780 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21781 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21782 predicate to __bulitin_unreachable.
21783 (set_cond_stmt_execution_predicate): Fix issue when
21784 invert_tree_comparison returns ERROR_MARK.
21785 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21786 propagate to inline clones.
21787 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21789 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21790 * cgraphclones.c (cgraph_clone_node): If call destination is already
21791 ureachable, do not redirect it back.
21792 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21795 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21797 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21798 Do not modify inline clones.
21800 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21802 * config/i386/i386.md (general_sext_operand): New mode attr.
21803 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21804 don't generate (sign_extend (const_int)).
21805 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21806 operands[2]. Use We constraint instead of <i> and
21807 <general_sext_operand> predicate instead of <general_operand>.
21808 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21809 * config/i386/constraints.md (We): New constraint.
21810 * config/i386/predicates.md (x86_64_sext_operand,
21811 sext_operand): New predicates.
21813 2014-03-25 Martin Jambor <mjambor@suse.cz>
21816 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21817 inconsistent devirtualizations to __builtin_unreachable.
21819 2014-03-25 Marek Polacek <polacek@redhat.com>
21822 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21824 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21826 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21827 order of elements for big-endian.
21829 2014-03-25 Richard Biener <rguenther@suse.de>
21831 PR middle-end/60635
21832 * gimplify-me.c (gimple_regimplify_operands): Update the
21835 2014-03-25 Martin Jambor <mjambor@suse.cz>
21838 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21839 (lto_output_varpool_node): Likewise.
21840 (input_overwrite_node): Likewise.
21841 (input_varpool_node): Likewise.
21843 2014-03-25 Richard Biener <rguenther@suse.de>
21845 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21846 (run_gcc): Likewise.
21848 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21850 * combine.c (simplify_compare_const): Add MODE argument.
21851 Handle mode_width 0 as very large mode_width.
21852 (try_combine, simplify_comparison): Adjust callers.
21854 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21855 type to avoid signed integer overflow.
21856 * explow.c (plus_constant): Likewise.
21858 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21860 * doc/generic.texi: Correct typos.
21862 2014-03-24 Tobias Burnus <burnus@net-b.de>
21864 * doc/invoke.texi (-flto): Expand section about
21865 using static libraries with LTO.
21867 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21869 PR rtl-optimization/60501
21870 * optabs.def (addptr3_optab): New optab.
21871 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21872 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21873 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21875 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21877 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21879 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21881 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21884 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21885 (_mm256_undefined_ps): Define.
21886 (_mm256_undefined_pd): Define.
21887 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21888 (_mm_undefined_pd): Define.
21889 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21890 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21891 (_mm512_undefined_ps): Define.
21892 (_mm512_undefined_pd): Define.
21893 Use _mm*_undefined_*.
21894 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21896 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21898 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21899 (lshr_simd): DI mode added.
21900 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21901 (aarch64_ushr_simddi): Likewise.
21902 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21903 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21904 (vshrd_n_u64): Likewise.
21906 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21908 * Makefile.in (s-macro_list): Depend on cc1.
21910 2014-03-23 Teresa Johnson <tejohnson@google.com>
21912 * ipa-utils.c (ipa_print_order): Use specified dump file.
21914 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21916 PR rtl-optimization/60601
21917 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21919 * gcc.c (eval_spec_function): Initialize save_growing_value.
21921 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21924 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21925 code == MINUS_EXPR, never swap op0 with op1.
21927 * toplev.c (init_local_tick): Avoid signed integer multiplication
21929 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21930 shift by first operand's bitsize.
21932 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21935 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21936 redefine to 1 or 0.
21937 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21938 TARGET_ISA_64BIT_P(x).
21940 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21942 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21943 pattern for vector nor instead of subtract from splat(-1).
21944 (altivec_expand_vec_perm_const_le): Likewise.
21946 2014-03-21 Richard Henderson <rth@twiddle.net>
21949 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21950 related insns after epilogue_completed.
21952 2014-03-21 Martin Jambor <mjambor@suse.cz>
21955 * cgraph.h (symtab_node): New flag body_removed.
21956 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21957 when removing bodies.
21958 * symtab.c (dump_symtab_base): Dump body_removed flag.
21959 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21960 had their bodies removed.
21962 2014-03-21 Martin Jambor <mjambor@suse.cz>
21965 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21968 2014-03-21 Richard Biener <rguenther@suse.de>
21970 PR tree-optimization/60577
21971 * tree-core.h (struct tree_base): Document nothrow_flag use
21972 in DECL_NONALIASED.
21973 * tree.h (DECL_NONALIASED): New.
21974 (may_be_aliased): Adjust.
21975 * coverage.c (build_var): Set DECL_NONALIASED.
21977 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21979 * expr.c (expand_expr_real_1): Remove outdated comment.
21981 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21983 PR middle-end/60597
21984 * ira.c (adjust_cleared_regs): Call copy_rtx on
21985 *reg_equiv[REGNO (loc)].src_p before passing it to
21986 simplify_replace_fn_rtx.
21989 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21990 into CONST, put pic register as first operand of PLUS. Use
21991 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21993 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21995 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21997 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21999 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
22000 around for store forwarding issue in the FPU on the UT699.
22001 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
22002 loads and operations if -mfix-ut699 is specified.
22003 (divtf3_hq): Tweak attribute.
22004 (sqrttf2_hq): Likewise.
22006 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22008 * calls.c (store_one_arg): Remove incorrect const qualification on the
22009 type of the temporary.
22010 * cfgexpand.c (expand_return): Likewise.
22011 * expr.c (expand_constructor): Likewise.
22012 (expand_expr_real_1): Likewise.
22014 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22016 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
22019 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
22022 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
22024 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
22026 * config/arm/aarch-common-protos.h
22027 (alu_cost_table): Fix spelling of "extend".
22028 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
22030 2014-03-19 Richard Biener <rguenther@suse.de>
22032 PR middle-end/60553
22033 * tree-core.h (tree_type_common): Re-order pointer members
22034 to reduce recursion depth during GC walks.
22036 2014-03-19 Marek Polacek <polacek@redhat.com>
22039 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
22040 before accessing it.
22042 2014-03-19 Richard Biener <rguenther@suse.de>
22045 * lto-streamer-in.c (input_function): In WPA stage do not drop
22048 2014-03-19 Jakub Jelinek <jakub@redhat.com>
22050 PR tree-optimization/60559
22051 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
22052 with build_zero_cst assignment.
22054 2014-03-18 Kai Tietz <ktietz@redhat.com>
22056 PR rtl-optimization/56356
22057 * sdbout.c (sdbout_parms): Verify that parms'
22058 incoming argument is valid.
22059 (sdbout_reg_parms): Likewise.
22061 2014-03-18 Richard Henderson <rth@redhat.com>
22064 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
22065 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
22066 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
22068 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
22070 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
22071 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
22072 Italicize plugin event names in description. Explain that
22073 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
22074 Remind that no GCC functions should be called after PLUGIN_FINISH.
22075 Explain what pragmas with expansion are.
22077 2014-03-18 Martin Liska <mliska@suse.cz>
22079 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
22080 gimple call statement is update.
22081 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
22082 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
22084 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22087 * ubsan.c (ubsan_instrument_unreachable): Call
22088 initialize_sanitizer_builtins.
22089 (ubsan_pass): Likewise.
22092 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
22093 varpool_finalize_decl instead of rest_of_decl_compilation.
22095 2014-03-18 Richard Biener <rguenther@suse.de>
22097 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
22098 by using bitmap_and_compl instead of bitmap_and_compl_into.
22099 (df_rd_transfer_function): Likewise.
22101 2014-03-18 Richard Biener <rguenther@suse.de>
22103 * doc/lto.texi (fresolution): Fix typo.
22105 2014-03-18 Richard Biener <rguenther@suse.de>
22107 * doc/invoke.texi (flto): Update for changes in 4.9.
22109 2014-03-18 Richard Biener <rguenther@suse.de>
22111 * doc/loop.texi: Remove section on the removed lambda framework.
22112 Update loop docs with recent changes in preserving loop structure.
22114 2014-03-18 Richard Biener <rguenther@suse.de>
22116 * doc/lto.texi (-fresolution): Document.
22118 2014-03-18 Richard Biener <rguenther@suse.de>
22120 * doc/contrib.texi: Adjust my name.
22122 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22125 * internal-fn.c: Include diagnostic-core.h.
22126 (expand_BUILTIN_EXPECT): New function.
22127 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
22128 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
22129 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
22130 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
22131 IFN_BUILTIN_EXPECT.
22132 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
22133 Revert 3 argument __builtin_expect code.
22134 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
22135 * gimple-fold.c (gimple_fold_call): Likewise.
22136 * tree.h (fold_builtin_expect): New prototype.
22137 * builtins.c (build_builtin_expect_predicate): Add predictor
22138 argument, if non-NULL, create 3 argument __builtin_expect.
22139 (fold_builtin_expect): No longer static. Add ARG2 argument,
22140 pass it through to build_builtin_expect_predicate.
22141 (fold_builtin_2): Adjust caller.
22142 (fold_builtin_3): Handle BUILT_IN_EXPECT.
22143 * internal-fn.def (BUILTIN_EXPECT): New.
22145 2014-03-18 Tobias Burnus <burnus@net-b.de>
22148 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
22149 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
22150 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
22152 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
22155 * predict.c (combine_predictions_for_bb): Fix up formatting.
22156 (expr_expected_value_1, expr_expected_value): Add predictor argument,
22157 fill what it points to if non-NULL.
22158 (tree_predict_by_opcode): Adjust caller, use the predictor.
22159 * predict.def (PRED_COMPARE_AND_SWAP): Add.
22161 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
22163 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
22164 proper constant for the store mode.
22166 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
22168 * symtab.c (change_decl_assembler_name): Fix transparent alias
22169 chain construction.
22171 2014-03-16 Renlin Li <Renlin.Li@arm.com>
22173 * config/aarch64/aarch64.c: Correct the comments about the
22174 aarch64 stack layout.
22176 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
22178 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
22179 check for GF_OMP_FOR_KIND_FOR.
22181 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22183 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
22184 ymm and zmm register names.
22186 2014-03-17 Jakub Jelinek <jakub@redhat.com>
22189 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
22190 note creation for the 2010-08-31 changes.
22192 2014-03-17 Marek Polacek <polacek@redhat.com>
22194 PR middle-end/60534
22195 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22196 as -fno-tree-loop-vectorize.
22197 (expand_omp_simd): Likewise.
22199 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22201 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22202 (eligible_for_call_delay): New prototype.
22203 * config/sparc/sparc.c (tls_call_delay): Rename into...
22204 (eligible_for_call_delay): ...this. Return false if the instruction
22205 cannot be put in the delay slot of a branch.
22206 (eligible_for_restore_insn): Simplify.
22207 (eligible_for_return_delay): Return false if the instruction cannot be
22208 put in the delay slot of a branch and simplify.
22209 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22210 put in the delay slot of a branch.
22211 * config/sparc/sparc.md (fix_ut699): New attribute.
22212 (tls_call_delay): Delete.
22213 (in_call_delay): Reimplement.
22214 (eligible_for_sibcall_delay): Rename into...
22215 (in_sibcall_delay): ...this.
22216 (eligible_for_return_delay): Rename into...
22217 (in_return_delay): ...this.
22218 (in_branch_delay): Reimplement.
22219 (in_uncond_branch_delay): Delete.
22220 (in_annul_branch_delay): Delete.
22222 2014-03-14 Richard Henderson <rth@redhat.com>
22225 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22226 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22227 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22228 (floathi splitters): Remove.
22229 (float<SWI48x>xf2): New pattern.
22230 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22231 code that tried to handle DImode for 32-bit, but which was excluded
22232 by the pattern's condition. Drop allocation of stack temporary.
22233 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22234 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22235 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22236 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22237 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22238 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22239 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22240 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22241 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22242 (*float<SWI48x><X87MODEF>2_i387): Remove.
22243 (all float _with_temp splitters): Remove.
22244 (*float<SWI48x><MODEF>2_i387): New pattern.
22245 (*float<SWI48><MODEF>2_sse): New pattern.
22246 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22247 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22249 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22250 Marek Polacek <polacek@redhat.com>
22252 PR middle-end/60484
22253 * common.opt (dump_base_name_prefixed): New Variable.
22254 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22255 if x_dump_base_name_prefixed is already set, set it at the end.
22257 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22259 PR rtl-optimization/60508
22260 * lra-constraints.c (get_reload_reg): Add new parameter
22262 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22263 Pass the new parameter values.
22265 2014-03-14 Richard Biener <rguenther@suse.de>
22267 * common.opt: Revert unintented changes from r205065.
22268 * opts.c: Likewise.
22270 2014-03-14 Richard Biener <rguenther@suse.de>
22272 PR middle-end/60518
22273 * cfghooks.c (split_block): Properly adjust all loops the
22274 block was a latch of.
22276 2014-03-14 Martin Jambor <mjambor@suse.cz>
22279 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22282 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22285 * config/avr/avr.c (avr_set_current_function): Pass function name
22286 through default_strip_name_encoding before sanity checking instead
22287 of skipping the first char of the assembler name.
22289 2014-03-13 Richard Henderson <rth@redhat.com>
22292 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22293 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22294 * config/i386/i386-protos.h: Likewise.
22295 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22296 in the expander instead of a splitter.
22297 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22298 any possibility of requiring a memory.
22299 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22300 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22301 (fp branch splitters): Update for ix86_split_fp_branch.
22302 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22303 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22304 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22305 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22306 (*fop_<MODEF>_3_i387): Likewise.
22307 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22308 (splitters for the fop_* register patterns): Remove.
22309 (fscalexf4_i387): Rename from *fscalexf4_i387.
22310 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22312 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22314 PR tree-optimization/59779
22315 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22316 type for bitsize and maxsize instead of HOST_WIDE_INT.
22318 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22320 PR rtl-optimization/57320
22321 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22322 the CFG after thread_prologue_and_epilogue_insns.
22324 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22326 PR rtl-optimization/57189
22327 * lra-constraints.c (process_alt_operands): Disfavor spilling
22330 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22332 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22334 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22336 PR tree-optimization/59025
22337 PR middle-end/60418
22338 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22339 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22341 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22344 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22345 calls of avr_out_plus_1.
22347 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22349 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22350 BB's single pred and update the father loop's latch info later.
22352 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22354 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22358 (VEC_base): Likewise.
22359 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22360 registers, we need to swap double words in little endian mode.
22362 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22363 to be a container mode for 128-bit integer operations added in ISA
22364 2.07. Unlike TImode and PTImode, the preferred register set is
22365 the Altivec/VMX registers for the 128-bit operations.
22367 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22369 (rs6000_split_128bit_ok_p): Likewise.
22371 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22372 macros for creating ISA 2.07 normal and overloaded builtin
22373 functions with 3 arguments.
22374 (BU_P8V_OVERLOAD_3): Likewise.
22375 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22376 for use as overloaded functions.
22377 (VPERM_1TI_UNS): Likewise.
22378 (VSEL_1TI): Likewise.
22379 (VSEL_1TI_UNS): Likewise.
22380 (ST_INTERNAL_1ti): Likewise.
22381 (LD_INTERNAL_1ti): Likewise.
22382 (XXSEL_1TI): Likewise.
22383 (XXSEL_1TI_UNS): Likewise.
22384 (VPERM_1TI): Likewise.
22385 (VPERM_1TI_UNS): Likewise.
22386 (XXPERMDI_1TI): Likewise.
22387 (SET_1TI): Likewise.
22388 (LXVD2X_V1TI): Likewise.
22389 (STXVD2X_V1TI): Likewise.
22390 (VEC_INIT_V1TI): Likewise.
22391 (VEC_SET_V1TI): Likewise.
22392 (VEC_EXT_V1TI): Likewise.
22393 (EQV_V1TI): Likewise.
22394 (NAND_V1TI): Likewise.
22395 (ORC_V1TI): Likewise.
22396 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22397 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22398 overloaded builtin.
22399 (VADDUQM): Likewise.
22400 (VSUBCUQ): Likewise.
22401 (VADDEUQM): Likewise.
22402 (VADDECUQ): Likewise.
22403 (VSUBEUQM): Likewise.
22404 (VSUBECUQ): Likewise.
22406 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22407 __int128_t and __uint128_t types.
22408 (__uint128_type): Likewise.
22409 (altivec_categorize_keyword): Add support for vector __int128_t,
22410 vector __uint128_t, vector __int128, and vector unsigned __int128
22411 as a container type for TImode operations that need to be done in
22412 VSX/Altivec registers.
22413 (rs6000_macro_to_expand): Likewise.
22414 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22415 to support 128-bit integer instructions vaddcuq, vadduqm,
22416 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22417 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22419 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22420 for V1TImode, and set up preferences to use VSX/Altivec registers.
22421 Setup VSX reload handlers.
22422 (rs6000_debug_reg_global): Likewise.
22423 (rs6000_init_hard_regno_mode_ok): Likewise.
22424 (rs6000_preferred_simd_mode): Likewise.
22425 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22426 (easy_altivec_constant): Likewise.
22427 (output_vec_const_move): Likewise.
22428 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22430 (rs6000_expand_vector_extract): Likewise.
22431 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22433 (rs6000_const_vec): Add support for V1TImode.
22434 (rs6000_emit_le_vsx_load): Swap double words when loading or
22435 storing TImode/V1TImode.
22436 (rs6000_emit_le_vsx_store): Likewise.
22437 (rs6000_emit_le_vsx_move): Likewise.
22438 (rs6000_emit_move): Add support for V1TImode.
22439 (altivec_expand_ld_builtin): Likewise.
22440 (altivec_expand_st_builtin): Likewise.
22441 (altivec_expand_vec_init_builtin): Likewise.
22442 (altivec_expand_builtin): Likewise.
22443 (rs6000_init_builtins): Add support for V1TImode type. Add
22444 support for ISA 2.07 128-bit integer builtins. Define type names
22445 for the VSX/Altivec vector types.
22446 (altivec_init_builtins): Add support for overloaded vector
22447 functions with V1TImode type.
22448 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22449 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22451 (rs6000_split_128bit_ok_p): Likewise.
22452 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22453 __int128_t and vector __uint128_t.
22455 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22456 and mode attributes.
22458 (VSX_M2): Likewise.
22463 (VS_scalar): Likewise.
22464 (VS_double): Likewise.
22465 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22467 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22468 we support the ISA 2.07 128-bit integer arithmetic instructions.
22469 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22470 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22471 and TImode types for use with the builtin functions.
22472 (V1TI_type_node): Likewise.
22473 (unsigned_V1TI_type_node): Likewise.
22474 (intTI_type_internal_node): Likewise.
22475 (uintTI_type_internal_node): Likewise.
22477 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22478 128-bit builtin functions.
22479 (UNSPEC_VADDEUQM): Likewise.
22480 (UNSPEC_VADDECUQ): Likewise.
22481 (UNSPEC_VSUBCUQ): Likewise.
22482 (UNSPEC_VSUBEUQM): Likewise.
22483 (UNSPEC_VSUBECUQ): Likewise.
22484 (VM): Add V1TImode to vector mode iterators.
22486 (VI_unit): Likewise.
22487 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22488 (altivec_vaddcuq): Likewise.
22489 (altivec_vsubuqm): Likewise.
22490 (altivec_vsubcuq): Likewise.
22491 (altivec_vaddeuqm): Likewise.
22492 (altivec_vaddecuq): Likewise.
22493 (altivec_vsubeuqm): Likewise.
22494 (altivec_vsubecuq): Likewise.
22496 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22498 (BOOL_128): Likewise.
22499 (BOOL_REGS_OUTPUT): Likewise.
22500 (BOOL_REGS_OP1): Likewise.
22501 (BOOL_REGS_OP2): Likewise.
22502 (BOOL_REGS_UNARY): Likewise.
22503 (BOOL_REGS_AND_CR0): Likewise.
22505 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22506 128-bit integer builtin support.
22507 (vec_vadduqm): Likewise.
22508 (vec_vaddecuq): Likewise.
22509 (vec_vaddeuqm): Likewise.
22510 (vec_vsubecuq): Likewise.
22511 (vec_vsubeuqm): Likewise.
22512 (vec_vsubcuq): Likewise.
22513 (vec_vsubuqm): Likewise.
22515 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22516 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22517 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22518 128-bit integer add/subtract to ISA 2.07.
22520 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22522 * config/arc/arc.c (arc_predicate_delay_insns):
22523 Fix third argument passed to conditionalize_nonjump.
22525 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22527 * config/aarch64/aarch64-builtins.c
22528 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22529 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22530 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22531 instead of __builtin_lfloor.
22532 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22534 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22536 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22537 (tree_ssa_ifcombine_bb_1): New function.
22538 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22539 is an empty forwarder block to then_bb or vice versa and then_bb
22540 and else_bb are effectively swapped.
22542 2014-03-12 Christian Bruel <christian.bruel@st.com>
22545 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22546 REG_CFA_DEF_CFA note.
22547 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22548 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22550 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22552 PR tree-optimization/60454
22553 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22555 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22557 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22558 Do not define target_cpu_default2 to generic.
22559 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22560 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22561 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22563 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22564 Marc Glisse <marc.glisse@inria.fr>
22566 PR tree-optimization/60502
22567 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22568 instead of build_low_bits_mask.
22570 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22572 PR middle-end/60482
22573 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22574 if there are multiple uses, but op doesn't live on E edge.
22575 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22576 clobber stmts before __builtin_unreachable.
22578 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22580 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22581 hard_frame_pointer_rtx.
22582 * cse.c (cse_insn): Remove volatile check.
22583 * cselib.c (cselib_process_insn): Likewise.
22584 * dse.c (scan_insn): Likewise.
22586 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22588 * config/arc/arc.c (conditionalize_nonjump): New function,
22590 (arc_ifcvt): ... this.
22591 (arc_predicate_delay_insns): Use it.
22593 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22595 * config/arc/predicates.md (extend_operand): During/after reload,
22596 allow const_int_operand.
22597 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22598 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22599 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22601 (umulsi3_highpart_i): Likewise.
22603 2014-03-11 Richard Biener <rguenther@suse.de>
22605 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22606 Add asserts to guard possible wrong-code bugs.
22608 2014-03-11 Richard Biener <rguenther@suse.de>
22610 PR tree-optimization/60429
22611 PR tree-optimization/60485
22612 * tree-ssa-structalias.c (set_union_with_increment): Properly
22613 take into account all fields that overlap the shifted vars.
22614 (do_sd_constraint): Likewise.
22615 (do_ds_constraint): Likewise.
22616 (get_constraint_for_ptr_offset): Likewise.
22618 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22620 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22621 (nios2_compute_frame_layout):
22622 Add calculation of cfun->machine->fp_save_offset.
22623 (nios2_expand_prologue): Correct setting of frame pointer register
22625 (nios2_expand_epilogue): Update recovery of stack pointer from
22626 frame pointer accordingly.
22627 (nios2_initial_elimination_offset): Update calculation of offset
22628 for eliminating to HARD_FRAME_POINTER_REGNUM.
22630 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22633 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22634 cgraph_get_create_node on VAR_DECLs.
22636 2014-03-10 Richard Biener <rguenther@suse.de>
22638 PR middle-end/60474
22639 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22641 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22643 * config/vms/vms.opt (vms_float_format): New variable.
22645 2014-03-08 Tobias Burnus <burnus@net-b.de>
22647 * doc/invoke.texi (-fcilkplus): Update implementation status.
22649 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22650 Richard Biener <rguenther@suse.de>
22652 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22653 consistently accross all TUs.
22654 (run_gcc): Enable -fshort-double automatically at link at link-time
22655 and disallow override.
22657 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22660 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22661 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22662 if they can't be used.
22664 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22666 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22667 for Solaris 11/x86 ld.
22668 * configure: Regenerate.
22670 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22672 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22673 (LIB_TLS_SPEC): Save as ld_tls_libs.
22674 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22675 (HAVE_AS_IX86_TLSLDM): New test.
22676 * configure, config.in: Regenerate.
22677 * config/i386/i386.c (legitimize_tls_address): Fall back to
22678 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22679 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22680 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22681 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22683 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22685 * common.opt (fira-loop-pressure): Mark as optimization.
22687 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22689 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22690 an OpenMP mappable type.
22692 2014-03-06 Matthias Klose <doko@ubuntu.com>
22694 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22695 MULTILIB_OSDIRNAMES is not defined.
22697 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22698 Meador Inge <meadori@codesourcery.com>
22701 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22702 (arm_legitimize_address): Call legitimize_tls_address for any
22703 arm_tls_referenced_p expression, handle constant addend. Call it
22704 before testing for !TARGET_ARM.
22705 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22707 2014-03-06 Richard Biener <rguenther@suse.de>
22709 PR middle-end/60445
22713 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22715 * tree-streamer.c (record_common_node): Assert we don't record
22716 nodes with type double.
22717 (preload_common_node): Skip type double, complex double and double
22718 pointer since it is now frontend dependent due to fshort-double option.
22720 2014-03-06 Richard Biener <rguenther@suse.de>
22722 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22723 or -fno-lto is specified and the linker has full plugin support.
22724 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22725 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22726 * lto-wrapper.c (merge_and_complain): Merge compile-time
22727 optimization levels.
22728 (run_gcc): And pass it through to the link options.
22730 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22734 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22736 * cselib.c (remove_useless_values): Skip to avoid quadratic
22737 behavior if the condition moved from...
22738 (cselib_process_insn): ... here holds.
22740 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22743 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22744 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22747 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22748 (TM_H): Add x86-tune.def.
22750 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22752 * config/aarch64/aarch64.c (generic_tunings):
22753 Use cortexa57_extra_costs.
22755 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22758 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22759 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22760 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22763 2014-03-04 Heiher <r@hev.cc>
22765 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22766 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22768 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22770 * config/i386/predicates.md (const2356_operand): Change to ...
22771 (const2367_operand): ... this.
22772 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22774 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22775 (*avx512pf_scatterpf<mode>sf): Ditto.
22776 (avx512pf_scatterpf<mode>df): Ditto.
22777 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22778 (*avx512pf_scatterpf<mode>df): Ditto.
22779 * config/i386/i386.c (ix86_expand_builtin): Update
22780 incorrect hint operand error message.
22782 2014-03-04 Richard Biener <rguenther@suse.de>
22784 * lto-section-in.c (lto_get_section_data): Fix const cast.
22786 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22788 * tree-streamer.c (record_common_node): Assert we don't record
22789 nodes with type double.
22790 (preload_common_node): Skip type double, complex double and double
22791 pointer since it is now frontend dependent due to fshort-double option.
22793 2014-03-04 Richard Biener <rguenther@suse.de>
22796 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22797 (lto_input_toplevel_asms): Likewise.
22798 * lto-section-in.c (lto_get_section_data): Instead do it here
22801 2014-03-04 Richard Biener <rguenther@suse.de>
22803 PR tree-optimization/60382
22804 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22805 dead PHIs a reduction.
22807 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22809 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22811 (_mm_prefetch): Move out of GCC target("sse") pragma.
22812 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22813 GCC target("prfchw") pragma.
22814 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22816 * config/i386/i386.c (ix86_option_override_internal): Enable
22817 -mprfchw with -mprefetchwt1.
22819 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22821 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22824 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22826 * opts.h (CL_PCH_IGNORE): Define.
22827 * targhooks.c (option_affects_pch_p):
22828 Return false for options that have CL_PCH_IGNORE set.
22829 * opt-functions.awk: Process PchIgnore.
22830 * doc/options.texi: Document PchIgnore.
22832 * config/arc/arc.opt (misize): Add PchIgnore property.
22834 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22836 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22837 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22838 constraint on constants to permit them being loaded into
22839 GENERAL_REGS or BASE_REGS.
22841 2014-03-03 Nick Clifton <nickc@redhat.com>
22843 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22844 anti-cacnonical alternatives.
22845 (negandhi3_real): New pattern.
22846 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22848 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22850 * config/avr/avr-mcus.def: Remove atxmega16x1.
22851 * config/avr/avr-tables.opt: Regenerate.
22852 * config/avr/t-multilib: Regenerate.
22853 * doc/avr-mmcu.texi: Regenerate.
22855 2014-03-03 Tobias Grosser <tobias@grosser.es>
22856 Mircea Namolaru <mircea.namolaru@inria.fr>
22858 PR tree-optimization/58028
22859 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22862 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22864 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22865 not handled by recognizers.
22867 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22869 PR middle-end/60175
22870 * function.c (expand_function_end): Don't emit
22871 clobber_return_register sequence if clobber_after is a BARRIER.
22872 * cfgexpand.c (construct_exit_block): Append instructions before
22873 return_label to prev_bb.
22875 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22877 * config/rs6000/constraints.md: Document reserved use of "wc".
22879 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22882 * ipa.c (function_and_variable_visibility): When dissolving comdat
22883 group, also set all symbols to local.
22885 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22890 2013-12-14 Jan Hubicka <jh@suse.cz>
22891 PR middle-end/58477
22892 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22894 2014-03-02 Jon Beniston <jon@beniston.com>
22900 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22901 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22902 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22903 (simple_return, *simple_return): New patterns
22904 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22905 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22907 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22909 * dwarf2out.c (gen_subprogram_die): Tidy.
22911 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22914 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22915 (*mov_t_msb_neg_negc): ... this new insn.
22917 2014-02-28 Jason Merrill <jason@redhat.com>
22920 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22923 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22926 * dwarf2out.c (decltype_auto_die): New static.
22927 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22928 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22929 (is_cxx_auto): Likewise.
22931 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22933 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22934 we are not using general regs only.
22936 2014-02-28 Richard Biener <rguenther@suse.de>
22939 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22940 previous fix and only allow to remove trivial pre-headers
22941 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22942 (remove_forwarder_block): Properly update the latch of a loop.
22944 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22947 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22948 (cselib_preserved_hash_table): New.
22949 (preserve_constants_and_equivs): Move preserved vals to it.
22950 (cselib_find_slot): Look it up first.
22951 (cselib_init): Initialize it.
22952 (cselib_finish): Release it.
22953 (dump_cselib_table): Dump it.
22955 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22958 * cselib.c (remove_useless_values): Skip to avoid quadratic
22959 behavior if the condition moved from...
22960 (cselib_process_insn): ... here holds.
22962 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22965 * var-tracking.c (vt_initialize): Apply the same condition to
22966 preserve the CFA base value.
22968 2014-02-28 Joey Ye <joey.ye@arm.com>
22971 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22972 if reload in progress or completed.
22974 2014-02-28 Tobias Burnus <burnus@net-b.de>
22976 PR middle-end/60147
22977 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22980 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22982 * doc/tm.texi.in (Condition Code Status): Update documention for
22983 relative locations of cc0-setter and cc0-user.
22985 2014-02-27 Jeff Law <law@redhat.com>
22987 PR rtl-optimization/52714
22988 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22989 into two independent simple sets, if I3 is a jump, ensure the
22990 pattern we place into I3 is a (set (pc) ...).
22992 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22993 Jeff Law <law@redhat.com>
22995 PR rtl-optimization/49847
22996 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22997 are in different blocks.
22998 * doc/tm.texi (Condition Code Status): Update documention for
22999 relative locations of cc0-setter and cc0-user.
23001 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
23004 * lra.c (lra_emit_add): Check SUBREG too.
23006 2014-02-27 Andreas Schwab <schwab@suse.de>
23008 * config/m68k/m68k.c (m68k_option_override): Disable
23009 -flive-range-shrinkage for classic m68k.
23010 (m68k_override_options_after_change): Likewise.
23012 2014-02-27 Marek Polacek <polacek@redhat.com>
23014 PR middle-end/59223
23015 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
23016 -Wmaybe-uninitialized.
23018 2014-02-27 Alan Modra <amodra@gmail.com>
23021 * reload1.c (emit_input_reload_insns): When reload_override_in,
23022 set old to rl->in_reg when rl->in_reg is a subreg.
23024 2014-02-26 Richard Biener <rguenther@suse.de>
23027 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
23029 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
23031 * common/config/i386/predicates.md (const1256_operand): Remove.
23032 (const2356_operand): New.
23033 (const_1_to_2_operand): Remove.
23034 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23035 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23036 (*avx512pf_gatherpf<mode>sf): Ditto.
23037 (avx512pf_gatherpf<mode>df): Ditto.
23038 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23039 (*avx512pf_gatherpf<mode>df): Ditto.
23040 (avx512pf_scatterpf<mode>sf): Ditto.
23041 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23042 (*avx512pf_scatterpf<mode>sf): Ditto.
23043 (avx512pf_scatterpf<mode>df): Ditto.
23044 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23045 (*avx512pf_scatterpf<mode>df): Ditto.
23046 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
23048 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
23050 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
23051 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
23052 (_mm512_mask_testn_epi64_mask): Move to ...
23053 * config/i386/avx512cdintrin.h: Here.
23054 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
23055 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
23056 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
23057 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
23058 TARGET_AVX512F from TARGET_AVX512CD.
23060 2014-02-26 Richard Biener <rguenther@suse.de>
23063 * ipa.c (walk_polymorphic_call_targets): Properly guard
23064 call to inline_update_overall_summary.
23066 2014-02-26 Bin Cheng <bin.cheng@arm.com>
23069 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
23070 and latches only if requested. Fix latch if it is removed.
23071 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
23072 LOOPS_HAVE_PREHEADERS.
23074 2014-02-25 Andrew Pinski <apinski@cavium.com>
23076 * builtins.c (expand_builtin_thread_pointer): Create a new target
23077 when the target is NULL.
23079 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
23081 PR rtl-optimization/60317
23082 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
23083 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
23084 * lra-assigns.c: Include params.h.
23085 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
23086 other reload pseudos considerations.
23088 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23090 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
23091 to use canonical form for nor<mode>3.
23093 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23096 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
23099 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
23101 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
23102 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
23103 (ix86_handle_option): Handle OPT_mprefetchwt1.
23104 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
23105 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23107 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23108 OPTION_MASK_ISA_PREFETCHWT1.
23109 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
23110 (PTA_PREFETCHWT1): New.
23111 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
23112 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
23113 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
23114 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
23115 (*prefetch_avx512pf_<mode>_: Change into ...
23116 (*prefetch_prefetchwt1_<mode>: This.
23117 * config/i386/i386.opt (mprefetchwt1): New.
23118 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
23119 (_mm_prefetch): Handle intent to write.
23120 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
23122 2014-02-25 Richard Biener <rguenther@suse.de>
23124 PR middle-end/60291
23125 * emit-rtl.c (mem_attrs_htab): Remove.
23126 (mem_attrs_htab_hash): Likewise.
23127 (mem_attrs_htab_eq): Likewise.
23128 (set_mem_attrs): Always allocate new mem-attrs when something changed.
23129 (init_emit_once): Do not allocate mem_attrs_htab.
23131 2014-02-25 Richard Biener <rguenther@suse.de>
23134 * lto-opts.c (lto_write_options): Output non-explicit conservative
23135 -fwrapv, -fno-trapv and -fno-strict-overflow.
23136 * lto-wrapper.c (merge_and_complain): Handle merging those options.
23137 (run_gcc): And pass them through.
23139 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23141 * sel-sched.c (calculate_new_fences): New parameter ptime.
23142 Calculate it as a maximum over all fence cycles.
23143 (sel_sched_region_2): Adjust the call to calculate_new_fences.
23144 Print the final schedule timing when sched_verbose.
23146 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23148 PR rtl-optimization/60292
23149 * sel-sched.c (fill_vec_av_set): Do not reset target availability
23150 bit fot the fence instruction.
23152 2014-02-24 Alangi Derick <alangiderick@gmail.com>
23154 * calls.h: Fix typo in comment.
23156 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
23158 * config/pa/pa.c (pa_output_move_double): Don't valididate when
23159 adjusting offsetable addresses.
23161 2014-02-24 Guozhi Wei <carrot@google.com>
23163 * sparseset.h (sparseset_pop): Fix the wrong index.
23165 2014-02-24 Walter Lee <walt@tilera.com>
23167 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
23168 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
23170 * common/config/tilegx/tilegx-common.c
23171 (TARGET_DEFAULT_TARGET_FLAGS): Define.
23172 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
23173 (LINK_SPEC): Ditto.
23174 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
23175 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
23176 (tilegx_gimplify_va_arg_expr): Handle big endian.
23177 (tilegx_expand_unaligned_load): Ditto.
23178 (tilegx_expand_unaligned_store): Ditto.
23179 (TARGET_RETURN_IN_MSB): New.
23180 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
23181 (TARGET_ENDIAN_DEFAULT): New.
23182 (TARGET_BIG_ENDIAN): Handle big endian.
23183 (BYTES_BIG_ENDIAN): Ditto.
23184 (WORDS_BIG_ENDIAN): Ditto.
23185 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
23186 (ENDIAN_SPEC): New.
23187 (EXTRA_SPECS): New.
23188 * config/tilegx/tilegx.md (extv): Handle big endian.
23190 (insn_st<n>): Ditto.
23191 (insn_st<n>_add<bitsuffix>): Ditto.
23192 (insn_stnt<n>): Ditto.
23193 (insn_stnt<n>_add<bitsuffix>):Ditto.
23194 (vec_interleave_highv8qi): Handle big endian.
23195 (vec_interleave_highv8qi_be): New.
23196 (vec_interleave_highv8qi_le): New.
23197 (insn_v1int_h): Handle big endian.
23198 (vec_interleave_lowv8qi): Handle big endian.
23199 (vec_interleave_lowv8qi_be): New.
23200 (vec_interleave_lowv8qi_le): New.
23201 (insn_v1int_l): Handle big endian.
23202 (vec_interleave_highv4hi): Handle big endian.
23203 (vec_interleave_highv4hi_be): New.
23204 (vec_interleave_highv4hi_le): New.
23205 (insn_v2int_h): Handle big endian.
23206 (vec_interleave_lowv4hi): Handle big endian.
23207 (vec_interleave_lowv4hi_be): New.
23208 (vec_interleave_lowv4hi_le): New.
23209 (insn_v2int_l): Handle big endian.
23210 (vec_interleave_highv2si): Handle big endian.
23211 (vec_interleave_highv2si_be): New.
23212 (vec_interleave_highv2si_le): New.
23213 (insn_v4int_h): Handle big endian.
23214 (vec_interleave_lowv2si): Handle big endian.
23215 (vec_interleave_lowv2si_be): New.
23216 (vec_interleave_lowv2si_le): New.
23217 (insn_v4int_l): Handle big endian.
23218 * config/tilegx/tilegx.opt (mbig-endian): New option.
23219 (mlittle-endian): New option.
23220 * doc/install.texi: Document tilegxbe-linux.
23221 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23223 2014-02-24 Martin Jambor <mjambor@suse.cz>
23226 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23227 there are no parameter descriptors.
23229 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23231 PR rtl-optimization/60268
23232 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23233 initialization to ...
23234 (sched_rgn_init): ... here.
23235 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23237 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23239 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23242 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23244 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23247 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23249 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23250 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23252 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23254 * config/microblaze/predicates.md: Add cmp_op predicate.
23255 * config/microblaze/microblaze.md: Add branch_compare instruction
23256 which uses cmp_op predicate and emits cmp insn before branch.
23257 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23258 to microblaze_expand_conditional_branch and consolidate logic.
23259 (microblaze_expand_conditional_branch): emit branch_compare
23260 insn instead of handling cmp op separate from branch insn.
23262 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23264 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23267 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23269 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23270 define_insn with define_expand and new define_insn
23271 *altivec_lve<VI_char>x_internal.
23272 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23273 and new define_insn *altivec_stve<VI_char>x_internal.
23274 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23276 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23278 (altivec_expand_stvex_be): New function.
23280 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23282 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23283 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23284 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23285 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23287 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23290 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23291 instead of emit_move_insn.
23293 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23295 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23296 vspltw with vsldoi.
23297 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23298 gen_altivec_vsumsws.
23300 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23302 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23303 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23304 (altivec_lvxl_<mode>): New define_expand incorporating
23305 -maltivec=be semantics where needed.
23306 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23307 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23308 semantics where needed.
23309 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23310 (altivec_stvx_<mode>): New define_expand incorporating
23311 -maltivec=be semantics where needed.
23312 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23313 VM2 iterator instead of V4SI.
23314 (altivec_stvxl_<mode>): New define_expand incorporating
23315 -maltivec=be semantics where needed.
23316 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23317 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23318 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23319 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23320 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23321 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23322 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23323 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23324 ALTIVEC_BUILTIN_STVXL.
23325 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23326 (altivec_expand_stvx_be): Likewise.
23327 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23328 (altivec_expand_lvx_be): Likewise.
23329 (altivec_expand_stvx_be): Likewise.
23330 (altivec_expand_builtin): Add cases for
23331 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23332 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23333 (altivec_init_builtins): Add definitions for
23334 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23335 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23337 2014-02-21 Catherine Moore <clm@codesourcery.com>
23339 * doc/invoke.texi (mvirt, mno-virt): Document.
23340 * config/mips/mips.opt (mvirt): New option.
23341 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23343 2014-02-21 Richard Biener <rguenther@suse.de>
23345 PR tree-optimization/60276
23346 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23347 (STMT_VINFO_MIN_NEG_DIST): New macro.
23348 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23349 STMT_VINFO_MIN_NEG_DIST.
23350 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23351 made for negative dependence distances still hold.
23353 2014-02-21 Richard Biener <rguenther@suse.de>
23355 PR middle-end/60291
23356 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23357 DECL_INITIAL for globals not in the current function context.
23359 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23361 PR tree-optimization/56490
23362 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23363 * tree-ssa-uninit.c: Include params.h.
23364 (compute_control_dep_chain): Add num_calls argument, return false
23365 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23366 num_calls to recursive call.
23367 (find_predicates): Change dep_chain into normal array,
23368 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23369 variable and adjust compute_control_dep_chain caller.
23370 (find_def_preds): Likewise.
23372 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23374 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23375 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23377 2014-02-21 Nick Clifton <nickc@redhat.com>
23379 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23380 (pushhi1): Likewise.
23381 (popqi1): Add mode to pre_dec.
23382 (pophi1): Likewise.
23384 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23386 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23387 mode for mask of V8SFmode permutation.
23389 2014-02-20 Richard Henderson <rth@redhat.com>
23392 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23393 a new pseudo for OLDVAL.
23395 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23398 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23399 gen_reg_rtx if d->testing_p.
23400 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23401 if d->testing_p and we will certainly return true.
23402 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23405 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23407 * emit-rtl.c (gen_reg_rtx): Assert that
23408 crtl->emit.regno_pointer_align_length is non-zero.
23410 2014-02-20 Richard Henderson <rth@redhat.com>
23413 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23414 on failure the store back into EXPECT.
23416 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23417 Sandra Loosemore <sandra@codesourcery.com>
23419 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23420 * config/nios2/nios2.c (nios2_function_profiler): Add
23421 -fPIC (flag_pic == 2) support.
23422 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23423 (nios2_large_offset_p): New function.
23424 (nios2_unspec_reloc_p): Move up position, update to use
23425 nios2_large_offset_p.
23426 (nios2_unspec_address): Remove function.
23427 (nios2_unspec_offset): New function.
23428 (nios2_large_got_address): New function.
23429 (nios2_got_address): Add large offset support.
23430 (nios2_legitimize_tls_address): Update usage of removed and new
23432 (nios2_symbol_binds_local_p): New function.
23433 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23434 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23435 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23436 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23437 processing for (const (unspec ...)).
23438 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23440 2014-02-20 Richard Biener <rguenther@suse.de>
23442 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23443 doing the substitution.
23444 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23446 2014-02-20 Martin Jambor <mjambor@suse.cz>
23449 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23450 info when checking whether lattices are bottom.
23452 2014-02-20 Richard Biener <rguenther@suse.de>
23454 PR middle-end/60221
23455 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23458 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23461 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23462 parameter specifying the scaling.
23463 (inline_call): Update.
23464 (want_inline_recursively): Guard division by zero.
23465 (recursive_inlining): Update.
23466 * ipa-inline.h (clone_inlined_nodes): Update.
23468 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23471 * config/i386/i386.c (classify_argument): Pass structures of size
23472 64 bytes or less in register.
23474 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23475 Kirill Yukhin <kirill.yukhin@intel.com>
23477 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23478 (_mm_rcp28_round_ss): Ditto.
23479 (_mm_rsqrt28_round_sd): Ditto.
23480 (_mm_rsqrt28_round_ss): Ditto.
23481 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23482 (_mm_rcp14_round_ss): Ditto.
23483 (_mm_rsqrt14_round_sd): Ditto.
23484 (_mm_rsqrt14_round_ss): Ditto.
23485 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23486 the first input operand, get rid of match_dup.
23487 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23489 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23491 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23492 operand as the first input operand, set type attribute.
23493 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23494 Set type attribute.
23495 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23496 operand as the first input operand, set type attribute.
23498 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23500 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23503 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23506 * config/i386/i386.c (construct_container): Remove TFmode check
23507 for X86_64_INTEGER_CLASS.
23509 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23512 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23513 only when -Wpsabi is enabled.
23515 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23518 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23519 passing arrays in registers are the same as for structs, so remove the
23520 special case for them.
23522 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23524 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23525 destination type, extract only the valid bits if the source type is not
23526 integral and has a different mode.
23528 2014-02-19 Richard Biener <rguenther@suse.de>
23531 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23534 2014-02-19 Richard Biener <rguenther@suse.de>
23537 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23538 (ipa_modify_call_arguments): Emit an argument load explicitely and
23539 preserve virtual SSA form there and for the replacement call.
23540 Do not update SSA form nor free dominance info.
23542 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23544 * ipa.c (function_and_variable_visibility): Also clear WEAK
23545 flag when disolving COMDAT_GROUP.
23547 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23549 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23550 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23551 not devirtualizing.
23552 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23553 do more sanity checks.
23554 (detect_type_change): Return true when giving up early.
23555 (compute_complex_assign_jump_func): Fix type parameter of
23556 ipa_set_ancestor_jf.
23557 (compute_complex_ancestor_jump_func): Likewise.
23558 (update_jump_functions_after_inlining): Fix updating of
23560 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23562 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23564 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23565 inline clones when edge disappears.
23567 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23570 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23571 Split 64-bit moves into 2 patterns. Do not allow the use of
23572 direct move for TDmode in little endian, since the decimal value
23573 has little endian bytes within a word, but the 64-bit pieces are
23574 ordered in a big endian fashion, and normal subreg's of TDmode are
23576 (mov<mode>_64bit_dm): Likewise.
23577 (movtd_64bit_nodm): Likewise.
23579 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23581 PR tree-optimization/60174
23582 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23583 statement of an SSA_NAME that occurs in an abnormal PHI node.
23585 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23588 * final.c (SEEN_BB): Remove.
23589 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23590 (final_scan_insn): Don't force_source_line on second
23591 NOTE_INSN_BASIC_BLOCK.
23593 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23596 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23597 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23598 (type_natural_mode): Warn ABI change when %zmm register is not
23599 available for AVX512F vector value passing.
23601 2014-02-18 Kai Tietz <ktietz@redhat.com>
23604 * config/i386/i386.c (ix86_expand_prologue): Use value in
23605 rax register as displacement when restoring %r10 or %rax.
23606 Fix wrong offset when restoring both registers.
23608 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23610 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23611 assertion with conditional return.
23613 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23614 Uros Bizjak <ubizjak@gmail.com>
23617 * config/i386/driver-i386.c (host_detect_local_cpu): If
23618 YMM state is not saved by the OS, also clear has_f16c. Move
23619 CPUID 0x80000001 handling before YMM state saving checking.
23621 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23623 PR rtl-optimization/58960
23624 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23625 factored out from ...
23626 (sched_init): ... here.
23627 (free_global_sched_pressure_data): New, factored out from ...
23628 (sched_finish): ... here.
23629 * sched-int.h (free_global_sched_pressure_data): Declare.
23630 * sched-rgn.c (nr_regions_initial): New static global.
23631 (haifa_find_rgns): Initialize it.
23632 (schedule_region): Disable sched-pressure for the newly
23635 2014-02-17 Richard Biener <rguenther@suse.de>
23637 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23638 release SSA defs of pattern stmts.
23640 2014-02-17 Richard Biener <rguenther@suse.de>
23642 * tree-inline.c (expand_call_inline): Release the virtual
23643 operand defined by the call we are about to inline.
23645 2014-02-17 Richard Biener <rguenther@suse.de>
23647 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23649 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23650 Ilya Tocar <ilya.tocar@intel.com>
23652 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23653 arguments order in builtin.
23654 (_mm512_permutexvar_epi64): Ditto.
23655 (_mm512_mask_permutexvar_epi64): Ditto
23656 (_mm512_maskz_permutexvar_epi32): Ditto
23657 (_mm512_permutexvar_epi32): Ditto
23658 (_mm512_mask_permutexvar_epi32): Ditto
23660 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23662 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23663 (p8_vmrgow): Likewise.
23665 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23667 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23670 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23673 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23674 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23675 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23676 using direct move instructions on ISA 2.07. Also adjust
23677 instruction length for 64-bit.
23678 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23679 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23681 2014-02-15 Alan Modra <amodra@gmail.com>
23685 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23686 find_replacement on parts of insn rtl that might be reloaded.
23688 2014-02-15 Richard Biener <rguenther@suse.de>
23690 PR tree-optimization/60183
23691 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23692 (tree_ssa_phiprop): Calculate and free post-dominators.
23694 2014-02-14 Jeff Law <law@redhat.com>
23696 PR rtl-optimization/60131
23697 * ree.c (get_extended_src_reg): New function.
23698 (combine_reaching_defs): Use it rather than assuming location of REG.
23699 (find_and_remove_re): Verify first operand of extension is
23700 a REG before adding the insns to the copy list.
23702 2014-02-14 Roland McGrath <mcgrathr@google.com>
23704 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23705 * configure: Regenerated.
23706 * config.in: Regenerated.
23707 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23708 instead of ASM_SHORT.
23710 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23711 Richard Earnshaw <rearnsha@arm.com>
23713 PR rtl-optimization/59535
23714 * lra-constraints.c (process_alt_operands): Encourage alternative
23715 when unassigned pseudo class is superset of the alternative class.
23716 (inherit_reload_reg): Don't inherit when optimizing for code size.
23717 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23718 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23719 modes not less than 4 for Thumb1.
23721 2014-02-14 Kyle McMartin <kyle@redhat.com>
23724 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23726 2014-02-14 Richard Biener <rguenther@suse.de>
23728 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23729 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23730 Do not strip INDIRECT_REFs.
23732 2014-02-14 Richard Biener <rguenther@suse.de>
23735 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23736 DECL_FUNCTION_SPECIFIC_TARGET.
23737 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23738 * tree-streamer-out.c (pack_ts_target_option): Remove.
23739 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23740 (write_ts_function_decl_tree_pointers): Do not stream
23741 DECL_FUNCTION_SPECIFIC_TARGET.
23742 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23743 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23744 (lto_input_ts_function_decl_tree_pointers): Do not stream
23745 DECL_FUNCTION_SPECIFIC_TARGET.
23747 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23749 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23750 (get_initial_def_for_induction, vectorizable_induction): Ignore
23751 debug stmts when looking for exit_phi.
23752 (vectorizable_live_operation): Fix up condition.
23754 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23756 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23757 nreverse() because it changes the content of original tree list.
23759 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23761 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23762 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23764 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23766 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23767 GNU coding standards.
23769 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23772 * dwarf2out.c (gen_subprogram_die): Don't call
23773 add_calling_convention_attribute if subr_die is old_die.
23775 2014-02-13 Sharad Singhai <singhai@google.com>
23777 * doc/optinfo.texi: Fix order of nodes.
23779 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23781 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23782 operands[2], not operands[3].
23784 2014-02-13 Richard Biener <rguenther@suse.de>
23787 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23788 mention the possibility of an in-tree build.
23789 (CLooG): Update recommended version to 0.18.1, mention the
23790 possibility of an in-tree build and clarify that the ISL
23791 bundled with CLooG does not work.
23793 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23796 * expr.c (compress_float_constant): If x is a hard register,
23797 extend into a pseudo and then move to x.
23799 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23801 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23802 caused by bad second argument to warning_at() with -mhotpatch and
23803 nested functions (e.g. with gfortran).
23805 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23807 * opts.c (option_name): Remove "enabled by default" rider.
23809 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23811 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23813 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23814 Uros Bizjak <ubizjak@gmail.com>
23817 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23818 * configure: Regenerated.
23820 2014-02-12 Richard Biener <rguenther@suse.de>
23822 * vec.c (vec_prefix::calculate_allocation): Move as
23823 inline variant to vec.h.
23824 (vec_prefix::calculate_allocation_1): New out-of-line version.
23825 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23826 (vec_prefix::m_has_auto_buf): Rename to ...
23827 (vec_prefix::m_using_auto_storage): ... this.
23828 (vec_prefix::calculate_allocation): Inline the easy cases
23829 and dispatch to calculate_allocation_1 which doesn't need the
23831 (va_heap::reserve): Use gcc_checking_assert.
23832 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23833 m_using_auto_storage.
23834 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23836 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23837 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23838 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23840 2014-02-12 Richard Biener <rguenther@suse.de>
23842 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23843 when we found a dependence.
23845 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23847 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23849 (maybe_fold_stmt): ... into this new function.
23850 * omp-low.c (lower_omp): Update comment.
23852 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23855 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23858 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23860 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23861 identifiers in comments.
23862 (cortexa53_extra_costs): Likewise.
23863 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23864 (cortexa7_extra_costs): Likewise.
23865 (cortexa12_extra_costs): Likewise.
23866 (cortexa15_extra_costs): Likewise.
23867 (v7m_extra_costs): Likewise.
23869 2014-02-12 Richard Biener <rguenther@suse.de>
23871 PR middle-end/60092
23872 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23873 of posix_memalign being successful.
23874 (lower_stmt): Restrict lowering of posix_memalign to when
23875 -ftree-bit-ccp is enabled.
23877 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23879 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23881 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23883 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23885 PR rtl-optimization/60116
23886 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23887 other_insn once the combination has been validated.
23889 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23892 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23894 * ipa-devirt.c: Include demangle.h
23895 (odr_violation_reported): New static variable.
23896 (add_type_duplicate): Update odr_violations.
23897 (maybe_record_node): Add completep parameter; update it.
23898 (record_target_from_binfo): Add COMPLETEP parameter;
23899 update it as needed.
23900 (possible_polymorphic_call_targets_1): Likewise.
23901 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23902 rename FINAL to COMPLETE.
23903 (record_targets_from_bases): Sanity check we found the binfo;
23904 fix COMPLETEP updating.
23905 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23906 parameter, fix computing of COMPLETEP.
23907 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23908 at LTO time do demangling.
23909 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23910 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23912 (gimple_get_virt_method_for_binfo): Likewise.
23913 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23914 gimple_get_virt_method_for_vtable): Update prototypes.
23916 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23919 * genautomata.c (add_presence_absence): Fix typo with
23920 {final_}presence_list.
23922 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23925 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23926 for VSX/Altivec vectors that land in GPR registers.
23928 2014-02-11 Richard Henderson <rth@redhat.com>
23929 Jakub Jelinek <jakub@redhat.com>
23932 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23933 around drhs if type conversion to lacc->type is not useless.
23935 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23937 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23939 (cortex-a57.cortex-a53): Likewise.
23940 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23942 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23944 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23947 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23949 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23950 add_options_for_arm_vfp3.
23952 2014-02-11 Jeff Law <law@redhat.com>
23954 PR middle-end/54041
23955 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23956 object with an undesirable mode.
23958 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23961 * config/i386/sol2-9.h: New file.
23962 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23963 *-*-solaris2.9*): Use it.
23965 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23967 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23968 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23970 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23972 * config/microblaze/microblaze.c: Extend mcpu version format
23974 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23976 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23978 2014-02-10 Richard Henderson <rth@redhat.com>
23981 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23982 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23983 ms-abi vs -mno-accumulate-outgoing-args.
23984 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23985 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23988 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23990 PR middle-end/60080
23991 * cfgexpand.c (expand_asm_operands): Attach source location to
23992 ASM_INPUT rtx objects.
23993 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23995 2014-02-10 Nick Clifton <nickc@redhat.com>
23997 * config/mn10300/mn10300.c (popcount): New function.
23998 (mn10300_expand_prologue): Include saved registers in stack usage
24001 2014-02-10 Jeff Law <law@redhat.com>
24003 PR middle-end/52306
24004 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
24005 when changing the SET_DEST of a prior insn to avoid an input reload.
24007 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24009 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
24010 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
24011 -mcall-openbsd, or -mcall-linux.
24012 (CC1_ENDIAN_BIG_SPEC): Remove.
24013 (CC1_ENDIAN_LITTLE_SPEC): Remove.
24014 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
24015 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
24016 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
24017 and %cc1_endian_default.
24018 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
24020 2014-02-10 Richard Biener <rguenther@suse.de>
24022 PR tree-optimization/60115
24023 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
24024 MEM_REF handling. Properly verify that the accesses are not
24025 out of the objects bound.
24027 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24029 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
24032 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
24034 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
24035 proper constants and fix formatting.
24036 (possible_polymorphic_call_targets): Fix formatting.
24038 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
24039 Ilya Tocar <ilya.tocar@intel.com>
24041 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
24042 (_mm512_loadu_epi32): Renamed into...
24043 (_mm512_loadu_si512): This.
24044 (_mm512_storeu_epi32): Renamed into...
24045 (_mm512_storeu_si512): This.
24046 (_mm512_maskz_ceil_ps): Removed.
24047 (_mm512_maskz_ceil_pd): Ditto.
24048 (_mm512_maskz_floor_ps): Ditto.
24049 (_mm512_maskz_floor_pd): Ditto.
24050 (_mm512_floor_round_ps): Ditto.
24051 (_mm512_floor_round_pd): Ditto.
24052 (_mm512_ceil_round_ps): Ditto.
24053 (_mm512_ceil_round_pd): Ditto.
24054 (_mm512_mask_floor_round_ps): Ditto.
24055 (_mm512_mask_floor_round_pd): Ditto.
24056 (_mm512_mask_ceil_round_ps): Ditto.
24057 (_mm512_mask_ceil_round_pd): Ditto.
24058 (_mm512_maskz_floor_round_ps): Ditto.
24059 (_mm512_maskz_floor_round_pd): Ditto.
24060 (_mm512_maskz_ceil_round_ps): Ditto.
24061 (_mm512_maskz_ceil_round_pd): Ditto.
24062 (_mm512_expand_pd): Ditto.
24063 (_mm512_expand_ps): Ditto.
24064 * config/i386/i386.c (ix86_builtins): Remove
24065 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
24066 (bdesc_args): Ditto.
24067 * config/i386/predicates.md (const1256_operand): New.
24068 (const_1_to_2_operand): Ditto.
24069 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24070 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24071 (*avx512pf_gatherpf<mode>sf): Ditto.
24072 (avx512pf_gatherpf<mode>df): Ditto.
24073 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24074 (*avx512pf_gatherpf<mode>df): Ditto.
24075 (avx512pf_scatterpf<mode>sf): Ditto.
24076 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24077 (*avx512pf_scatterpf<mode>sf): Ditto.
24078 (avx512pf_scatterpf<mode>df): Ditto.
24079 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24080 (*avx512pf_scatterpf<mode>df): Ditto.
24081 (avx512f_expand<mode>): Removed.
24082 (<shift_insn><mode>3<mask_name>): Change predicate type.
24084 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24086 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
24087 not at the end of datarefs vector use ordered_remove to avoid
24088 reordering datarefs vector.
24091 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
24092 mark local addressable non-static vars as GOVD_PRIVATE
24093 instead of GOVD_LOCAL.
24094 * omp-low.c (lower_omp_for): Move gimple_bind_vars
24095 and BLOCK_VARS of gimple_bind_block to new_stmt rather
24098 PR middle-end/60092
24099 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
24100 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
24101 assume_aligned or alloc_align attributes.
24102 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
24103 arguments. Handle also assume_aligned and alloc_align attributes.
24104 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
24105 calls to functions with assume_aligned or alloc_align attributes.
24106 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
24108 2014-02-08 Terry Guo <terry.guo@arm.com>
24110 * doc/invoke.texi: Document ARM -march=armv7e-m.
24112 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24114 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
24115 flag on __cilkrts_rethrow builtin.
24118 * ipa-cp.c (determine_versionability): Fail at -O0
24119 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
24120 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
24123 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24126 * tree-inline.c (copy_forbidden): Fail for
24127 __attribute__((optimize (0))) functions.
24129 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24131 * varpool.c: Include pointer-set.h.
24132 (varpool_remove_unreferenced_decls): Variables in other partitions
24133 will not be output; be however careful to not lose information
24134 about partitioning.
24136 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24138 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
24139 lookup in the vtable constructor.
24141 2014-02-07 Jeff Law <law@redhat.com>
24144 * config/m68k/m68k.md (ashldi_extsi): Turn into a
24145 define_insn_and_split.
24147 * ipa-inline.c (inline_small_functions): Fix typos.
24149 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24151 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
24152 (s390_can_use_return_insn): Declare.
24153 * config/s390/s390.h (EPILOGUE_USES): Define.
24154 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
24156 (s390_chunkify_start): Handle return JUMP_LABELs.
24157 (s390_early_mach): Emit a main_pool instruction on the entry edge.
24158 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
24159 (s390_can_use_return_insn): New functions.
24160 (s390_fix_long_loop_prediction): Handle conditional returns.
24161 (TARGET_SET_UP_BY_PROLOGUE): Define.
24162 * config/s390/s390.md (ANY_RETURN): New code iterator.
24163 (*creturn, *csimple_return, return, simple_return): New patterns.
24165 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24167 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
24168 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
24169 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
24170 REG_CFA_RESTORE list when deciding not to restore a register.
24172 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24174 * config/s390/s390.c: Include tree-pass.h and context.h.
24175 (s390_early_mach): New function, split out from...
24176 (s390_emit_prologue): ...here.
24177 (pass_data_s390_early_mach): New pass structure.
24178 (pass_s390_early_mach): New class.
24179 (s390_option_override): Create and register early_mach pass.
24180 Move to end of file.
24182 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24184 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
24185 to match for the exit block.
24187 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24189 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
24190 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
24191 Reject misaligned operands.
24193 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24195 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24197 2014-02-07 Richard Biener <rguenther@suse.de>
24199 PR middle-end/60092
24200 * gimple-low.c (lower_builtin_posix_memalign): New function.
24201 (lower_stmt): Call it to lower posix_memalign in a way
24202 to make alignment info accessible.
24204 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24207 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24208 __builtin_setjmp_receiver.
24210 2014-02-07 Richard Biener <rguenther@suse.de>
24212 PR middle-end/60092
24213 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24214 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24215 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24216 Handle BUILT_IN_POSIX_MEMALIGN.
24217 (find_func_clobbers): Likewise.
24218 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24219 (call_may_clobber_ref_p_1): Likewise.
24221 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24224 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24227 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24230 * lto-cgraph.c (lto_output_node): Use
24231 symtab_get_symbol_partitioning_class.
24232 (lto_output_varpool_node): likewise.
24233 (symtab_get_symbol_partitioning_class): Move here from
24234 lto/lto-partition.c
24235 * cgraph.h (symbol_partitioning_class): Likewise.
24236 (symtab_get_symbol_partitioning_class): Declare.
24238 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24240 * ggc.h (ggc_internal_cleared_alloc): New macro.
24241 * vec.h (vec_safe_copy): Handle memory stats.
24242 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24243 * target-globals.c (save_target_globals): Likewise.
24245 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24248 * expr.c (emit_move_resolve_push): Export; be bit more selective
24249 on when to clear alias set.
24250 * expr.h (emit_move_resolve_push): Declare.
24251 * function.h (struct function): Add tail_call_marked.
24252 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24253 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24254 * config/i386/i386.md (TImode move expander): De not call
24256 (FP push expanders): Preserve memory attributes.
24257 * config/i386/sse.md (push<mode>1): Remove.
24258 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24259 (ix86_expand_push): Remove.
24260 * config/i386/mmx.md (push<mode>1): Remove.
24262 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24264 PR rtl-optimization/60030
24265 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24266 lopart with paradoxical subreg before shifting it up by hprec.
24268 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24270 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24271 Remove extra newline at end of file.
24272 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24273 (arm_issue_rate): Handle cortexa57.
24274 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24275 (cortex-a57.cortex-a53): Likewise.
24277 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24280 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24281 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24283 (arm_expand_prologue): Adjust all callers.
24284 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24285 info, registers also at the lowest numbered registers side. Use
24286 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24290 * var-tracking.c (adjust_mems): Before adding a SET to
24291 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24293 2014-02-06 Alan Modra <amodra@gmail.com>
24296 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24297 change SDmode to DDmode when lra_in_progress.
24299 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24301 PR middle-end/59150
24302 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24303 free_data_ref on the dr first, and before goto again also set dr
24304 to the next dr. For simd_lane_access, free old datarefs[i] before
24305 overwriting it. For get_vectype_for_scalar_type failure, don't
24306 free_data_ref if simd_lane_access.
24308 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24311 * tree.h (opts_for_fn): New inline function.
24312 (opt_for_fn): Define.
24313 * config/i386/i386.c (ix86_function_regparm): Use
24314 opt_for_fn (decl, optimize) instead of optimize.
24316 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24318 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24319 for SYMBOL_REF in large memory model.
24321 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24323 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24324 and crypto support.
24325 (cortex-a57): Likewise.
24326 (cortex-a57.cortex-a53): Likewise.
24328 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24329 Kugan Vivekanandarajah <kuganv@linaro.org>
24331 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24333 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24335 2014-02-06 Richard Biener <rguenther@suse.de>
24337 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24338 set_loop_copy and initialize_original_copy_tables.
24340 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24342 * config/aarch64/aarch64-simd.md
24343 (aarch64_ashr_simddi): Change QI to SI.
24345 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24346 Jakub Jelinek <jakub@redhat.com>
24348 PR middle-end/60013
24349 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24352 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24354 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24355 CODE_FOR_altivec_vpku[hw]um to
24356 CODE_FOR_altivec_vpku[hw]um_direct.
24357 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24358 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24359 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24360 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24362 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24364 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24365 generation for -maltivec=be.
24366 (altivec_vsumsws): Simplify redundant test.
24368 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24370 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24371 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24372 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24373 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24374 gen_altivec_vpkuwum.
24375 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24377 (altivec_vpks<VI_char>ss): Likewise.
24378 (altivec_vpks<VI_char>us): Likewise.
24379 (altivec_vpku<VI_char>us): Likewise.
24380 (altivec_vpku<VI_char>um): Likewise.
24381 (altivec_vpku<VI_char>um_direct): New (copy of
24382 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24384 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24385 target is little endian and -maltivec=be is not specified.
24386 (*altivec_vupkhs<VU_char>_direct): New (copy of
24387 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24388 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24389 target is little endian and -maltivec=be is not specified.
24390 (*altivec_vupkls<VU_char>_direct): New (copy of
24391 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24392 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24393 little endian and -maltivec=be is not specified.
24394 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24395 little endian and -maltivec=be is not specified.
24397 2014-02-05 Richard Henderson <rth@redhat.com>
24400 * combine-stack-adj.c: Revert r206943.
24401 * sched-int.h (struct deps_desc): Add last_args_size.
24402 * sched-deps.c (init_deps): Initialize it.
24403 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24404 contain REG_ARGS_SIZE notes.
24406 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24408 * lto-cgraph.c (asm_nodes_output): Make global.
24409 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24410 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24411 (driver_handle_option): Handle OPT_fwpa.
24413 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24416 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24417 a comment typo and formatting issue. If odr_hash hasn't been
24418 created, return vNULL and set *completep to false.
24420 PR middle-end/57499
24421 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24422 bb with no successors.
24424 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24427 * doc/invoke.texi (-march): Clarify documentation for ARM.
24428 (-mtune): Likewise.
24431 2014-02-05 Richard Biener <rguenther@suse.de>
24433 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24434 when not vectorizing because of too many alias checks.
24435 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24436 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24438 2014-02-05 Nick Clifton <nickc@redhat.com>
24440 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24441 accept extended registers in any mode when compiling for the MN10300.
24443 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24445 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24446 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24447 sanitization attributes.
24448 (can_inline_edge_p): Likewise.
24449 (sanitize_attrs_match_for_inline_p): New function.
24451 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24453 * ipa-prop.c (detect_type_change): Shor circuit testing of
24454 type changes on THIS pointer.
24456 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24459 * config/pa/pa.c (legitimize_tls_address): Return original address
24460 if not passed a SYMBOL_REF rtx.
24461 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24463 (pa_emit_move_sequence): Simplify TLS source operands.
24464 (pa_legitimate_constant_p): Reject all TLS constants.
24465 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24466 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24468 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24470 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24471 groups when we know they are controlled by LTO.
24472 * varasm.c (default_binds_local_p_1): If object is in other partition,
24473 it will be resolved locally.
24475 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24477 * config/host-linux.c (linux_gt_pch_use_address): Don't
24478 use SSIZE_MAX because it is not always defined.
24480 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24483 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24484 threshold for pseudo splitting.
24485 (update_ebb_live_info): Process call argument hard registers and
24486 hard registers from insn definition too.
24487 (max_small_class_regs_num): New constant.
24488 (inherit_in_ebb): Update live hard regs through EBBs. Update
24489 reloads_num only for small register classes. Don't split for
24492 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24495 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24498 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24500 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24501 visibility is safe.
24503 2014-02-04 Marek Polacek <polacek@redhat.com>
24505 * gdbinit.in (pel): Define.
24507 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24509 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24512 2014-02-04 Richard Biener <rguenther@suse.de>
24515 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24516 in function context local.
24517 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24518 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24519 similar to LTO_imported_decl_ref.
24521 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24523 PR tree-optimization/60002
24524 * cgraphclones.c (build_function_decl_skip_args): Clear
24525 DECL_LANG_SPECIFIC.
24527 PR tree-optimization/60023
24528 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24529 false to gsi_replace.
24530 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24531 has been in some EH region and vec_stmt could throw, add
24532 vec_stmt into the same EH region.
24533 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24534 has no lhs, ignore it.
24535 * internal-fn.c (expand_MASK_LOAD): Likewise.
24538 * tree-inline.c (copy_forbidden): Fail for
24539 __attribute__((optimize (0))) functions.
24542 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24543 is set, copy one less argument.
24544 (expand_simd_clones): Don't subtract clone_info->inbranch
24545 from simd_clone_struct_alloc argument.
24547 PR rtl-optimization/57915
24548 * recog.c (simplify_while_replacing): If all unary/binary/relational
24549 operation arguments are constant, attempt to simplify those.
24551 PR middle-end/59261
24552 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24553 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24555 2014-02-04 Richard Biener <rguenther@suse.de>
24557 PR tree-optimization/60012
24558 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24559 TBAA disambiguation to all DDRs.
24561 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24564 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24565 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24567 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24570 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24572 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24574 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24575 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24577 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24580 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24581 to figure out targets of polymorphic calls with known decl.
24582 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24583 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24584 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24585 (get_polymorphic_call_info): ... here.
24586 (get_polymorphic_call_info_from_invariant): New function.
24588 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24590 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24591 lookup via vtable pointer; check for type consistency
24592 and turn inconsitent facts into UNREACHABLE.
24593 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24594 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24595 type inconsistent querries; return UNREACHABLE instead.
24597 2014-02-03 Richard Henderson <rth@twiddle.net>
24600 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24601 already processed this node.
24602 (normalize_one_pred_1): Pass along mark_set.
24603 (normalize_one_pred): Create and destroy a pointer_set_t.
24604 (normalize_one_pred_chain): Likewise.
24606 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24608 PR gcov-profile/58602
24609 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24611 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24614 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24615 -fno-devirtualize; try to devirtualize by the knowledge of
24616 virtual table pointer given by aggregate propagation.
24617 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24618 (ipa_print_node_jump_functions): Dump also offset that
24619 is relevant for polymorphic calls.
24620 (determine_known_aggregate_parts): Add arg_type parameter; use it
24621 instead of determining the type from pointer type.
24622 (ipa_compute_jump_functions_for_edge): Update call of
24623 determine_known_aggregate_parts.
24624 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24625 (gimple_get_virt_method_for_binfo): ... here; simplify using
24626 vtable_pointer_value_to_vtable.
24627 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24628 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24629 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24630 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24632 (vtable_pointer_value_to_binfo): ... here.
24633 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24635 2014-02-03 Teresa Johnson <tejohnson@google.com>
24637 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24638 redef of outer loop index variable.
24640 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24644 * doc/extend.texi (Function Attributes): Typo.
24646 2014-02-03 Cong Hou <congh@google.com>
24648 PR tree-optimization/60000
24649 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24650 if the vectorized statement is a store. A store statement can only
24651 appear at the end of pattern statements.
24653 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24655 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24656 (ix86_option_override_internal): Default long double to 64-bit for
24657 32-bit Bionic and to 128-bit for 64-bit Bionic.
24659 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24660 TARGET_LONG_DOUBLE_128 is true.
24661 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24663 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24664 (mlong-double-64): Negate -mlong-double-128.
24665 (mlong-double-128): New option.
24667 * config/i386/i386-c.c (ix86_target_macros): Define
24668 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24670 * doc/invoke.texi: Document -mlong-double-128.
24672 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24674 PR rtl-optimization/60024
24675 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24677 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24679 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24681 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24683 PR rtl-optimization/57662
24684 * sel-sched.c (code_motion_path_driver): Do not mark already not
24685 existing blocks in the visiting bitmap.
24687 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24689 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24690 on the insn being emitted.
24692 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24693 Will Deacon <will.deacon@arm.com>
24695 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24697 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24699 * config/arm/arm-tables.opt: Regenerate.
24701 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24703 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24704 for vector types other than V16QImode.
24705 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24706 define_expand, and call altivec_expand_vec_perm_le when producing
24707 code with little endian element order.
24708 (*altivec_vperm_<mode>_internal): New insn having previous
24709 behavior of altivec_vperm_<mode>.
24710 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24711 altivec_expand_vec_perm_le when producing code with little endian
24713 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24714 behavior of altivec_vperm_<mode>_uns.
24716 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24718 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24719 (altivec_vsumsws): Add handling for -maltivec=be with a little
24721 (altivec_vsumsws_direct): New.
24722 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24723 gen_altivec_vsumsws.
24725 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24727 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24728 vtable_pointer_value_to_binfo): New functions.
24729 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24730 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24732 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24734 * config/nios2/nios2.md (load_got_register): Initialize GOT
24735 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24736 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24738 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24740 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24741 preserverd by passthrough, do not propagate the type.
24743 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24745 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24746 (mips_atomic_assign_expand_fenv): New function.
24747 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24749 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24751 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24752 (__builtin_mips_set_fcsr): Likewise.
24753 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24754 MIPS_USI_FTYPE_VOID.
24755 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24756 (mips16_expand_set_fcsr): Likewise.
24757 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24758 (mips16_set_fcsr_stub): Likewise.
24759 (mips16_get_fcsr_one_only_stub): New class.
24760 (mips16_set_fcsr_one_only_stub): Likewise.
24761 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24762 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24763 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24764 (hard_float): New availability predicate.
24765 (mips_builtins): Add get_fcsr and set_fcsr.
24766 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24767 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24768 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24769 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24770 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24773 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24775 * config/mips/mips.c (mips_one_only_stub): New class.
24776 (mips_need_mips16_rdhwr_p): Replace with...
24777 (mips16_rdhwr_stub): ...this new variable.
24778 (mips16_stub_call_address): New function.
24779 (mips16_rdhwr_one_only_stub): New class.
24780 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24781 (mips_output_mips16_rdhwr): Delete.
24782 (mips_finish_stub): New function.
24783 (mips_code_end): Use it to handle rdhwr stubs.
24785 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24788 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24789 when calculating size of integer atomic types.
24791 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24793 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24795 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24797 PR tree-optimization/60003
24798 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24799 * profile.c (branch_prob): Use gimple_call_builtin_p
24800 to check for BUILT_IN_SETJMP_RECEIVER.
24801 * tree-inline.c (copy_bb): Call notice_special_calls.
24803 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24806 * lra-constraints.c (process_alt_operands): Update reload_sum only
24809 2014-01-31 Richard Henderson <rth@redhat.com>
24811 PR middle-end/60004
24812 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24813 until after else_eh is processed.
24815 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24817 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24818 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24819 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24820 in smmintrin.h, remove them.
24821 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24822 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24823 * config/i386/i386.md (ROUND_SAE): Fix value.
24824 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24825 (const48_operand): New.
24826 * config/i386/subst.md (round), (round_expand): Use
24827 const_4_or_8_to_11_operand.
24828 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24830 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24832 * config/i386/constraints.md (Yk): Swap meaning with k.
24833 * config/i386/i386.md (movhi_internal): Change Yk to k.
24834 (movqi_internal): Ditto.
24835 (*k<logic><mode>): Ditto.
24838 (kandn<mode>): Ditto.
24839 (*<code>hi_1): Ditto.
24840 (*<code>qi_1): Ditto.
24841 (kxnor<mode>): Ditto.
24842 (kortestzhi): Ditto.
24843 (kortestchi): Ditto.
24845 (*one_cmplhi2_1): Ditto.
24846 (*one_cmplqi2_1): Ditto.
24847 * config/i386/sse.md (): Change k to Yk.
24848 (avx512f_load<mode>_mask): Ditto.
24849 (avx512f_blendm<mode>): Ditto.
24850 (avx512f_store<mode>_mask): Ditto.
24851 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24852 (avx512f_storedqu<mode>_mask): Ditto.
24853 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24855 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24856 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24857 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24858 (avx512f_maskcmp<mode>3): Ditto.
24859 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24860 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24861 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24862 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24863 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24864 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24865 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24866 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24867 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24868 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24869 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24870 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24871 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24872 (vec_extract_lo_<mode>_maskm): Ditto.
24873 (vec_extract_hi_<mode>_maskm): Ditto.
24874 (avx512f_vternlog<mode>_mask): Ditto.
24875 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24876 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24877 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24878 (avx512f_<code>v8div16qi2_mask): Ditto.
24879 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24880 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24881 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24882 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24883 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24884 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24885 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24886 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24887 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24888 (avx512cd_maskb_vec_dupv8di): Ditto.
24889 (avx512cd_maskw_vec_dupv16si): Ditto.
24890 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24891 (avx512f_vpermi2var<mode>3_mask): Ditto.
24892 (avx512f_vpermi2var<mode>3_mask): Ditto.
24893 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24894 (*avx512f_gathersi<mode>): Ditto.
24895 (*avx512f_gathersi<mode>_2): Ditto.
24896 (*avx512f_gatherdi<mode>): Ditto.
24897 (*avx512f_gatherdi<mode>_2): Ditto.
24898 (*avx512f_scattersi<mode>): Ditto.
24899 (*avx512f_scatterdi<mode>): Ditto.
24900 (avx512f_compress<mode>_mask): Ditto.
24901 (avx512f_compressstore<mode>_mask): Ditto.
24902 (avx512f_expand<mode>_mask): Ditto.
24903 * config/i386/subst.md (mask): Change k to Yk.
24904 (mask_scalar_merge): Ditto.
24907 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24909 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24911 2014-01-31 Richard Biener <rguenther@suse.de>
24913 PR middle-end/59990
24914 * builtins.c (fold_builtin_memory_op): Make sure to not
24915 use a floating-point mode or a boolean or enumeral type for
24916 the copy operation.
24918 2014-01-30 DJ Delorie <dj@redhat.com>
24920 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24921 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24922 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24923 whenever main() has an epilogue.
24925 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24927 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24928 unused variable "field".
24929 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24930 (vsx_mergeh_<mode>): Likewise.
24931 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24932 (altivec_vmrghh): Likewise.
24933 (altivec_vmrghw): Likewise.
24934 (altivec_vmrglb): Likewise.
24935 (altivec_vmrglh): Likewise.
24936 (altivec_vmrglw): Likewise.
24937 (altivec_vspltb): Add missing uses.
24938 (altivec_vsplth): Likewise.
24939 (altivec_vspltw): Likewise.
24940 (altivec_vspltsf): Likewise.
24942 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24945 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24946 frame related instructions.
24948 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24950 PR rtl-optimization/59959
24951 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24952 any reload of register whose subreg is invalid.
24954 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24956 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24957 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24958 Add missing return type - void.
24960 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24962 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24963 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24964 remove element index adjustment for endian (now handled in vsx.md
24966 (altivec_expand_vec_perm_const): Use
24967 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24968 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24969 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24970 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24971 define_expand and a new define_insn *altivec_vspltb_internal;
24972 adjust for -maltivec=be on a little endian target.
24973 (altivec_vspltb_direct): New.
24974 (altivec_vsplth): Divide into a define_expand and a new
24975 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24976 little endian target.
24977 (altivec_vsplth_direct): New.
24978 (altivec_vspltw): Divide into a define_expand and a new
24979 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24980 little endian target.
24981 (altivec_vspltw_direct): New.
24982 (altivec_vspltsf): Divide into a define_expand and a new
24983 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24984 a little endian target.
24986 2014-01-30 Richard Biener <rguenther@suse.de>
24988 PR tree-optimization/59993
24989 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24990 can propagate form the earlier stmt and avoid the transform
24991 when the intermediate result is needed.
24993 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24995 * README.Portability: Fix typo.
24997 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24999 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
25000 comparison_operator with ordered_comparison_operator.
25002 2014-01-30 Nick Clifton <nickc@redhat.com>
25004 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
25005 Rename to mn10300_store_multiple_regs.
25006 * config/mn10300/mn10300.c: Likewise.
25007 * config/mn10300/mn10300.md (store_movm): Fix typo: call
25008 store_multiple_regs.
25009 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
25010 Call mn10300_store_multiple_regs.
25012 2014-01-30 Nick Clifton <nickc@redhat.com>
25013 DJ Delorie <dj@redhat.com>
25015 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
25016 %fp 2 to keep registers after it properly word-aligned.
25017 (rl78_alloc_physical_registers_umul): Handle the case where both
25018 input operands are the same.
25020 2014-01-30 Richard Biener <rguenther@suse.de>
25022 PR tree-optimization/59903
25023 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
25026 2014-01-30 Jason Merrill <jason@redhat.com>
25029 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
25032 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
25034 2014-01-30 Richard Biener <rguenther@suse.de>
25036 PR tree-optimization/59951
25037 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
25039 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
25042 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
25043 SFmode to DFmode case.
25045 2014-01-29 DJ Delorie <dj@redhat.com>
25047 * config/msp430/msp430.opt (-minrt): New.
25048 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
25050 (ENDFILE_SPEC): Likewise.
25052 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
25054 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
25055 (estimate_function_body_sizes): Use it.
25057 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
25060 * dwarf2out.c (is_cxx_auto): New.
25061 (is_base_type): Use it.
25062 (gen_type_die_with_usage): Likewise.
25064 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25066 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
25067 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
25068 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
25069 -maltivec=be with LE targets.
25070 (vsx_mergeh_<mode>): Likewise.
25071 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
25072 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
25073 (altivec_vmrghb): Replace with define_expand and new
25074 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
25075 (altivec_vmrghb_direct): New define_insn.
25076 (altivec_vmrghh): Replace with define_expand and new
25077 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
25078 (altivec_vmrghh_direct): New define_insn.
25079 (altivec_vmrghw): Replace with define_expand and new
25080 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
25081 (altivec_vmrghw_direct): New define_insn.
25082 (*altivec_vmrghsf): Adjust for endianness.
25083 (altivec_vmrglb): Replace with define_expand and new
25084 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
25085 (altivec_vmrglb_direct): New define_insn.
25086 (altivec_vmrglh): Replace with define_expand and new
25087 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
25088 (altivec_vmrglh_direct): New define_insn.
25089 (altivec_vmrglw): Replace with define_expand and new
25090 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
25091 (altivec_vmrglw_direct): New define_insn.
25092 (*altivec_vmrglsf): Adjust for endianness.
25093 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25094 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25095 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25096 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25097 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25098 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25099 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25100 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25102 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
25104 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
25105 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
25108 2014-01-29 Richard Biener <rguenther@suse.de>
25110 PR tree-optimization/58742
25111 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
25112 associate_pointerplus_align.
25113 (associate_pointerplus_diff): New function.
25114 (associate_pointerplus): Likewise. Call associate_pointerplus_align
25115 and associate_pointerplus_diff.
25117 2014-01-29 Richard Biener <rguenther@suse.de>
25119 * lto-streamer.h (LTO_major_version): Bump to 3.
25120 (LTO_minor_version): Reset to 0.
25122 2014-01-29 Renlin Li <Renlin.Li@arm.com>
25124 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
25125 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
25126 (arm_file_start): Generate correct asm header for armv7ve.
25127 * config/arm/bpabi.h: Add multilib support for armv7ve.
25128 * config/arm/driver-arm.c: Change the architectures of cortex-a7
25129 and cortex-a15 to armv7ve.
25130 * config/arm/t-aprofile: Add multilib support for armv7ve.
25131 * doc/invoke.texi: Document -march=armv7ve.
25133 2014-01-29 Richard Biener <rguenther@suse.de>
25135 PR tree-optimization/58742
25136 * tree-ssa-forwprop.c (associate_plusminus): Return true
25137 if we changed sth, defer EH cleanup to ...
25138 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
25139 (simplify_mult): New function.
25141 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25143 PR middle-end/59917
25144 PR tree-optimization/59920
25145 * tree.c (build_common_builtin_nodes): Remove
25146 __builtin_setjmp_dispatcher initialization.
25147 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
25148 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
25149 instead of gsi_after_labels + manually skipping debug stmts.
25150 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
25151 ignore bbs with IFN_ABNORMAL_DISPATCHER.
25152 * tree-inline.c (copy_edges_for_bb): Remove
25153 can_make_abnormal_goto argument, instead add abnormal_goto_dest
25154 argument. Ignore computed_goto_p stmts. Don't call
25155 make_abnormal_goto_edges. If a call might need abnormal edges
25156 for non-local gotos, see if it already has an edge to
25157 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
25158 with true argument, don't do anything then, otherwise add
25159 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
25160 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
25162 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
25163 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
25164 (lower_stmt): Don't set data->calls_builtin_setjmp.
25165 (lower_builtin_setjmp): Adjust comment.
25166 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
25167 * tree-cfg.c (found_computed_goto): Remove.
25168 (factor_computed_gotos): Remove.
25169 (make_goto_expr_edges): Return bool, true for computed gotos.
25170 Don't call make_abnormal_goto_edges.
25171 (build_gimple_cfg): Don't set found_computed_goto, don't call
25172 factor_computed_gotos.
25173 (computed_goto_p): No longer static.
25174 (make_blocks): Don't set found_computed_goto.
25175 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
25176 (make_edges): If make_goto_expr_edges returns true, push bb
25177 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
25178 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
25179 vector. Record mapping between bbs and OpenMP regions if there
25180 are any, adjust make_gimple_omp_edges caller. Call
25181 handle_abnormal_edges.
25182 (make_abnormal_goto_edges): Remove.
25183 * tree-cfg.h (make_abnormal_goto_edges): Remove.
25184 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
25185 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
25186 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
25187 * internal-fn.def (ABNORMAL_DISPATCHER): New.
25188 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
25189 filling *region also set *region_idx to (*region)->entry->index.
25192 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
25193 For REGs set ORIGINAL_REGNO.
25195 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25197 * doc/md.texi: Mention that a target shouldn't implement
25198 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25201 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25203 PR tree-optimization/59594
25204 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25205 a copy of the datarefs vector rather than the vector itself.
25207 2014-01-28 Jason Merrill <jason@redhat.com>
25210 * dwarf2out.c (auto_die): New static.
25211 (gen_type_die_with_usage): Handle C++1y 'auto'.
25212 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25215 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25218 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25219 (SPEC_X32): Likewise.
25220 (SPEC_64): Likewise.
25221 * config/i386/i386.c (ix86_option_override_internal): Turn off
25222 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25224 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25225 * config/i386/i386.h (TARGET_16BIT): New macro.
25226 (TARGET_16BIT_P): Likewise.
25227 * config/i386/i386.opt: Add m16.
25228 * doc/invoke.texi: Document -m16.
25230 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25232 PR preprocessor/59935
25233 * input.c (location_get_source_line): Bail out on when line number
25234 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25236 2014-01-28 Richard Biener <rguenther@suse.de>
25238 PR tree-optimization/58742
25239 * tree-ssa-forwprop.c (associate_plusminus): Handle
25240 pointer subtraction of the form (T)(P + A) - (T)P.
25242 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25244 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25247 2014-01-28 Richard Biener <rguenther@suse.de>
25250 2014-01-28 Richard Biener <rguenther@suse.de>
25252 PR rtl-optimization/45364
25253 PR rtl-optimization/59890
25254 * var-tracking.c (local_get_addr_clear_given_value): Handle
25255 already cleared slot.
25256 (val_reset): Handle not allocated local_get_addr_cache.
25257 (vt_find_locations): Use post-order on the inverted CFG.
25259 2014-01-28 Richard Biener <rguenther@suse.de>
25261 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25263 2014-01-28 Richard Biener <rguenther@suse.de>
25265 PR rtl-optimization/45364
25266 PR rtl-optimization/59890
25267 * var-tracking.c (local_get_addr_clear_given_value): Handle
25268 already cleared slot.
25269 (val_reset): Handle not allocated local_get_addr_cache.
25270 (vt_find_locations): Use post-order on the inverted CFG.
25272 2014-01-28 Alan Modra <amodra@gmail.com>
25274 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25275 * configure.ac <recursive call for build != host>: Define
25276 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25277 and LD_FOR_BUILD too.
25278 * configure: Regenerate.
25280 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25282 * config/i386/i386.c (get_builtin_code_for_version): Separate
25283 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25284 Broadwell from Haswell.
25286 2014-01-27 Steve Ellcey <sellcey@mips.com>
25288 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25289 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25290 * config/mips/mips.c (mips_option_override): Change setting
25292 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25293 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25294 Change from Mask to Var.
25296 2014-01-27 Jeff Law <law@redhat.com>
25298 * ipa-inline.c (inline_small_functions): Fix typo.
25300 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25302 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25303 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25304 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25305 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25306 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25307 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25308 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25309 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25310 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25311 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25312 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25313 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25314 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25315 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25316 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25317 (_mm512_storeu_epi64): Ditto.
25318 (_mm512_cmpge_epi32_mask): Ditto.
25319 (_mm512_cmpge_epu32_mask): Ditto.
25320 (_mm512_cmpge_epi64_mask): Ditto.
25321 (_mm512_cmpge_epu64_mask): Ditto.
25322 (_mm512_cmple_epi32_mask): Ditto.
25323 (_mm512_cmple_epu32_mask): Ditto.
25324 (_mm512_cmple_epi64_mask): Ditto.
25325 (_mm512_cmple_epu64_mask): Ditto.
25326 (_mm512_cmplt_epi32_mask): Ditto.
25327 (_mm512_cmplt_epu32_mask): Ditto.
25328 (_mm512_cmplt_epi64_mask): Ditto.
25329 (_mm512_cmplt_epu64_mask): Ditto.
25330 (_mm512_cmpneq_epi32_mask): Ditto.
25331 (_mm512_cmpneq_epu32_mask): Ditto.
25332 (_mm512_cmpneq_epi64_mask): Ditto.
25333 (_mm512_cmpneq_epu64_mask): Ditto.
25334 (_mm512_expand_pd): Ditto.
25335 (_mm512_expand_ps): Ditto.
25336 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25337 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25338 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25339 * config/i386/i386.c (ix86_builtins): Add
25340 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25341 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25342 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25343 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25344 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25345 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25346 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25347 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25348 IX86_BUILTIN_PMOVUSQW512_MEM.
25349 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25350 __builtin_ia32_pmovsqd512mem_mask,
25351 __builtin_ia32_pmovqd512mem_mask,
25352 __builtin_ia32_pmovusqw512mem_mask,
25353 __builtin_ia32_pmovsqw512mem_mask,
25354 __builtin_ia32_pmovqw512mem_mask,
25355 __builtin_ia32_pmovusdw512mem_mask,
25356 __builtin_ia32_pmovsdw512mem_mask,
25357 __builtin_ia32_pmovdw512mem_mask,
25358 __builtin_ia32_pmovqb512mem_mask,
25359 __builtin_ia32_pmovusqb512mem_mask,
25360 __builtin_ia32_pmovsqb512mem_mask,
25361 __builtin_ia32_pmovusdb512mem_mask,
25362 __builtin_ia32_pmovsdb512mem_mask,
25363 __builtin_ia32_pmovdb512mem_mask.
25364 (bdesc_args): Add __builtin_ia32_expanddf512,
25365 __builtin_ia32_expandsf512.
25366 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25367 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25368 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25369 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25370 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25371 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25372 (avx512f_<code>v8div16qi2_mask_store): This.
25373 (avx512f_expand<mode>): New.
25375 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25377 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25379 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25380 (_mm512_prefetch_i32scatter_pd): Ditto.
25381 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25382 (_mm512_prefetch_i64scatter_pd): Ditto.
25383 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25384 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25385 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25386 (_mm512_prefetch_i32scatter_ps): Ditto.
25387 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25388 (_mm512_prefetch_i64scatter_ps): Ditto.
25389 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25390 * config/i386/i386-builtin-types.def: Define
25391 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25392 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25393 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25394 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25395 IX86_BUILTIN_SCATTERPFQPD.
25396 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25397 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25398 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25399 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25400 __builtin_ia32_scatterpfqps.
25401 (ix86_expand_builtin): Expand new built-ins.
25402 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25403 fix memory access data type.
25404 (*avx512pf_gatherpf<mode>_mask): Ditto.
25405 (*avx512pf_gatherpf<mode>): Ditto.
25406 (avx512pf_scatterpf<mode>): Ditto.
25407 (*avx512pf_scatterpf<mode>_mask): Ditto.
25408 (*avx512pf_scatterpf<mode>): Ditto.
25409 (GATHER_SCATTER_SF_MEM_MODE): New.
25410 (avx512pf_gatherpf<mode>df): Ditto.
25411 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25412 (*avx512pf_scatterpf<mode>df): Ditto.
25414 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25417 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25418 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25421 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25423 * common/config/arm/arm-common.c
25424 (arm_rewrite_mcpu): Handle multiple names.
25426 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25428 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25430 * gimple-builder.h (create_gimple_tmp): Delete.
25432 2014-01-27 Christian Bruel <christian.bruel@st.com>
25434 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25437 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25439 * config/pa/pa.md (call): Generate indirect long calls to non-local
25440 functions when outputing 32-bit code.
25441 (call_value): Likewise except for special call to buggy powf function.
25443 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25444 portable runtime and PIC indirect calls.
25445 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25446 and PIC call sequences. Use ldo instead of blr to set return register
25447 in PIC call sequence.
25449 2014-01-25 Walter Lee <walt@tilera.com>
25451 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25452 avoid clobbering a live register.
25454 2014-01-25 Walter Lee <walt@tilera.com>
25456 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25457 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25458 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25459 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25461 2014-01-25 Walter Lee <walt@tilera.com>
25463 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25464 arguments on even registers.
25465 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25467 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25468 (BIGGEST_ALIGNMENT): Ditto.
25469 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25471 2014-01-25 Walter Lee <walt@tilera.com>
25473 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25474 insns before bundling.
25475 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25477 2014-01-25 Walter Lee <walt@tilera.com>
25479 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25480 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25481 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25483 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25485 * config/mips/constraints.md (kl): Delete.
25486 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25487 define expands, using...
25488 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25489 instructions for MIPS16.
25490 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25491 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25493 2014-01-25 Walter Lee <walt@tilera.com>
25495 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25499 2014-01-25 Walter Lee <walt@tilera.com>
25501 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25502 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25504 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25506 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25509 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25511 * print-rtl.c (in_call_function_usage): New var.
25512 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25513 EXPR_LIST mode as mode and not as reg note name.
25515 PR middle-end/59561
25516 * cfgloopmanip.c (copy_loop_info): If
25517 loop->warned_aggressive_loop_optimizations, make sure
25518 the flag is set in target loop too.
25520 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25522 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25524 * builtins.def: Likewise.
25525 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25526 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25527 * ira.c (ira_setup_eliminable_regset): Likewise.
25528 * omp-low.c (gate_expand_omp): Likewise.
25529 (execute_lower_omp): Likewise.
25530 (diagnose_sb_0): Likewise.
25531 (gate_diagnose_omp_blocks): Likewise.
25532 (simd_clone_clauses_extract): Likewise.
25535 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25537 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25538 correction for little endian...
25539 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25542 2014-01-24 Jeff Law <law@redhat.com>
25544 PR tree-optimization/59919
25545 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25546 for non-returning calls.
25548 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25550 * common/config/aarch64/aarch64-common.c
25551 (aarch64_rewrite_mcpu): Handle multiple names.
25552 * config/aarch64/aarch64.h
25553 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25555 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25557 * input.c (add_file_to_cache_tab): Handle the case where fopen
25560 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25563 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25564 from push operand if code of push isn't PRE_DEC.
25566 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25569 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25570 -mquad-memory-atomic. Update -mquad-memory documentation to say
25571 it is only used for non-atomic loads/stores.
25573 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25574 -mquad-memory or -mquad-memory-atomic switches.
25576 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25577 -mquad-memory-atomic to ISA 2.07 support.
25579 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25580 to separate support of normal quad word memory operations (ldq, stq)
25581 from the atomic quad word memory operations.
25583 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25584 support to separate non-atomic quad word operations from atomic
25585 quad word operations. Disable non-atomic quad word operations in
25586 little endian mode so that we don't have to swap words after the
25587 load and before the store.
25588 (quad_load_store_p): Add comment about atomic quad word support.
25589 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25590 options printed with -mdebug=reg.
25592 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25593 -mquad-memory-atomic as the test for whether we have quad word
25594 atomic instructions.
25595 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25596 or -mp8-vector are used, allow byte/half-word atomic operations.
25598 * config/rs6000/sync.md (load_lockedti): Insure that the address
25599 is a proper indexed or indirect address for the lqarx instruction.
25600 On little endian systems, swap the hi/lo registers after the lqarx
25602 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25603 insure the address is valid for the lqarx instruction.
25604 (store_conditionalti): Insure that the address is a proper indexed
25605 or indirect address for the stqcrx. instruction. On little endian
25606 systems, swap the hi/lo registers before doing the stqcrx.
25608 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25609 insure the address is valid for the stqcrx. instruction.
25611 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25612 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25613 type of quad memory support is available.
25615 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25617 PR regression/59915
25618 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25619 there is a danger of looping.
25621 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25623 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25624 force flag_ira_loop_pressure if set via command line.
25626 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25628 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25629 (ashr_simd): New builtin handling DI mode.
25630 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25631 (aarch64_sshr_simddi): New match pattern.
25632 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25633 (vshrd_n_s64): Likewise.
25634 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25636 2014-01-23 Nick Clifton <nickc@redhat.com>
25638 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25639 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25640 favour of mcu specific scripts.
25641 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25644 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25645 Alex Velenko <Alex.Velenko@arm.com>
25647 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25648 (vaddv_s16): Likewise.
25649 (vaddv_s32): Likewise.
25650 (vaddv_u8): Likewise.
25651 (vaddv_u16): Likewise.
25652 (vaddv_u32): Likewise.
25653 (vaddvq_s8): Likewise.
25654 (vaddvq_s16): Likewise.
25655 (vaddvq_s32): Likewise.
25656 (vaddvq_s64): Likewise.
25657 (vaddvq_u8): Likewise.
25658 (vaddvq_u16): Likewise.
25659 (vaddvq_u32): Likewise.
25660 (vaddvq_u64): Likewise.
25661 (vaddv_f32): Likewise.
25662 (vaddvq_f32): Likewise.
25663 (vaddvq_f64): Likewise.
25664 (vmaxv_f32): Likewise.
25665 (vmaxv_s8): Likewise.
25666 (vmaxv_s16): Likewise.
25667 (vmaxv_s32): Likewise.
25668 (vmaxv_u8): Likewise.
25669 (vmaxv_u16): Likewise.
25670 (vmaxv_u32): Likewise.
25671 (vmaxvq_f32): Likewise.
25672 (vmaxvq_f64): Likewise.
25673 (vmaxvq_s8): Likewise.
25674 (vmaxvq_s16): Likewise.
25675 (vmaxvq_s32): Likewise.
25676 (vmaxvq_u8): Likewise.
25677 (vmaxvq_u16): Likewise.
25678 (vmaxvq_u32): Likewise.
25679 (vmaxnmv_f32): Likewise.
25680 (vmaxnmvq_f32): Likewise.
25681 (vmaxnmvq_f64): Likewise.
25682 (vminv_f32): Likewise.
25683 (vminv_s8): Likewise.
25684 (vminv_s16): Likewise.
25685 (vminv_s32): Likewise.
25686 (vminv_u8): Likewise.
25687 (vminv_u16): Likewise.
25688 (vminv_u32): Likewise.
25689 (vminvq_f32): Likewise.
25690 (vminvq_f64): Likewise.
25691 (vminvq_s8): Likewise.
25692 (vminvq_s16): Likewise.
25693 (vminvq_s32): Likewise.
25694 (vminvq_u8): Likewise.
25695 (vminvq_u16): Likewise.
25696 (vminvq_u32): Likewise.
25697 (vminnmv_f32): Likewise.
25698 (vminnmvq_f32): Likewise.
25699 (vminnmvq_f64): Likewise.
25701 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25703 * config/aarch64/aarch64-simd.md
25704 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25705 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25706 (*aarch64_mul3_elt<mode>): Likewise.
25707 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25708 (*aarch64_mul3_elt_to_64v2df): Likewise.
25709 (*aarch64_mla_elt<mode>): Likewise.
25710 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25711 (*aarch64_mls_elt<mode>): Likewise.
25712 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25713 (*aarch64_fma4_elt<mode>): Likewise.
25714 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25715 (*aarch64_fma4_elt_to_64v2df): Likewise.
25716 (*aarch64_fnma4_elt<mode>): Likewise.
25717 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25718 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25719 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25720 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25721 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25722 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25723 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25724 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25725 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25727 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25729 * config/aarch64/aarch64-simd.md
25730 (aarch64_be_checked_get_lane<mode>): New define_expand.
25731 * config/aarch64/aarch64-simd-builtins.def
25732 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25733 New builtin definition.
25734 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25735 Use new safe be builtin.
25737 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25739 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25741 (aarch64_be_st1<mode>): Likewise.
25742 (aarch_ld1<VALL:mode>): Define_expand modified.
25743 (aarch_st1<VALL:mode>): Likewise.
25744 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25745 (UNSPEC_ST1): Likewise.
25747 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25749 * config/microblaze/microblaze.md: Add trap insn and attribute
25751 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25753 PR preprocessor/58580
25754 * input.h (location_get_source_line): Take an additional line_size
25756 (void diagnostics_file_cache_fini): Declare new function.
25757 * input.c (struct fcache): New type.
25758 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25759 New static constants.
25760 (diagnostic_file_cache_init, total_lines_num)
25761 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25762 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25763 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25764 (get_next_line, read_next_line, goto_next_line, read_line_num):
25765 New static function definitions.
25766 (diagnostic_file_cache_fini): New function.
25767 (location_get_source_line): Take an additional output line_len
25768 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25770 * diagnostic.c (diagnostic_finish): Call
25771 diagnostic_file_cache_fini.
25772 (adjust_line): Take an additional input parameter for the length
25773 of the line, rather than calculating it with strlen.
25774 (diagnostic_show_locus): Adjust the use of
25775 location_get_source_line and adjust_line with respect to their new
25776 signature. While displaying a line now, do not stop at the first
25777 null byte. Rather, display the zero byte as a space and keep
25778 going until we reach the size of the line.
25779 * Makefile.in: Add vec.o to OBJS-libcommon
25781 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25782 Ilya Tocar <ilya.tocar@intel.com>
25784 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25785 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25786 (__builtin_ia32_kmov16): Ditto.
25787 * config/i386/i386.md (UNSPEC_KMOV): New.
25790 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25792 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25793 (_mm512_storeu_si512): Ditto.
25795 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25798 * rtl.h (get_referenced_operands): Declare.
25799 * recog.c (get_referenced_operands): New function.
25800 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25801 operands have been referenced when recording LO_SUM references.
25803 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25805 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25807 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25809 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25810 Enable for generic and recent AMD targets.
25812 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25814 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25815 ARG_SIZE note when adjustment was eliminated.
25817 2014-01-22 Jeff Law <law@redhat.com>
25819 PR tree-optimization/59597
25820 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25821 in file. Accept new argument REGISTERING and use it to modify
25822 dump output appropriately.
25823 (register_jump_thread): Corresponding changes.
25824 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25825 thread paths involving joiner blocks. Add code to dump cancelled
25826 jump threading paths.
25828 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25830 PR rtl-optimization/59477
25831 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25832 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25834 2014-01-22 Tom Tromey <tromey@redhat.com>
25836 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25838 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25840 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25842 PR rtl-optimization/59896
25843 * lra-constraints.c (process_alt_operands): Check unused note for
25844 matched operands of insn with no output reloads.
25846 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25848 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25849 (mips_move_from_gpr_cost): Likewise.
25851 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25853 PR rtl-optimization/59858
25854 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25855 ira_class_hard_regs_num.
25856 (process_alt_operands): Increase reject for dying matched operand.
25858 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25861 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25862 smaller than size, perform several stores or loads and stores
25863 at dst + count - size to store or copy all of size bytes, rather
25864 than just last modesize bytes.
25866 2014-01-20 DJ Delorie <dj@redhat.com>
25868 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25869 that CLOBBERs are REGs before propogating their values.
25871 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25873 PR middle-end/59789
25874 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25875 (cgraph_inline_failed_type): New function.
25876 * cgraph.h (DEFCIFCODE): Add type.
25877 (cgraph_inline_failed_type_t): New enum.
25878 (cgraph_inline_failed_type): New prototype.
25879 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25880 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25881 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25882 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25883 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25884 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25885 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25886 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25887 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25888 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25889 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25890 OPTIMIZATION_MISMATCH.
25891 * tree-inline.c (expand_call_inline): Emit errors during
25892 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25894 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25897 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25898 mode attribute in insn output.
25900 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25902 * output.h (output_constant): Delete.
25903 * varasm.c (output_constant): Make private.
25905 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25907 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25909 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25911 PR middle-end/59860
25912 * tree.h (fold_builtin_strcat): New prototype.
25913 * builtins.c (fold_builtin_strcat): No longer static. Add len
25914 argument, if non-NULL, don't call c_strlen. Optimize
25915 directly into __builtin_memcpy instead of __builtin_strcpy.
25916 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25917 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25919 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25921 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25922 for SImode_address_operand operands, having only a REG argument.
25924 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25926 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25927 loader name using mbig-endian.
25928 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25930 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25932 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25933 (-mtune): Likewise.
25936 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25938 * config/aarch64/aarch64-protos.h
25939 (aarch64_cannot_change_mode_class_ptr): Declare.
25940 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25941 aarch64_cannot_change_mode_class_ptr): New.
25942 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25943 backend hook aarch64_cannot_change_mode_class.
25945 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25947 * common/config/aarch64/aarch64-common.c
25948 (aarch64_handle_option): Don't handle any option order logic here.
25949 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25950 selected_cpu, warn on architecture version mismatch.
25951 (aarch64_override_options): Fix parsing order for option strings.
25953 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25954 Iain Sandoe <iain@codesourcery.com>
25957 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25958 warning. Amend comment to reflect current functionality.
25960 2014-01-20 Richard Biener <rguenther@suse.de>
25962 PR middle-end/59860
25963 * builtins.c (fold_builtin_strcat): Remove case better handled
25964 by tree-ssa-strlen.c.
25966 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25968 * config/aarch64/aarch64.opt
25969 (mcpu, march, mtune): Make case-insensitive.
25971 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25974 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25975 if operands[1] is a REG or ZERO_EXTEND of a REG.
25977 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25979 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25981 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25983 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25984 long non-pic millicode calls.
25986 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25988 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25990 2014-01-19 Kito Cheng <kito@0xlab.org>
25992 * builtins.c (expand_movstr): Check movstr expand done or fail.
25994 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25995 H.J. Lu <hongjiu.lu@intel.com>
25998 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25999 to DImode for zero-extended addresses.
26001 2014-01-19 Jakub Jelinek <jakub@redhat.com>
26003 PR rtl-optimization/57763
26004 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
26005 on the new indirect jump_insn and increment LABEL_NUSES (label).
26007 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
26011 * config.gcc (x86_archs): New variable.
26012 (x86_64_archs): Likewise.
26013 (x86_cpus): Likewise.
26014 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
26015 --with-arch/--with-cpu= options.
26016 Support --with-arch=/--with-cpu={nehalem,westmere,
26017 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
26019 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26021 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
26022 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
26024 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26026 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
26028 2014-01-18 Jakub Jelinek <jakub@redhat.com>
26031 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
26032 clear cpp_get_options (parse_in)->warn_unused_macros for
26033 ix86_target_macros_internal with cpp_define.
26035 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
26037 * jump.c (delete_related_insns): Keep (use (insn))s.
26038 * reorg.c (redundant_insn): Check for barriers too.
26040 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26042 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
26044 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
26046 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
26047 call to $$dyncall when TARGET_LONG_CALLS is true.
26049 2014-01-17 Jeff Law <law@redhat.com>
26051 * ree.c (combine_set_extension): Temporarily disable test for
26052 changing number of hard registers.
26054 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26056 PR middle-end/58125
26057 * ipa-inline-analysis.c (inline_free_summary):
26058 Do not free summary of aliases.
26060 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26062 PR middle-end/59706
26063 * gimplify.c (gimplify_expr): Use create_tmp_var
26064 instead of create_tmp_var_raw. If cond doesn't have
26065 integral type, don't add the IFN_ANNOTATE builtin at all.
26067 2014-01-17 Martin Jambor <mjambor@suse.cz>
26070 * ipa-cp.c (prev_edge_clone): New variable.
26071 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
26072 Also resize prev_edge_clone vector.
26073 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
26074 (ipcp_edge_removal_hook): New function.
26075 (ipcp_driver): Register ipcp_edge_removal_hook.
26077 2014-01-17 Andrew Pinski <apinski@cavium.com>
26078 Steve Ellcey <sellcey@mips.com>
26081 * config/mips/mips.c (mips_print_operand): Check operand mode instead
26084 2014-01-17 Jeff Law <law@redhat.com>
26086 PR middle-end/57904
26087 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
26088 so that pass_ccp runs first.
26090 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26092 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
26093 (ix86_adjust_cost): Use !TARGET_XXX.
26094 (do_reorder_for_imul): Likewise.
26095 (swap_top_of_ready_list): Likewise.
26096 (ix86_sched_reorder): Likewise.
26098 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26100 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26101 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
26102 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
26103 (intel_memset): New. Duplicate slm_memset.
26104 (intel_cost): New. Duplicate slm_cost.
26105 (m_INTEL): New macro.
26106 (processor_target_table): Add "intel".
26107 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
26108 with PROCESSOR_INTEL for "intel".
26109 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
26110 PROCESSOR_SILVERMONT.
26111 (ix86_issue_rate): Likewise.
26112 (ix86_adjust_cost): Likewise.
26113 (ia32_multipass_dfa_lookahead): Likewise.
26114 (swap_top_of_ready_list): Likewise.
26115 (ix86_sched_reorder): Likewise.
26116 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
26117 instead of TARGET_OPT_AGU.
26118 * config/i386/i386.h (TARGET_INTEL): New.
26119 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
26120 (processor_type): Add PROCESSOR_INTEL.
26121 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
26122 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
26124 2014-01-17 Marek Polacek <polacek@redhat.com>
26127 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
26130 2014-01-17 Richard Biener <rguenther@suse.de>
26132 PR tree-optimization/46590
26133 * opts.c (default_options_table): Add entries for
26134 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
26135 all enabled at -O1 but not for -Og.
26136 * common.opt (fbranch-count-reg): Remove Init(1).
26137 (fmove-loop-invariants): Likewise.
26138 (ftree-pta): Likewise.
26140 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26142 * config/i386/i386.c (ix86_data_alignment): For compatibility with
26143 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
26144 decls to at least the GCC 4.8 used alignments.
26147 * tree-nested.c (convert_nonlocal_reference_stmt,
26148 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
26149 of GIMPLE_BIND stmts, adjust associated decls.
26151 2014-01-17 Richard Biener <rguenther@suse.de>
26153 PR tree-optimization/46590
26154 * vec.h (vec<>::bseach): New member function implementing
26155 binary search according to C89 bsearch.
26156 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
26157 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
26158 bitmap pointer again. Make accesses_in_loop a flat array.
26159 (mem_ref_obstack): New global.
26160 (outermost_indep_loop): Adjust for mem_ref->stored changes.
26161 (mark_ref_stored): Likewise.
26162 (ref_indep_loop_p_2): Likewise.
26163 (set_ref_stored_in_loop): New helper function.
26164 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
26165 (memref_free): Adjust.
26166 (record_mem_ref_loc): Simplify.
26167 (gather_mem_refs_stmt): Adjust.
26168 (sort_locs_in_loop_postorder_cmp): New function.
26169 (analyze_memory_references): Sort accesses_in_loop after
26170 loop postorder number.
26171 (find_ref_loc_in_loop_cmp): New function.
26172 (for_all_locs_in_loop): Find relevant cluster of locs in
26173 accesses_in_loop and iterate without recursion.
26174 (execute_sm): Avoid uninit warning.
26175 (struct ref_always_accessed): Simplify.
26176 (ref_always_accessed::operator ()): Likewise.
26177 (ref_always_accessed_p): Likewise.
26178 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
26179 loop postorder numbers here.
26180 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
26183 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26186 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
26187 on decls for which assemble_alias has been called.
26189 2014-01-17 Nick Clifton <nickc@redhat.com>
26191 * config/msp430/msp430.opt: (mcpu): New option.
26192 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
26193 (msp430_option_override): Parse target_cpu. If the MCU name
26194 matches a generic string, clear target_mcu.
26195 (msp430_attr): Allow numeric interrupt values up to 63.
26196 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26197 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26199 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26201 * config/msp430/msp430.md (popm): Use %J rather than %I.
26202 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26203 (addhi_cy_i): Use immediate_operand for operand 2.
26204 * doc/invoke.texi: Document -mcpu option.
26206 2014-01-17 Richard Biener <rguenther@suse.de>
26208 PR rtl-optimization/38518
26209 * df.h (df_analyze_loop): Declare.
26210 * df-core.c: Include cfgloop.h.
26211 (df_analyze_1): Split out main part of df_analyze.
26212 (df_analyze): Adjust.
26213 (loop_inverted_post_order_compute): New function.
26214 (loop_post_order_compute): Likewise.
26215 (df_analyze_loop): New function avoiding whole-function
26216 postorder computes.
26217 * loop-invariant.c (find_defs): Use df_analyze_loop.
26218 (find_invariants): Adjust.
26219 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26221 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26223 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26224 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26226 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26228 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26229 traversal when removing references.
26231 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26234 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26236 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26238 PR middle-end/56791
26239 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26240 pushing a reload for an autoinc when we had previously reloaded an
26241 inner part of the address.
26243 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26245 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26247 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26248 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26249 when not giving up or versioning for alias only because of
26251 (vect_analyze_data_ref_dependences): Set to true.
26252 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26254 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26255 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26258 PR middle-end/58344
26259 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26262 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26263 operand 0 predicate for gathers, use a new pseudo as subtarget.
26265 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26267 PR middle-end/59609
26268 * lra-constraints.c (process_alt_operands): Add printing debug info.
26269 Check absence of input/output reloads for matched operands too.
26271 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26273 PR rtl-optimization/59835
26274 * ira.c (ira_init_register_move_cost): Increase cost for
26277 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26279 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26281 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26284 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26285 non-register objects. Use gen_(high/low)part more consistently.
26288 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26291 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26292 endian support, remove tests for WORDS_BIG_ENDIAN.
26293 (p8_mfvsrd_3_<mode>): Likewise.
26294 (reload_gpr_from_vsx<mode>): Likewise.
26295 (reload_gpr_from_vsxsf): Likewise.
26296 (p8_mfvsrd_4_disf): Likewise.
26298 2014-01-16 Richard Biener <rguenther@suse.de>
26300 PR rtl-optimization/46590
26301 * lcm.c (compute_antinout_edge): Use postorder iteration.
26302 (compute_laterin): Use inverted postorder iteration.
26304 2014-01-16 Nick Clifton <nickc@redhat.com>
26306 PR middle-end/28865
26307 * varasm.c (output_constant): Return the number of bytes actually
26309 (output_constructor_array_range): Update the field size with the
26310 number of bytes emitted by output_constant.
26311 (output_constructor_regular_field): Likewise. Also do not
26312 complain if the total number of bytes emitted is now greater
26313 than the expected fieldpos.
26314 * output.h (output_constant): Update prototype and descriptive comment.
26316 2014-01-16 Marek Polacek <polacek@redhat.com>
26318 PR middle-end/59827
26319 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26320 it is error_mark_node.
26322 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26324 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26325 VALID_AVX256_REG_OR_OI_MODE.
26327 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26329 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26330 current procedure should be profiled.
26332 2014-01-15 Andrew Pinski <apinski@cavium.com>
26334 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26335 of moving from/to the STACK_REG register class.
26337 2014-01-15 Richard Henderson <rth@redhat.com>
26340 * reginfo.c (global_regs_decl): Globalize.
26341 * rtl.h (global_regs_decl): Declare.
26342 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26343 reserved via global_regs.
26345 2014-01-15 Teresa Johnson <tejohnson@google.com>
26347 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26349 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26351 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26352 and vmulosh rather than call gen_vec_widen_smult_*.
26353 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26354 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26355 (vec_widen_smult_even_v16qi): Likewise.
26356 (vec_widen_umult_even_v8hi): Likewise.
26357 (vec_widen_smult_even_v8hi): Likewise.
26358 (vec_widen_umult_odd_v16qi): Likewise.
26359 (vec_widen_smult_odd_v16qi): Likewise.
26360 (vec_widen_umult_odd_v8hi): Likewise.
26361 (vec_widen_smult_odd_v8hi): Likewise.
26362 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26363 vmuloub rather than call gen_vec_widen_umult_*.
26364 (vec_widen_umult_lo_v16qi): Likewise.
26365 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26366 vmulosb rather than call gen_vec_widen_smult_*.
26367 (vec_widen_smult_lo_v16qi): Likewise.
26368 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26369 rather than call gen_vec_widen_umult_*.
26370 (vec_widen_umult_lo_v8hi): Likewise.
26371 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26372 rather than call gen_vec_widen_smult_*.
26373 (vec_widen_smult_lo_v8hi): Likewise.
26375 2014-01-15 Jeff Law <law@redhat.com>
26377 PR tree-optimization/59747
26378 * ree.c (find_and_remove_re): Properly handle case where a second
26379 eliminated extension requires widening a copy created for elimination
26380 of a prior extension.
26381 (combine_set_extension): Ensure that the number of hard regs needed
26382 for a destination register does not change when we widen it.
26384 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26386 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26387 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26388 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26389 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26390 (avr-*-rtems*): Likewise.
26391 (bfin*-rtems*): Likewise.
26392 (moxie-*-rtems*): Likewise.
26393 (h8300-*-rtems*): Likewise.
26394 (i[34567]86-*-rtems*): Likewise.
26395 (lm32-*-rtems*): Likewise.
26396 (m32r-*-rtems*): Likewise.
26397 (m68k-*-rtems*): Likewise.
26398 (microblaze*-*-rtems*): Likewise.
26399 (mips*-*-rtems*): Likewise.
26400 (powerpc-*-rtems*): Likewise.
26401 (sh-*-rtems*): Likewise.
26402 (sparc-*-rtems*): Likewise.
26403 (sparc64-*-rtems*): Likewise.
26404 (v850-*-rtems*): Likewise.
26405 (m32c-*-rtems*): Likewise.
26407 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26409 PR rtl-optimization/59511
26410 * ira.c (ira_init_register_move_cost): Use memory costs for some
26411 cases of register move cost calculations.
26412 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26413 instead of BB frequency.
26414 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26415 * lra-assigns.c (find_hard_regno_for): Ditto.
26417 2014-01-15 Richard Biener <rguenther@suse.de>
26419 PR tree-optimization/59822
26420 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26421 (vectorizable_load): Use it to hoist defs of uses of invariant
26422 loads out of the loop.
26424 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26425 Kugan Vivekanandarajah <kuganv@linaro.org>
26428 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26431 2014-01-15 Richard Biener <rguenther@suse.de>
26433 PR rtl-optimization/59802
26434 * lcm.c (compute_available): Use inverted postorder to seed
26435 the initial worklist.
26437 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26440 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26441 ADDR_REGS for invalid symrefs in non-PIC code.
26443 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26446 * builtins.c (determine_block_size): Initialize *probable_max_size
26447 even if len_rtx is CONST_INT.
26449 2014-01-14 Andrew Pinski <apinski@cavium.com>
26451 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26452 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26453 (cortexa53_tunings): Likewise.
26454 (aarch64_sched_issue_rate): New function.
26455 (TARGET_SCHED_ISSUE_RATE): Define.
26457 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26459 * ira-costs.c (find_costs_and_classes): Add missed
26460 ira_init_register_move_cost_if_necessary.
26462 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26465 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26467 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26470 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26471 to indicate if type is used for function return value. Warn ABI
26472 change if the vector mode isn't available for function return value.
26473 (ix86_function_arg_advance): Pass false to type_natural_mode.
26474 (ix86_function_arg): Likewise.
26475 (ix86_gimplify_va_arg): Likewise.
26476 (function_arg_32): Don't warn ABI change.
26477 (ix86_function_value): Pass true to type_natural_mode.
26478 (ix86_return_in_memory): Likewise.
26479 (ix86_struct_value_rtx): Removed.
26480 (TARGET_STRUCT_VALUE_RTX): Likewise.
26482 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26484 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26485 converting a conditional jump into a conditional return.
26487 2014-01-14 Richard Biener <rguenther@suse.de>
26489 PR tree-optimization/58921
26490 PR tree-optimization/59006
26491 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26492 hoisting invariant stmts.
26493 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26494 invariant loads on the preheader edge if possible.
26496 2014-01-14 Joey Ye <joey.ye@arm.com>
26498 * doc/plugin.texi (Building GCC plugins): Update to C++.
26500 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26502 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26503 (_mm_rcp28_round_ss): Ditto.
26504 (_mm_rsqrt28_round_sd): Ditto.
26505 (_mm_rsqrt28_round_ss): Ditto.
26506 (_mm_rcp28_sd): Ditto.
26507 (_mm_rcp28_ss): Ditto.
26508 (_mm_rsqrt28_sd): Ditto.
26509 (_mm_rsqrt28_ss): Ditto.
26510 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26511 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26512 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26513 (IX86_BUILTIN_RCP28SD): Ditto.
26514 (IX86_BUILTIN_RCP28SS): Ditto.
26515 (IX86_BUILTIN_RSQRT28SD): Ditto.
26516 (IX86_BUILTIN_RSQRT28SS): Ditto.
26517 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26518 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26519 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26520 (ix86_expand_special_args_builtin): Expand new FTYPE.
26521 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26522 (srcp14<mode>): Make insn unary.
26523 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26524 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26525 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26526 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26527 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26528 Fix rounding: make it SAE only.
26529 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26531 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26533 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26534 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26535 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26536 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26537 (round_saeonly_mask_scalar_operand4): Ditto.
26538 (round_saeonly_mask_scalar_op3): Ditto.
26539 (round_saeonly_mask_scalar_op4): Ditto.
26541 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26543 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26544 Implement -maltivec=be for vec_insert and vec_extract.
26546 2014-01-10 DJ Delorie <dj@redhat.com>
26548 * config/msp430/msp430.md (call_internal): Don't allow memory
26549 references with SP as the base register.
26550 (call_value_internal): Likewise.
26551 * config/msp430/constraints.md (Yc): New. For memory references
26552 that don't use SP as a base register.
26554 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26555 "an integer without a # prefix"
26556 * config/msp430/msp430.md (epilogue_helper): Use it.
26558 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26561 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26562 AVX512F gather builtins.
26563 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26564 on gather decls with INTEGER_TYPE masktype.
26565 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26566 directly into the builtin rather than hoisting it before loop.
26568 PR tree-optimization/59387
26569 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26570 (scev_const_prop): If folded_casts and type has undefined overflow,
26571 use force_gimple_operand instead of force_gimple_operand_gsi and
26572 for each added stmt if it is assign with
26573 arith_code_with_undefined_signed_overflow, call
26574 rewrite_to_defined_overflow.
26575 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26576 gimple-fold.h instead.
26577 (arith_code_with_undefined_signed_overflow,
26578 rewrite_to_defined_overflow): Moved to ...
26579 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26580 rewrite_to_defined_overflow): ... here. No longer static.
26581 Include gimplify-me.h.
26582 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26583 rewrite_to_defined_overflow): New prototypes.
26585 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26587 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26589 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26591 * builtins.c (get_object_alignment_2): Minor tweak.
26592 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26594 2014-01-13 Christian Bruel <christian.bruel@st.com>
26596 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26597 optimized non constant lengths.
26599 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26602 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26603 load as __atomic_load_N if possible.
26605 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26607 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26609 (rs6000_expand_builtin): Adjust call.
26611 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26614 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26615 * config/rs6000/rs6000.c: Include target-globals.h.
26616 (rs6000_set_current_function): Instead of doing target_reinit
26617 unconditionally, use save_target_globals_default_opts and
26618 restore_target_globals.
26620 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26622 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26623 (rs6000_expand_builtin): Handle mffs and mtfsf.
26624 (rs6000_init_builtins): Define mffs and mtfsf.
26625 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26626 (rs6000_mffs): New pattern.
26627 (rs6000_mtfsf): New pattern.
26629 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26631 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26632 Start narrowing with START. Apply candidate-use pair
26633 and check overall cost in narrowing.
26634 (iv_ca_prune): Pass new argument.
26636 2014-01-10 Jeff Law <law@redhat.com>
26638 PR middle-end/59743
26639 * ree.c (combine_reaching_defs): Ensure the defining statement
26640 occurs before the extension when optimizing extensions with
26641 different source and destination hard registers.
26643 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26646 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26647 vtables into the type inheritance graph.
26649 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26651 PR rtl-optimization/59754
26652 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26653 modes in the REGNO != REGNO case.
26655 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26657 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26659 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26661 PR tree-optimization/59745
26662 * tree-predcom.c (tree_predictive_commoning_loop): Call
26663 free_affine_expand_cache if giving up because components is NULL.
26665 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26666 GC in payload of target_globals struct instead of allocating them on
26667 the heap and the larger structs separately using GC.
26668 * target-globals.h (struct target_globals): Make regs, hard_regs,
26669 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26670 of GTY((skip)) and change type to void *.
26671 (reset_target_globals): Cast loads from those fields to corresponding
26674 2014-01-10 Steve Ellcey <sellcey@mips.com>
26677 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26678 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26679 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26681 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26684 * aarch64-modes.def (CC_Zmode): New flags mode.
26685 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26686 represents an equality.
26687 (aarch64_get_condition_code): Handle CC_Zmode.
26688 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26690 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26692 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26693 extraction in good case.
26695 2014-01-10 Richard Biener <rguenther@suse.de>
26697 PR tree-optimization/59374
26698 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26699 checking after SLP discovery. Mark stmts not participating
26700 in any SLP instance properly.
26702 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26704 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26705 when handling a SET rtx.
26707 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26709 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26710 (cortex-a57): Likewise.
26711 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26713 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26715 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26716 non-iwmmxt builtins.
26718 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26722 * ipa-devirt.c record_target_from_binfo): Take as argument
26723 stack of binfos and lookup matching one for virtual inheritance.
26724 (possible_polymorphic_call_targets_1): Update.
26726 2014-01-10 Huacai Chen <chenhc@lemote.com>
26728 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26729 kernel strings for Loongson-2E/2F/3A.
26731 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26733 PR middle-end/59670
26734 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26735 is_gimple_call before calling gimple_call_internal_p.
26737 2014-01-09 Steve Ellcey <sellcey@mips.com>
26739 * Makefile.in (TREE_FLOW_H): Remove.
26740 (TREE_SSA_H): Add file names from tree-flow.h.
26741 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26742 * tree.h: Remove tree-flow.h reference.
26743 * hash-table.h: Remove tree-flow.h reference.
26744 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26745 reference with tree-ssa-loop.h.
26747 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26749 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26750 default element-order behavior for -maltivec.
26751 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26752 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26753 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26754 when targeting big endian, at least for now.
26755 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26757 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26759 PR middle-end/47735
26760 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26761 var satisfies use_register_for_decl, just take into account type
26762 alignment, rather than decl alignment.
26764 PR tree-optimization/59622
26765 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26766 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26767 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26768 Don't devirtualize for inplace at all. For targets.length () == 1,
26769 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26771 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26773 * config/i386/i386.md (cpu): Remove the unused btver1.
26775 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26777 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26779 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26782 * tree-core.h (struct target_globals): New forward declaration.
26783 (struct tree_target_option): Add globals field.
26784 * tree.h (TREE_TARGET_GLOBALS): Define.
26785 (prepare_target_option_nodes_for_pch): New prototype.
26786 * target-globals.h (struct target_globals): Define even if
26787 !SWITCHABLE_TARGET.
26788 * tree.c (prepare_target_option_node_for_pch,
26789 prepare_target_option_nodes_for_pch): New functions.
26790 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26791 * config/i386/i386.c: Include target-globals.h.
26792 (ix86_set_current_function): Instead of doing target_reinit
26793 unconditionally, use save_target_globals_default_opts and
26794 restore_target_globals.
26796 2014-01-09 Richard Biener <rguenther@suse.de>
26798 PR tree-optimization/59715
26799 * tree-cfg.h (split_critical_edges): Declare.
26800 * tree-cfg.c (split_critical_edges): Export.
26801 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26803 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26805 * cfgexpand.c (expand_stack_vars): Optionally disable
26806 asan stack protection.
26807 (expand_used_vars): Likewise.
26808 (partition_stack_vars): Likewise.
26809 * asan.c (asan_emit_stack_protection): Optionally disable
26810 after return stack usage.
26811 (instrument_derefs): Optionally disable memory access instrumentation.
26812 (instrument_builtin_call): Likewise.
26813 (instrument_strlen_call): Likewise.
26814 (asan_protect_global): Optionally disable global variables protection.
26815 * doc/invoke.texi: Added doc for new options.
26816 * params.def: Added new options.
26817 * params.h: Likewise.
26819 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26821 PR rtl-optimization/59724
26822 * ifcvt.c (cond_exec_process_if_block): Don't call
26823 flow_find_head_matching_sequence with 0 longest_match.
26824 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26825 non-active insns if !stop_after.
26826 (try_head_merge_bb): Revert 2014-01-07 changes.
26828 2014-01-08 Jeff Law <law@redhat.com>
26830 * ree.c (get_sub_rtx): New function, extracted from...
26831 (merge_def_and_ext): Here.
26832 (combine_reaching_defs): Use get_sub_rtx.
26834 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26836 * cgraph.h (varpool_variable_node): Do not choke on null node.
26838 2014-01-08 Catherine Moore <clm@codesourcery.com>
26840 * config/mips/mips.md (simple_return): Attempt to use JRC
26842 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26844 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26846 PR rtl-optimization/59137
26847 * reorg.c (steal_delay_list_from_target): Call update_block for
26849 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26851 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26853 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26854 two duplicate entries.
26856 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26859 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26861 * config/mips/mips.c (mips_truncated_op_cost): New function.
26862 (mips_rtx_costs): Adjust test for BADDU.
26863 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26865 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26867 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26868 (*baddu_si): ...this new pattern.
26870 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26873 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26875 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26877 PR middle-end/57748
26878 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26880 (expand_expr, expand_normal): Adjust.
26881 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26882 inner_reference_p. Use inner_reference_p to expand inner references.
26883 (store_expr): Adjust.
26884 * cfgexpand.c (expand_call_stmt): Adjust.
26886 2014-01-08 Rong Xu <xur@google.com>
26888 * gcov-io.c (gcov_var): Move from gcov-io.h.
26889 (gcov_position): Ditto.
26890 (gcov_is_error): Ditto.
26891 (gcov_rewrite): Ditto.
26892 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26893 only part to libgcc/libgcov.h.
26895 2014-01-08 Marek Polacek <polacek@redhat.com>
26897 PR middle-end/59669
26898 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26900 2014-01-08 Marek Polacek <polacek@redhat.com>
26903 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26905 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26907 PR rtl-optimization/59649
26908 * stor-layout.c (get_mode_bounds): For BImode return
26909 0 and STORE_FLAG_VALUE.
26911 2014-01-08 Richard Biener <rguenther@suse.de>
26913 PR middle-end/59630
26914 * gimple.h (is_gimple_builtin_call): Remove.
26915 (gimple_builtin_call_types_compatible_p): New.
26916 (gimple_call_builtin_p): New overload.
26917 * gimple.c (is_gimple_builtin_call): Remove.
26918 (validate_call): Rename to ...
26919 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26920 check return types.
26921 (validate_type): New static function.
26922 (gimple_call_builtin_p): New overload and adjust.
26923 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26924 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26925 (gimple_fold_stmt_to_constant_1): Likewise.
26926 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26928 2014-01-08 Richard Biener <rguenther@suse.de>
26930 PR middle-end/59471
26931 * gimplify.c (gimplify_expr): Gimplify register-register type
26932 VIEW_CONVERT_EXPRs to separate stmts.
26934 2014-01-07 Jeff Law <law@redhat.com>
26936 PR middle-end/53623
26937 * ree.c (combine_set_extension): Handle case where source
26938 and destination registers in an extension insn are different.
26939 (combine_reaching_defs): Allow source and destination registers
26940 in extension to be different under limited circumstances.
26941 (add_removable_extension): Remove restriction that the
26942 source and destination registers in the extension are the same.
26943 (find_and_remove_re): Emit a copy from the extension's
26944 destination to its source after the defining insn if
26945 the source and destination registers are different.
26947 PR middle-end/59285
26948 * ifcvt.c (merge_if_block): If we are merging a block with more than
26949 one successor with a block with no successors, remove any BARRIER
26950 after the second block.
26952 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26954 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26956 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26959 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26960 for 14-bit register offsets when INT14_OK_STRICT is false.
26962 2014-01-07 Roland Stigge <stigge@antcom.de>
26963 Michael Meissner <meissner@linux.vnet.ibm.com>
26966 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26967 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26969 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26971 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26974 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26976 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26977 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26978 rtx is const0_rtx or not.
26980 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26983 * target-globals.c (save_target_globals): Remove this_fn_optab
26985 * toplev.c: Include optabs.h.
26986 (target_reinit): Temporarily restore the global options if another
26987 set of options are in force.
26989 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26991 PR rtl-optimization/58668
26992 * cfgcleanup.c (flow_find_cross_jump): Don't count
26993 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26994 to determine what is counted.
26995 (flow_find_head_matching_sequence): Use active_insn_p to determine
26997 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26999 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
27000 determine what is counted.
27002 PR tree-optimization/59643
27003 * tree-predcom.c (split_data_refs_to_components): If one dr is
27004 read and one write, determine_offset fails and the write isn't
27005 in the bad component, just put the read into the bad component.
27007 2014-01-07 Mike Stump <mikestump@comcast.net>
27008 Jakub Jelinek <jakub@redhat.com>
27011 * tree-core.h (struct tree_optimization_option): Change optabs
27012 type from unsigned char * to void *.
27013 * optabs.c (init_tree_optimization_optabs): Adjust
27014 TREE_OPTIMIZATION_OPTABS initialization.
27016 2014-01-06 Jakub Jelinek <jakub@redhat.com>
27019 * config/i386/i386.h (struct machine_function): Add
27020 no_drap_save_restore field.
27021 * config/i386/i386.c (ix86_save_reg): Use
27022 !cfun->machine->no_drap_save_restore instead of
27023 crtl->stack_realign_needed.
27024 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
27025 this function clears frame_pointer_needed. Set
27026 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
27027 and DRAP reg is needed.
27029 2014-01-06 Marek Polacek <polacek@redhat.com>
27032 * doc/implement-c.texi: Mention that other integer types are
27033 permitted as bit-field types in strictly conforming mode.
27035 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
27037 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
27038 is newly allocated.
27040 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
27042 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
27044 2014-01-06 Martin Jambor <mjambor@suse.cz>
27047 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
27049 * ipa-prop.c (ipa_print_node_params): Fix indentation.
27051 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
27055 * var-tracking.c (add_stores): Preserve the value of the source even if
27056 we don't record the store.
27058 2014-01-06 Terry Guo <terry.guo@arm.com>
27060 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
27062 2014-01-05 Iain Sandoe <iain@codesourcery.com>
27065 * config/darwin.c (darwin_function_section): Adjust return values to
27066 correspond to optimisation changes made in r206070.
27068 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
27070 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
27071 from prefetch_block tune setting.
27072 (nocona_cost): Correct size of prefetch block to 64.
27074 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
27076 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
27077 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
27078 used to save the static chain register in the computation of the offset
27079 from which the FP registers need to be restored.
27081 2014-01-04 Jakub Jelinek <jakub@redhat.com>
27083 PR tree-optimization/59519
27084 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
27085 ICE if get_current_def (current_new_name) is already non-NULL, as long
27086 as it is a phi result of some other phi in *new_exit_bb that has
27089 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
27090 or vmovdqu* for misaligned_operand.
27091 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
27092 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
27093 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
27094 aligned_mem for AVX512F masked aligned load and store builtins and for
27095 non-temporal moves.
27097 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
27099 PR tree-optimization/59651
27100 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
27101 Address range for negative step should be added by TYPE_SIZE_UNIT.
27103 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
27105 * config/m68k/m68k.c (handle_move_double): Handle pushes with
27106 overlapping registers also for registers other than the stack pointer.
27108 2014-01-03 Marek Polacek <polacek@redhat.com>
27111 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
27114 2014-01-03 Jakub Jelinek <jakub@redhat.com>
27117 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
27120 * config/i386/i386.md (MODE_SIZE): New mode attribute.
27121 (push splitter): Use <P:MODE_SIZE> instead of
27122 GET_MODE_SIZE (<P:MODE>mode).
27123 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
27124 (mov -1, reg peephole2): Likewise.
27125 * config/i386/sse.md (*mov<mode>_internal,
27126 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
27127 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
27128 *<code><mode>3, *andnot<mode>3<mask_name>,
27129 <mask_codefor><code><mode>3<mask_name>): Likewise.
27130 * config/i386/subst.md (mask_mode512bit_condition,
27131 sd_mask_mode512bit_condition): Likewise.
27133 2014-01-02 Xinliang David Li <davidxl@google.com>
27135 PR tree-optimization/59303
27136 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
27137 (dump_predicates): Better output format.
27138 (pred_equal_p): New function.
27139 (is_neq_relop_p): Ditto.
27140 (is_neq_zero_form_p): Ditto.
27141 (pred_expr_equal_p): Ditto.
27142 (pred_neg_p): Ditto.
27143 (simplify_pred): Ditto.
27144 (simplify_preds_2): Ditto.
27145 (simplify_preds_3): Ditto.
27146 (simplify_preds_4): Ditto.
27147 (simplify_preds): Ditto.
27148 (push_pred): Ditto.
27149 (push_to_worklist): Ditto.
27150 (get_pred_info_from_cmp): Ditto.
27151 (is_degenerated_phi): Ditto.
27152 (normalize_one_pred_1): Ditto.
27153 (normalize_one_pred): Ditto.
27154 (normalize_one_pred_chain): Ditto.
27155 (normalize_preds): Ditto.
27156 (normalize_cond_1): Remove function.
27157 (normalize_cond): Ditto.
27158 (is_gcond_subset_of): Ditto.
27159 (is_subset_of_any): Ditto.
27160 (is_or_set_subset_of): Ditto.
27161 (is_and_set_subset_of): Ditto.
27162 (is_norm_cond_subset_of): Ditto.
27163 (pred_chain_length_cmp): Ditto.
27164 (convert_control_dep_chain_into_preds): Type change.
27165 (find_predicates): Ditto.
27166 (find_def_preds): Ditto.
27167 (destroy_predicates_vecs): Ditto.
27168 (find_matching_predicates_in_rest_chains): Ditto.
27169 (use_pred_not_overlap_with_undef_path_pred): Ditto.
27170 (is_pred_expr_subset): Ditto.
27171 (is_pred_chain_subset_of): Ditto.
27172 (is_included_in): Ditto.
27173 (is_superset_of): Ditto.
27175 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27177 Update copyright years.
27179 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27181 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
27182 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
27183 config/arc/arc.md, config/arc/arc.opt,
27184 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
27185 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
27186 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
27187 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
27188 config/linux-protos.h, config/linux.c, config/winnt-c.c,
27189 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
27190 vtable-verify.c, vtable-verify.h: Use the standard form for the
27193 2014-01-02 Tobias Burnus <burnus@net-b.de>
27195 * gcc.c (process_command): Update copyright notice dates.
27196 * gcov-dump.c: Ditto.
27198 * doc/cpp.texi: Bump @copying's copyright year.
27199 * doc/cppinternals.texi: Ditto.
27200 * doc/gcc.texi: Ditto.
27201 * doc/gccint.texi: Ditto.
27202 * doc/gcov.texi: Ditto.
27203 * doc/install.texi: Ditto.
27204 * doc/invoke.texi: Ditto.
27206 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27208 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27210 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27212 * config/i386/sse.md (*mov<mode>_internal): Guard
27213 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27215 PR rtl-optimization/59647
27216 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27217 new_rtx into UNSIGNED_FLOAT rtxes.
27219 Copyright (C) 2014 Free Software Foundation, Inc.
27221 Copying and distribution of this file, with or without modification,
27222 are permitted in any medium without royalty provided the copyright
27223 notice and this notice are preserved.