gcc/
[official-gcc.git] / gcc / ChangeLog
blob89efc15e6b8d60e32c648729012d1823edc26e7f
1 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3         * ddg.c: Include rtl-iter.h.
4         (mark_mem_use_1): Rename to...
5         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
6         instead of for_each_rtx.
7         (mem_read_insn_p): Update accordingly.
9 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11         * cse.c (change_cc_mode_args): Delete.
12         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
13         a function that examines each subrtx itself.  Take the fields of
14         change_cc_mode_args as argument and return void.
15         (cse_change_cc_mode_insn): Update calls accordingly.
17 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19         * cse.c (is_dead_reg): Change argument to const_rtx.
20         (dead_debug_insn_data): Delete.
21         (is_dead_debug_insn): Expand commentary.  Turn from being a
22         for_each_rtx callback to being a function that examines
23         each subrtx itself.  Take the fields of dead_debug_insn_data
24         as argument.
25         (delete_trivially_dead_insns): Update call accordingly.
27 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
29         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
30         being a for_each_rtx callback to being a function that examines
31         each subrtx itself.
32         (cse_extended_basic_block): Update call accordingly.
34 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
36         * cse.c (check_dependence_data): Delete.
37         (check_dependence): Change from being a for_each_rtx callback to being
38         a function that examines all subrtxes itself.  Don't handle null rtxes.
39         (invalidate): Update call accordingly.
41 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
43         * cse.c: Include rtl-iter.h.
44         (approx_reg_cost_1): Delete.
45         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
46         Don't handle null rtxes.
48 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
50         * cfgcleanup.c: Include rtl-iter.h.
51         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
52         to being a function that examines each subrtx itself.
53         (thread_jump): Update accordingly.
55 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
57         * combine-stack-adj.c: Include rtl-iter.h.
58         (record_stack_refs_data): Delete.
59         (record_stack_refs): Turn from being a for_each_rtx callback
60         to being a function that examines each subrtx itself.
61         Take a pointer to the reflist.  Invert sense of return value
62         so that true means success and false means failure.  Don't
63         handle null rtxes.
64         (combine_stack_adjustments_for_block): Update accordingly.
66 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
68         * combine.c (record_truncated_value): Turn from being a for_each_rtx
69         callback to a function that takes an rtx and returns a bool
70         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
71         for_each_rtx.
73 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
75         * combine.c: Include rtl-iter.h.
76         (unmentioned_reg_p_1): Delete.
77         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
78         Don't handle null rtxes.
80 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
82         * calls.c: Include rtl-iter.h.
83         (internal_arg_pointer_based_exp_1): Delete.
84         (internal_arg_pointer_based_exp): Take a const_rtx.
85         Use FOR_EACH_SUBRTX to iterate over subrtxes.
87 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
89         * caller-save.c: Include rtl-iter.h.
90         (add_used_regs_1): Delete.
91         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
92         to iterate over subrtxes.  Assert that any remaining pseudos
93         have been spilled.
95 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
97         * bt-load.c: Include rtl-iter.h.
98         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
99         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
100         to iterate over subrtxes.
101         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
102         find_btr_use rather than btr_referenced_p.
104 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
106         * alias.c: Include rtl-iter.h.
107         (refs_newer_value_cb): Delete.
108         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
110 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
112         * rtl-iter.h: New file.
113         * rtlanal.c: Include it.
114         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
115         (generic_subrtx_iterator <T>::add_single_to_queue)
116         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
117         (generic_subrtx_iterator <T>::free_array): New functions.
118         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
119         (generic_subrtx_iterator <const_rtx_accessor>)
120         (generic_subrtx_iterator <rtx_var_accessor>
121         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
122         (setup_reg_subrtx_bounds): New function.
123         (init_rtlanal): Call it.
125 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
127         PR target/62261
128         * config/sh/sh.md (ashlsi3): Handle negative shift count for
129         TARGET_SHMEDIA.
130         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
132 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
134         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
136 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
138         * rtl.h (JUMP_LABEL_AS_INSN): New.
140 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
142         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
143         rtx_expr_list **.
144         (alloc_EXPR_LIST): Strengthen return type from rtx to
145         rtx_expr_list *.
146         (remove_free_EXPR_LIST_node): Likewise for param.
147         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
148         from rtx to rtx_expr_list *.
149         * sched-int.h (struct deps_desc): Strengthen fields
150         "pending_read_mems" and "pending_write_mems" from rtx to
151         rtx_expr_list *.
153         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
154         rtx to rtx_expr_list *.
155         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
156         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
157         rtx_expr_list **.
158         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
159         from rtx to rtx_expr_list *.
160         * loop-iv.c (simplify_using_initial_values): Strengthen local
161         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
162         "pnote_next" from rtx * to rtx_expr_list **.
163         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
164         param "exprp" from rtx * to rtx_expr_list **.
165         (add_insn_mem_dependence): Strengthen local "mem_list" from
166         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
167         to rtx_expr_list *.
168         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
169         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
170         param "old_mems_p" from rtx * to rtx_expr_list **.
171         * var-tracking.c (struct adjust_mem_data): Strengthen field
172         "side_effects" from rtx to rtx_expr_list *.
173         (adjust_insn): Replace NULL_RTX with NULL when assigning to
174         rtx_expr_list *.
175         (prepare_call_arguments): Likewise.
177 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
179         * function.h (struct rtl_data): Strengthen field
180         "x_stack_slot_list" from rtx to rtx_expr_list *.
182         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
183         when assigning to stack_slot_list.
185 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
187         * function.h (struct rtl_data): Strengthen field
188         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
189         * rtl.h (remove_node_from_expr_list): Strengthen second param from
190         rtx * to rtx_expr_list **.
192         * cfgbuild.c (make_edges): In loop over
193         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
194         rtx_expr_list *, and use methods of the latter class to clarify
195         the code.
196         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
197         rtx_expr_list *, and use methods of the latter class to clarify
198         the code.
199         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
200         * reload1.c (set_initial_label_offsets): Likewise for local "x".
201         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
202         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
203         to rtx_expr_list *.  Use methods of the latter class to clarify
204         the code.
206 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
208         * function.h (struct expr_status): Strengthen field
209         "x_forced_labels" from rtx to rtx_expr_list *.
211         * cfgbuild.c (make_edges): Split local "x" into two locals,
212         strengthening one from rtx to rtx_expr_list *, and using methods
213         of said class.
214         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
215         loop over forced_labels, introduce strengthen it from rtx to
216         rtx_expr_list *, using methods to clarify the code.
217         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
218         to rtx_expr_list *, using methods of said class to clarify the
219         code.
220         * reload1.c (set_initial_label_offsets): Split local "x" into two
221         per-loop variables, strengthening the first from rtx to
222         rtx_expr_list * and using methods.
224 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
226         * coretypes.h (class rtx_expr_list): Add forward declaration.
227         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
228         * gengenrtl.c (special_rtx): Add EXPR_LIST.
229         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
230         invariant: GET_CODE (X) == EXPR_LIST.
231         (is_a_helper <rtx_expr_list *>::test): New.
232         (rtx_expr_list::next): New.
233         (rtx_expr_list::element): New.
234         (gen_rtx_EXPR_LIST): New.
236 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
238         * varasm.c (mark_constants): Convert a GET_CODE check into a
239         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
240         Use methods of rtx_sequence to clarify the code.
242 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
244         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
245         local "seq" via a checked cast, and use methods of rtx_sequence
246         to simplify the code.
248 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
250         * resource.c (mark_referenced_resources): Strengthen local
251         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
252         using methods of rtx_sequence to clarify the code.
253         (find_dead_or_set_registers): Within the switch statement, convert
254         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
255         the JUMP_P handling, introduce another local "seq", adding a
256         checked cast to rtx_sequence *.  In both cases, use methods of
257         rtx_sequence to clarify the code.
258         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
259         via a checked cast, and use methods of rtx_sequence to simplify
260         the code.
262 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
264         * reorg.c (redundant_insn): In two places in the function, replace
265         a check of GET_CODE with a dyn_cast, introducing local "seq", and
266         usings methods of rtx_sequence to clarify the code.
268 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
270         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
271         local "seq" with a checked cast, and use methods of rtx_sequence
272         to clarify the code.
274 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
276         * function.c (contains): Introduce local "seq" for PATTERN (insn),
277         with a checked cast, in the region for where we know it's a
278         SEQUENCE.  Use methods of rtx_sequence.
280 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
282         * final.c (get_attr_length_1): Replace GET_CODE check with a
283         dyn_cast, introducing local "seq" and the use of methods of
284         rtx_sequence.
285         (shorten_branches): Likewise, introducing local "body_seq".
286         Strengthen local "inner_insn" from rtx to rtx_insn *.
287         (reemit_insn_block_notes): Replace GET_CODE check with a
288         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
289         Use methods of rtx_sequence.
290         (final_scan_insn): Likewise, introducing local "seq" for when
291         "body" is known to be a SEQUENCE, using its methods.
293 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
295         * except.c (can_throw_external): Strengthen local "seq" from rtx
296         to rtx_sequence *.  Use methods of rtx_sequence.
297         (insn_nothrow_p): Likewise.
299 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
301         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
302         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
303         Use methods of rtx_sequence.
304         (scan_trace): Likewise for local "pat".
306 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
308         * coretypes.h (class rtx_sequence): Add forward declaration.
309         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
310         invariant: GET_CODE (X) == SEQUENCE.
311         (is_a_helper <rtx_sequence *>::test): New.
312         (is_a_helper <const rtx_sequence *>::test): New.
313         (rtx_sequence::len): New.
314         (rtx_sequence::element): New.
315         (rtx_sequence::insn): New.
317 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
319         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
320         rtx_insn_list **.
321         (alloc_INSN_LIST): Strengthen return type from rtx to
322         rtx_insn_list *.
323         (copy_INSN_LIST): Likewise for return type and param.
324         (concat_INSN_LIST): Likewise for both params and return type.
325         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
326         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
327         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
328         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
330         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
331         "implicit_sets", "control_uses", "clobbers" from rtx to
332         rtx_insn_list *.
333         (struct deps_desc): Likewise for fields "pending_read_insns",
334         "pending_write_insns", "pending_jump_insns",
335         "last_pending_memory_flush", "last_function_call",
336         "last_function_call_may_noreturn", "sched_before_next_call",
337         "sched_before_next_jump".
338         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
339         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
341         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
342         from rtx to rtx_insn_list *.
343         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
344         rtx_insn_list *.
346         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
347         to rtx_insn_list **.
348         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
349         rtx_insn_list *.
350         (queue_insn): Likewise for local "link".
351         (struct haifa_saved_data): Strengthen field "insn_queue" from
352         rtx * to rtx_insn_list **.
353         (save_backtrack_point): Update allocation of save->insn_queue to
354         reflect the strengthening of elements from rtx to rtx_insn_list *.
355         (queue_to_ready): Strengthen local "link" from rtx to
356         rtx_insn_list *; use methods "next" and "insn" when traversing the
357         list.
358         (early_queue_to_ready): Likewise for locals "link", "next_link",
359         "prev_link".
360         (schedule_block): Update allocation of insn_queue to reflect the
361         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
362         local "link" from rtx to rtx_insn_list *, and use methods when
363         working it.
364         (add_to_speculative_block): Strengthen locals "twins" and
365         "next_node" from rtx to rtx_insn_list *, and use methods when
366         working with them.  Strengthen local "twin" from rtx to
367         rtx_insn *, eliminating a checked cast.
368         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
369         from rtx to rtx_insn_list *, and use methods when working with
370         them.
372         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
373         from rtx to rtx_insn_list *, adding a checked cast.
374         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
375         rtx_insn_list **.
376         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
377         "newlink" from rtx to rtx_insn_list *.  Strengthen local
378         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
379         from rtx to rtx_insn *.
380         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
381         from rtx to rtx_insn_list *.  Use methods of the latter class.
382         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
383         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
384         (remove_free_INSN_LIST_node): Strengthen return type and local
385         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
386         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
387         rtx_insn_list *, using "insn" method.
389         * sched-deps.c (add_dependence_list):  Strengthen param "list"
390         from rtx to rtx_insn_list *, and use methods when working with it.
391         (add_dependence_list_and_free):  Strengthen param "listp" from
392         rtx * to rtx_insn_list **.
393         (remove_from_dependence_list): Strenghten param "listp" from rtx *
394         to rtx_insn_list **, and use methods when working with *listp.
395         (remove_from_both_dependence_lists): Strengthen param "listp" from
396         rtx * to rtx_insn_list **
397         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
398         to rtx_insn_list **.  Eliminate local "link", in favor of two new
399         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
400         respectively.
401         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
402         by introducing local "cond_deps".
403         (remove_from_deps): Strengthen param "insn" from rtx to
404         rtx_insn *.
406         * sched-rgn.c (concat_insn_mem_list): Strengthen param
407         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
408         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
409         Use methods of rtx_insn_list.
411         * store-motion.c (struct st_expr): Strengthen fields
412         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
413         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
414         rtx_insn_list *.
415         (find_moveable_store): Split out "tmp" into multiple more-tightly
416         scoped locals.  Use methods of rtx_insn_list *.
417         (compute_store_table): Strengthen local "tmp" from rtx to
418         rtx_insn *.  Use methods of rtx_insn_list *.
420 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
422         * coretypes.h (class rtx_insn_list): Add forward declaration.
423         * rtl.h (class rtx_insn_list): New subclass of rtx_def
424         (is_a_helper <rtx_insn_list *>::test): New.
425         (rtx_insn_list::next): New.
426         (rtx_insn_list::insn): New.
427         (gen_rtx_INSN_LIST): Add prototype.
428         * emit-rtl.c (gen_rtx_INSN_LIST): New.
429         * gengenrtl.c (special_rtx): Add INSN_LIST.
431 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
433         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
434         "prev" from rtx to rtx_insn *.
436 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
438         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
439         functions.  Require merely an rtx for now, not an rtx_insn *.
440         (BLOCK_FOR_INSN): Likewise.
441         (INSN_LOCATION): Likewise.
442         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
444 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
446         * rtl.h (PATTERN): Convert this macro into a pair of inline
447         functions, for now, requiring const_rtx and rtx.
449 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
451         * target.def (unwind_emit): Strengthen param "insn" from rtx to
452         rtx_insn *.
453         (final_postscan_insn): Likewise.
454         (adjust_cost): Likewise.
455         (adjust_priority): Likewise.
456         (variable_issue): Likewise.
457         (macro_fusion_pair_p): Likewise.
458         (dfa_post_cycle_insn): Likewise.
459         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
460         (first_cycle_multipass_issue): Likewise.
461         (dfa_new_cycle): Likewise.
462         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
463         (speculate_insn): Likewise for param "insn".
464         (gen_spec_check): Likewise for params "insn" and "label".
465         (get_insn_spec_ds): Likewise for param "insn".
466         (get_insn_checked_ds): Likewise.
467         (dispatch_do): Likewise.
468         (dispatch): Likewise.
469         (cannot_copy_insn_p): Likewise.
470         (invalid_within_doloop): Likewise.
471         (legitimate_combined_insn): Likewise.
472         (needed): Likewise.
473         (after): Likewise.
475         * doc/tm.texi: Automatically updated to reflect changes to
476         target.def.
478         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
479         working with insn.
480         (schedule_block): Likewise.
481         (sched_init): Likewise.
482         (sched_speculate_insn): Strengthen param "insn" from rtx to
483         rtx_insn *.
484         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
485         working with insn.
486         * hooks.c (hook_bool_rtx_true): Rename to...
487         hook_bool_rtx_insn_true): ...this, and strengthen first param from
488         rtx to rtx_insn *.
489         (hook_constcharptr_const_rtx_null): Rename to...
490         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
491         first param from const_rtx to const rtx_insn *.
492         (hook_bool_rtx_int_false): Rename to...
493         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
494         param from rtx to rtx_insn *.
495         (hook_void_rtx_int): Rename to...
496         (hook_void_rtx_insn_int): ...this, and strengthen first param from
497         rtx to rtx_insn *.
499         * hooks.h (hook_bool_rtx_true): Rename to...
500         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
501         rtx to rtx_insn *.
502         (hook_bool_rtx_int_false): Rename to...
503         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
504         param from rtx to rtx_insn *.
505         (hook_void_rtx_int): Rename to...
506         (hook_void_rtx_insn_int): ...this, and strengthen first param from
507         rtx to rtx_insn *.
508         (hook_constcharptr_const_rtx_null): Rename to...
509         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
510         first param from const_rtx to const rtx_insn *.
512         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
513         and local "prev" from rtx to rtx_insn *.
515         * sched-int.h (sched_speculate_insn): Strengthen first param from
516         rtx to rtx_insn *.
518         * sel-sched.c (create_speculation_check): Likewise for local "label".
519         * targhooks.c (default_invalid_within_doloop): Strengthen param
520         "insn" from const_rtx to const rtx_insn *.
521         * targhooks.h (default_invalid_within_doloop): Strengthen param
522         from const_rtx to const rtx_insn *.
524         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
525         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
527         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
528         "insn".
529         (arc_invalid_within_doloop): Likewise, with const.
531         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
532         (arm_cannot_copy_insn_p): Likewise for param "insn".
533         (arm_unwind_emit): Likewise.
535         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
536         "dep_insn".
538         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
539         (c6x_variable_issue): Likewise.  Removed now-redundant checked
540         cast.
541         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
543         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
544         Likewise for param "insn".
545         (epiphany_mode_after): Likewise.
546         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
547         params "insn", "dep_insn".
548         (epiphany_mode_needed): Likewise for param "insn".
549         (epiphany_mode_after): Likewise.
551         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
552         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
553         (ix86_avx_u128_mode_needed): Likewise.
554         (ix86_i387_mode_needed): Likewise.
555         (ix86_mode_needed): Likewise.
556         (ix86_avx_u128_mode_after): Likewise.
557         (ix86_mode_after): Likewise.
558         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
559         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
560         (ix86_adjust_priority): Likewise for param "insn".
561         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
562         (do_dispatch): Likewise.
563         (has_dispatch): Likewise.
564         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
566         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
567         reflect renaming of default hook implementation from
568         hook_constcharptr_const_rtx_null to
569         hook_constcharptr_const_rtx_insn_null.
570         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
571         rtx to rtx_insn *.
572         (ia64_variable_issue): Likewise for param "insn".
573         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
574         (ia64_dfa_new_cycle): Likewise.
575         (ia64_get_insn_spec_ds): Likewise.
576         (ia64_get_insn_checked_ds): Likewise.
577         (ia64_speculate_insn): Likewise.
578         (ia64_gen_spec_check): Likewise for params "insn", "label".
579         (ia64_asm_unwind_emit): Likewise for param "insn".
581         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
583         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
584         "insn", "def_insn".
585         (m68k_sched_variable_issue): Likewise for param "insn".
587         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
588         "def_insn".
590         * config/microblaze/microblaze.c (microblaze_adjust_cost):
591         Likewise for params "insn", "dep".
593         * config/mips/mips.c (mips_adjust_cost): Likewise.
594         (mips_variable_issue): Likewise for param "insn".
595         (mips_final_postscan_insn): Likewise.
597         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
598         for params "insn", "dep".
600         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
601         "dep_insn".
602         (pa_adjust_priority): Likewise for param "insn".
604         * config/picochip/picochip.c (picochip_sched_adjust_cost):
605         Likewise for params "insn", "dep_insn".
607         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
608         param "insn".
609         (rs6000_variable_issue): Likewise.
610         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
611         (rs6000_debug_adjust_cost): Likewise.
612         (rs6000_adjust_priority): Likewise for param "insn".
613         (rs6000_use_sched_lookahead_guard): Likewise.
614         (get_next_active_insn): Likewise for return type and both params.
615         (redefine_groups): Likewise for params "prev_head_insn", "tail"
616         and locals "insn", "next_insn".
617         (pad_groups): Likewise.
619         * config/s390/s390.c (s390_adjust_priority): Likewise for param
620         "insn".
621         (s390_cannot_copy_insn_p): Likewise.
622         (s390_sched_variable_issue): Likewise for third param, eliminating
623         checked cast.
624         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
625         default hook implementation from hook_constcharptr_const_rtx_null
626         to hook_constcharptr_const_rtx_insn_null.
628         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
629         from rtx to rtx_insn *.
630         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
631         (sh_variable_issue): Likewise for param "insn".
632         (sh_dfa_new_cycle): Likewise.
633         (sh_mode_needed): Likewise.
634         (sh_mode_after): Likewise.
636         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
637         params "insn", "dep_insn".
638         (hypersparc_adjust_cost): Likewise.
639         (sparc_adjust_cost): Likewise.
641         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
642         param, eliminated checked cast.
643         (spu_sched_adjust_cost): Likewise for first and third params.
645         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
646         params "insn" and "dep_insn" from rtx to rtx_insn *.
648         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
650 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
652         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
653         (set_is_load_p): ...this, updating to work on a SET pattern rather
654         than an insn.
655         (is_store_insn): Rename to...
656         (set_is_store_p): ...this, updating to work on a SET pattern
657         rather than an insn.
658         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
659         top of function to where it is needed.  Rewrite the bogus
660         condition that checks for "insn" and "dep" being PARALLEL to
661         instead use single_set, introducing locals "insn_set" and
662         "dep_set".  Given that we only ever returned "cost" for a non-pair
663         of SETs, bail out early if we don't have a pair of SET.
664         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
665         use the new locals "insn_set" and "dep_set", and update calls to
666         is_load_insn and is_store_insn to be calls to set_is_load_p and
667         set_is_store_p.
669 2014-08-27  Guozhi Wei  <carrot@google.com>
671         PR target/62262
672         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
673         amount before using it.
675 2014-08-27  Richard Biener  <rguenther@suse.de>
677         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
678         get_maxval_strlen inside a more useful API.
679         (gimple_fold_builtin_with_strlen): Remove and fold into ...
680         (gimple_fold_builtin): ... caller.
681         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
682         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
683         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
684         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
685         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
686         gimple_fold_builtin_sprintf): Adjust to compute maxval
687         themselves.
689 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
691         PR other/62248
692         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
694 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
695             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
696             Anna Tikhonova  <anna.tikhonova@intel.com>
697             Ilya Tocar  <ilya.tocar@intel.com>
698             Andrey Turetskiy  <andrey.turetskiy@intel.com>
699             Ilya Verbin  <ilya.verbin@intel.com>
700             Kirill Yukhin  <kirill.yukhin@intel.com>
701             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
703         * config/i386/sse.md
704         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
705         Use `concat_tg_mode' attribute to determine asm register size.
707 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
708             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
709             Anna Tikhonova  <anna.tikhonova@intel.com>
710             Ilya Tocar  <ilya.tocar@intel.com>
711             Andrey Turetskiy  <andrey.turetskiy@intel.com>
712             Ilya Verbin  <ilya.verbin@intel.com>
713             Kirill Yukhin  <kirill.yukhin@intel.com>
714             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
716         * config/i386/sse.md
717         (define_mode_iterator VI48_AVX512VL): New.
718         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
719         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
720         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
721         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
722         with VI1): Change mode iterator.
723         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
724         with VI_ULOADSTORE_BW_AVX512VL): New.
725         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
726         with VI_ULOADSTORE_F_AVX512VL): Ditto.
727         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
728         with VI1): Change mode iterator.
729         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
730         with VI_ULOADSTORE_BW_AVX512VL): New.
731         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
732         with VI_ULOADSTORE_F_AVX512VL): Ditto.
733         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
734         with VI1): Change mode iterator.
735         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
736         with VI_ULOADSTORE_BW_AVX512VL): New.
737         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
738         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
739         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
740         (define_insn "<avx512>_storedqu<mode>_mask" with
741         VI48_AVX512VL): New.
742         (define_insn "<avx512>_storedqu<mode>_mask" with
743         VI12_AVX512VL): Ditto.
745 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
746             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
747             Anna Tikhonova  <anna.tikhonova@intel.com>
748             Ilya Tocar  <ilya.tocar@intel.com>
749             Andrey Turetskiy  <andrey.turetskiy@intel.com>
750             Ilya Verbin  <ilya.verbin@intel.com>
751             Kirill Yukhin  <kirill.yukhin@intel.com>
752             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
754         * config/i386/sse.md
755         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
756         (define_mode_iterator VI48_AVX512BW): New.
757         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
758         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
759         with VI48_AVX2_48_AVX512F): New.
760         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
761         with VI2_AVX512VL): Ditto.
763 2014-08-27  Richard Biener  <rguenther@suse.de>
765         PR middle-end/62239
766         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
767         (fold_builtin_3): Do not fold strcat_chk here.
768         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
769         from builtins.c.
770         (gimple_fold_builtin): Fold strcat_chk here.
772 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
774         * dwarf2out.h (dwarf2out_decl): Remove prototype.
775         * dwarf2out.c (dwarf2out_decl): Make static.
777 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
779         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
781 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
783         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
784         from rtx to rtx_insn *.
785         (cselib_lookup_from_insn): Likewise for final param.
786         (cselib_subst_to_values_from_insn): Likewise.
787         (cselib_add_permanent_equiv): Likewise.
789         * cselib.c (cselib_current_insn): Likewise for this variable.
790         (cselib_subst_to_values_from_insn): Likewise for param "insn".
791         (cselib_lookup_from_insn): Likewise.
792         (cselib_add_permanent_equiv): Likewise for param "insn" and local
793         "save_cselib_current_insn".
794         (cselib_process_insn): Replace use of NULL_RTX with NULL.
796         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
797         from rtx to rtx_insn *.
799 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
801         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
802         rtx_insn *.
804 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
806         * df.h (df_dump_insn_problem_function): Strengthen first param of
807         this callback from const_rtx to const rtx_insn *.
808         (struct df_insn_info): Strengthen field "insn" from rtx to
809         rtx_insn *.
810         (DF_REF_INSN): Eliminate this function, reinstating the older
811         macro definition.
812         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
813         (df_reg_defined): Likewise.
814         (df_find_use): Likewise.
815         (df_reg_used): Likewise.
816         (df_dump_insn_top): Strengthen param 1 from const_rtx to
817         const rtx_insn *.
818         (df_dump_insn_bottom): Likewise.
819         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
820         (df_insn_debug_regno): Likewise.
821         (debug_df_insn): Likewise.
822         (df_rd_simulate_one_insn): Likewise for param 2.
823         (df_word_lr_simulate_defs): Likewise for param 1.
824         (df_word_lr_simulate_uses): Likewise.
825         (df_md_simulate_one_insn): Likewise for param 2.
826         (df_simulate_find_noclobber_defs): Likewise for param 1.
827         (df_simulate_find_defs): Likewise.
828         (df_simulate_defs): Likewise.
829         (df_simulate_uses): Likewise.
830         (df_simulate_one_insn_backwards): Likewise for param 2.
831         (df_simulate_one_insn_forwards): Likewise.
832         (df_uses_create): Likewise for param 2.
833         (df_insn_create_insn_record): Likewise for param 1.
834         (df_insn_delete): Likewise.
835         (df_insn_rescan): Likewise.
836         (df_insn_rescan_debug_internal): Likewise.
837         (df_insn_change_bb): Likewise.
838         (df_notes_rescan): Likewise.
839         * rtl.h (remove_death): Likewise for param 2.
840         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
841         const rtx_insn *.
842         * sched-int.h (reemit_notes): Strengthen param from rtx to
843         rtx_insn *.
844         * valtrack.h (propagate_for_debug): Likewise for param 1.
846         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
847         local "tmp_rtx" from const_rtx to const rtx_insn *.
848         * combine.c (remove_death): Strengthen param "insn" from rtx to
849         rtx_insn *.
850         (move_deaths): Likewise for local "where_dead".
851         * cse.c (delete_trivially_dead_insns): Introduce local
852         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
853         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
854         rtx_insn *.
855         (df_reg_defined): Likewise.
856         (df_find_use): Likewise.
857         (df_reg_used): Likewise.
858         (df_dump_insn_problem_data): Strengthen param "insn" from
859         const_rtx to const rtx_insn *.
860         (df_dump_insn_top): Likewise.
861         (df_dump_insn_bottom): Likewise.
862         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
863         (df_insn_debug_regno): Likewise.
864         (debug_df_insn): Likewise.
865         (DF_REF_INSN): Delete.
866         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
867         from rtx to rtx_insn *.
868         (df_chain_insn_top_dump): Strengthen param "insn" from
869         const_rtx to const rtx_insn *.
870         (df_chain_insn_bottom_dump): Likewise.
871         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
872         rtx_insn *.
873         (df_word_lr_simulate_uses): Likewise.
874         (df_print_note): Likewise.
875         (df_remove_dead_and_unused_notes): Likewise.
876         (df_set_unused_notes_for_mw): Likewise.
877         (df_set_dead_notes_for_mw): Likewise.
878         (df_create_unused_note): Likewise.
879         (df_simulate_find_defs): Likewise.
880         (df_simulate_find_uses): Likewise.
881         (df_simulate_find_noclobber_defs): Likewise.
882         (df_simulate_defs): Likewise.
883         (df_simulate_uses): Likewise.
884         (df_simulate_one_insn_backwards): Likewise.
885         (df_simulate_one_insn_forwards): Likewise.
886         (df_md_simulate_one_insn): Likewise.
887         * df-scan.c (df_uses_create): Likewise.
888         (df_insn_create_insn_record): Likewise.
889         (df_insn_delete): Likewise.
890         (df_insn_rescan): Likewise.
891         (df_insn_rescan_debug_internal): Likewise.
892         (df_insn_change_bb): Likewise.
893         (df_notes_rescan): Likewise.
894         (df_refs_add_to_chains): Likewise.
895         (df_insn_refs_verify): Likewise.
896         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
897         when invoking df_insn_delete.
898         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
899         (set_unique_reg_note): Add checked cast.
900         * final.c (cleanup_subreg_operands): Likewise.
901         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
902         "insn" from rtx to rtx_insn *.
903         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
904         "last" from rtx to rtx_insn *.
905         * ira-emit.c (change_regs_in_insn): New function.
906         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
907         Invoke change_regs_in_insn rather than change_regs.
908         * ira.c (update_equiv_regs): Strengthen locals "insn",
909         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
910         for_each_rtx_in_insn rather than for_each_rtx.
911         * recog.c (confirm_change_group): Add checked casts.
912         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
913         Add checked cast.
914         (peep2_fill_buffer): Add checked cast.
915         * rtlanal.c (remove_note): Likewise.
916         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
917         locals "next" "end" from rtx to rtx_insn *.
919 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
921         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
922         to rtx_insn *.
923         (struct reg_use_data): Likewise for field "insn".
924         (insn_cost): Likewise for param.
925         (real_insn_for_shadow): Likewise for return type and param.
926         (increase_insn_priority): Likewise for param 1.
927         (debug_dependencies): Likewise for both params.
929         * haifa-sched.c (insn_delay): Likewise for param "insn".
930         (real_insn_for_shadow): Likewise for return type and param "insn".
931         (update_insn_after_change): Likewise for param "insn".
932         (recompute_todo_spec): Likewise for param "next" and locals "pro",
933         "other".
934         (insn_cost): Likewise for param "insn".
935         (increase_insn_priority): Likewise.
936         (calculate_reg_deaths): Likewise.
937         (setup_insn_reg_pressure_info): Likewise.
938         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
939         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
940         (model_recompute): Likewise.
941         (must_restore_pattern_p): Likewise for param "next".
942         (model_excess_cost): Likewise for param "insn".
943         (queue_remove): Likewise.
944         (adjust_priority): Likewise for param "prev".
945         (update_register_pressure): Likewise for param "insn".
946         (setup_insn_max_reg_pressure): Likewise for local "insn".
947         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
948         (model_add_to_schedule): Likewise.
949         (model_reset_queue_indices): Likewise for local "insn".
950         (unschedule_insns_until): Strengthen local "recompute_vec" from
951         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
952         "con" from rtx to rtx_insn *.
953         (restore_last_backtrack_point): Likewise for both locals "x". Add
954         checked casts.
955         (estimate_insn_tick): Likewise for param "insn".
956         (commit_schedule): Likewise for params "prev_head", "tail" and
957         local "x".
958         (verify_shadows): Likewise for locals "i1", "i2".
959         (dump_insn_stream): Likewise for params "head", "tail" and locals
960         "next_tail", "insn".
961         (schedule_block): Likewise for locals "insn", "x".  Add a checked
962         cast.
963         (fix_inter_tick): Likewise for params "head", "tail".
964         (create_check_block_twin): Likewise for local "jump".
965         (haifa_change_pattern): Likewise for param "insn".
966         (haifa_speculate_insn): Likewise.
967         (dump_new_block_header): Likewise for params "head", "tail".
968         (fix_jump_move): Likewise for param "jump".
969         (move_block_after_check): Likewise.
970         (sched_init_insn_luid): Likewise for param "insn".
971         (sched_init_luids): Likewise for local "insn".
972         (insn_luid): Likewise for param "insn".
973         (init_h_i_d): Likewise.
974         (haifa_init_h_i_d): Likewise for local "insn".
975         (haifa_init_insn): Likewise for param "insn".
976         * sched-deps.c (add_dependence): Likewise for local "real_pro",
977         "other".
978         (create_insn_reg_use): Likewise for param "insn".
979         (setup_insn_reg_uses): Likewise.  Add a checked cast.
980         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
981         "tail" from rtx to rtx_insn *.
982         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
983         "insn", "next_tail".
985 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
987         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
988         from rtx to rtx_insn *.
989         (model_add_to_schedule): Likewise for locals "start", "end",
990         "iter".
992 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
994         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
995         rtx_insn *.
996         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
997         "to" and locals "insn", "next", "copy".  Remove now-redundant
998         checked cast.
1000 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1002         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1003         rtx_insn * and param 4 from rtx * to rtx_insn **.
1004         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1005         param 2 from rtx * to rtx_insn **.
1007         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1008         rtx_insn * and final param from rtx * to rtx_insn **.
1010         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1011         from rtx to rtx_insn *.
1012         (try_head_merge_bb): Likewise for both locals named "move_upto".
1013         * df-problems.c (can_move_insns_across): Likewise for params
1014         "from", "to", "across_from", "across_to" and locals "insn",
1015         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
1016         rtx_insn **.
1017         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1018         from rtx to rtx_insn *.
1019         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1020         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
1021         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1022         rtx_insn *.
1023         (noce_try_abs): Likewise.
1024         (noce_get_condition): Likewise for param "jump".  Strengthen param
1025         "earliest" from rtx * to rtx_insn **.
1026         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1027         rtx_insn *.
1028         (find_cond_trap): Likewise.
1029         (dead_or_predicable): Likewise for local "earliest".
1030         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
1031         checked cast.
1032         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1033         and local "prev".  Strengthen param "earliest" from rtx * to
1034         rtx_insn **.
1035         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1036         Strengthen param "earliest" from rtx * to rtx_insn **.
1038 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1040         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1041         "to" and local "insn" from rtx to rtx_insn *.
1043 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1045         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1046         from rtx to rtx_insn *.
1047         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1048         (code_motion_path_driver): Likewise for local "last_insn".
1049         (simplify_changed_insns): Likewise for local "insn".
1051 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1053         * rtl.h (push_to_sequence): Strengthen param from rtx to
1054         rtx_insn *.
1055         (push_to_sequence2): Likewise for both params.
1056         (delete_insns_since): Likewise for param.
1057         (reorder_insns_nobb): Likewise for all three params.
1058         (set_new_first_and_last_insn): Likewise for both params.
1060         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1061         rtx_insn *.  Remove now-redundant cast.
1062         (set_last_insn): Likewise.
1064         * builtins.c (expand_builtin_return): Strengthen local
1065         "call_fusage" from rtx to rtx_insn *.
1066         * cfgrtl.c (create_basic_block_structure): Likewise for local
1067         "after".
1068         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1069         "first", "last" and local "insn".
1070         (delete_insns_since): Likewise for param "from".
1071         (reorder_insns_nobb): Likewise for params "from", "to", "after"
1072         and local "x".
1073         (push_to_sequence): Likewise for param "first" and local "last".
1074         (push_to_sequence2): Likewise for params "first" and "last".
1075         * lra.c (emit_add3_insn): Likewise for local "last".
1076         (lra_emit_add): Likewise.
1077         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1078         "last_insn".
1079         (process_address_1): Likewise for locals "insn", last".
1080         * modulo-sched.c (ps_first_note): Likewise for return type.
1081         * optabs.c (expand_binop_directly): Likewise for param "last".
1083 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1085         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1086         to rtx_insn*.
1087         * emit-rtl.c (get_last_insn_anywhere): Likewise.
1089 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1091         * function.h (struct sequence_stack): Strengthen fields "first"
1092         and "last" from rtx to rtx_insn *.
1093         (struct emit_status): Likewise for fields "x_first_insn" and
1094         "x_last_insn".
1096         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1097         (set_first_insn): Add checked cast.
1098         (get_last_insn): Remove now-redundant checked cast.
1099         (set_last_insn): Add checked cast.
1101         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1102         "saved_first" and "saved_last" from rtx to rtx_insn *.
1104 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1106         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1107         (unlink_insn_chain): Strengthen both params from rtx to
1108         rtx_insn *.
1110         * cfgrtl.c (cfg_layout_function_header): Likewise for this
1111         variable.
1112         (unlink_insn_chain): Likewise for params "first" and "last".
1113         Remove now-redundant checked cast.
1114         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1115         (fixup_reorder_chain): Strengthen local "insn" from rtx to
1116         rtx_insn *.
1117         * emit-rtl.c (link_insn_into_chain): Likewise for all three
1118         params.
1119         (add_insn): Likewise for param "insn" and local "prev".
1120         (add_insn_after_nobb): Likewise for both params and local "next".
1121         (add_insn_before_nobb): Likewise for both params and local "prev".
1122         (add_insn_after): Rename param "after" to "uncast_after",
1123         introducing local "after" with another checked cast.
1124         (add_insn_before): Rename params "insn" and "before", giving them
1125         "uncast_" prefixes, adding the old names back using checked casts.
1126         (emit_note_after): Likewise for param "after".
1127         (emit_note_before): Likewise for param "before".
1128         (emit_label): Add a checked cast.
1130 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1132         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
1133         "insn" from rtx to rtx_insn *.
1135         * cselib.c (cselib_record_sets_hook): Likewise.
1137         * var-tracking.c (add_with_sets): Likewise, renaming back from
1138         "uncast_insn" to "insn" and eliminating the checked cast from rtx
1139         to rtx_insn *.
1141 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1143         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1144         and "header_" from rtx to rtx_insn *.
1145         (struct basic_block_d): Likewise for field "head_" within "x"
1146         field of union basic_block_il_dependent.
1147         (BB_HEAD): Drop function...
1148         (SET_BB_HEAD): ...and this function in favor of...
1149         (BB_HEAD): ...reinstate macro.
1150         (BB_END): Drop function...
1151         (SET_BB_END): ...and this function in favor of...
1152         (BB_END): ...reinstate macro.
1153         (BB_HEADER): Drop function...
1154         (SET_BB_HEADER): ...and this function in favor of...
1155         (BB_HEADER): ...reinstate macro.
1157         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1158         (fix_crossing_unconditional_branches): Likewise.
1159         * caller-save.c (save_call_clobbered_regs): Likewise.
1160         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1161         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1162         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1163         (merge_blocks_move_successor_nojumps): Likewise.
1164         (outgoing_edges_match): Update use of for_each_rtx to
1165         for_each_rtx_in_insn.
1166         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1167         (expand_gimple_cond): Likewise.
1168         (expand_gimple_tailcall): Likewise.
1169         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1170         SET_BB_END.
1171         (construct_exit_block): Drop use of SET_BB_END.
1172         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1173         rtx_insn *.
1174         (delete_insn): Rename param "insn" to "uncast_insn", introducing
1175         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
1176         SET_BB_HEAD and SET_BB_END.
1177         (create_basic_block_structure): Drop use of SET_BB_HEAD and
1178         SET_BB_END.
1179         (rtl_delete_block): Drop use of SET_BB_HEAD.
1180         (rtl_split_block): Drop use of SET_BB_END.
1181         (emit_nop_for_unique_locus_between): Likewise.
1182         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1183         (block_label): Drop use of SET_BB_HEAD.
1184         (fixup_abnormal_edges): Drop use of SET_BB_END.
1185         (record_effective_endpoints): Drop use of SET_BB_HEADER.
1186         (relink_block_chain): Likewise.
1187         (fixup_reorder_chain): Drop use of SET_BB_END.
1188         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1189         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1190         rtx_insn **.  Drop use of SET_BB_HEADER.
1191         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1192         SET_BB_HEAD.
1193         (BB_HEAD): Delete this function.
1194         (SET_BB_HEAD): Likewise.
1195         (BB_END): Likewise.
1196         (SET_BB_END): Likewise.
1197         (BB_HEADER): Likewise.
1198         (SET_BB_HEADER): Likewise.
1199         * emit-rtl.c (add_insn_after):  Rename param "insn" to
1200         "uncast_insn", adding a new local "insn" and a checked cast to
1201         rtx_insn *.  Drop use of SET_BB_END.
1202         (remove_insn): Strengthen locals "next" and "prev" from rtx to
1203         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
1204         (reorder_insns): Drop use of SET_BB_END.
1205         (emit_insn_after_1): Strengthen param "first" and locals "last",
1206         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
1207         (emit_pattern_after_noloc): Add checked cast.
1208         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1209         (restore_other_notes): Likewise.
1210         (move_insn): Likewise.
1211         (sched_extend_bb): Likewise.
1212         (fix_jump_move): Likewise.
1213         * ifcvt.c (noce_process_if_block): Likewise.
1214         (dead_or_predicable): Likewise.
1215         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1216         * reg-stack.c (change_stack): Drop use of SET_BB_END.
1217         * sel-sched-ir.c (sel_move_insn): Likewise.
1218         * sel-sched.c (move_nop_to_previous_block): Likewise.
1220         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1221         SET_BB_END.
1222         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1224 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1226         * basic-block.h (create_basic_block_structure): Strengthen params
1227         1 "head" and 2 "end" from rtx to rtx_insn *.
1228         * cfgrtl.c (create_basic_block_structure): Likewise.
1229         (rtl_create_basic_block): Update casts from void * to rtx to
1230         rtx_insn *, so that we can pass them as rtx_insn * to
1231         create_basic_block_structure.
1232         * sel-sched-ir.c (sel_create_basic_block): Likewise.
1234 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1236         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1237         rtx_insn **.
1238         (check_for_inc_dec): Strengthen param "insn" from rtx to
1239         rtx_insn *.
1241         * cselib.h (cselib_process_insn): Likewise.
1243         * cselib.c (cselib_record_sets): Likewise.
1244         (cselib_process_insn): Likewise.
1246         * dse.c (struct insn_info): Likewise for field "insn".
1247         (check_for_inc_dec_1): Likewise for local "insn".
1248         (check_for_inc_dec): Likewise for param "insn".
1249         (scan_insn): Likewise.
1250         (dse_step1): Likewise for local "insn".
1252         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1253         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
1255 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1257         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1258         from rtx to rtx_insn *.
1259         (DEP_PRO): Delete this function and...
1260         (SET_DEP_PRO): ...this function in favor of...
1261         (DEP_PRO): ...reinstate this macro.
1262         (DEP_CON): Delete this function and...
1263         (SET_DEP_CON): ...this function in favor of...
1264         (DEP_CON): ...reinstate this old macro.
1265         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1266         (init_dep): Likewise.
1267         (set_priorities): Likewise for both params.
1268         (sd_copy_back_deps): Likewise for params 1 and 2.
1270         * haifa-sched.c (priority): Likewise for param "insn" and local
1271         "next".
1272         (set_priorities): Likewise for params "head" and "tail" and local
1273         "insn".
1274         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1275         local "consumer".
1276         (add_to_speculative_block): Add a checked cast.
1277         (create_check_block_twin): Drop use of SET_DEP_CON.
1278         (add_jump_dependencies): Strengthen params "insn" and "jump" from
1279         rtx to rtx_insn *.
1281         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1282         Drop use of SET_DEP_PRO
1283         (init_dep): Strengthen params "pro" and "con" from rtx to
1284         rtx_insn *.
1285         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
1286         use of SET_DEP_CON.
1287         (DEP_PRO): Delete.
1288         (DEP_CON): Delete.
1289         (SET_DEP_PRO): Delete.
1290         (SET_DEP_CON): Delete.
1292 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1294         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1295         from rtx to rtx_insn *.
1296         (VINSN_INSN_RTX): Eliminate rvalue function and...
1297         (SET_VINSN_INSN): ...lvalue function in favor of...
1298         (VINSN_INSN_RTX): reinstate this old macro.
1300         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1301         in favor of VINSN_INSN_RTX.
1302         (VINSN_INSN_RTX): Delete this function.
1303         (SET_VINSN_INSN_RTX): Likewise.
1305 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1307         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1308         (BND_TO): Delete this function and...
1309         (SET_BND_TO): ...this functions in favor of...
1310         (BND_TO): ...reinstating this macro.
1311         (struct _fence): Strengthen field "executing_insns" from
1312         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
1313         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1314         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1315         and param "insn" from rtx to insn_t.
1316         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1317         rtx_insn *.
1319         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1320         vec<rtx_insn *> .
1321         (rtx_vec_t): Likewise.
1322         (struct sched_deps_info_def): Strengthen param of "start_insn"
1323         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
1324         "note_mem_dep" callback and first param of "note_dep" callback.
1326         * haifa-sched.c (add_to_speculative_block): Strengthen param
1327         "insn" from rtx to rtx_insn *.
1328         (clear_priorities): Likewise.
1329         (calc_priorities): Likewise for local "insn".
1331         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1332         Remove redundant checked cast.
1333         (haifa_note_mem_dep): Likewise for param "pending_insn".
1334         (haifa_note_dep): Likewise for param "elem".
1335         (note_mem_dep): Likewise for param "e".
1336         (sched_analyze_1): Add checked casts.
1337         (sched_analyze_2): Likewise.
1339         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1340         from rtx to rtx_insn *.
1341         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1342         from vec<rtx> * to vec<rtx_insn *> *.
1344         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1345         scaffolding.
1346         (flist_add): Strengthen param "executing_insns" from
1347         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1348         (advance_deps_context): Remove now-redundant checked cast.
1349         (init_fences): Replace uses of NULL_RTX with NULL.
1350         (merge_fences): Strengthen params "last_scheduled_insn" and
1351         "sched_next" from rtx to rtx_insn * and "executing_insns" from
1352         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1353         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1354         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1355         an instruction, rather than doing double-duty as a pattern.
1356         (return_nop_to_pool): Update for change of insn_t.
1357         (deps_init_id): Remove now-redundant checked cast.
1358         (struct sched_scan_info_def): Strengthen param of "init_insn"
1359         callback from rtx to insn_t.
1360         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1361         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1362         NULL.
1363         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1364         "end" from rtx to rtx_insn *.
1365         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1366         (rtx insn_rtx, bool force_unique_p)
1367         (BND_TO): Delete function.
1368         (SET_BND_TO): Delete function.
1370         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1371         rtx to rtx_insn *.
1372         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1373         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1374         rtx to rtx_insn *.
1375         (undo_transformations): Likewise for param "insn".
1376         (update_liveness_on_insn): Likewise.
1377         (compute_live_below_insn): Likewise for param "insn" and local
1378         "succ".
1379         (update_data_sets): Likewise for param "insn".
1380         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1381         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1382         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1383         rtx_insn *.
1384         (move_cond_jump): Likewise for param "insn".
1385         (move_cond_jump): Drop use of SET_BND_TO.
1386         (compute_av_set_on_boundaries): Likewise.
1387         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1388         (update_and_record_unavailable_insns): Strengthen local "bb_end"
1389         from rtx to rtx_insn *.
1390         (maybe_emit_renaming_copy): Likewise for param "insn".
1391         (maybe_emit_speculative_check): Likewise.
1392         (handle_emitting_transformations): Likewise.
1393         (remove_insn_from_stream): Likewise.
1394         (code_motion_process_successors): Strengthen local "succ" from rtx
1395         to insn_t.
1397 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1399         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1400         ilist_t, not _xlist_t;
1401         (ILIST_INSN): Define in terms of new union field "insn".
1402         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1403         _XLIST_NEXT.
1404         (struct _list_node): Add new field "insn" to the union, of type
1405         insn_t.
1406         (ilist_add): Replace macro with an inline function, requiring an
1407         insn_t.
1408         (ilist_remove): Define this macro directly in terms of
1409         _list_remove, rather than indirectly via _xlist_remove.
1410         (ilist_clear): Likewise, in terms of _list_clear rather than
1411         _xlist_clear.
1412         (ilist_is_in_p): Replace macro with an inline function, requiring
1413         an insn_t.
1414         (_list_iter_cond_insn): New function.
1415         (ilist_iter_remove): Define this macro directly in terms of
1416         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1417         (ilist_iterator): Define directly in terms of _list_iterator
1418         rather than indirectly through _xlist_iterator.
1419         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1420         than in terms of _FOR_EACH_X.
1421         (FOR_EACH_INSN_1): Likewise.
1423 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
1425         PR target/60606
1426         PR target/61330
1427         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1428         DECL_HARD_REGISTER and return for invalid register specifications.
1429         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1430         DECL_HARD_REGISTER, call expand_one_error_var.
1431         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1432         CC_REGNUM with non-MODE_CC modes.
1433         (arm_regno_class): Return NO_REGS for PC_REGNUM.
1435 2014-08-26  Marek Polacek  <polacek@redhat.com>
1437         PR c/61271
1438         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1440 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
1442         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1443         qi cost; add di cost.
1444         (cortexa57_addrcost_table): Likewise.
1446 2014-08-26  Marek Polacek  <polacek@redhat.com>
1448         PR c/61271
1449         * expr.c (is_aligning_offset): Remove logical not.
1451 2014-08-26  Marek Polacek  <polacek@redhat.com>
1453         PR c/61271
1454         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1455         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1457 2014-08-26  Richard Biener  <rguenther@suse.de>
1459         PR tree-optimization/62175
1460         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1461         expand possibly trapping operations.
1463 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1465         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1466         "insn" from rtx to rtx_insn *.
1467         (permute_load): Likewise for param "insn".
1468         (permute_store): Likewise.
1469         (handle_special_swappables): Likewise for local "insn".
1470         (replace_swap_with_copy): Likewise for locals "insn" and
1471         "new_insn".
1472         (rs6000_analyze_swaps): Likewise for local "insn".
1474 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1476         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1477         to rtx_insn *.
1479 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1481         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1482         "note_list" from rtx to rtx_insn *.
1483         (BB_NOTE_LIST): Replace this function and...
1484         (SET_BB_NOTE_LIST): ...this function with...
1485         (BB_NOTE_LIST): ...the former macro implementation.
1487         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1488         local "from_start" from rtx to rtx_insn *.  Strengthen param
1489         "to_endp" from rtx * to rtx_insn **.
1491         * haifa-sched.c (concat_note_lists): Likewise.
1492         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1493         BB_NOTE_LIST.
1494         (sel_restore_notes): Likewise.
1495         (move_bb_info): Likewise.
1496         (BB_NOTE_LIST): Delete this function.
1497         (SET_BB_NOTE_LIST): Delete this function.
1498         * sel-sched.c (create_block_for_bookkeeping): Eliminate
1499         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1501 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1503         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1504         from rtx * to rtx_insn **.
1505         (reorder2): Likewise.
1506         (dependencies_evaluation_hook): Strengthen params "head", "tail"
1507         from rtx to rtx_insn *.
1509         * doc/tm.texi: Update mechanically for above change to target.def.
1511         * sched-int.h (note_list): Strengthen this variable from rtx to
1512         rtx_insn *.
1513         (remove_notes): Likewise for both params.
1514         (restore_other_notes): Likewise for return type and first param.
1515         (struct ready_list): Strengthen field "vec" from rtx * to
1516         rtx_insn **.
1517         (struct dep_replacement): Strenghten field "insn" from rtx to
1518         rtx_insn *.
1519         (struct deps_desc): Likewise for fields "last_debug_insn",
1520         "last_args_size".
1521         (struct haifa_sched_info): Likewise for callback field
1522         "can_schedule_ready_p"'s param, for first param of "new_ready"
1523         callback field, for both params of "rank" callback field, for
1524         first field of "print_insn" callback field (with a const), for
1525         both params of "contributes_to_priority" callback, for param
1526         of "insn_finishes_block_p" callback, for fields "prev_head",
1527         "next_tail", "head", "tail", for first param of "add_remove_insn"
1528         callback, for first param of "begin_schedule_ready" callback, for
1529         both params of "begin_move_insn" callback, and for second param
1530         of "advance_target_bb" callback.
1531         (add_dependence): Likewise for params 1 and 2.
1532         (sched_analyze): Likewise for params 2 and 3.
1533         (deps_analyze_insn): Likewise for param 2.
1534         (ready_element): Likewise for return type.
1535         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1536         (try_ready): Strenghten param from rtx to rtx_insn *.
1537         (sched_emit_insn): Likewise for return type.
1538         (record_delay_slot_pair): Likewise for params 1 and 2.
1539         (add_delay_dependencies): Likewise for param.
1540         (contributes_to_priority): Likewise for both params.
1541         (find_modifiable_mems): Likewise.
1543         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
1544         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
1545         "first_older_only_insn" from rtx to rtx_insn *.
1546         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
1547         rtx_insn **.
1549         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1550         "last_scheduled_iter0" from rtx to rtx_insn *.
1551         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1552         (c6x_sched_reorder_1): Strengthen param "ready" and locals
1553         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
1554         "insn" from rtx to rtx_insn *.
1555         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1556         rtx_insn **.
1557         (c6x_sched_reorder2): Strengthen param "ready" and locals
1558         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1559         "insn" from rtx to rtx_insn *.
1560         (c6x_variable_issue):  Add a checked cast when assigning from insn
1561         to ss.last_scheduled_iter0.
1562         (split_delayed_branch): Strengthen param "insn" and local "i1"
1563         from rtx to rtx_insn *.
1564         (split_delayed_nonbranch): Likewise.
1565         (undo_split_delayed_nonbranch): Likewise for local "insn".
1566         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1567         "entry_after", "end_packet", "head_insn", "tail_insn",
1568         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1569         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1570         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
1571         but add a checked cast on loop->start_label.  Consolidate calls to
1572         avoid assigning result of gen_spkernel to "insn", now an
1573         rtx_insn *.
1575         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1576         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
1577         rtx to rtx_insn *.
1578         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1579         rtx_insn **.  Strengthen locals "top", "next" from rtx to
1580         rtx_insn *.
1581         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1582         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
1583         (add_parameter_dependencies): Strengthen params "call", "head" and
1584         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1585         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1586         (add_dependee_for_func_arg): Likewise for param "arg" and local
1587         "insn".
1588         (ix86_dependencies_evaluation_hook): Likewise for params "head",
1589         "tail" and locals "insn", "first_arg".
1591         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1592         for params "head", "tail" and locals "insn", "next", "next_tail".
1593         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1594         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1595         "insn", "lowest", "highest" from rtx to rtx_insn *.
1596         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1597         rtx_insn **.
1598         (ia64_sched_reorder2): Likewise.
1600         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1601         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
1602         from rtx * to rtx_insn **.
1603         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1604         rtx_insn **.
1605         (mep_print_sched_insn): Strengthen param "insn" from rtx to
1606         rtx_insn *.
1607         (mep_sched_reorder): Strengthen param "ready" from rtx * to
1608         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
1609         to rtx_insn *.
1611         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1612         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
1613         to rtx_insn *.
1614         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1615         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
1616         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1617         rtx_insn **.
1618         (vr4130_reorder): Likewise.
1619         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
1620         rtx to rtx_insn *.
1621         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1622         rtx_insn **.
1623         (mips_sched_reorder): Likewise.
1624         (mips_sched_reorder2): Likewise.
1626         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1628         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1629         Strengthen local "tmp" from rtx to rtx_insn *.
1630         (rs6000_sched_reorder2): Likewise.
1632         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1633         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1634         (s390_sched_reorder): Strengthen param "ready" from rtx * to
1635         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
1637         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1638         "tmp2" from rtx to rtx_insn *.
1639         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1640         Strengthen local "insn" from rtx to rtx_insn *.
1641         (ready_reorder): Strengthen param "ready" from rtx * to
1642         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1643         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
1644         (sh_reorder2): Likewise.
1646         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
1647         local "insn" from rtx to rtx_insn *.
1649         * haifa-sched.c (note_list): Strengthen this variable from rtx to
1650         rtx_insn *.
1651         (scheduled_insns): Strengthen this variable from vec<rtx> to
1652         vec<rtx_insn *>.
1653         (set_modulo_params): Likewise for locals "i1", "i2".
1654         (record_delay_slot_pair): Likewise for params "i1", "i2".
1655         (add_delay_dependencies): Likewise for param "insn".
1656         (cond_clobbered_p): Likewise.
1657         (recompute_todo_spec): Likewise for local "prev".
1658         (last_scheduled_insn): Likewise for this variable.
1659         (nonscheduled_insns_begin): Likewise.
1660         (model_set_excess_costs): Strengthen param "insns" from rtx * to
1661         rtx_insn **.
1662         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1663         rtx_insn *.
1664         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1665         Strengthen local "insn" from rtx to rtx_insn *.
1666         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1667         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1668         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1669         (ready_remove_first): Likewise for return type and local "t".
1670         (ready_element): Likewise for return type.
1671         (ready_remove): Likewise for return type and local "t".
1672         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1673         (check_clobbered_conditions): Strengthen local "x" from rtx to
1674         rtx_insn *, adding a checked cast.
1675         (schedule_insn): Likewise for param "insn".
1676         (remove_notes): Likewise for params "head", "tail" and locals
1677         "next_tail", "insn", "next".
1678         (struct haifa_saved_data): Likewise for fields
1679         "last_scheduled_insn", "nonscheduled_insns_begin".
1680         (save_backtrack_point): Update for change to field "vec" of
1681         struct ready_list.
1682         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1683         rtx_insn **.
1684         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
1685         from rtx to rtx_insn *
1686         (resolve_dependencies): Strengthen param "insn" from rtx to
1687         rtx_insn *
1688         (restore_other_notes): Likewise for return type, for param "head"
1689         and local "note_head".
1690         (undo_all_replacements): Likewise for local "insn".
1691         (first_nonscheduled_insn): Likewise for return type and local "insn".
1692         (queue_to_ready): Likewise for local "insn", adding checked casts.
1693         (early_queue_to_ready): Likewise for local "insn".
1694         (debug_ready_list_1): Strengthen local "p" from rtx * to
1695         rtx_insn **.
1696         (move_insn): Strengthen param "insn" and local "note" from rtx to
1697         rtx_insn *
1698         (insn_finishes_cycle_p): Likewise for param "insn".
1699         (max_issue): Likewise for local "insn".
1700         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
1701         to rtx_insn **.
1702         (commit_schedule): Strengthen param "prev_head" and local "insn"
1703         from rtx to rtx_insn *
1704         (prune_ready_list): Likewise for local "insn".
1705         (schedule_block): Likewise for locals "prev_head", "head", "tail",
1706         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1707         (set_priorities): Likewise for local "prev_head".
1708         (try_ready): Likewise for param "next".
1709         (fix_tick_ready): Likewise.
1710         (change_queue_index): Likewise.
1711         (sched_extend_ready_list): Update for change to field "vec" of
1712         struct ready_list.
1713         (generate_recovery_code): Strengthen param "insn" from rtx to
1714         rtx_insn *.
1715         (begin_speculative_block): Likewise.
1716         (create_check_block_twin): Likewise for param "insn" and locals
1717         "label", "check", "twin".  Introduce local "check_pat" to avoid
1718         "check" being used as a plain rtx before being used as an insn.
1719         (fix_recovery_deps): Add a checked cast to rtx_insn * when
1720         extracting elements from ready_list.
1721         (sched_remove_insn): Strengthen param "insn" from rtx to
1722         rtx_insn *.
1723         (sched_emit_insn): Likewise for return type.
1724         (ready_remove_first_dispatch): Likewise for return type and local
1725         "insn".
1727         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1729         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1730         const rtx_insn *.
1732         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1733         from rtx to rtx_insn *.
1734         (add_dependence_list): Likewise for param "insn".  Add a checked
1735         cast.
1736         (add_dependence_list_and_free): Strengthen param "insn" from rtx
1737         to rtx_insn *.  Strengthen param "list_p" from rtx * to
1738         rtx_insn **.
1739         (chain_to_prev_insn): Strengthen param "insn" and locals
1740         "prec_nonnote", "i" from rtx to rtx_insn *.
1741         (flush_pending_lists): Likewise for param "insn".
1742         (cur_insn): Likewise for this variable.
1743         (haifa_start_insn): Add a checked cast.
1744         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1745         (sched_analyze_reg): Likewise for param "insn".
1746         (sched_analyze_1): Likewise.
1747         (sched_analyze_2): Likewise.  Add checked casts.
1748         (sched_analyze_insn): Likewise.  Also for local "prev".
1749         (deps_analyze_insn): Likewise for param "insn".
1750         (sched_analyze): Likewise for params "head", "tail" and local "insn".
1751         (add_dependence_1): Likewise for params "insn", "elem".
1752         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1753         (parse_add_or_inc): Likewise for param "insn".
1754         (find_inc): Likewise for local "inc_cand".
1755         (find_modifiable_mems): Likewise for params "head", "tail" and
1756         locals "insn", "next_tail".
1758         * sched-ebb.c (init_ready_list): Likewise for local "insn".
1759         (begin_schedule_ready): Likewise for param "insn".
1760         (begin_move_insn): Likewise for params "insn" and "last".
1761         (ebb_print_insn): Strengthen param "insn" from const_rtx to
1762         const rtx_insn *.
1763         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1764         (ebb_contributes_to_priority): Likewise for params "next", "insn".
1765         (ebb_add_remove_insn): Likewise for param "insn".
1766         (advance_target_bb): Likewise.
1768         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1769         "insn".
1770         (check_live): Likewise for param "insn".
1771         (init_ready_list): Likewise for local "insn".
1772         (can_schedule_ready_p): Likewise for param "insn".
1773         (begin_schedule_ready): Likewise.
1774         (new_ready): Likewise for param "next".
1775         (rgn_print_insn): Likewise for param "insn".
1776         (rgn_rank): Likewise for params "insn1", "insn2".
1777         (contributes_to_priority): Likewise for params "next", "insn".
1778         (rgn_insn_finishes_block_p): Likewise for param "insn".
1779         (add_branch_dependences): Likewise for params "head", "tail" and
1780         locals "insn", "last".
1781         (rgn_add_remove_insn): Likewise for param "insn".
1782         (advance_target_bb): Likewise.
1784         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1785         const_rtx to const rtx_insn *.
1787         * sel-sched-dump.h (sel_print_insn): Likewise.
1789         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1790         (deps_init_id): Likewise.
1792         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1793         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1794         rtx_insn **.
1796 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1798         * output.h (final_start_function): Strengthen param 1 from rtx to
1799         rtx_insn *.
1801         * final.c (final_start_function): Likewise, renaming back from
1802         "uncast_first" to "first", and dropping the checked cast from rtx
1803         to rtx_insn *.
1805 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1807         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1808         * final.c (final): Likewise.  Rename param back from
1809         "uncast_first" to "first" and eliminate the checked cast from rtx
1810         to rtx_insn *.
1812 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1814         * output.h (shorten_branches): Strengthen param from rtx to
1815         rtx_insn *.
1817         * final.c (shorten_branches): Likewise, renaming param back from
1818         "uncast_first" to "first", and dropping the checked cast from rtx
1819         to rtx_insn *.
1821         * genattr.c (gen_attr): Likewise when writing out the prototype of
1822         shorten_branches.
1824 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1826         * sched-int.h (struct haifa_sched_info): Strengthen fields
1827         "prev_head" and "next_tail" from rtx to rtx_insn *.
1829 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1831         * rtl.h (rtx_jump_table_data::get_labels): New method.
1832         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1833         with use of the new rtx_jump_table_data::get_labels method.
1834         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1835         to rtx_jump_table_data *.  Simplify by using get_labels method.
1836         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1837         a dyn_cast, introducing local "table", using it to replace
1838         label-lookup logic with a get_labels method call.
1839         (patch_jump_insn): Simplify using get_labels method.
1840         * dwarf2cfi.c (create_trace_edges): Likewise.
1841         * rtlanal.c (label_is_jump_target_p): Likewise.
1843 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1845         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1846         to rtx_insn *.
1848         * emit-rtl.c (unshare_all_rtl_1): Likewise.
1849         (unshare_all_rtl_again): Likewise, also for local "p".
1851 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1853         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1854         to rtx_insn *.
1855         * cfgrtl.c (delete_insn_and_edges): Likewise.
1857 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1859         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1860         from rtx to rtx_insn *.
1862         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1864 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1866         * function.c (thread_prologue_and_epilogue_insns): Likewise for
1867         locals "returnjump", "epilogue_end", "insn", "next".
1869         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1870         "returnjump" from rtx * to rtx_insn **.
1871         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1873 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1875         * basic-block.h (struct edge_def). Strengthen "r" within
1876         union edge_def_insns from rtx to rtx_insn *.
1878         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1879         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
1880         rtx_insn *.
1881         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1882         from rtx to rtx_insn *.
1883         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1884         rtx_insn *.
1885         * postreload-gcse.c (reg_killed_on_edge): Likewise.
1886         (reg_used_on_edge): Likewise.
1887         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1888         (gt_pch_nx): New overload for rtx_insn *&.
1889         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1890         from rtx to rtx_insn *.
1892 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1894         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1895         from rtx to rtx_insn *.
1896         (BB_FOOTER): Replace function with access macro.
1897         (SET_BB_FOOTER): Delete.
1899         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1900         with BB_FOOTER.
1901         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1902         (emit_barrier_after_bb): Likewise.
1903         (record_effective_endpoints): Likewise.
1904         (relink_block_chain): Likewise.
1905         (fixup_fallthru_exit_predecessor): Likewise.
1906         (cfg_layout_duplicate_bb): Likewise.
1907         (cfg_layout_split_block): Likewise.
1908         (cfg_layout_delete_block): Likewise.
1909         (cfg_layout_merge_blocks): Likewise.
1910         (BB_FOOTER): Delete function.
1911         (SET_BB_FOOTER): Delete function.
1912         * combine.c (update_cfg_for_uncondjump): Replace uses of
1913         SET_BB_FOOTER with BB_FOOTER.
1915 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1917         * except.h (struct eh_landing_pad_d): Strengthen field
1918         "landing_pad" from rtx to rtx_code_label *.
1920         * except.c (sjlj_emit_dispatch_table): Likewise for param
1921         "dispatch_label"
1922         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1924 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1926         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1927         first param from rtx to rtx_insn *.
1928         * config/xtensa/xtensa.c (struct machine_function): Likewise for
1929         field "set_frame_ptr_insn".
1930         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1931         "csend" from rtx to rtx_code_label *.
1932         (xtensa_expand_atomic): Likewise for local "csloop".
1933         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1934         rtx_insn *.
1935         (xtensa_call_tls_desc): Likewise for return type and locals
1936         "call_insn", "insns".
1937         (xtensa_legitimize_tls_address): Likewise for local "insns".
1938         (xtensa_expand_prologue): Likewise for locals "insn", "first".
1940 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1942         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1943         first param from rtx to rtx_insn *.
1944         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1945         "insn".
1947 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1949         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1950         Strengthen param 1 from rtx to rtx_insn *.
1951         (tilepro_output_cbranch): Likewise.
1952         (tilepro_adjust_insn_length): Likewise.
1953         (tilepro_final_prescan_insn): Likewise for sole param.
1955         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1956         Likewise for local "last".
1957         (cbranch_predicted_p): Likewise for param "insn".
1958         (tilepro_output_simple_cbranch_with_opcode): Likewise.
1959         (tilepro_output_cbranch_with_opcode): Likewise.
1960         (tilepro_output_cbranch): Likewise.
1961         (frame_emit_load): Likewise for return type and locals "seq",
1962         "insn".
1963         (emit_sp_adjust): Likewise for return type and local "insn".
1964         (tilepro_expand_epilogue): Likewise for locals "last_insn",
1965         "insn".
1966         (tilepro_adjust_insn_length): Likewise for param "insn".
1967         (next_insn_to_bundle): Likewise for return type and params
1968         "r", "end".
1969         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1970         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1971         local "new_insns".
1972         (match_addli_pcrel): Likewise for param "insn".
1973         (replace_addli_pcrel): Likewise.
1974         (match_auli_pcrel): Likewise.
1975         (replace_auli_pcrel): Likewise.
1976         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1977         "next_insn".
1978         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1979         "queue", "next_queue", "prev".
1980         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1981         (tilepro_final_prescan_insn): Likewise for param "insn".
1983 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1985         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1986         Strengthen param 1 from rtx to rtx_insn *.
1987         (tilegx_output_cbranch): Likewise.
1988         (tilegx_adjust_insn_length): Likewise.
1989         (tilegx_final_prescan_insn): Likewise for sole param.
1991         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1992         or local "last".
1993         (cbranch_predicted_p): Likewise for param "insn".
1994         (tilegx_output_simple_cbranch_with_opcode): Likewise.
1995         (tilegx_output_cbranch_with_opcode): Likewise.
1996         (tilegx_output_cbranch): Likewise.
1997         (frame_emit_load): Likewise for return type.
1998         (set_frame_related_p): Likewise for locals "seq", "insn".
1999         (emit_sp_adjust): Likewise for return type, and for local "insn".
2000         Introduce local "pat" for use in place of "insn" where the latter
2001         isn't an instruction.
2002         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2003         from rtx to rtx_insn *.
2004         (tilegx_adjust_insn_length): Likewise for param "insn".
2005         (next_insn_to_bundle): Likewise for return type and params "r" and
2006         "end".
2007         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2008         "end".
2009         (replace_insns): Likewise for params "old_insn", "new_insns".
2010         (replace_mov_pcrel_step1): Likewise for param "insn" and local
2011         "new_insns".
2012         (replace_mov_pcrel_step2): Likewise.
2013         (replace_mov_pcrel_step3): Likewise.
2014         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2015         "next_insn".
2016         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2017         "queue", "next_queue", "prev".
2018         (tilegx_output_mi_thunk): Likewise for local "insn".
2019         (tilegx_final_prescan_insn): Likewise for param "insn".
2021 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2023         * config/spu/spu.c (frame_emit_store): Strengthen return type from
2024         rtx to rtx_insn *.
2025         (frame_emit_load): Likewise.
2026         (frame_emit_add_imm): Likewise, also for local "insn".
2027         (spu_expand_prologue): Likewise for local "insn".
2028         (struct spu_bb_info): Likewise for field "prop_jump".
2029         (emit_nop_for_insn): Likewise for param "insn" and local
2030         "new_insn".
2031         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2032         "hbr_insn".
2033         (spu_emit_branch_hint): Likewise for params "before", "branch" and
2034         locals "hint", "insn".
2035         (get_branch_target): Likewise for param "branch".
2036         (insn_clobbers_hbr): Likewise for param "insn".
2037         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2038         locals "insn", "before_4", "before_16".
2039         (insert_hbrp): Likewise for local "insn".
2040         (spu_machine_dependent_reorg): Likewise for locals "branch",
2041         "insn", "next", "bbend".
2042         (uses_ls_unit): Likewise for param "insn".
2043         (get_pipe): Likewise.
2044         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2045         introducing a checked cast.
2046         (spu_sched_adjust_cost): Likewise for params "insn" and
2047         "dep_insn".
2048         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2049         (spu_sms_res_mii): Likewise.
2051 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2053         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2054         from rtx to rtx_insn *.
2055         (output_cbranch): Likewise for param 6.
2056         (output_return): Likewise for param 1.
2057         (output_sibcall): Likewise.
2058         (output_v8plus_shift): Likewise.
2059         (output_v8plus_mult): Likewise.
2060         (output_v9branch): Likewise for param 7.
2061         (output_cbcond):  Likewise for param 3.
2063         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2064         for local "insn".
2065         (sparc_legitimize_pic_address): Likewise.
2066         (sparc_emit_call_insn): Likewise.
2067         (emit_save_or_restore_regs): Likewise.
2068         (emit_window_save): Likewise for return type and local "insn".
2069         (sparc_expand_prologue): Likewise for local "insn".
2070         (sparc_flat_expand_prologue): Likewise.
2071         (output_return): Likewise for param "insn".
2072         (output_sibcall): Likewise for param "insn" and local "delay".
2073         (output_ubranch): Likewise for param "insn".
2074         (output_cbranch): Likewise.
2075         (output_cbcond): Likewise.
2076         (output_v9branch): Likewise.
2077         (output_v8plus_shift): Likewise.
2078         (sparc_output_mi_thunk): Likewise for local "insn".
2079         (get_some_local_dynamic_name): Likewise.
2080         (output_v8plus_mult): Likewise for param "insn".
2082 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2084         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2085         from rtx to rtx_insn *.
2086         (output_branchy_insn): Likewise for param 3.
2087         (output_far_jump): Likewise for param 1.
2088         (final_prescan_insn): Likewise.
2089         (sh_insn_length_adjustment): Likewise for sole param.
2091         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2092         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2093         rtx_code_label *.
2094         (sh_emit_compare_and_set): Likewise for local "lab".
2095         (output_far_jump): Strengthen param "insn" and local "prev" from
2096         rtx to rtx_insn *.
2097         (output_branchy_insn): Likewise for param "insn" and local
2098         "next_insn".
2099         (output_ieee_ccmpeq): Likewise for param "insn".
2100         (struct label_ref_list_d): Strengthen field "label" from rtx to
2101         rtx_code_label *.
2102         (pool_node): Likewise.
2103         (pool_window_label): Likewise for this global.
2104         (add_constant): Likewise for return type and locals "lab", "new_rtx".
2105         (dump_table): Strengthen params "start", "barrier" and local
2106         "scan" from rtx to rtx_insn *.
2107         (broken_move): Likewise for param "insn".
2108         (untangle_mova): Likewise for params "first_mova" and "new_mova".
2109         Strengthen param "first_mova" from rtx * to rtx_insn **.
2110         (mova_p): Likewise for param "insn".
2111         (fixup_mova): Likewise for param "mova".
2112         (find_barrier): Likewise for return type, params "mova" and
2113         "from", and locals "barrier_before_mova", "found_barrier",
2114         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
2115         "label" from rtx to rtx_code_label *.
2116         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2117         rtx to rtx_insn *.
2118         (sh_reorg): Likewise for locals "link", "scan", "barrier".
2119         (split_branches): Likewise for param "first" and local "insn".
2120         (final_prescan_insn): Likewise for param "insn".
2121         (sequence_insn_p): Likewise for locals "prev", "next".
2122         (sh_insn_length_adjustment): Likewise for param "insn".
2123         (sh_can_redirect_branch): Likewise for local "insn".
2124         (find_r0_life_regions): Likewise for locals "end", "insn".
2125         (sh_output_mi_thunk): Likewise for local "insns".
2127 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2129         * config/score/score.c (score_output_mi_thunk): Strengthen local
2130         "insn" from rtx to rtx_insn *.
2131         (score_prologue): Likewise.
2133 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2135         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2136         1 from rtx to rtx_insn *.
2137         (s390_emit_jump): Likewise for return type.
2138         (s390_emit_call): Likewise.
2139         (s390_load_got): Likewise.
2141         * config/s390/s390.c (last_scheduled_insn): Likewise for this
2142         variable.
2143         (s390_match_ccmode): Likewise for param "insn".
2144         (s390_emit_jump): Likewise for return type.
2145         (s390_split_branches): Likewise for local "label".
2146         (struct constant): Strengthen field "label" from rtx to
2147         rtx_code_label *.
2148         (struct constant_pool): Likewise for field "label".  Strengthen
2149         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2150         rtx_insn *.
2151         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2152         insns.
2153         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2154         (s390_end_pool): Likewise.
2155         (s390_dump_pool): Likewise for local "insn".
2156         (s390_mainpool_start): Likewise.
2157         (s390_chunkify_start): Likewise.
2158         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2159         with insns.  Strengthen locals "label", "jump", "barrier", "next",
2160         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2161         (s390_chunkify_finish): Strengthen local "insn" from rtx to
2162         rtx_insn *.
2163         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2164         "jump", "label", "next_insn".
2165         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2166         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2167         "tbegin_insn".
2168         (s390_load_got): Likewise for return type and local "insns".
2169         (s390_save_gprs_to_fprs): Likewise for local "insn".
2170         (s390_restore_gprs_from_fprs): Likewise.
2171         (pass_s390_early_mach::execute): Likewise.
2172         (s390_emit_prologue): Likewise for local "insns".
2173         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2174         rtx_code_label *.
2175         (s390_emit_call): Strengthen return type and local "insn" from
2176         rtx to rtx_insn *.
2177         (s390_emit_tpf_eh_return): Likewise for local "insn".
2178         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2179         "next_insn", introducing locals "s_pat", "rpat" to allow this.
2180         (s390_fix_long_loop_prediction): Likewise for param "insn" and
2181         local "cur_insn".
2182         (s390_non_addr_reg_read_p): Likewise for param "insn".
2183         (find_cond_jump): Likewise for return type and param "insn".
2184         (s390_swap_cmp): Likewise for param "insn".
2185         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2186         "prev_insn", "next_insn".
2187         (s390_reorg): Likewise for locals "insn", "target".
2188         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2189         (s390_sched_variable_issue): For now, rename param "insn" to
2190         "uncast_insn", introducing a checked cast.
2191         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2192         insn.
2193         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2194         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
2196 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2198         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2199         param from rtx to rtx_insn *.
2200         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2202 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2204         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2205         4 from rtx to rtx_insn *.
2206         (rs6000_final_prescan_insn): Likewise for first param.
2207         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2208         local "insn".
2209         (rs6000_get_some_local_dynamic_name): Likewise.
2210         (output_cbranch): Likewise for param "insn".
2211         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2212         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2213         (rs6000_emit_allocate_stack): Likewise for local "insn".
2214         (load_cr_save): Likewise.
2215         (restore_saved_cr): Likewise.
2216         (restore_saved_lr): Likewise.
2217         (emit_cfa_restores): Likewise.
2218         (rs6000_output_function_epilogue): Likewise for locals "insn" and
2219         "deleted_debug_label".
2220         (rs6000_output_mi_thunk): Likewise for local "insn".
2221         (rs6000_final_prescan_insn): Likewise for param "insn".
2223 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2225         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2226         Strengthen param "insn" from rtx to rtx_insn *.
2227         * config/picochip/picochip.c (picochip_current_prescan_insn):
2228         Likewise for this variable.
2229         (picochip_final_prescan_insn): Likewise for param "insn".
2231 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2233         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2234         from rtx to rtx_insn *.
2235         (pa_output_indirect_call): Likewise.
2236         (pa_adjust_insn_length): Likewise.
2237         (pa_attr_length_millicode_call): Likewise.
2238         (pa_attr_length_call): Likewise.
2239         (pa_attr_length_indirect_call): Likewise.
2241         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2242         "insn".
2243         (pa_attr_length_millicode_call): Likewise.
2244         (pa_attr_length_call): Likewise.
2245         (pa_output_call): Likewise.
2246         (pa_attr_length_indirect_call): Likewise.
2247         (pa_output_indirect_call): Likewise.
2249 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2251         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2252         Strengthen first param from rtx to rtx_insn *.
2253         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2254         param "insn".
2256 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2258         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2259         type from rtx to rtx_insn *.
2260         (mips_expand_call): Likewise.
2261         (mips_adjust_insn_length): Likewise for first param.
2262         (mips_output_conditional_branch): Likewise.
2263         (mips_output_order_conditional_branch): Likewise.
2264         (mips_final_prescan_insn): Likewise.
2266         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2267         rtx_insn * for the SEQUENCE case.
2268         (SEQ_END): Likewise.
2269         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2270         (mips_emit_call_insn): Likewise, also for local "insn".
2271         (mips16_gp_pseudo_reg): Likewise for local "scan".
2272         (mips16_build_call_stub): Likewise for return type and for local
2273         "insn".  Introduce a new local "pattern" so that "insn" can indeed
2274         be an insn.
2275         (mips_expand_call): Strengthen return type and local "insn" from
2276         rtx to rtx_insn *.
2277         (mips_block_move_loop): Strengthen local "label" from rtx to
2278         rtx_code_label *.
2279         (mips_expand_synci_loop): Likewise for locals "label",
2280         "end_label".
2281         (mips_set_frame_expr): Strengthen local "insn" from rtx to
2282         rtx_insn *.
2283         (mips16e_collect_argument_saves): Likewise for locals "insn",
2284         "next".
2285         (mips_find_gp_ref): Likewise for param of callback for "pred"
2286         param, and for local "insn".
2287         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2288         (mips_insn_has_flexible_gp_ref_p): Likewise.
2289         (mips_epilogue_emit_cfa_restores): Likewise for return type and
2290         local "insn".
2291         (mips_epilogue_set_cfa): Likewise for local "insn".
2292         (mips_expand_epilogue): Likewise.
2293         (mips_adjust_insn_length): Likewise for param "insn".
2294         (mips_output_conditional_branch): Likewise.
2295         (mips_output_order_conditional_branch): Likewise.
2296         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2297         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2298         "falu2_turn_enabled_insn".
2299         (mips_builtin_branch_and_move): Strengthen locals "true_label",
2300         "done_label" from rtx to rtx_code_label *.
2301         (struct mips16_constant): Likewise for field "label".
2302         (mips16_add_constant): Likewise for return type.
2303         (mips16_emit_constants_1): Strengthen return type and param "insn"
2304         from rtx to rtx_insn *.
2305         (mips16_emit_constants): Likewise for param "insn".
2306         (mips16_insn_length): Likewise.
2307         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2308         to rtx_code_label *.
2309         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2310         from rtx to rtx_insn *.
2311         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2312         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
2313         (r10k_simplify_address): Strengthen param "insn" and local
2314         "def_insn" from rtx to rtx_insn *.
2315         (r10k_safe_address_p): Strengthen param "insn" from rtx to
2316         rtx_insn *.
2317         (r10k_needs_protection_p_1): Update target type of cast of data
2318         from to rtx to rtx_insn *.
2319         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2320         rtx * to rtx_insn **.
2321         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2322         rtx_insn *.
2323         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2324         (mips_call_expr_from_insn): Likewise for param "insn".
2325         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2326         (mips_find_pic_call_symbol): Likewise for param "insn".
2327         (mips_annotate_pic_calls): Likewise for local "insn".
2328         (mips_sim_insn): Likewise for this variable.
2329         (struct mips_sim): Likewise for field "insn" within elements of
2330         last_set array.
2331         (mips_sim_wait_reg): Likewise for param "insn".
2332         (mips_sim_wait_regs): Likewise.
2333         (mips_sim_wait_units): Likewise.
2334         (mips_sim_wait_insn): Likewise.
2335         (mips_sim_issue_insn): Likewise.
2336         (mips_sim_finish_insn): Likewise.
2337         (mips_seq_time): Likewise for param "seq" and local "insn".
2338         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2339         locals "first", "second".
2340         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2341         "last", "last2", "next".
2342         (mips_avoid_hazard): Likewise for params "after", "insn".
2343         (mips_reorg_process_insns): Likewise for locals "insn",
2344         "last_insn", "subinsn", "next_insn".
2345         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2346         (mips16_split_long_branches): Likewise for locals "insn" "jump",
2347         "jump_sequence".
2348         (mips_output_mi_thunk): Likewise for local "insn".
2349         (mips_final_prescan_insn): Likewise for param "insn".
2351 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2353         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2354         Strengthen return type and local "insns" from rtx to rtx_insn *.
2355         (microblaze_legitimize_tls_address): Likewise for local "insns".
2356         (microblaze_block_move_loop): Strengthen local "label" from rtx
2357         to rtx_code_label *.
2358         (microblaze_expand_prologue): Strengthen two locals named "insn"
2359         from rtx to rtx_insn *.
2360         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2361         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2362         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
2363         to rtx_code_label *.
2365 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2367         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2368         param from rtx to rtx_insn *.
2369         (mep_reuse_lo): Likewise for third param.
2370         (mep_use_post_modify_p): Likewise for first param.
2371         (mep_core_address_length): Likewise.
2372         (mep_cop_address_length): Likewise.
2373         (mep_final_prescan_insn): Likewise.
2374         (mep_store_data_bypass_p): Likewise for both params.
2375         (mep_mul_hilo_bypass_p): Likewise.
2376         (mep_ipipe_ldc_p): Likewise for param.
2378         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2379         (mep_rewrite_mult): Likewise.
2380         (mep_rewrite_mulsi3): Likewise.
2381         (mep_rewrite_maddsi3): Likewise.
2382         (mep_reuse_lo_p_1): Likewise.
2383         (mep_reuse_lo_p): Likewise.
2384         (mep_frame_expr): Likewise.
2385         (mep_make_parallel): Likewise for both params.
2386         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2387         local "insn".
2388         (mep_use_post_modify_p): Likewise for param "insn".
2389         (mep_core_address_length): Likewise.
2390         (mep_cop_address_length): Likewise.
2391         (mep_reg_set_in_function): Likewise for local "insn".
2392         (mep_asm_without_operands_p): Likewise.
2393         (F): Likewise for return type and param "x".
2394         (add_constant): Likewise for local "insn".
2395         (maybe_dead_move): Likewise for return type and local "insn".
2396         (mep_expand_prologue): Likewise for local "insn".
2397         (mep_final_prescan_insn): Likewise for param "insn".
2398         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2399         "next", "follow", "x".
2400         (mep_insert_repeat_label_last): Likewise for return type, param
2401         "last_insn", and locals "next", "prev".  Strengthen param "label"
2402         from rtx to rtx_code_label *.
2403         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2404         rtx_insn *.
2405         (struct mep_doloop_end): Likewise for fields "insn" and
2406         "fallthrough".
2407         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2408         Strengthen local "repeat_label" from rtx to rtx_code_label *.
2409         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2410         rtx_insn *.
2411         (mep_invert_branch): Likewise for params "insn" and "after".
2412         (mep_reorg_erepeat): Likewise for param "insns" and locals
2413         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
2414         "l" from rtx to rtx_code_label *.
2415         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2416         from rtx to rtx_insn *.
2417         (mep_reorg_addcombine): Likewise for param "insns" and locals
2418         "i", "n".
2419         (add_sp_insn_p): Likewise for param "insn".
2420         (mep_reorg_noframe): Likewise for param "insns" and locals
2421         "start_frame_insn", "end_frame_insn", "next".
2422         (mep_reorg): Likewise for local "insns".
2423         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
2424         cast.
2425         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2426         (mep_mul_hilo_bypass_p): Likewise.
2427         (mep_ipipe_ldc_p): Likewise for param "insn".
2428         (mep_make_bundle): Likewise for return type, param "cop" and local
2429         "insn", splitting out the latter into a new local "seq" for when it
2430         is a SEQUENCE rather than an insn.
2431         (core_insn_p): Likewise for param "insn".
2432         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2433         "last", "first", "note", "prev", "core_insn".
2435 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2437         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2438         rtx to rtx_insn *.
2439         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2440         (m68k_final_prescan_insn): Likewise for first param.
2442         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2443         (m68k_set_frame_related): Likewise for param "insn".
2444         (output_btst): Likewise for param "insn".
2445         (m68k_final_prescan_insn): Likewise.
2446         (m68k_move_to_reg): Likewise for local "insn".
2447         (m68k_call_tls_get_addr): Likewise for local "insns".
2448         (m68k_call_m68k_read_tp): Likewise.
2449         (strict_low_part_peephole_ok): Likewise for param "first_insn".
2450         (m68k_output_mi_thunk): Likewise for local "insn".
2452 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2454         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2455         first param from rtx to rtx_insn *.
2456         (iq2000_adjust_insn_length): Likewise.
2457         (iq2000_output_conditional_branch): Likewise.
2458         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2459         "insn" and local "nop_insn".
2460         (iq2000_annotate_frame_insn): Likewise for param "insn".
2461         (iq2000_expand_prologue): Likewise for both locals "insn".
2462         (iq2000_adjust_insn_length): Likewise for param "insn".
2463         (iq2000_output_conditional_branch): Likewise.
2465 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2467         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2468         "insns" from rtx to rtx_insn *.
2469         (ia64_emit_cond_move): Likewise for locals "insn", "first".
2470         (struct spill_fill_data): Likewise for field "init_after" and for
2471         elements of array field "prev_insn".
2472         (spill_restore_mem): Likewise for locals "insn", "first".
2473         (do_spill): Likewise for local "insn".
2474         (do_restore): Likewise.
2475         (ia64_expand_prologue): Likewise.
2476         (ia64_expand_epilogue): Likewise.
2477         (emit_insn_group_barriers): Likewise for locals "insn",
2478         "last_label".
2479         (emit_all_insn_group_barriers): Likewise for locals "insn",
2480         "last".
2481         (dfa_stop_insn): Likewise for this global.
2482         (dfa_pre_cycle_insn): Likewise.
2483         (ia64_nop): Likewise.
2484         (final_emit_insn_group_barriers): Likewise for locals "insn",
2485         "last".
2486         (emit_predicate_relation_info): Likewise for locals "head", "n",
2487         "insn", "b", "a".
2488         (ia64_reorg): Likewise for local "insn".
2489         (ia64_output_mi_thunk): Likewise.
2490         (expand_vec_perm_interleave_2): Likewise for local "seq".
2492 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2494         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2495         param 1 "insn" from rtx to rtx_insn *.
2496         (ix86_use_lea_for_mov): Likewise.
2497         (ix86_avoid_lea_for_addr): Likewise.
2498         (ix86_split_lea_for_addr): Likewise.
2499         (ix86_lea_for_add_ok): Likewise.
2500         (ix86_output_call_insn): Likewise.
2502         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2503         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2504         (ix86_output_function_epilogue): Likewise for locals "insn",
2505         "deleted_debug_label".
2506         (legitimize_tls_address): Likewise for local "insn".
2507         (get_some_local_dynamic_name): Likewise.
2508         (increase_distance): Likewise for params "prev", "next".
2509         (distance_non_agu_define_in_bb): Likewise for params "insn",
2510         "start" and locals "prev", "next".
2511         (distance_non_agu_define): Likewise for param "insn".
2512         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2513         locals "next", "prev".
2514         (distance_agu_use): Likewise for param "insn".
2515         (ix86_lea_outperforms): Likewise.
2516         (ix86_ok_to_clobber_flags): Likewise.
2517         (ix86_avoid_lea_for_add): Likewise.
2518         (ix86_use_lea_for_mov): Likewise.
2519         (ix86_avoid_lea_for_addr): Likewise.
2520         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2521         (ix86_split_lea_for_addr): Likewise for param "insn".
2522         (ix86_lea_for_add_ok): Likewise for param "insn".
2523         (ix86_expand_carry_flag_compare): Likewise for local
2524         "compare_seq".
2525         (ix86_expand_int_movcc): Likewise.
2526         (ix86_output_call_insn): Likewise for param "insn".
2527         (ix86_output_call_insn): Likewise for local "i".
2528         (x86_output_mi_thunk): Introduce local "insn", using it in place
2529         of "tmp" when dealing with insns.
2530         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2531         "start".
2532         (ix86_pad_returns): Likewise for locals "ret", "prev".
2533         (ix86_count_insn_bb): Likewise for local "insn".
2534         (ix86_pad_short_function): Likewise for locals "ret", "insn".
2535         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2536         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2537         (expand_vec_perm_interleave2): Likewise for local "seq".
2538         (expand_vec_perm_vperm2f128_vblend): Likewise.
2539         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
2540         call to for_each_rtx with for_each_rtx_in_insn.
2542 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2544         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2545         "label" from rtx to rtx_code_label *.
2546         (ix86_expand_prologue): Likewise.
2547         (ix86_expand_split_stack_prologue): Likewise for locals "label",
2548         "varargs_label".
2549         (ix86_split_idivmod): Likewise for locals "end_label" and
2550         "qimode_label".
2551         (ix86_expand_branch): Likewise for local "label2".
2552         (ix86_expand_aligntest): Likewise for return type and local "label".
2553         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2554         "top_label".
2555         (expand_movmem_epilogue): Likewise for the various locals named
2556         "label".
2557         (expand_setmem_epilogue): Likewise.
2558         (expand_small_movmem_or_setmem): Likewise for local "label".
2559         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2560         Strengthen param "done_label" from rtx * to rtx_code_label **.
2561         Strengthen locals "loop_label" and "label" from rtx to
2562         rtx_code_label *.
2563         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2564         Likewise for locals "loop_label", "label".
2565         (ix86_expand_set_or_movmem): Likewise for locals "label",
2566         "jump_around_label", "hot_label".
2567         (ix86_expand_strlensi_unroll_1): Likewise for locals
2568         "align_2_label", align_3_label", "align_4_label", "end_0_label",
2569         "end_2_label".
2570         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2571         (void ix86_emit_i387_log1p): Likewise for locals "label1",
2572         "label2", "jump_label".
2573         (ix86_expand_sse_compare_and_jump): Likewise for return type and
2574         local "label".
2575         (ix86_expand_lfloorceil): Likewise for local "label".
2576         (ix86_expand_rint): Likewise.
2577         (ix86_expand_floorceildf_32): Likewise.
2578         (ix86_expand_floorceil): Likewise.
2579         (ix86_expand_rounddf_32): Likewise.
2580         (ix86_expand_trunc): Likewise.
2581         (ix86_expand_truncdf_32): Likewise.
2582         (ix86_expand_round): Likewise.
2584 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2586         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2587         first param from rtx to rtx_insn *.
2588         (h8300_insn_length_from_table): Likewise.
2589         * config/h8300/h8300.c (F): Likewise for return type and param
2590         "x".
2591         (Fpa): Add a checked cast to rtx_insn *.
2592         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2593         rtx_insn *.
2594         (final_prescan_insn): Likewise for param "insn".
2595         (h8300_binary_length): Likewise.
2596         (h8300_insn_length_from_table): Likewise.
2598 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2600         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2601         Strengthen first param "insn" from rtx to rtx_insn *.
2603         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2604         Likewise.
2605         (frame_insn): Likewise for return type.  Introduce local "insn"
2606         for use in place of local "x" for use as an rtx_insn *.
2607         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2608         (epiphany_expand_prologue): Likewise for local "insn".
2609         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2610         * config/epiphany/resolve-sw-modes.c
2611         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2612         "seq".
2614 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2616         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2617         param from rtx to rtx_insn *.
2618         (c6x_final_prescan_insn): Likewise for first param.
2620         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2621         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2622         (c6x_expand_compare): Strengthen local "insns" from rtx to
2623         rtx_insn *.
2624         (c6x_get_unit_specifier): Likewise for param "insn".
2625         (c6x_print_unit_specifier_field): Likewise.
2626         (c6x_final_prescan_insn): Likewise.
2627         (emit_add_sp_const): Likewise for local "insn".
2628         (c6x_expand_prologue): Likewise.
2630 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2632         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2633         param 1 from rtx to rtx_insn *.
2634         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2635         the various locals named "insn".
2636         (expand_epilogue_reg_restore): Likewise.
2637         (frame_related_constant_load): Likewise.
2638         (add_to_reg): Likewise.
2639         (emit_link_insn): Likewise.
2640         (do_link): Likewise.
2641         (expand_interrupt_handler_prologue): Likewise.
2642         (branch_dest): Likewise for param "branch".
2643         (asm_conditional_branch): Likewise for param "insn".
2644         (gen_one_bundle): Likewise for elements of param "slot" and local
2645         "t".
2646         (bfin_gen_bundles): Likewise for locals "insn", "next" and
2647         elements of local "slot".
2648         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2649         "queue", "next_queue", "prev".
2650         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2651         (add_sched_insns_for_speculation): Likewise for local "insn".
2653 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2655         * config/avr/avr-protos.h (output_movqi): Strengthen first param
2656         from rtx to rtx_insn *.
2657         (output_movhi): Likewise.
2658         (output_movsisf): Likewise.
2659         (avr_out_tstsi): Likewise.
2660         (avr_out_tsthi): Likewise.
2661         (avr_out_tstpsi): Likewise.
2662         (avr_out_compare): Likewise.
2663         (avr_out_compare64): Likewise.
2664         (avr_out_movpsi): Likewise.
2665         (ashlqi3_out): Likewise.
2666         (ashlhi3_out): Likewise.
2667         (ashlsi3_out): Likewise.
2668         (ashrqi3_out): Likewise.
2669         (ashrhi3_out): Likewise.
2670         (ashrsi3_out): Likewise.
2671         (lshrqi3_out): Likewise.
2672         (lshrhi3_out): Likewise.
2673         (lshrsi3_out): Likewise.
2674         (avr_out_ashlpsi3): Likewise.
2675         (avr_out_ashrpsi3): Likewise.
2676         (avr_out_lshrpsi3): Likewise.
2677         (avr_out_fract): Likewise.
2678         (avr_out_sbxx_branch): Likewise.
2679         (avr_out_round): Likewise.
2680         (avr_out_xload): Likewise.
2681         (avr_out_movmem): Likewise.
2682         (adjust_insn_length): Likewise.
2683         (avr_out_lpm): Likewise.
2684         (reg_unused_after): Likewise.
2685         (_reg_unused_after): Likewise.
2686         (avr_jump_mode): Likewise for second param.
2687         (jump_over_one_insn): Likewise for first param.
2688         (avr_final_prescan_insn): Likewise.
2689         (out_shift_with_cnt): Likewise for second param.
2691         * config/avr/avr.c (get_sequence_length): Likewise for param
2692         "insns" and local "insn".
2693         (emit_push_byte): Likewise for local "insn".
2694         (emit_push_sfr): Likewise.
2695         (avr_prologue_setup_frame): Likewise for locals "insn",
2696         "fp_plus_insns", "sp_plus_insns".
2697         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2698         "sp_plus_insns".
2699         (avr_jump_mode): Likewise for param "insn".
2700         (avr_final_prescan_insn): Likewise.
2701         (avr_find_unused_d_reg): Likewise.
2702         (avr_out_lpm_no_lpmx): Likewise.
2703         (avr_out_lpm): Likewise.
2704         (avr_out_xload): Likewise.
2705         (output_movqi): Likewise.
2706         (output_movhi): Likewise.
2707         (out_movqi_r_mr): Likewise.
2708         (out_movhi_r_mr): Likewise.
2709         (out_movsi_r_mr): Likewise.
2710         (out_movsi_mr_r): Likewise.
2711         (output_movsisf): Likewise.
2712         (avr_out_load_psi): Likewise.
2713         (avr_out_store_psi): Likewise.
2714         (avr_out_movpsi): Likewise.
2715         (out_movqi_mr_r): Likewise.
2716         (avr_out_movhi_mr_r_xmega): Likewise.
2717         (out_movhi_mr_r): Likewise.
2718         (compare_condition): Likewise for param "insn" and local "next".
2719         (compare_sign_p): Likewise for param "insn".
2720         (compare_diff_p): Likewise.
2721         (compare_eq_p): Likewise.
2722         (avr_out_compare): Likewise.
2723         (avr_out_compare64): Likewise.
2724         (avr_out_tsthi): Likewise.
2725         (avr_out_tstpsi): Likewise.
2726         (avr_out_tstsi): Likewise.
2727         (out_shift_with_cnt): Likewise.
2728         (ashlqi3_out): Likewise.
2729         (ashlhi3_out): Likewise.
2730         (avr_out_ashlpsi3): Likewise.
2731         (ashlsi3_out): Likewise.
2732         (ashrqi3_out): Likewise.
2733         (ashrhi3_out): Likewise.
2734         (avr_out_ashrpsi3): Likewise.
2735         (ashrsi3_out): Likewise.
2736         (lshrqi3_out): Likewise.
2737         (lshrhi3_out): Likewise.
2738         (avr_out_lshrpsi3): Likewise.
2739         (lshrsi3_out): Likewise.
2740         (avr_out_fract): Likewise.
2741         (avr_out_round): Likewise.
2742         (avr_adjust_insn_length): Likewise.
2743         (reg_unused_after): Likewise.
2744         (_reg_unused_after): Likewise.
2745         (avr_compare_pattern): Likewise.
2746         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2747         and locals "branch1", "branch2", "insn2", "jump".
2748         (avr_reorg): Likewise for local "insn".
2749         (avr_2word_insn_p): Likewise for param "insn".
2750         (jump_over_one_insn_p): Likewise.
2751         (avr_out_sbxx_branch): Likewise.
2752         (avr_out_movmem): Likewise.
2754 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2756         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2757         param from rtx to rtx_insn *.
2758         (thumb1_final_prescan_insn): Likewise.
2759         (thumb2_final_prescan_insn): Likewise.
2761         * config/arm/arm.c (emit_set_insn): Strengthen return type from
2762         rtx to rtx_insn *.
2763         (struct minipool_node): Likewise for field "insn".
2764         (dump_minipool): Likewise for param "scan".
2765         (create_fix_barrier): Likewise for local "from".  Strengthen local
2766         "label" from rtx to rtx_code_label *.
2767         (push_minipool_barrier): Strengthen param "insn" from rtx to
2768         rtx_insn *.
2769         (push_minipool_fix): Likewise.
2770         (note_invalid_constants): Likewise.
2771         (thumb2_reorg): Likewise for local "insn".
2772         (arm_reorg): Likewise.
2773         (thumb2_final_prescan_insn): Likewise for param
2774         "insn" and local "first_insn".
2775         (arm_final_prescan_insn): Likewise for param "insn" and locals
2776         "start_insn", "this_insn".
2777         (arm_debugger_arg_offset): Likewise for param "insn".
2778         (thumb1_emit_multi_reg_push): Likewise for return type and local
2779         "insn".
2780         (thumb1_final_prescan_insn): Likewise for param "insn".
2781         (thumb_far_jump_used_p): Likewise for local "insn".
2782         (thumb1_expand_prologue): Likewise.
2783         (arm_expand_epilogue_apcs_frame): Likewise.
2784         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2785         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2786         from rtx to rtx_code_label *.
2787         (arm_split_atomic_op): Likewise for local "label".
2788         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2790 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2792         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2793         first param from rtx to rtx_insn *.
2794         (arc_verify_short): Likewise.
2795         (arc_short_long): Likewise.
2796         (arc_need_delay): Likewise.
2798         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2799         "target_insn".
2800         (arc_ccfsm_advance): Likewise for param "insn" and locals
2801         "start_insn", "this_insn".
2802         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2803         (arc_ccfsm_post_advance): Likewise for param "insn".
2804         (arc_next_active_insn): Likewise for return type and param "insn".
2805         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
2806         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2807         (output_short_suffix): Likewise for local "insn".
2808         (arc_final_prescan_insn): Likewise for param "insn".  Remove
2809         now-redundant checked cast.
2810         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2811         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2812         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
2813         for use where lc_set became an insn.
2814         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2815         rtx to rtx_insn *.
2816         (arc_get_insn_variants): Likewise for local "prev".
2817         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2818         "next".
2819         (arc_predicate_delay_insns): Likewise for local "insn".
2820         (arc_pad_return): Likewise for local "prev".  For now, add a
2821         checked cast when extracting the insn from "final_sequence".
2822         (arc_short_long): Likewise for param "insn".
2823         (arc_need_delay): Likewise for param "insn" and local "next".
2824         (arc_label_align): Likewise for locals "prev", "next".
2826 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2828         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2829         "insn" from rtx to rtx_insn *.
2830         (alpha_gp_save_rtx): Likewise for local "seq".
2831         (alpha_instantiate_decls): Likewise for local "top".
2832         (get_some_local_dynamic_name): Likewise for local "insn".
2833         (alpha_does_function_need_gp): Likewise.
2834         (set_frame_related_p): Likewise for return type and for locals
2835         "seq" and "insn".
2836         (emit_frame_store_1): Likewise for local "insn".
2837         (alpha_expand_prologue): Likewise for locals "insn", "seq".
2838         (alpha_end_function): Likewise for local "insn".
2839         (alpha_output_mi_thunk_osf): Likewise.
2840         (alphaev4_insn_pipe): Likewise for param "insn".
2841         (alphaev5_insn_pipe): Likewise.
2842         (alphaev4_next_group): Likewise for return type and param 1
2843         "insn".
2844         (alphaev5_next_group): Likewise.
2845         (alpha_align_insns_1): Likewise for return type and param 1 of
2846         callback param "next_group", and for locals "i", "next", "prev",
2847         "where", "where2", "insn".
2849 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2851         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2852         rather than modifying the stmt.
2854 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2856         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2857         cgraph_state conversion.
2859 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2861         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2862         Strengthen local "insns" from rtx to rtx_insn *.
2863         (aarch64_set_frame_expr): Likewise for local "insn".
2864         (aarch64_save_or_restore_fprs): Likewise.
2865         (aarch64_save_or_restore_callee_save_registers): Likewise.
2866         (aarch64_expand_prologue): Likewise.
2867         (aarch64_expand_epilogue): Likewise.
2868         (aarch64_output_mi_thunk): Likewise.
2869         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2870         "label2" from rtx to rtx_code_label *.
2871         (aarch64_split_atomic_op): Likewise for local "label".
2873 2014-08-25  Martin Liska  <mliska@suse.cz>
2875         * cgraph.h (symtab_node):
2876         (bool needed_p (void)): created from decide_is_symbol_needed
2877         (bool referred_to_p (void)): created from referred_to_p
2878         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2879         * cgraph.h (cgraph_node):
2880         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2881         (void expand (void)): created from expand_function
2882         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2883         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2884         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2885         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2886         * cgraph.h (varpool_node):
2887         (static void add (tree decl): created from varpool_add_new_variable
2888         * cgraph.h (cgraph_edge):
2889         void remove (void);
2890         (void remove_caller (void)): created from cgraph_edge_remove_caller
2891         (void remove_callee (void)): created from cgraph_edge_remove_callee
2892         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2893           created from cgraph_set_call_stmt
2894         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2895         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2896         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2897           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2898         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2899           created from cgraph_speculative_call_info
2900         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2901           int freq_scale, bool update_original)): created from cgraph_clone_edge
2902         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2903         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2904         (bool recursive_p (void)): created from cgraph_edge_recursive_p
2905         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2906         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2907         (static void rebuild_references (void)): created from cgraph_rebuild_references
2908         * cgraph.h (symbol_table):
2909         (create_reference): renamed from add_reference
2910         (maybe_create_reference): renamed from maybe_add_reference
2911         (void register_symbol (symtab_node *node)): new function
2912         (void clear_asm_symbols (void)): new function
2913         (void unregister (symtab_node *node)): new function
2914         (void release_symbol (cgraph_node *node, int uid)): new function
2915         (cgraph_node * allocate_cgraph_symbol (void)): new function
2916         (void initialize (void)): created from cgraph_init
2917         (symtab_node *first_symbol (void)):new function
2918         (asm_node *first_asm_symbol (void)):new function
2919         (symtab_node *first_defined_symbol (void)):new function
2920         (varpool_node *first_variable (void)):new function
2921         (varpool_node *next_variable (varpool_node *node)):new function
2922         (varpool_node *first_static_initializer (void)):new function
2923         (varpool_node *next_static_initializer (varpool_node *node)):new function
2924         (varpool_node *first_defined_variable (void)):new function
2925         (varpool_node *next_defined_variable (varpool_node *node)):new function
2926         (cgraph_node *first_defined_function (void)):new function
2927         (cgraph_node *next_defined_function (cgraph_node *node)):new function
2928         (cgraph_node *first_function (void)):new function
2929         (cgraph_node *next_function (cgraph_node *node)):new function
2930         (cgraph_node *first_function_with_gimple_body (void)):new function
2931         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2932         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2933           created from symtab_remove_unreachable_nodes
2934         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2935         (void process_new_functions (void)): created from cgraph_process_new_functions
2936         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2937         (bool output_variables (void)): created from varpool_node::output_variables
2938         (void output_asm_statements (void)): created from output_asm_statements
2939         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2940         (void compile (void)): created from compile
2941         (void output_weakrefs (void)): created from output_weakrefs
2942         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2943         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2944           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2945         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2946         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2947           created from cgraph_next_function_with_gimple_body
2948         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2949           created from cgraph_remove_edge_removal_hook
2950         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2951           created from cgraph_add_node_removal_hook
2952         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2953           created from cgraph_remove_node_removal_hook
2954         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2955           created from varpool_add_node_removal_hook
2956         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2957           created from varpool_remove_node_removal_hook
2958         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2959           created from cgraph_add_function_insertion_hook
2960         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2961           created from cgraph_remove_function_insertion_hook
2962         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2963           created from varpool_add_variable_insertion_hook
2964         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2965           created from varpool_remove_variable_insertion_hook
2966         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2967           created from cgraph_add_edge_duplication_hook
2968         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2969           created from cgraph_remove_edge_duplication_hook
2970         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2971           created from cgraph_add_node_duplication_hook
2972         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2973           created from cgraph_remove_node_duplication_hook
2974         (void call_edge_removal_hooks (cgraph_edge *e)):
2975           created from cgraph_call_edge_removal_hooks
2976         (void call_cgraph_insertion_hooks (cgraph_node *node)):
2977           created from call_function_insertion_hooks 
2978         (void call_cgraph_removal_hooks (cgraph_node *node)):
2979           created from cgraph_call_node_removal_hooks 
2980         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2981           created from cgraph_node::call_duplication_hooks 
2982         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2983           created from cgraph_call_edge_duplication_hooks
2984         (void call_varpool_removal_hooks (varpool_node *node)):
2985           created from varpool_call_node_removal_hooks
2986         (void call_varpool_insertion_hooks (varpool_node *node)):
2987           created from varpool_call_variable_insertion_hooks
2988         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2989           created from insert_to_assembler_name_hash
2990         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2991           created from unlink_from_assembler_name_hash
2992         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2993           created from symtab_prevail_in_asm_name_hash
2994         (void symtab_initialize_asm_name_hash (void)):
2995           created from symtab_initialize_asm_name_hash
2996         (void change_decl_assembler_name (tree decl, tree name)):
2997           created from change_decl_assembler_name
2998         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2999         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3000           created from decl_assembler_name_hash
3001         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3002           created from decl_assembler_name_equal
3003         (static hashval_t hash_node_by_assembler_name (const void *p)):
3004           created from hash_node_by_assembler_name
3005         (static int eq_assembler_name (const void *p1, const void *p2)):
3006           created from eq_assembler_name
3008 2014-08-25  Marek Polacek  <polacek@redhat.com>
3010         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3012 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
3014         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3015         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3016         SWI1248_AVX512BW mode iterator.
3018 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
3020         PR target/62111
3021         * config/sh/predicates.md (general_extend_operand): Disable
3022         TRUNCATE before reload completes.
3024 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
3026         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3028 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
3030         PR target/61996
3031         * config/sh/sh.opt (musermode): Allow negative form.
3032         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3033         targets that don't support it.
3034         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3035         Document -mno-usermode option.
3037 2014-08-24  Kito Cheng  <kito@0xlab.org>
3039         * system.h (CALLER_SAVE_PROFITABLE): Poison.
3040         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3041         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3042         * doc/tm.texi: Regenerate.
3044 2014-08-24  Kito Cheng  <kito@0xlab.org>
3046         * ira.c: Fix typo in comment.
3048 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
3050         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3051         Deprecate c++1y. Change language to reflect greater confidence in C++14.
3053 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
3055         PR target/62038
3056         * config/pa/pa.c (pa_output_function_epilogue): Don't set
3057         last_address when the current function is a thunk.
3058         (pa_asm_output_mi_thunk): When we don't have named sections or they
3059         are not being used, check that thunk can reach the stub table with a
3060         short branch.
3062 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
3064         * web.c (union_match_dups): Strengthen param "insn" from rtx to
3065         rtx_insn *.
3066         (pass_web::execute): Likewise for local "insn".
3068 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
3070         * var-tracking.c (struct micro_operation_def): Strengthen field
3071         "insn" from rtx to rtx_insn *.
3072         (struct emit_note_data_def): Likewise.
3073         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3074         (vt_stack_adjustments): Likewise for local "insn".
3075         (adjust_insn): Likewise for param "insn".
3076         (val_store): Likewise.
3077         (val_resolve): Likewise.
3078         (struct count_use_info): Likewise for field "insn".
3079         (log_op_type): Likewise for param "insn".
3080         (reverse_op): Likewise.
3081         (prepare_call_arguments): Likewise.
3082         (add_with_sets):  The initial param takes an insn, but we can't
3083         yet strengthen it from rtx to rtx_insn * since it's used as a
3084         cselib_record_sets_hook callback.  For now rename initial param
3085         from "insn" to "uncast_insn", and introduce a local "insn" of
3086         the stronger rtx_insn * type, with a checked cast.
3087         (compute_bb_dataflow): Strengthen local "insn" from rtx to
3088         rtx_insn *.
3089         (emit_note_insn_var_location): Likewise.
3090         (emit_notes_for_changes): Likewise.
3091         (emit_notes_for_differences): Likewise.
3092         (next_non_note_insn_var_location): Likewise for return type and
3093         for param "insn".
3094         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3095         (vt_initialize): Likewise for local "insn".
3096         (delete_debug_insns): Likewise for locals "insn" and "next".
3098 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
3100         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3101         rtx_insn *.
3102         (mark_constant_pool): Likewise for local "insn".
3104 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
3106         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3107         rtx to rtx_insn *.
3108         (dead_debug_promote_uses): Likewise.
3109         (dead_debug_insert_temp): Likewise.
3111 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
3113         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3114         from const_rtx to const rtx_insn *.
3115         (store_killed_after): Likewise.  Strengthen locals "last", "act"
3116         from rtx to rtx_insn *.
3117         (store_killed_before): Strengthen param "insn" from const_rtx to
3118         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
3119         (find_moveable_store): Strengthen param "insn" from rtx to
3120         rtx_insn *.
3121         (compute_store_table): Likewise for local "insn".
3122         (insert_insn_start_basic_block): Likewise for param "insn" and
3123         locals "prev", "before", "insn".
3124         (insert_store): For now, add a checked cast to rtx_insn * on the
3125         result of gen_move_insn.
3126         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3127         to rtx_insn *.
3128         (replace_store_insn): Likewise.  For now, add a checked cast to
3129         rtx_insn * on the result of gen_move_insn.
3131 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3133         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3134         rtx_insn *.
3135         (expand_sjlj_dispatch_table): Likewise.
3137 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3139         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3140         "insn" from rtx to rtx_insn *.
3142 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3144         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3145         "insn" from rtx to rtx_insn *.
3146         (dup_block_and_redirect): Likewise for param 3 "before".
3148         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3149         from rtx to rtx_insn *.
3150         (move_insn_for_shrink_wrap): Likewise.
3151         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3152         (dup_block_and_redirect): Likewise for param "before" and local
3153         "insn".
3154         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3155         "end".
3156         (convert_to_simple_return): Likewise for local "start".
3158         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3159         Strengthen local "insn" from rtx to rtx_insn *, for use when
3160         invoking requires_stack_frame_p.
3162 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3164         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3165         rtx_insn *.
3166         (speculate_expr): Likewise for locals "orig_insn_rtx",
3167         "spec_insn_rtx".
3168         (eq_transformed_insns): Likewise for locals "i1", "i2".
3169         (check_for_new_jump): Likewise for return type and local "end".
3170         (find_new_jump): Likewise for return type and local "jump".
3171         (sel_split_edge): Likewise for local "jump".
3172         (sel_create_recovery_block): Likewise.
3173         (sel_redirect_edge_and_branch_force): Likewise.
3174         (sel_redirect_edge_and_branch): Likewise.
3176 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3178         * sel-sched.c (substitute_reg_in_expr): Strengthen local
3179         "new_insn" from rtx to rtx_insn *.
3180         (create_insn_rtx_with_rhs): Likewise for return type and for local
3181         "insn_rtx".
3182         (create_insn_rtx_with_lhs): Likewise.
3183         (create_speculation_check): Likewise for local "insn_rtx".
3184         (implicit_clobber_conflict_p): Likewise for local "insn".
3185         (get_expr_cost): Likewise.
3186         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3187         (move_cond_jump): Likewise for locals "next", "prev", "link",
3188         "head", "from", "to".
3190 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3192         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3193         "next" from rtx to rtx_insn *.
3194         (find_conditional_protection): Likewise for local "next".
3195         (is_conditionally_protected): Likewise for local "insn1".
3196         (is_pfree): Likewise for locals "insn1", "insn2".
3198 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3200         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3201         from rtx to rtx_insn *.
3203         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3204         locals "insn1", "insn2" from rtx to rtx_insn *.
3205         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3206         locals "insn", "prev", "last_jump", "next_tail".
3207         (schedule_ebb): Likewise for params "head", "tail".
3208         (schedule_ebbs): Likewise for locals "tail", "head".
3210         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3211         to rtx_insn on "last_insn" in one of the invocations of
3212         schedule_ebb.
3214 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3216         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3217         "elem", "insn" from rtx to rtx_insn *.
3218         (change_spec_dep_to_hard): Likewise.
3219         (get_back_and_forw_lists): Likewise for local "con".
3220         (sd_add_dep): Likewise for locals "elem", "insn".
3221         (sd_resolve_dep): Likewise for locals "pro", "con".
3222         (sd_unresolve_dep): Likewise.
3223         (sd_delete_dep): Likewise.
3224         (chain_to_prev_insn): Likewise for local "pro".
3225         (find_inc): Likewise for locals "pro", "con".
3227 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3229         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3230         to rtx_insn *.
3231         (reg_set_between_p): Strengthen local "insn" from const_rtx to
3232         const rtx_insn *.
3233         (modified_between_p): Strengthen local "insn" from rtx to
3234         rtx_insn *.
3235         (remove_reg_equal_equiv_notes_for_regno): Likewise.
3236         (keep_with_call_p): Strengthen local "i2" from const_rtx to
3237         const rtx_insn *.
3239 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3241         * resource.c (next_insn_no_annul): Strengthen local "next" from
3242         rtx to rtx_insn *.
3243         (mark_referenced_resources): Likewise for local "insn".
3245 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3247         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3248         to rtx_insn *.
3249         (find_reloads): Likewise for param 1.
3250         (subst_reloads): Likewise for sole param.
3251         (find_equiv_reg): Likwise for param 2.
3252         (regno_clobbered_p): Likwise for param 2.
3253         (reload): Likewise for param 1.
3255         * caller-save.c (save_call_clobbered_regs): Strengthen local
3256         "insn" from rtx to rtx_insn *.
3257         (insert_one_insn): Likewise for local "insn".
3259         * reload.c (this_insn): Likewise for this global.
3260         (find_reloads): Likewise for param "insn".
3261         (find_reloads_toplev): Likewise.
3262         (find_reloads_address): Likewise.
3263         (subst_reg_equivs): Likewise.
3264         (update_auto_inc_notes): Likewise.
3265         (find_reloads_address_1): Likewise.
3266         (find_reloads_subreg_address): Likewise.
3267         (subst_reloads): Likewise.
3268         (find_equiv_reg): Likewise, also for local "p".
3269         (regno_clobbered_p): Likewise for param "insn".
3271         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3272         array.
3273         (spill_reg_store): Likewise for the elements of this array.
3274         (remove_init_insns): Likewise for local "equiv_insn".
3275         (will_delete_init_insn_p): Likewise for param "insn".
3276         (reload): Likewise for param ""first" and local "insn".
3277         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3278         rtx_insn *.
3279         (calculate_elim_costs_all_insns): Likewise.
3280         (delete_caller_save_insns): Likewise.
3281         (spill_failure): Likewise for param "insn".
3282         (delete_dead_insn): Likewise.
3283         (set_label_offsets): Likewise.
3284         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3285         "prev_insn".
3286         (elimination_costs_in_insn): Likewise for param "insn".
3287         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3288         when referring to an insn.
3289         (set_initial_label_offsets): Likewise.
3290         (set_offsets_for_label): Strengthen param "insn" from rtx to
3291         rtx_insn *.
3292         (init_eliminable_invariants): Likewise for param "first" and local
3293         "insn".
3294         (fixup_eh_region_note): Likewise for param "insn".
3295         (reload_as_needed): Likewise for locals "prev", "insn",
3296         "old_next", "old_prev", "next".
3297         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3298         "last".
3299         (reload_inheritance_insn): Strengthen elements of this array from
3300         rtx to rtx_insn *.
3301         (failed_reload): Likewise for param "insn".
3302         (choose_reload_regs): Likewise for local "insn".  Replace use of
3303         NULL_RTX with NULL when referring to an insn.
3304         (input_reload_insns): Strengthen elements of this array from rtx
3305         to rtx_insn *.
3306         (other_input_address_reload_insns): Likewise for this global.
3307         (other_input_reload_insns): Likewise for this global.
3308         (input_address_reload_insns): Likwise for the elements of this
3309         array.
3310         (inpaddr_address_reload_insns): Likwise for the elements of this
3311         array.
3312         (output_reload_insns): Likewise for the elements of this array.
3313         (output_address_reload_insns): Likewise for the elements of this
3314         array.
3315         (outaddr_address_reload_insns): Likewise for the elements of this
3316         array.
3317         (operand_reload_insns): Likewise for this global.
3318         (other_operand_reload_insns): Likewise for this global.
3319         (other_output_reload_insns): Likewise for the elements of this
3320         array.
3321         (new_spill_reg_store): Likewise for the elements of this
3322         array.
3323         (emit_input_reload_insns): Likewise for locals "insn", "temp".
3324         Strengthen local "where" from rtx * to rtx_insn **.
3325         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3326         from rtx to rtx_insn *.
3327         (do_input_reload): Likewise for local "insn".
3328         (do_output_reload): Likewise for local "insn".
3329         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3330         (emit_insn_if_valid_for_reload): Likewise for return type and local
3331         "last".  Add checked cast to rtx_insn when returning "insn" since
3332         this has been through emit_insn.
3333         (gen_reload): Strengthen return type and locals "last", "insn", "set"
3334         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
3335         returning "insn" since it's been through
3336         emit_insn_if_valid_for_reload at this point.
3337         (delete_output_reload): Strengthen param "insn" and locals
3338         "output_reload_insn", "i2" from rtx to rtx_insn *.
3339         (delete_address_reloads): Likewise for params "dead_insn",
3340         "current_insn" and locals "prev", "next".
3341         (delete_address_reloads_1): Likewise for params "dead_insn",
3342         "current_insn" and locals "prev", "i2".
3343         (inc_for_reload): Likewise for locals "last", "add_insn".
3344         (add_auto_inc_notes): Strengthen param "insn" from rtx to
3345         rtx_insn *.
3347         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3348         param of this duplicate of the prototype from reload.h
3350 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3352         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3353         rtx to rtx_insn *.
3354         (regstat_bb_compute_calls_crossed): Likewise.
3356 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3358         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3359         to rtx_insn *.
3360         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3361         with an insn.
3362         (regrename_analyze): Strengthen local "insn" from rtx to
3363         rtx_insn *.
3364         (scan_rtx_reg): Likewise for param "insn".
3365         (scan_rtx_address): Likewise.
3366         (scan_rtx): Likewise.
3367         (restore_operands): Likewise.
3368         (record_out_operands): Likewise.
3369         (build_def_use): Likewise for local "insn".  Replace use of
3370         NULL_RTX with NULL when dealing with an insn.
3372 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3374         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3375         * reginfo.c (reg_scan): Likewise, also for local "insn".
3376         (reg_scan_mark_refs): Likewise for param "insn".
3377         (init_subregs_of_mode): Likewise for local "insn".
3379 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3381         * regcprop.c (struct queued_debug_insn_change): Strengthen field
3382         "insn" from rtx to rtx_insn *.
3383         (replace_oldest_value_reg): Likewise for param "insn".
3384         (replace_oldest_value_addr): Likewise.
3385         (replace_oldest_value_mem): Likewise.
3386         (apply_debug_insn_changes): Likewise for local "last_insn".
3387         (copyprop_hardreg_forward_1): Likewise for local "insn".
3389 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3391         * reg-stack.c (next_flags_user): Strengthen return type and param
3392         "insn" from rtx to rtx_insn *.
3393         (straighten_stack): Likewise for param "insn".
3394         (check_asm_stack_operands): Likewise.
3395         (remove_regno_note): Likewise.
3396         (emit_pop_insn): Likewise for return type, param "insn", local
3397         "pop_insn".
3398         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
3399         "limit" from rtx to rtx_insn *.
3400         (swap_to_top): Likewise for param "insn".
3401         (move_for_stack_reg): Likewise.
3402         (move_nan_for_stack_reg): Likewise.
3403         (swap_rtx_condition): Likewise.
3404         (compare_for_stack_reg): Likewise.
3405         (subst_all_stack_regs_in_debug_insn): Likewise.
3406         (subst_stack_regs_pat): Likewise, and local "insn2".
3407         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3408         rtx_insn *.
3409         (subst_stack_regs): Likewise.
3410         (change_stack): Likewise.
3411         (convert_regs_1): Likewise for locals "insn", "next".
3413 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3415         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3416         rtx_insn *.
3417         (combine_set_extension): Likewise for param "curr_insn".
3418         (transform_ifelse): Likewise for param "def_insn".
3419         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
3420         from vec<rtx> * to vec<rtx_insn *> *.
3421         (is_cond_copy_insn): Likewise for param "insn".
3422         (struct ext_state): Strengthen the four vec fields from vec<rtx>
3423         to vec<rtx_insn *>.
3424         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3425         local "def_insn" from rtx to rtx_insn *.
3426         (get_sub_rtx): Likewise for param "def_insn".
3427         (merge_def_and_ext): Likewise.
3428         (combine_reaching_defs): Likewise.
3429         (add_removable_extension): Likewise for param "insn".
3430         (find_removable_extensions): Likewise for local "insn".
3431         (find_and_remove_re): Likewise for locals "curr_insn" and
3432         "def_insn".  Strengthen locals "reinsn_del_list" and
3433         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3435 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3437         * recog.c (split_insn): Strengthen param "insn" and locals
3438         "first", "last" from rtx to rtx_insn *.
3439         (split_all_insns): Likewise for locals "insn", "next".
3440         (split_all_insns_noflow): Likewise.
3442 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3444         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3445         const rtx_insn *.
3446         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3447         (debug_rtx_find): Likewise for param 1 "x".
3449         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3450         const_rtx to const rtx_insn *.  Likewise for local "insn".
3451         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3452         (debug_rtx_find): Likewise for param 1 "x".
3453         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3454         from const_rtx to const rtx_insn * within the appropriate cases of
3455         the switch statement.
3457         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3458         Strengthen local "insns" from rtx to rtx_insn * since this is
3459         passed to a call to debug_rtx_list.
3461 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3463         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3464         to rtx_insn *.
3466         * function.c (stack_protect_epilogue): Add checked cast to
3467         rtx_insn for now when invoking predict_insn_def.
3469         * predict.c (predict_insn): Strengthen param "insn" from rtx to
3470         rtx_insn *.
3471         (predict_insn_def): Likewise.
3472         (rtl_predict_edge): Likewise for local "last_insn".
3473         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3474         const rtx_insn *.
3475         (combine_predictions_for_insn): Strengthen param "insn" from rtx
3476         to rtx_insn *.
3477         (bb_estimate_probability_locally): Likewise for local "last_insn".
3478         (expensive_function_p): Likewise for local "insn".
3480         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3481         local "jmp", since this is used when invoking predict_insn_def.
3483 2014-08-22  Marek Polacek  <polacek@redhat.com>
3485         PR c++/62199
3486         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3488 2014-08-22  Marek Polacek  <polacek@redhat.com>
3490         PR c/61271
3491         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3492         a comparison in parens.
3493         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3494         in parens.
3496 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3498         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3499         rtx_insn *.
3501         * cprop.c (fis_get_condition): Likewise.
3503         * postreload.c (reload_cse_regs): Likewise for param "first".
3504         (reload_cse_simplify): Likewise for param "insn".
3505         (reload_cse_regs_1): Likewise for local "insn".
3506         (reload_cse_simplify_set): Likewise for param "insn".
3507         (reload_cse_simplify_operands): Likewise.
3508         (struct reg_use): Likewise for field "insn".
3509         (reload_combine_purge_insn_uses): Likewise for param "insn".
3510         (fixup_debug_insns): Likewise for params "from", "to" and local
3511         "insn".
3512         (try_replace_in_use): Likewise for local "use_insn".
3513         (reload_combine_recognize_const_pattern): Likewise for param
3514         "insn" and locals "add_moved_after_insn", "use_insn".
3515         (reload_combine_recognize_pattern): Likewise for param "insn" and
3516         local "prev".
3517         (reload_combine): Likewise for locals "insn", "prev".
3518         (reload_combine_note_use): Likewise for param "insn".
3519         (move2add_use_add2_insn): Likewise.
3520         (move2add_use_add3_insn): Likewise.
3521         (reload_cse_move2add): Likewise, also for local "next".
3522         (move2add_note_store): Likewise for local "insn".
3524 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3526         * postreload-gcse.c (struct occr): Strengthen field "insn" from
3527         rtx to rtx_insn *.
3528         (struct unoccr): Likewise.
3529         (struct modifies_mem): Likewise.
3530         (alloc_mem): Likewise for local "insn".
3531         (insert_expr_in_table): Likewise for param "insn".
3532         (dump_expr_hash_table_entry): Likewise for local "insn".
3533         (oprs_unchanged_p): Likewise for param "insn".
3534         (load_killed_in_block_p): Likewise for local "setter".
3535         (record_last_reg_set_info): Likewise for param "insn".
3536         (record_last_reg_set_info_regno): Likewise.
3537         (record_last_mem_set_info): Likewise.
3538         (record_last_set_info): Likewise for local "last_set_insn".
3539         (record_opr_changes): Likewise for param "insn".
3540         (hash_scan_set): Likewise.
3541         (compute_hash_table): Likewise for local "insn".
3542         (get_avail_load_store_reg): Likewise for param "insn".
3543         (eliminate_partially_redundant_load): Likewise, also for locals
3544         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
3545         RTX for insns.
3546         (eliminate_partially_redundant_loads): Likewise for local "insn".
3548 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3550         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3551         rtx to rtx_insn *.
3552         (expand_binop): Likewise for locals "entry_last", "last", "insns"
3553         (expand_twoval_unop): Likewise for locals entry_last", "last".
3554         (expand_twoval_binop): Likewise.
3555         (expand_twoval_binop_libfunc): Likewise for local "insns".
3556         (widen_leading): Likewise for local "last".
3557         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
3558         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3559         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3560         (expand_parity): Likewise for locals "last" and "seq".
3561         (expand_ffs): Likewise for local "seq".  Strengthen local
3562         "nonzero_label" from rtx to rtx_code_label *.
3563         (expand_absneg_bit): Strengthen local "insns" from rtx to
3564         rtx_insn *.
3565         (expand_unop_direct): Likewise for local "last".
3566         (expand_unop): Likewise for locals "last", "insns".
3567         (expand_abs_nojump): Likewise for local "last".
3568         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3569         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3570         rtx_insn *.
3571         (expand_copysign_absneg): Strengthen local "label" from rtx to
3572         rtx_code_label *.
3573         (expand_copysign_bit): Strengthen local "insns" from rtx to
3574         rtx_insn *.
3575         (struct no_conflict_data): Likewise for fields "first", "insn".
3576         (emit_libcall_block_1): Likewise for param "insns" and locals
3577         "next", "last", "insn".
3578         (emit_libcall_block): For now, add a checked cast to rtx_insn *
3579         on "insns" when invoking emit_libcall_block_1.  Ultimately we
3580         want to strengthen insns itself.
3581         (prepare_cmp_insn): Strengthen local "last" from rtx to
3582         rtx_insn *.
3583         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3584         (prepare_float_lib_cmp): Likewise for local "insns".
3585         (emit_conditional_move): Likewise for local "last".
3586         (emit_conditional_add): Likewise.
3587         (have_sub2_insn): Likewise for local "seq".
3588         (expand_float): Likewise for local "insns".  Strengthen locals
3589         "label", "neglabel" from rtx to rtx_code_label *.
3590         (expand_fix): Likewise for locals "last", "insn", "insns" (to
3591         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3592         (expand_fixed_convert): Likewise for local "insns" (to
3593         rtx_insn *).
3594         (expand_sfix_optab): Likewise for local "last".
3595         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3596         to rtx_code_label *.
3597         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3598         from rtx to rtx_insn *.
3599         (expand_atomic_fetch_op): Likewise for local "insn".
3600         (maybe_legitimize_operand_same_code): Likewise for local "last".
3601         (maybe_legitimize_operands): Likewise.
3603 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3605         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3606         "insn" from rtx to rtx_insn *.
3607         (ps_rtl_insn): Likewise for return type.
3608         (doloop_register_get): Likewise for params "head", "tail" and
3609         locals "insn", "first_insn_not_to_check".
3610         (schedule_reg_move): Likewise for local "this_insn".
3611         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3612         of gen_move_insn for now.
3613         (reset_sched_times): Strengthen local "insn" from rtx to
3614         rtx_insn *.
3615         (permute_partial_schedule): Likewise.
3616         (duplicate_insns_of_cycles): Likewise for local "u_insn".
3617         (dump_insn_location): Likewise for param "insn".
3618         (loop_canon_p): Likewise for local "insn".
3619         (sms_schedule): Likewise.
3620         (print_partial_schedule): Likewise.
3621         (ps_has_conflicts): Likewise.
3623 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3625         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3626         "tailp" from rtx * to rtx_insn **.
3628         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3629         from rtx to rtx_insn *.
3630         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3631         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
3632         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3633         rtx to rtx_insn *.
3634         * modulo-sched.c (const_iteration_count): Strengthen return type
3635         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
3636         use of NULL_RTX with NULL when working with insns.
3637         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3638         to rtx_insn *.
3639         (sms_schedule): Likewise.
3640         * sched-rgn.c (init_ready_list): Likewise, also for locals
3641         "src_head" and "src_next_tail".
3642         (compute_block_dependences): Likewise.
3643         (free_block_dependencies): Likewise.
3644         (debug_rgn_dependencies): Likewise.
3645         (free_rgn_deps): Likewise.
3646         (compute_priorities): Likewise.
3647         (schedule_region): Likewise.
3648         * sel-sched.c (find_ebb_boundaries): Likewise.
3650         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3651         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3653 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3655         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3656         from rtx to rtx_insn *.
3657         (new_seginfo): Likewise for param "insn".
3658         (create_pre_exit): Likewise for locals "last_insn",
3659         "before_return_copy", "return_copy".
3660         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3661         "mode_set".
3663 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3665         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3666         from rtx to rtx_insn *.
3667         (lra_push_insn): Likewise for 1st param.
3668         (lra_push_insn_and_update_insn_regno_info): Likewise.
3669         (lra_pop_insn): Likewise for return type.
3670         (lra_invalidate_insn_data): Likewise for 1st param.
3671         (lra_set_insn_deleted): Likewise.
3672         (lra_delete_dead_insn): Likewise.
3673         (lra_process_new_insns): Likewise for first 3 params.
3674         (lra_set_insn_recog_data): Likewise for 1st param.
3675         (lra_update_insn_recog_data): Likewise.
3676         (lra_set_used_insn_alternative): Likewise.
3677         (lra_invalidate_insn_regno_info): Likewise.
3678         (lra_update_insn_regno_info): Likewise.
3679         (lra_former_scratch_operand_p): Likewise.
3680         (lra_eliminate_regs_1): Likewise.
3681         (lra_get_insn_recog_data): Likewise.
3683         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3684         rtx to rtx_insn *.
3686         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3687         "mv1" and "mv2".
3688         (substitute_within_insn): New.
3689         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3690         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
3691         Replace call to "substitute" with call to substitute_within_insn.
3693         * lra-constraints.c (curr_insn): Strengthen from rtx to
3694         rtx_insn *.
3695         (get_equiv_with_elimination): Likewise for param "insn".
3696         (match_reload): Strengthen params "before" and "after" from rtx *
3697         to rtx_insn **.
3698         (emit_spill_move): Likewise for return type.  Add a checked cast
3699         to rtx_insn * on result of gen_move_insn for now.
3700         (check_and_process_move): Likewise for local "before".  Replace
3701         NULL_RTX with NULL when referring to insns.
3702         (process_addr_reg): Strengthen params "before" and "after" from
3703         rtx * to rtx_insn **.
3704         (insert_move_for_subreg): Likewise.
3705         (simplify_operand_subreg): Strengthen locals "before" and "after"
3706         from rtx to rtx_insn *.
3707         (process_address_1): Strengthen params "before" and "after" from
3708         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
3709         rtx to rtx_insn *.
3710         (process_address): Strengthen params "before" and "after" from
3711         rtx * to rtx_insn **.
3712         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3713         (curr_insn_transform): Strengthen locals "before" and "after"
3714         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
3715         to insns.
3716         (loc_equivalence_callback): Update cast of "data", changing
3717         resulting type from rtx to rtx_insn *.
3718         (substitute_pseudo_within_insn): New.
3719         (inherit_reload_reg): Strengthen param "insn" from rtx to
3720         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
3721         NULL when referring to insns.  Add a checked cast to rtx_insn *
3722         when using usage_insn to invoke lra_update_insn_regno_info.
3723         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3724         likewise for locals "restore", "save".  Add checked casts to
3725         rtx_insn * when using usage_insn to invoke
3726         lra_update_insn_regno_info and lra_process_new_insns.  Replace
3727         NULL_RTX with NULL when referring to insns.
3728         (split_if_necessary): Strengthen param "insn" from rtx to
3729         rtx_insn *.
3730         (update_ebb_live_info): Likewise for params "head", "tail" and local
3731         "prev_insn".
3732         (get_last_insertion_point): Likewise for return type and local "insn".
3733         (get_live_on_other_edges): Likewise for local "last".
3734         (inherit_in_ebb): Likewise for params "head", "tail" and locals
3735         "prev_insn", "next_insn", "restore".
3736         (remove_inheritance_pseudos): Likewise for local "prev_insn".
3737         (undo_optional_reloads): Likewise for local "insn".
3739         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3740         "insn".
3741         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3742         insns.
3743         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3744         rtx_insn *.
3745         (spill_pseudos): Likewise for local "insn".
3746         (init_elimination): Likewise.
3747         (process_insn_for_elimination): Likewise for param "insn".
3749         * lra-lives.c (curr_insn): Likewise.;
3751         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3752         (remove_pseudos): Likewise for param "insn".
3753         (spill_pseudos): Likewise for local "insn".
3754         (lra_final_code_change): Likewise for locals "insn", "curr".
3756         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3757         (lra_set_insn_deleted): Likewise.
3758         (lra_delete_dead_insn): Likewise, and for local "prev".
3759         (new_insn_reg): Likewise for param "insn".
3760         (lra_set_insn_recog_data): Likewise.
3761         (lra_update_insn_recog_data): Likewise.
3762         (lra_set_used_insn_alternative): Likewise.
3763         (get_insn_freq): Likewise.
3764         (invalidate_insn_data_regno_info): Likewise.
3765         (lra_invalidate_insn_regno_info): Likewise.
3766         (lra_update_insn_regno_info): Likewise.
3767         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3768         vec<rtx_insn *>.
3769         (lra_push_insn_1): Strengthen param "insn" from rtx to
3770         rtx_insn *.
3771         (lra_push_insn): Likewise.
3772         (lra_push_insn_and_update_insn_regno_info): Likewise.
3773         (lra_pop_insn): Likewise for return type and local "insn".
3774         (push_insns): Likewise for params "from", "to", and local "insn".
3775         (setup_sp_offset): Likewise for params "from", "last" and locals
3776         "before", "insn".
3777         (lra_process_new_insns): Likewise for params "insn", "before",
3778         "after" and local "last".
3779         (struct sloc): Likewise for field "insn".
3780         (lra_former_scratch_operand_p): Likewise for param "insn".
3781         (remove_scratches): Likewise for locals "insn", "last".
3782         (check_rtl): Likewise for local "insn".
3783         (add_auto_inc_notes): Likewise for param "insn".
3784         (update_inc_notes): Likewise for local "insn".
3785         (lra): Replace NULL_RTX with NULL when referring to insn.
3787 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3789         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3790         to rtx_insn *.
3791         (resolve_reg_notes): Likewise.
3792         (resolve_simple_move): Likewise for return type, param "insn", and
3793         locals "insns", "minsn".
3794         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3795         (resolve_use): Likewise.
3796         (resolve_debug): Likewise.
3797         (find_decomposable_shift_zext): Likewise.
3798         (resolve_shift_zext): Likewise for return type, param "insn", and
3799         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
3800         (decompose_multiword_subregs): Likewise for local "insn",
3801         "orig_insn", "decomposed_shift", "end".
3803 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3805         * basic-block.h (basic_block split_edge_and_insert): Strengthen
3806         param "insns" from rtx to rtx_insn *.
3808         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3809         rtx to rtx_insn *.
3810         (struct iv_to_split): Likewise.
3811         (loop_exit_at_end_p): Likewise for local "insn".
3812         (split_edge_and_insert): Likewise for param "insns".
3813         (compare_and_jump_seq): Likewise for return type, param "cinsn",
3814         and locals "seq", "jump".
3815         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3816         "branch_code"; update invocations of compare_and_jump_seq to
3817         eliminate NULL_RTX in favor of NULL.
3818         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3819         rtx to rtx_insn *.
3820         (reset_debug_uses_in_loop): Likewise.
3821         (analyze_insn_to_expand_var): Likewise for param "insn".
3822         (analyze_iv_to_split_insn): Likewise.
3823         (analyze_insns_in_loop): Likewise for local "insn".
3824         (insert_base_initialization): Likewise for param
3825         "insn" and local "seq".
3826         (split_iv): Likewise for param "insn" and local "seq".
3827         (expand_var_during_unrolling): Likewise for param "insn".
3828         (insert_var_expansion_initialization): Likewise for local "seq".
3829         (combine_var_copies_in_loop_exit): Likewise.
3830         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3831         "insn".
3832         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3833         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3834         "next".
3836 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3838         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3839         rtx_insn *.
3840         (iv_analyze_result): Likewise.
3841         (iv_analyze_expr): Likewise.
3842         (biv_p): Likewise.
3844         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3845         local "def_insn" from rtx to rtx_insn *.
3846         (get_biv_step_1): Likewise for local "insn".
3847         (iv_analyze_expr): Likewise for param "insn".
3848         (iv_analyze_def): Likewise for local "insn".
3849         (iv_analyze_op): Likewise for param "insn".
3850         (iv_analyze): Likewise.
3851         (iv_analyze_result): Likewise.
3852         (biv_p): Likewise.
3853         (suitable_set_for_replacement): Likewise.
3854         (simplify_using_initial_values): Likewise for local "insn".
3855         (iv_number_of_iterations): Likewise for param "insn".
3856         (check_simple_exit): Add checked cast to rtx_insn when invoking
3857         iv_number_of_iterations for now (until get_condition is
3858         strengthened).
3860         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3861         "insn" from rtx to rtx_insn *.
3862         (analyze_insns_in_loop): Likewise for local "insn".
3864 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3866         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3867         to rtx_insn *.
3868         (struct invariant): Likewise.
3869         (hash_invariant_expr_1): Likewise for param "insn".
3870         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3871         (find_exits): Likewise for local "insn".
3872         (create_new_invariant): Likewise for param "insn".
3873         (check_dependencies): Likewise.
3874         (find_invariant_insn): Likewise.
3875         (record_uses): Likewise.
3876         (find_invariants_insn): Likewise.
3877         (find_invariants_bb): Likewise for local "insn".
3878         (get_pressure_class_and_nregs): Likewise for param "insn".
3879         (calculate_loop_reg_pressure): Likewise for local "insn".
3881 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3883         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3884         to rtx_insn *.
3885         (add_test): Likewise for locals "seq", "jump".
3886         (doloop_modify): Likewise for locals "sequence", "jump_insn".
3888 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3890         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3891         rtx_insn *.
3892         (rebuild_jump_labels_chain): Likewise for param "chain".
3894         * cfgexpand.c (pass_expand::execute): Add checked cast to
3895         rtx_insn * when calling rebuild_jump_labels_chain in region where
3896         we know e->insns.r is non-NULL.
3898         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3899         rtx_insn *.
3900         (rebuild_jump_labels): Likewise.
3901         (rebuild_jump_labels_chain): Likewise for param "chain".
3902         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3903         (init_label_info): Likewise for param "f".
3904         (maybe_propagate_label_ref): Likewise for params "jump_insn",
3905         "prev_nonjump_insn".
3906         (mark_all_labels): Likewise for param "f" and locals "insn",
3907         "prev_nonjump_insn".
3909 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3911         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3912         from rtx to rtx_insn *insn.
3913         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3914         (ira_add_allocno_copy): Likewise.
3915         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3916         rtx to rtx_insn *.
3917         (ira_create_copy): Likewise.
3918         (ira_add_allocno_copy): Likewise.
3919         (create_bb_allocnos): Likewise for local "insn".
3920         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3921         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3922         process_regs_for_copy for rtx_insn * param.
3923         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3924         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
3925         process_regs_for_copy for rtx_insn * param.
3926         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3927         * ira-costs.c (record_reg_classes): Likewise for param "insn".
3928         (record_operand_costs): Likewise.
3929         (scan_one_insn): Likewise for return type, and for param "insn".
3930         (process_bb_for_costs): Likewise for local "insn".
3931         (process_bb_node_for_hard_reg_moves): Likewise.
3932         * ira-emit.c (struct move): Likewise for field "insn".
3933         (create_move): Eliminate use of NULL_RTX when dealing with an
3934         rtx_insn *.
3935         (emit_move_list): Strengthen return type and locals "result",
3936         "insn" from rtx to rtx_insn *insn.
3937         (emit_moves): Likewise for locals "insns", "tmp".
3938         (ira_emit): Likewise for local "insn".
3939         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3940         "insn".
3941         (find_call_crossed_cheap_reg): Likewise.
3942         (process_bb_node_lives): Likewise for local "insn".
3943         * ira.c (decrease_live_ranges_number): Likewise.
3944         (compute_regs_asm_clobbered): Likewise.
3945         (build_insn_chain): Likewise.
3946         (find_moveable_pseudos): Likewise, also locals "def_insn",
3947         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
3948         to rtx_insn **.  Add a checked cast when assigning from
3949         "closest_use" into closest_uses array in a region where we know
3950         it's a non-NULL insn.
3951         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3952         to rtx_insn *.
3953         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3954         "last_interesting_insn", "uin".
3955         (move_unallocated_pseudos): Likewise for locals "def_insn",
3956         "move_insn", "newinsn".
3958 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3960         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3961         Strengthen locals "done_label", "do_error" from rtx to
3962         rtx_code_label *.
3963         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3964         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
3965         rtx_code_label *.
3966         (ubsan_expand_si_overflow_neg_check): Likewise for locals
3967         "done_label", "do_error" to rtx_code_label * and local  "last" to
3968         rtx_insn *.
3969         (ubsan_expand_si_overflow_mul_check): Likewise for locals
3970         "done_label", "do_error", "large_op0", "small_op0_large_op1",
3971         "one_small_one_large", "both_ops_large", "after_hipart_neg",
3972         "after_lopart_neg", "do_overflow", "hipart_different"  to
3973         rtx_code_label * and local  "last" to rtx_insn *.
3975 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3977         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3978         "insn" and "move_insn" from rtx to rtx_insn *.
3980 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3982         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3983         rtx_insn *.
3984         (cheap_bb_rtx_cost_p): Likewise.
3985         (first_active_insn): Likewise for return type and local "insn".
3986         (last_active_insn):  Likewise for return type and locals "insn",
3987         "head".
3988         (struct noce_if_info): Likewise for fields "jump", "insn_a",
3989         "insn_b".
3990         (end_ifcvt_sequence): Likewise for return type and locals "insn",
3991         "seq".
3992         (noce_try_move): Likewise for local "seq".
3993         (noce_try_store_flag): Likewise.
3994         (noce_try_store_flag_constants): Likewise.
3995         (noce_try_addcc): Likewise.
3996         (noce_try_store_flag_mask): Likewise.
3997         (noce_try_cmove): Likewise.
3998         (noce_try_minmax): Likewise.
3999         (noce_try_abs): Likewise.
4000         (noce_try_sign_mask): Likewise.
4001         (noce_try_bitop): Likewise.
4002         (noce_can_store_speculate_p): Likewise for local "insn".
4003         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4004         seq".
4005         (check_cond_move_block): Likewise for local "insn".
4006         (cond_move_convert_if_block): Likewise.
4007         (cond_move_process_if_block): Likewise for locals "seq",
4008         "loc_insn".
4009         (noce_find_if_block): Likewise for local "jump".
4010         (merge_if_block): Likewise for local "last".
4011         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4012         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4013         (block_has_only_trap): Likewise for return type and local "trap".
4014         (find_if_case_1): Likewise for local "jump".
4015         (dead_or_predicable): Likewise for locals "head", "end", "jump",
4016         "insn".
4018 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4020         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4021         "last_insn", "loop_end" from rtx to rtx_insn *.
4023         * hw-doloop.c (scan_loop): Likewise for local "insn".
4024         (discover_loop): Likewise for param "tail_insn".
4025         (discover_loops): Likewise for local "tail".
4027         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4028         cast to rtx_insn * when assigning from an rtx local to a
4029         hwloop_info's "last_insn" field.
4031 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4033         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4034         (add_delay_dependencies): Strengthen local "pro" from rtx to
4035         rtx_insn *.
4036         (recompute_todo_spec): Likewise.
4037         (dep_cost_1): Likewise for locals "insn", "used".
4038         (schedule_insn): Likewise for local "dbg".
4039         (schedule_insn): Likewise for locals "pro", "next".
4040         (unschedule_insns_until): Likewise for local "con".
4041         (restore_pattern): Likewise for local "next".
4042         (estimate_insn_tick): Likewise for local "pro".
4043         (resolve_dependencies): Likewise for local "next".
4044         (fix_inter_tick): Likewise.
4045         (fix_tick_ready): Likewise for local "pro".
4046         (add_to_speculative_block): Likewise for locals "check", "twin",
4047         "pro".
4048         (sched_extend_bb): Likewise for locals "end", "insn".
4049         (init_before_recovery): Likewise for local "x".
4050         (sched_create_recovery_block): Likewise for local "barrier".
4051         (create_check_block_twin): Likewise for local "pro".
4052         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4053         "consumer".
4054         (unlink_bb_notes): Update for change to type of bb_header.
4055         Strengthen locals "prev", "label", "note", "next" from rtx to
4056         rtx_insn *.
4057         (clear_priorities): Likewise for local "pro".
4059 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4061         * gcse.c (struct occr): Strengthen field "insn" from rtx to
4062         rtx_insn *.
4063         (test_insn): Likewise for this global.
4064         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4065         const rtx_insn *.
4066         (oprs_anticipatable_p): Likewise.
4067         (oprs_available_p): Likewise.
4068         (insert_expr_in_table): Strengthen param "insn" from  rtx to
4069         rtx_insn *.
4070         (hash_scan_set): Likewise.
4071         (hash_scan_clobber): Likewise.
4072         (hash_scan_call): Likewise.
4073         (hash_scan_insn): Likewise.
4074         (compute_hash_table_work): Likewise for local "insn".
4075         (process_insert_insn): Likewise for return type and local "pat".
4076         (insert_insn_end_basic_block): Likewise for locals "new_insn",
4077         "pat", "pat_end", "maybe_cc0_setter".
4078         (pre_edge_insert): Likewise for local "insn".
4079         (pre_insert_copy_insn): Likewise for param "insn".
4080         (pre_insert_copies): Likewise for local "insn".
4081         (struct set_data): Likewise for field "insn".
4082         (single_set_gcse): Likewise for param "insn".
4083         (gcse_emit_move_after): Likewise.
4084         (pre_delete): Likewise for local "insn".
4085         (update_bb_reg_pressure): Likewise for param "from" and local
4086         "insn".
4087         (should_hoist_expr_to_dom): Likewise for param "from".
4088         (hoist_code): Likewise for local "insn".
4089         (get_pressure_class_and_nregs): Likewise for param "insn".
4090         (calculate_bb_reg_pressure): Likewise for local "insn".
4091         (compute_ld_motion_mems): Likewise.
4093 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4095         * genpeep.c (main): Rename param back from "uncast_ins1" to
4096         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
4097         checked cast.
4099         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4101 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
4103         PR target/62195
4104         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4105         documentation to state it is only for VSX operations.
4107         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4108         constraint only active if VSX.
4110         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4111         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4112         (lfiwzx): Likewise.
4114 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4116         * fwprop.c (single_def_use_dom_walker::before_dom_children):
4117         Strengthen local "insn" from rtx to rtx_insn *.
4118         (use_killed_between): Likewise for param "target_insn".
4119         (all_uses_available_at): Likewise for param "target_insn" and
4120         local "next".
4121         (update_df_init): Likewise for params "def_insn", "insn".
4122         (update_df): Likewise for param "insn".
4123         (try_fwprop_subst): Likewise for param "def_insn" and local
4124         "insn".
4125         (free_load_extend): Likewise for param "insn".
4126         (forward_propagate_subreg): Likewise for param "def_insn" and
4127         local "use_insn".
4128         (forward_propagate_asm): Likewise for param "def_insn" and local
4129         "use_insn".
4130         (forward_propagate_and_simplify): Likewise for param "def_insn"
4131         and local "use_insn".
4132         (forward_propagate_into): Likewise for locals "def_insn" and
4133         "use_insn".
4135 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4137         * function.c (emit_initial_value_sets): Strengthen local "seq"
4138         from rtx to rtx_insn *.
4139         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4140         local "seq".
4141         (instantiate_virtual_regs): Likewise for local "insn".
4142         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4143         (reorder_blocks_1): Likewise for param "insns" and local "insn".
4144         (expand_function_end): Likewise for locals "insn" and "seq".
4145         (epilogue_done): Likewise for local "insn".
4146         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4147         "last", "trial".
4148         (reposition_prologue_and_epilogue_notes): Likewise for locals
4149         "insn", "last", "note", "first".
4150         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4151         (pass_match_asm_constraints::execute): Likewise for local "insn".
4153 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4155         * output.h (final_scan_insn): Strengthen return type from rtx to
4156         rtx_insn *.
4157         (final_forward_branch_p): Likewise for param.
4158         (current_output_insn): Likewise for this global.
4160         * final.c (rtx debug_insn): Likewise for this variable.
4161         (current_output_insn): Likewise.
4162         (get_attr_length_1): Rename param "insn" to "uncast_insn",
4163         adding "insn" back in as an rtx_insn * with a checked cast, so
4164         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4165         first param.
4166         (compute_alignments): Strengthen local "label" from rtx to
4167         rtx_insn *.
4168         (shorten_branches): Rename param from "first" to "uncast_first",
4169         introducing a new local rtx_insn * "first" using a checked cast to
4170         effectively strengthen "first" from rtx to rtx_insn * without
4171         affecting the type signature.  Strengthen locals "insn", "seq",
4172         "next", "label" from rtx to rtx_insn *.
4173         (change_scope): Strengthen param "orig_insn" and local "insn" from
4174         rtx to rtx_insn *.
4175         (final_start_function): Rename param from "first" to "uncast_first",
4176         introducing a new local rtx_insn * "first" using a checked cast to
4177         effectively strengthen "first" from rtx to rtx_insn * without
4178         affecting the type signature.  Strengthen local "insn" from rtx to
4179         rtx_insn *.
4180         (dump_basic_block_info): Strengthen param "insn" from rtx to
4181         rtx_insn *.
4182         (final): Rename param from "first" to "uncast_first",
4183         introducing a new local rtx_insn * "first" using a checked cast to
4184         effectively strengthen "first" from rtx to rtx_insn * without
4185         affecting the type signature.  Strengthen locals "insn", "next"
4186         from rtx to rtx_insn *.
4187         (output_alternate_entry_point): Strengthen param "insn" from rtx to
4188         rtx_insn *.
4189         (call_from_call_insn): Strengthen param "insn" from rtx to
4190         rtx_call_insn *.
4191         (final_scan_insn): Rename param from "insn" to "uncast_insn",
4192         introducing a new local rtx_insn * "insn" using a checked cast to
4193         effectively strengthen "insn" from rtx to rtx_insn * without
4194         affecting the type signature.  Strengthen return type and locals
4195         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
4196         now-redundant checked cast to rtx_insn * from both invocations of
4197         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
4198         introducing a local "call_insn" for use when invoking
4199         call_from_call_insn.
4200         (notice_source_line): Strengthen param "insn" from rtx to
4201         rtx_insn *.
4202         (leaf_function_p): Likewise for local "insn".
4203         (final_forward_branch_p): Likewise.
4204         (leaf_renumber_regs): Likewise for param "first".
4205         (rest_of_clean_state): Likewise for locals "insn" and "next".
4206         (self_recursive_call_p): Likewise for param "insn".
4207         (collect_fn_hard_reg_usage): Likewise for local "insn".
4208         (get_call_fndecl): Likewise for param "insn".
4209         (get_call_cgraph_rtl_info): Likewise.
4210         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4211         introducing a new local rtx_insn * "insn" using a checked cast to
4212         effectively strengthen "insn" from rtx to rtx_insn * without
4213         affecting the type signature.
4215         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4216         cast when assigning from param "insn" to current_output_insn.
4217         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4218         so that we can assign it back to current_output_insn.
4220 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4222         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4223         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4224         atmxt540s and atmxt540sreva devices.
4225         * config/avr/avr-tables.opt: Regenerate.
4226         * config/avr/t-multilib: Regenerate.
4227         * doc/avr-mmcu.texi: Regenerate.
4229 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4231         * expr.c (convert_move): Strengthen local "insns" from rtx to
4232         rtx_insn *.
4233         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4234         "top_label" from rtx to rtx_code_label *.
4235         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4236         rtx_insn *.
4237         (emit_single_push_insn): Likewise for locals "prev", "last".
4238         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4239         to rtx_code_label *.
4240         (store_constructor): Likewise for locals "loop_start", "loop_end".
4241         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4242         rtx_insn *.
4243         (expand_expr_real_2): Likewise.
4244         (expand_expr_real_1): Strengthen local "label" from rtx to
4245         rtx_code_label *.
4247 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4249         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4250         from rtx to rtx_insn *.
4251         (store_bit_field_1): Likewise.
4252         (extract_bit_field_1): Likewise.
4253         (expand_mult_const): Likewise for local "insns".
4254         (expmed_mult_highpart): Strengthen local "label" from rtx to
4255         rtx_code_label *.
4256         (expand_smod_pow2): Likewise.
4257         (expand_sdiv_pow2): Likewise.
4258         (expand_divmod): Strengthen locals "last", "insn" from rtx to
4259         rtx_insn *.  Strengthen locals "label", "label1", "label2",
4260         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4261         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4262         (emit_store_flag): Likewise.
4263         (emit_store_flag_force): Strengthen local "label" from rtx to
4264         rtx_code_label *.
4265         (do_cmp_and_jump): Likewise for param "label".
4267 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4269         * explow.c (force_reg): Strengthen local "insn" from rtx to
4270         rtx_insn *.
4271         (adjust_stack_1): Likewise.
4272         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
4273         "final_label", "available_label", "space_available" from rtx to
4274         rtx_code_label *.
4275         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4276         (anti_adjust_stack_and_probe): Likewise.
4278 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4280         * except.h (sjlj_emit_function_exit_after): Strengthen param
4281         "after" from rtx to rtx_insn *.  This is only called with
4282         result of get_last_insn (in function.c) so type-change should be
4283         self-contained.
4285         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4286         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4287         to rtx_insn *.  These fields are only used from except.c so this
4288         type-change should be self-contained to this patch.
4290         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4291         local "last" from rtx to rtx_insn *.
4292         (dw2_build_landing_pads): Likewise for local "seq".
4293         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4294         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4295         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
4296         rtx to rtx_insn *.
4297         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4298         to rtx_insn *.
4299         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4300         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4301         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4302         referring to an insn.  Strengthen local "dispatch_label" from
4303         rtx to rtx_code_label *.
4304         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4305         rtx_insn *.
4306         (expand_eh_return): Strengthen local "around_label" from
4307         rtx to rtx_code_label *.
4308         (convert_to_eh_region_ranges): Strengthen locals "iter",
4309         "last_action_insn", "first_no_action_insn",
4310         "first_no_action_insn_before_switch",
4311         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4313 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4315         * dwarf2out.c (last_var_location_insn): Strengthen this variable
4316         from rtx to rtx_insn *.
4317         (cached_next_real_insn): Likewise.
4318         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4319         working with insns.
4320         (dwarf2out_var_location): Strengthen locals "next_real",
4321         "next_note", "expected_next_loc_note", "last_start", "insn" from
4322         rtx to rtx_insn *.
4324 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4326         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4327         from rtx to rtx_insn *.
4328         (create_pseudo_cfg): Likewise for local "insn".
4330 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4332         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4333         from rtx to rtx_insn *.
4334         (df_bb_regno_last_def_find): Likewise.
4336         * df-problems.c (df_rd_bb_local_compute): Likewise.
4337         (df_lr_bb_local_compute): Likewise.
4338         (df_live_bb_local_compute): Likewise.
4339         (df_chain_remove_problem): Likewise.
4340         (df_chain_create_bb): Likewise.
4341         (df_word_lr_bb_local_compute): Likewise.
4342         (df_remove_dead_eq_notes): Likewise for param "insn".
4343         (df_note_bb_compute): Likewise for local "insn".
4344         (simulate_backwards_to_point): Likewise.
4345         (df_md_bb_local_compute): Likewise.
4347         * df-scan.c (df_scan_free_bb_info): Likewise.
4348         (df_scan_start_dump): Likewise.
4349         (df_scan_start_block): Likewise.
4350         (df_install_ref_incremental): Likewise for local "insn".
4351         (df_insn_rescan_all): Likewise.
4352         (df_reorganize_refs_by_reg_by_insn): Likewise.
4353         (df_reorganize_refs_by_insn_bb): Likewise.
4354         (df_recompute_luids): Likewise.
4355         (df_bb_refs_record): Likewise.
4356         (df_update_entry_exit_and_calls): Likewise.
4357         (df_bb_verify): Likewise.
4359 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4361         * ddg.h (struct ddg_node): Strengthen fields "insn" and
4362         "first_note" from rtx to rtx_insn *.
4363         (get_node_of_insn): Likewise for param 2 "insn".
4364         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4366         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4367         rtx_insn *.
4368         (mem_write_insn_p): Likewise.
4369         (mem_access_insn_p): Likewise.
4370         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4371         (def_has_ccmode_p): Likewise for param "insn".
4372         (add_cross_iteration_register_deps): Likewise for locals
4373         "def_insn" and "use_insn".
4374         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4375         (build_intra_loop_deps): Likewise for local "src_insn".
4376         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4377         to rtx_insn *.
4378         (get_node_of_insn): Likewise for param "insn".
4380 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4382         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4383         (deletable_insn_p): Strengthen param "insn" from rtx to
4384         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
4385         find_call_stack_args, since this is guarded by CALL_P (insn).
4386         (marked_insn_p): Strengthen param "insn" from rtx to
4387         rtx_insn *.
4388         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
4389         invoking find_call_stack_args, since this is guarded by
4390         CALL_P (insn).
4391         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4392         rtx_insn *; we know this is an insn since this was called by
4393         mark_nonreg_stores.
4394         (mark_nonreg_stores_2): Likewise.
4395         (mark_nonreg_stores): Strengthen param "insn" from rtx to
4396         rtx_insn *.
4397         (find_call_stack_args): Strengthen param "call_insn" from rtx to
4398         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4399         to rtx_insn *.
4400         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4401         from rtx to rtx_insn *.
4402         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4403         "next", "ref_insn".
4404         (delete_unmarked_insns): Likewise for locals "insn", "next".
4405         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4406         (mark_reg_dependencies): Likewise for param "insn".
4407         (rest_of_handle_ud_dce): Likewise for local "insn".
4408         (word_dce_process_block): Likewise.
4409         (dce_process_block): Likewise.
4411 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4413         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4414         from rtx to rtx_insn *.
4415         (struct change_cc_mode_args): Likewise for field "insn".
4416         (this_insn): Strengthen from rtx to rtx_insn *.
4417         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4418         with insn.
4419         (validate_canon_reg): Strengthen param "insn" from rtx to
4420         rtx_insn *.
4421         (canon_reg): Likewise.
4422         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
4423         dealing with insn.
4424         (record_jump_equiv): Strengthen param "insn" from rtx to
4425         rtx_insn *.
4426         (try_back_substitute_reg): Likewise, also for locals "prev",
4427         "bb_head".
4428         (find_sets_in_insn): Likewise for param "insn".
4429         (canonicalize_insn): Likewise.
4430         (cse_insn): Likewise.  Add a checked cast.
4431         (invalidate_from_clobbers): Likewise for param "insn".
4432         (invalidate_from_sets_and_clobbers): Likewise.
4433         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4434         dealing with insn.
4435         (cse_prescan_path): Strengthen local "insn" from rtx to
4436         rtx_insn *.
4437         (cse_extended_basic_block): Likewise for locals "insn" and
4438         "prev_insn".
4439         (cse_main): Likewise for param "f".
4440         (check_for_label_ref): Likewise for local "insn".
4441         (set_live_p): Likewise for second param ("insn").
4442         (insn_live_p): Likewise for first param ("insn") and for local
4443         "next".
4444         (cse_change_cc_mode_insn): Likewise for first param "insn".
4445         (cse_change_cc_mode_insns): Likewise for first and second params
4446         "start" and "end".
4447         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4448         and "end".
4449         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4450         "cc_src_insn".
4452 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4453             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4454             Anna Tikhonova  <anna.tikhonova@intel.com>
4455             Ilya Tocar  <ilya.tocar@intel.com>
4456             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4457             Ilya Verbin  <ilya.verbin@intel.com>
4458             Kirill Yukhin  <kirill.yukhin@intel.com>
4459             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4461         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4462         New.
4463         * config/i386/sse.md
4464         (define_mode_iterator VI248_AVX2): Delete.
4465         (define_mode_iterator VI2_AVX2_AVX512BW): New.
4466         (define_mode_iterator VI48_AVX2): Ditto.
4467         (define_insn <shift_insn><mode>3): Delete.
4468         (define_insn "<shift_insn><mode>3<mask_name>" with
4469         VI2_AVX2_AVX512BW): New.
4470         (define_insn "<shift_insn><mode>3<mask_name>" with
4471         VI48_AVX2): Ditto.
4473 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4474             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4475             Anna Tikhonova  <anna.tikhonova@intel.com>
4476             Ilya Tocar  <ilya.tocar@intel.com>
4477             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4478             Ilya Verbin  <ilya.verbin@intel.com>
4479             Kirill Yukhin  <kirill.yukhin@intel.com>
4480             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4482         * config/i386/sse.md
4483         (define_mode_iterator VI4F_BRCST32x2): New.
4484         (define_mode_attr 64x2_mode): Ditto.
4485         (define_mode_attr 32x2mode): Ditto.
4486         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4487         with VI4F_BRCST32x2): Ditto.
4488         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4489         with V16FI mode iterator): Ditto.
4490         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4491         with V16FI): Ditto.
4492         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4493         with VI8F_BRCST64x2): Ditto.
4495 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4496             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4497             Anna Tikhonova  <anna.tikhonova@intel.com>
4498             Ilya Tocar  <ilya.tocar@intel.com>
4499             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4500             Ilya Verbin  <ilya.verbin@intel.com>
4501             Kirill Yukhin  <kirill.yukhin@intel.com>
4502             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4504         * config/i386/sse.md
4505         (define_mode_iterator VI8_AVX512VL): New.
4506         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4508 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4510         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4511         (define_mode_iterator V48_AVX512VL): New.
4512         (define_mode_iterator V12_AVX512VL): Ditto.
4513         (define_insn <avx512>_load<mode>_mask): Split into two similar
4514         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4515         Refactor output template.
4516         (define_insn "<avx512>_store<mode>_mask"): Ditto.
4518 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4520         * cprop.c (struct occr): Strengthen field "insn" from rtx to
4521         rtx_insn *.
4522         (reg_available_p): Likewise for param "insn".
4523         (insert_set_in_table): Likewise.
4524         (hash_scan_set): Likewise.
4525         (hash_scan_insn): Likewise.
4526         (make_set_regs_unavailable): Likewise.
4527         (compute_hash_table_work): Likewise for local "insn".
4528         (reg_not_set_p): Strengthen param "insn" from const_rtx to
4529         const rtx_insn *.
4530         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4531         (try_replace_reg): Likewise.
4532         (find_avail_set): Likewise.
4533         (cprop_jump): Likewise for params "setcc", "jump".
4534         (constprop_register): Likewise for param "insn".
4535         (cprop_insn): Likewise.
4536         (do_local_cprop): Likewise.
4537         (local_cprop_pass): Likewise for local "insn".
4538         (bypass_block): Likewise for params "setcc" and "jump".
4539         (bypass_conditional_jumps): Likewise for locals "setcc" and
4540         "insn".
4541         (one_cprop_pass): Likewise for local "insn".
4543 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4545         * compare-elim.c (struct comparison_use): Strengthen field "insn"
4546         from rtx to rtx_insn *.
4547         (struct comparison): Likewise, also for field "prev_clobber".
4548         (conforming_compare): Likewise for param "insn".
4549         (arithmetic_flags_clobber_p): Likewise.
4550         (find_flags_uses_in_insn): Likewise.
4551         (find_comparison_dom_walker::before_dom_children): Likewise for
4552         locals "insn", "next", "last_clobber".
4553         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4555 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4557         * combine-stack-adj.c (struct csa_reflist): Strengthen field
4558         "insn" from rtx to rtx_insn *.
4559         (single_set_for_csa): Likewise for param "insn".
4560         (record_one_stack_ref): Likewise.
4561         (try_apply_stack_adjustment): Likewise.
4562         (struct record_stack_refs_data): Likewise for field "insn".
4563         (maybe_move_args_size_note): Likewise for params "last" and "insn".
4564         (prev_active_insn_bb): Likewise for return type and param "insn".
4565         (next_active_insn_bb): Likewise.
4566         (force_move_args_size_note): Likewise for params "prev" and "last"
4567         and locals "test", "next_candidate", "prev_candidate".
4568         (combine_stack_adjustments_for_block): Strengthen locals
4569         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4570         rtx_insn *.
4572 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4574         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4575         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4576         (subst_insn): Likewise for this variable.
4577         (added_links_insn): Likewise.
4578         (struct insn_link): Likewise for field "insn".
4579         (alloc_insn_link): Likewise for param "insn".
4580         (struct undobuf): Likewise for field "other_insn".
4581         (find_single_use): Likewise for param "insn" and local "next".
4582         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4583         (delete_noop_moves): Likewise for locals "insn", "next".
4584         (create_log_links): Likewise for locals "insn", "use_insn".
4585         Strengthen local "next_use" from rtx * to rtx_insn **.
4586         (insn_a_feeds_b): Likewise for params "a", "b".
4587         (combine_instructions): Likewise for param "f" and locals "insn",
4588         "next", "prev", "first", "last_combined_insn", "link", "link1",
4589         "temp".  Replace use of NULL_RTX with NULL when referring to
4590         insns.
4591         (setup_incoming_promotions): Likewise for param "first"
4592         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4593         (can_combine_p): Likewise for params "insn", "i3", "pred",
4594         "pred2", "succ", "succ2" and for local "p".
4595         (combinable_i3pat): Likewise for param "i3".
4596         (cant_combine_insn_p): Likewise for param "insn".
4597         (likely_spilled_retval_p): Likewise.
4598         (adjust_for_new_dest): Likewise.
4599         (update_cfg_for_uncondjump): Likewise, also for local "insn".
4600         (try_combine): Likewise for return type and for params "i3", "i2",
4601         "i1", "i0", "last_combined_insn", and for locals "insn",
4602         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4603         "i0_insn".  Eliminate local "tem" in favor of new locals
4604         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
4605         checked cast for now to rtx_insn * on the return type of
4606         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
4607         insns.
4608         (find_split_point): Strengthen param "insn" from rtx to
4609         rtx_insn *.
4610         (simplify_set): Likewise for local "other_insn".
4611         (recog_for_combine): Likewise for param "insn".
4612         (record_value_for_reg): Likewise.
4613         (record_dead_and_set_regs_1): Likewise for local
4614         "record_dead_insn".
4615         (record_dead_and_set_regs): Likewise for param "insn".
4616         (record_promoted_value): Likewise.
4617         (check_promoted_subreg): Likewise.
4618         (get_last_value_validate): Likewise.
4619         (reg_dead_at_p): Likewise.
4620         (move_deaths): Likewise for param "to_insn".
4621         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4622         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
4623         in favor of new locals "tem_note" and "tem_insn", the latter being
4624         an rtx_insn *.
4625         (distribute_links): Strengthen locals "place", "insn" from rtx to
4626         rtx_insn *.
4628 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4630         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4631         than a const_rtx.
4632         (can_delete_label_p): Require a const rtx_code_label * rather than
4633         a const_rtx.
4634         (delete_insn): Add checked cast to rtx_code_label * when we know
4635         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
4636         rtx to rtx_insn *.
4637         (delete_insn_chain): Strengthen locals "prev" and "current" from
4638         rtx to rtx_insn *.  Add a checked cast when assigning from
4639         "finish" (strengthening the params will come later).  Add a
4640         checked cast to rtx_note * in region where we know
4641         NOTE_P (current).
4642         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4643         rtx_insn *.
4644         (compute_bb_for_insn): Likewise.
4645         (free_bb_for_insn): Likewise for local "insn".
4646         (compute_bb_for_insn): Likewise.
4647         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4648         local "insn" from rtx to rtx_insn *
4649         (flow_active_insn_p): Require a const rtx_insn * rather than a
4650         const_rtx.
4651         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4652         rtx_insn *.
4653         (can_fallthru): Likewise for locals "insn" and "insn2".
4654         (bb_note): Likewise for local "note".
4655         (first_insn_after_basic_block_note): Likewise for local "note" and
4656         for return type.
4657         (rtl_split_block): Likewise for locals "insn" and "next".
4658         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4659         "end".
4660         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4661         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4662         "prev", "tmp".
4663         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4664         them), "kill_from", "barrier", "new_insn".
4665         (patch_jump_insn): Likewise for params "insn", "old_label".
4666         (redirect_branch_edge): Likewise for locals "old_label", "insn".
4667         (force_nonfallthru_and_redirect): Likewise for locals "insn",
4668         "old_label", "new_label".
4669         (rtl_tidy_fallthru_edge): Likewise for local "q".
4670         (rtl_split_edge): Likewise for locals "before", "last".
4671         (commit_one_edge_insertion): Likewise for locals "before",
4672         "after", "insns", "tmp", "last", adding a checked cast where
4673         currently necessary.
4674         (commit_edge_insertions): Likewise.
4675         (rtl_dump_bb): Likewise for locals "insn", "last".
4676         (print_rtl_with_bb): Likewise for local "x".
4677         (rtl_verify_bb_insns): Likewise for local "x".
4678         (rtl_verify_bb_pointers): Likewise for local "insn".
4679         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4680         "head", "end".
4681         (rtl_verify_fallthru): Likewise for local "insn".
4682         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4683         (purge_dead_edges): Likewise for local "insn".
4684         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4685         (skip_insns_after_block): Likewise for return type and for locals
4686         "insn", "last_insn", "next_head", "prev".
4687         (record_effective_endpoints): Likewise for locals "next_insn",
4688         "insn", "end".
4689         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4690         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4691         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4692         (duplicate_insn_chain): For now, add checked cast from rtx to
4693         rtx_insn * when returning insn.
4694         (cfg_layout_duplicate_bb): Likewise for local "insn".
4695         (cfg_layout_delete_block): Likewise for locals "insn", "next",
4696         "prev", "remaints".
4697         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4698         (rtl_block_empty_p): Likewise.
4699         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4700         "split_point", "last".
4701         (rtl_block_ends_with_call_p): Likewise for local "insn".
4702         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4703         const rtx_insn *.
4704         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4705         "split_at_insn" from rtx to rtx_insn *.
4706         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4707         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4708         to const rtx_insn *.
4709         (rtl_account_profile_record): Likewise.
4711 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4713         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4714         rtx to rtx_insn *.
4715         (average_num_loop_insns): Likewise.
4716         (init_set_costs): Likewise for local "seq".
4717         (seq_cost): Likewise for param "seq", from const_rtx to const
4718         rtx_insn *.
4720 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4722         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4723         rtx to rtx_insn *.
4725 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4727         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4728         "f1" and "f2" from rtx * to rtx_insn **.
4729         (flow_find_head_matching_sequence): Likewise.
4731         * cfgcleanup.c (try_simplify_condjump): Strengthen local
4732         "cbranch_insn" from rtx to rtx_insn *.
4733         (thread_jump): Likewise for local "insn".
4734         (try_forward_edges): Likewise for local "last".
4735         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4736         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4737         "real_b_end".
4738         (can_replace_by): Likewise for params "i1", "i2".
4739         (old_insns_match_p): Likewise.
4740         (merge_notes): Likewise.
4741         (walk_to_nondebug_insn): Likewise for param "i1".
4742         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4743         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
4744         "afterlast1", "afterlast2" from rtx to rtx_insn *.
4745         (flow_find_head_matching_sequence): Strengthen params "f1" and
4746         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
4747         "last1", "last2", "beforelast1", "beforelast2" from rtx to
4748         rtx_insn *.
4749         (outgoing_edges_match): Likewise for locals "last1", "last2".
4750         (try_crossjump_to_edge): Likewise for local "insn".
4751         Replace call to for_each_rtx with for_each_rtx_in_insn.
4753         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4754         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4755         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
4756         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4757         (try_optimize_cfg): Strengthen local "last" from rtx to
4758         rtx_insn *.
4759         (delete_dead_jumptables): Likewise for locals "insn", "next",
4760         "label".
4762         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4763         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4764         "rtx else_first_tail", to reflect the basic-block.h changes above.
4766 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4768         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4769         rtx_insn *.
4770         (purge_dead_tablejump_edges): Likewise.
4771         (find_bb_boundaries): Likewise for locals "insn", "end",
4772         "flow_transfer_insn".
4774 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4776         * caller-save.c (save_call_clobbered_regs): Strengthen locals
4777         "ins" and "prev" from rtx to rtx_insn *.
4779 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4781         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4782         rtx_insn *.
4783         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4784         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4785         "scan_start".
4786         (load_register_parameters): Likewise for local "before_arg".
4787         (check_sibcall_argument_overlap): Likewise for param "insn".
4788         (expand_call): Likewise for locals "normal_call_insns",
4789         "tail_call_insns", "insns", "before_call", "after_args",
4790         "before_arg", "last", "prev".  Strengthen one of the "last" from
4791         rtx to rtx_call_insn *.
4792         (fixup_tail_calls): Strengthen local "insn" from rtx to
4793         rtx_insn *.
4794         (emit_library_call_value_1): Likewise for locals "before_call" and
4795         "last".
4797 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4799         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4800         and "last" from rtx to rtx_insn *.
4801         (expand_builtin_nonlocal_goto): Likewise for local "insn".
4802         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4803         rtx_call_insn *.
4804         (expand_errno_check): Strengthen local "lab" from rtx to
4805         rtx_code_label *.
4806         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4807         rtx_insn *.
4808         (expand_builtin_mathfn_2): Likewise.
4809         (expand_builtin_mathfn_ternary): Likewise.
4810         (expand_builtin_mathfn_3): Likewise.
4811         (expand_builtin_interclass_mathfn): Likewise for local "last".
4812         (expand_builtin_int_roundingfn): Likewise for local "insns".
4813         (expand_builtin_int_roundingfn_2): Likewise.
4814         (expand_builtin_strlen): Likewise for local "before_strlen".
4815         (expand_builtin_strncmp): Likewise for local "seq".
4816         (expand_builtin_signbit): Likewise for local "last".
4817         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4818         from rtx to rtx_code_label *.
4819         (expand_stack_restore):  Strengthen local "prev" from rtx to
4820         rtx_insn *.
4822 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4824         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4825         to rtx_insn *.
4826         (struct btr_def_s): Likewise.
4827         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4828         const rtx_insn *.
4829         (add_btr_def): Likewise.
4830         (new_btr_user): Likewise.
4831         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4832         rtx to rtx_insn *.
4833         (link_btr_uses): Likewise.
4834         (move_btr_def): Likewise for locals "insp", "old_insn",
4835         "new_insn".  Add checked cast to rtx_insn * for now on result of
4836         gen_move_insn.
4837         (can_move_up): Strengthen param "insn" from const_rtx to
4838         const rtx_insn *.
4840 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4842         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4843         rtx_insn *.
4844         (get_uncond_jump_length): Likewise for locals "label", "jump".
4845         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4846         "jump", "insn".
4847         (add_labels_and_missing_jumps): Likewise for local "new_jump".
4848         (fix_up_fall_thru_edges): Likewise for local "old_jump".
4849         (find_jump_block): Likewise for local "insn".
4850         (fix_crossing_conditional_branches): Likewise for locals
4851         "old_jump", "new_jump".
4852         (fix_crossing_unconditional_branches): Likewise for locals
4853         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4854         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4856 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4858         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4859         rtx to rtx_insn *.
4860         (struct mem_insn): Likewise for field "insn".
4861         (reg_next_use): Strengthen from rtx * to rtx_insn **.
4862         (reg_next_inc_use): Likewise.
4863         (reg_next_def): Likewise.
4864         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4865         from rtx to rtx_insn *.
4866         (move_insn_before): Likewise for param "next_insn" and local "insns".
4867         (attempt_change): Likewise for local "mov_insn".
4868         (try_merge): Likewise for param "last_insn".
4869         (get_next_ref): Likewise for return type and local "insn".
4870         Strengthen param "next_array" from rtx * to rtx_insn **.
4871         (parse_add_or_inc): Strengthen param "insn" from rtx to
4872         rtx_insn *.
4873         (find_inc): Likewise for locals "insn" and "other_insn" (three of
4874         the latter).
4875         (merge_in_block): Likewise for locals "insn", "curr",
4876         "other_insn".
4877         (pass_inc_dec::execute): Update allocations of the arrays to
4878         reflect the stronger types.
4880 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4882         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4883         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
4884         from rtx to rtx_code_label *.
4886 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4888         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4889         to rtx_insn *.
4891 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
4893         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4894         generated a warning and prevented bootstrapping the compiler.
4896 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4898         * rtl.h (delete_related_insns): Strengthen return type from rtx to
4899         rtx_insn *.
4901         * jump.c (delete_related_insns): Likewise, also for locals "next"
4902         and "prev".
4904 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4906         * genautomata.c (output_internal_insn_latency_func): When writing
4907         the function "internal_insn_latency" to insn-automata.c,
4908         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4909         allowing the optional guard function of (define_bypass) clauses to
4910         expect a pair of rtx_insn *, rather than a pair of rtx.
4911         (output_insn_latency_func): When writing the function
4912         "insn_latency", add an "uncast_" prefix to params "insn" and
4913         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4914         using checked casts from the params, thus enabling the above
4915         change to the generated "internal_insn_latency" function.
4917 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
4919         PR tree-optimization/62091
4920         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4921         handle correctly arrays.
4922         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4923         inheritance binfos.
4924         (record_known_type): Walk into inner type.
4925         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4926         condition on no type changes.
4928 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4930         * genattrtab.c (write_attr_get): Within the generated get_attr_
4931         functions, rename param "insn" to "uncast_insn" and reintroduce
4932         "insn" as an local rtx_insn * using a checked cast, so that "insn"
4933         is an rtx_insn * within insn-attrtab.c
4935 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4937         * output.h (peephole): Strengthen return type from rtx to
4938         rtx_insn *.
4939         * rtl.h (delete_for_peephole): Likewise for both params.
4940         * genpeep.c (main): In generated "peephole" function, strengthen
4941         return type and local "insn" from rtx to rtx_insn *.  For now,
4942         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4943         rtx_insn *, with a checked cast.
4944         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4945         locals "insn", "next", "prev" from rtx to rtx_insn *.
4947 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
4949         PR tree-optimization/62112
4950         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4951         * gimple-iterator.h (gsi_replace): Return bool.
4952         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4953         moved from ref_may_alias_global_p.
4954         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4955         New overloads.
4956         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4957         (stmt_kills_ref_p_1): Rename...
4958         (stmt_kills_ref_p): ... to this.
4959         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4960         stmt_kills_ref_p): Declare.
4961         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4962         Move the self-assignment case...
4963         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4965 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4967         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4969         * emit-rtl.c (try_split): Likewise, also for locals "before" and
4970         "after".  For now, don't strengthen param "trial", which requires
4971         adding checked casts when returning it.
4973 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4975         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4976         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
4977         "var_location" hook from rtx to rtx_insn *.
4978         (debug_nothing_rtx): Delete in favor of...
4979         (debug_nothing_rtx_code_label): New prototype.
4980         (debug_nothing_rtx_rtx): Delete unused prototype.
4981         (debug_nothing_rtx_insn): New prototype.
4983         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4984         invoking debug_hooks->var_location (in two places, one in a NOTE
4985         case of a switch statement, the other guarded by a CALL_P
4986         conditional.  Add checked cast to rtx_code_label * when invoking
4987         debug_hooks->label (within CODE_LABEL case of switch statement).
4989         * dbxout.c (dbx_debug_hooks): Update "label" hook from
4990         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
4991         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4992         (xcoff_debug_hooks): Likewise.
4993         * debug.c (do_nothing_debug_hooks): Likewise.
4994         (debug_nothing_rtx): Delete in favor of...
4995         (debug_nothing_rtx_insn): New function.
4996         (debug_nothing_rtx_rtx): Delete unused function.
4997         (debug_nothing_rtx_code_label): New function.
4998         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4999         debug_nothing_rtx to debug_nothing_rtx_code_label.
5000         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5001         to rtx_insn *.
5002         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5003         debug_nothing_rtx to debug_nothing_rtx_insn.
5004         (sdbout_label): Strengthen param "insn" from rtx to
5005         rtx_code_label *.
5006         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5007         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
5008         "var_location" hook from debug_nothing_rtx to
5009         debug_nothing_rtx_insn.
5011 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
5013         * recog.h (insn_output_fn): Update this function typedef to match
5014         the changes below to the generated output functions, strengthening
5015         the 2nd param from rtx to rtx_insn *.
5017         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5018         insn when invoking an output function, to match the new signature
5019         of insn_output_fn with a stronger second param.
5021         * genconditions.c (write_header): In the generated code for
5022         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5023         to match the other changes in this patch.
5025         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5026         the generated "gen_" functions from rtx to rtx_insn * within their
5027         implementations.
5029         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5030         the subfunctions within the generated "recog_", "split", "peephole2"
5031         function trees from rtx to rtx_insn *.  For now, the top-level
5032         generated functions ("recog", "split", "peephole2") continue to
5033         take a plain rtx for "insn", to avoid introducing dependencies on
5034         other patches.  Rename this 2nd param from "insn" to
5035         "uncast_insn", and reintroduce "insn" as a local variable of type
5036         rtx_insn *, initialized at the top of the generated function with
5037         a checked cast on "uncast_insn".
5038         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5039         the generated "gen_" functions from rtx to rtx_insn * within their
5040         prototypes.
5042         * genoutput.c (process_template): Strengthen the 2nd param within
5043         the generated "output_" functions "insn" from rtx to rtx_insn *.
5045 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
5047         * tree-profile.c (tree_profiling): Skip external functions
5048         when doing coverage instrumentation.
5049         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5051 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5053         * config/rs6000/altivec.h (vec_cpsgn): New #define.
5054         (vec_mergee): Likewise.
5055         (vec_mergeo): Likewise.
5056         (vec_cntlz): Likewise.
5057         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5058         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5059         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5060         VMRGEW, and VMRGOW.
5061         * doc/extend.texi: Document various forms of vec_cpsgn,
5062         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5063         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5064         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5065         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5066         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5068 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5070         * config/rs6000/rs6000.c (context.h): New include.
5071         (tree-pass.h): Likewise.
5072         (make_pass_analyze_swaps): New decl.
5073         (rs6000_option_override): Register pass_analyze_swaps.
5074         (swap_web_entry): New subsclass of web_entry_base (df.h).
5075         (special_handling_values): New enum.
5076         (union_defs): New function.
5077         (union_uses): Likewise.
5078         (insn_is_load_p): Likewise.
5079         (insn_is_store_p): Likewise.
5080         (insn_is_swap_p): Likewise.
5081         (rtx_is_swappable_p): Likewise.
5082         (insn_is_swappable_p): Likewise.
5083         (chain_purpose): New enum.
5084         (chain_contains_only_swaps): New function.
5085         (mark_swaps_for_removal): Likewise.
5086         (swap_const_vector_halves): Likewise.
5087         (adjust_subreg_index): Likewise.
5088         (permute_load): Likewise.
5089         (permute_store): Likewise.
5090         (handle_special_swappables): Likewise.
5091         (replace_swap_with_copy): Likewise.
5092         (dump_swap_insn_table): Likewise.
5093         (rs6000_analyze_swaps): Likewise.
5094         (pass_data_analyze_swaps): New pass_data.
5095         (pass_analyze_swaps): New rtl_opt_pass.
5096         (make_pass_analyze_swaps): New function.
5097         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5099 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
5101         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5102         type from rtx to rtx_insn *.
5103         (create_copy_of_insn_rtx): Likewise.
5104         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5105         (create_copy_of_insn_rtx): Likewise, also for local "res".
5107 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
5109         * rtl.h (find_first_parameter_load): Strengthen return type from
5110         rtx to rtx_insn *.
5111         * rtlanal.c (find_first_parameter_load): Strengthen return type
5112         from rtx to rtx_insn *.  Add checked cast for now, to postpone
5113         strengthening the params.
5115 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5117         PR fortran/44054
5118         * diagnostic.c: Set default caret.
5119         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5120         line is needed.
5121         * diagnostic.h (struct diagnostic_context):
5123 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
5125         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5126         (sel_bb_head): Strengthen return type insn_t (currently just an
5127         rtx) to rtx_insn *.
5128         (sel_bb_end): Likewise.
5130         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5131         (sel_bb_head): Strengthen return type and local "head" from
5132         insn_t (currently just an rtx) to rtx_insn *.
5133         (sel_bb_end): Likewise for return type.
5134         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5135         working with insn.
5137 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
5139         * basic-block.h (get_last_bb_insn): Strengthen return type from
5140         rtx to rtx_insn *.
5141         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5142         end".
5144 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5146         PR fortran/44054
5147         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5148          to here ...
5149         (diagnostic_report_diagnostic): ... from here.
5150         * toplev.c (general_init): Move code to c-family.
5152 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5154         * df.h (web_entry_base): Replace existing struct web_entry with a
5155         new class web_entry_base with only the predecessor member.
5156         (unionfind_root): Remove declaration and move to class member.
5157         (unionfind_union): Remove declaration and move to friend
5158         function.
5159         (union_defs): Remove declaration.
5160         * web.c (web_entry_base::unionfind_root): Modify to be member
5161         function and adjust accessors.
5162         (unionfind_union): Modify to be friend function and adjust
5163         accessors.
5164         (web_entry): New subclass of web_entry_base containing the reg
5165         member.
5166         (union_match_dups): Modify for struct -> class changes.
5167         (union_defs): Likewise.
5168         (entry_register): Likewise.
5169         (pass_web::execute): Likewise.
5171 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
5173         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5174         builtin define __VEC_ELEMENT_REG_ORDER__.
5176 2014-08-20  Martin Jambor  <mjambor@suse.cz>
5177             Wei Mi  <wmi@google.com>
5179         PR ipa/60449
5180         PR middle-end/61776
5181         * tree-ssa-operands.c (update_stmt_operands): Remove
5182         MODIFIED_NORETURN_CALLS.
5183         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5184         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5185         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5186         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5187         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5188         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5189         (gimple_call_set_ctrl_altering): New func.
5190         (gimple_call_ctrl_altering_p): Ditto.
5191         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5192         (make_blocks): Use gimple_call_initialize_ctrl_altering.
5193         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5194         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5195         remove MODIFIED_NORETURN_CALLS.
5197 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
5199         * coverage.c (coverage_compute_profile_id): Return non-0;
5200         also handle symbols with unique name.
5201         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5203 2014-08-20  Steve Ellcey  <sellcey@mips.com>
5205         PR middle-end/49191
5206         * doc/sourcebuild.texi (non_strict_align): New.
5208 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
5210         * cgraphunit.c (ipa_passes, compile): Reshedule
5211         symtab_remove_unreachable_nodes passes; update comments.
5212         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5213         TODO_remove_functions before the pass; the functions ought to be
5214         already removed.
5215         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5216         TODO_remove_functions.
5217         * passes.c (pass_data_early_local_passes): Do not schedule function
5218         removal.
5219         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5221 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5223         PR c/59304
5224         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5225         before setting the option.
5226         * diagnostic.c (diagnostic_classify_diagnostic): Record
5227         command-line status.
5229 2014-08-20  Richard Biener  <rguenther@suse.de>
5231         PR lto/62190
5232         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5233         to build uint{16,32,64}_type_node.
5235 2014-08-20  Terry Guo  <terry.guo@arm.com>
5237         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5238         with immediate_operand.
5240 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
5242         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5243         "insn" from an as_a to a safe_as_a, for the case when "insn" is
5244         NULL.
5246 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5248         PR preprocessor/51303
5249         * incpath.c (remove_duplicates): Use cpp_warning.
5251 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5253         PR c/60975
5254         PR c/53063
5255         * doc/options.texi (CPP): Document it.
5256         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5257         * optc-gen.awk: Handle CPP.
5258         * opth-gen.awk: Likewise.
5260 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5262         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5263         rtx_insn *.
5264         (duplicate_insn_chain): Likewise.
5265         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5266         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
5267         checked cast for now (until we can strengthen the params in the
5268         same way).
5269         (duplicate_insn_chain): Likewise.
5271 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5273         * rtl.h (next_cc0_user): Strengthen return type from rtx to
5274         rtx_insn *.
5275         (prev_cc0_setter): Likewise.
5277         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5278         rtx_insn *, adding checked casts for now as necessary.
5279         (prev_cc0_setter): Likewise.
5281 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5283         * expr.h (emit_move_insn): Strengthen return type from rtx to
5284         rtx_insn *.
5285         (emit_move_insn_1): Likewise.
5286         (emit_move_complex_push): Likewise.
5287         (emit_move_complex_parts): Likewise.
5289         * expr.c (emit_move_via_integer): Strengthen return type from rtx
5290         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
5291         with insns.
5292         (emit_move_complex_push): Strengthen return type from rtx to
5293         rtx_insn *.
5294         (emit_move_complex): Likewise, also for local "ret".
5295         (emit_move_ccmode): Likewise.
5296         (emit_move_multi_word): Likewise for return type and locals
5297         "last_insn", "seq".
5298         (emit_move_insn_1): Likewise for return type and locals "result",
5299         "ret".
5300         (emit_move_insn): Likewise for return type and local "last_insn".
5301         (compress_float_constant): Likewise.
5303 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5305         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5306         from rtx to rtx_insn *.
5308         * rtl.h (emit_insn_before): Likewise.
5309         (emit_insn_before_noloc): Likewise.
5310         (emit_insn_before_setloc): Likewise.
5311         (emit_jump_insn_before): Likewise.
5312         (emit_jump_insn_before_noloc): Likewise.
5313         (emit_jump_insn_before_setloc): Likewise.
5314         (emit_call_insn_before): Likewise.
5315         (emit_call_insn_before_noloc): Likewise.
5316         (emit_call_insn_before_setloc): Likewise.
5317         (emit_debug_insn_before): Likewise.
5318         (emit_debug_insn_before_noloc): Likewise.
5319         (emit_debug_insn_before_setloc): Likewise.
5320         (emit_label_before): Likewise.
5321         (emit_insn_after): Likewise.
5322         (emit_insn_after_noloc): Likewise.
5323         (emit_insn_after_setloc): Likewise.
5324         (emit_jump_insn_after): Likewise.
5325         (emit_jump_insn_after_noloc): Likewise.
5326         (emit_jump_insn_after_setloc): Likewise.
5327         (emit_call_insn_after): Likewise.
5328         (emit_call_insn_after_noloc): Likewise.
5329         (emit_call_insn_after_setloc): Likewise.
5330         (emit_debug_insn_after): Likewise.
5331         (emit_debug_insn_after_noloc): Likewise.
5332         (emit_debug_insn_after_setloc): Likewise.
5333         (emit_label_after): Likewise.
5334         (emit_insn): Likewise.
5335         (emit_debug_insn): Likewise.
5336         (emit_jump_insn): Likewise.
5337         (emit_call_insn): Likewise.
5338         (emit_label): Likewise.
5339         (gen_clobber): Likewise.
5340         (emit_clobber): Likewise.
5341         (gen_use): Likewise.
5342         (emit_use): Likewise.
5343         (emit): Likewise.
5345         (emit_barrier_before): Strengthen return type from rtx to
5346         rtx_barrier *.
5347         (emit_barrier_after): Likewise.
5348         (emit_barrier): Likewise.
5350         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
5351         from rtx to rtx_insn *.  Add checked casts for now when converting
5352         "last" from rtx to rtx_insn *.
5353         (emit_insn_before_noloc): Likewise for return type.
5354         (emit_jump_insn_before_noloc): Likewise.
5355         (emit_call_insn_before_noloc): Likewise.
5356         (emit_debug_insn_before_noloc): Likewise.
5357         (emit_barrier_before): Strengthen return type and local "insn"
5358         from rtx to rtx_barrier *.
5359         (emit_label_before): Strengthen return type from rtx to
5360         rtx_insn *.  Add checked cast for now when returning param
5361         (emit_pattern_after_noloc): Strengthen return type from rtx to
5362         rtx_insn *.  Add checked casts for now when converting "last" from
5363         rtx to rtx_insn *.
5364         (emit_insn_after_noloc): Strengthen return type from rtx to
5365         rtx_insn *.
5366         (emit_jump_insn_after_noloc): Likewise.
5367         (emit_call_insn_after_noloc): Likewise.
5368         (emit_debug_insn_after_noloc): Likewise.
5369         (emit_barrier_after): Strengthen return type from rtx to
5370         rtx_barrier *.
5371         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5372         Add checked cast for now when converting "label" from rtx to
5373         rtx_insn *.
5374         (emit_pattern_after_setloc): Strengthen return type from rtx to
5375         rtx_insn *.  Add checked casts for now when converting "last" from
5376         rtx to rtx_insn *.
5377         (emit_pattern_after): Strengthen return type from rtx to
5378         rtx_insn *.
5379         (emit_insn_after_setloc): Likewise.
5380         (emit_insn_after): Likewise.
5381         (emit_jump_insn_after_setloc): Likewise.
5382         (emit_jump_insn_after): Likewise.
5383         (emit_call_insn_after_setloc): Likewise.
5384         (emit_call_insn_after): Likewise.
5385         (emit_debug_insn_after_setloc): Likewise.
5386         (emit_debug_insn_after): Likewise.
5387         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
5388         when converting "last" from rtx to rtx_insn *.
5389         (emit_pattern_before): Strengthen return type from rtx to
5390         rtx_insn *.
5391         (emit_insn_before_setloc): Likewise.
5392         (emit_insn_before): Likewise.
5393         (emit_jump_insn_before_setloc): Likewise.
5394         (emit_jump_insn_before): Likewise.
5395         (emit_call_insn_before_setloc): Likewise.
5396         (emit_call_insn_before): Likewise.
5397         (emit_debug_insn_before_setloc): Likewise.
5398         (emit_debug_insn_before): Likewise.
5399         (emit_insn): Strengthen return type and locals "last", "insn",
5400         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
5401         within cases where we know we have an insn.
5402         (emit_debug_insn): Likewise.
5403         (emit_jump_insn): Likewise.
5404         (emit_call_insn): Strengthen return type and local "insn" from rtx
5405         to rtx_insn *.
5406         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
5407         a checked cast to rtx_insn * for now on "label".
5408         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5409         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5410         (emit_use): Likewise.
5411         (gen_use): Likewise, also for local "seq".
5412         (emit): Likewise for return type and local "insn".
5413         (rtx_insn): Likewise for return type and local "new_rtx".
5415         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5416         from rtx to rtx_barrier *.
5418         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5419         changed return type from rtx to rtx_insn *, we must update
5420         "emit_fn" type, and this in turn means updating...
5421         (frame_insn): ...this.  Strengthen return type from rtx to
5422         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
5424 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5426         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5427         rtx to rtx_jump_table_data *.  Also for local.
5428         * rtl.h (emit_jump_table_data): Likewise.
5430 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5432         * basic-block.h (create_basic_block_structure): Strengthen third
5433         param "bb_note" from rtx to rtx_note *.
5434         * rtl.h (emit_note_before): Strengthen return type from rtx to
5435         rtx_note *.
5436         (emit_note_after): Likewise.
5437         (emit_note): Likewise.
5438         (emit_note_copy): Likewise.  Also, strengthen param similarly.
5439         * function.h (struct rtl_data): Strengthen field
5440         "x_stack_check_probe_note" from rtx to rtx_note *.
5442         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5443         from rtx to rtx_note *.
5444         * cfgrtl.c (create_basic_block_structure): Strengthen third param
5445         "bb_note" from rtx to rtx_note *.
5446         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
5447         when calling emit_note_copy.
5448         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5449         rtx_note *.
5450         (emit_note_after): Likewise.
5451         (emit_note_before): Likewise.
5452         (emit_note_copy): Likewise.  Also, strengthen param similarly.
5453         (emit_note): Likewise.
5454         * except.c (emit_note_eh_region_end): Likewise for return type.
5455         Strengthen local "next" from rtx to rtx_insn *.
5456         (convert_to_eh_region_ranges): Strengthen local "note"
5457         from rtx to rtx_note *.
5458         * final.c (change_scope): Likewise.
5459         (reemit_insn_block_notes): Likewise, for both locals named "note".
5460         Also, strengthen local "insn" from rtx to rtx_insn *.
5461         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5462         rtx to rtx_note *.
5463         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5464         strengthen local "seq" from rtx to rtx_insn *.
5465         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5466         to rtx_note *.
5467         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5468         vec<rtx_note *>.
5469         (get_bb_note_from_pool): Strengthen return type from rtx to
5470         rtx_note *.
5471         (sel_create_basic_block): Strengthen local "new_bb_note" from
5472         insn_t to rtx_note *.
5473         * var-tracking.c (emit_note_insn_var_location): Strengthen local
5474         "note" from rtx to rtx_note *.
5475         (emit_notes_in_bb): Likewise.
5477 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5479         * function.h (struct rtl_data): Strengthen field
5480         "x_parm_birth_insn" from rtx to rtx_insn *.
5481         * function.c (struct assign_parm_data_all): Strengthen fields
5482         "first_conversion_insn" and "last_conversion_insn" from rtx to
5483         rtx_insn *.
5485 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5487         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5488         to rtx_insn *; also for local "var_end_seq".
5489         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5490         (maybe_cleanup_end_of_block): Likewise for param "last" and local
5491         "insn".
5492         (expand_gimple_cond): Likewise for locals "last2" and "last".
5493         (mark_transaction_restart_calls): Likewise for local "insn".
5494         (expand_gimple_stmt): Likewise for return type and locals "last"
5495         and "insn".
5496         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5497         (avoid_complex_debug_insns): Likewise for param "insn".
5498         (expand_debug_locations): Likewise for locals "insn", "last",
5499         "prev_insn" and "insn2".
5500         (expand_gimple_basic_block): Likewise for local "last".
5501         (construct_exit_block): Likewise for locals "head", "end",
5502         "orig_end".
5503         (pass_expand::execute): Likewise for locals "var_seq",
5504         "var_ret_seq", "next".
5506 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5508         * asan.h (asan_emit_stack_protection): Strengthen return type from
5509         rtx to rtx_insn *.
5510         * asan.c (asan_emit_stack_protection): Likewise.  Add local
5511         "insns" to hold the return value.
5513 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5515         * basic-block.h (bb_note): Strengthen return type from rtx to
5516         rtx_note *.
5517         * sched-int.h (bb_note): Likewise.
5518         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
5520 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5522         * rtl.h (make_insn_raw): Strengthen return type from rtx to
5523         rtx_insn *.
5525         * emit-rtl.c (make_insn_raw): Strengthen return type and local
5526         "insn" from rtx to rtx_insn *.
5527         (make_debug_insn_raw): Strengthen return type from rtx to
5528         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5529         (make_jump_insn_raw):  Strengthen return type from rtx to
5530         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5531         (make_call_insn_raw):  Strengthen return type from rtx to
5532         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5533         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5534         callback from rtx to rtx_insn *; likewise for local "insn" and
5535         "next", adding a checked cast to rtx_insn in the relevant cases of
5536         the switch statement.
5537         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5538         callback from rtx to rtx_insn *.
5539         (emit_pattern_after_setloc): Likewise.
5540         (emit_pattern_after): Likewise.
5541         (emit_pattern_before_setloc): Likewise.
5542         (emit_pattern_before): Likewise.
5544 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5546         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5547         rtx_call_insn *.
5548         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5549         accepting an rtx_insn *.
5550         (last_call_insn): Strengthen return type from rtx to
5551         rtx_call_insn *.
5553 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5555         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5556         "insns" from rtx to rtx_insn *.
5557         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5558         locals "insn" and "prev".
5560 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5562         * rtl.h (tablejump_p): Strengthen third param from rtx * to
5563         rtx_jump_table_data **.
5565         * cfgbuild.c (make_edges): Introduce local "table", using it in
5566         place of "tmp" for jump table data.
5567         (find_bb_boundaries): Strengthen local "table" from rtx to
5568         rtx_jump_table_data *.
5569         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5570         (outgoing_edges_match): Likewise for locals "table1" and "table2".
5571         (try_crossjump_to_edge): Likewise.
5572         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5573         "table".
5574         (patch_jump_insn): Introduce local "table", using it in place of
5575         "tmp" for jump table data.
5576         (force_nonfallthru_and_redirect): Introduce local "table", so that
5577         call to tablejump_p can receive an rtx_jump_table_data **.  Update
5578         logic around the call to overwrite "note" appropriately if
5579         tablejump_p returns non-zero.
5580         (get_last_bb_insn): Introduce local "table", using it in place of
5581         "tmp" for jump table data.
5582         * dwarf2cfi.c (create_trace_edges): Likewise.
5584         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5585         from rtx to rtx_jump_table_data *.
5586         (create_fix_barrier): Strengthen local "tmp" from rtx to
5587         rtx_jump_table_data *.
5588         (arm_reorg): Likewise for local "table".
5590         * config/s390/s390.c (s390_chunkify_start): Likewise.
5592         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5594         * jump.c (delete_related_insns): Strengthen local "lab_next" from
5595         rtx to rtx_jump_table_data *.
5597         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5598         rtx_jump_table_data **.  Add a checked cast when writing through
5599         the pointer: we know there that local "table" is non-NULL and that
5600         JUMP_TABLE_DATA_P (table) holds.
5601         (label_is_jump_target_p): Introduce local "table", using it in
5602         place of "tmp" for jump table data.
5604 2014-08-19  Marek Polacek  <polacek@redhat.com>
5606         PR c++/62153
5607         * doc/invoke.texi: Document -Wbool-compare.
5609 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5611         * rtl.h (entry_of_function): Strengthen return type from rtx to
5612         rtx_insn *.
5613         * cfgrtl.c (entry_of_function): Likewise.
5615 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5617         * emit-rtl.h (get_insns): Strengthen return type from rtx to
5618         rtx_insn *, adding a checked cast for now.
5619         (get_last_insn): Likewise.
5621 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5623         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5624         rtx_code_label *.
5626         * emit-rtl.c (gen_label_rtx): Likewise.
5628 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5630         * rtl.h (previous_insn): Strengthen return type from rtx to
5631         rtx_insn *.
5632         (next_insn): Likewise.
5633         (prev_nonnote_insn): Likewise.
5634         (prev_nonnote_insn_bb): Likewise.
5635         (next_nonnote_insn): Likewise.
5636         (next_nonnote_insn_bb): Likewise.
5637         (prev_nondebug_insn): Likewise.
5638         (next_nondebug_insn): Likewise.
5639         (prev_nonnote_nondebug_insn): Likewise.
5640         (next_nonnote_nondebug_insn): Likewise.
5641         (prev_real_insn): Likewise.
5642         (next_real_insn): Likewise.
5643         (prev_active_insn): Likewise.
5644         (next_active_insn): Likewise.
5646         * emit-rtl.c (next_insn): Strengthen return type from rtx to
5647         rtx_insn *, adding a checked cast.
5648         (previous_insn): Likewise.
5649         (next_nonnote_insn): Likewise.
5650         (next_nonnote_insn_bb): Likewise.
5651         (prev_nonnote_insn): Likewise.
5652         (prev_nonnote_insn_bb): Likewise.
5653         (next_nondebug_insn): Likewise.
5654         (prev_nondebug_insn): Likewise.
5655         (next_nonnote_nondebug_insn): Likewise.
5656         (prev_nonnote_nondebug_insn): Likewise.
5657         (next_real_insn): Likewise.
5658         (prev_real_insn): Likewise.
5659         (next_active_insn): Likewise.
5660         (prev_active_insn): Likewise.
5662         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5663         param "stepfunc" so that it returns an rtx_insn * rather than an
5664         rtx, to track the change to prev_nonnote_insn_bb, which is the
5665         only function this is called with.
5666         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5668 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
5670         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5671         assert.
5673 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5675         * coretypes.h (class rtx_debug_insn): Add forward declaration.
5676         (class rtx_nonjump_insn): Likewise.
5677         (class rtx_jump_insn): Likewise.
5678         (class rtx_call_insn): Likewise.
5679         (class rtx_jump_table_data): Likewise.
5680         (class rtx_barrier): Likewise.
5681         (class rtx_code_label): Likewise.
5682         (class rtx_note): Likewise.
5684         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5685         adding the invariant DEBUG_INSN_P (X).
5686         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5687         the invariant NONJUMP_INSN_P (X).
5688         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5689         the invariant JUMP_P (X).
5690         (class rtx_call_insn): New, a subclass of rtx_insn, adding
5691         the invariant CALL_P (X).
5692         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5693         invariant JUMP_TABLE_DATA_P (X).
5694         (class rtx_barrier): New, a subclass of rtx_insn, adding the
5695         invariant BARRIER_P (X).
5696         (class rtx_code_label): New, a subclass of rtx_insn, adding
5697         the invariant LABEL_P (X).
5698         (class rtx_note): New, a subclass of rtx_insn, adding
5699         the invariant NOTE_P(X).
5700         (is_a_helper <rtx_debug_insn *>::test): New.
5701         (is_a_helper <rtx_nonjump_insn *>::test): New.
5702         (is_a_helper <rtx_jump_insn *>::test): New.
5703         (is_a_helper <rtx_call_insn *>::test): New.
5704         (is_a_helper <rtx_jump_table_data *>::test): New functions,
5705         overloaded for both rtx and rtx_insn *.
5706         (is_a_helper <rtx_barrier *>::test): New.
5707         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5708         for both rtx and rtx_insn *.
5709         (is_a_helper <rtx_note *>::test): New.
5711 2014-08-19  Marek Polacek  <polacek@redhat.com>
5713         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5714         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5715         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5716         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5718 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5720         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5721         rtx_insn *.  To help with transition, for now, convert from an
5722         access macro into a pair of functions: BND_TO, returning an
5723         rtx_insn *, and...
5724         (SET_BND_TO): New function, for use where BND_TO is used as an
5725         lvalue.
5727         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5728         SET_BND_TO.
5729         (BND_TO): New function, adding a checked cast.
5730         (SET_BND_TO): New function.
5732         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5733         SET_BND_TO.
5734         (compute_av_set_on_boundaries): Likewise.
5736 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5738         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5739         destination if it is used in source.
5740         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5741         (*popcount<mode>2_falsedep_1): Likewise.
5743 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5745         PR other/62168
5746         * configure.ac: Set install_gold_as_default to no first.
5747         * configure: Regenerated.
5749 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5751         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5752         "note_list" field will eventually be an rtx_insn *.  To help with
5753         transition, for now, convert from an access macro into a pair of
5754         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5755         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5756         used as an lvalue.
5758         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5759         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5761         * sel-sched-ir.c (init_bb): Likewise.
5762         (sel_restore_notes): Likewise.
5763         (move_bb_info): Likewise.
5764         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5765         (SET_BB_NOTE_LIST): New function.
5767 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5769         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5770         field will eventually be an rtx_insn *.  To help with transition,
5771         for now, convert from an access macro into a pair of functions:
5772         VINSN_INSN_RTX, returning an rtx_insn *, and...
5773         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5774         is used as an lvalue.
5776         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5777         SET_VINSN_INSN_RTX where it's used as an lvalue.
5778         (VINSN_INSN_RTX): New function.
5779         (SET_VINSN_INSN_RTX): New function.
5781 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5783         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5784         eventually be rtx_insn *, but to help with transition, for now,
5785         convert from an access macro into a pair of functions: DEP_PRO
5786         returning an rtx_insn * and...
5787         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5788         lvalue, returning an rtx&.
5789         (DEP_CON): Analogous changes to DEP_PRO above.
5790         (SET_DEP_CON): Likewise.
5792         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5793         an lvalue to SET_DEP_CON.
5794         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5795         (sd_copy_back_deps): Likewise for DEP_CON.
5796         (DEP_PRO): New function, adding a checked cast for now.
5797         (DEP_CON): Likewise.
5798         (SET_DEP_PRO): New function.
5799         (SET_DEP_CON): Likewise.
5801 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
5803         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5804         (extra_options): Add i386/cygwin.opt.
5805         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5806         (CPP_SPEC): Accept -pthread.
5807         (LINK_SPEC): Ditto.
5808         (GOMP_SELF_SPECS): Update comment.
5809         * config/i386/cygwin.opt: New file for -pthread flag.
5811 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5813         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5814         * df.h (DF_REF_INSN): Convert from a macro to a function, so
5815         that we can return an rtx_insn *.
5817 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
5819         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5820         when building executables, not DLLs.  Add --large-address-aware
5821         under the same conditions.
5822         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5823         when building executables, not DLLs.  Add --large-address-aware
5824         under the same conditions when using -m32.
5826         * config/i386/cygwin-stdint.h: Throughout, make type
5827         definitions dependent on target architecture, not host.
5829 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5831         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
5832         the return type from rtx to rtx_insn *,  which will enable various
5833         conversions in followup patches.  For now this is is done by a
5834         checked cast.
5835         (NEXT_INSN): Likewise.
5836         (SET_PREV_INSN): Convert to an inline function.  This is intended
5837         for use as an lvalue, and so returns an rtx& to allow in-place
5838         modification.
5839         (SET_NEXT_INSN): Likewise.
5841 2014-07-08  Mark Wielaard  <mjw@redhat.com>
5843         PR debug/59051
5844         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5846 2014-08-19  Marek Polacek  <polacek@redhat.com>
5848         PR c/61271
5849         * cgraphunit.c (handle_alias_pairs): Fix condition.
5851 2014-08-19  Richard Biener  <rguenther@suse.de>
5853         * gimple-fold.c (fold_gimple_assign): Properly build a
5854         null-pointer constant when devirtualizing addresses.
5856 2014-07-07  Mark Wielaard  <mjw@redhat.com>
5858         * dwarf2out.c (decl_quals): New function.
5859         (modified_type_die): Take one cv_quals argument instead of two,
5860         one for const and one for volatile.
5861         (add_type_attribute): Likewise.
5862         (generic_parameter_die): Call add_type_attribute with one modifier
5863         argument.
5864         (base_type_for_mode): Likewise.
5865         (add_bounds_info): Likewise.
5866         (add_subscript_info): Likewise.
5867         (gen_array_type_die): Likewise.
5868         (gen_descr_array_type_die): Likewise.
5869         (gen_entry_point_die): Likewise.
5870         (gen_enumeration_type_die): Likewise.
5871         (gen_formal_parameter_die): Likewise.
5872         (gen_subprogram_die): Likewise.
5873         (gen_variable_die): Likewise.
5874         (gen_const_die): Likewise.
5875         (gen_field_die): Likewise.
5876         (gen_pointer_type_die): Likewise.
5877         (gen_reference_type_die): Likewise.
5878         (gen_ptr_to_mbr_type_die): Likewise.
5879         (gen_inheritance_die): Likewise.
5880         (gen_subroutine_type_die): Likewise.
5881         (gen_typedef_die): Likewise.
5882         (force_type_die): Likewise.
5884 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5886         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5887         if unset.
5888         * configure: Regenerate.
5890 2014-08-19  Richard Biener  <rguenther@suse.de>
5892         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5893         DECL_EXTERNALs in BLOCKs as non-references.
5894         * tree-streamer-out.c (streamer_write_chain): Likewise.
5896 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5897             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5898             Anna Tikhonova  <anna.tikhonova@intel.com>
5899             Ilya Tocar  <ilya.tocar@intel.com>
5900             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5901             Ilya Verbin  <ilya.verbin@intel.com>
5902             Kirill Yukhin  <kirill.yukhin@intel.com>
5903             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5905         * config/i386/sse.md
5906         (define_mode_iterator VI48_AVX512F): Delete.
5907         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5908         (define_mode_iterator VI2_AVX512VL): Ditto.
5909         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5910         Delete.
5911         (define_insn
5912         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5913         New.
5914         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5915         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5916         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5917         with VI48_AVX512F_AVX512VL): New.
5918         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5919         with VI2_AVX512VL): Ditto.
5921 2014-08-19  Marek Polacek  <polacek@redhat.com>
5923         * doc/invoke.texi: Document -Wc99-c11-compat.
5925 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5927         * rtl.h (PREV_INSN): Split macro in two: the existing one,
5928         for rvalues, and...
5929         (SET_PREV_INSN): New macro, for use as an lvalue.
5930         (NEXT_INSN, SET_NEXT_INSN): Likewise.
5932         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5933         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5934         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5935         (fixup_abnormal_edges): Likewise.
5936         (unlink_insn_chain): Likewise.
5937         (fixup_reorder_chain): Likewise.
5938         (cfg_layout_delete_block): Likewise.
5939         (cfg_layout_merge_blocks): Likewise.
5940         * combine.c (update_cfg_for_uncondjump): Likewise.
5941         * emit-rtl.c (link_insn_into_chain): Likewise.
5942         (remove_insn): Likewise.
5943         (delete_insns_since): Likewise.
5944         (reorder_insns_nobb): Likewise.
5945         (emit_insn_after_1): Likewise.
5946         * final.c (rest_of_clean_state): Likewise.
5947         (final_scan_insn): Likewise.
5948         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5949         * haifa-sched.c (concat_note_lists): Likewise.
5950         (remove_notes): Likewise.
5951         (restore_other_notes): Likewise.
5952         (move_insn): Likewise.
5953         (unlink_bb_notes): Likewise.
5954         (restore_bb_notes): Likewise.
5955         * jump.c (delete_for_peephole): Likewise.
5956         * optabs.c (emit_libcall_block_1): Likewise.
5957         * reorg.c (emit_delay_sequence): Likewise.
5958         (fill_simple_delay_slots): Likewise.
5959         * sel-sched-ir.c (sel_move_insn): Likewise.
5960         (sel_remove_insn): Likewise.
5961         (get_bb_note_from_pool): Likewise.
5962         * sel-sched.c (move_nop_to_previous_block): Likewise.
5964         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5965         * config/c6x/c6x.c (gen_one_bundle): Likewise.
5966         (c6x_gen_bundles): Likewise.
5967         (hwloop_optimize): Likewise.
5968         * config/frv/frv.c (frv_function_prologue): Likewise.
5969         (frv_register_nop): Likewise.
5970         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5971         (ia64_reorg): Likewise.
5972         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5973         (mep_make_bundle): Likewise.
5974         (mep_bundle_insns): Likewise.
5975         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5976         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5977         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5979 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5981         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
5982         return type from rtx to rtx_insn *.
5983         (BB_END): Likewise.
5984         (BB_HEADER): Likewise.
5985         (BB_FOOTER): Likewise.
5986         (SET_BB_HEAD): Convert to a function.
5987         (SET_BB_END): Likewise.
5988         (SET_BB_HEADER): Likewise.
5989         (SET_BB_FOOTER): Likewise.
5991         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5992         Strengthen the return type from rtx to rtx_insn *.  For now, this
5993         is done by adding a checked cast, but this will eventually
5994         become a field lookup.
5995         (BB_END): Likewise.
5996         (BB_HEADER): Likewise.
5997         (BB_FOOTER): Likewise.
5998         (SET_BB_HEAD): New function, from macro of same name.  This is
5999         intended for use as an lvalue, and so returns an rtx& to allow
6000         in-place modification.
6001         (SET_BB_END): Likewise.
6002         (SET_BB_HEADER): Likewise.
6003         (SET_BB_FOOTER): Likewise.
6005 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
6007         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6008         for rvalues, and...
6009         (SET_BB_HEAD): New macro, for use as a lvalue.
6010         (BB_END, SET_BB_END): Likewise.
6011         (BB_HEADER, SET_BB_HEADER): Likewise.
6012         (BB_FOOTER, SET_BB_FOOTER): Likewise.
6014         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6015         of BB_* macros into SET_BB_* macros.
6016         (fix_crossing_unconditional_branches): Likewise.
6017         * caller-save.c (save_call_clobbered_regs): Likewise.
6018         (insert_one_insn): Likewise.
6019         * cfgbuild.c (find_bb_boundaries): Likewise.
6020         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6021         (outgoing_edges_match): Likewise.
6022         (try_optimize_cfg): Likewise.
6023         * cfgexpand.c (expand_gimple_cond): Likewise.
6024         (expand_gimple_tailcall): Likewise.
6025         (expand_gimple_basic_block): Likewise.
6026         (construct_exit_block): Likewise.
6027         * cfgrtl.c (delete_insn): Likewise.
6028         (create_basic_block_structure): Likewise.
6029         (rtl_delete_block): Likewise.
6030         (rtl_split_block): Likewise.
6031         (emit_nop_for_unique_locus_between): Likewise.
6032         (rtl_merge_blocks): Likewise.
6033         (block_label): Likewise.
6034         (try_redirect_by_replacing_jump): Likewise.
6035         (emit_barrier_after_bb): Likewise.
6036         (fixup_abnormal_edges): Likewise.
6037         (record_effective_endpoints): Likewise.
6038         (relink_block_chain): Likewise.
6039         (fixup_reorder_chain): Likewise.
6040         (fixup_fallthru_exit_predecessor): Likewise.
6041         (cfg_layout_duplicate_bb): Likewise.
6042         (cfg_layout_split_block): Likewise.
6043         (cfg_layout_delete_block): Likewise.
6044         (cfg_layout_merge_blocks): Likewise.
6045         * combine.c (update_cfg_for_uncondjump): Likewise.
6046         * emit-rtl.c (add_insn_after): Likewise.
6047         (remove_insn): Likewise.
6048         (reorder_insns): Likewise.
6049         (emit_insn_after_1): Likewise.
6050         * haifa-sched.c (get_ebb_head_tail): Likewise.
6051         (restore_other_notes): Likewise.
6052         (move_insn): Likewise.
6053         (sched_extend_bb): Likewise.
6054         (fix_jump_move): Likewise.
6055         * ifcvt.c (noce_process_if_block): Likewise.
6056         (dead_or_predicable): Likewise.
6057         * ira.c (update_equiv_regs): Likewise.
6058         * reg-stack.c (change_stack): Likewise.
6059         * sel-sched-ir.c (sel_move_insn): Likewise.
6060         * sel-sched.c (move_nop_to_previous_block): Likewise.
6062         * config/c6x/c6x.c (hwloop_optimize): Likewise.
6063         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6065 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
6067         * rtl.h (for_each_rtx_in_insn): New function.
6068         * rtlanal.c (for_each_rtx_in_insn): Likewise.
6070 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
6072         * coretypes.h (class rtx_insn): Add forward declaration.
6074         * rtl.h: Include is-a.h.
6075         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6076         workaround to ensure gengtype knows inheritance is occurring,
6077         whilst continuing to use the pre-existing special-casing for
6078         rtx_def.
6079         (class rtx_insn): New subclass of rtx_def, adding the
6080         invariant that we're dealing with something we can sanely use
6081         INSN_UID, NEXT_INSN, PREV_INSN on.
6082         (is_a_helper <rtx_insn *>::test): New.
6083         (is_a_helper <const rtx_insn *>::test): New.
6085 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
6087         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6089 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
6091         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6092         comdats as extern.
6094 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
6096         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6097         to BUILT_IN_UNREACHABLE.
6099 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
6101         PR target/62011
6102         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6103         New tune flag.
6104         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6105         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6106         (ffs<mode>2): Do not expand with tzcnt for
6107         TARGET_AVOID_FALSE_DEP_FOR_BMI.
6108         (ffssi2_no_cmove): Ditto.
6109         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6110         (ctz<mode>2): New expander.
6111         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6112         (*ctz<mode>2_falsedep): New insn.
6113         (*ctz<mode>2): Rename from ctz<mode>2.
6114         (clz<mode>2_lzcnt): New expander.
6115         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6116         (*clz<mode>2_lzcnt_falsedep): New insn.
6117         (*clz<mode>2): Rename from ctz<mode>2.
6118         (popcount<mode>2): New expander.
6119         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6120         (*popcount<mode>2_falsedep): New insn.
6121         (*popcount<mode>2): Rename from ctz<mode>2.
6122         (*popcount<mode>2_cmp): Remove.
6123         (*popcountsi2_cmp_zext): Ditto.
6125 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
6127         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6128         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6129         * config/microblaze/microblaze.h
6130         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6132 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6134         PR other/62168
6135         * configure.ac: Set install_gold_as_default to no for
6136          --enable-gold=no.
6137          * configure: Regenerated.
6139 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
6141         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6142         * config.in: Add undef of HAVE_isl.
6143         * configure: Regenerate.
6144         * configure.ac: Add definition of HAVE_isl.
6145         * graphite-blocking.c: Add checking of HAVE_isl.
6146         * graphite-dependences.c: Likewise.
6147         * graphite-interchange.c: Likewise.
6148         * graphite-isl-ast-to-gimple.c: Likewise.
6149         * graphite-optimize-isl.c: Likewise.
6150         * graphite-poly.c: Likewise.
6151         * graphite-scop-detection.c: Likewise.
6152         * graphite-sese-to-poly.c: Likewise.
6153         * graphite.c: Likewise.
6154         * toplev.c: Replace the checking of HAVE_cloog with the checking
6155         of HAVE_isl.
6157 2014-08-18  Richard Biener  <rguenther@suse.de>
6159         PR tree-optimization/62090
6160         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6161         (fold_builtin_3): Do not fold snprintf.
6162         (fold_builtin_4): Likewise.
6163         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6164         moved from builtins.c.
6165         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6166         (gimple_fold_builtin): Do not fold sprintf here.
6168 2014-08-18  Richard Biener  <rguenther@suse.de>
6170         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6171         code to ...
6172         (maybe_canonicalize_mem_ref_addr): ... this function.
6173         (fold_stmt_1): Apply it here before all simplification.
6175 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
6177         PR ipa/61800
6178         * cgraph.h (cgraph_node::create_indirect_edge): Add
6179         compute_indirect_info param.
6180         * cgraph.c (cgraph_node::create_indirect_edge): Compute
6181         indirect_info only when it is required.
6182         * cgraphclones.c (cgraph_clone_edge): Do not recompute
6183         indirect_info fore cloned indirect edge.
6185 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6186             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6187             Anna Tikhonova  <anna.tikhonova@intel.com>
6188             Ilya Tocar  <ilya.tocar@intel.com>
6189             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6190             Ilya Verbin  <ilya.verbin@intel.com>
6191             Kirill Yukhin  <kirill.yukhin@intel.com>
6192             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6194         * config/i386/sse.md
6195         (define_mode_iterator VI8_AVX2_AVX512BW): New.
6196         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6198 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6199             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6200             Anna Tikhonova  <anna.tikhonova@intel.com>
6201             Ilya Tocar  <ilya.tocar@intel.com>
6202             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6203             Ilya Verbin  <ilya.verbin@intel.com>
6204             Kirill Yukhin  <kirill.yukhin@intel.com>
6205             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6207         * config/i386/sse.md
6208         (define_mode_iterator VF1_AVX512VL): New.
6209         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6210         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6211         New.
6213 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6214             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6215             Anna Tikhonova  <anna.tikhonova@intel.com>
6216             Ilya Tocar  <ilya.tocar@intel.com>
6217             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6218             Ilya Verbin  <ilya.verbin@intel.com>
6219             Kirill Yukhin  <kirill.yukhin@intel.com>
6220             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6222         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6223         * config/i386/i386.md
6224         (define_code_iterator any_float): New.
6225         (define_code_attr floatsuffix): New.
6226         * config/i386/sse.md
6227         (define_mode_iterator VF1_128_256VL): New.
6228         (define_mode_iterator VF2_512_256VL): New.
6229         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6230         TARGET check.
6231         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6232         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6233         New.
6234         (define_mode_attr qq2pssuff): New.
6235         (define_mode_attr sselongvecmode): New.
6236         (define_mode_attr sselongvecmodelower): New.
6237         (define_mode_attr sseintvecmode3): New.
6238         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6239         New.
6240         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6241         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6242         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6243         (define_insn "ufloatv2siv2df2<mask_name>"): New.
6245 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6246             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6247             Anna Tikhonova  <anna.tikhonova@intel.com>
6248             Ilya Tocar  <ilya.tocar@intel.com>
6249             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6250             Ilya Verbin  <ilya.verbin@intel.com>
6251             Kirill Yukhin  <kirill.yukhin@intel.com>
6252             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6254         * config/i386/sse.md
6255         (define_mode_iterator VF2_AVX512VL): New.
6256         (define_mode_attr sseintvecmode2): New.
6257         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6258         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6259         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6260         (define_insn
6261         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6262         Ditto.
6263         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6264         Ditto.
6265         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6266         Ditto.
6268 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6269             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6270             Anna Tikhonova  <anna.tikhonova@intel.com>
6271             Ilya Tocar  <ilya.tocar@intel.com>
6272             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6273             Ilya Verbin  <ilya.verbin@intel.com>
6274             Kirill Yukhin  <kirill.yukhin@intel.com>
6275             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6277         * config/i386/i386.md
6278         (define_insn "*movoi_internal_avx"): Add evex version.
6279         (define_insn "*movti_internal"): Ditto.
6281 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6282             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6283             Anna Tikhonova  <anna.tikhonova@intel.com>
6284             Ilya Tocar  <ilya.tocar@intel.com>
6285             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6286             Ilya Verbin  <ilya.verbin@intel.com>
6287             Kirill Yukhin  <kirill.yukhin@intel.com>
6288             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6290         * config/i386/i386.md
6291         (define_attr "isa"): Add avx512dq, noavx512dq.
6292         (define_attr "enabled"): Ditto.
6293         * config/i386/sse.md
6294         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6296 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6297             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6298             Anna Tikhonova  <anna.tikhonova@intel.com>
6299             Ilya Tocar  <ilya.tocar@intel.com>
6300             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6301             Ilya Verbin  <ilya.verbin@intel.com>
6302             Kirill Yukhin  <kirill.yukhin@intel.com>
6303             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6305         * config/i386/i386.c
6306         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6307         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6308         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6309         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6310         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6311         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6312         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6313         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6314         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6315         * config/i386/sse.md
6316         (define_mode_iterator VMOVE): Allow V4TI mode.
6317         (define_mode_iterator V_AVX512VL): New.
6318         (define_mode_iterator V): New handling for AVX512VL.
6319         (define_insn "avx512f_load<mode>_mask"): Delete.
6320         (define_insn "<avx512>_load<mode>_mask"): New.
6321         (define_insn "avx512f_store<mode>_mask"): Delete.
6322         (define_insn "<avx512>_store<mode>_mask"): New.
6325 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
6327         PR sanitizer/62089
6328         * asan.c (instrument_derefs): Fix bitfield check.
6330 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
6332         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6333         * config/rs6000/htm.md (ttest): Remove clobber.
6334         * config/rs6000/predicates.md (any_mask_operand): New predicate.
6335         (and_operand): Reformat.
6336         (and_2rld_operand): New predicate.
6337         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6338         parameter.
6339         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6340         parameter.  Handle AND directly.
6341         (rs6000_split_logical_di): Remove last parameter.
6342         (rs6000_split_logical): Remove last parameter.  Remove obsolete
6343         comment.
6344         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6345         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6346         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
6347         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6348         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6349         and 5 anonymous splitters):  Delete.
6350         (and<mode>3): New expander.
6351         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6352         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6353         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6354         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6355         (floatdisf2_internal1): Remove clobbers.
6356         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6357         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6358         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6359         (and<mode>3 for BOOL_128): Remove clobber.
6360         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
6361         rs6000_split_logical.
6362         (*bool<mode>3_internal for BOOL_128): Adjust call of
6363         rs6000_split_logical.
6364         (*boolc<mode>3_internal1 for BOOL_128,
6365         *boolc<mode>3_internal2 for BOOL_128,
6366         *boolcc<mode>3_internal1 for BOOL_128,
6367         *boolcc<mode>3_internal2 for BOOL_128,
6368         *eqv<mode>3_internal1 for BOOL_128,
6369         *eqv<mode>3_internal2 for BOOL_128,
6370         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6371         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6372         clobber.
6373         (*vec_reload_and_reg_<mptrsize>): Delete.
6375 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
6377         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6378         and split, *boolccsi3_internal3 and split): Delete.
6379         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6380         *boolccdi3_internal3 and split): Delete.
6381         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6382         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
6384 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
6386         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6387         and split, *boolcsi3_internal3 and split): Delete.
6388         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6389         *boolcdi3_internal3 and split): Delete.
6390         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6392 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
6394         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6395         <'u'>: Also support printing the low-order 16 bits.
6396         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6397         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6398         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6399         *booldi3_internal3 and split): Delete.
6400         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6401         *bool<mode>3_dot2): New.
6402         (two anonymous define_splits for non_logical_cint_operand): Merge.
6404 2014-08-17  Marek Polacek  <polacek@redhat.com>
6405             Manuel López-Ibáñez  <manu@gcc.gnu.org>
6407         PR c/62059
6408         * diagnostic.c (adjust_line): Add gcc_checking_assert.
6409         (diagnostic_show_locus): Don't print caret diagnostic
6410         if a column is larger than the line_width.
6412 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
6414         * common.opt: Make the ISL AST generator to be the main code generator
6415         of Graphite.
6417 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
6419         * wide-int.h (generic_wide_int): Declare as class instead of struct.
6421 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
6423         PR target/61641
6424         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6425         Declare.
6426         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6427         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6428         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6429         Define.
6430         * config/pa/pa.md (begin_brtab): Delete insn.
6431         (end_brtab): Likewise.
6433 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6435         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6437 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
6439         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6440         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6441         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6442         (get_dynamic_type): Remove.
6443         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6444         (clear_speculation): Bring to ipa-deivrt.h
6445         (get_class_context): Rename to ...
6446         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6447         (contains_type_p): Update.
6448         (get_dynamic_type): Rename to ...
6449         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6450         (possible_polymorphic_call_targets): UPdate.
6451         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6452         * ipa-prop.c (ipa_analyze_call_uses): Update.
6454 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
6456         * doc/invoke.texi (SH options): Document missing processor variant
6457         options.  Remove references to Hitachi.  Undocument deprecated mspace
6458         option.
6460 2014-08-15  Jason Merrill  <jason@redhat.com>
6462         * tree.c (type_hash_canon): Uncomment assert.
6464 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6466         * input.h (in_system_header_at): Add comment.
6468 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6470         PR fortran/44054
6471         * diagnostic.c (build_message_string): Make it extern.
6472         * diagnostic.h (build_message_string): Make it extern.
6474 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
6476         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6477         load/store from/to non-floating class pseudo.
6479 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6481         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6483 2014-08-15  Richard Biener  <rguenther@suse.de>
6485         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6486         (get_constraint_for_ssa_var): Remove dead code.
6487         (get_constraint_for_1): Adjust.
6488         (find_what_var_points_to): Likewise.
6489         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
6491 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
6493         PR target/61878
6494         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6495         (_mm512_mask_cmpge_epu32_mask): Ditto.
6496         (_mm512_cmpge_epu32_mask): Ditto.
6497         (_mm512_mask_cmpge_epi64_mask): Ditto.
6498         (_mm512_cmpge_epi64_mask): Ditto.
6499         (_mm512_mask_cmpge_epu64_mask): Ditto.
6500         (_mm512_cmpge_epu64_mask): Ditto.
6501         (_mm512_mask_cmple_epi32_mask): Ditto.
6502         (_mm512_cmple_epi32_mask): Ditto.
6503         (_mm512_mask_cmple_epu32_mask): Ditto.
6504         (_mm512_cmple_epu32_mask): Ditto.
6505         (_mm512_mask_cmple_epi64_mask): Ditto.
6506         (_mm512_cmple_epi64_mask): Ditto.
6507         (_mm512_mask_cmple_epu64_mask): Ditto.
6508         (_mm512_cmple_epu64_mask): Ditto.
6509         (_mm512_mask_cmplt_epi32_mask): Ditto.
6510         (_mm512_cmplt_epi32_mask): Ditto.
6511         (_mm512_mask_cmplt_epu32_mask): Ditto.
6512         (_mm512_cmplt_epu32_mask): Ditto.
6513         (_mm512_mask_cmplt_epi64_mask): Ditto.
6514         (_mm512_cmplt_epi64_mask): Ditto.
6515         (_mm512_mask_cmplt_epu64_mask): Ditto.
6516         (_mm512_cmplt_epu64_mask): Ditto.
6517         (_mm512_mask_cmpneq_epi32_mask): Ditto.
6518         (_mm512_mask_cmpneq_epu32_mask): Ditto.
6519         (_mm512_cmpneq_epu32_mask): Ditto.
6520         (_mm512_mask_cmpneq_epi64_mask): Ditto.
6521         (_mm512_cmpneq_epi64_mask): Ditto.
6522         (_mm512_mask_cmpneq_epu64_mask): Ditto.
6523         (_mm512_cmpneq_epu64_mask): Ditto.
6524         (_mm512_castpd_ps): Ditto.
6525         (_mm512_castpd_si512): Ditto.
6526         (_mm512_castps_pd): Ditto.
6527         (_mm512_castps_si512): Ditto.
6528         (_mm512_castsi512_ps): Ditto.
6529         (_mm512_castsi512_pd): Ditto.
6530         (_mm512_castpd512_pd128): Ditto.
6531         (_mm512_castps512_ps128): Ditto.
6532         (_mm512_castsi512_si128): Ditto.
6533         (_mm512_castpd512_pd256): Ditto.
6534         (_mm512_castps512_ps256): Ditto.
6535         (_mm512_castsi512_si256): Ditto.
6536         (_mm512_castpd128_pd512): Ditto.
6537         (_mm512_castps128_ps512): Ditto.
6538         (_mm512_castsi128_si512): Ditto.
6539         (_mm512_castpd256_pd512): Ditto.
6540         (_mm512_castps256_ps512): Ditto.
6541         (_mm512_castsi256_si512): Ditto.
6542         (_mm512_cmpeq_epu32_mask): Ditto.
6543         (_mm512_mask_cmpeq_epu32_mask): Ditto.
6544         (_mm512_mask_cmpeq_epu64_mask): Ditto.
6545         (_mm512_cmpeq_epu64_mask): Ditto.
6546         (_mm512_cmpgt_epu32_mask): Ditto.
6547         (_mm512_mask_cmpgt_epu32_mask): Ditto.
6548         (_mm512_mask_cmpgt_epu64_mask): Ditto.
6549         (_mm512_cmpgt_epu64_mask): Ditto.
6550         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6551         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6552         * config/i386/i386.c (enum ix86_builtins): Add
6553         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6554         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6555         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6556         (bdesc_args): Add __builtin_ia32_si512_256si,
6557         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6558         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6559         __builtin_ia32_pd512_pd.
6560         (ix86_expand_args_builtin): Handle new FTYPEs.
6561         * config/i386/sse.md (castmode): Add 512-bit modes.
6562         (AVX512MODE2P): New.
6563         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6564         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6566 2014-08-15  Richard Biener  <rguenther@suse.de>
6568         * fold-const.c (tree_swap_operands_p): Put all constants
6569         last, also strip sign-changing NOPs when considering further
6570         canonicalization.  Canonicalize also when optimizing for size.
6572 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6574         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6575         one_match > zero_match case to just before simple_sequence.
6577 2014-08-15  Richard Biener  <rguenther@suse.de>
6579         * data-streamer.h (streamer_string_index, string_for_index):
6580         Remove.
6581         * data-streamer-out.c (streamer_string_index): Make static.
6582         * data-streamer-in.c (string_for_index): Likewise.
6583         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6584         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6586 2014-08-15  Richard Biener  <rguenther@suse.de>
6588         PR tree-optimization/62031
6589         * tree-data-ref.c (dr_analyze_indices): Do not set
6590         DR_UNCONSTRAINED_BASE.
6591         (dr_may_alias_p): All indirect accesses have to go the
6592         formerly DR_UNCONSTRAINED_BASE path.
6593         * tree-data-ref.h (struct indices): Remove
6594         unconstrained_base member.
6595         (DR_UNCONSTRAINED_BASE): Remove.
6597 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
6599         PR middle-end/62092
6600         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6601         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6602         in OMP_CLAUSE_MAP in some outer target region.
6604 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
6606         * tree-ssa-loop-ivopts.c (ivopts_data): New field
6607         name_expansion_cache.
6608         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6609         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6610         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6611         (difference_cannot_overflow_p): New parameter.  Use affine
6612         expansion for equality check.
6613         (iv_elimination_compare_lt): Pass new argument.
6615 2014-08-14  DJ Delorie  <dj@redhat.com>
6617         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6618         variables to the accumulator.
6620         * config/rl78/predicates.md (rl78_near_mem_operand): New.
6621         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6622         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6623         with far-far moves.
6625         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6626         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6627         (umulqihi3_virt): Likewise.
6628         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6629         (umulqihi3_real): Likewise.
6631         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6633 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
6635         PR tree-optimization/62091
6636         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6637         function_entry_reached.
6638         (walk_aliased_vdefs): Clear it here.
6639         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6641 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
6643         * ipa-utils.h (compare_virtual_tables): Declare.
6644         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6646 2014-08-14  Marek Polacek  <polacek@redhat.com>
6648         DR 458
6649         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6650         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6652 2014-08-14  Tom de Vries  <tom@codesourcery.com>
6654         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6656 2014-08-14  Tom de Vries  <tom@codesourcery.com>
6658         PR rtl-optimization/62004
6659         PR rtl-optimization/62030
6660         * ifcvt.c (rtx_interchangeable_p): New function.
6661         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6662         * emit-rtl.h (mem_attrs_eq_p): Declare.
6664 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
6666         * graphite-scop-detection.c:
6667         Add inclusion of cp-tree.h.
6668         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6669         in case they are pointers to object types
6671 2014-08-14  Richard Biener  <rguenther@suse.de>
6673         * BASE-VER: Change to 5.0.0
6675 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6676             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6677             Anna Tikhonova  <anna.tikhonova@intel.com>
6678             Ilya Tocar  <ilya.tocar@intel.com>
6679             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6680             Ilya Verbin  <ilya.verbin@intel.com>
6681             Kirill Yukhin  <kirill.yukhin@intel.com>
6682             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6684         * config/i386/sse.md (define_mode_attr avx512): New.
6685         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6686         V4DI modes.
6687         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6688         (define_mode_attr ssse3_avx2): Ditto.
6689         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6690         (define_mode_attr avx2_avx512bw): New.
6691         (define_mode_attr ssedoublemodelower): New.
6692         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6693         V32HI, V64QI modes.
6694         (define_mode_attr ssebytemode): Allow V8DI modes.
6695         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6696         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6697         (define_mode_attr ssePSmode2): New.
6698         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6699         V16HI, V32HI modes.
6700         (define_mode_attr dbpsadbwmode): New.
6701         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6702         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6703         (vi8_sse4_1_avx2_avx512): New.
6704         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6705         mode attribute.
6706         (define_mode_attr blendbits): Move before its immediate use.
6708 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6709             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6710             Anna Tikhonova  <anna.tikhonova@intel.com>
6711             Ilya Tocar  <ilya.tocar@intel.com>
6712             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6713             Ilya Verbin  <ilya.verbin@intel.com>
6714             Kirill Yukhin  <kirill.yukhin@intel.com>
6715             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6717         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6718         * config/i386/subst.md
6719         (define_mode_iterator SUBST_V): Update.
6720         (define_mode_iterator SUBST_A): Ditto.
6721         (define_subst_attr "mask_operand7"): New.
6722         (define_subst_attr "mask_operand10"): New.
6723         (define_subst_attr "mask_operand_arg34") : New.
6724         (define_subst_attr "mask_expand_op3"): New.
6725         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6726         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6727         (define_subst_attr "mask_avx512vl_condition"): New.
6728         (define_subst_attr "round_mask_operand4"): Ditto.
6729         (define_subst_attr "round_mask_scalar_op3"): Delete.
6730         (define_subst_attr "round_mask_op4"): New.
6731         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6732         V16SImode.
6733         (define_subst_attr "round_modev8sf_condition"): New.
6734         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6735         <MODE>mode.
6736         (define_subst_attr "round_saeonly_mask_operand4"): New.
6737         (define_subst_attr "round_saeonly_mask_op4"): New.
6738         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6739         V8DImode, V16SImode.
6740         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6741         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6742         (define_subst_attr "mask_expand4_args"): New.
6743         (define_subst "mask_expand4"): New.
6745 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6746             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6747             Anna Tikhonova  <anna.tikhonova@intel.com>
6748             Ilya Tocar  <ilya.tocar@intel.com>
6749             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6750             Ilya Verbin  <ilya.verbin@intel.com>
6751             Kirill Yukhin  <kirill.yukhin@intel.com>
6752             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6754         * config/i386/i386.md
6755         (define_attr "isa"): Add avx512bw,noavx512bw.
6756         (define_attr "enabled"): Ditto.
6757         (define_split): Add 32/64-bit mask logic.
6758         (define_insn "*k<logic>qi"): New.
6759         (define_insn "*k<logic>hi"): New.
6760         (define_insn "*anddi_1"): Add mask version.
6761         (define_insn "*andsi_1"): Ditto.
6762         (define_insn "*<code><mode>_1"): Ditto.
6763         (define_insn "*<code>hi_1"): Ditto.
6764         (define_insn "kxnor<mode>"): New.
6765         (define_insn "kunpcksi"): New.
6766         (define_insn "kunpckdi"): New.
6767         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6768         (define_insn "*one_cmplhi2_1"): Ditto.
6770 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6771             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6772             Anna Tikhonova  <anna.tikhonova@intel.com>
6773             Ilya Tocar  <ilya.tocar@intel.com>
6774             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6775             Ilya Verbin  <ilya.verbin@intel.com>
6776             Kirill Yukhin  <kirill.yukhin@intel.com>
6777             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6779         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6780         V32HImode.
6782 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6783             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6784             Anna Tikhonova  <anna.tikhonova@intel.com>
6785             Ilya Tocar  <ilya.tocar@intel.com>
6786             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6787             Ilya Verbin  <ilya.verbin@intel.com>
6788             Kirill Yukhin  <kirill.yukhin@intel.com>
6789             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6791         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
6792         registers.
6793         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6794         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6795         xmm/ymm16+ when availble.
6796         * config/i386/i386.h
6797         (HARD_REGNO_NREGS): Add mask regs.
6798         (VALID_AVX512F_REG_MODE): Ditto.
6799         (VALID_AVX512F_REG_MODE) : Define.
6800         (VALID_MASK_AVX512BW_MODE): Ditto.
6801         (reg_class) (MASK_REG_P(X)): Define.
6802         * config/i386/i386.md: Do not split long moves with mask register,
6803         use kmovb if avx512bw is availible.
6804         (movdi_internal): Handle mask registers.
6806 2014-08-14  Richard Biener  <rguenther@suse.de>
6808         PR tree-optimization/62081
6809         * tree-ssa-loop.c (pass_fix_loops): New pass.
6810         (pass_tree_loop::gate):  Do not fixup loops here.
6811         * tree-pass.h (make_pass_fix_loops): Declare.
6812         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6814 2014-08-14  Richard Biener  <rguenther@suse.de>
6816         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6817         (type_hash_canon): ... this and avoid 2nd lookup for the add.
6819 2014-08-14  Richard Biener  <rguenther@suse.de>
6821         PR tree-optimization/62090
6822         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6823         (fold_builtin_2): Do not fold sprintf.
6824         (fold_builtin_3): Likewise.
6825         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6826         moved from builtins.c.
6827         (gimple_fold_builtin): Fold sprintf.
6829 2014-08-14  Richard Biener  <rguenther@suse.de>
6831         PR rtl-optimization/62079
6832         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6833         run cleanup_cfg.
6835 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
6837         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6838         current_function_decl.
6840 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
6842         * cgraph.c (cgraph_node::function_symbol): Fix wrong
6843         cgraph_function_node to cgraph_node::function_symbol
6844         refactoring.
6846 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6848         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6849         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6851 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
6853         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6854         warning.
6856 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
6858         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6859         generator.
6861 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
6863         PR target/62025
6864         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6865         any registers that are used in mem_insn.
6867 2014-08-12  Steve Ellcey  <sellcey@mips.com>
6869         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
6871 2014-08-12  Steve Ellcey  <sellcey@mips.com>
6873         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6874         (MULTILIB_DIRNAMES): Ditto.
6875         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6876         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6877         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6878         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6879         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6880         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6882 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6884         PR target/61413
6885         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6886         of __ARM_SIZEOF_WCHAR_T.
6888 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6890         PR target/62098
6891         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6892         Remove unnecessary attributes.
6894 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
6896         * internal-fn.c (init_internal_fns): Fix off-by-one.
6898 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6899             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6900             Anna Tikhonova  <anna.tikhonova@intel.com>
6901             Ilya Tocar  <ilya.tocar@intel.com>
6902             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6903             Ilya Verbin  <ilya.verbin@intel.com>
6904             Kirill Yukhin  <kirill.yukhin@intel.com>
6905             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6907         * config/i386/i386.c (standard_sse_constant_opcode): Use
6908         vpxord/vpternlog if avx512 is availible.
6910 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6912         PR middle-end/62103
6913         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6914         bitfields, that is when size doesn't match the size of type or the
6915         size of the constructor.
6917 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6919         * config/rs6000/constraints.md (wh constraint): New constraint,
6920         for FP registers if direct move is available.
6921         (wi constraint): New constraint, for VSX/FP registers that can
6922         handle 64-bit integers.
6923         (wj constraint): New constraint for VSX/FP registers that can
6924         handle 64-bit integers for direct moves.
6925         (wk constraint): New constraint for VSX/FP registers that can
6926         handle 64-bit doubles for direct moves.
6927         (wy constraint): Make documentation match implementation.
6929         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6930         scalar_in_vmx_p field to simplify tests of whether SFmode or
6931         DFmode can go in the Altivec registers.
6932         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6933         (rs6000_setup_reg_addr_masks): Likewise.
6934         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6935         field, and wh/wi/wj/wk constraints.
6936         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6937         the wh/wi/wj/wk constraints.
6938         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6939         upper registers, prefer VSX registers unless the operation is a
6940         memory operation with REG+OFFSET addressing.
6942         * config/rs6000/vsx.md (VSr mode attribute): Add support for
6943         DImode.  Change SFmode to use ww constraint instead of d to allow
6944         SF registers in the upper registers.
6945         (VSr2): Likewise.
6946         (VSr3): Likewise.
6947         (VSr5): Fix thinko in comment.
6948         (VSa): New mode attribute that is an alternative to wa, that
6949         returns the VSX register class that a mode can go in, but may not
6950         be the preferred register class.
6951         (VS_64dm): New mode attribute for appropriate register classes for
6952         referencing 64-bit elements of vectors for direct moves and normal
6953         moves.
6954         (VS_64reg): Likewise.
6955         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6956         register allocator to only registers the data type can handle.
6957         (vsx_le_perm_load_<mode>): Likewise.
6958         (vsx_le_perm_store_<mode>): Likewise.
6959         (vsx_xxpermdi2_le_<mode>): Likewise.
6960         (vsx_xxpermdi4_le_<mode>): Likewise.
6961         (vsx_lxvd2x2_le_<mode>): Likewise.
6962         (vsx_lxvd2x4_le_<mode>): Likewise.
6963         (vsx_stxvd2x2_le_<mode>): Likewise.
6964         (vsx_add<mode>3): Likewise.
6965         (vsx_sub<mode>3): Likewise.
6966         (vsx_mul<mode>3): Likewise.
6967         (vsx_div<mode>3): Likewise.
6968         (vsx_tdiv<mode>3_internal): Likewise.
6969         (vsx_fre<mode>2): Likewise.
6970         (vsx_neg<mode>2): Likewise.
6971         (vsx_abs<mode>2): Likewise.
6972         (vsx_nabs<mode>2): Likewise.
6973         (vsx_smax<mode>3): Likewise.
6974         (vsx_smin<mode>3): Likewise.
6975         (vsx_sqrt<mode>2): Likewise.
6976         (vsx_rsqrte<mode>2): Likewise.
6977         (vsx_tsqrt<mode>2_internal): Likewise.
6978         (vsx_fms<mode>4): Likewise.
6979         (vsx_nfma<mode>4): Likewise.
6980         (vsx_eq<mode>): Likewise.
6981         (vsx_gt<mode>): Likewise.
6982         (vsx_ge<mode>): Likewise.
6983         (vsx_eq<mode>_p): Likewise.
6984         (vsx_gt<mode>_p): Likewise.
6985         (vsx_ge<mode>_p): Likewise.
6986         (vsx_xxsel<mode>): Likewise.
6987         (vsx_xxsel<mode>_uns): Likewise.
6988         (vsx_copysign<mode>3): Likewise.
6989         (vsx_float<VSi><mode>2): Likewise.
6990         (vsx_floatuns<VSi><mode>2): Likewise.
6991         (vsx_fix_trunc<mode><VSi>2): Likewise.
6992         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6993         (vsx_x<VSv>r<VSs>i): Likewise.
6994         (vsx_x<VSv>r<VSs>ic): Likewise.
6995         (vsx_btrunc<mode>2): Likewise.
6996         (vsx_b2trunc<mode>2): Likewise.
6997         (vsx_floor<mode>2): Likewise.
6998         (vsx_ceil<mode>2): Likewise.
6999         (vsx_<VS_spdp_insn>): Likewise.
7000         (vsx_xscvspdp): Likewise.
7001         (vsx_xvcvspuxds): Likewise.
7002         (vsx_float_fix_<mode>2): Likewise.
7003         (vsx_set_<mode>): Likewise.
7004         (vsx_extract_<mode>_internal1): Likewise.
7005         (vsx_extract_<mode>_internal2): Likewise.
7006         (vsx_extract_<mode>_load): Likewise.
7007         (vsx_extract_<mode>_store): Likewise.
7008         (vsx_splat_<mode>): Likewise.
7009         (vsx_xxspltw_<mode>): Likewise.
7010         (vsx_xxspltw_<mode>_direct): Likewise.
7011         (vsx_xxmrghw_<mode>): Likewise.
7012         (vsx_xxmrglw_<mode>): Likewise.
7013         (vsx_xxsldwi_<mode>): Likewise.
7014         (vsx_xscvdpspn): Tighten constraints to only use register classes
7015         the types use.
7016         (vsx_xscvspdpn): Likewise.
7017         (vsx_xscvdpspn_scalar): Likewise.
7019         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7020         wj, and wk constraints.
7021         (GPR_REG_CLASS_P): New helper macro for register classes targeting
7022         general purpose registers.
7024         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7025         direct moves.
7026         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7027         DImode instead of wm.  Use wk constraint for direct move of DFmode
7028         instead of wm.
7029         (extendsidi2_lfiwax): Likewise.
7030         (lfiwax): Likewise.
7031         (lfiwzx): Likewise.
7032         (movdi_internal64): Likewise.
7034         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7035         wk constraints. Make the wy constraint documentation match them
7036         implementation.
7038 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
7040         Replacement of isl_int by isl_val
7041         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7042         (compute_bounds_for_param): use isl_val instead of isl_int
7043         (compute_bounds_for_loop): likewise
7044         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7045         (build_linearized_memory_access): use isl_val instead of isl_int
7046         (pdr_stride_in_loop): likewise
7047         * graphite-optimize-isl.c:
7048         (getPrevectorMap): use isl_val instead of isl_int
7049         * graphite-poly.c:
7050         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7051         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7052         (extern the_isl_ctx): declare
7053         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7054         (extract_affine_gmp): likewise
7055         (wrap): likewise
7056         (build_loop_iteration_domains): likewise
7057         (add_param_constraints): likewise
7059 2014-08-11  Richard Biener  <rguenther@suse.de>
7061         PR tree-optimization/62075
7062         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7063         handle uses in patterns.
7065 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7066             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7067             Anna Tikhonova  <anna.tikhonova@intel.com>
7068             Ilya Tocar  <ilya.tocar@intel.com>
7069             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7070             Ilya Verbin  <ilya.verbin@intel.com>
7071             Kirill Yukhin  <kirill.yukhin@intel.com>
7072             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7074         * common/config/i386/i386-common.c
7075         (OPTION_MASK_ISA_AVX512VL_SET): Define.
7076         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7077         (ix86_handle_option): Handle OPT_mavx512vl.
7078         * config/i386/cpuid.h (bit_AVX512VL): Define.
7079         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7080         set -mavx512vl accordingly.
7081         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7082         OPTION_MASK_ISA_AVX512VL.
7083         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7084         (ix86_option_override_internal): Define PTA_AVX512VL, handle
7085         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7086         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7087         * config/i386/i386.h (TARGET_AVX512VL): Define.
7088         (TARGET_AVX512VL_P(x)): Ditto.
7089         * config/i386/i386.opt: Add mavx512vl.
7091 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
7093         PR tree-optimization/62073
7094         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7095         a basic block.
7097 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7098             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7099             Anna Tikhonova  <anna.tikhonova@intel.com>
7100             Ilya Tocar  <ilya.tocar@intel.com>
7101             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7102             Ilya Verbin  <ilya.verbin@intel.com>
7103             Kirill Yukhin  <kirill.yukhin@intel.com>
7104             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7106         * common/config/i386/i386-common.c
7107         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7108         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7109         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7110         (ix86_handle_option): Handle OPT_mavx512bw.
7111         * config/i386/cpuid.h (bit_AVX512BW): Define.
7112         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7113         set -mavx512bw accordingly.
7114         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7115         OPTION_MASK_ISA_AVX512BW.
7116         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7117         (ix86_option_override_internal): Define PTA_AVX512BW, handle
7118         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7119         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7120         * config/i386/i386.h (TARGET_AVX512BW): Define.
7121         (TARGET_AVX512BW_P(x)): Ditto.
7122         * config/i386/i386.opt: Add mavx512bw.
7124 2014-08-11  Richard Biener  <rguenther@suse.de>
7126         PR tree-optimization/62070
7127         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7128         Remove SSA checking.
7130 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
7132         * asan.c (asan_check_flags): New enum.
7133         (build_check_stmt_with_calls): Removed function.
7134         (build_check_stmt): Split inlining logic to
7135         asan_expand_check_ifn.
7136         (instrument_derefs): Rename parameter.
7137         (instrument_mem_region_access): Rename parameter.
7138         (instrument_strlen_call): Likewise.
7139         (asan_expand_check_ifn): New function.
7140         (asan_instrument): Remove old code.
7141         (pass_sanopt::execute): Change handling of
7142         asan-instrumentation-with-call-threshold.
7143         (asan_clear_shadow): Fix formatting.
7144         (asan_function_start): Likewise.
7145         (asan_emit_stack_protection): Likewise.
7146         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7147         Update description.
7148         * internal-fn.c (expand_ASAN_CHECK): New function.
7149         * internal-fn.def (ASAN_CHECK): New internal function.
7150         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7151         Update description.
7152         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7153         * tree.c: Small comment fix.
7155 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
7157         * gimple.c (gimple_call_fnspec): Support internal functions.
7158         (gimple_call_return_flags): Use const.
7159         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7160         * internal-fn.def: Add fnspec information.
7161         * internal-fn.h (internal_fn_fnspec): New function.
7162         (init_internal_fns): Declare new function.
7163         * internal-fn.c (internal_fn_fnspec_array): New global variable.
7164         (init_internal_fns): New function.
7165         * tree-core.h: Update macro call.
7166         * tree.c (build_common_builtin_nodes): Initialize internal fns.
7168 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
7170         * lto-streamer.h (struct output_block::symbol): Change from
7171         struct symtab_node to plain symtab_node.
7172         (referenced_from_this_partition_p): Change first parameter
7173         from struct symtab_node to plain symtab_node.
7175 2014-08-10  Marek Polacek  <polacek@redhat.com>
7177         PR c/51849
7178         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7180 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
7182         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7183         DECL correctly; do not give up on types in static storage.
7185 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
7187         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7189 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
7191         * graphite-isl-ast-to-gimple.c:
7192         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7194         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7196 2014-08-08  Guozhi Wei  <carrot@google.com>
7198         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7200 2014-08-08  Cary Coutant  <ccoutant@google.com>
7202         * dwarf2out.c (get_skeleton_type_unit): Remove.
7203         (output_skeleton_debug_sections): Remove skeleton type units.
7204         (output_comdat_type_unit): Likewise.
7205         (dwarf2out_finish): Likewise.
7207 2014-08-07  Yi Yang  <ahyangyi@google.com>
7209         * predict.c (expr_expected_value_1): Remove the redundant assignment.
7211 2014-08-08  Richard Biener  <rguenther@suse.de>
7213         * lto-streamer.h (struct lto_input_block): Make it a class
7214         with a constructor.
7215         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7216         (struct lto_function_header, struct lto_simple_header,
7217         struct lto_simple_header_with_strings,
7218         struct lto_decl_header, struct lto_function_header): Make
7219         a simple inheritance hieararchy.  Remove unused fields.
7220         (struct lto_asm_header): Remove.
7221         * lto-streamer-out.c (produce_asm): Adjust.
7222         (lto_output_toplevel_asms): Likewise.
7223         (produce_asm_for_decls): Likewise.
7224         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7225         * data-streamer-in.c (string_for_index): Likewise.
7226         * ipa-inline-analysis.c (inline_read_section): Likewise.
7227         * ipa-prop.c (ipa_prop_read_section): Likewise.
7228         (read_replacements_section): Likewise.
7229         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7230         * lto-section-in.c (lto_create_simple_input_block): Likewise.
7231         (lto_destroy_simple_input_block): Likewise.
7232         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7233         (lto_input_toplevel_asms): Likewise.
7235 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7236             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7237             Anna Tikhonova  <anna.tikhonova@intel.com>
7238             Ilya Tocar  <ilya.tocar@intel.com>
7239             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7240             Ilya Verbin  <ilya.verbin@intel.com>
7241             Kirill Yukhin  <kirill.yukhin@intel.com>
7242             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7244         * common/config/i386/i386-common.c
7245         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7246         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7247         (ix86_handle_option): Handle OPT_mavx512dq.
7248         * config/i386/cpuid.h (bit_AVX512DQ): Define.
7249         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7250         set -mavx512dq accordingly.
7251         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7252         OPTION_MASK_ISA_AVX512DQ.
7253         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7254         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7255         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7256         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7257         * config/i386/i386.h (TARGET_AVX512DQ): Define.
7258         (TARGET_AVX512DQ_P(x)): Ditto.
7259         * config/i386/i386.opt: Add mavx512dq.
7261 2014-08-08  Richard Biener  <rguenther@suse.de>
7263         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7264         target_percent, target_percent_s): Export.
7265         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7266         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7267         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7268         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7269         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7270         Move to gimple-fold.c.
7271         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7272         strcat and strcpy.
7273         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7274         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7275         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7276         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7277         (rewrite_call_expr_array): Remove.
7278         (fold_builtin_sprintf_chk): Likewise.
7279         (fold_builtin_snprintf_chk): Likewise.
7280         (fold_builtin_varargs): Remove handling of sprintf_chk,
7281         vsprintf_chk, snprintf_chk and vsnprintf_chk.
7282         (gimple_fold_builtin_sprintf_chk): Remove.
7283         (gimple_fold_builtin_snprintf_chk): Likewise.
7284         (gimple_fold_builtin_varargs): Likewise.
7285         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7286         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7287         * gimple.c (gimple_seq_add_seq_without_update): New function.
7288         * gimple.h (gimple_seq_add_seq_without_update): Declare.
7289         * gimple-fold.c: Include output.h.
7290         (gsi_replace_with_seq_vops): New function, split out from ...
7291         (gimplify_and_update_call_from_tree): ... here.
7292         (replace_call_with_value): New function.
7293         (replace_call_with_call_and_fold): Likewise.
7294         (var_decl_component_p): Moved from builtins.c.
7295         (gimple_fold_builtin_memory_op): Moved from builtins.c
7296         fold_builtin_memory_op and rewritten to GIMPLE.
7297         (gimple_fold_builtin_memset): Likewise.
7298         (gimple_fold_builtin_strcpy): Likewise.
7299         (gimple_fold_builtin_strncpy): Likewise.
7300         (gimple_fold_builtin_strcat): Likewise.
7301         (gimple_fold_builtin_fputs): Likewise.
7302         (gimple_fold_builtin_memory_chk): Likewise.
7303         (gimple_fold_builtin_stxcpy_chk): Likewise.
7304         (gimple_fold_builtin_stxncpy_chk): Likewise.
7305         (gimple_fold_builtin_snprintf_chk): Likewise.
7306         (gimple_fold_builtin_sprintf_chk): Likewise.
7307         (gimple_fold_builtin_strlen): New function.
7308         (gimple_fold_builtin_with_strlen): New function split out from
7309         gimple_fold_builtin.
7310         (gimple_fold_builtin): Change signature and handle
7311         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7312         here.  Call gimple_fold_builtin_with_strlen.
7313         (gimple_fold_call): Adjust.
7315 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
7317         * calls.c (precompute_arguments): Check
7318          promoted_for_signed_and_unsigned_p and set the promoted mode.
7319         (promoted_for_signed_and_unsigned_p): New function.
7320         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7321         and set the promoted mode.
7322         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7323         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7324         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7327 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
7329         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7330         instead of SUBREG_PROMOTED_UNSIGNED_SET.
7331         (expand_call): Likewise.
7332         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7333         to get promoted mode.
7334         * combine.c (record_promoted_value): Skip > 0 comparison with
7335         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7336         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7337         of SUBREG_PROMOTED_UNSIGNED_P.
7338         (convert_modes): Likewise.
7339         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7340         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7341         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7342         SUBREG_PROMOTED_UNSIGNED_SET.
7343         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7344         instead of SUBREG_PROMOTED_UNSIGNED_SET.
7345         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7346         SUBREG_PROMOTED_SET.
7347         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7348         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7349         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7350         of SUBREG_PROMOTED_UNSIGNED_P.
7351         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7352         (SUBREG_PROMOTED_SET): New define.
7353         (SUBREG_PROMOTED_GET): Likewise.
7354         (SUBREG_PROMOTED_SIGN): Likewise.
7355         (SUBREG_PROMOTED_SIGNED_P): Likewise.
7356         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7357         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7358         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7359         instead of SUBREG_PROMOTED_UNSIGNED_GET.
7360         (nonzero_bits1): Skip > 0 comparison with the results as
7361         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7362         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7363         of !SUBREG_PROMOTED_UNSIGNED_P.
7364         * simplify-rtx.c (simplify_unary_operation_1): Use new
7365         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7366         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7367         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7368         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7370 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
7372         * ipa-devirt.c: Include gimple-pretty-print.h
7373         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7374         further tests.
7375         (decl_maybe_in_construction_p): Fix conditional on cdtor check
7376         (get_polymorphic_call_info): Fix return value
7377         (type_change_info): New sturcture based on ipa-prop
7378         variant.
7379         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7380         based on ipa-prop variant.
7381         (extr_type_from_vtbl_ptr_store): New function
7382         based on ipa-prop variant.
7383         (record_known_type): New function.
7384         (check_stmt_for_type_change): New function.
7385         (get_dynamic_type): New function.
7386         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7387         * tree-ssa-pre.c: ipa-utils.h
7388         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7389         machinery; sanity check with ipa-prop devirtualization.
7390         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7391         polymorphic flag.
7393 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
7395         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7396         * alias.c, cfgexpand.c, cgraphbuild.c,
7397         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7398         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7399         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7400         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7401         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7402         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7403         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7404         dse.c, except.c, gengtype.c, gimple-expr.c,
7405         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7406         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7407         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7408         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7409         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7410         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7411         pointer-set.h.
7412         * pointer-set.c: Remove file.
7413         * pointer-set.h: Remove file.
7415 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7417         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7418         * config/arm/types.md (f_sels, f_seld): Delete.
7420 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7422         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7423         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7424         (aarch64_movdi_<mode>high): Likewise.
7425         (aarch64_mov<mode>high_di): Likewise.
7426         (aarch64_movdi_<mode>low): Likewise.
7427         (aarch64_mov<mode>low_di): Likewise.
7428         (aarch64_movtilow_tilow): Likewise.
7429         Add comment explaining usage of fp,simd attributes and of
7430         TARGET_FLOAT and TARGET_SIMD.
7432 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
7433             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7435         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7436         Use MOVN when one of the half-words is 0xffff.
7438 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
7440         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7442 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7444         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
7445         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7446         (rfs_str): String corresponding to RFS_* constants.
7447         (rank_for_schedule_stats_t): New typedef.
7448         (rank_for_schedule_stats): New static variable.
7449         (rfs_result): New static function.
7450         (rank_for_schedule): Track statistics for deciding heuristics.
7451         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7452         static functions.
7453         (ready_sort): Use them for debug printouts.
7454         (schedule_block): Init statistics state.  Print statistics on
7455         rank_for_schedule decisions.
7457 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7459         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7461 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
7463         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7464         constraint.
7466 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
7468         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7469         function to not conflict.
7470         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7471         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7472         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7473         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7474         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7475         of pointer_map.
7477 2014-08-07  Marek Polacek  <polacek@redhat.com>
7479         * fold-const.c (fold_binary_loc): Add folding of
7480         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7482 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
7484         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7485         instead of type size.
7486         (ASM_FINISH_DECLARE_OBJECT): Likewise.
7488 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
7490         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7491         (*thumb1_movqi_insn): Likewise.
7492         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7494 2014-08-07  Tom de Vries  <tom@codesourcery.com>
7496         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7497         (glibc_2_11_or_earlier): Remove effective-target keywords.
7499 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
7501         * config/arm/arm.c (bdesc_2arg): Fix typo.
7502         (arm_atomic_assign_expand_fenv): Remove The default implementation.
7504 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7506         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7508 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
7510         PR debug/61923
7511         * haifa-sched.c (advance_one_cycle): Fix dump.
7512         (schedule_block): Don't advance cycle if we are already at the
7513         beginning of the cycle.
7515 2014-08-06  Martin Jambor  <mjambor@suse.cz>
7517         PR ipa/61393
7518         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7520 2014-08-06  Richard Biener  <rguenther@suse.de>
7522         PR lto/62034
7523         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7524         SCCs here.
7525         (lto_input_tree): Pop SCCs here.
7527 2014-08-06  Richard Biener  <rguenther@suse.de>
7529         PR tree-optimization/61320
7530         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7531         handle misaligned loads.
7533 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
7535         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7536         (aarch64_expand_vec_perm_const): Check for dup before zip.
7538 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7540         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7541         CONST_INT_P instead of GET_CODE and compare.
7542         (aarch64_select_cc_mode): Likewise.
7543         (aarch64_print_operand): Likewise.
7544         (aarch64_rtx_costs): Likewise.
7545         (aarch64_simd_valid_immediate): Likewise.
7546         (aarch64_simd_check_vect_par_cnst_half): Likewise.
7547         (aarch64_simd_emit_pair_result_insn): Likewise.
7549 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
7551         * gdbhooks.py (find_gcc_source_dir): New helper function.
7552         (class PassNames): New class, locating and parsing passes.def.
7553         (class BreakOnPass): New command "break-on-pass".
7555 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
7557         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7558         getting olde.
7560 2014-08-05  Richard Biener  <rguenther@suse.de>
7562         PR rtl-optimization/61672
7563         * emit-rtl.h (mem_attrs_eq_p): Declare.
7564         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
7565         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7566         * cfgcleanup.c (merge_memattrs): Likewise.
7567         Include emit-rtl.h.
7569 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7571         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7572         rather than singleton vectors.
7573         (vqdmlsls_lane_s32): Likewise.
7575 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7577         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7578         Use VSDQ_HSI mode iterator.
7579         (aarch64_sqrdmulh_laneq<mode>): Likewise.
7580         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7581         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7582         Use BUILTIN_VDQHS macro.
7583         (sqrdmulh_laneq): Likewise.
7584         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7585         (vqdmlals_laneq_s32): Likewise.
7586         (vqdmlslh_laneq_s16): Likewise.
7587         (vqdmlsls_laneq_s32): Likewise.
7588         (vqdmulhh_laneq_s16): Likewise.
7589         (vqdmulhs_laneq_s32): Likewise.
7590         (vqrdmulhh_laneq_s16): Likewise.
7591         (vqrdmulhs_laneq_s32): Likewise.
7593 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7595         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7596         (vmuld_laneq_f64): Likewise.
7597         (vmuls_laneq_f32): Likewise.
7598         (vmul_n_f64): Likewise.
7599         (vmuld_lane_f64): Reimplement in C.
7600         (vmuls_lane_f32): Likewise.
7602 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7604         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7605         to reservation.
7606         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7608 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7610         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7611         (rbitsi2): Likewise.
7612         (*arm_rev): Set predicable and predicable_short_it attributes.
7614 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7616         * convert.c (convert_to_integer): Guard transformation to lrint by
7617         -fno-math-errno.
7619 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
7621         * config/aarch64/aarch64-builtins.c
7622         (aarch64_simd_builtin_type_mode): Delete.
7623         (v8qi_UP): Remap to V8QImode.
7624         (v4hi_UP): Remap to V4HImode.
7625         (v2si_UP): Remap to V2SImode.
7626         (v2sf_UP): Remap to V2SFmode.
7627         (v1df_UP): Remap to V1DFmode.
7628         (di_UP): Remap to DImode.
7629         (df_UP): Remap to DFmode.
7630         (v16qi_UP):V16QImode.
7631         (v8hi_UP): Remap to V8HImode.
7632         (v4si_UP): Remap to V4SImode.
7633         (v4sf_UP): Remap to V4SFmode.
7634         (v2di_UP): Remap to V2DImode.
7635         (v2df_UP): Remap to V2DFmode.
7636         (ti_UP): Remap to TImode.
7637         (ei_UP): Remap to EImode.
7638         (oi_UP): Remap to OImode.
7639         (ci_UP): Map to CImode.
7640         (xi_UP): Remap to XImode.
7641         (si_UP): Remap to SImode.
7642         (sf_UP): Remap to SFmode.
7643         (hi_UP): Remap to HImode.
7644         (qi_UP): Remap to QImode.
7645         (aarch64_simd_builtin_datum): Make mode a machine_mode.
7646         (VAR1): Build builtin name.
7647         (aarch64_init_simd_builtins): Remove dead code.
7649 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
7651         * graphite-isl-ast-to-gimple.c:
7652         (set_options): New function.
7653         (scop_to_isl_ast): Add calling of set_options.
7655 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
7657         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7658         (analyze_iv_to_split_insn): Don't initialize them.
7659         (get_ivts_expr): Removed.
7660         (allocate_basic_variable, insert_base_initialization): Use
7661         SET_SRC instead of *get_ivts_expr.
7662         (split_iv): Use &SET_SRC instead of get_ivts_expr.
7664 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
7666         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7667         (translate_isl_ast_for_loop): Add checking of the
7668         flag_loop_parallelize_all.
7669         (ast_build_before_for): New function.
7670         (scop_to_isl_ast): Add checking of the
7671         flag_loop_parallelize_all.
7672         * graphite-dependences.c: Move the defenition of the
7673         scop_get_dependences from graphite-optimize-isl.c to this file.
7674         (apply_schedule_on_deps): Add checking of the ux's emptiness.
7675         (carries_deps): Add checking of the x's value.
7676         * graphite-optimize-isl.c: Move the defenition of the
7677         scop_get_dependences to graphite-dependences.c.
7678         * graphite-poly.h: Add declarations of scop_get_dependences
7679         and carries_deps.
7681 2014-08-04  Rohit  <rohitarulraj@freescale.com>
7683         PR target/60102
7684         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7685         names.
7686         (alt_reg_names): Likewise.
7687         (rs6000_dwarf_register_span): For SPE high registers, replace
7688         dwarf register numbers with GCC hard register numbers.
7689         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7690         (rs6000_dbx_register_number): For SPE high registers, return dwarf
7691         register number for the corresponding GCC hard register number.
7692         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7693         newly added GCC hard register numbers for SPE high registers.
7694         (DWARF_FRAME_REGISTERS):  Likewise.
7695         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7696         (DWARF_FRAME_REGNUM): Likewise.
7697         (FIXED_REGISTERS): Likewise.
7698         (CALL_USED_REGISTERS): Likewise.
7699         (CALL_REALLY_USED_REGISTERS): Likewise.
7700         (REG_ALLOC_ORDER): Likewise.
7701         (enum reg_class): Likewise.
7702         (REG_CLASS_NAMES): Likewise.
7703         (REG_CLASS_CONTENTS): Likewise.
7704         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7706 2014-08-04  Richard Biener  <rguenther@suse.de>
7708         * gimple-fold.h (gimple_fold_builtin): Remove.
7709         * gimple-fold.c (gimple_fold_builtin): Make static.
7710         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7711         fold_stmt, not gimple_fold_builtin.
7713 2014-08-04  Martin Liska <mliska@suse.cz>
7715         * cgraph.h (csi_end_p): Removed.
7716         (csi_next): Likewise.
7717         (csi_node): Likewise.
7718         (csi_start): Likewise.
7719         (cgraph_node_in_set_p): Likewise.
7720         (cgraph_node_set_size): Likewise.
7721         (vsi_end_p): Likewise.
7722         (vsi_next): Likewise.
7723         (vsi_node): Likewise.
7724         (vsi_start): Likewise.
7725         (varpool_node_set_size): Likewise.
7726         (cgraph_node_set_nonempty_p): Likewise.
7727         (varpool_node_set_nonempty_p): Likewise.
7728         * cgraphunit.c (cgraph_process_new_functions): vec replaces
7729         cgraph_node_set.
7730         * ipa-inline-transform.c: Likewise.
7731         * ipa-utils.c (cgraph_node_set_new): Removed.
7732         (cgraph_node_set_add): Likewise.
7733         (cgraph_node_set_remove): Likewise.
7734         (cgraph_node_set_find): Likewise.
7735         (dump_cgraph_node_set): Likewise.
7736         (debug_cgraph_node_set): Likewise.
7737         (free_cgraph_node_set): Likewise.
7738         (varpool_node_set_new): Likewise.
7739         (varpool_node_set_add): Likewise.
7740         (varpool_node_set_remove): Likewise.
7741         (varpool_node_set_find): Likewise.
7742         (dump_varpool_node_set): Likewise.
7743         (free_varpool_node_set): Likewise.
7744         (debug_varpool_node_set): Likewise.
7745         * tree-emutls.c (struct tls_var_data):
7746         (emutls_index): Removed.
7747         (emutls_decl): Likewise.
7748         (gen_emutls_addr): Function implementation uses newly added
7749         hash_map<varpool_node *, tls_var_data>.
7750         (clear_access_vars): Likewise.
7751         (create_emultls_var): Likewise.
7752         (ipa_lower_emutls): Likewise.
7753         (reset_access): New function.
7755 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
7757         * config/i386/i386.c (ix86_option_override_internal): Add
7758         PTA_RDRND and PTA_MOVBE for bdver4.
7760 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7761             James Greenhalgh  <james.greenhalgh@arm.com>
7763         * doc/md.texi (clrsb): Document.
7764         (clz): Change reference to x into operand 1.
7765         (ctz): Likewise.
7766         (popcount): Likewise.
7768 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7770         PR target/61713
7771         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7772         move to subtarget in serial version if result is ignored.
7774 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7775             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7777         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7778         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
7779         (sched_analyze_insn): Update use of try_group_insn to
7780         sched_macro_fuse_insns.
7781         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7782         arguments that are not conditional jumps.
7784 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
7786         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7787         family information. Handle BTVER2 cpu with cpuid family value.
7789 2014-08-04  Tom de Vries  <tom@codesourcery.com>
7791         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7792         (glibc_2_11_or_earlier): Document effective-target keywords.
7794 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
7796         * ipa-devirt.c (odr_type_warn_count): Add type.
7797         (possible_polymorphic_call_targets): Set it.
7798         (ipa_devirt): Use it.
7800 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
7802         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7803         Document.
7804         * ipa-devirt.c: Include hash-map.h
7805         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7806         (clear_speculation): Break out of ...
7807         (get_class_context): ... here; speed up handling obviously useless
7808         speculations.
7809         (odr_type_warn_count, decl_warn_count): New structures.
7810         (final_warning_record): New structure.
7811         (final_warning_records): New static variable.
7812         (possible_polymorphic_call_targets): Cleanup handling of
7813         speculative info; do not build speculation when user do not care;
7814         record info about warnings when asked for.
7815         (add_decl_warning): New function.
7816         (type_warning_cmp): New function.
7817         (decl_warning_cmp): New function.
7818         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7819         (gate): Enable pass when warnings are requested.
7820         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7821         options.
7823 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
7825         * hash-map.h (default_hashmap_traits::mark_key_deleted):
7826         Fix cast.
7827         (hash_map::remove): New method.
7828         (hash_map::traverse): New method.
7829         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7830         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7831         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7832         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7833         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7834         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7835         pointer_map.
7837 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
7839         * hash-set.h: new File.
7840         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7841         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7842         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7843         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7844         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7845         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7846         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7847         varpool.c: Use hash_set instead of pointer_set.
7849 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
7851         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7853 2014-08-01  Jiong Wang <jiong.wang@arm.com>
7855         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7856         for frame access when strict_p is false.
7858 2014-08-01  Renlin Li <renlin.li@arm.com>
7859 2014-08-01  Jiong Wang <jiong.wang@arm.com>
7861         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7862         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7863         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7864         Declaration.
7865         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7866         predicate.
7867         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7868         aarch64_mem_pair_offset.
7870 2014-08-01  Jiong Wang <jiong.wang@arm.com>
7872         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7873         offset.
7874         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7875         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7877 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
7879         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7881 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
7883         PR regression/61510
7884         * cgraphunit.c (analyze_functions): Use get_create rather than get
7885         for decls which are clones of abstract functions.
7887 2014-08-01  Martin Liska  <mliska@suse.cz>
7889         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7890         * ipa-prop.h (count_formal_params): Global function created from static.
7891         * ipa-prop.c (count_formal_params): Likewise.
7892         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7893         profiles for semantically equivalent functions.
7894         * passes.c (do_per_function): If we load body of a function
7895         during WPA, this condition should behave same.
7896         * varpool.c (ctor_for_folding): More tolerant assert for variable
7897         aliases created during WPA.
7899 2014-08-01  Martin Liska  <mliska@suse.cz>
7901         * doc/invoke.texi (Options That Control Optimization): Documentation
7902         for -foptimize-strlen introduced. Optimization levels default options
7903         fixed.
7905 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
7907         * opts.c (common_handle_option): Handle -fsanitize=alignment.
7908         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7909         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7910         type to bool.
7911         * stor-layout.h (min_align_of_type): New prototype.
7912         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7913         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
7914         check.
7915         * ubsan.c: Include builtins.h.
7916         (ubsan_expand_bounds_ifn): Change return type to bool,
7917         always return true.
7918         (ubsan_expand_null_ifn): Change return type to bool, change
7919         argument to gimple_stmt_iterator *.  Handle both null and alignment
7920         sanitization, take type from ckind argument's type rather than
7921         first argument.
7922         (instrument_member_call): Removed.
7923         (instrument_mem_ref): Remove t argument, add mem and base arguments.
7924         Handle both null and alignment sanitization, don't say whole
7925         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
7926         call instead of 2 argument.
7927         (instrument_null): Adjust instrument_mem_ref caller.  Don't
7928         instrument calls here.
7929         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7930         like SANITIZE_NULL.
7931         * stor-layout.c (min_align_of_type): New function.
7932         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7933         Or it into SANITIZE_UNDEFINED.
7934         * doc/invoke.texi (-fsanitize=alignment): Document.
7936 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7938         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7940 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7942         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7943         inchash.
7944         (vn_reference_compute_hash): Dito.
7945         (vn_nary_op_compute_hash): Dito.
7946         (vn_phi_compute_hash): Dito.
7947         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7949 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7951         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7952         Rename to inchash:add_expr_commutative. Convert to inchash.
7953         (iterative_hash_hashable_expr): Rename to
7954         inchash:add_hashable_expr. Convert to inchash.
7955         (avail_expr_hash): Dito.
7957 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7959         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7960         Convert to inchash.
7962 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7964         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7966 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7968         * Makefile.in (OBJS): Add rtlhash.o
7969         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7970         (loc_checksum): Dito.
7971         (loc_checksum_ordered): Dito.
7972         (hash_loc_operands): Dito.
7973         (hash_locs): Dito.
7974         (hash_loc_list): Dito.
7975         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7976         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7977         * rtlhash.c: New file.
7978         * rtlhash.h: New file.
7980 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7982         * inchash.h (inchash): Change inchash class to namespace.
7983         (class hash): ... Rename from inchash.
7984         (add_object): Move from macro to class template.
7985         * lto-streamer-out.c (hash_tree): Change inchash
7986         to inchash::hash.
7987         * tree.c (build_type_attribute_qual_variant): Dito.
7988         (type_hash_list): Dito.
7989         (attribute_hash_list): Dito.
7990         (iterative_hstate_expr): Rename to inchash::add_expr
7991         (build_range_type_1): Change inchash to inchash::hash
7992         and use hash::add_expr.
7993         (build_array_type_1): Dito.
7994         (build_function_type): Dito
7995         (build_method_type_directly): Dito.
7996         (build_offset_type): Dito.
7997         (build_complex_type): Dito.
7998         (make_vector_type): Dito.
7999         * tree.h (iterative_hash_expr): Dito.
8001 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
8003         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8005 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
8007         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8008         correct alphabetical position.
8009         (vpaddd_f64): Rewrite using builtins.
8010         (vpaddd_s64): Move to correct alphabetical position.
8011         (vpaddd_u64): New.
8013 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
8015         PR target/61844
8016         * config/sh/sh.c (sh_legitimate_address_p,
8017         sh_legitimize_reload_address): Handle reg+reg address modes when
8018         ALLOW_INDEXED_ADDRESS is false.
8019         * config/sh/predicates.md (general_movsrc_operand,
8020         general_movdst_operand): Likewise.
8022 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
8024         * config/aarch64/aarch64-builtins.c
8025         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8026         BYTES_BIG_ENDIAN.
8028 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
8030         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8031         the generated mask based on BYTES_BIG_ENDIAN.
8032         (aarch64_simd_check_vect_par_cnst_half): New.
8033         * config/aarch64/aarch64-protos.h
8034         (aarch64_simd_check_vect_par_cnst_half): New.
8035         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8036         the check out to aarch64_simd_check_vect_par_cnst_half.
8037         (vect_par_cnst_lo_half): Likewise.
8038         * config/aarch64/aarch64-simd.md
8039         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8040         (move_hi_quad_<mode>): Always generate a low mask.
8042 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8044         * doc/invoke.texi (AVR Options): Add documentation about
8045         __AVR_DEVICE_NAME__ built-in macro.
8047 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
8049         PR target/61948
8050         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8051         constraints are satisfied.
8052         (<shift>di3_neon): Likewise.
8054 2014-07-31  Richard Biener  <rguenther@suse.de>
8056         PR tree-optimization/61964
8057         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8058         by structural equality.
8060 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
8062         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8063         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8064         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8065         New enums.
8066         * gcc.c (sanitize_spec_function): Support new option.
8067         (SANITIZER_SPEC): Remove now redundant check.
8068         * opts.c (common_handle_option): Support new option.
8069         (finish_options): Check for incompatibilities.
8070         * toplev.c (process_options): Split userspace-specific checks.
8072 2014-07-31  Richard Biener  <rguenther@suse.de>
8074         * lto-streamer.h (struct output_block): Remove global.
8075         (struct data_in): Remove labels, num_named_labels and
8076         num_unnamed_labels.
8077         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8078         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8080 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
8082         PR c++/60517
8083         * common.opt (-Wreturn-local-addr): Moved from c.opt.
8084         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8085         (isolate_path): New argument to avoid inserting a trap.
8086         (find_implicit_erroneous_behaviour): Handle returning the address
8087         of a local variable.
8088         (find_explicit_erroneous_behaviour): Likewise.
8090 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
8092         PR lto/61868
8093         * toplev.c (init_random_seed): Move piece of code never called to
8094         set_random_seed.
8095         (set_random_seed): see above.
8097 2014-07-31  Tom de Vries  <tom@codesourcery.com>
8099         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8101 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
8103         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8104         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8106 2014-07-31  Richard Biener  <rguenther@suse.de>
8108         * data-streamer.h (streamer_write_data_stream): Declare here,
8109         renamed from ...
8110         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
8111         * lto-cgraph.c (lto_output_node): Adjust.
8112         (lto_output_varpool_node): Likewise.
8113         * data-streamer-out.c (streamer_string_index): Likewise.
8114         (streamer_write_data_stream, lto_append_block): Move from ...
8115         * lto-section-out.c (lto_output_data_stream,
8116         lto_append_block): ... here.
8118 2014-07-30  Mike Stump  <mikestump@comcast.net>
8120         * configure.ac: Also check for popen.
8121         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8122         * configure: Regenerate.
8123         * config.in:  Regenerate.
8125 2014-07-30  Martin Jambor  <mjambor@suse.cz>
8127         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8128         parameter to gimple.
8130 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8132         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8133         address as second parameter to __tpf_eh_return routine.
8135 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
8137         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8138         Thumb2.
8140 2014-07-30  Tom Tromey  <tromey@redhat.com>
8142         PR c/59855
8143         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8144         * doc/extend.texi (Type Attributes): Document designated_init
8145         attribute.
8147 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
8149         * graphite-isl-ast-to-gimple.c:
8150         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8151         (gcc_expression_from_isl_expression): Pass type to
8152         gcc_expression_from_isl_ast_expr_id.
8154 2014-07-30  Richard Biener  <rguenther@suse.de>
8156         * lto-streamer.h (lto_write_data): New function.
8157         * langhooks.c (lhd_append_data): Do not free block.
8158         * lto-section-out.c (lto_write_data): New function writing
8159         raw data to the current section.
8160         (lto_write_stream): Adjust for langhook semantic change.
8161         (lto_destroy_simple_output_block): Write header directly.
8162         * lto-opts.c (lto_write_options): Write options directly.
8163         * lto-streamer-out.c (produce_asm): Write heaeder directly.
8164         (lto_output_toplevel_asms): Likewise.
8165         (copy_function_or_variable): Copy data directly.
8166         (write_global_references): Output index table directly.
8167         (lto_output_decl_state_refs): Likewise.
8168         (write_symbol): Write data directly.
8169         (produce_symtab): Adjust.
8170         (produce_asm_for_decls): Output header and refs directly.
8172 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
8174         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8175         to speculative_targets
8176         (get_class_context): Fix handling of contextes without outer type;
8177         avoid matching non-polymorphic types in LTO.
8178         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8179         parameter to speculative_targetsp; handle speculation.
8180         (dump_possible_polymorphic_call_targets): Update dumping.
8182 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
8184         * common.opt (Wodr): Enable by default.
8186 2014-07-29  Olivier Hainque  <hainque@adacore.com>
8188         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8190 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
8192         PR bootstrap/61914
8193         * gengtype.c (strtoken): New function.
8194         (create_user_defined_type): Replace strtok with strtoken.
8196 2014-07-29  Nathan Sidwell  <nathan@acm.org>
8198         * gcov-io.c (gcov_var): Make hidden.
8199         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8200         (gcov_do_dump): Declare.
8201         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8203 2014-07-29  Martin Jambor  <mjambor@suse.cz>
8205         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8206         parameter to gimple.
8207         (sra_modify_assign): Likewise.
8209 2014-07-29  Richard Biener  <rguenther@suse.de>
8211         PR middle-end/52478
8212         * expr.c (expand_expr_real_2): Revert last change.
8214 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
8216         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8217         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8218         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8219         call.
8220         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8221         (contains_type_p): Forward declare.
8222         (polymorphic_call_target_hasher::hash): Hash speculative info.
8223         (polymorphic_call_target_hasher::equal): Compare speculative info.
8224         (get_class_context): Handle speuclation.
8225         (contains_type_p): Update.
8226         (get_polymorphic_call_info_for_decl): Update.
8227         (walk_ssa_copies): Break out from ...
8228         (get_polymorphic_call_info): ... here; set speculative context
8229         before giving up.
8230         * ipa-prop.c (ipa_write_indirect_edge_info,
8231         ipa_read_indirect_edge_info): Stream speculative context.
8232         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8233         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8234         SPECULATIVE_MAYBE_DERIVED_TYPE).
8235         (possible_polymorphic_call_targets overriders): Update.
8236         (dump_possible_polymorphic_call_targets overriders): Update.
8237         (dump_possible_polymorphic_call_target_p overriders): Update.
8239 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
8241         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8242         ipa-devirt path; fix thinko there.
8244 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
8246         * config/i386/i386.c (ix86_return_in_memory): Replace one
8247         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8249 2014-07-28  Marek Polacek  <polacek@redhat.com>
8251         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
8253 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
8255         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8256         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8257         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8258         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8259         (USE_LD_AS_NEEDED): Likewise.
8260         (ASM_APP_ON): Likewise.
8261         (ASM_APP_OFF): Likewise.
8262         (TARGET_POSIX_IO): Likewise.
8263         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8264         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8265         (USE_LD_AS_NEEDED): Likewise.
8266         (ASM_APP_ON): Likewise.
8267         (ASM_APP_OFF): Likewise.
8268         (TARGET_POSIX_IO): Likewise.
8270 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
8272         PR middle-end/61734
8273         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8274         operators other than the equality operators.
8276 2014-07-28  Richard Biener  <rguenther@suse.de>
8278         PR middle-end/52478
8279         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8280         sure to register SImode ones, not only >= word_mode ones.
8281         * expr.c (expand_expr_real_2): When expanding -ftrapv
8282         binops do not use OPTAB_LIB_WIDEN.
8284 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
8286         PR middle-end/61919
8287         * tree-outof-ssa.c (insert_partition_copy_on_edge)
8288         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8289         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8290         inserting them in the insn stream.
8292 2014-07-28  Marek Polacek  <polacek@redhat.com>
8294         PR middle-end/61913
8295         * common.opt (Wodr): Add Var.
8297 2014-07-28  Richard Biener  <rguenther@suse.de>
8299         PR tree-optimization/61921
8300         * tree-ssa-structalias.c (create_variable_info_for_1): Check
8301         if there is a varpool node before dereferencing it.
8303 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
8305         * graphite-sese-to-poly.c:
8306         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8307         id of the pbb), which contains pointer to the pbb1.
8309         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8311 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
8313         * graphite-isl-ast-to-gimple.c:
8314         (graphite_create_new_guard): New function.
8315         (translate_isl_ast_node_if): New function.
8316         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8318         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8320 2014-07-27  Anthony Green  <green@moxielogic.com>
8322         * config.gcc: Add moxie-*-moxiebox* configuration.
8323         * config/moxie/moxiebox.h: New file.
8325 2014-07-26  Andrew Pinski  <apinski@cavium.com>
8327         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8328         from the read only register.
8330 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
8332         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8333         as the allocation class if it isn't likely to be spilled.
8335 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
8337         * rtl.h (tls_referenced_p): Declare.
8338         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8339         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8340         (mips_cannot_force_const_mem): Use tls_referenced_p.
8341         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8342         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8343         instead of pa_tls_referenced_p.
8344         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8345         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8346         (pa_legitimate_constant_p): Likewise.
8347         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8348         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8349         (rs6000_cannot_force_const_mem, rs6000_emit_move)
8350         (rs6000_address_for_altivec): Use tls_referenced_p instead of
8351         rs6000_tls_referenced_p.
8352         (rs6000_tls_symbol_ref_1): Delete.
8354 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
8356         PR target/44551
8357         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8358         Optimize inverse of a VEC_CONCAT.
8360 2014-07-25  Xinliang David Li  <davidxl@google.com>
8362         * params.def: New parameter.
8363         * coverage.c (get_coverage_counts): Check new flag.
8364         (coverage_compute_profile_id): Check new flag.
8365         (coverage_begin_function): Check new flag.
8366         (coverage_end_function): Check new flag.
8367         * value-prof.c (coverage_node_map_initialized_p): New function.
8368         (init_node_map): Populate map with all functions.
8369         * doc/invoke.texi: Document new parameter.
8371 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
8372             Richard Biener <rguenther@suse.de>
8374         * lto-streamer-out.c (struct sccs): Turn to ...
8375         (class DFS): ... this one; refactor the DFS walk so it can
8376         be re-done on per-SCC basis.
8377         (DFS::DFS): New constructor.
8378         (DFS::~DFS): New destructor.
8379         (hash_tree): Add new MAP argument holding in-SCC hash values;
8380         remove POINTER_TYPE hashing hack.
8381         (scc_entry_compare): Rename to ...
8382         (DFS::scc_entry_compare): ... this one.
8383         (hash_scc): Rename to ...
8384         (DFS::hash_scc): ... this one; pass output_block instead
8385         of streamer_cache; work harder to get unique and stable SCC
8386         hashes.
8387         (DFS_write_tree): Rename to ...
8388         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8389         (lto_output_tree): Update.
8391 2014-07-25  Andi Kleen  <ak@linux.intel.com>
8393         * lto-streamer-out.c (hash_tree): Convert to inchash.
8395 2014-07-25  Andi Kleen  <ak@linux.intel.com>
8397         * tree.c (build_type_attribute_qual_variant): Use inchash.
8398         (type_hash_list): Dito.
8399         (attribute_hash_list): Dito
8400         (iterative_hstate_expr): Dito.
8401         (iterative_hash_expr): Dito.
8402         (build_range_type_1): Dito.
8403         (build_array_type_1): Dito.
8404         (build_function_type): Dito.
8405         (build_method_type_directly): Dito.
8406         (build_offset_type): Dito.
8407         (build_complex_type): Dito.
8408         (make_vector_type): Dito.
8409         * tree.h (iterative_hash_expr): Add compat wrapper.
8410         (iterative_hstate_expr): Add.
8412 2014-07-25  Andi Kleen  <ak@linux.intel.com>
8414         * Makefile.in (OBJS): Add inchash.o.
8415         (PLUGIN_HEADERS): Add inchash.h.
8416         * ipa-devirt.c: Include inchash.h.
8417         * lto-streamer-out.c: Dito.
8418         * tree-ssa-dom.c: Dito.
8419         * tree-ssa-pre.c: Dito.
8420         * tree-ssa-sccvn.c: Dito.
8421         * tree-ssa-tail-merge.c: Dito.
8422         * asan.c: Dito.
8423         * tree.c (iterative_hash_hashval_t): Move to ...
8424         (iterative_hash_host_wide_int): Move to ...
8425         * inchash.c: Here. New file.
8426         * tree.h (iterative_hash_hashval_t): Move to ...
8427         (iterative_hash_host_wide_int): Move to ...
8428         * inchash.h: Here. New file.
8430 2014-07-25  Richard Biener  <rguenther@suse.de>
8432         PR middle-end/61762
8433         PR middle-end/61894
8434         * fold-const.c (native_encode_int): Add and handle offset
8435         parameter to do partial encodings of expr.
8436         (native_encode_fixed): Likewise.
8437         (native_encode_real): Likewise.
8438         (native_encode_complex): Likewise.
8439         (native_encode_vector): Likewise.
8440         (native_encode_string): Likewise.
8441         (native_encode_expr): Likewise.
8442         * fold-const.c (native_encode_expr): Add offset parameter
8443         defaulting to -1.
8444         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8445         (fold_ctor_reference): Handle all reads from tcc_constant
8446         ctors.
8448 2014-07-25  Richard Biener  <rguenther@suse.de>
8450         * tree-inline.c (estimate_move_cost): Mark speed_p argument
8451         as possibly unused.
8453 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8455         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8457 2014-07-24  Kyle McMartin  <kyle@redhat.com>
8459         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8461 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8463         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8464         Add prototype.
8465         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8466         function.
8467         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8468         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8469         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8471 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8473         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8474         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8475         aggregate types.  Instead, *all* aggregate types, except for single-
8476         element or homogeneous float/vector aggregates, are quadword-aligned
8477         if required by their type alignment.  Issue -Wpsabi note when a type
8478         is now treated differently than before.
8480 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8482         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8483         does not fit fully into floating-point registers, and there is still
8484         space in the register parameter area, use GPRs to pass those parts
8485         of the argument.  Issue -Wpsabi note if any parameter is now treated
8486         differently than before.
8487         (rs6000_arg_partial_bytes): Update.
8489 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
8491         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8493 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
8495         * rtl.h (target_rtl): Remove lang_dependent_initialized.
8496         * toplev.c (initialize_rtl): Don't use it.  Move previously
8497         "language-dependent" calls to...
8498         (backend_init): ...here.
8499         (lang_dependent_init_target): Don't set lang_dependent_initialized.
8500         Assert that RTL initialization hasn't happend yet.
8502 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
8504         PR rtl-optimization/61629
8505         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8506         they have already been initialized.
8508 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
8510         PR middle-end/61268
8511         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8512         DECL_INCOMING_RTL and entry_parm.
8513         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8514         * calls.c (load_register_parameters): Likewise argument values.
8515         (emit_library_call_value_1, store_one_arg): Likewise argument
8516         save areas.
8517         * config/i386/i386.c (assign_386_stack_local): Likewise the local
8518         stack slot.
8519         * explow.c (validize_mem): Modify the argument in-place.
8521 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
8523         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8524         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8526 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
8528         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8529         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8531 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
8533         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8534         (aarch64_save_callee_saves): New parameter "skip_wb".
8535         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8537 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
8539         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8540         "wb_candidate2".
8541         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8543 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
8545         * graphite-isl-ast-to-gimple.c:
8546         (graphite_create_new_loop): Add calling of isl_id_free to properly
8547         decrement reference counts.
8549         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8551 2014-07-24  Martin Liska  <mliska@suse.cz>
8552         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8553         function used.
8554         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8555         (rs6000_code_end): Likewise.
8557 2014-07-24  Martin Liska  <mliska@suse.cz>
8559         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8560         symtab_node funtion used.
8561         (rs6000_xcoff_declare_object_name): Likewise.
8563 2014-07-24  Martin Liska  <mliska@suse.cz>
8565         * cgraphunit.c (compile): Correct function used.
8567 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
8569         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8570         as non-indexable.
8572 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
8574         PR lto/61802
8575         * varasm.c (bss_initializer_p): Handle offlined ctors.
8576         (align_variable, get_variable_align): Likewise.
8577         (make_decl_one_only): Likewise.
8578         (default_binds_local_p_1): Likewise.
8579         (decl_binds_to_current_def_p): Likewise.
8580         (get_variable_section): Get constructor if it is offlined.
8581         (assemble_variable_contents): Sanity check that the caller
8582         streamed in the ctor in LTO.
8584 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
8586         * graphite-isl-ast-to-gimple.c:
8587         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8588         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8589         isl_ast_op_pdiv_r to the different case.
8591         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8593 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8595         PR middle-end/61876
8596         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8597         when flag_errno_math is on.
8599 2014-07-24  Martin Liska  <mliska@suse.cz>
8601         * cgraph.h (varpool_node):
8602         (availability get_availability (void)):
8603         created from cgraph_variable_initializer_availability
8604         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8605         created from: cgraph_variable_initializer_availability
8606         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8607         (void finalize_named_section_flags (void)):
8608         created from varpool_finalize_named_section_flags
8609         (bool assemble_decl (void)): created from varpool_assemble_decl
8610         (void analyze (void)): created from varpool_analyze_node
8611         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8612         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8613         (void remove_initializer (void)): created from varpool_remove_initializer
8614         (tree get_constructor (void)): created from varpool_get_constructor
8615         (bool externally_visible_p (void)): created from varpool_externally_visible_p
8616         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8617         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8618         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8619         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8620         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8621         (static bool output_variables (void)): created from varpool_output_variables
8622         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8623         created from varpool_extra_name_alias
8624         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8625         (static void dump_varpool (FILE *f)): created from dump_varpool
8626         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8627         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8628         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8629         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8630         (void assemble_aliases (void)): created from assemble_aliases
8632 2014-07-24  Martin Liska  <mliska@suse.cz>
8634         * cgraph.h (symtab_node):
8635         (void register_symbol (void)): created from symtab_register_node
8636         (void remove (void)): created from symtab_remove_node
8637         (void dump (FILE *f)): created from dump_symtab_node
8638         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8639         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8640         (struct ipa_ref *add_reference (symtab_node *referred_node,
8641         enum ipa_ref_use use_type)): created from add_reference 
8642         (struct ipa_ref *add_reference (symtab_node *referred_node,
8643         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8644         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8645         gimple stmt)): created from maybe_add_reference
8646         (bool semantically_equivalent_p (symtab_node *target)): created from
8647         symtab_semantically_equivalent_p
8648         (void remove_from_same_comdat_group (void)): created from
8649         remove_from_same_comdat_group
8650         (void add_to_same_comdat_group (symtab_node *old_node)): created from
8651         symtab_add_to_same_comdat_group
8652         (void dissolve_same_comdat_group_list (void)): created from
8653         symtab_dissolve_same_comdat_group_list
8654         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8655         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8656         created from symtab_alias_ultimate_target
8657         (inline symtab_node *next_defined_symbol (void)): created from
8658         symtab_next_defined_symbol
8659         (bool resolve_alias (symtab_node *target)): created from
8660         symtab_resolve_alias
8661         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8662         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8663         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8664         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8665         (void set_section (const char *section)): created from set_section_1 
8666         (enum availability get_availability (void)): created from symtab_node_availability
8667         (void make_decl_local (void)): created from symtab_make_decl_local
8668         (bool real_symbol_p (void)): created from symtab_read_node
8669         (can_be_discarded_p (void)): created from symtab_can_be_discarded
8670         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8671         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8672         symtab_in_same_comdat_p;
8673         (bool address_taken_from_non_vtable_p (void)): created from
8674         address_taken_from_non_vtable_p
8675         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8676         (static void dump_table (FILE *)): created from dump_symtab
8677         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8678         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8679         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8680         symtab_used_from_object_file_p 
8681         (void dump_base (FILE *)): created from dump_symtab_base
8682         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8683         (void unregister (void)): created from symtab_unregister_node
8684         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8685         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8686         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8687         symtab_nonoverwritable_alias_1
8688         * cgraph.h (cgraph_node):
8689         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8690         created from cgraph_remove_node_and_inline_clones
8691         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8692         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8693         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8694         (cgraph_node *function_symbol (enum availability *avail = NULL)):
8695         created from cgraph_function_node
8696         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8697         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8698         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8699         created from cgraph_create_clone 
8700         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8701         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8702         created from cgraph_create_virtual_clone
8703         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8704         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8705         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8706         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8707         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8708         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8709         created from cgraph_function_version_info
8710         (struct cgraph_function_version_info *insert_new_function_version (void)):
8711         created from insert_new_cgraph_node_version
8712         (struct cgraph_function_version_info *function_version (void)): created from
8713         get_cgraph_node_version
8714         (void analyze (void)): created from analyze_function
8715         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8716         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8717         tree real_alias) cgraph_add_thunk
8718         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8719         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8720         created from cgraph_function_or_thunk_node
8721         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8722         created from expand_thunk
8723         (void reset (void)): created from cgraph_reset_node
8724         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8725         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8726         (void remove (void)): created from cgraph_remove_node
8727         (void dump (FILE *f)): created from dump_cgraph_node
8728         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8729         (bool get_body (void)): created from cgraph_get_body
8730         (void release_body (void)): created from cgraph_release_function_body
8731         (void unnest (void)): created from cgraph_unnest_node
8732         (void make_local (void)): created from cgraph_make_node_local
8733         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8734         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8735         gcov_type count, int freq)): created from cgraph_create_edge
8736         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8737         gcov_type count, int freq)): created from cgraph_create_indirect_edge
8738         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8739         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8740         created from cgraph_create_edge_including_clones
8741         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8742         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8743         (void remove_callers (void)): created from cgraph_node_remove_callers
8744         (void remove_callees (void)): created from cgraph_node_remove_callees
8745         (enum availability get_availability (void)): created from cgraph_function_body_availability
8746         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8747         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8748         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8749         (void call_duplication_hooks (cgraph_node *node2)): created from
8750         cgraph_call_node_duplication_hooks
8751         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8752         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8753         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8754         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8755         (void call_function_insertion_hooks (void)):
8756         created from cgraph_call_function_insertion_hooks
8757         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8758         (bool local_p (void)): created from cgraph_local_node
8759         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8760         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8761         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8762         (inline bool only_called_directly_or_aliased_p (void)):
8763         created from cgraph_only_called_directly_or_aliased_p
8764         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8765         created from cgraph_will_be_removed_from_program_if_no_direct_calls
8766         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8767         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8768         (bool can_remove_if_no_direct_calls_p (void)):
8769         created from cgraph_can_remove_if_no_direct_calls_p
8770         (inline bool has_gimple_body_p (void)):
8771         created from cgraph_function_with_gimple_body_p
8772         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8773         (static void dump_cgraph (FILE *f)): created from dump_cgraph
8774         (static inline void debug_cgraph (void)): created from debug_cgraph
8775         (static void record_function_versions (tree decl1, tree decl2)):
8776         created from record_function_versions
8777         (static void delete_function_version (tree decl)):
8778         created from delete_function_version
8779         (static void add_new_function (tree fndecl, bool lowered)):
8780         created from cgraph_add_new_function
8781         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8782         (static cgraph_node * create (tree decl)): created from cgraph_create_node
8783         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8784         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8785         (static cgraph_node *get_for_asmname (tree asmname)):
8786         created from cgraph_node_for_asm
8787         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8788         created from cgraph_same_body_alias 
8789         (static bool used_from_object_file_p_worker (cgraph_node *node,
8790         void *): new function
8791         (static bool non_local_p (cgraph_node *node, void *)):
8792         created from cgraph_non_local_node_p_1
8793         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8794         created from verify_cgraph
8795         (static bool make_local (cgraph_node *node, void *)):
8796         created from cgraph_make_node_local
8797         (static cgraph_node *create_alias (tree alias, tree target)):
8798         created from cgraph_create_function_alias
8799         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8800         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8801         created from cgraph_create_edge_1
8802         * cgraph.h (varpool_node):
8803         (void remove (void)): created from varpool_remove_node
8804         (void dump (FILE *f)): created from dump_varpool_node
8806 2014-07-24  Richard Biener  <rguenther@suse.de>
8808         PR ipa/61823
8809         * tree-ssa-structalias.c (create_variable_info_for_1):
8810         Use varpool_get_constructor.
8811         (create_variable_info_for): Likewise.
8813 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
8815         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8816         subtract outgoing area size when restoring stack_pointer_rtx.
8818 2014-07-24  Nick Clifton  <nickc@redhat.com>
8820         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8821         that operations are taking place in parallel.
8822         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8824 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
8826         * omp-low.c (extract_omp_for_data): Add missing break statement.
8828 2014-07-24  Richard Biener  <rguenther@suse.de>
8830         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8831         * tree-inline.c (estimate_move_cost): Add speed_p parameter
8832         and adjust MOVE_RATIO query accordingly.
8833         (estimate_num_insns): Adjust callers.
8834         * ipa-prop.c (ipa_populate_param_decls): Likewise.
8835         * ipa-cp.c (gather_context_independent_values,
8836         estimate_local_effects): Likewise.
8837         * ipa-split.c (consider_split): Likewise.
8839 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
8841         * config/i386/driver-i386.c: Remove names of unused arguments and
8842         unnecessary unused attributes.
8843         * config/i386/host-mingw32.c: Likewise.
8844         * config/i386/i386.c: Likewise.
8845         * config/i386/winnt-stubs.c: Likewise.
8846         * config/i386/winnt.c: Likewise.
8848 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8850         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8851         (aarch64_gen_loadwb_pair): New helper function.
8852         (aarch64_expand_epilogue): Simplify code using new helper functions.
8853         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8855 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8857         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8858         (aarch64_gen_storewb_pair): New helper function.
8859         (aarch64_expand_prologue): Simplify code using new helper functions.
8860         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8862 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8864         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8865         Rename to aarch64_save_callee_saves, remove restore code.
8866         (aarch64_restore_callee_saves): New function.
8868 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8870         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8871         (aarch64_save_callee_saves): New function to handle reg save
8872         for both core and vectore regs.
8874 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8876         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8877         (aarch64_gen_store_pair): New helper function.
8878         (aarch64_save_or_restore_callee_save_registers)
8879         (aarch64_save_or_restore_fprs): Use new helper functions.
8881 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8883         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8884         (aarch64_save_or_restore_callee_save_registers)
8885         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8887 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8889         * config/aarch64/aarch64.c
8890         (aarch64_save_or_restore_callee_save_registers)
8891         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8893 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8895         * config/aarch64/aarch64.c
8896         (aarch64_save_or_restore_callee_save_registers)
8897         (aarch64_save_or_restore_fprs): Remove 'increment'.
8899 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8901         * config/aarch64/aarch64.c
8902         (aarch64_save_or_restore_callee_save_registers)
8903         (aarch64_save_or_restore_fprs): Use register offset in
8904         cfun->machine->frame.reg_offset.
8906 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8908         * config/aarch64/aarch64.c
8909         (aarch64_save_or_restore_callee_save_registers)
8910         (aarch64_save_or_restore_fprs): Remove base_rtx.
8912 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8914         * config/aarch64/aarch64.c
8915         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8916         to 'start_offset'.  Remove local variable 'start_offset'.
8918 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8920         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8921         type to HOST_WIDE_INT.
8923 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8925         * config/aarch64/aarch64.c (aarch64_expand_prologue)
8926         (aarch64_save_or_restore_fprs)
8927         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8929 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8931         * config/arm/t-rtems-eabi: Add
8932         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8933         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8934         mbig-endian/mthumb/march=armv7-r, and
8935         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8936         multilibs.
8938 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8939             Chris Johns <chrisj@rtems.org>
8940             Joel Sherrill <joel.sherrill@oarcorp.com>
8942         * config.gcc: Add nios2-*-rtems*.
8943         * config/nios2/rtems.h: New file.
8944         * gcc/config/nios2/t-rtems: New file.
8946 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
8948         PR target/61396
8949         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8950         constant numbers, not general constants.
8951         (rs6000_expand_vector_init): Ditto.
8953 2014-07-23  Nathan Sidwell  <nathan@acm.org>
8955         * gcov-tool.c (gcov_list): Declare here.
8956         (set_gcov_list): Remove.
8957         (gcov_output_files): Set gcov_list directly.
8959 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
8961         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8963 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8965         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8966         callee-saved registers are available for padding purpose
8967         and r3 is not mandatory, then prefer use those callee-saved
8968         instead of r3.
8970 2014-07-23  Richard Biener  <rguenther@suse.de>
8972         * params.def (PARAM_MAX_COMBINE_INSNS): New.
8973         * combine.c: Include statistics.h and params.h.
8974         (combine_instructions): Guard three and four insn combines
8975         with max-combine-insns value.  Record statistics for combines
8976         performed.
8977         * doc/invoke.texi (max-combine-insns): Document new param.
8979 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
8981         * graphite-isl-ast-to-gimple.c:
8982         (translate_isl_ast_node_block): New function.
8983         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8985         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8986         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8988 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
8990         * graphite-isl-ast-to-gimple.c:
8991         (get_max_schedule_dimensions): New function.
8992         (extend_schedule): Likewise.
8993         (generate_isl_schedule): Add calling of extend_schedule and
8994         get_max_schedule_dimensions.
8996 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8998         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8999         (case UNSPEC): Handle UNSPEC_RBIT.
9001 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9003         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9004         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9006 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9008         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9010 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
9012         * graphite-isl-ast-to-gimple.c:
9013         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9014         (ivs_params_clear):
9015         (build_iv_mapping): New function.
9016         (translate_isl_ast_node_user): Likewise.
9017         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9019         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9020         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9021         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9023 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
9025         PR target/55701
9026         * config/arm/arm.md (setmem): New pattern.
9027         * config/arm/arm-protos.h (struct tune_params): New fields.
9028         (arm_gen_setmem): New prototype.
9029         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9030         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9031         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9032         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9033         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9034         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9035         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9036         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9037         (arm_const_inline_cost): New function.
9038         (arm_block_set_max_insns): New function.
9039         (arm_block_set_non_vect_profit_p): New function.
9040         (arm_block_set_vect_profit_p): New function.
9041         (arm_block_set_unaligned_vect): New function.
9042         (arm_block_set_aligned_vect): New function.
9043         (arm_block_set_unaligned_non_vect): New function.
9044         (arm_block_set_aligned_non_vect): New function.
9045         (arm_block_set_vect, arm_gen_setmem): New functions.
9047 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
9049         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9051 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
9053         PR target/61855
9054         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9055         out of #ifdef __OPTIMIZE__.
9057 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
9059         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9060         different trapping status if -fnon-call-exceptions is enabled.
9062 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
9064         * expr.c (store_field): Handle VOIDmode for calls that return values
9065         in multiple locations.
9067 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9069         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
9070         (altivec_vsldoi_<mode>): Likewise.
9072 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
9074         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9075         to the number of characters in the line.
9077 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
9079         * graphite-isl-ast-to-gimple.c: Add using of
9080         build_nonstandard_integer_type instead of int128_integer_type_node.
9082 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
9084         * toplev.c (output_stack_usage): Adjust the location of the warning.
9086 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
9088         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9089         (*membar_storeload): Disable for LEON3.
9091 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9093         PR rtl-optimization/61461
9094         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9096 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
9098         PR target/61794
9099         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9100         Fix instruction constraint.
9101         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9103 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
9105         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9107 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
9109         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9110         GNU coding standards.
9111         (nds32_register_move_cost): Likewise.
9112         (nds32_memory_move_cost): Likewise.
9113         (nds32_address_cost): Likewise.
9115 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9117         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9119 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
9121         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9122         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9123         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9124         (HAVE_sync_compare_and_swapqi): Define.
9125         (HAVE_sync_compare_and_swaphi): Likewise.
9126         (HAVE_sync_compare_and_swapsi): Likewise.
9128 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
9130         * config/mips/p5600.md: Add missing cpu tests.
9132 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9134         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9135         (vmla_f64): Likewise.
9136         (vfms_f64): Likewise.
9137         (vmls_f64): Likewise.
9139 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9141         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9142         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9144 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9146         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9147         (vmlal_high_lane_s32): Likewise.
9148         (vmlal_high_lane_u16): Likewise.
9149         (vmlal_high_lane_u32): Likewise.
9150         (vmlsl_high_lane_s16): Likewise.
9151         (vmlsl_high_lane_s32): Likewise.
9152         (vmlsl_high_lane_u16): Likewise.
9153         (vmlsl_high_lane_u32): Likewise.
9155 2014-07-17  Terry Guo  <terry.guo@arm.com>
9157         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9158         (alus_reg): Renamed to alus_sreg.
9159         * config/arm/arm-fixed.md: Change type of non-dsp instructions
9160         from alu_reg to alu_sreg.  Change type of dsp instructions from
9161         alu_reg to alu_dsp_reg.
9162         * config/arm/thumb1.md: Likewise.
9163         * config/arm/thumb2.md: Likewise.
9164         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9165         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9166         with alu_sreg and alus_sreg.
9167         * config/arm/arm1026ejs.md (alu_op): Likewise.
9168         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9169         * config/arm/arm926ejs.md (9_alu_op): Likewise.
9170         * config/arm/fa526.md (526_alu_op): Likewise.
9171         * config/arm/fa606te.md (606te_alu_op): Likewise.
9172         * config/arm/fa626te.md (626te_alu_op): Likewise.
9173         * config/arm/fa726te.md (726te_alu_op): Likewise.
9174         * config/arm/fmp626.md (mp626_alu_op): Likewise.
9175         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9176         alu_sreg, alu_dsp_reg and alus_sreg.
9177         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9178         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9179         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9180         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9181         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9182         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9183         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9184         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9185         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9186         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9187         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9188         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9189         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9190         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9191         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9192         alus_reg to alus_sreg.
9194 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
9196         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9197         infinity format.
9199 2014-07-17  Richard Biener  <rguenther@suse.de>
9201         PR rtl-optimization/61801
9202         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9203         don't set reg_pending_barrier if it appears in a debug-insn.
9205 2014-07-16  DJ Delorie  <dj@redhat.com>
9207         * config/rx/rx.c (rx_option_override): Fix alignment values.
9208         (rx_align_for_label): Likewise.
9210 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
9212         PR target/61737.
9213         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9214         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9215         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9216         functions.
9217         (cris_print_index, cris_print_operand, cris_constant_index_p)
9218         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9219         (cris_address_cost): Ditto last CONSTANT_P.
9220         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
9221         callers changed.  Yield cris_offsettable_symbol for non-PIC
9222         constant symbolic expressions including labels.  Yield cris_unspec
9223         for all unspecs.
9224         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
9225         target to pic_offset_table_rtx for calls that will likely go
9226         through PLT, const0_rtx when they can't.  All callers changed.
9227         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9228         symbolic expressions to be PICified.  Remove second, redundant,
9229         assert on can_create_pseudo_p returning non-zero.  Use
9230         replace_equiv_address_nv, not replace_equiv_address, for final
9231         operand update.
9232         * config/cris/cris.md ("movsi"): Move variable t to pattern
9233         toplevel. Adjust assert for new cris_symbol_type member.  Use
9234         CONSTANT_P instead of CONSTANT_ADDRESS_P.
9235         ("*movsi_internal") <case 9>: Make check for valid unspec operands
9236         for lapc stricter.
9237         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9238         ("call", "call_value"): Use second incoming operand as a marker
9239         for pic-offset-table-register being used.
9240         ("*expanded_call_non_v32", "*expanded_call_v32")
9241         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9242         second incoming operand to CALL, match cris_call_type_marker.
9243         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
9244         ("*expanded_call_side"): Ditto.  Fix typo in comment.
9245         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9246         CONSTANT_P.
9247         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9248         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9249         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
9250         users changed.  Add members cris_offsettable_symbol and cris_unspec.
9251         (cris_symbol_type): Rename from cris_pic_symbol_type.
9252         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9253         just CONSTANT_P.
9254         * config/cris/cris-protos.h (cris_symbol_type_of,
9255         cris_expand_pic_call_address): Adjust prototypes.
9256         (cris_legitimate_constant_p): New prototype.
9258         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9259         an existing tmake_file.  Don't add t-slibgcc and t-linux.
9261 2014-07-17  Jason Merrill  <jason@redhat.com>
9263         PR c++/61623
9264         * symtab.c (symtab_remove_from_same_comdat_group): Also
9265         set_comdat_group to NULL_TREE.
9266         (verify_symtab): Fix diagnostic.
9268 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
9270         PR target/61662
9271         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9273 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
9275         Support location tracking for built-in macro tokens
9276         * input.h (is_location_from_builtin_token): New function declaration.
9277         * input.c (is_location_from_builtin_token): New function definition.
9278         * toplev.c (general_init): Tell libcpp what the pre-defined
9279         spelling location for built-in tokens is.
9281 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
9283         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9284         on the FUNCTION_DECL.
9286 2014-07-16  Richard Biener  <rguenther@suse.de>
9288         PR other/61782
9289         * doc/extend.texi (always_inline): Clarify.
9291 2014-07-15  Eric Christopher  <echristo@gmail.com>
9293         * doc/invoke.texi (Link Options): Document -z option.
9295 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
9297         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9298         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9300 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
9302         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9304 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
9306         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9307         varpool_assemble_decl.
9308         * varpool.c (varpool_assemble_decl): Assert that node->definition is
9309         true.
9311 2014-07-15  Michael Matz  <matz@suse.de>
9313         PR rtl-optimization/61772
9314         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9316 2014-07-15  Richard Biener  <rguenther@suse.de>
9318         * opts.c (default_options_table): Disable bit-ccp at -Og.
9320 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
9322         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9324 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
9326         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9327         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9328         call langhook for unknown declaration.
9329         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9330         * tree.h (DECL_ARGUMENTS): Update.
9331         * print-tree.c (print_node): Update.
9332         * tree-core.h (tree_decl_non_common): Remove arguments.
9333         (tree_function_decl): Add arguments.
9335 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
9337         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9339 2014-07-14  Richard Biener  <rguenther@suse.de>
9341         PR tree-optimization/61779
9342         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9343         simplifying a condition.
9345 2014-07-14  Richard Biener  <rguenther@suse.de>
9347         * builtins.c (c_strlen): Make only_value == 2 really only
9348         affect warning generation.
9350 2014-07-14  Richard Biener  <rguenther@suse.de>
9352         PR tree-optimization/61757
9353         PR tree-optimization/61783
9354         PR tree-optimization/61787
9355         * tree-ssa-dom.c (record_equality): Revert canonicalization
9356         change and add comment.
9357         (propagate_rhs_into_lhs): Revert previous fix, removing
9358         loop depth restriction again.
9360 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9362         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9363         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9364         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9365         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9366         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9367         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9368         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9370 2014-07-14  Richard Biener  <rguenther@suse.de>
9372         * cgraph.h (decl_in_symtab_p): Make inline.
9374 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
9376         PR middle-end/61294
9377         * doc/invoke.texi (-Wmemset-transposed-args): Document.
9379         PR target/61656
9380         * config/i386/i386.c (classify_argument): Don't merge classes above
9381         number of words.
9383 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
9385         * cgraph.h (symtab_node): Add nonzero_address.
9386         (decl_in_symtab_p): Break out from ...
9387         (symtab_get_node): ... here.
9388         * fold-const.c: Include cgraph.h
9389         (tree_single_nonzero_warnv_p): Use symtab to determine
9390         if symbol is non-zero.
9391         * symtab.c (symtab_node::nonzero_address): New method.
9393 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
9395         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9396         forgotten in previous commit.
9398 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
9400         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9401         on builtin types.
9402         * ipa-devirt.c: Include stor-layout.h and intl.h
9403         (odr_subtypes_equivalent_p): New function.
9404         (warn_odr): New function.
9405         (warn_type_mismatch): New function.
9406         (odr_types_equivalent_p): New function.
9407         (add_type_duplicate): Use it.
9408         * common.opt (Wodr): New flag.
9409         * doc/invoke.texi (Wodr): Document new warning.
9411 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
9413         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9414         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9415         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9416         (varpool_get_constructor): Push CTORS_IN timevar.
9417         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9419 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
9421         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9422         Remove VOID_FTYPE_PUSHORT.
9423         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9424         Change code to USHORT_FTYPE_VOID.
9425         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9426         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9427         (ix86_atomic_assign_expand_fenv): Update for
9428         __builtin_ia32_fnstsw changes.
9429         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9430         (fnstsw): Change operand 0 to nonimmediate operand.
9432 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
9434         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9435         (varpool_get_constructor): New function.
9436         (varpool_ctor_useable_for_folding_p): Break out from ...
9437         (ctor_for_folding): ... here; use varpool_get_constructor.
9438         (varpool_assemble_decl): Likewise.
9439         * lto-streamer.h (struct output_block): Turn cgraph_node
9440         to symbol filed.
9441         (lto_input_variable_constructor): Declare.
9442         * ipa-visibility.c (function_and_variable_visibility): Use
9443         varpool_get_constructor.
9444         * cgraph.h (varpool_get_constructor): Declare.
9445         (varpool_ctor_useable_for_folding_p): New function.
9446         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9447         parameter; return error_mark_node for non-trivial constructors.
9448         (lto_write_tree_1, DFS_write_tree): Update use of
9449         get_symbol_initial_value.
9450         (output_function): Update initialization of symbol.
9451         (output_constructor): New function.
9452         (copy_function): Rename to ..
9453         (copy_function_or_variable): ... this one; handle vars too.
9454         (lto_output): Output variable sections.
9455         * lto-streamer-in.c (input_constructor): New function.
9456         (lto_read_body): Rename from ...
9457         (lto_read_body_or_constructor): ... this one; handle vars too.
9458         (lto_input_variable_constructor): New function.
9459         * ipa-prop.c (ipa_prop_write_jump_functions,
9460         ipa_prop_write_all_agg_replacement): Update.
9461         * lto-cgraph.c (compute_ltrans_boundary): Use it.
9462         (output_cgraph_opt_summary): Set symbol to NULL.
9464 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
9466         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9467         non-polymorphic types.
9468         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9469         * ipa-devirt.c (types_same_for_odr): Do not explode when one
9470         of types is not polymorphic.
9472 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
9474         * lra-constraints.c (remove_inheritance_pseudos): Process
9475         destination pseudo too.
9477 2014-07-11  Rong Xu  <xur@google.com>
9479         * gcov-tool.c (gcov_output_files): Fix build error introduced in
9480         commit r212448.
9482 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9484         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9485         * config/avr/avr-devices.c (AVR_MCU): Same.
9486         (avr_mcu_types): add text start value to end of device list.
9487         * config/avr/avr-mcus.def: Add text section start for all devices.
9488         (ata5782): Add new avr5 device.
9489         (ata5831): Same.
9490         * config/avr/avr-tables.opt: Regenerate.
9491         * config/avr/avr.h: Add declaration for text section start handler.
9492         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9493         SPEC functions.
9494         (LINK_SPEC): Include text section start handler to linker spec.
9495         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9496         pass -Ttext option to linker if the text section start for the device
9497         is not zero.
9498         * config/avr/t-multilib: Regenerate.
9499         * doc/avr-mmcu.texi: Regenerate.
9501 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
9503         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9504         * config/rs6000/aix52.h (LINK_SPEC): Same.
9505         * config/rs6000/aix53.h (LINK_SPEC): Same.
9506         * config/rs6000/aix61.h (LINK_SPEC): Same.
9507         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9509 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
9511         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9512         (graphite_verify): New function.
9513         (ivs_params_clear): New function.
9514         (gcc_expression_from_isl_ast_expr_id): New function.
9515         (gcc_expression_from_isl_expr_int): New function.
9516         (binary_op_to_tree): New function.
9517         (ternary_op_to_tree): New function.
9518         (unary_op_to_tree): New function.
9519         (nary_op_to_tree): New function.
9520         (gcc_expression_from_isl_expr_op): New function.
9521         (gcc_expression_from_isl_expression): New function.
9522         (graphite_create_new_loop): New function.
9523         (translate_isl_ast_for_loop): New function.
9524         (get_upper_bound): New function.
9525         (graphite_create_new_loop_guard): New function.
9526         (translate_isl_ast_node_for): New function.
9527         (translate_isl_ast): New function.
9528         (add_parameters_to_ivs_params): New function.
9529         (scop_to_isl_ast): New parameter ip.
9530         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9532 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
9534         * config/xtensa/predicates.md (call expander): Update for
9535         DECL_SECTION_NAME being string.
9537 2014-07-11  Richard Biener  <rguenther@suse.de>
9539         PR middle-end/61473
9540         * builtins.c (fold_builtin_memory_op): Inline memory moves that
9541         can be implemented with a single load followed by a single store.
9542         (c_strlen): Only warn when only_value is not 2.
9544 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
9546         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9548 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
9550         PR target/61561
9551         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9552         (*movhi_bytes): Likewise.
9553         (*arm_movqi_insn): Likewise.
9555 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
9557         PR target/56858
9558         * config/alpha/alpha.c: Include tree-pass.h, context.h
9559         and pass_manager.h.
9560         (pass_data_handle_trap_shadows): New pass.
9561         (pass_handle_trap_shadows::gate): New pass gate function.
9562         (make_pass_handle_trap_shadows): New function.
9563         (rest_of_handle_trap_shadows): Ditto.
9565         (alpha_align_insns_1): Rename from alpha_align_insns.
9566         (pass_data_align_insns): New pass.
9567         (pass_align_insns::gate): New pass gate function.
9568         (make_pass_aling_insns): New function.
9569         (rest_of_align_insns): Ditto.
9570         (alpha_align_insns): Ditto.
9572         (alpha_option_override): Declare handle_trap_shadows info
9573         and align_insns_info.  Register handle_trap_shadows and align_insns
9574         passes here.
9575         (alpha_reorg): Do not call alpha_trap_shadows and
9576         alpha_align_insn from here.
9578         (alpha_pad_function_end): Do not skip BARRIERs.
9580 2014-07-10  Rong Xu  <xur@google.com>
9582         Add gcov-tool: an offline gcda profile processing tool support.
9583         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9584         (gcov_is_error): Ditto.
9585         (gcov_read_string): Ditto.
9586         (gcov_read_sync): Ditto.
9587         * gcov-io.h: Move counter defines to gcov-counter.def.
9588         * gcov-dump.c (tag_counters): Use gcov-counter.def.
9589         * coverage.c: Ditto.
9590         * gcov-tool.c: Offline gcda profile processing tool.
9591         (unlink_gcda_file): Remove one gcda file.
9592         (unlink_profile_dir): Remove gcda files from the profile path.
9593         (gcov_output_files): Output gcda files to an output dir.
9594         (profile_merge): Merge two profiles in directory.
9595         (print_merge_usage_message): Print merge usage.
9596         (merge_usage): Print merge usage and exit.
9597         (do_merge): Driver for profile merge sub-command.
9598         (profile_rewrite): Rewrite profile.
9599         (print_rewrite_usage_message): Print rewrite usage.
9600         (rewrite_usage): Print rewrite usage and exit.
9601         (do_rewrite): Driver for profile rewrite sub-command.
9602         (print_usage): Print gcov-info usage and exit.
9603         (print_version): Print gcov-info version.
9604         (process_args): Process arguments.
9605         (main): Main routine for gcov-tool.
9606         * Makefile.in: Build and install gcov-tool.
9607         * gcov-counter.def: New file split from gcov-io.h.
9608         * doc/gcc.texi: Include gcov-tool.texi.
9609         * doc/gcov-tool.texi: Document for gcov-tool.
9611 2014-07-10  Richard Biener  <rguenther@suse.de>
9613         PR tree-optimization/61757
9614         * tree-ssa-dom.c (loop_depth_of_name): Restore.
9615         (propagate_rhs_into_lhs): Revert part of last change.
9617 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
9619         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9620         FUNCTION_DECLs.
9622 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
9624         PR middle-end/53590
9625         * function.c (allocate_struct_function): Revert r188667 change.
9627         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9629 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
9631         * doc/install.texi: Remove links to defunct package providers for
9632         Solaris.
9634 2014-07-09  Tom de Vries  <tom@codesourcery.com>
9636         * final.c (get_call_fndecl): Declare.
9637         (self_recursive_call_p): New function.
9638         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9640 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9642         * ipa-devirt.c (record_node): Walk through aliases.
9644 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9646         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9648 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9650         Revert:
9651         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9653 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9655         * ipa-visibility.c (function_and_variable_visibility): Remove
9656         temporary hack disabling local aliases on AIX.
9658 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9660         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9661         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9663 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9665         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9666         * rs6000/rs6000.c: Inline output of .set instruction.
9667         (declare_alias_data): New struct.
9668         (rs6000_declare_alias): New function.
9669         (rs6000_xcoff_declare_function_name): Use it.
9670         (rs6000_xcoff_declare_object_name): New function.
9671         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9672         (ASM_OUTPUT_DEF): Turn to empty definition.
9674 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
9676         PR bootstrap/61679
9677         * hash-table.h: use hash_table::value_type instead of
9678         Descriptor::value_type in the return types of several methods.
9680 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
9682         * tree-pass.h (pass_data): Remove has_execute member.
9683         * passes.c (execute_one_pass): Don't check pass->has_execute.
9684         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9685         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9686         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9687         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9688         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9689         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9690         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9691         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9692         gimple-low.c, gimple-ssa-isolate-paths.c,
9693         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9694         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9695         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9696         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9697         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9698         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9699         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9700         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9701         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9702         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9703         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9704         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9705         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9706         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9707         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9708         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9709         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9710         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9711         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9712         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9713         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9714         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9715         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9716         web.c: Remove initializer for pass_data::has_execute.
9718 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
9720         * graphite-htab.h: Use hash_map instead of hash_table.
9721         * graphite-clast-to-gimple.c: Adjust.
9722         * passes.c: Use hash_map instead of hash_table.
9723         * sese.c: Likewise.
9724         * sese.h: Remove now unused code.
9726 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
9728         PR target/61599
9729         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9730         than zero.
9732 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
9734         PR rtl-optimization/61673
9735         * combine.c (simplify_comparison): Test just mode's sign bit
9736         in tmode rather than the sign bit and any bits above it.
9738 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
9740         * graphite-isl-ast-to-gimple.c (generate_isl_context):
9741         Add __isl_give to the declaration.
9742         (generate_isl_schedule): Likewise.
9743         (scop_to_isl_ast): Likewise.
9745 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9747         * config/arm/arm.c (cortexa5_extra_costs): New table.
9748         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9750 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
9752         PR tree-optimization/61725
9753         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9754         range, use range_includes_zerop_p instead of integer_zerop on
9755         vr0->min, only use log2 of max if min is not negative.
9757 2014-07-08  Richard Biener  <rguenther@suse.de>
9759         * tree-ssa-dom.h (loop_depth_of_name): Remove.
9760         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9761         restriction on loop depth difference.
9762         (record_equality): Likewise.
9763         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
9764         (loop_depth_of_name): Remove.
9765         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9766         restriction on loop depth difference.
9767         (init_copy_prop): Likewise.
9769 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9771         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9772         parameter.
9773         (walk_aliased_vdefs): Likewise.
9774         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9775         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9776         (detect_type_change_from_memory_writes): Check if entry was reached.
9778 2014-07-08  Richard Biener  <rguenther@suse.de>
9780         PR tree-optimization/61681
9781         * tree-ssa-structalias.c (find_what_var_points_to): Expand
9782         NONLOCAL inside ESCAPED.
9784 2014-07-08  Richard Biener  <rguenther@suse.de>
9786         PR tree-optimization/61680
9787         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9788         Handle properly all read-write dependences with group accesses.
9790 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
9792         PR tree-optimization/61576
9793         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9794         block containing reduction statement is predecessor of phi basi block.
9796 2014-07-08  Marek Polacek  <polacek@redhat.com>
9798         PR c/60226
9799         * fold-const.c (round_up_loc): Change the parameter type.
9800         Remove assert.
9801         * fold-const.h (round_up_loc): Adjust declaration.
9802         * stor-layout.c (finalize_record_size): Check for too large types.
9804 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
9806         * symtab.c: Include calls.h.
9807         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9809 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
9811         * config/rs6000/rs6000.c (output_vec_const_move): Handle
9812         little-endian code generation.
9813         * config/rs6000/spe.md (spe_evmergehi): Rename to...
9814         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
9815         (spe_evmergehilo): Rename to...
9816         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
9817         (spe_evmergelo): Rename to...
9818         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
9819         (spe_evmergelohi): Rename to...
9820         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
9821         (spe_evmergehi, spe_evmergehilo): New expanders.
9822         (spe_evmergelo, spe_evmergelohi): Likewise.
9823         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9824         (*frob_tf_ti): Likewise.
9825         (*frob_<mode>_di_2): Likewise.
9826         (*frob_tf_di_8_2): Likewise.
9827         (*frob_di_<mode>): Likewise.
9828         (*frob_ti_tf): Likewise.
9829         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9830         (*frob_ti_<mode>_8_2): Likewise.
9831         (*frob_ti_tf_2): Likewise.
9832         (mov_si<mode>_e500_subreg0): Rename to...
9833         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
9834         endianness only.
9835         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9836         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9837         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
9838         the big endianness only.
9839         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9840         (*mov_si<mode>_e500_subreg0_2): Rename to...
9841         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
9842         big big endianness only.
9843         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9844         (*mov_si<mode>_e500_subreg4): Rename to...
9845         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
9846         endianness only.
9847         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9848         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9849         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
9850         the big endianness only.
9851         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9852         pattern.
9853         (*mov_si<mode>_e500_subreg4_2): Rename to...
9854         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
9855         endianness only.
9856         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9857         (*mov_sitf_e500_subreg8): Rename to...
9858         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
9859         endianness only.
9860         (*mov_sitf_e500_subreg8_le): New instruction pattern.
9861         (*mov_sitf_e500_subreg8_2): Rename to...
9862         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
9863         endianness only.
9864         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9865         (*mov_sitf_e500_subreg12): Rename to...
9866         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
9867         endianness only.
9868         (*mov_sitf_e500_subreg12_le): New instruction pattern.
9869         (*mov_sitf_e500_subreg12_2): Rename to...
9870         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
9871         endianness only.
9872         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9874 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
9876         * asan.c (instrument_strlen_call): Do not instrument first byte
9877         in strlen if already instrumented.
9879 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9881         * config/arm/arm.opt (mwords-little-endian): Delete.
9882         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9883         of TARGET_LITTLE_WORDS.
9884         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9885         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9886         warning.
9887         * doc/invoke.texi: Remove references to -mwords-little-endian.
9889 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
9891         * expmed.c (struct init_expmed_rtl): Change all fields but
9892         pow2 and cint from struct rtx_def to rtx.
9893         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9894         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
9895         at the end again.
9897 2014-07-06  Marek Polacek  <polacek@redhat.com>
9899         PR c/6940
9900         * doc/invoke.texi: Document -Wsizeof-array-argument.
9902 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
9904         * wide-int.h (wide_int_storage): Change declaration from struct
9905         to class.
9907 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
9909         * cgraph.c (cgraph_create_indirect_edge): Update call of
9910         get_polymorphic_call_info.
9911         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9912         (possible_polymorphic_call_targets): Add parameter call.
9913         (decl_maybe_in_construction_p): New predicate.
9914         (get_polymorphic_call_info): Add parameter call;
9915         use decl_maybe_in_construction_p.
9916         * gimple-fold.c (fold_gimple_assign): Update use of
9917         possible_polymorphic_call_targets.
9918         (gimple_fold_call): Likewise.
9919         * ipa-prop.c: Inlcude calls.h
9920         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9921         (param_type_may_change_p): New predicate.
9922         (detect_type_change_from_memory_writes): Break out from ...
9923         (detect_type_change): ... this one; use param_type_may_change_p.
9924         (detect_type_change_ssa): Use param_type_may_change_p.
9925         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9927 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
9929         PR target/49423
9930         * config/arm/arm-protos.h (arm_legitimate_address_p,
9931         arm_is_constant_pool_ref): Add prototypes.
9932         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9933         (arm_is_constant_pool_ref) New function.
9934         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9935         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9936         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9937         operand. Remove pool_range and neg_pool_range attributes.
9938         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9939         pool_range and neg_pool_range attributes.
9940         * config/arm/constraints.md (Uh): New constraint.
9941         (Uq): Don't allow constant pool references.
9943 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
9945         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9946         (move_lo_quad_internal_be_<mode>): Likewise.
9947         (move_lo_quad_<mode>): Convert to define_expand.
9948         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9949         (aarch64_simd_move_hi_quad_be_<mode>): New.
9950         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9951         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9952         (aarch64_combinez_be<mode>): New.
9953         (aarch64_combine<mode>): Convert to define_expand.
9954         (aarch64_combine_internal<mode>): New.
9955         (aarch64_simd_combine<mode>): Remove bogus RTL description.
9957 2014-07-04  Tom de Vries  <tom@codesourcery.com>
9959         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9960         combination of earlyclobber and read/write modifiers.
9962 2014-07-04  Tom de Vries  <tom@codesourcery.com>
9964         * config/aarch64/aarch64-simd.md
9965         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9967 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
9969         PR target/61714
9970         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9972 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
9974         PR middle-end/61654
9975         * cgraphunit.c (expand_thunk): Call free_dominance_info.
9977         PR tree-optimization/61684
9978         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9979         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9981 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
9982             Kito Cheng  <kito@0xlab.org>
9983             Monk Chiang  <sh.chiang04@gmail.com>
9985         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9986         (nds32_symbol_load_store_p): Move to ...
9987         (nds32_fp_as_gp_check_available): Move to ...
9988         * config/nds32/nds32-fp-as-gp.c: ... here.
9989         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9990         extern declaration.
9992 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
9993             Kito Cheng  <kito@0xlab.org>
9994             Monk Chiang  <sh.chiang04@gmail.com>
9996         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9997         (nds32_expand_store_multiple): Move to ...
9998         (nds32_expand_movmemqi): Move to ...
9999         * config/nds32/nds32-memory-manipulation.c: ... here.
10001 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
10002             Kito Cheng  <kito@0xlab.org>
10003             Monk Chiang  <sh.chiang04@gmail.com>
10005         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10006         (nds32_output_casesi_pc_relative): Move to ...
10007         (nds32_output_casesi): Move to ...
10008         (nds32_mem_format): Move to ...
10009         (nds32_output_16bit_store): Move to ...
10010         (nds32_output_16bit_load): Move to ...
10011         (nds32_output_32bit_store): Move to ...
10012         (nds32_output_32bit_load): Move to ...
10013         (nds32_output_32bit_load_s): Move to ...
10014         (nds32_output_stack_push): Move to ...
10015         (nds32_output_stack_pop): Move to ...
10016         * config/nds32/nds32-md-auxiliary.c: ... here.
10018 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
10019             Ling-Hua Tseng  <uranus@tinlans.org>
10021         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10022         the purpose of this file.
10024 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
10025             Kito Cheng  <kito@0xlab.org>
10026             Monk Chiang  <sh.chiang04@gmail.com>
10028         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10029         (nds32_address_cost): Move implementation to ...
10030         * config/nds32/nds32-cost.c: ... here.
10031         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10032         (nds32_address_cost_impl): Declare.
10034 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
10035             Kito Cheng  <kito@0xlab.org>
10036             Monk Chiang  <sh.chiang04@gmail.com>
10038         * config/nds32/nds32.c
10039         (nds32_consecutive_registers_load_store_p): Move to ...
10040         (nds32_valid_multiple_load_store): Move to ...
10041         (nds32_valid_stack_push_pop): Move to ...
10042         (nds32_can_use_bclr_p): Move to ...
10043         (nds32_can_use_bset_p): Move to ...
10044         (nds32_can_use_btgl_p): Move to ...
10045         (nds32_can_use_bitci_p): Move to ...
10046         * config/nds32/nds32-predicates.c: ... here.
10048 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
10049             Kito Cheng  <kito@0xlab.org>
10050             Monk Chiang  <sh.chiang04@gmail.com>
10052         * config/nds32/nds32.c
10053         (nds32_expand_builtin_null_ftype_reg): Move to ...
10054         (nds32_expand_builtin_reg_ftype_imm): Move to ...
10055         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10056         (nds32_init_builtins): Move implementation to ...
10057         (nds32_expand_builtin): Move implementation to ...
10058         * config/nds32/nds32-intrinsic.c: ... here.
10059         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10060         (nds32_expand_builtin_impl): Declare.
10062 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
10063             Kito Cheng  <kito@0xlab.org>
10064             Monk Chiang  <sh.chiang04@gmail.com>
10066         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10067         (nds32_emit_section_tail_template): Move to ...
10068         (nds32_emit_isr_jmptbl_section): Move to ...
10069         (nds32_emit_isr_vector_section): Move to ...
10070         (nds32_emit_isr_reset_conten): Move to ...
10071         (nds32_check_isr_attrs_conflict): Move to ...
10072         (nds32_construct_isr_vectors_information): Move to ...
10073         (nds32_asm_file_start): Move implementation to ...
10074         (nds32_asm_file_end): Move implementation to ...
10075         * config/nds32/nds32-isr.c: ... here.
10076         * config/nds32/nds32-protos.h
10077         (nds32_check_isr_attrs_conflict): Declare.
10078         (nds32_construct_isr_vectors_information): Declare.
10079         (nds32_asm_file_start_for_isr): Declare.
10080         (nds32_asm_file_end_for_isr): Declare.
10082 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
10083             Kito Cheng  <kito@0xlab.org>
10084             Monk Chiang  <sh.chiang04@gmail.com>
10086         * config.gcc (nds32*): Add new modules to extra_objs.
10087         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10088         (nds32be-*-*): Likewise.
10089         * config/nds32/nds32-cost.c: New file.
10090         * config/nds32/nds32-fp-as-gp.c: New file.
10091         * config/nds32/nds32-intrinsic.c: New file.
10092         * config/nds32/nds32-isr.c: New file.
10093         * config/nds32/nds32-md-auxiliary.c: New file.
10094         * config/nds32/nds32-memory-manipulation.c: New file.
10095         * config/nds32/nds32-pipelines-auxiliary.c: New file.
10096         * config/nds32/nds32-predicates.c: New file.
10097         * config/nds32/t-nds32: New file.
10099 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
10101         PR tree-optimization/61682
10102         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10103         using cases and when one of the operands is equal to 1.
10105 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
10107         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10108         ashr<mode>3): Correct mode of operands[2].
10109         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10110         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10111         Correct mode of operands[2].  Fix split condition.
10113 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
10115         * arm.md (arch): Add armv6_or_vfpv3.
10116         (arch_enabled): Add test for the above.
10117         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10118         on VFP9.
10119         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10121 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
10123         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10124         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10125         HWI 1 and negate the unsigned value.
10126         * expmed.c (expand_sdiv_pow2): For modes wider than word always
10127         use AND instead of shift.
10128         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10130 2014-07-03  Marek Polacek  <polacek@redhat.com>
10132         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10133         (-fsanitize=float-divide-by-zero): Move to the table with
10134         -fsanitize=undefined suboptions.
10135         (-fsanitize=float-cast-overflow): Likewise.
10137 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
10139         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10140         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10141         endianness.
10143 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10145         * loop-invariant.c (struct invariant): Add a new member: eqno;
10146         (find_identical_invariants): Update eqno;
10147         (create_new_invariant): Init eqno;
10148         (get_inv_cost): Compute comp_cost with eqno;
10150 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
10152         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10153         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10154         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10155         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10156         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10158 2014-07-02  Christian Bruel  <christian.bruel@st.com>
10160         PR target/29349
10161         PR target/53513
10162         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10163         (make_preds_opaque): Delete.
10164         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10165         (commit_mode_sets): New function.
10166         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10167         Process all modes at once.
10168         * basic-block.h (pre_edge_lcm_avs): Declare.
10169         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10170         Call clear_aux_for_edges. Fix comments.
10171         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10172         (pre_edge_rev_lcm): Idem.
10173         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10174         parameter.
10175         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10176         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10177         Idem.
10178         * config/i386/i386.c (x96_emit_mode_set): Idem.
10179         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10180         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
10181         (fpscr_toggle) Disallow from delay slot.
10182         * target.def (emit_mode_set): Add prev_mode parameter.
10183         * doc/tm.texi: Regenerate.
10185 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10187         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10188         variable i.
10190 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
10192         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10193         vtable_pointer_value_to_vtable): Constify.
10194         (contains_polymorphic_type_p): Declare.
10195         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10196         vtable_pointer_value_to_vtable): Constify.
10197         (contains_polymorphic_type_p): New predicate.
10198         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10199         polymorphic types.
10200         (ipa_set_ancestor_jf): Likewise.
10201         (detect_type_change): Return false in easy cases.
10202         (compute_complex_assign_jump_func): Require type to contain
10203         polymorphic type.
10204         (compute_known_type_jump_func): Likewise.
10206 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
10208         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10209         Remove.
10210         (type_in_anonymous_namespace_p): Constify argument.
10211         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10212         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10213         (main_odr_variant): New function.
10214         (hash_type_name): Make static; update assert; do not ICE on
10215         non-records.
10216         (types_same_for_odr): Bring here from tree.c; simplify and remove
10217         old structural comparing code that doesn't work for templates.
10218         (odr_hasher::equal): Update assert.
10219         (add_type_duplicate): Return true when bases should be computed;
10220         replace incomplete loader by complete; do not output duplicated
10221         warnings; do not ICE on non-records; set odr_violated flag.
10222         (get_odr_type): Be ready to replace incomplete type by complete
10223         one; work on ODR variants instead of main variants; reorder item
10224         in array so bases have still smaller indexes.
10225         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10226         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10228 2014-07-01  Cary Coutant  <ccoutant@google.com>
10230         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10231         lookup.
10232         (resolve_addr_in_expr): When replacing the rtx in a location list
10233         entry, get a new address table entry.
10234         (dwarf2out_finish): Call index_location_lists even if there are no
10235         addr_index_table entries yet.
10237 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
10239         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10240         change for not being obvious.
10242 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
10244         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10245         unused argument.
10247 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10249         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10250         (vcagt_f64): Likewise.
10251         (vcale_f64): Likewise.
10252         (vcaled_f64): Likewise.
10253         (vcales_f32): Likewise.
10254         (vcalt_f64): Likewise.
10255         (vcaltd_f64): Likewise.
10256         (vcalts_f32): Likewise.
10258 2014-07-01  Marek Polacek  <polacek@redhat.com>
10260         * doc/invoke.texi: Document -Wint-conversion.
10262 2014-07-01  Marek Polacek  <polacek@redhat.com>
10264         PR c/58286
10265         * doc/invoke.texi: Document -Wincompatible-pointer-types.
10267 2014-07-01  Martin Liska  <mliska@suse.cz>
10269         IPA REF alias refactoring
10270         * cgraph.h (iterate_direct_aliases): New function.
10271         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10272         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10273         FOR_EACH_ALIAS added.
10274         (cgraph_for_node_and_aliases): Likewise.
10275         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10276         * ipa-inline.c (reset_edge_caches): Likewise.
10277         (update_caller_keys): Likewise.
10278         * trans-mem.c (ipa_tm_execute): Likewise.
10279         *varpool.c (varpool_analyze_node): Likewise.
10280         (varpool_for_node_and_aliases): Likewise.
10281         * ipa-ref.h (first_alias): New function.
10282         (last_alias): Likewise.
10283         (has_aliases_p): Likewise.
10284         * ipa-ref.c (ipa_ref::remove_reference): Removal function
10285         is sensitive to IPA_REF_ALIASes.
10286         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10287         are put at the beginning of the list.
10288         (symtab_node::iterate_direct_aliases): New function.
10290 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
10292         Revert:
10293         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10294         type is complete.
10295         (write_ts_type_common_tree_pointers): Do not stream fields not set
10296         for incomplete types; do not stream duplicated fields for variants;
10297         sanity check that variant and type match.
10298         (write_ts_type_non_common_tree_pointers): Likewise.
10299         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10300         TYPE_SIZE whether type is complete.
10301         (lto_input_ts_type_common_tree_pointers): Do same changes as in
10302         write_ts_type_common_tree_pointers
10303         (lto_input_ts_type_non_common_tree_pointers): Likewise.
10305 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
10307         * var-tracking.c (add_stores): Return instead of asserting if old
10308         and new values for conditional store are the same.
10310 2014-06-30  Richard Henderson  <rth@redhat.com>
10312         PR rtl-opt/61608
10313         PR target/39284
10314         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10315         the cfg if there were any changes.
10316         * passes.def: Revert move of peephole2 after reorder_blocks;
10317         move duplicate_computed_gotos before peephole2.
10319 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
10321         * except.c (emit_note_eh_region_end): New helper function.
10322         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10323         emit EH_REGION_END note.
10324         * jump.c (cleanup_barriers): Do not split a call and its
10325         corresponding CALL_ARG_LOCATION note.
10327 2014-06-30  Jeff Law  <law@redhat.com>
10329         PR tree-optimization/61607
10330         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10331         deeper into the SSA_NAME_VALUE chain.
10333 2014-06-30  Marek Polacek  <polacek@redhat.com>
10335         * convert.c (convert_to_integer): Don't instrument conversions if the
10336         function has no_sanitize_undefined attribute.
10337         * ubsan.c: Don't run the ubsan pass if the function has
10338         no_sanitize_undefined attribute.
10340 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
10342         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10343         -fsanitize=undefined suboptions.
10345 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
10347         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10348         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10349         against bigendian and adjust indices.
10351 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
10353         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
10355 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10357         PR target/61633
10358         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10359         Add alternative; make early clobber.  Adjust both split patterns
10360         to use operand 0 as the working register.
10362 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
10364         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10365         as ira_object_id_map might be NULL, or 1.
10367 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10369         * loop-invariant.c (get_inv_cost): Handle register class.
10370         (gain_for_invariant): Check the register pressure of the inv
10371         and its overlapped register class, other than all.
10373 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
10375         * doc/invoke.texi (Optimize Options): Fix descriptions of
10376         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10378 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
10380         * doc/extend.texi (Function Attributes): Update 'naked' attribute
10381         documentation.
10383 2014-06-29  Tobias Grosser <tobias@grosser.es>
10385         PR bootstrap/61650
10386         * graphite-isl-ast-to-gimple.c: Add missing guards.
10388 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
10390         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10391         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10392         * flag-types.h: Add new enum fgraphite_generator.
10393         * graphite-isl-ast-to-gimple.c: New.
10394         * graphite-isl-ast-to-gimple.h: New.
10395         * graphite.c (graphite_transform_loops): Add choice of Graphite
10396         code generator, which depends on flag_graphite_code_gen.
10398 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
10400         * graphite-dependences.c (subtract_commutative_associative_deps):
10401         Add NULL checking of the following variables: must_raw_no_source,
10402         may_raw_no_source, must_war_no_source, may_war_no_source,
10403         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10404         must_war, may_war, must_waw, may_waw.
10406 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
10408         * graphite-clast-to-gimple.c: gloog is renamed to
10409         graphite_regenerate_ast_cloog.  gloog_error is renamed to
10410         graphite_regenerate_error.
10411         * graphite-clast-to-gimple.h: The definition of the struct
10412         bb_pbb_def is moved to graphite-htab.h.
10413         Add inclusion of the hash-table.h.
10414         * graphite-htab.h: The declaration of the function gloog is moved
10415         to graphite-clast-to-gimple.h and renamed to
10416         graphite_regenerate_ast_cloog.
10417         * graphite.c (graphite_transform_loops): gloog is renamed
10418         to graphite_regenerate_ast_cloog.
10420 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
10422         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10423         type is complete.
10424         (write_ts_type_common_tree_pointers): Do not stream fields not set
10425         for incomplete types; do not stream duplicated fields for variants;
10426         sanity check that variant and type match.
10427         (write_ts_type_non_common_tree_pointers): Likewise.
10428         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10429         TYPE_SIZE whether type is complete.
10430         (lto_input_ts_type_common_tree_pointers): Do same changes as in
10431         write_ts_type_common_tree_pointers
10432         (lto_input_ts_type_non_common_tree_pointers): Likewise.
10434 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
10436         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10438 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
10440         * tree-inline.c (remap_type_1): Do not duplicate fields
10441         that are shared in between type and its main variant.
10443 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
10445         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10446         of the type.
10447         (ipa_set_ancestor_jf) Likewise.
10448         (check_stmt_for_type_change): Check that we work on main variant.
10449         (detect_type_change): Look into main variant.
10450         (compute_known_type_jump_func): Check that main variant has BINFO.
10452 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
10454         * ipa-devirt.c (set_type_binfo): New function.
10455         (add_type_duplicate): Use it.
10456         (get_odr_type): Sanity check that binfos points to main variants.
10457         (get_class_context): Be sure the context's outer_type is main variant.
10458         (contains_type_p): Walk main variant.
10459         (get_polymorphic_call_info_for_decl): Set outer_type to be
10460         main variant.
10461         (get_polymorphic_call_info): Likewise.
10462         (possible_polymorphic_call_targets): Sanity check that we operate
10463         on main variant.
10465 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
10467         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10469 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10471         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10472         accidental change due to wide-int branch merge.
10474 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10476         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10477         compressed debug support.
10478         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10479         * configure: Regenerate.
10480         * config.in: Regenerate.
10481         * common.opt (compressed_debug_sections): New enum.
10482         (gz, gz=): New options.
10483         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10484         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10485         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10486         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10487         LINK_COMPRESS_DEBUG_SPEC.
10488         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10489         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10490         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10491         (Debugging Options): Document -gz[=type].
10493 2014-06-27  Martin Jambor  <mjambor@suse.cz>
10495         PR ipa/61160
10496         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10497         args_to_skip, use those from node instead.  Copy args_to_skip and
10498         combined_args_to_skip from node to the new thunk.
10499         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10500         (cgraph_create_virtual_clone): Moved computation of
10501         combined_args_to_skip...
10502         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10504 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
10506         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10507         redundant diagnostic machinary.
10509 2014-06-27  Richard Biener  <rguenther@suse.de>
10511         * tree-ssa-math-opts.c (bswap_replace): Fix
10512         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10514 2014-06-27  Martin Liska  <mliska@suse.cz>
10516         * gimple.h (gimple_location_safe): New function introduced.
10517         * cgraphunit.c (walk_polymorphic_call_targets): Usage
10518         of gimple_location_safe replaces gimple_location.
10519         (gimple_fold_call): Likewise.
10520         * ipa-devirt.c (ipa_devirt): Likewise.
10521         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10522         * ipa.c (walk_polymorphic_call_targets): Likewise.
10523         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10525 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
10527         PR tree-optimization/57233
10528         PR tree-optimization/61299
10529         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10530         functions.
10531         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
10532         would be lowered to scalar shifts, check if corresponding
10533         shifts and vector BIT_IOR_EXPR are supported and don't lower
10534         or lower just to narrower vector type in that case.
10535         * expmed.c (expand_shift_1): Fix up handling of vector
10536         shifts and rotates.
10538 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
10540         PR target/61586
10541         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10543 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
10545         * doc/invoke.texi (-fsemantic-interposition): Document.
10546         * common.opt (fsemantic-interposition): New flag.
10547         * varasm.c (decl_replaceable_p): Use it.
10549 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10551         PR target/61542
10552         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10553         extraction other than index 3.
10555 2014-06-26  Teresa Johnson  <tejohnson@google.com>
10557         * doc/invoke.texi: Fix typo.
10558         * dumpfile.c: Add support for documented -fdump-* options
10559         optimized/missed/note/optall.
10561 2014-06-26  Martin Jambor  <mjambor@suse.cz>
10563         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10564         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10565         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10566         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10567         * opts.c (default_options_optimization): Set
10568         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10569         * doc/invoke.texi (allow-load-data-races)
10570         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10571         (allow-store-data-races): Document the new default.
10573 2014-06-26  Martin Jambor  <mjambor@suse.cz>
10575         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10576         renamed to ipa_impossible_devirt_target.  Fix typo.
10577         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10578         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10579         ipa_impossible_devirt_target.
10581 2014-06-26  Richard Biener  <rguenther@suse.de>
10583         PR tree-optimization/61607
10584         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10585         explaining why we restrict copies on loop depth.
10586         * tree-ssa-dom.c (cprop_operand): Remove restriction on
10587         on loop depth.
10588         (record_equivalences_from_phis): Instead add it here.
10590 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
10592         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10593         (LTO_WRAPPER_OBJS): New variable.
10594         (lto-wrapper$(exeext)): Use it.
10595         * collect2.c: Include "collect-utils.h".
10596         (verbose, debug): Remove variables.
10597         (at_file_supplied): No longer static.
10598         (tool_name): New variable.
10599         (do_wait, fork_execute, maybe_unlink): Don't declare.
10600         (tool_cleanup): No longer static.
10601         (notice): Remove function.
10602         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10603         fork_execute calls.
10604         (collect_wait, do_wait, collect_execute): Remove functions.
10605         (maybe_unlink): No longer static.
10606         * collect2.h (verbose, debug): Don't declare.
10607         (at_file_supplied): Declare.
10608         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
10609         changed.
10610         (collect_execute): Replace with implementation from collect2, plus a
10611         new arg use_atfile.  All callers changed.
10612         (collect_wait): Replace with implementation from collect2.
10613         (maybe_unlink_file): Remove function.
10614         (fork_execute): Replace with implementation from collect2, plus a
10615         new arg use_atfile.  All callers changed.
10616         (do_wait): Add call to utils_cleanup to the error path.
10617         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10618         (tool_cleanup): Adjust declarations.
10619         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10620         * tlink.c: Include "collect-utils.h".
10621         (tlink_execute): New arg use_atfile.  All callers changed.
10622         (tlink_init, tlink_execute): Remove declarations.
10624         * collect-utils.c (save_temps): New variable.
10625         (do_wait): Use it instead of debug.  Use fatal_error.
10626         * collect-utils.h (save_temps): Declare.
10627         * collect2.c (verbose): Rename from vflag.  All uses changed.
10628         (tool_cleanup): New function, copied from collect_atexit.
10629         (collect_atexit, handler): Just call it.
10630         * collect2.h (verbose): Declaration renamed from vflag.
10631         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10632         debug.
10634         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10635         (lto-wrapper$(exeext)): Link with collect-utils.o.
10636         * collect-utils.c: New file.
10637         * collect-utils.h: New file.
10638         * lto-wrapper.c: Include "collect-utils.h".
10639         (args_name): Delete variable.
10640         (tool_name): New variable.
10641         (tool_cleanup): New function.
10642         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
10643         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10644         (fork_execute): Remove functions.
10646 2014-06-26  Nick Clifton  <nickc@redhat.com>
10648         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10650         * doc/extend.texi (Function Attributes): Fix typo in description
10651         of RX vector attribute.
10653 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
10655         * config.gcc (supported_defaults): Error when passing either
10656         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10658 2014-06-26  Richard Biener  <rguenther@suse.de>
10660         * tree-ssa-dom.c (cprop_operand): Remove restriction on
10661         propagating volatile pointers.
10663 2014-06-26  Richard Biener  <rguenther@suse.de>
10665         PR tree-optimization/61607
10666         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10667         loop if we redirected its latch edge.
10668         (thread_block_1): Do not cancel loops prematurely.
10670 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
10672         * toplev.c (backend_init_target): Move init_emit_regs and
10673         init_regs to...
10674         (backend_init) ... here; skip ira_init_once and backend_init_target.
10675         (target_reinit) ... and here; clear
10676         this_target_rtl->lang_dependent_initialized.
10677         (lang_dependent_init_target): Clear
10678         this_target_rtl->lang_dependent_initialized;
10679         break out rtl initialization to ...
10680         (initialize_rtl): ... here; call also backend_init_target
10681         and ira_init_once.
10682         * toplev.h (initialize_rtl): New function.
10683         * function.c: Include toplev.h
10684         (init_function_start): Call initialize_rtl.
10685         * rtl.h (target_rtl): Add target_specific_initialized,
10686         lang_dependent_initialized.
10688 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
10689             Jakub Jelinek  <jakub@redhat.com>
10691         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10693 2014-06-25  Tom de Vries  <tom@codesourcery.com>
10695         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10697 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10699         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10700         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10701         Issue a strict overflow warning if appropriate.
10703 2014-06-25  Martin Liska  <mliska@suse.cz>
10705         IPA REF refactoring
10706         * Makefile.in: Removed header file (ipa-ref-inline.h).
10707         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10708         called.
10709         (cgraph_speculative_call_info): Likewise.
10710         (cgraph_for_node_thunks_and_aliases): Likewise.
10711         (cgraph_for_node_and_aliases): Likewise.
10712         (verify_cgraph_node): Likewise.
10713         * cgraph.h: Batch of IPA REF functions become member functions of
10714         symtab_node: add_reference, maybe_add_reference, clone_references,
10715         clone_referring, clone_reference, find_reference,
10716         remove_stmt_references, remove_all_references,
10717         remove_all_referring, dump_references, dump_referring,
10718         has_alias_p, iterate_reference, iterate_referring.
10719         * cgraphbuild.c (record_reference): New IPA REF function used.
10720         (record_type_list): Likewise.
10721         (record_eh_tables): Likewise.
10722         (mark_address): Likewise.
10723         (mark_load): Likewise.
10724         (mark_store): Likewise.
10725         (pass_build_cgraph_edges): Likewise.
10726         (rebuild_cgraph_edge): Likewise.
10727         (cgraph_rebuild_references): Likewise.
10728         (pass_remove_cgraph_callee_edges): Likewise.
10729         * cgraphclones.c (cgraph_clone_node): Likewise.
10730         (cgraph_create_virtual_clone): Likewise.
10731         (cgraph_materialize_clone): Likewise.
10732         (cgraph_materialize_all_clones): Likewise.
10733         * cgraphunit.c (cgraph_reset_node): Likewise.
10734         (cgraph_reset_node): Likewise.
10735         (analyze_function): Likewise.
10736         (assemble_thunks_and_aliases): Likewise.
10737         (expand_function): Likewise.
10738         * ipa-comdats.c (propagate_comdat_group): Likewise.
10739         (enqueue_references): Likewise.
10740         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10741         (create_specialized_node): Likewise.
10742         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10743         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10744         * ipa-inline.c (reset_edge_caches): Likewise.
10745         (update_caller_keys): Likewise.
10746         (execute): Likewise.
10747         * ipa-prop.c (remove_described_reference): Likewise.
10748         (propagate_controlled_uses): Likewise.
10749         (ipa_edge_duplication_hook): Likewise.
10750         (ipa_modify_call_arguments): Likewise.
10751         * ipa-pure-const.c (propagate_pure_const): Likewise.
10752         * ipa-ref-inline.h: Header file removed, functions moved
10753         to symtab_node class.
10754         * ipa-ref.c (remove_reference): New class member function.
10755         (cannot_lead_to_return): New class member function.
10756         (referring_ref_list): Likewise.
10757         (referred_ref_list): Likewise.
10758         Rest of functions moved to symtab_node class.
10759         * ipa-ref.h: New member functions remove_reference,
10760         cannot_lead_to_return, referring_ref_list, referred_ref_list added
10761         to ipa_ref class.
10762         ipa_ref_list class has new member functions: first_reference,
10763         first_referring, clear, nreferences.
10764         * ipa-reference.c (analyze_function): New IPA REF function used.
10765         (write_node_summary_p): Likewise.
10766         (ipa_reference_write_optimization_summary): Likewise.
10767         * ipa-split.c (split_function): Likewise.
10768         * ipa-utils.c (ipa_reverse_postorder): Likewise.
10769         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10770         (function_and_variable_visibility): Likewise.
10771         * ipa.c (has_addr_references_p): Likewise.
10772         (process_references): Argument type changed.
10773         (symtab_remove_unreachable_nodes): New IPA REF function used.
10774         (process_references): Likewise.
10775         (set_writeonly_bit): Likewise.
10776         * lto-cgraph.c: Implementation of new symtab_node member functions
10777         that uses new IPA REF functions.
10778         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10779         function used.
10780         * lto-streamer-out.c (output_symbol_p): Likewise.
10781         * lto-streamer.h (referenced_from_this_partition_p): Argument type
10782         changed.
10783         * symtab.c: Implementation of new IPA REF API.
10784         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10785         (ipa_tm_create_version): Likewise.
10786         (ipa_tm_execute): Likewise.
10787         * tree-emutls.c (gen_emutls_addr): Likewise.
10788         * tree-inline.c (copy_bb): Likewise.
10789         (delete_unreachable_blocks_update_callgraph): Likewise.
10790         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10791         (varpool_for_node_and_aliases): Likewise.
10793 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
10795         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10797 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
10799         PR bootstrap/61598
10800         * fold-const.c (fold_checksum_tree): Use a hash_table of const
10801         tree_node * instead of tree_node *.
10802         (fold): Adjust.
10803         (print_fold_checksum): Likewise.
10804         (fold_check_failed): Likewise.
10805         (debug_fold_checksum): Likewise.
10806         (fold_build1_stat_loc): Likewise.
10807         (fold_build2_stat_loc): Likewise.
10808         (fold_build3_stat_loc): Likewise.
10809         (fold_build_call_array_loc): Likewise.
10811 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
10813         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10814         implementation with call to...
10815         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10816         function.
10817         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10818         Declare.
10820 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
10822         PR tree-optimization/57742
10823         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10824         after replacing the statement.
10826 2014-06-25  Nick Clifton  <nickc@redhat.com>
10828         * config/v850/v850.c (GHS_default_section_names): Change to const
10829         char * type.
10830         (GHS_current_section_names): Likewise.
10831         (v850_insert_attributes): Do not build strings, just assign the
10832         names directly.  Change the type of 'chosen_section' to const
10833         char*.
10834         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10835         directly to the array entry.
10836         * config/v850/v850.h (GHS_default_section_names): Change to const
10837         char * type.
10838         (GHS_current_section_names): Likewise.
10840 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
10842         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10843         (LANG_HOOKS_DECLS): Add it.
10844         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10845         has correct type.
10846         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10847         * langhooks.h (struct lang_hooks_for_decls): Add
10848         omp_clause_linear_ctor hook.
10849         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10850         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
10851         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
10852         combined simd loop use omp_clause_linear_ctor hook.
10854 2014-06-24  Cong Hou  <congh@google.com>
10856         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10857         pattern recognition.
10858         (type_conversion_p): PROMOTION is true if it's a type promotion
10859         conversion, and false otherwise.  Return true if the given expression
10860         is a type conversion one.
10861         * tree-vectorizer.h: Adjust the number of patterns.
10862         * tree.def: Add SAD_EXPR.
10863         * optabs.def: Add sad_optab.
10864         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10865         * expr.c (expand_expr_real_2): Likewise.
10866         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10867         * gimple.c (get_gimple_rhs_num_ops): Likewise.
10868         * optabs.c (optab_for_tree_code): Likewise.
10869         * tree-cfg.c (estimate_operator_cost): Likewise.
10870         * tree-ssa-operands.c (get_expr_operands): Likewise.
10871         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10872         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10873         * doc/generic.texi: Add document for SAD_EXPR.
10874         * doc/md.texi: Add document for ssad and usad.
10876 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
10878         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10879         qualification in cast.
10881 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
10883         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10884         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10885         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10886         (tree_function_decl): ... here.
10887         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10888         streaming of vindex to ...
10889         (write_ts_function_decl_tree_pointers): ... here.
10890         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10891         Do not stream DECL_VINDEX.
10892         (lto_input_ts_function_decl_tree_pointers): Stream it here.
10894 2014-06-24  Catherine Moore  <clm@codesourcery.com>
10895             Sandra Loosemore  <sandra@codesourcery.com>
10897         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10898         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10899         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10901 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
10903         * doc/invoke.texi (Warning Options): Remove duplicated
10904         -Wmaybe-uninitialized.
10906 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
10908         PR tree-optimization/57742
10909         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10910         (handle_builtin_malloc, handle_builtin_memset): New functions.
10911         (strlen_optimize_stmt): Call them.
10912         * passes.def: Move strlen after loop+dom but before vrp.
10914 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
10916         PR target/61570
10917         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10918         model family 6 CPU with has_longmode never use a CPU without
10919         64-bit support.
10921 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10923         PR target/61570
10924         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10925         the last change.
10927 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
10929         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10930         * dominance.c (iterate_fix_dominators): Use hash_map instead of
10931         pointer_map.
10932         * hash-map.h: New file.
10933         * ipa-comdats.c: Use hash_map instead of pointer_map.
10934         * ipa.c: Likewise.
10935         * lto-section-out.c: Adjust.
10936         * lto-streamer.h: Replace pointer_map with hash_map.
10937         * symtab.c (verify_symtab): Likewise.
10938         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10939         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10940         * tree-streamer.h: Likewise.
10941         * tree-streamer.c: Adjust.
10942         * pointer-set.h: Remove pointer_map.
10944 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
10946         * hash-table.h: Add a template arg to choose between storing values
10947         and storing pointers to values, and then provide partial
10948         specializations for both.
10949         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10950         should store, not the type values should point to.
10951         * tree-into-ssa.c (var_info_hasher): Likewise.
10952         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10953         * tree-complex.c: Adjust.
10954         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10955         table instead of int_tree_map *.
10956         * tree-parloops.c: Adjust.
10957         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10958         type is being stored.
10959         * tree-vectorizer.c: Adjust.
10961 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
10963         * hash-table.h: Remove a layer of indirection from hash_table so that
10964         it contains the hash table's data instead of a pointer to the data.
10965         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10966         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10967         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10968         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10969         fold-const.c, gcse.c, ggc-common.c,
10970         gimple-ssa-strength-reduction.c, gimplify.c,
10971         graphite-clast-to-gimple.c, graphite-dependences.c,
10972         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10973         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10974         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10975         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10976         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10977         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10978         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10979         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10980         tree-ssa-live.c, tree-ssa-loop-im.c,
10981         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10982         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10983         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10984         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10985         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10986         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10987         vtable-verify.c, vtable-verify.h: Adjust.
10989 2014-06-24  Richard Biener  <rguenther@suse.de>
10991         PR tree-optimization/61572
10992         * tree-ssa-sink.c (statement_sink_location): Do not sink
10993         loads from hard registers.
10995 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
10997         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10998         not mentioned in clauses use private clause if the iterator is
10999         declared in #pragma omp for simd, and when adding lastprivate
11000         instead, add it to the outer #pragma omp for too.  Diagnose
11001         if the variable is private in outer context.  For simd collapse > 1
11002         loops, replace all iterators with temporaries.
11003         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11004         same even in collapse > 1 loops.
11006         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11007         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11008         non-NULL.
11009         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11010         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11011         non-NULL.
11012         (gimplify_adjust_omp_clauses): Likewise.
11013         * omp-low.c (lower_rec_simd_input_clauses,
11014         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11015         safelen the same as safelen(1).
11016         * tree-nested.c (convert_nonlocal_omp_clauses,
11017         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
11018         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11019         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11020         Fixup handling of GIMPLE_OMP_TARGET.
11021         (convert_tramp_reference_stmt, convert_gimple_call): Handle
11022         GIMPLE_OMP_TARGET.
11024 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
11026         PR tree-optimization/61554
11027         * tree-ssa-propagate.c: Include "bitmap.h".
11028         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11029         properly update constructor/destructor.
11030         (substitute_and_fold_dom_walker::before_dom_children):
11031         Remove call to gimple_purge_dead_eh_edges, add bb->index to
11032         need_eh_cleaup instead.
11033         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11034         need_eh_cleanup.
11036 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
11038         * varpool.c (dump_varpool_node): Dump used_by_single_function.
11039         * tree-pass.h (make_pass_ipa_single_use): New pass.
11040         * cgraph.h (used_by_single_function): New flag.
11041         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11042         Stream it.
11043         * passes.def (pass_ipa_single_use): Scedule.
11044         * ipa.c (BOTTOM): New macro.
11045         (meet): New function
11046         (propagate_single_user): New function.
11047         (ipa_single_use): New function.
11048         (pass_data_ipa_single_use): New pass.
11049         (pass_ipa_single_use): New pass.
11050         (pass_ipa_single_use::gate): New gate.
11051         (make_pass_ipa_single_use): New function.
11053 2014-06-23  Kai Tietz  <ktietz@redhat.com>
11055         PR target/39284
11056         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11057         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11059 2014-06-23  Richard Biener  <rguenther@suse.de>
11061         * tree-ssa-loop.c (gate_loop): New function.
11062         (pass_tree_loop::gate): Call it.
11063         (pass_data_tree_no_loop, pass_tree_no_loop,
11064         make_pass_tree_no_loop): New.
11065         * tree-vectorizer.c: Include tree-scalar-evolution.c
11066         (pass_slp_vectorize::execute): Initialize loops and SCEV if
11067         required.
11068         (pass_slp_vectorize::clone): New method.
11069         * timevar.def (TV_TREE_NOLOOP): New.
11070         * tree-pass.h (make_pass_tree_no_loop): Declare.
11071         * passes.def (pass_tree_no_loop): New pass group with
11072         SLP vectorizer.
11074 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
11076         PR target/61570
11077         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11078         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11080 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
11082         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11083         "yes" where needed.
11085 2014-06-23  Alan Modra  <amodra@gmail.com>
11087         PR bootstrap/61583
11088         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11089         to zero on debug statements.
11091 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
11093         PR target/60825
11094         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11095         Ignore third operand if present by marking qualifier_internal.
11097         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11099         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11100         vector extension.
11101         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11102         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11103         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11104         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11105         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11106         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11107         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11108         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11109         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11110         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11111         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11112         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11113         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11114         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11115         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11116         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11117         logic in GCC vector extensions
11119         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11120         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11121         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11122         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11123         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11124         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11125         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11126         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11127         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11128         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11130         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11132         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11133         extensions.
11135         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11136         (vget_low_s64): Use __GET_LOW macro.
11137         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11138         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11139         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11140         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11141         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11143         (vcombine_s64): Use GCC vector extensions; remove cast.
11144         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11145         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11146         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11147         Fix type signature; remove cast.
11149 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
11151         PR target/60825
11152         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11153         V1DFmode.
11154         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11155         add V1DFmode
11156         (BUILTIN_VD1): New.
11157         (BUILTIN_VD_RE): Remove.
11158         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11159         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11160         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11161         variant but not df.
11162         (vreinterpretv1df*, vreinterpret*v1df): New.
11163         (vreinterpretdf*, vreinterpret*df): Remove.
11164         * config/aarch64/aarch64-simd.md (aarch64_create,
11165         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11166         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11167         (VD1): New.
11168         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11169         (vcreate_f64): Remove cast, use v1df builtin.
11170         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11171         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11172         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11173         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11174         vmov_n_f64, vst1_f64): Use gcc vector extensions.
11175         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11176         add range check using __builtin_aarch64_im_lane_boundsi.
11177         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11178         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11179         type signature, use gcc vector extensions.
11180         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11181         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11182         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11183         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11184         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11185         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11186         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11187         vreinterpret_u64_f64): Use v1df builtin not df.
11189 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
11191         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11192         vector registers.
11194 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
11196         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11197         priority directly.
11199 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11201         * loop-invariant.c (pre_check_invariant_p): New function.
11202         (find_invariant_insn): Call pre_check_invariant_p.
11204 2014-06-22  Richard Henderson  <rth@redhat.com>
11206         PR target/61565
11207         * compare-elim.c (struct comparison): Add eh_note.
11208         (find_comparison_dom_walker::before_dom_children): Don't eliminate
11209         a redundant comparison in a different EH region.  Purge EH edges if
11210         necessary.
11212 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
11214         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11215         (var_shift): Use it.
11216         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11217         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11218         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11219         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11220         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11221         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11222         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11223         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11224         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11225         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11226         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11227         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11228         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11229         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11230         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11231         *rotldi3_internal15be): Use the new attribute.  Merge register and
11232         integer alternatives.
11234 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
11236         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11237         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11238         split, *ashrdi3_internal3 and split): Delete, merge into...
11239         (ashr<mode>3): New expander.
11240         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11241         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
11243 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
11245         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11246         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11247         *rotldi3_internal3 and split): Delete, merge into...
11248         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11249         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
11250         Use "rotlw" extended mnemonic.
11252 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
11254         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11255         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11256         and split, *ashldi3_internal3 and split): Delete, merge into...
11257         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11258         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
11260 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
11262         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11263         (lshrsi3, two anonymous define_insns and define_splits,
11264         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11265         *lshrdi3_internal3 and split): Delete, merge into...
11266         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11267         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
11269 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
11271         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11272         Remove "O" alternative.
11274 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
11276         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11277         (mips_move_from_gpr_cost): Likewise.
11278         (mips_register_move_cost): Update accordingly.
11279         (mips_secondary_reload_class): Remove name of in_p.
11281 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
11283         PR target/61503
11284         * config/i386/i386.md (x86_64_shrd, x86_shrd,
11285         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11287 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11289         * config/nios2/nios2.c: Include "builtins.h".
11291 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
11293         * cgraph.h (tls_model_names): New variable.
11294         * print-tree.c (print_node): Simplify.
11295         * varpool.c (tls_model_names): New variable.
11296         (dump_varpool_node): Output tls model.
11298 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
11300         * ipa-visibility.c (function_and_variable_visibility): Disable
11301         temporarily local aliases for some targets.
11303 2014-06-20  Marek Polacek  <polacek@redhat.com>
11305         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11306         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11307         into SANITIZE_UNDEFINED.
11308         * doc/invoke.texi: Describe -fsanitize=bounds.
11309         * gimplify.c (gimplify_call_expr): Add gimplification of internal
11310         functions created in the FEs.
11311         * internal-fn.c: Move "internal-fn.h" after "tree.h".
11312         (expand_UBSAN_BOUNDS): New function.
11313         * internal-fn.def (UBSAN_BOUNDS): New internal function.
11314         * internal-fn.h: Don't define internal functions here.
11315         * opts.c (common_handle_option): Add -fsanitize=bounds.
11316         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11317         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11318         * tree-core.h: Define internal functions here.
11319         (struct tree_base): Add ifn field.
11320         * tree-pretty-print.c: Include "internal-fn.h".
11321         (dump_generic_node): Handle functions without CALL_EXPR_FN.
11322         * tree.c (get_callee_fndecl): Likewise.
11323         (build_call_expr_internal_loc): New function.
11324         * tree.def (CALL_EXPR): Update description.
11325         * tree.h (CALL_EXPR_IFN): Define.
11326         (build_call_expr_internal_loc): Declare.
11327         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11328         types.
11329         (ubsan_type_descriptor): Change bool parameter to enum
11330         ubsan_print_style.  Adjust the code.  Add handling of
11331         UBSAN_PRINT_ARRAY.
11332         (ubsan_expand_bounds_ifn): New function.
11333         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11334         (ubsan_build_overflow_builtin): Likewise.
11335         (instrument_bool_enum_load): Likewise.
11336         (ubsan_instrument_float_cast): Likewise.
11337         * ubsan.h (enum ubsan_print_style): New enum.
11338         (ubsan_expand_bounds_ifn): Declare.
11339         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
11341 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
11343         * config/rs6000/rs6000.md: Append `DONE' to preparation
11344         statements of `bswap' pattern splitters.
11346 2014-06-20  Tom de Vries  <tom@codesourcery.com>
11348         * target.def (call_fusage_contains_non_callee_clobbers): Update
11349         definition.
11350         * doc/tm.texi: Regenerate.
11352 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
11353             Max Ostapenko  <m.ostapenko@partner.samsung.com>
11355         PR sanitizer/61547
11356         * asan.c (instrument_strlen_call): Fixed instrumentation of
11357         trailing byte.
11359 2014-06-20  Martin Jambor  <mjambor@suse.cz>
11361         PR ipa/61540
11362         * ipa-prop.c (impossible_devirt_target): New function.
11363         (try_make_edge_direct_virtual_call): Use it, also instead of
11364         asserting.
11366 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
11367             Max Ostapenko  <m.ostapenko@partner.samsung.com>
11369         PR sanitizer/61530
11370         * asan.c (build_check_stmt): Add condition.
11372 2014-06-20  Martin Jambor  <mjambor@suse.cz>
11374         PR ipa/61211
11375         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11376         expanded clones.
11378 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11380         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11381         Update comments.
11382         (VCONQ): Make comment more helpful.
11383         (VCON): Delete.
11384         * config/aarch64/aarch64-simd.md
11385         (aarch64_sqdmulh_lane<mode>):
11386         Use VCOND for operands 2.  Update lane checking and flipping logic.
11387         (aarch64_sqrdmulh_lane<mode>): Likewise.
11388         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11389         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11390         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11391         attribute of operand 3 to VCOND.
11392         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11393         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11394         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11395         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11396         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11397         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11398         define_insn.
11399         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11400         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11401         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11402         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11403         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11404         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11405         operand to VCOND.  Update lane flipping and bounds checking logic.
11406         (aarch64_sqdmlal2_lane<mode>): Likewise.
11407         (aarch64_sqdmlsl_lane<mode>): Likewise.
11408         (aarch64_sqdmull_lane<mode>): Likewise.
11409         (aarch64_sqdmull2_lane<mode>): Likewise.
11410         (aarch64_sqdmlal_laneq<mode>):
11411         Replace VCON usage with VCONQ.
11412         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11413         (aarch64_sqdmlal2_laneq<mode>): Emit
11414         aarch64_sqdmlal2_laneq<mode>_internal insn.
11415         Replace VCON with VCONQ.
11416         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11417         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11418         (aarch64_sqdmull_laneq<mode>): Emit
11419         aarch64_sqdmull_laneq<mode>_internal insn.
11420         Replace VCON with VCONQ.
11421         (aarch64_sqdmull2_laneq<mode>): Emit
11422         aarch64_sqdmull2_laneq<mode>_internal insn.
11423         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11424         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11425         of 3rd argument to int16x4_t.
11426         (vqdmlalh_lane_s16): Likewise.
11427         (vqdmlslh_lane_s16): Likewise.
11428         (vqdmull_high_lane_s16): Likewise.
11429         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11430         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11431         (vqdmlsl_lane_s16): Likewise.
11432         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11433         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11434         (vqdmlals_lane_s32): Likewise.
11435         (vqdmlsls_lane_s32): Likewise.
11436         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11437         (vqdmulls_lane_s32): Likewise.
11438         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11439         (vqdmlsl_lane_s32): Likewise.
11440         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11441         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11442         (vqrdmulhh_lane_s16): Likewise.
11443         (vqdmlsl_high_lane_s16): Likewise.
11444         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11445         (vqdmlsl_high_lane_s32): Likewise.
11446         (vqrdmulhs_lane_s32): Likewise.
11448 2014-06-20  Tom de Vries  <tom@codesourcery.com>
11450         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11451         get_call_reg_set_usage.
11453 2014-06-20  Tom de Vries  <tom@codesourcery.com>
11455         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11456         it contains all call_used_regs.
11458 2014-06-20  Tom de Vries  <tom@codesourcery.com>
11460         * final.c (collect_fn_hard_reg_usage): Add and use variable
11461         function_used_regs.
11463 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
11465         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11466         (set_init_priority, get_init_priority, set_fini_priority,
11467         get_fini_priority): New methods.
11468         * tree.c (init_priority_for_decl): Remove.
11469         (init_ttree): Do not initialize init priority.
11470         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11471         (decl_priority_info): Remove.
11472         (decl_init_priority_insert): Rewrite.
11473         (decl_fini_priority_insert): Rewrite.
11474         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11475         tree_priority_map_marked_p): Remove.
11476         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11477         * lto-streamer-out.c (hash_tree): Do not hash priorities.
11478         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11479         not output priorities.
11480         (pack_ts_function_decl_value_fields): Likewise.
11481         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11482         not input priorities.
11483         (unpack_ts_function_decl_value_fields): Likewise.
11484         * symtab.c (symbol_priority_map): Declare.
11485         (init_priority_hash): Declare.
11486         (symtab_unregister_node): Unregister from priority hash, too.
11487         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11488         New methods.
11489         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11490         (symbol_priority_info): New function.
11491         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11492         New methods.
11493         * tree-core.h (tree_priority_map): Remove.
11495 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
11497         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11498         0xff to uint64_t before shifting it up.
11500 2014-06-20  Julian Brown  <julian@codesourcery.com>
11501             Chung-Lin Tang  <cltang@codesourcery.com>
11503         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11504         TARGET_THUMB1_ONLY. Add comments.
11506 2014-06-19  Tom de Vries  <tom@codesourcery.com>
11508         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11509         return type to void.
11510         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11512 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11514         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11515         as "move", from depends_on.
11517 2014-06-19  Terry Guo  <terry.guo@arm.com>
11519         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11520         stage.
11522 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
11524         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11525         Remove cr5.
11526         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
11528 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
11530         PR target/61550
11531         * config/sh/sh.c (prepare_move_operands): Don't process TLS
11532         addresses here if reload in progress or completed.
11534 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
11536         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11537         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11538         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11539         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11540         (mips_register_priority): New function that implements the target
11541         hook TARGET_REGISTER_PRIORITY.
11542         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11543         (mips_lra_p): Likewise for TARGET_LRA_P.
11544         (TARGET_REGISTER_PRIORITY): Define macro.
11545         (TARGET_SPILL_CLASS): Likewise.
11546         (TARGET_LRA_P): Likewise.
11547         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11548         classes.
11549         (REG_CLASS_NAMES): Likewise.
11550         (REG_CLASS_CONTENTS): Likewise.
11551         (BASE_REG_CLASS): Use M16_SP_REGS.
11552         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11553         New set attribute to enable alternatives depending on the register
11554         allocator used.
11555         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11556         (*lea64): Disable pattern for MIPS16.
11557         * config/mips/mips.opt (mlra): New option.
11559 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
11561         * lra-constraints.c (base_to_reg): New function.
11562         (process_address): Use new function.
11564 2014-06-18  Tom de Vries  <tom@codesourcery.com>
11566         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11567         * config/aarch64/aarch64.c
11568         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11569         (aarch64_emit_call_insn): New function.
11570         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11571         of emit_call_insn.
11572         * config/aarch64/aarch64.md (define_expand "call_internal")
11573         (define_expand "call_value_internal", define_expand "sibcall_internal")
11574         (define_expand "sibcall_value_internal"): New.
11575         (define_expand "call", define_expand "call_value")
11576         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11577         expand variant and aarch64_emit_call_insn.
11579 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
11580             Tom de Vries  <tom@codesourcery.com>
11582         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11583         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11584         Redefine to true.
11585         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
11586         clobbers to CALL_INSN_FUNCTION_USAGE.
11587         (define_expand "sibcall_internal")
11588         (define_expand "sibcall_value_internal"): New.
11589         (define_expand "call", define_expand "call_value"): Add argument to
11590         arm_emit_call_insn.
11591         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11592         (define_expand "sibcall_value"): Use sibcall_value_internal and
11593         arm_emit_call_insn.
11595 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11597         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11599 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11601         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11602         __udivmoddi4.
11604 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11606         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11607         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11608         annotations. Fix DWARF information.
11610 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11612         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11613         __udivmoddi4, and fixups for negative operands.
11615 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11617         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11619 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11621         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11622         to __udivmoddi4.
11624 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11626         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11627         manipulation.
11629 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11631         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11632         describing register usage on function entry and exit.
11634 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11636         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11637         (__aeabi_ldivmod): Fix whitespace.
11639 2014-06-18  Andreas Schwab  <schwab@suse.de>
11641         * doc/md.texi (Standard Names): Use @itemx for grouped items.
11642         Remove blank line after @item.
11644 2014-06-18  Richard Henderson  <rth@redhat.com>
11646         PR target/61545
11647         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11649 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11651         * config/arm/arm.c (neon_vector_mem_operand): Allow register
11652         POST_MODIFY for neon loads and stores.
11653         (arm_print_operand): Output post-index register for neon loads and
11654         stores.
11656 2014-06-18  Richard Biener  <rguenther@suse.de>
11658         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11660 2014-06-18  Richard Biener  <rguenther@suse.de>
11662         * tree-pass.h (make_pass_dce_loop): Remove.
11663         * passes.def: Replace pass_dce_loop with pass_dce.
11664         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11665         changed free niter estimates and reset the scev cache.
11666         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11667         make_pass_dce_loop): Remove.
11668         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11669         (fini_copy_prop): Return whether something changed.  Always
11670         let substitute_and_fold perform DCE and free niter estimates
11671         and reset the scev cache if so.
11672         (execute_copy_prop): If sth changed schedule cleanup-cfg.
11673         (pass_data_copy_prop): Do not unconditionally schedule
11674         cleanup-cfg or update-ssa.
11676 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
11678         PR tree-optimization/61518
11679         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11680         reduction var is used in reduction stmt or phi-function only.
11682 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11684         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11686 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11688         PR tree-optimization/61517
11689         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11690         whose rhs's first tree is the source expression instead of the
11691         expression itself.
11692         (find_bswap_or_nop): Likewise.
11693         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11694         gimple stmt whose rhs's first tree is the source. In the memory source
11695         case, move the stmt to be replaced close to one of the original load to
11696         avoid the problem of a store between the load and the stmt's original
11697         location.
11698         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11699         signature.
11701 2014-06-18  Andreas Schwab  <schwab@suse.de>
11703         PR rtl-optimization/54555
11704         * postreload.c (move2add_use_add2_insn): Substitute
11705         STRICT_LOW_PART only if it is cheaper.
11707 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
11709         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11710         Do not use unspec as call operand.  Use memory_operand instead of
11711         memory_nox32_operand and add "m" operand constraint.  Disable
11712         pattern for TARGET_X32.
11713         (*sibcall_pop_memory): Ditto.
11714         (*sibcall_value_memory): Ditto.
11715         (*sibcall_value_pop_memory): Ditto.
11716         (sibcall peepholes): Merge SImode and DImode patterns using
11717         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
11718         Disable pattern for TARGET_X32.  Check if eliminated register is
11719         really dead after call insn.  Generate call RTX without unspec operand.
11720         (sibcall_value peepholes): Ditto.
11721         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
11722         instead of memory_nox32_operand.  Check if eliminated register is
11723         really dead after call insn. Generate call RTX without unspec operand.
11724         (sibcall_value_pop peepholes): Ditto.
11725         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11727 2014-06-18  Terry Guo  <terry.guo@arm.com>
11729         PR target/61544
11730         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11731         reach the head.
11733 2014-06-18  Olivier Hainque  <hainque@adacore.com>
11735         * tree-core.h (tree_block): Add an "end_locus" field, allowing
11736         memorization of the end of block source location.
11737         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11738         * gimplify.c (gimplify_bind_expr): Propagate the block start and
11739         end source location info we have on the block entry/exit code we
11740         generate.
11742 2014-06-18  Richard Biener  <rguenther@suse.de>
11744         * common.opt (fssa-phiopt): New option.
11745         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11746         but not with -Og.
11747         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11748         * doc/invoke.texi (-fssa-phiopt): Document.
11750 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11752         * genattrtab.c (n_bypassed): New variable.
11753         (process_bypasses): Initialise n_bypassed.
11754         Count number of bypassed reservations.
11755         (make_automaton_attrs): Allocate space for bypassed reservations
11756         rather than number of bypasses.
11758 2014-06-18  Richard Biener  <rguenther@suse.de>
11760         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11761         we propagated anything.
11762         (substitute_and_fold_dom_walker::before_dom_children): Something
11763         changed if we propagated into PHI arguments.
11764         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11765         we removed a stmt.
11767 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
11769         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11770         vector case.
11771         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11772         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11773         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11774         Introduces alternative way of loads group permutaions.
11775         (vect_transform_grouped_load): Try alternative way of permutations.
11777 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
11779         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11780         changed in ORT_TARGET region, don't jump to do_outer.
11781         (struct gimplify_adjust_omp_clauses_data): New type.
11782         (gimplify_adjust_omp_clauses_1): Adjust for data being
11783         a struct gimplify_adjust_omp_clauses_data pointer instead
11784         of tree *.  Pass pre_p as a new argument to
11785         lang_hooks.decls.omp_finish_clause hook.
11786         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11787         splay_tree_foreach to pass both list_p and pre_p.
11788         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11789         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11790         gimplify_adjust_omp_clauses callers.
11791         * langhooks.c (lhd_omp_finish_clause): New function.
11792         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11793         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11794         * langhooks.h (struct lang_hooks_for_decls): Add a new
11795         gimple_seq * argument to omp_finish_clause hook.
11796         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11797         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11798         (scan_omp_parallel, lower_omp_for): When adding
11799         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11800         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11801         * tree-nested.c (convert_nonlocal_omp_clauses,
11802         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11803         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11805 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
11807         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11808         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11810 2014-06-17  Xinliang David Li  <davidxl@google.com>
11812         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11813         * passes.c (pass_init_dump_file): Do not set initialize
11814         flag to false unconditionally.
11816 2014-06-17  Richard Biener  <rguenther@suse.de>
11818         * genopinit.c (main): Use vec<>::qsort method.
11819         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11820         Likewise.
11821         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11823 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
11825         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11826         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11827         (mips_move_to_gpr_cost): Remove ST_REGS case.
11828         (mips_move_from_gpr_cost): Likewise.
11829         (mips_register_move_cost): Likewise.
11830         (mips_secondary_reload_class): Likewise.
11832 2014-06-17  Richard Biener  <rguenther@suse.de>
11834         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11835         (pass_all_optimizations): Move 3rd copy-prop pass from after
11836         fre to before ifcombine/phiopt.
11838 2014-06-17  Richard Biener  <rguenther@suse.de>
11840         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11841         and allow all blocks to be forwarders.
11843 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
11845         PR target/61483
11846         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11847         variable 'size'; calculate 'size' right in the front; use
11848         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11849         pcum->aapcs_stack_words.
11851 2014-06-17  Nick Clifton  <nickc@redhat.com>
11853         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11854         (umulhi3, mulsidi3, umulsidi3): Likewise.
11856 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
11858         PR middle-end/61508
11859         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11860         check for section name.
11862 2014-06-17  Richard Biener  <rguenther@suse.de>
11864         * tree-ssa-propagate.c: Include domwalk.h.
11865         (substitute_and_fold): Outline main worker into a domwalker ...
11866         (substitute_and_fold_dom_walker::before_dom_children): ... here.
11867         Schedule stmts we can fully propagate for removal.  Remove
11868         poor-mans DCE.
11869         (substitute_and_fold): Apply a dominator walk to perform
11870         substitution.  Process stmts scheduled for removal here.
11872 2014-06-17  Richard Biener  <rguenther@suse.de>
11874         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11875         of PHI node moving.
11877 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
11879         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11880         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11881         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11882         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11883         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11884         TARGET_HARD_FLOAT.
11885         (get_fpscr) : Likewise.
11887 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
11889         PR rtl-optimization/61325
11890         * lra-constraints.c (valid_address_p): Add forward declaration.
11891         (simplify_operand_subreg): Check address validity before and after
11892         alter_reg of memory subreg.
11894 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
11896         * config/i386/i386.c (decide_alg): Correctly handle
11897         maximum size of stringop algorithm.
11899 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
11901         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11903 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
11905         PR rtl-optimization/61522
11906         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11908 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
11910         Revert:
11911         * symtab.c (symtab_node::reset_section): New method.
11912         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11913         for localization.
11914         * cgraph.h (reset_section): Declare.
11915         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11916         do not consider comdat locals.
11917         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11918         for new symbol.
11919         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11920         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11921         reset sections of symbols dragged out of the comdats.
11922         (function_and_variable_visibility): Reset sections of
11923         localized symbols.
11925 2014-06-16  Richard Biener  <rguenther@suse.de>
11927         PR tree-optimization/61482
11928         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11929         [-INF(OVF), +INF(OVF)] range.
11931 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11933         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11934         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11935         handling 32-bit multiplication.
11937 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
11939         PR middle-end/61430
11940         * lra-lives.c (process_bb_lives): Skip creating copy during
11941         insn scan when src/dest has constrained to same regno.
11943 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
11945         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11946         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11948 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
11950         * asan.c (check_func): New function.
11951         (maybe_create_ssa_name): Likewise.
11952         (build_check_stmt_with_calls): Likewise.
11953         (use_calls_p): Likewise.
11954         (report_error_func): Change interface.
11955         (build_check_stmt): Allow non-integer lengths; add support
11956         for new parameter.
11957         (asan_instrument): Likewise.
11958         (instrument_mem_region_access): Moved code to build_check_stmt.
11959         (instrument_derefs): Likewise.
11960         (instrument_strlen_call): Likewise.
11961         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11962         * doc/invoke.texi: Describe new parameter.
11963         * params.def: Define new parameter.
11964         * params.h: Likewise.
11965         * sanitizer.def: Describe new builtins.
11967 2014-06-16  Richard Biener  <rguenther@suse.de>
11969         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11970         Make all defs available at the end.
11971         (eliminate): If we remove a PHI node schedule cfg-cleanup.
11973 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
11975         PR plugins/45078
11976         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11978 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
11980         PR bootstrap/61516
11981         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11982         initialization.  Replace remaining use of uid.
11984 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
11986         * c-family/c-common.c (handle_tls_model_attribute): Use
11987         set_decl_tls_model.
11988         * c-family/c-common.c (handle_tls_model_attribute): Use
11989         set_decl_tls_model.
11990         * cgraph.h (struct varpool_node): Add tls_model.
11991         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11992         * tree.h (DECL_TLS_MODEL): Update.
11993         (DECL_THREAD_LOCAL_P): Check that variable is static.
11994         (decl_tls_model): Declare.
11995         (set_decl_tls_model): Declare.
11996         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11997         set symbol prorperties.
11998         (get_emutls_init_templ_addr): Cleanup.
11999         (new_emutls_decl): Update.
12000         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12001         (lto_input_varpool_node): Likewise.
12002         * lto-streamer-out.c (hash_tree): Likewise.
12003         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12004         not stream DECL_TLS_MODEL.
12005         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12006         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12008 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
12010         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12012 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
12014         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12015         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12016         lists.
12017         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12018         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12019         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12020         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12021         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12022         (df_get_artificial_defs, df_get_artificial_uses)
12023         (df_single_def, df_single_use): Update accordingly.
12024         (df_refs_chain_dump): Take the first element in a linked list as
12025         parameter, rather than a pointer to an array of pointers.
12026         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12027         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12028         (df_chain_create_bb_process_use): Likewise.
12029         (df_md_bb_local_compute_process_def): Likewise.
12030         * fwprop.c (process_defs, process_uses): Likewise.
12031         (register_active_defs, update_uses): Likewise.
12032         (forward_propagate_asm): Update for new df_ref linking.
12033         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12034         (df_null_ref_rec, df_null_mw_rec): Likewise.
12035         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12036         explicitly.
12037         (df_scan_free_bb_info): Remove check for null artificial_defs.
12038         (df_install_ref_incremental): Adjust for new df_ref linking.
12039         Use a single-element insertion rather than a full sort.
12040         (df_ref_chain_delete_du_chain): Take the first element
12041         in a linked list as parameter, rather than a pointer to an array of
12042         pointers.
12043         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12044         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12045         (df_insn_info_delete): Remove check for null defs and call to
12046         df_scan_free_mws_vec.
12047         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12048         null rather than df_null_*_rec.
12049         (df_insn_rescan_debug_internal): Likewise, and update null
12050         checks in the same way.  Remove check for null defs.
12051         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12052         Move a single element rather doing a full sort.
12053         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12054         linking.
12055         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
12056         Initialize df_ref and df_mw_hardreg lists to null rather than
12057         df_null_*_rec.
12058         (df_ref_compare): Take df_refs as parameter, transferring the
12059         old interface to...
12060         (df_ref_ptr_compare): ...this new function.
12061         (df_sort_and_compress_refs): Update accordingly.
12062         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12063         old interface to...
12064         (df_mw_ptr_compare): ...this new function.
12065         (df_sort_and_compress_mws): Update accordingly.
12066         (df_install_refs, df_install_mws): Return a linked list rather than
12067         an array of pointers.
12068         (df_refs_add_to_chains): Assert that old lists are empty rather
12069         than freeing them.
12070         (df_insn_refs_verify): Don't handle null defs speciailly.
12071         * web.c (union_match_dups): Update for new df_ref linking.
12073 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
12075         * df.h (df_ref_create, df_ref_remove): Delete.
12076         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12077         (df_ref_remove): Likewise.
12079 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
12081         * df.h (df_single_def, df_single_use): New functions.
12082         * ira.c (find_moveable_pseudos): Use them.
12084 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
12086         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12087         * df-problems.c (df_note_bb_compute): Use it.
12088         * regstat.c (regstat_bb_compute_ri): Likewise.
12090 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
12092         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12093         * cse.c (cse_extended_basic_block): Use them.
12094         * dce.c (mark_artificial_use): Likewise.
12095         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12096         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12097         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12098         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12099         (df_simulate_initialize_backwards): Likewise.
12100         (df_simulate_finalize_backwards): Likewise.
12101         (df_simulate_initialize_forwards): Likewise.
12102         (df_md_simulate_artificial_defs_at_top): Likewise.
12103         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12104         * regrename.c (init_rename_info): Likewise.
12105         * regstat.c (regstat_bb_compute_ri): Likewise.
12106         (regstat_bb_compute_calls_crossed): Likewise.
12108 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
12110         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12111         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12112         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12113         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12114         * combine.c (create_log_links): Likewise.
12115         * compare-elim.c (find_flags_uses_in_insn): Likewise.
12116         (try_eliminate_compare): Likewise.
12117         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12118         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12119         (remove_reg_equal_equiv_notes_for_defs): Likewise.
12120         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12121         (word_dce_process_block, dce_process_block): Likewise.
12122         * ddg.c (def_has_ccmode_p): Likewise.
12123         * df-core.c (df_bb_regno_first_def_find): Likewise.
12124         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12125         * df-problems.c (df_rd_simulate_one_insn): Likewise.
12126         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12127         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12128         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12129         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12130         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12131         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12132         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12133         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12134         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12135         * fwprop.c (local_ref_killed_between_p): Likewise.
12136         (all_uses_available_at, free_load_extend): Likewise.
12137         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12138         * hw-doloop.c (scan_loop): Likewise.
12139         * ifcvt.c (dead_or_predicable): Likewise.
12140         * init-regs.c (initialize_uninitialized_regs): Likewise.
12141         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12142         (process_bb_node_lives): Likewise.
12143         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12144         (find_moveable_pseudos): Likewise.
12145         * loop-invariant.c (check_dependencies, record_uses): Likewise.
12146         * recog.c (peep2_find_free_register): Likewise.
12147         * ree.c (get_defs): Likewise.
12148         * regstat.c (regstat_bb_compute_ri): Likewise.
12149         (regstat_bb_compute_calls_crossed): Likewise.
12150         * sched-deps.c (find_inc, find_mem): Likewise.
12151         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12152         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12153         * shrink-wrap.c (requires_stack_frame_p): Likewise.
12154         (prepare_shrink_wrap): Likewise.
12155         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12156         * web.c (union_defs, pass_web::execute): Likewise.
12157         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12158         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12160 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
12162         * lra-assign.c (assign_by_spills): Add code to assign vector regs
12163         to inheritance pseudos.
12164         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12166 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
12168         PR target/61415
12169         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12170         (BU_MISC_2): Rename to ...
12171         (BU_LDBL128_2): ... this.
12172         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12173         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12174         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12175         RS6000_BTM_LDBL128.
12176         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12177         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12178         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12179         (unpacktf_1): Likewise.
12180         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12181         (__builtin_longdouble_dw1): Likewise.
12182         * doc/sourcebuild.texi (longdouble128): Document.
12184 2014-06-13  Jeff Law  <law@redhat.com>
12186         PR rtl-optimization/61094
12187         PR rtl-optimization/61446
12188         * ree.c (combine_reaching_defs): Get the mode for the copy from
12189         the extension insn rather than the defining insn.
12191 2014-06-13  Dehao Chen  <dehao@google.com>
12193         * dwarf2out.c (add_linkage_name): Emit more linkage name.
12195 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
12197         * doc/install.texi (--enable-linker-plugin-configure-flags)
12198         (--enable-linker-plugin-flags): Document new flags.
12200 2014-06-13  Martin Jambor  <mjambor@suse.cz>
12202         PR ipa/61186
12203         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12204         cache_token if returning early.
12206 2014-06-13  Nick Clifton  <nickc@redhat.com>
12208         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12209         requested alignment is active.
12210         (LABEL_ALIGN): Likewise.
12211         (LOOP_ALIGN): Likewise.
12213 2014-06-13  Richard Biener  <rguenther@suse.de>
12215         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12216         Rewrite to propagate the VN result into all uses where
12217         possible and to remove stmts becoming dead because of that.
12218         (eliminate): Generalize stmt removal handling, remove in
12219         reverse dominator order to support proper debug stmt
12220         generation.  Update stmts before removing stmts.
12221         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12223 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12225         PR tree-optimization/61375
12226         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12227         symbolic number cannot be represented in an uint64_t.
12228         (find_bswap_or_nop_1): Likewise.
12230 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
12232         * symtab.c (symtab_node::reset_section): New method.
12233         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12234         for localization.
12235         * cgraph.h (reset_section): Declare.
12236         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12237         do not consider comdat locals.
12238         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12239         for new symbol.
12240         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12241         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12242         reset sections of symbols dragged out of the comdats.
12243         (function_and_variable_visibility): Reset sections of
12244         localized symbols.
12246 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
12248         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12249         to use symtab and decl_binds_to_current_def_p
12250         * tree-vectorizer.c (increase_alignment): Increase alignment
12251         of alias target, too.
12253 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
12255         PR middle-end/61486
12256         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12257         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12258         if outer combined construct is distribute.
12259         (gimplify_omp_for): For OMP_DISTRIBUTE set
12260         gimplify_omp_ctxp->distribute.
12261         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12262         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12263         mapping into decl map.
12265 2014-06-12  Jason Merrill  <jason@redhat.com>
12267         * common.opt (fabi-version): Change default to 0.
12269 2014-06-12  Jason Merrill  <jason@redhat.com>
12271         * toplev.c (process_options): Reject -fabi-version=1.
12273 2014-06-12  Jeff Law  <law@redhat.com>
12275         PR tree-optimization/61009
12276         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12277         value when we stop processing a block due to problematic PHIs.
12279 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
12281         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12282         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12283         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12284         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12285         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12286         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12287         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12288         are not in the spec.
12290 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
12292         PR target/59843
12293         * config/aarch64/aarch64-modes.def: Add V1DFmode.
12294         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12295         Support V1DFmode.
12297 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
12299         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12301 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
12303         PR target/61443
12304         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12305         loading from address spaces.
12307 2014-06-12  Martin Liska  <mliska@suse.cz>
12309         PR ipa/61462
12310         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12311         statement is reachable.
12313 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
12315         * symtab.c (section_hash): New hash.
12316         (symtab_unregister_node): Clear section before freeing.
12317         (hash_section_hash_entry): New haser.
12318         (eq_sections): New function.
12319         (symtab_node::set_section_for_node): New method.
12320         (set_section_1): Update.
12321         (symtab_node::set_section): Take string instead of tree as parameter.
12322         (symtab_resolve_alias): Update.
12323         * cgraph.h (section_hash_entry_d): New structure.
12324         (section_hash_entry): New typedef.
12325         (cgraph_node): Change comdat_group_ to x_comdat_group,
12326         change section_ to x_section and turn into section_hash_entry;
12327         update accestors; put set_section_for_node offline.
12328         * tree.c (decl_section_name): Turn into string.
12329         (set_decl_section_name): Change parameter to be string.
12330         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12331         * sdbout.c (sdbout_one_type): Update.
12332         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12333         * varasm.c (IN_NAMED_SECTION, get_named_section,
12334         resolve_unique_section, hot_function_section, get_named_text_section,
12335         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12336         make_decl_rtl, default_unique_section): Update.
12337         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12338         (c6x_elf_unique_section): Update.
12339         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12340         * config/pa/pa.c (pa_function_section): Update.
12341         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12342         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12343         * config/arc/arc.c (arc_in_small_data_p): Update.
12344         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12345         * config/mcore/mcore.c (mcore_unique_section): Update.
12346         * config/mips/mips.c (mips16_build_function_stub): Update.
12347         (mips16_build_call_stub): Update.
12348         (mips_function_rodata_section): Update.
12349         (mips_in_small_data_p): Update.
12350         * config/score/score.c (score_in_small_data_p): Update.
12351         * config/rx/rx.c (rx_in_small_data): Update.
12352         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12353         (rs6000_xcoff_asm_named_section): Update.
12354         (rs6000_xcoff_unique_section): Update.
12355         * config/frv/frv.c (frv_string_begins_with): Update.
12356         (frv_in_small_data_p): Update.
12357         * config/v850/v850.c (v850_encode_data_area): Update.
12358         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12359         (bfin_handle_l1_data_attribute): Update.
12360         (bfin_handle_l2_attribute): Update.
12361         * config/mep/mep.c (mep_unique_section): Update.
12362         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12363         Update.
12364         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12365         (h8300_handle_tiny_data_attribute): Update.
12366         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12367         (m32r_in_small_data_p): Update.
12368         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12369         * config/i386/i386.c (ix86_in_large_data_p): Update.
12370         * config/i386/winnt.c (i386_pe_unique_section): Update.
12371         * config/darwin.c (darwin_function_section): Update.
12372         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12373         * tree-emutls.c (get_emutls_init_templ_addr): Update.
12374         (new_emutls_decl): Update.
12375         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12376         input_varpool_node): Update.
12377         (ead_string_cst): Turn to ...
12378         (read_string): ... this one.
12379         * dwarf2out.c (secname_for_decl): Update.
12380         * asan.c (asan_protect_global): Update.
12382 2014-06-11  DJ Delorie  <dj@redhat.com>
12384         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12385         cache lines.
12386         * config/rx/rx.c (rx_option_override): Likewise.
12387         (rx_align_for_label): Likewise.
12389         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12391 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
12393         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12394         prototype.
12396 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12398         * common.md: New file.
12399         * doc/md.texi: Update description of generic, machine-independent
12400         constraints.
12401         * config/s390/constraints.md (e): Delete.
12402         * Makefile.in (md_file): Include common.md.
12403         * config/m32c/t-m32c (md_file): Likewise.
12404         * genpreds.c (general_mem): New array.
12405         (generic_constraint_letters): Remove constraints now defined by
12406         common.md.
12407         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12408         Allow the first character to be '<' or '>' as well.
12409         * genoutput.c (general_mem): New array.
12410         (indep_constraints): Remove constraints now defined by common.md.
12411         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12412         Remove special handling of 'm'.
12413         * ira-costs.c (record_reg_classes): Remove special handling of
12414         constraints now defined by common.md.
12415         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12416         * ira-lives.c (single_reg_class): Likewise.
12417         (ira_implicitly_set_insn_hard_regs): Likewise.
12418         * lra-constraints.c (reg_class_from_constraints): Likewise.
12419         (process_alt_operands, process_address, curr_insn_transform): Likewise.
12420         * postreload.c (reload_cse_simplify_operands): Likewise.
12421         * reload.c (push_secondary_reload, scratch_reload_class)
12422         (find_reloads, alternative_allows_const_pool_ref): Likewise.
12423         * reload1.c (maybe_fix_stack_asms): Likewise.
12424         * targhooks.c (default_secondary_reload): Likewise.
12425         * stmt.c (parse_output_constraint): Likewise.
12426         * recog.c (preprocess_constraints): Likewise.
12427         (constrain_operands, peep2_find_free_register): Likewise.
12428         (asm_operand_ok): Likewise, but add a comment saying why 'o'
12429         must be handled specially.
12431 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12433         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12434         * genpreds.c (have_const_dbl_constraints): Delete.
12435         (add_constraint): Don't set it.
12436         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12437         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12438         constraints using the lookup_constraint logic.
12439         * ira-lives.c (single_reg_class): Likewise.
12440         * ira.c (ira_setup_alts): Likewise.
12441         * lra-constraints.c (process_alt_operands): Likewise.
12442         * recog.c (asm_operand_ok, constrain_operands): Likewise.
12443         * reload.c (find_reloads): Likewise.
12445 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12447         * genpreds.c (const_int_start, const_int_end): New variables.
12448         (choose_enum_order): Output CONST_INT constraints before memory
12449         constraints.
12450         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12451         Add CT_CONST_INT.
12452         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12453         * ira.c (ira_setup_alts): Likewise.
12454         * lra-constraints.c (process_alt_operands): Likewise.
12455         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12456         * reload.c (find_reloads): Likewise.
12458 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12460         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12461         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
12462         * recog.c (preprocess_constraints): Update accordingly.
12464 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12466         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12467         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12468         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12469         * genpreds.c (print_type_tree): New function.
12470         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12471         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12472         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12473         Write out enum constraint_type and get_constraint_type.
12474         * lra-constraints.c (satisfies_memory_constraint_p): Take a
12475         constraint_num rather than a constraint string.
12476         (satisfies_address_constraint_p): Likewise.
12477         (reg_class_from_constraints): Avoid old constraint macros.
12478         (process_alt_operands, process_address_1): Likewise.
12479         (curr_insn_transform): Likewise.
12480         * ira-costs.c (record_reg_classes): Likewise.
12481         (record_operand_costs): Likewise.
12482         * ira-lives.c (single_reg_class): Likewise.
12483         (ira_implicitly_set_insn_hard_regs): Likewise.
12484         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12485         * postreload.c (reload_cse_simplify_operands): Likewise.
12486         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12487         (constrain_operands, peep2_find_free_register): Likewise.
12488         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12489         (find_reloads, alternative_allows_const_pool_ref): Likewise.
12490         * reload1.c (maybe_fix_stack_asms): Likewise.
12491         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12492         * targhooks.c (default_secondary_reload): Likewise.
12493         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12494         to EXTRA_CONSTRAINT_STR.
12495         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12497 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12499         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12500         (write_constraint_satisfied_p_array): ...this new function.
12501         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12502         an array.
12503         (write_insn_preds_c): Update accordingly.
12505 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12507         * genpreds.c (write_lookup_constraint): Rename to...
12508         (write_lookup_constraint_1): ...this.
12509         (write_lookup_constraint_array): New function.
12510         (write_tm_preds_h): Define lookup_constraint as an inline function
12511         that uses write_lookup_constraint_array where possible.
12512         (write_insn_preds_c): Update for the changes above.
12514 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12516         * doc/md.texi (regclass_for_constraint): Rename to...
12517         (reg_class_for_constraint): ...this.
12518         * genpreds.c (num_constraints, enum_order, register_start)
12519         (register_end, satisfied_start, memory_start, memory_end)
12520         (address_start, address_end): New variables.
12521         (add_constraint): Count the number of constraints.
12522         (choose_enum_order): New function.
12523         (write_enum_constraint_num): Iterate over enum_order.
12524         (write_regclass_for_constraint): Rename to...
12525         (write_reg_class_for_constraint_1): ...this and update output
12526         accordingly.
12527         (write_constraint_satisfied_p): Rename to...
12528         (write_constraint_satisfied_p_1): ...this and update output
12529         accordingly.  Do nothing if all extra constraints are register
12530         constraints.
12531         (write_insn_extra_memory_constraint): Delete.
12532         (write_insn_extra_address_constraint): Delete.
12533         (write_range_function): New function.
12534         (write_tm_preds_h): Define constraint_satisfied_p and
12535         reg_class_for_constraint as inline functions that do a range check
12536         before calling the out-of-line function.  Use write_range_function
12537         to implement insn_extra_{register,memory,address}_constraint,
12538         the first of which is new.
12539         (write_insn_preds_c): Update after above changes to write_* functions.
12540         (main): Call choose_enum_order.
12542 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12544         PR tree-optimization/61306
12545         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12546         expression instead of its size.
12547         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12548         false to prevent optimization when the result is unpredictable due to
12549         arithmetic right shift of signed type with highest byte is set.
12550         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12551         (init_symbolic_number): Likewise.
12552         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12553         when the result is unpredictable due to sign extension.
12555 2014-06-11  Terry Guo  <terry.guo@arm.com>
12557         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12558         (*thumb1_addsi3): Ditto.
12559         (*thumb_subdi3): Ditto.
12560         (thumb1_subsi3_insn): Ditto.
12561         (*thumb_mulsi3): Ditto.
12562         (*thumb_mulsi3_v6): Ditto.
12563         (*thumb1_andsi3_insn): Ditto.
12564         (thumb1_bicsi3): Ditto.
12565         (*thumb1_iorsi3_insn): Ditto.
12566         (*thumb1_xorsi3_insn): Ditto.
12567         (*thumb1_ashlsi3): Ditto.
12568         (*thumb1_ashrsi3): Ditto.
12569         (*thumb1_lshrsi3): Ditto.
12570         (*thumb1_rotrsi3): Ditto.
12571         (*thumb1_negdi2): Ditto.
12572         (*thumb1_negsi2): Ditto.
12573         (*thumb1_abssi2): Ditto.
12574         (*thumb1_neg_abssi2): Ditto.
12575         (*thumb1_one_cmplsi2): Ditto.
12576         (*thumb1_zero_extendhisi2): Ditto.
12577         (*thumb1_zero_extendqisi2): Ditto.
12578         (*thumb1_zero_extendqisi2_v6): Ditto.
12579         (thumb1_extendhisi2): Ditto.
12580         (thumb1_extendqisi2): Ditto.
12581         (*thumb1_movdi_insn): Ditto.
12582         (*thumb1_movsi_insn): Ditto.
12583         (*thumb1_movhi_insn): Ditto.
12584         (thumb_movhi_clobber): Ditto.
12585         (*thumb1_movqi_insn): Ditto.
12586         (*thumb1_movhf): Ditto.
12587         (*thumb1_movsf_insn): Ditto.
12588         (*thumb_movdf_insn): Ditto.
12589         (movmem12b): Ditto.
12590         (movmem8b): Ditto.
12591         (cbranchqi4): Ditto.
12592         (cbranchsi4_insn): Ditto.
12593         (cbranchsi4_scratch): Ditto.
12594         (*negated_cbranchsi4): Ditto.
12595         (*tbit_cbranch): Ditto.
12596         (*tlobits_cbranch): Ditto.
12597         (*tstsi3_cbranch): Ditto.
12598         (*cbranchne_decr1): Ditto.
12599         (*addsi3_cbranch): Ditto.
12600         (*addsi3_cbranch_scratch): Ditto.
12601         (*thumb_cmpdi_zero): Ditto.
12602         (cstoresi_eq0_thumb1): Ditto.
12603         (cstoresi_ne0_thumb1): Ditto.
12604         (*cstoresi_eq0_thumb1_insn): Ditto.
12605         (*cstoresi_ne0_thumb1_insn): Ditto.
12606         (cstoresi_nltu_thumb1): Ditto.
12607         (cstoresi_ltu_thumb1): Ditto.
12608         (thumb1_addsi3_addgeu): Ditto.
12609         (*thumb_jump): Ditto.
12610         (*call_reg_thumb1_v5): Ditto.
12611         (*call_reg_thumb1): Ditto.
12612         (*call_value_reg_thumb1_v5): Ditto.
12613         (*call_value_reg_thumb1): Ditto.
12614         (*call_insn): Ditto.
12615         (*call_value_insn): Ditto.
12616         (thumb1_casesi_internal_pic): Ditto.
12617         (thumb1_casesi_dispatch): Ditto.
12618         (*thumb1_indirect_jump): Ditto.
12619         (prologue_thumb1_interwork): Ditto.
12620         (*epilogue_insns): Ditto.
12621         (consttable_1): Ditto.
12622         (consttable_2): Ditto.
12623         (tablejump): Ditto.
12624         (*thumb1_tablejump): Ditto.
12625         (thumb_eh_return): Ditto.
12626         (define_peephole2): Two of them are thumb1 only and got moved into
12627         new file thumb1.md.
12628         (define_split): Six of them are thumb1 only and got moved into new
12629         file thumb1.md.
12630         * config/arm/thumb1.md: New file comprised of above thumb1 only
12631         patterns.
12633 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12635         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12636         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12637         dependencies.
12638         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12639         (aarch64_crc_builtin_datum): New struct.
12640         (aarch64_crc_builtin_data): New.
12641         (aarch64_init_crc32_builtins): New function.
12642         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12643         (aarch64_crc32_expand_builtin): New.
12644         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12645         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12646         __ARM_FEATURE_CRC32 when appropriate.
12647         (TARGET_CRC32): Define.
12648         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12649         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12650         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12651         (aarch64_<crc_variant>): New pattern.
12652         * config/aarch64/arm_acle.h: New file.
12653         * config/aarch64/iterators.md (CRC): New int iterator.
12654         (crc_variant, crc_mode): New int attributes.
12655         * doc/aarch64-acle-intrinsics.texi: New file.
12656         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12657         Include aarch64-acle-intrinsics.texi.
12659 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
12661         * tree-vect-data-refs.c (vect_grouped_store_supported): New
12662         check for stores group of length 3.
12663         (vect_permute_store_chain): New permutations for stores group of
12664         length 3.
12665         * tree-vect-stmts.c (vect_model_store_cost): Change cost
12666         of vec_perm_shuffle for the new permutations.
12668 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
12670         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12671         table rewriting temporarily on targets not supporting ONE_ONLY.
12673 2014-06-11  Richard Biener  <rguenther@suse.de>
12675         PR middle-end/61437
12676         Revert
12677         2014-06-04  Richard Biener  <rguenther@suse.de>
12679         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12680         TREE_PUBLIC and DECL_EXTERNAL decls.
12682 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
12684         * varasm.c (set_implicit_section): New function.
12685         (resolve_unique_section): Use it to set implicit section
12686         for aliases, too.
12687         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12688         (default_function_section): Likewise.
12689         (decl_binds_to_current_def_p): Constify argument.
12690         * varasm.h (decl_binds_to_current_def_p): Update prototype.
12691         * asan.c (asan_protect_global): Use
12692         symtab_get_node (decl)->implicit_section.
12693         * symtab.c (dump_symtab_base): Dump implicit sections.
12694         (verify_symtab_base): Verify sanity of sectoins and comdats.
12695         (symtab_resolve_alias): Alias share the section of its target.
12696         (set_section_1): New function.
12697         (symtab_node::set_section): Move here, recurse to aliases.
12698         (verify_symtab): Check for duplicated symtab lists.
12699         * tree-core.h (implicit_section_name_p): Remove.
12700         * tree-vect-data-refs.c: Include varasm.h.
12701         (vect_can_force_dr_alignment_p): Fix conditional on when
12702         decl bints to current definition; use
12703         symtab_get_node (decl)->implicit_section.
12704         * cgraph.c (cgraph_make_node_local_1): Fix section set.
12705         * cgraph.h (struct symtab_node): Add implicit_section.
12706         (set_section): Rename to ...
12707         (set_section_for_node): ... this one.
12708         (set_section): Declare.
12709         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12710         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12711         input_overwrite_node, input_varpool_node): Stream implicit_section.
12712         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12713         removal; it will fail in LTO.
12715 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12717         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12718         Change second alternative type to f_mcr.
12719         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12720         and 12th alternatives' types to f_mcr and f_mrc.
12721         (*movdi_aarch64): Same for 12th and 13th alternatives.
12722         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12723         (aarch64_movtilow_tilow): Change type to fmov.
12725 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
12727         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12728         (aarch64_save_or_restore_callee_save_registers): Fix layout.
12730 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12732         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12733         New expander.
12734         (aarch64_sqrdmulh_lane<mode>): Likewise.
12735         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12736         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12737         (aarch64_sqdmulh_laneq<mode>): New expander.
12738         (aarch64_sqrdmulh_laneq<mode>): Likewise.
12739         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12740         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12741         (aarch64_sqdmulh_lane<mode>): New expander.
12742         (aarch64_sqrdmulh_lane<mode>): Likewise.
12743         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12744         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12745         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12746         (aarch64_sqdmlal_laneq<mode>): Likewise.
12747         (aarch64_sqdmlsl_lane<mode>): Likewise.
12748         (aarch64_sqdmlsl_laneq<mode>): Likewise.
12749         (aarch64_sqdmlal2_lane<mode>): Likewise.
12750         (aarch64_sqdmlal2_laneq<mode>): Likewise.
12751         (aarch64_sqdmlsl2_lane<mode>): Likewise.
12752         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12753         (aarch64_sqdmull_lane<mode>): Likewise.
12754         (aarch64_sqdmull_laneq<mode>): Likewise.
12755         (aarch64_sqdmull2_lane<mode>): Likewise.
12756         (aarch64_sqdmull2_laneq<mode>): Likewise.
12758 2014-06-10  Richard Biener  <rguenther@suse.de>
12760         PR tree-optimization/61438
12761         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12762         (eliminate_dom_walker::before_dom_children): Only try to inhibit
12763         insertion of IVs if running PRE.
12764         (eliminate): Adjust.
12765         (pass_pre::execute): Likewise.
12766         (pass_fre::execute): Likewise.
12768 2014-06-10  Richard Biener  <rguenther@suse.de>
12770         PR middle-end/61456
12771         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12772         Do not use the main variant for the type comparison.
12773         (ncr_compar): Likewise.
12774         (nonoverlapping_component_refs_p): Likewise.
12776 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12778         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12779         REG_CFA_RESTORE mode.
12781 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
12783         * config/i386/i386.c (expand_vec_perm_pblendv): New.
12784         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12785         expand_vec_perm_pblendv.
12787 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12789         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12790         available.
12791         Simplify description of __crc32d and __crc32cd intrinsics.
12792         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12793         availability.
12795 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12797         PR lto/61334
12798         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12799         * config.in: Regenerate.
12800         * configure: Likewise.
12802 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
12804         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12805         and public vars.
12806         (intersect_static_var_sets): Remove.
12807         (propagate): Do not prune local statics.
12809 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
12811         PR fortran/60928
12812         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12813         Set lastprivate_firstprivate even if omp_private_outer_ref
12814         langhook returns true.
12815         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12816         langhook, call unshare_expr on new_var and call
12817         build_outer_var_ref to get the last argument.
12819 2014-06-10  Marek Polacek  <polacek@redhat.com>
12821         PR c/60988
12822         * doc/extend.texi: Add cindex for transparent_union.
12824 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12826         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12827         init_symbolic_number ().
12829 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
12831         PR middle-end/61141
12832         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12833         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12834         (verify_rtl_sharing): Likewise.
12836 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
12838         PR c++/54442
12839         * tree.c (build_qualified_type): Use a canonical type for
12840         TYPE_CANONICAL.
12842 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12844         * config/arm/arm-modes.def: Remove XFmode.
12846 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
12848         PR target/61062
12849         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12850         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12851         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12852         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12853         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12854         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12855         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12856         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12857         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12859 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
12861         * tree-core.h (tree_decl_with_vis): Remove section_name.
12863 2014-06-09  Kito Cheng  <kito@0xlab.org>
12865         * ira.c (ira): Don't call init_caller_save if LRA enabled
12866         since LRA use its own infrastructure to handle that.
12868 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
12870         * symtab.c (dump_symtab_base): Update dumping.
12871         (symtab_make_decl_local): Clear only DECL_COMDAT.
12872         * tree-vect-data-refs.c (Check that variable is static before
12873         tampering with sections.
12874         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12875         (cgraph_create_virtual_clone): Likewise.
12876         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12877         (decl_section_name, set_decl_section_name): New accessors.
12878         (find_decls_types_r): Do not walk section name
12879         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12880         (decl_comdat_group, decl_comdat_group_id): Constify.
12881         (decl_section_name, set_decl_section_name): Update.
12882         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12883         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12884         (cgraph_make_node_local_1): Clear section and comdat group.
12885         * cgraph.h (set_comdat_group): Sanity check.
12886         (get_section, set_section): New.
12887         * ipa-comdats.c (ipa_comdats): Use get_section.
12888         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12889         * lto-streamer-out.c: Do not follow section names.
12890         * c-family/c-common.c (handle_section_attribute): Update.
12891         * lto-cgraph.c (lto_output_node): Output section.
12892         (lto_output_varpool_node): Likewise.
12893         (read_comdat_group): Rename to ...
12894         (read_identifier): ... this one.
12895         (read_string_cst): New function.
12896         (input_node, input_varpool_node): Input section names.
12897         * tree-emutls.c (get_emutls_init_templ_addr): Update.
12898         (new_emutls_decl): Update.
12899         (secname_for_decl): Check section names only of static vars.
12900         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12901         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12902         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12903         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12904         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12905         * config/mcore/mcore.c (mcore_unique_section): Likewise.
12906         * config/mips/mips.c (mips16_build_function_stub): Likewise.
12907         * config/v850/v850.c (v850_insert_attributes): Likewise.
12908         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12909         Likewise.
12910         (h8300_handle_tiny_data_attribute): Likewise.
12911         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12912         (bfin_handle_l2_attribute): Likewise.
12914 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
12916         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12917         remove static initializer.
12919 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
12921         * varasm.c (use_blocks_for_decl_p): Check symbol table
12922         instead of alias attribute.
12923         (place_block_symbol): Recurse on aliases.
12925 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
12927         * ipa-visibility.c: Include varasm.h
12928         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12930 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
12932         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12933         outputting aliases.
12935 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
12937         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12938         from test_insn into GGC space escape via SET_SRC.
12940 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
12942         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12943         call statement, if any.
12944         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12945         statements, if any.  Tidy up.
12947 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
12949         PR target/61431
12950         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12951         iterators, VSX_D that handles 64-bit types, and VSX_LE that
12952         handles swapping the two 64-bit double words on little endian
12953         systems.  Include V1TImode and optionally TImode in VSX_LE so that
12954         these types are properly swapped.  Change all of the insns and
12955         splits that do the 64-bit swaps to use VSX_LE.
12956         (vsx_le_perm_load_<mode>): Likewise.
12957         (vsx_le_perm_store_<mode>): Likewise.
12958         (splitters for little endian memory operations): Likewise.
12959         (vsx_xxpermdi2_le_<mode>): Likewise.
12960         (vsx_lxvd2x2_le_<mode>): Likewise.
12961         (vsx_stxvd2x2_le_<mode>): Likewise.
12963 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
12965         PR target/61423
12966         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12967         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12968         and corresponding splitters.  Zero extend general register
12969         or memory input operand to XMM temporary.  Enable for
12970         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12971         (floatunssi<mode>2): Update expander predicate.
12973 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
12975         PR rtl-optimization/61325
12976         * lra-constraints.c (process_address_1): Check scale equal to one
12977         to prevent transformation: base + scale * index => base + new_reg.
12979 2014-06-06  Richard Biener  <rguenther@suse.de>
12981         PR tree-optimization/59299
12982         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12983         a def operand.
12984         (nearest_common_dominator_of_uses): Likewise.
12985         (statement_sink_location): Adjust.  Support sinking loads.
12987 2014-06-06  Martin Jambor  <mjambor@suse.cz>
12989         * ipa-prop.c (get_place_in_agg_contents_list): New function.
12990         (build_agg_jump_func_from_list): Likewise.
12991         (determine_known_aggregate_parts): Renamed to
12992         determine_locally_known_aggregate_parts.  Moved some functionality
12993         to the two functions above, removed bound checks.
12995 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
12997         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12998         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12999         (aarch64_progress_pointer): Likewise.
13000         (aarch64_copy_one_part_and_move_pointers): Likewise.
13001         (aarch64_expand_movmen): Likewise.
13002         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13003         * config/aarch64/aarch64.md (movmem<mode>): New.
13005 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
13007         * targhooks.c (default_add_stmt_cost): Call target specific
13008         hook instead of default one.
13010 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13012         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13013         endianness instead of host endianness.
13014         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13015         comments.
13017 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13019         PR debug/53927
13020         * function.c (instantiate_decls): Process the saved static chain.
13021         (expand_function_start): If not optimizing, save the static chain
13022         onto the stack.
13023         * tree-nested.c (convert_all_function_calls): Always create the static
13024         chain for nested functions if not optimizing.
13026 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13028         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13030 2014-06-06  Richard Biener  <rguenther@suse.de>
13032         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13033         (construct_init_block): Likewise.
13034         (construct_exit_block): Likewise.
13035         (pass_expand::execute): Likewise.
13036         * graphite.c (graphite_transforms): Replace check for current_loops
13037         with a check for > 1 loops.
13038         (pass_graphite_transforms::execute): Adjust.
13039         * ipa-split.c (split_function): Remove check for current_loops.
13040         * omp-low.c (expand_parallel_call): Likewise.
13041         (expand_omp_for_init_counts): Likewise.
13042         (extract_omp_for_update_vars): Likewise.
13043         (expand_omp_for_generic): Likewise.
13044         (expand_omp_sections): Likewise.
13045         (expand_omp_target): Likewise.
13046         * tracer.c (tail_duplicate): Likewise.
13047         (pass_tracer::execute): Likewise.
13048         * trans-mem.c (expand_transaction): Likewise.
13049         * tree-complex.c (expand_complex_div_wide): Likewise.
13050         * tree-eh.c (lower_resx): Likewise.
13051         (cleanup_empty_eh_merge_phis): Likewise.
13052         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13053         current_loops with a check for > 1 loops.
13054         (pass_predcom::execute): Adjust.
13055         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13056         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13057         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13058         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13059         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13060         * tree-switch-conversion.c (process_switch): Likewise.
13061         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13062         * tree-vrp.c (vrp_visit_phi_node): Likewise.
13063         (execute_vrp): Likewise.
13064         * ubsan.c (ubsan_expand_null_ifn): Likewise.
13066 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13068         * rtl.h (insn_location): Declare.
13069         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13070         with UNKNOWN_LOCATION.
13071         * emit-rtl.c (insn_location): New function.
13072         * final.c (notice_source_line): Check that the instruction has a
13073         location before retrieving it and use insn_location.
13074         * modulo-sched.c (loop_single_full_bb_p): Likewise.
13075         * print-rtl.c (print_rtx): Likewise.
13077 2014-06-06  Richard Biener  <rguenther@suse.de>
13079         * passes.def: Move 2nd VRP pass before phi-only-cprop.
13081 2014-06-06  Christian Bruel  <christian.bruel@st.com>
13083         PR tree-optimization/43934
13084         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13085         cost.
13087 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
13089         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
13090         return NO_REGS for extra address and memory constraints.  Handle
13091         operands that match (or are equivalent to something that matches)
13092         extra constant constraints.  Ignore other non-register operands.
13094 2014-06-06  Alan Modra  <amodra@gmail.com>
13096         PR target/61300
13097         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13098         * doc/tm.texi: Regenerate.
13099         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13100         Use throughout in place of REG_PARM_STACK_SPACE.
13101         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13102         "incoming" param.  Pass to rs6000_function_parms_need_stack.
13103         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13104         prototype_p when incoming.  Use function decl when incoming
13105         to handle K&R style functions.
13106         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13107         (INCOMING_REG_PARM_STACK_SPACE): Define.
13109 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13111         PR target/52472
13112         * cfgexpand.c (expand_debug_expr): Use address space of nested
13113         TREE_TYPE for ADDR_EXPR and MEM_REF.
13115 2014-06-05  Jeff Law  <law@redhat.com>
13117         PR tree-optimization/61289
13118         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13119         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
13120         looking for those which match LHS.  All callers changed.
13121         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13122         parameters and code which manipulated them.  All callers changed.
13123         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13124         and DST_MAP parameters.  Simplify invalidation code by just calling
13125         invalidate_equivalences.  All callers changed.
13126         (thread_across_edge): Simplify now that we don't need to maintain
13127         the map of equivalences to invalidate.
13129 2014-06-05  Kai Tietz  <ktietz@redhat.com>
13130             Richard Henderson  <rth@redhat.com>
13132         PR target/46219
13133         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13134         checking for !TARGET_X32.
13135         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13136         (sibcall_intern): New define_insn, plus required peepholes.
13137         (sibcall_pop_intern): Likewise.
13138         (sibcall_value_intern): Likewise.
13139         (sibcall_value_pop_intern): Likewise.
13141 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
13143         * tree-inline.c (tree_function_versioning): Check DF info existence
13144         before accessing it.
13146 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13148         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13149         frame_size.
13150         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13151         aarch64_frame hard_fp_offset and frame_size.
13152         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13153         frame_size; remove original_frame_size.
13154         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13155         (aarch64_initial_elimination_offset): Remove frame_size and
13156         offset.  Use aarch64_frame frame_size.
13158 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13159             Jiong Wang  <jiong.wang@arm.com>
13160             Renlin  <renlin.li@arm.com>
13162         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13163         initialization of R30 offset.  Update offset.  Iterate core
13164         regisers upto X30.  Remove X29, X30 specific code.
13166 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13167             Jiong Wang  <jiong.wang@arm.com>
13169         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13170         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13171         (aarch64_register_saved_on_entry): Adjust test.
13173 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13175         * config/aarch64/aarch64.h (machine_function): Move
13176         saved_varargs_size from here...
13177         (aarch64_frame): ... to here.
13179         * config/aarch64/aarch64.c (aarch64_expand_prologue)
13180         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13181         (aarch64_initial_elimination_offset)
13182         (aarch64_setup_incoming_varargs): Adjust location of
13183         saved_varargs_size.
13185 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13187         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13188         layout comment.
13190 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
13191             Prachi Godbole  <Prachi.Godbole@imgtec.com>
13193         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
13194         mips32r5 entry to use PROCESSOR_P5600.
13195         * config/mips/mips-tables.opt: Regenerate.
13196         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13197         * config/mips/mips.c (mips_fmadd_bypass): New function.
13198         (mips_rtx_cost_data): Add costs for p5600.
13199         (mips_issue_rate): Add support for p5600.
13200         (mips_multipass_dfa_lookahead): Likewise.
13201         * config/mips/mips.h (TUNE_P5600): New define.
13202         (TUNE_MACC_CHAINS): Add TUNE_P5600.
13203         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13204         * config/mips/mips.md: Include p5600.md.
13205         (processor): Add p5600.
13206         * config/mips/p5600.md: New file.
13208 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
13210         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13211         * config/i386/predicates.md (palignr_operand): New.
13212         Indicates if permutation is suitable for palignr instruction.
13214 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
13216         PR tree-optimization/61319
13217         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13218         stmt belongs to loop.
13220 2014-06-05  Richard Biener  <rguenther@suse.de>
13222         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13223         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13224         (lookup_tmp_var): Adjust.
13225         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13227 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13229         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13231 2014-06-05  Marek Polacek  <polacek@redhat.com>
13233         PR c/49706
13234         * doc/invoke.texi: Document -Wlogical-not-parentheses.
13236 2014-06-04  Tom de Vries  <tom@codesourcery.com>
13238         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13239         CONST_INT.
13241 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
13243         PR tree-optimization/61385
13244         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13246 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
13248         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
13249         changed to use fatal_error.
13250         (main): Ensure lto_wrapper_cleanup is run atexit.
13252 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
13254         * lra-constraints.c (valid_address_p): Move earlier in file.
13255         (address_eliminator): New structure.
13256         (satisfies_memory_constraint_p): New function.
13257         (satisfies_address_constraint_p): Likewise.
13258         (process_alt_operands, process_address, curr_insn_transform): Use them.
13260 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
13262         * lra-int.h (lra_static_insn_data): Make operand_alternative a
13263         const pointer.
13264         (target_lra_int, default_target_lra_int, this_target_lra_int)
13265         (op_alt_data): Delete.
13266         * lra.h (lra_init): Delete.
13267         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13268         (init_insn_code_data_once): Remove op_alt_data handling.
13269         (finish_insn_code_data_once): Likewise.
13270         (init_op_alt_data): Delete.
13271         (get_static_insn_data): Initialize operand_alternative to null.
13272         (free_insn_recog_data): Cast operand_alternative before freeing it.
13273         (setup_operand_alternative): Take the operand_alternative as
13274         parameter and assume it isn't already cached in the static
13275         insn data.
13276         (lra_set_insn_recog_data): Update accordingly.
13277         (lra_init): Delete.
13278         * ira.c (ira_init): Don't call lra_init.
13279         * target-globals.h (this_target_lra_int): Declare.
13280         (target_globals): Remove lra_int.
13281         (restore_target_globals): Update accordingly.
13282         * target-globals.c: Don't include lra-int.h.
13283         (default_target_globals, save_target_globals): Remove lra_int.
13285 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
13287         * recog.h (operand_alternative): Convert reg_class, reject,
13288         matched and matches into bitfields.
13289         (preprocess_constraints): New overload.
13290         (preprocess_insn_constraints): New function.
13291         (preprocess_constraints): Take the insn as parameter.
13292         (recog_op_alt): Change into a pointer.
13293         (target_recog): Add x_op_alt.
13294         * recog.c (asm_op_alt): New variable.
13295         (recog_op_alt): Change into a pointer.
13296         (preprocess_constraints): New overload, replacing the old function
13297         definition with one that doesn't use global state.
13298         (preprocess_insn_constraints): New function.
13299         (preprocess_constraints): Use them.  Take the insn as parameter.
13300         Use asm_op_alt for asms.
13301         (recog_init): Free existing x_op_alt entries.
13302         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13303         pointer const.
13304         (make_early_clobber_and_input_conflicts): Likewise.
13305         (process_bb_node_lives): Pass the insn to process_constraints.
13306         * reg-stack.c (check_asm_stack_operands): Likewise.
13307         (subst_asm_stack_regs): Likewise.
13308         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13309         * regrename.c (build_def_use): Likewise.
13310         * sched-deps.c (sched_analyze_insn): Likewise.
13311         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13312         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13313         (note_invalid_constants): Likewise.
13314         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13315         (ix86_legitimate_combined_insn): Make operand_alternative pointer
13316         const.
13318 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
13320         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13321         * ira-lives.c (check_and_make_def_conflict): Check for disabled
13322         alternatives.
13323         (make_early_clobber_and_input_conflicts): Likewise.
13324         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13326 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
13328         * recog.h (alternative_class): New function.
13329         (which_op_alt): Return a const recog_op_alt.
13330         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13331         (subst_asm_stack_regs): Likewise.
13332         * config/arm/arm.c (note_invalid_constants): Likewise.
13333         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
13334         the operand_alternative; use alternative class instead.
13335         * sel-sched.c (get_reg_class): Likewise.
13336         * regrename.c (build_def_use): Likewise.
13337         (hide_operands, restore_operands, record_out_operands): Update type
13338         accordingly.
13340 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
13342         * recog.h (recog_op_alt): Convert to a flat array.
13343         (which_op_alt): New function.
13344         * recog.c (recog_op_alt): Convert to a flat array.
13345         (preprocess_constraints): Update accordingly, grouping all
13346         operands of the same alternative together, rather than the
13347         other way around.
13348         * ira-lives.c (check_and_make_def_conflict): Likewise.
13349         (make_early_clobber_and_input_conflicts): Likewise.
13350         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13351         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13352         (subst_asm_stack_regs): Likewise.
13353         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13354         * regrename.c (hide_operands, record_out_operands): Likewise.
13355         (build_def_use): Likewise.
13356         * sel-sched.c (get_reg_class): Likewise.
13357         * config/arm/arm.c (note_invalid_constants): Likewise.
13359 2014-06-04  Jason Merrill  <jason@redhat.com>
13361         PR c++/51253
13362         PR c++/61382
13363         * gimplify.c (gimplify_arg): Non-static.
13364         * gimplify.h: Declare it.
13366 2014-06-04  Richard Biener  <rguenther@suse.de>
13368         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13369         TREE_PUBLIC and DECL_EXTERNAL decls.
13371 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
13373         * regcprop.c (copyprop_hardreg_forward_1): Account for
13374         HARD_REGNO_CALL_PART_CLOBBERED.
13376 2014-06-04  Richard Biener  <rguenther@suse.de>
13378         * configure.ac: Check whether the underlying type of int64_t
13379         is long or long long.
13380         * configure: Regenerate.
13381         * config.in: Likewise.
13382         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13383         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13385 2014-06-04  Richard Biener  <rguenther@suse.de>
13387         PR tree-optimization/60098
13388         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13389         we hit a kill.
13390         (dse_optimize_stmt): Simplify, now that we found a kill
13391         earlier.
13393 2014-06-04  Richard Biener  <rguenther@suse.de>
13395         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13396         of accesses with non-invariant address.
13398 2014-06-04  Martin Liska  <mliska@suse.cz>
13400         * cgraph.h (cgraph_make_wrapper): New function introduced.
13401         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13402         * ipa-inline.h (inline_analyze_function): The function is global.
13403         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13405 2014-06-04  Martin Liska  <mliska@suse.cz>
13407         * tree.h (private_lookup_attribute_starting): New function.
13408         (lookup_attribute_starting): Likewise.
13409         * tree.c (private_lookup_attribute_starting): Likewise.
13411 2014-06-04  Martin Liska  <mliska@suse.cz>
13413         * cgraph.h (expand_thunk): New argument added.
13414         (address_taken_from_non_vtable_p): New global function.
13415         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13416         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13417         * cgraphunit.c (analyze_function): Likewise.
13418         (assemble_thunks_and_aliases): Argument added to call.
13419         (expand_thunk): New argument forces to produce GIMPLE thunk.
13421 2014-06-04  Martin Liska  <mliska@suse.cz>
13423         * coverage.h (coverage_compute_cfg_checksum): Argument added.
13424         * coverage.c (coverage_compute_cfg_checksum): Likewise.
13425         * profile.c (branch_prob): Likewise.
13427 2014-06-04  Martin Jambor  <mjambor@suse.cz>
13429         PR ipa/61340
13430         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13431         handler for switch on an ipa_ref_use enum.
13432         * ipa-reference.c (analyze_function): Likewise.
13434 2014-06-04  Kai Tietz  <ktietz@redhat.com>
13436         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13437         from old call-instruction.
13439 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
13441         * config/aarch64/aarch64.c (aarch64_classify_address)
13442         (aarch64_legitimize_reload_address): Support full addressing modes
13443         for vector modes.
13444         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13445         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13447 2014-06-03  Andrew Pinski  <apinski@cavium.com>
13449         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13450         for OP0.
13452 2014-06-03  Andrew Pinski  <apinski@cavium.com>
13454         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13455         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13457 2014-06-03  Kai Tietz  <ktietz@redhat.com>
13459         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13460         for 64-bit ms-abi.
13462 2014-06-03  Dehao Chen  <dehao@google.com>
13464         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13465         the same loop.
13467 2014-06-03  Marek Polacek  <polacek@redhat.com>
13469         PR c/60439
13470         * doc/invoke.texi: Document -Wswitch-bool.
13471         * function.c (stack_protect_epilogue): Cast controlling expression of
13472         the switch to int.
13473         * gengtype.c (walk_type): Generate switch expression with its
13474         controlling expression cast to int.
13476 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
13478         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13479         and attiny841.
13480         * config/avr/avr-tables.opt: Regenerate.
13481         * config/avr/t-multilib: Regenerate.
13482         * doc/avr-mmcu.texi: Regenerate.
13484 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
13485             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13487         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13488         (ata6617c, ata664251): Add new avr35 devices.
13489         (ata6612c): Add new avr4 device.
13490         (ata6613c, ata6614q): Add new avr5 devices.
13491         * config/avr/avr-tables.opt: Regenerate.
13492         * config/avr/t-multilib: Regenerate.
13493         * doc/avr-mmcu.texi: Regenerate.
13495 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
13497         * gcc/config/aarch64/aarch64-builtins.c
13498         (aarch64_types_binop_ssu_qualifiers): New static data.
13499         (TYPES_BINOP_SSU): Define.
13500         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13501         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13502         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13503         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13504         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13505         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13506         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13507         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13508         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13509         suffix to builtin function name, remove cast.
13510         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13511         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13512         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13514 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
13516         * gcc/config/aarch64/aarch64-builtins.c
13517         (aarch64_types_binop_uus_qualifiers,
13518         aarch64_types_shift_to_unsigned_qualifiers,
13519         aarch64_types_unsigned_shiftacc_qualifiers): Define.
13520         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13521         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13522         sqshlu_n, uqshl_n): Update qualifiers.
13523         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13524         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13525         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13526         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13527         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13528         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13529         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13530         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13531         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13532         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13533         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13534         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13535         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13536         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13537         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13538         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13539         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13540         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13541         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13542         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13543         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13544         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13545         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13546         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13547         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13548         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13549         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13551 2014-06-03  Teresa Johnson  <tejohnson@google.com>
13553         * tree-sra.c (modify_function): Record caller nodes after rebuild.
13555 2014-06-02  Jason Merrill  <jason@redhat.com>
13557         PR c++/61020
13558         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13560 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
13562         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13563         location == 0.
13565 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
13567         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13568         New pattern.
13569         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13570         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13571         * config/aarch64/iterators.md (REVERSE): New iterator.
13572         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13573         (rev_op): New int_attribute.
13574         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13575         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13576         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13577         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13578         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13579         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13580         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13581         Replace temporary __asm__ with __builtin_shuffle.
13583 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
13585         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13586         mips64r5.
13587         * config/mips/mips-tables.opt: Regenerate.
13588         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13589         to use mips_isa_rev rather than ISA_MIPS32R2.
13590         * config/mips/mips.h (ISA_MIPS32R3): New define.
13591         (ISA_MIPS32R5): New define.
13592         (ISA_MIPS64R3): New define.
13593         (ISA_MIPS64R5): New define.
13594         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13595         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13596         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13597         and mips64r5.
13598         (MIPS_ISA_SYNCI_SPEC): Likewise.
13599         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13600         (LINK_SPEC): Added mips32r3 and mips32r5.
13601         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13602         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13603         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13604         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13605         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13606         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13607         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13609 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
13611         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13612         options.
13613         * config/mips/mips.opt (mxpa): New option.
13614         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13615         assembler.
13617 2014-06-03  Martin Jambor  <mjambor@suse.cz>
13619         PR ipa/61160
13620         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13621         thunks.
13623 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13625         PR tree-optimization/61328
13626         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13627         initialization from find_bswap_or_nop_1.
13628         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13629         in source_expr2 before using the size value the function sets. Also
13630         make use of init_symbolic_number () in both the old place and
13631         find_bswap_or_nop_load () to avoid reading uninitialized memory when
13632         doing recursion in the GIMPLE_BINARY_RHS case.
13634 2014-06-03  Richard Biener  <rguenther@suse.de>
13636         PR tree-optimization/61383
13637         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13638         stmts can't trap.
13640 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
13642         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13643         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13644         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13645         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13646         in this file.
13647         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13648         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13649         * system.h: ...here and make it unconditional.
13650         * target.def (conditional_register_usage): Mention
13651         define_register_constraint instead of old-style constraint macros.
13652         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13653         * doc/tm.texi: Regenerate.
13654         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13655         protected by !USE_MD_CONSTRAINTS.
13656         * config/frv/frv.md: Remove quote from old version of documentation.
13657         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13658         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13659         CONST_DOUBLE_OK_FOR_LETTER.
13660         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13662 2014-06-02  Andrew Pinski  <apinski@cavium.com>
13664         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13665         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13666         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13667         file whose name depends on -mabi= and -mbig-endian.
13668         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13669         Handle LP64 better and handle ilp32 too.
13670         (MULTILIB_OPTIONS): Delete.
13671         (MULTILIB_DIRNAMES): Delete.
13673 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
13675         * expr.h: Remove prototypes of functions defined in builtins.c.
13676         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13677         Remove prototypes of functions defined in builtins.c.
13678         * builtins.h: Update prototype list to include all exported functions.
13679         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13680         no_c99_libc_has_function): Move to targhooks.c
13681         (build_string_literal, build_call_expr_loc_array,
13682         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13683         to tree.c.
13684         (expand_builtin_object_size, fold_builtin_object_size): Make static.
13685         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13686         no_c99_libc_has_function): Relocate from builtins.c.
13687         * tree.c: Include builtins.h.
13688         (build_call_expr_loc_array, build_call_expr_loc_vec,
13689         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13690         from builtins.c.
13691         * fold-const.h (fold_fma): Move prototype to builtins.h.
13692         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13693         * asan.c: Include builtins.h.
13694         * cfgexpand.c: Likewise.
13695         * convert.c: Likewise.
13696         * emit-rtl.c: Likewise.
13697         * except.c: Likewise.
13698         * expr.c: Likewise.
13699         * fold-const.c: Likewise.
13700         * gimple-fold.c: Likewise.
13701         * gimple-ssa-strength-reduction.c: Likewise.
13702         * gimplify.c: Likewise.
13703         * ipa-inline.c: Likewise.
13704         * ipa-prop.c: Likewise.
13705         * lto-streamer-out.c: Likewise.
13706         * stmt.c: Likewise.
13707         * tree-inline.c: Likewise.
13708         * tree-object-size.c: Likewise.
13709         * tree-sra.c: Likewise.
13710         * tree-ssa-ccp.c: Likewise.
13711         * tree-ssa-forwprop.c: Likewise.
13712         * tree-ssa-loop-ivcanon.c: Likewise.
13713         * tree-ssa-loop-ivopts.c: Likewise.
13714         * tree-ssa-math-opts.c: Likewise.
13715         * tree-ssa-reassoc.c: Likewise.
13716         * tree-ssa-threadedge.c: Likewise.
13717         * tree-streamer-in.c: Likewise.
13718         * tree-vect-data-refs.c: Likewise.
13719         * tree-vect-patterns.c: Likewise.
13720         * tree-vect-stmts.c: Likewise.
13721         * config/aarch64/aarch64.c: Likewise.
13722         * config/alpha/alpha.c: Likewise.
13723         * config/arc/arc.c: Likewise.
13724         * config/arm/arm.c: Likewise.
13725         * config/avr/avr.c: Likewise.
13726         * config/bfin/bfin.c: Likewise.
13727         * config/c6x/c6x.c: Likewise.
13728         * config/cr16/cr16.c: Likewise.
13729         * config/cris/cris.c: Likewise.
13730         * config/epiphany/epiphany.c: Likewise.
13731         * config/fr30/fr30.c: Likewise.
13732         * config/frv/frv.c: Likewise.
13733         * config/h8300/h8300.c: Likewise.
13734         * config/i386/i386.c: Likewise.
13735         * config/i386/winnt.c: Likewise.
13736         * config/ia64/ia64.c: Likewise.
13737         * config/iq2000/iq2000.c: Likewise.
13738         * config/lm32/lm32.c: Likewise.
13739         * config/m32c/m32c.c: Likewise.
13740         * config/m32r/m32r.c: Likewise.
13741         * config/m68k/m68k.c: Likewise.
13742         * config/mcore/mcore.c: Likewise.
13743         * config/mep/mep.c: Likewise.
13744         * config/microblaze/microblaze.c: Likewise.
13745         * config/mips/mips.c: Likewise.
13746         * config/mmix/mmix.c: Likewise.
13747         * config/mn10300/mn10300.c: Likewise.
13748         * config/moxie/moxie.c: Likewise.
13749         * config/msp430/msp430.c: Likewise.
13750         * config/nds32/nds32.c: Likewise.
13751         * config/pa/pa.c: Likewise.
13752         * config/pdp11/pdp11.c: Likewise.
13753         * config/picochip/picochip.c: Likewise.
13754         * config/rl78/rl78.c: Likewise.
13755         * config/rs6000/rs6000.c: Likewise.
13756         * config/rx/rx.c: Likewise.
13757         * config/s390/s390.c: Likewise.
13758         * config/score/score.c: Likewise.
13759         * config/sh/sh.c: Likewise.
13760         * config/sparc/sparc.c: Likewise.
13761         * config/spu/spu.c: Likewise.
13762         * config/stormy16/stormy16.c: Likewise.
13763         * config/tilegx/tilegx.c: Likewise.
13764         * config/tilepro/tilepro.c: Likewise.
13765         * config/v850/v850.c: Likewise.
13766         * config/vax/vax.c: Likewise.
13767         * config/xtensa/xtensa.c: Likewise.
13769 2014-06-02  Jeff Law  <law@redhat.com>
13771         PR rtl-optimization/61094
13772         * ree.c (combine_reaching_defs): Do not reextend an insn if it
13773         was marked as do_no_reextend.  If a copy is needed to eliminate
13774         an extension, then mark it as do_not_reextend.
13776 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13778         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13780 2014-06-02  Richard Henderson  <rth@redhat.com>
13782         PR target/61336
13783         * config/alpha/alpha.c (print_operand_address): Allow symbolic
13784         addresses inside asms.  Use output_operand_lossage instead of
13785         gcc_unreachable.
13787 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
13789         PR target/61239
13790         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13791         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13793 2014-06-02  Tom de Vries  <tom@codesourcery.com>
13795         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13796         case that x has VOIDmode.
13798 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
13800         * varasm.c (copy_constant): Delete function.
13801         (build_constant_desc): Don't call it.
13803 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13805         PR target/61154
13806         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13807         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13808         with immediate_operand.
13810 2014-06-02  Andreas Schwab  <schwab@suse.de>
13812         * config/ia64/ia64.c
13813         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13814         pending_data_specs first.
13816 2014-06-02  Richard Biener  <rguenther@suse.de>
13818         PR tree-optimization/61378
13819         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13820         valueized_anything.
13822 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
13824         * config/i386/constraints.md (Bw): Rename from 'w'.
13825         (Bz): Rename from 'z'.
13826         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13828 2014-06-01  Kai Tietz  <ktietz@redhat.com>
13830         PR target/61377
13831         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13832         * config/i386/i386.md (sibcall_insn_operand): Use Bs
13833         instead of m constraint.
13835 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
13837         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13838         a separate alternative where the scratch operand 2 is marked as
13839         early clobber.
13841 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
13843         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13844         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13845         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13846         and __builtins_arm_get_fpscr.
13847         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13848         __builtins_arm_get_fpscr.
13849         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13850         __builtins_arm_ldfpscr.
13851         (arm_atomic_assign_expand_fenv): New function.
13852         * config/arm/vfp.md (set_fpscr): New pattern.
13853         (get_fpscr) : Likewise.
13854         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13855         VUNSPEC_SET_FPSCR.
13856         * doc/extend.texi (AARCH64 Built-in Functions) : Document
13857         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13859 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
13861         * asan.c (report_error_func): Add SLOW_P argument, use
13862         BUILT_IN_ASAN_*_N if set.
13863         (build_check_stmt): Likewise.
13864         (instrument_derefs): If T has insufficient alignment,
13865         force same handling as for odd sizes.
13867         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13868         BUILT_IN_ASAN_REPORT_STORE_N): New.
13869         * asan.c (struct asan_mem_ref): Change access_size type to
13870         HOST_WIDE_INT.
13871         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13872         update_mem_ref_hash_table): Likewise.
13873         (asan_mem_ref_hasher::hash): Hash in a HWI.
13874         (report_error_func): Change size_in_bytes argument to HWI.
13875         Use *_N builtins if size_in_bytes is larger than 16 or not power of
13876         two.
13877         (build_shadow_mem_access): New function.
13878         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
13879         Handle size_in_bytes not power of two or larger than 16.
13880         (instrument_derefs): Don't give up if size_in_bytes is not
13881         power of two or is larger than 16.
13883 2014-05-30  Kai Tietz  <ktietz@redhat.com>
13885         PR target/60104
13886         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13887         for sibling-tail-calls.
13888         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13889         to its use.
13890         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13891         (sibcall_insn_operand): Add check for sibcall_memory_operand.
13893 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13895         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13896         * config/avr/avr-tables.opt: Regenerate.
13897         * config/avr/t-multilib: Regenerate.
13898         * doc/avr-mmcu.texi: Regenerate.
13900 2014-05-30  Ian Lance Taylor  <iant@google.com>
13902         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13903         target("sse").
13905 2014-05-30  Tom de Vries  <tom@codesourcery.com>
13907         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13908         Redefine as true.
13910 2014-05-30  Tom de Vries  <tom@codesourcery.com>
13912         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13913         * lra.c (initialize_lra_reg_info_element): Add init of
13914         actual_call_used_reg_set field.
13915         (lra): Call lra_create_live_ranges before lra_inheritance for
13916         -fuse-caller-save.
13917         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13918         -fuse-caller-save.
13919         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13920         instead of call_used_reg_set for -fuse-caller-save.
13921         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13923 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13925         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13926         to mov_imm.
13927         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13929 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
13931         * ira.c (ira_get_dup_out_num): Check for output operands at
13932         the start of the loop.  Handle cases where an included alternative
13933         follows an excluded one.
13935 2014-05-29  Mike Stump  <mikestump@comcast.net>
13937         PR debug/61352
13938         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13939         post ld passes when lto is used.
13941 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
13943         PR rtl-optimization/61325
13944         * lra-constraints.c (process_address): Rename to process_address_1.
13945         (process_address): New function.
13947 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
13949         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13950         TYPES_BINOPV): New static data.
13951         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13952         New builtin.
13953         * config/aarch64/aarch64-simd.md (aarch64_ext,
13954         aarch64_im_lane_boundsi): New patterns.
13955         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13956         patterns for EXT.
13957         (aarch64_evpc_ext): New function.
13959         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13961         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13962         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13963         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13964         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13965         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13967 2014-05-29  Tom de Vries  <tom@codesourcery.com>
13969         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13971 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
13972             Richard Sandiford  <rdsandiford@googlemail.com>
13974         * arm/iterators.md (shiftable_ops): New code iterator.
13975         (t2_binop0, arith_shift_insn): New code attributes.
13976         * arm/predicates.md (shift_nomul_operator): New predicate.
13977         * arm/arm.md (insn_enabled): Delete.
13978         (enabled): Remove insn_enabled test.
13979         (*arith_shiftsi): Delete.  Replace with ...
13980         (*<arith_shift_insn>_multsi): ... new pattern.
13981         (*<arith_shift_insn>_shiftsi): ... new pattern.
13982         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13984 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
13985             Tom de Vries  <tom@codesourcery.com>
13987         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13988         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13989         clobber.
13990         (mips_split_call): Use POST_CALL_TMP_REG.
13991         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13993 2014-05-29  Tom de Vries  <tom@codesourcery.com>
13995         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13996         with #ifdef STACK_REGS.
13998 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
14000         * varasm.c (get_variable_section): Walk aliases.
14001         (place_block_symbol): Walk aliases.
14003 2014-05-28  Tom de Vries  <tom@codesourcery.com>
14005         Revert:
14006         2014-05-28  Tom de Vries  <tom@codesourcery.com>
14008         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14009         * lra.c (initialize_lra_reg_info_element): Add init of
14010         actual_call_used_reg_set field.
14011         (lra): Call lra_create_live_ranges before lra_inheritance for
14012         -fuse-caller-save.
14013         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14014         -fuse-caller-save.
14015         * lra-constraints.c (need_for_call_save_p): Use
14016         actual_call_used_reg_set instead of call_used_reg_set for
14017         -fuse-caller-save.
14018         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14020 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14022         * doc/md.texi: Document that the % constraint character must
14023         be at the beginning of the string.
14024         * genoutput.c (validate_insn_alternatives): Check that '=',
14025         '+' and '%' only appear at the beginning of a constraint.
14026         * ira.c (commutative_constraint_p): Delete.
14027         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14028         at the start of the string.
14029         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14030         duplicate '='s.
14031         * config/arm/neon.md (bicdi3_neon): Likewise.
14032         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14033         (slt_si, sltu_si): Likewise.
14034         * config/vax/vax.md (sbcdi3): Likewise.
14035         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14036         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14037         (mul64): Move '%' to beginning of constraint.
14038         * config/arm/arm.md (*xordi3_insn): Likewise.
14039         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14040         (xorsi3): Likewise.
14042 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14044         * doc/md.texi: Document the restrictions on the "enabled" attribute.
14046 2014-05-28  Jason Merrill  <jason@redhat.com>
14048         PR c++/47202
14049         * cgraph.h (symtab_node::get_comdat_group_id): New.
14050         * cgraphunit.c (analyze_functions): Call it.
14051         * symtab.c (dump_symtab_node): Likewise.
14052         * tree.c (decl_comdat_group_id): New.
14053         * tree.h: Declare it.
14054         * lto-streamer-out.c (write_symbol): Use it.
14055         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14057 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14059         PR bootstrap/PR61146
14060         * wide-int.cc: Do not include longlong.h when compiling with clang.
14062 2014-05-28  Richard Biener  <rguenther@suse.de>
14064         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14065         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14066         (vrp_visit_assignment_or_call): Print less vertical space.
14067         (vrp_visit_stmt): Likewise.
14068         (vrp_visit_phi_node): Likewise.  For a PHI argument with
14069         VR_VARYING range consider recording it as copy.
14071 2014-05-28  Richard Biener  <rguenther@suse.de>
14073         Revert
14074         2014-05-28  Richard Biener  <rguenther@suse.de>
14076         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14078 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14080         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14081         sufficiently aligned and an offset is used at the same time.
14082         (expand_expr_real_1): Likewise.
14084 2014-05-28  Richard Biener  <rguenther@suse.de>
14086         PR middle-end/61045
14087         * fold-const.c (fold_comparison): When folding
14088         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14089         the sign of the remaining constant operand stays the same.
14091 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
14093         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14094         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14095         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14096         to the assembler.
14097         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14098         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14099         (m32bit-doubles) Likewise.
14100         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14101         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14102         option for RL78.
14104 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14106         * configure.ac ($gcc_cv_ld_clearcap): New test.
14107         * configure: Regenerate.
14108         * config.in: Regenerate.
14109         * config/sol2.opt (mclear-hwcap): New option.
14110         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14111         * config/sol2-clearcap.map: Moved here from
14112         testsuite/gcc.target/i386/clearcap.map.
14113         * config/sol2-clearcapv2.map: Move here from
14114         gcc.target/i386/clearcapv2.map.
14115         * config/t-sol2 (install): Depend on install-clearcap-map.
14116         (install-clearcap-map): New target.
14117         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14118         -mclear-hwcap.
14120 2014-05-28  Richard Biener  <rguenther@suse.de>
14122         * hwint.h (*_HALF_WIDE_INT*): Move to ...
14123         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14124         ... here and remove the rest.
14125         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14127 2014-05-28  Richard Biener  <rguenther@suse.de>
14129         PR tree-optimization/61335
14130         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14131         new range fails, drop to varying.
14133 2014-05-28  Olivier Hainque  <hainque@adacore.com>
14135         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14136         (CPP_SPEC): Add entry for -mcpu=8548.
14137         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14138         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14140 2014-05-28  Tom de Vries  <tom@codesourcery.com>
14142         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14143         * lra.c (initialize_lra_reg_info_element): Add init of
14144         actual_call_used_reg_set field.
14145         (lra): Call lra_create_live_ranges before lra_inheritance for
14146         -fuse-caller-save.
14147         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14148         -fuse-caller-save.
14149         * lra-constraints.c (need_for_call_save_p): Use
14150         actual_call_used_reg_set instead of call_used_reg_set for
14151         -fuse-caller-save.
14152         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14154 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
14155             Tom de Vries  <tom@codesourcery.com>
14157         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14158         to gccoptlist.
14159         (@item -fuse-caller-save): New item.
14161 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
14162             Tom de Vries  <tom@codesourcery.com>
14164         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14165         OPT_fuse_caller_save.
14167 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
14168             Tom de Vries  <tom@codesourcery.com>
14170         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14171         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14172         get_call_reg_set_usage.
14173         * resource.c (mark_set_resources, mark_target_live_regs): Use
14174         get_call_reg_set_usage.
14175         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14176         field.
14177         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14178         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14179         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14180         * ira-build.c (ira_create_allocno): Init
14181         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14182         (create_cap_allocno, propagate_allocno_info)
14183         (propagate_some_info_from_allocno)
14184         (copy_info_to_removed_store_destinations): Handle
14185         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14186         * ira-costs.c (ira_tune_allocno_costs): Use
14187         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14189 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
14190             Tom de Vries  <tom@codesourcery.com>
14192         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14193         and function_used_regs_valid fields.
14194         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14195         find_all_hard_reg_sets.
14196         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14197         (get_call_reg_set_usage): New function.
14198         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14199         * regs.h (get_call_reg_set_usage): Declare.
14201 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
14203         PR libgcc/61152
14204         * config/dbx.h (License): Add Runtime Library Exception.
14205         * config/newlib-stdint.h (License): Same.
14206         * config/rtems.h (License): Same
14207         * config/initfini-array.h (License): Same
14208         * config/v850/v850.h (License): Same.
14209         * config/v850/v850-opts.h (License): Same
14210         * config/v850/rtems.h (License): Same.
14212 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
14214         PR target/61044
14215         * doc/extend.texi (Local Labels): Note that label differences are
14216         not supported for AVR.
14218 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14219             Olivier Hainque  <hainque@adacore.com>
14221         * rtl.h (set_for_reg_notes): Declare.
14222         * emit-rtl.c (set_for_reg_notes): New function.
14223         (set_unique_reg_note): Use it.
14224         * optabs.c (add_equal_note): Likewise
14226 2014-05-27  Andrew Pinski  <apinski@cavium.com>
14228         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14229         Use <w> for the register in assembly template.
14230         (stack_protect_test): Use the mode of operands[0] for the result.
14231         (stack_protect_test_<mode>): Use <w> for the register
14232         in assembly template.
14234 2014-05-27  DJ Delorie  <dj@redhat.com>
14236         * config/rx/rx.c (add_vector_labels): New.
14237         (rx_output_function_prologue): Call it.
14238         (rx_handle_func_attribute): Don't require empty arguments.
14239         (rx_handle_vector_attribute): New.
14240         (rx_attribute_table): Add "vector" attribute.
14241         * doc/extend.texi (interrupt, vector): Document new/changed
14242         RX-specific attributes.
14244         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14246 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14248         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14249         predicate to detect a negative quotient.
14251 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14253         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14254         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14255         Add X - Y CMP 0 to X CMP Y transformation.
14256         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14258 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
14260         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14261         before printing.
14263 2014-05-27  Steve Ellcey  <sellcey@mips.com>
14265         * config/mips/mips.c: Add include of cgraph.h.
14267 2014-05-27  Richard Biener  <rguenther@suse.de>
14269         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14271 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
14273         PR libgcc/61152
14274         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14275         * config/arm/arm-cores.def (License): Same.
14276         * config/arm/arm-opts.h (License): Same.
14277         * config/arm/aout.h (License): Same.
14278         * config/arm/bpabi.h (License): Same.
14279         * config/arm/elf.h (License): Same.
14280         * config/arm/linux-elf.h (License): Same.
14281         * config/arm/linux-gas.h (License): Same.
14282         * config/arm/netbsd-elf.h (License): Same.
14283         * config/arm/uclinux-eabi.h (License): Same.
14284         * config/arm/uclinux-elf.h (License): Same.
14285         * config/arm/vxworks.h (License): Same.
14287 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14289         * config/arm/neon.md (neon_bswap<mode>): New pattern.
14290         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14291         (arm_init_neon_builtins): Handle NEON_BSWAP.
14292         Define required type nodes.
14293         (arm_expand_neon_builtin): Handle NEON_BSWAP.
14294         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14295         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14296         * config/arm/iterators.md (VDQHSD): New mode iterator.
14298 2014-05-27  Richard Biener  <rguenther@suse.de>
14300         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14301         Try using literal operands when comparing value-ranges failed.
14303 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
14305         * ira.c (commutative_operand): Adjust for change to recog_data.
14306         [Missing from previous commit.]
14308 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
14310         * system.h (TEST_BIT): New macro.
14311         * recog.h (alternative_mask): New type.
14312         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14313         (recog_data_d): Replace alternative_enabled_p array with
14314         enabled_alternatives.
14315         (target_recog): New structure.
14316         (default_target_recog, this_target_recog): Declare.
14317         (get_enabled_alternatives, recog_init): Likewise.
14318         * recog.c (default_target_recog, this_target_recog): New variables.
14319         (get_enabled_alternatives): New function.
14320         (extract_insn): Use it.
14321         (recog_init): New function.
14322         (preprocess_constraints, constrain_operands): Adjust for change to
14323         recog_data.
14324         * postreload.c (reload_cse_simplify_operands): Likewise.
14325         * reload.c (find_reloads): Likewise.
14326         * ira-costs.c (record_reg_classes): Likewise.
14327         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
14328         all alternatives after a disabled one would be skipped.
14329         (ira_implicitly_set_insn_hard_regs): Likewise.
14330         * ira.c (ira_setup_alts): Adjust for change to recog_data.
14331         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14332         with enabled_alternatives.
14333         * lra.c (free_insn_recog_data): Update accordingly.
14334         (lra_update_insn_recog_data): Likewise.
14335         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
14336         * lra-constraints.c (process_alt_operands): Likewise.  Handle
14337         only_alternative as part of the enabled mask.
14338         * target-globals.h (this_target_recog): Declare.
14339         (target_globals): Add a recog field.
14340         (restore_target_globals): Restore this_target_recog.
14341         * target-globals.c: Include recog.h.
14342         (default_target_globals): Initialize recog field.
14343         (save_target_globals): Likewise.
14344         * reginfo.c (reinit_regs): Call recog_init.
14345         * toplev.c (backend_init_target): Likewise.
14347 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
14349         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14350         rather than any named insn's code.
14352 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
14354         PR libgcc/61152
14355         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14356         * config/arm/arm-cores.def (License): Same.
14358 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
14360         * tree.h (decl_comdat_group): Declare.
14361         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14362         * tree.c (decl_comdat_group): Here.
14364 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
14366         PR rtl-optimization/61222
14367         * combine.c (simplify_shift_const_1): When moving a PLUS outside
14368         the shift, truncate the PLUS operand to the result mode.
14370 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
14372         PR target/61271
14373         * config/i386/i386.c (ix86_rtx_costs)
14374         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14375         Fix condition.
14377 2014-05-26  Martin Jambor  <mjambor@suse.cz>
14379         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14380         subreg uses.
14382 2014-05-26  Richard Biener  <rguenther@suse.de>
14384         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14385         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14386         Provide specializations.
14387         (wi::int_traits <HOST_WIDE_INT>,
14388         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14390 2014-05-26  Alan Modra  <amodra@gmail.com>
14392         PR target/61098
14393         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14394         params and return a bool.  Remove dead code.  Update comment.
14395         Assert we have a const_int source.  Remove bogus code from
14396         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
14397         handling of constants > 2G and reg_equal note, from..
14398         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
14399         return value.  Update comment.  If we can, use a new pseudo
14400         for intermediate calculations.
14401         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14402         prototype.
14403         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14404         call to rs6000_emit_set_const in splitter.
14405         (movdi_internal64+2, +3): Likewise.
14407 2014-05-26  Richard Biener  <rguenther@suse.de>
14409         * system.h: Define __STDC_FORMAT_MACROS before
14410         including inttypes.h.
14411         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14412         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14413         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14414         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14415         HOST_WIDEST_INT_C): Remove.
14416         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14417         if C99 inttypes.h is not available.
14418         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14419         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14420         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14421         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14422         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14423         (struct output_info): Likewise.
14424         (print_statistics): Adjust.
14425         (dump_bitmap_statistics): Likewise.
14426         * bt-load.c (migrate_btr_defs): Print with PRId64.
14427         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14428         (MAX_SAFE_MULTIPLIER): Adjust.
14429         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14430         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14431         dump_cgraph_node): Likewise.
14432         * final.c (dump_basic_block_info): Likewise.
14433         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14434         * gcov.c (format_gcov): Likewise.
14435         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
14436         for calculation.
14437         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14438         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14439         (inline_small_functions, dump_overall_stats, dump_inline_stats):
14440         Use PRId64 for dumping.
14441         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14442         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14443         (add_allocno_hard_regs): Adjust.
14444         * loop-doloop.c (doloop_modify): Print using PRId64.
14445         * loop-iv.c (inverse): Compute in uint64_t.
14446         (determine_max_iter, iv_number_of_iterations): Likewise.
14447         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14448         Print using PRId64.
14449         * lto-streamer-out.c (write_symbol): Use uint64_t.
14450         * mcf.c (CAP_INFINITY): Use int64_t maximum.
14451         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14452         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14453         * modulo-sched.c (const_iteration_count): Use int64_t.
14454         (sms_schedule): Dump using PRId64.
14455         * predict.c (dump_prediction): Likewise.
14456         * pretty-print.h (pp_widest_integer): Remove.
14457         * profile.c (get_working_sets, is_edge_inconsistent,
14458         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14459         * tree-pretty-print.c (pp_double_int): Remove case handling
14460         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14461         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14462         and adjust users.
14463         (pass_optimize_bswap::execute): Remove restriction on hosts.
14464         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14465         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14466         * tree.c (widest_int_cst_value): Remove.
14467         * tree.h (widest_int_cst_value): Likewise.
14468         * value-prof.c (dump_histogram_value): Print using PRId64.
14469         * gengtype.c (main): Also inject int64_t.
14470         * ggc-page.c (struct max_alignment): Use int64_t.
14471         * alloc-pool.c (struct allocation_object_def): Likewise.
14472         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14473         for computation.
14474         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14475         * doc/tm.texi: Regenerated.
14476         * gengtype-lex.l (IWORD): Handle [u]int64_t.
14477         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14478         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14479         mmix_output_register_setting): Use [u]int64_t in prototypes.
14480         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14481         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14482         mmix_output_octa, mmix_output_shifted_value): Adjust.
14483         (mmix_intval): Adjust.  Remove unreachable case.
14484         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14486 2014-05-26  Richard Biener  <rguenther@suse.de>
14488         * configure.ac: Drop __int64 type check.  Insist that we
14489         found uint64_t and int64_t.
14490         * hwint.h (HOST_BITS_PER___INT64): Remove.
14491         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14492         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14493         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14494         (HOST_WIDEST_FAST_INT): Remove __int64 case.
14495         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14496         for dst_q_src_df_rms_cdt.
14497         * configure: Regenerate.
14498         * config.in: Likewise.
14500 2014-05-26  Michael Tautschnig  <mt@debian.org>
14502         PR target/61249
14503         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14504         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14506 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14508         PR rtl-optimization/61278
14509         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14511 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14513         PR rtl-optimization/61220
14514         Part of PR rtl-optimization/61225
14515         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14516         insn; skip split_edge for a block with only one successor.
14518 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14520         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14521         for variables.
14523 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14525         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14526         (update_vtable_references): New function.
14527         (function_and_variable_visibility): Rewrite also vtable initializers.
14528         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14530 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14532         * ggc.h (ggc_grow): New function.
14533         * ggc-none.c (ggc_grow): New function.
14534         * ggc-page.c (ggc_grow): Likewise.
14536 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14538         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14539         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14540         comdat_can_be_unshared_p, cgraph_externally_visible_p,
14541         varpool_externally_visible_p, can_replace_by_local_alias,
14542         update_visibility_by_resolution_info, function_and_variable_visibility,
14543         pass_data_ipa_function_and_variable_visibility,
14544         make_pass_ipa_function_and_variable_visibility,
14545         whole_program_function_and_variable_visibility,
14546         pass_data_ipa_whole_program_visibility,
14547         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14548         * cgraph.h (cgraph_local_node_p): Declare.
14549         * ipa-visibility.c: New file.
14550         * Makefile.in (OBJS): Add ipa-visiblity.o
14552 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14554         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14555         that var decl is available.
14557 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14559         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14560         symtab_node pointer.
14561         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14562         (find_decls_types_r): Do not walk COMDAT_GROUP.
14563         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14564         * varasm.c (make_decl_one_only): Use set_comdat_group;
14565         create node if needed.
14566         * ipa-inline-transform.c (save_inline_function_body): Update
14567         way we decl->symtab mapping.
14568         * symtab.c (symtab_hash, hash_node, eq_node
14569         symtab_insert_node_to_hashtable): Remove.
14570         (symtab_register_node): Update.
14571         (symtab_unregister_node): Update.
14572         (symtab_get_node): Reimplement as inline function.
14573         (symtab_add_to_same_comdat_group): Update.
14574         (symtab_dissolve_same_comdat_group_list): Update.
14575         (dump_symtab_base): Update.
14576         (verify_symtab_base): Update.
14577         (symtab_make_decl_local): Update.
14578         (fixup_same_cpp_alias_visibility): Update.
14579         (symtab_nonoverwritable_alias): Update.
14580         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14581         * ipa.c (update_visibility_by_resolution_info): UPdate.
14582         * bb-reorder.c: Include cgraph.h
14583         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14584         with comdat groups.
14585         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14586         * cgraph.c (cgraph_get_create_node): Update.
14587         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14588         and comdat_group_.
14589         (symtab_get_node): Make inline.
14590         (symtab_insert_node_to_hashtable): Remove.
14591         (symtab_can_be_discarded): Update.
14592         (decl_comdat_group): New function.
14593         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14594         Update.
14595         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14596         comdat group name.
14597         (read_comdat_group): New function.
14598         (input_node, input_varpool_node): Use it.
14599         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14600         comdat groups.
14601         * mips.c (mips_start_unique_function): Likewise.
14602         (ix86_code_end): Likewise.
14603         (rs6000_code_end): Likweise.
14604         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14606 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14608         * gengtype-state.c (fatal_reading_state): Bring offline.
14609         * optabs.c (widening_optab_handler): Bring offline.
14610         * optabs.h (widening_optab_handler): Likewise.
14611         * final.c (get_attr_length_1): Likewise.
14613 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14615         * sched-int.h (sd_iterator_cond): Manually tail recurse.
14617 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14619         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14620         (ppc440-compare): Include shift with dot.
14621         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14622         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14623         without dot.
14624         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14625         without dot.
14626         (e6500_sfx2): Include it.
14627         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14628         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14629         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14630         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14631         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14632         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14633         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14634         *lshiftrt_internal1le, *lshiftrt_internal1be,
14635         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14636         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14637         *rotldi3_internal10le, *rotldi3_internal10be,
14638         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14639         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14640         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14641         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14642         define_insns): Use type "shift" in the appropriate alternatives.
14644 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14646         * config/rs6000/rs6000.md (type): Add "logical".  Delete
14647         "fast_compare".
14648         (dot): Adjust comment.
14649         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14650         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14651         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14652         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14653         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14654         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14655         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14656         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14658         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14659         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14660         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14661         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14662         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14663         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14664         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14665         * config/rs6000/8540.md (ppc8540_su): Adjust.
14666         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14667         cell-cmp-microcoded): Adjust.
14668         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14669         * config/rs6000/e500mc.md (e500mc_su): Adjust.
14670         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14671         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14672         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14673         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14674         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14675         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14676         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14677         Adjust.
14678         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14679         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14680         Adjust.  Adjust comment.
14681         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14682         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14684 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14686         * config/rs6000/rs6000.md (type): Add "add".
14687         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14688         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14689         define_insns): Use it.
14690         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14692         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14693         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14694         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14695         * config/rs6000/601.md (ppc601-integer): Adjust.
14696         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14697         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14698         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14699         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14700         * config/rs6000/8540.md (ppc8540_su): Adjust.
14701         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14702         cell-cmp-microcoded): Adjust.
14703         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14704         * config/rs6000/e500mc.md (e500mc_su): Adjust.
14705         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14706         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14707         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14708         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14709         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14710         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14711         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14712         Adjust.
14713         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14714         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14715         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14716         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14718 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14720         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14721         "delayed_compare", "var_delayed_compare".
14722         (var_shift): New attribute.
14723         (cell_micro): Adjust.
14724         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14725         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14726         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14727         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14728         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14729         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14730         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14731         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14732         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14733         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14734         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14735         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14736         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14737         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14738         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14739         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14740         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14741         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14742         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14743         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14744         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14745         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14746         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14747         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14748         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14750         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14751         * config/rs6000/440.md (ppc440-integer): Adjust.
14752         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14753         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14754         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14755         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14756         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14757         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14758         * config/rs6000/8540.md (ppc8540_su): Adjust.
14759         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14760         cell-cmp-microcoded): Adjust.
14761         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14762         * config/rs6000/e500mc.md (e500mc_su): Adjust.
14763         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14764         e500mc64_delayed): Adjust.
14765         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14766         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14767         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14768         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14769         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14770         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14771         power6-delayed-compare, power6-var-delayed-compare): Adjust.
14772         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14773         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14774         Adjust comment.
14775         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14776         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14778 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14780         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
14781         (bits): New mode_attr.
14782         (idiv_ldiv): Delete mode_attr.
14783         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14784         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14785         rs6000_adjust_priority, is_nonpipeline_insn,
14786         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14788         * config/rs6000/40x.md (ppc403-idiv): Adjust.
14789         * config/rs6000/440.md (ppc440-idiv): Adjust.
14790         * config/rs6000/476.md (ppc476-idiv): Adjust.
14791         * config/rs6000/601.md (ppc601-idiv): Adjust.
14792         * config/rs6000/603.md (ppc603-idiv): Adjust.
14793         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14794         ppc620-ldiv): Adjust.
14795         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14796         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14797         * config/rs6000/8540.md (ppc8540_divide): Adjust.
14798         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14799         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14800         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14801         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14802         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14803         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14804         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14805         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14806         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14807         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14808         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14809         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14810         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14811         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14812         * config/rs6000/titan.md (titan_fxu_div): Adjust.
14814 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14816         * config/rs6000/rs6000.md (type): Delete "insert_word",
14817         "insert_dword".  Add "insert".
14818         (size): Update comment.
14819         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14820         insn_must_be_first_in_group): Adjust.
14821         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14822         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14823         *insvsi_internal6, insvdi_internal): Adjust.
14825         * config/rs6000/40x.md (ppc403-integer): Adjust.
14826         * config/rs6000/440.md (ppc440-integer): Adjust.
14827         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14828         * config/rs6000/601.md (ppc601-integer): Adjust.
14829         * config/rs6000/603.md (ppc603-integer): Adjust.
14830         * config/rs6000/6xx.md (ppc604-integer): Adjust.
14831         * config/rs6000/7450.md (ppc7450-integer): Adjust.
14832         * config/rs6000/7xx.md (ppc750-integer): Adjust.
14833         * config/rs6000/8540.md (ppc8540_su): Adjust.
14834         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14835         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14836         * config/rs6000/e500mc.md (e500mc_su): Adjust.
14837         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14838         * config/rs6000/e5500.md (e5500_sfx): Adjust.
14839         * config/rs6000/e6500.md (e6500_sfx): Adjust.
14840         * config/rs6000/mpc.md (mpccore-integer): Adjust.
14841         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14842         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14843         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14844         * config/rs6000/power7.md (power7-integer): Adjust.
14845         * config/rs6000/power8.md (power8-1cyc): Adjust.
14846         * config/rs6000/rs64.md (rs64a-integer): Adjust.
14847         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14849 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14851         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
14852         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14853         (size): New attribute.
14854         (dot): New attribute.
14855         (cell_micro): Adjust.
14856         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14857         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14858         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14859         umuldi3_highpart): Adjust.
14860         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14861         rs6000_adjust_priority, is_nonpipeline_insn,
14862         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14864         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14865         ppc405-imul3): Adjust.
14866         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14867         * config/rs6000/476.md (ppc476-imul): Adjust.
14868         * config/rs6000/601.md (ppc601-imul): Adjust.
14869         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14870         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14871         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14872         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14873         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14874         Adjust.
14875         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14876         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14877         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14878         cell-imul): Adjust.
14879         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14880         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14881         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14882         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14883         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14884         * config/rs6000/mpc.md (mpccore-imul): Adjust.
14885         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14886         power4-lmul, power4-imul, power4-imul3): Adjust.
14887         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14888         power5-lmul, power5-imul, power5-imul3): Adjust.
14889         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14890         power6-lmul, power6-imul, power6-imul3): Adjust.
14891         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14892         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14894         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14895         rs64a-lmul): Adjust.
14896         * config/rs6000/titan.md (titan_imul): Adjust.
14898 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14900         * config/rs6000/rs6000.md (type): Add new value "halfmul".
14901         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14902         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14903         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14904         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14905         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14906         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14907         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14908         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14909         * config/rs6000/titan.md: Delete nonsensical comment.
14910         (titan_imul): Add type imul3.
14911         (titan_mulhw): Remove type imul3; add type halfmul.
14913 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14915         * config/rs6000/rs6000.md (type): Reorder, reformat.
14917 2014-05-23  Martin Jambor  <mjambor@suse.cz>
14919         PR tree-optimization/53787
14920         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14921         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14922         analysis_done, update all uses.
14923         * ipa-prop.c: Include domwalk.h
14924         (param_analysis_info): Removed.
14925         (param_aa_status): New type.
14926         (ipa_bb_info): Likewise.
14927         (func_body_info): Likewise.
14928         (ipa_get_bb_info): New function.
14929         (aa_overwalked): Likewise.
14930         (find_dominating_aa_status): Likewise.
14931         (parm_bb_aa_status_for_bb): Likewise.
14932         (parm_preserved_before_stmt_p): Changed to use new param AA info.
14933         (load_from_unmodified_param): Accept func_body_info as a parameter
14934         instead of parms_ainfo.
14935         (parm_ref_data_preserved_p): Changed to use new param AA info.
14936         (parm_ref_data_pass_through_p): Likewise.
14937         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
14938         (compute_complex_assign_jump_func): Changed to use new param AA info.
14939         (compute_complex_ancestor_jump_func): Likewise.
14940         (ipa_compute_jump_functions_for_edge): Likewise.
14941         (ipa_compute_jump_functions): Removed.
14942         (ipa_compute_jump_functions_for_bb): New function.
14943         (ipa_analyze_indirect_call_uses): Likewise, moved variable
14944         declarations down.
14945         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14946         and info, moved variable declarations down.
14947         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14948         node and info.
14949         (ipa_analyze_stmt_uses): Likewise.
14950         (ipa_analyze_params_uses): Removed.
14951         (ipa_analyze_params_uses_in_bb): New function.
14952         (ipa_analyze_controlled_uses): Likewise.
14953         (free_ipa_bb_info): Likewise.
14954         (analysis_dom_walker): New class.
14955         (ipa_analyze_node): Handle node-specific forbidden analysis,
14956         initialize and free func_body_info, use dominator walker.
14957         (ipcp_modif_dom_walker): New class.
14958         (ipcp_transform_function): Create and free func_body_info, use
14959         ipcp_modif_dom_walker, moved a lot of functionality there.
14961 2014-05-23  Marek Polacek  <polacek@redhat.com>
14962             Jakub Jelinek  <jakub@redhat.com>
14964         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14965         * gcc.c (sanitize_spec_function): Likewise.
14966         * convert.c (convert_to_integer): Include "ubsan.h".  Add
14967         floating-point to integer instrumentation.
14968         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14969         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14970         SANITIZE_NONDEFAULT.
14971         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14972         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14973         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14974         * ubsan.c: Include "realmpfr.h" and "dfp.h".
14975         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14976         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14977         float/double/long double.
14978         (ubsan_instrument_float_cast): New function.
14979         * ubsan.h (ubsan_instrument_float_cast): Declare.
14981 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
14983         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14984         predicate.
14985         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
14986         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14987         Adjust for tailcalling through registers.
14988         * config/aarch64/aarch64.h (enum reg_class): New caller save
14989         register class.
14990         (REG_CLASS_NAMES): Likewise.
14991         (REG_CLASS_CONTENTS): Likewise.
14992         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14993         Allow tailcalling without decls.
14995 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
14997         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14998         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15000         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15001         gsi, and variables v_* to v*.
15003 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
15005         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15007 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
15009         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15010         * omp-low.c: Update accordingly.
15012         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15013         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15014         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15015         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15016         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15017         GF_OMP_TARGET_KIND_UPDATE.
15019         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15020         Explicitly enumerate the expected region types.
15022 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15024         PR other/56955
15025         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
15026         documentation; the old documentation didn't clearly state the
15027         constraints on the contents of the pointed-to storage.
15029 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15031         Fix bootstrap error on ia64
15032         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15033         Return default value.
15035 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15037         PR tree-optimization/54733
15038         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15039         (CMPNOP): Define.
15040         (find_bswap_or_nop_load): New.
15041         (find_bswap_1): Renamed to ...
15042         (find_bswap_or_nop_1): This. Also add support for memory source.
15043         (find_bswap): Renamed to ...
15044         (find_bswap_or_nop): This. Also add support for memory source and
15045         detection of bitwise operations equivalent to load in target
15046         endianness.
15047         (execute_optimize_bswap): Likewise. Also move its leading comment back
15048         in place and split statement transformation into ...
15049         (bswap_replace): This.
15051 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
15053         PR rtl-optimization/61215
15054         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15055         simplify_gen_subreg until final substitution.
15057 2014-05-23  Alan Modra  <amodra@gmail.com>
15059         PR target/61231
15060         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15061         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15062         Use "Y" constraint rather than "m".
15064 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
15066         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15067         define.
15068         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15069         New function declaration.
15070         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15071         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15072         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15073         (aarch64_init_builtins) : Initialize builtins
15074         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15075         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15076         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15077         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15078         and __builtins_aarch64_set_fpsr.
15079         (aarch64_atomic_assign_expand_fenv): New function.
15080         * config/aarch64/aarch64.md (set_fpcr): New pattern.
15081         (get_fpcr) : Likewise.
15082         (set_fpsr) : Likewise.
15083         (get_fpsr) : Likewise.
15084         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15085          and UNSPECV_SET_FPSR.
15086         * doc/extend.texi (AARCH64 Built-in Functions) : Document
15087         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15088         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15090 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
15092         PR rtl-optimization/60969
15093         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15094         constraints.  Set up mem cost for NO_REGS case.
15096 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
15098         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15100 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
15102         * config/darwin.c: Include "lto-section-names.h".
15103         (LTO_SEGMENT_NAME): Don't define.
15104         * config/i386/winnt.c: Include "lto-section-names.h".
15105         * lto-streamer.c: Include "lto-section-names.h".
15106         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15107         * lto-wrapper.c: Include "lto-section-names.h".
15108         (LTO_SECTION_NAME_PREFIX): Don't define.
15109         * lto-section-names.h: New file.
15110         * cgraphunit.c: Include "lto-section-names.h".
15112 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
15114         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15116 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
15118         PR target/61208
15119         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15121 2014-05-22  Nick Clifton  <nickc@redhat.com>
15123         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15125 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
15127         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15128         -> (T)A transformation to integer types.
15130 2014-05-22  Teresa Johnson  <tejohnson@google.com>
15132         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15133         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15134         (gcov_rewrite): Use gcov_nonruntime_assert.
15135         (gcov_open): Ditto.
15136         (gcov_write_words): Ditto.
15137         (gcov_write_length): Ditto.
15138         (gcov_read_words): Use gcov_nonruntime_assert, and remove
15139         gcc_assert from IN_LIBGCOV code.
15140         (gcov_read_summary): Use gcov_error to flag profile corruption.
15141         (gcov_sync): Use gcov_nonruntime_assert.
15142         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15143         (gcov_histo_index): Use gcov_nonruntime_assert.
15144         (static void gcov_histogram_merge): Ditto.
15145         (compute_working_sets): Ditto.
15146         * gcov-io.h (gcov_nonruntime_assert): Define.
15147         (gcov_error): Define for !IN_LIBGCOV
15149 2014-05-22  Richard Biener  <rguenther@suse.de>
15151         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15152         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15153         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15154         and deallocation site.
15155         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15156         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15157         passing through the incoming points-to set.
15158         (handle_lhs_call): Use flags argument instead of recomputing it.
15159         (find_func_aliases_for_call): Call handle_lhs_call with proper
15160         call return flags.
15162 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
15164         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15165         all padding bits in REAL_VALUE_TYPE are cleared.
15167 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15169         Cleanup and improve multipass_dfa_lookahead_guard
15170         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15171         (core2i7_first_cycle_multipass_begin,)
15172         (core2i7_first_cycle_multipass_issue,)
15173         (core2i7_first_cycle_multipass_backtrack): Update signature.
15174         * config/ia64/ia64.c
15175         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15176         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15177         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15178         hook definition.
15179         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15180         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
15181         values.
15182         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15183         return values.
15184         * doc/tm.texi: Regenerate.
15185         * doc/tm.texi.in
15186         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15187         * haifa-sched.c (ready_try): Make signed to allow negative values.
15188         (rebug_ready_list_1): Update.
15189         (choose_ready): Simplify.
15190         (sched_extend_ready_list): Update.
15192 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15194         Remove IA64 speculation tweaking flags
15195         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15196         speculation tuning flags.
15197         (msched-prefer-non-data-spec-insns,)
15198         (msched-prefer-non-control-spec-insns): Obsolete options.
15199         * haifa-sched.c (choose_ready): Remove handling of
15200         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15201         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15202         and PREFER_NON_DATA_SPEC.
15203         * sel-sched.c (process_spec_exprs): Remove handling of
15204         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15206 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15208         Improve scheduling debug output
15209         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15210         (advance_one_cycle): Update.
15211         (schedule_insn, queue_to_ready): Add debug printouts.
15212         (debug_ready_list_1): New static function.
15213         (debug_ready_list): Update.
15214         (max_issue): Add debug printouts.
15215         (dump_insn_stream): New static function.
15216         (schedule_block): Use it.  Also better indent printouts.
15218 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15220         Fix sched_insn debug counter
15221         * haifa-sched.c (schedule_insn): Update.
15222         (struct haifa_saved_data): Add nonscheduled_insns_begin.
15223         (save_backtrack_point, restore_backtrack_point): Update.
15224         (first_nonscheduled_insn): New static function.
15225         (queue_to_ready, choose_ready): Use it.
15226         (schedule_block): Init nonscheduled_insns_begin.
15227         (sched_emit_insn): Update.
15230 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
15232         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15233         to GENERAL_REGS.
15234         (aarch64_secondary_reload) : LikeWise.
15235         (aarch64_class_max_nregs) : Remove CORE_REGS.
15236         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15237         (REG_CLASS_NAMES) : Likewise.
15238         (REG_CLASS_CONTENTS) : LikeWise.
15239         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15241 2014-05-21  Guozhi Wei  <carrot@google.com>
15243         PR target/61202
15244         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15245         constraint.
15246         (vqdmulhq_n_s16): Likewise.
15248 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
15250         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15252 2014-05-21  Marek Polacek  <polacek@redhat.com>
15254         PR sanitizer/61272
15255         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15257 2014-05-21  Martin Jambor  <mjambor@suse.cz>
15259         * doc/invoke.texi (Optimize Options): Document parameters
15260         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15261         ipa-cp-array-index-hint-bonus.
15263 2014-05-21  Mark Wielaard  <mjw@redhat.com>
15265         PR debug/16063
15266         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15267         version >= 3 or not strict DWARF.
15268         * langhooks.h (struct lang_hooks_for_types): Add
15269         enum_underlying_base_type.
15270         * langhooks.c (lhd_enum_underlying_base_type): New function.
15271         * gcc/langhooks.h (struct lang_hooks_for_types): Add
15272         enum_underlying_base_type.
15273         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15274         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15275         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15277 2014-05-21  Richard Biener  <rguenther@suse.de>
15279         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15281 2014-05-21  John Marino  <gnugcc@marino.st>
15283         * config.gcc (*-*-dragonfly*): New target.
15284         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15285         * configure: Regenerate.
15286         * config/dragonfly-stdint.h: New.
15287         * config/dragonfly.h: New.
15288         * config/dragonfly.opt: New.
15289         * config/i386/dragonfly.h: New.
15290         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15292 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
15294         * tree.def (VOID_CST): New.
15295         * tree-core.h (TI_VOID): New.
15296         * tree.h (void_node): New.
15297         * tree.c (tree_node_structure_for_code, tree_code_size)
15298         (iterative_hash_expr): Handle VOID_CST.
15299         (build_common_tree_nodes): Initialize void_node.
15301 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
15303         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15304         functions.
15305         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15307         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15308         more places.
15310         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15311         flag_reorder_blocks_and_partition.
15312         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15314 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
15316         PR target/54236
15317         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
15318         constraints.
15319         (*addc_r_t): Add new insn_and_split.
15321 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
15323         PR middle-end/61252
15324         * omp-low.c (handle_simd_reference): New function.
15325         (lower_rec_input_clauses): Use it.  Defer adding reference
15326         initialization even for reduction without placeholder if in simd,
15327         handle it properly later on.
15329 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
15331         PR tree-optimization/60899
15332         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15333         assume all static symbols will have definition wile parsing and
15334         check the do have definition later in compilation; check that
15335         variable referring symbol will be output before concluding that
15336         reference is safe; be conservative for referring local statics;
15337         be more precise about when comdat is output in other partition.
15339 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
15341         PR bootstrap/60984
15342         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15343         parameter.
15344         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15345         (ipa_inline): Loop inline_to_all_callers until no more aliases
15346         are removed.
15348 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
15350         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15351         set writeonly flag only for vars actually written to.
15353 2014-05-20  Dehao Chen  <dehao@google.com>
15355         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15356         and callee count to get clone count.
15357         * tree-inline.c (expand_call_inline): Use callee count instead of bb
15358         count in copy_body.
15360 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
15362         PR rtl-optimization/61243
15363         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15365 2014-05-20  Xinliang David Li  <davidxl@google.com>
15367         * cgraphunit.c (walk_polymorphic_call_targets): Add
15368         dbgcnt and fopt-info support.
15369         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15370         * ipa-devirt.c (ipa_devirt): Ditto.
15371         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15372         * ipa.c (walk_polymorphic_call_targets): Ditto.
15373         * gimple-fold.c (fold_gimple_assign): Ditto.
15374         (gimple_fold_call): Ditto.
15375         * dbgcnt.def: New counter.
15377 2014-05-20  DJ Delorie  <dj@redhat.com>
15379         * config/msp430/msp430.md (split): Don't allow subregs when
15380         splitting SImode adds.
15381         (andneghi): Fix subtraction logic.
15382         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15384 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
15386         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15387         symbols.
15388         * except.c (switch_to_exception_section, resolve_unique_section,
15389         get_named_text_section, default_function_rodata_section,
15390         align_variable, get_block_for_decl, default_section_type_flags):
15391         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15392         * symtab.c (symtab_add_to_same_comdat_group,
15393         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15394         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15395         Likewise.
15396         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15397         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15398         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15399         (c6x_function_in_section_p): Likewise.
15400         * config/darwin.c (machopic_select_section): Likewise.
15401         * config/arm/arm.c (arm_function_in_section_p): Likewise.
15402         * config/mips/mips.c (mips_function_rodata_section): Likewise.
15403         * config/mep/mep.c (mep_select_section): LIkewise.
15404         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15406 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
15408         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15409         EH region of calls to pure functions that can throw an exception.
15410         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15411         (copy_reference_ops_from_call): Also copy the EH region of the call if
15412         it can throw an exception.
15414 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15416         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15417         nested VEC_SELECTs that are inverses of each other.
15419 2014-05-20  Richard Biener  <rguenther@suse.de>
15421         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15422         (extract_and_process_scc_for_name): not here.
15423         (cond_dom_walker::before_dom_children): Only process
15424         stmts that end the BB in interesting ways.
15425         (run_scc_vn): Mark param uses as visited.
15427 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15429         * config/arm/arm.md (arith_shiftsi): Do not predicate for
15430         arm_restrict_it.
15432 2014-05-20  Nick Clifton  <nickc@redhat.com>
15434         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15435         (msp430_gimplify_va_arg_expr): New function.
15436         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15438         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15439         operand 0 in order to prevent confusion about the number of
15440         registers involved.
15442 2014-05-20  Richard Biener  <rguenther@suse.de>
15444         PR tree-optimization/61221
15445         * tree-ssa-pre.c (el_to_update): Remove.
15446         (eliminate_dom_walker::before_dom_children): Handle released
15447         VDEFs by value-numbering them to the associated VUSE.  Update
15448         stmt immediately for substituted call address.
15449         (eliminate): Remove delayed stmt updating code.
15450         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15451         possibly late re-numbered vuses.
15452         (vn_reference_lookup_2): Adjust.
15453         (vn_reference_lookup_pieces): Likewise.
15454         (vn_reference_lookup): Likewise.
15456 2014-05-20  Richard Biener  <rguenther@suse.de>
15458         * config.gcc: Remove need_64bit_hwint.
15459         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15460         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15461         it to be true.
15462         * config.in: Regenerate.
15463         * configure: Likewise.
15465 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
15467         * doc/extend.texi: Create Label Attributes section,
15468         move all label attributes into it and reference it.
15470 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
15472         * arm.c (thumb1_reorg): When scanning backwards skip anything
15473         that's not a proper insn.
15475 2014-05-19  Richard Biener  <rguenther@suse.de>
15477         PR tree-optimization/61221
15478         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15479         Do nothing for unreachable blocks.
15480         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15481         Improve unreachability detection.
15483 2014-05-19  Richard Biener  <rguenther@suse.de>
15485         PR tree-optimization/61209
15486         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15488 2014-05-19  Nick Clifton  <nickc@redhat.com>
15490         * except.c (init_eh): Fix computation of builtin setjmp buffer
15491         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15493 2014-05-19  Richard Biener  <rguenther@suse.de>
15495         PR tree-optimization/61184
15496         * tree-vrp.c (is_negative_overflow_infinity): Use
15497         TREE_OVERFLOW_P and do that check first.
15498         (is_positive_overflow_infinity): Likewise.
15499         (is_overflow_infinity): Likewise.
15500         (vrp_operand_equal_p): Properly treat operands with
15501         differing overflow as not equal.
15503 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
15505         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15506         shift simplification where it was intended.
15508 2014-05-19  Christian Bruel  <christian.bruel@st.com>
15510         PR target/61195
15511         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15513 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
15515         PR target/61084
15516         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15517         than wide_int.
15519 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
15521         * reg-notes.def (CROSSING_JUMP): Likewise.
15522         * rtl.h (rtx_def): Update comment for jump flag.
15523         (CROSSING_JUMP_P): Define.
15524         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15525         of a REG_CROSSING_JUMP note.
15526         * cfghooks.c (tidy_fallthru_edges): Likewise.
15527         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15528         * emit-rtl.c (try_split): Likewise.
15529         * haifa-sched.c (sched_create_recovery_edges): Likewise.
15530         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15531         * jump.c (redirect_jump_2): Likewise.
15532         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15533         (relax_delay_slots): Likewise.
15534         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15535         (bbit_di): Likewise.
15536         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15537         * config/sh/sh.md (jump_compact): Likewise.
15538         * bb-reorder.c (rotate_loop): Likewise.
15539         (pass_duplicate_computed_gotos::execute): Likewise.
15540         (add_reg_crossing_jump_notes): Rename to...
15541         (update_crossing_jump_flags): ...this.
15542         (pass_partition_blocks::execute): Update accordingly.
15544 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
15546         * tree.h: Remove extraneous template <>.
15548 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
15550         * ipa.c (symtab_remove_unreachable_nodes): Remove
15551         symbol from comdat group if its body was eliminated.
15552         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15553         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15554         (symtab_unregister_node): ... this one.
15555         (verify_symtab_base): More strict checking of comdats.
15556         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15558 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
15560         * tree-pass.h (make_pass_ipa_comdats): New pass.
15561         * timevar.def (TV_IPA_COMDATS): New timevar.
15562         * passes.def (pass_ipa_comdats): Add.
15563         * Makefile.in (OBJS): Add ipa-comdats.o
15564         * ipa-comdats.c: New file.
15566 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
15568         * ipa.c (update_visibility_by_resolution_info): New function.
15569         (function_and_variable_visibility): Use it.
15571 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
15573         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15574         New functions.
15575         (FOR_EACH_DEFINED_SYMBOL): New macro.
15576         (varpool_first_static_initializer, varpool_next_static_initializer,
15577         varpool_first_defined_variable, varpool_next_defined_variable):
15578         Fix comments.
15579         (symtab_in_same_comdat_p): Correctly deal with inline functions.
15581 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
15583         * ggc-page.c (ggc_handle_finalizers): Add comment.
15585 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
15587         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15588         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15589         (ggc_internal_cleared_alloc): Likewise.
15590         * ggc-page.c (finalizer): New class.
15591         (vec_finalizer): Likewise.
15592         (globals::finalizers): New member.
15593         (globals::vec_finalizers): Likewise.
15594         (ggc_internal_alloc): Record the finalizer if any for the block being
15595         allocated.
15596         (ggc_handle_finalizers): New function.
15597         (ggc_collect): Call ggc_handle_finalizers.
15598         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15599         finalizer.
15600         (ggc_internal_cleared_alloc): Likewise.
15601         (finalize): New function.
15602         (need_finalization_p): Likewise.
15603         (ggc_alloc): Install the type's destructor as the finalizer if it
15604         might do something.
15605         (ggc_cleared_alloc): Likewise.
15606         (ggc_vec_alloc): Likewise.
15607         (ggc_cleared_vec_alloc): Likewise.
15609 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
15611         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15613 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
15615         * alias.c (record_alias_subset): Adjust.
15616         * bitmap.c (bitmap_element_allocate): Likewise.
15617         (bitmap_gc_alloc_stat): Likewise.
15618         * cfg.c (init_flow): Likewise.
15619         (alloc_block): Likewise.
15620         (unchecked_make_edge): Likewise.
15621         * cfgloop.c (alloc_loop): Likewise.
15622         (flow_loops_find): Likewise.
15623         (rescan_loop_exit): Likewise.
15624         * cfgrtl.c (init_rtl_bb_info): Likewise.
15625         * cgraph.c (insert_new_cgraph_node_version): Likewise.
15626         (cgraph_allocate_node): Likewise.
15627         (cgraph_create_edge_1): Likewise.
15628         (cgraph_allocate_init_indirect_info): Likewise.
15629         * cgraphclones.c (cgraph_clone_edge): Likewise.
15630         * cgraphunit.c (add_asm_node): Likewise.
15631         (init_lowered_empty_function): Likewise.
15632         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15633         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15634         (alpha_use_linkage): Likewise.
15635         * config/arc/arc.c (arc_init_machine_status): Likewise.
15636         * config/arm/arm.c (arm_init_machine_status): Likewise.
15637         * config/avr/avr.c (avr_init_machine_status): Likewise.
15638         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15639         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15640         * config/cris/cris.c (cris_init_machine_status): Likewise.
15641         * config/darwin.c (machopic_indirection_name): Likewise.
15642         (darwin_build_constant_cfstring): Likewise.
15643         (darwin_enter_string_into_cfstring_table): Likewise.
15644         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15645         * config/frv/frv.c (frv_init_machine_status): Likewise.
15646         * config/i386/i386.c (get_dllimport_decl): Likewise.
15647         (ix86_init_machine_status): Likewise.
15648         (assign_386_stack_local): Likewise.
15649         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15650         (i386_pe_maybe_record_exported_symbol): Likewise.
15651         (i386_pe_record_stub): Likewise.
15652         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15653         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15654         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15655         (m32c_note_pragma_address): Likewise.
15656         * config/mep/mep.c (mep_init_machine_status): Likewise.
15657         (mep_note_pragma_flag): Likewise.
15658         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15659         (mips16_local_alias): Likewise.
15660         (mips_init_machine_status): Likewise.
15661         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15662         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15663         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15664         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15665         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15666         * config/pa/pa.c (pa_init_machine_status): Likewise.
15667         (pa_get_deferred_plabel): Likewise.
15668         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15669         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15670         (rs6000_init_machine_status): Likewise.
15671         (output_toc): Likewise.
15672         * config/s390/s390.c (s390_init_machine_status): Likewise.
15673         * config/score/score.c (score_output_external): Likewise.
15674         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15675         * config/spu/spu.c (spu_init_machine_status): Likewise.
15676         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15677         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15678         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15679         * coverage.c (coverage_end_function): Likewise.
15680         * dbxout.c (dbxout_init): Likewise.
15681         * doc/gty.texi: Don't mention variable_size attribute.
15682         * dwarf2cfi.c (new_cfi): Adjust.
15683         (new_cfi_row): Likewise.
15684         (copy_cfi_row): Likewise.
15685         (create_cie_data): Likewise.
15686         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15687         (new_loc_descr): Likewise.
15688         (find_AT_string_in_table): Likewise.
15689         (add_addr_table_entry): Likewise.
15690         (new_die): Likewise.
15691         (add_var_loc_to_decl): Likewise.
15692         (clone_die): Likewise.
15693         (clone_as_declaration): Likewise.
15694         (break_out_comdat_types): Likewise.
15695         (new_loc_list): Likewise.
15696         (add_loc_descr_to_each): Likewise.
15697         (add_location_or_const_value_attribute): Likewise.
15698         (add_linkage_name): Likewise.
15699         (lookup_filename): Likewise.
15700         (dwarf2out_var_location): Likewise.
15701         (new_line_info_table): Likewise.
15702         (dwarf2out_init): Likewise.
15703         (mem_loc_descriptor): Likewise.
15704         (loc_descriptor): Likewise.
15705         (add_const_value_attribute): Likewise.
15706         (tree_add_const_value_attribute): Likewise.
15707         (comp_dir_string): Likewise.
15708         (dwarf2out_vms_debug_main_pointer): Likewise.
15709         (string_cst_pool_decl): Likewise.
15710         * emit-rtl.c (set_mem_attrs): Likewise.
15711         (get_reg_attrs): Likewise.
15712         (start_sequence): Likewise.
15713         (init_emit): Likewise.
15714         (init_emit_regs): Likewise.
15715         * except.c (init_eh_for_function): Likewise.
15716         (gen_eh_region): Likewise.
15717         (gen_eh_region_catch): Likewise.
15718         (gen_eh_landing_pad): Likewise.
15719         (add_call_site): Likewise.
15720         * function.c (add_frame_space): Likewise.
15721         (insert_temp_slot_address): Likewise.
15722         (assign_stack_temp_for_type): Likewise.
15723         (get_hard_reg_initial_val): Likewise.
15724         (allocate_struct_function): Likewise.
15725         (prepare_function_start): Likewise.
15726         (types_used_by_var_decl_insert): Likewise.
15727         * gengtype.c (variable_size_p): Remove function.
15728         (enum alloc_quantity): Remove enum.
15729         (write_typed_alloc_def): Remove function.
15730         (write_typed_struct_alloc_def): Likewise.
15731         (write_typed_typedef_alloc_def): Likewise.
15732         (write_typed_alloc_defns): Likewise.
15733         (main): Adjust.
15734         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15735         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15736         * ggc.h (ggc_alloc): new function.
15737         (ggc_cleared_alloc): Likewise.
15738         (ggc_vec_alloc): Template on type of vector element, and remove
15739         element size argument.
15740         (ggc_cleared_vec_alloc): Likewise.
15741         * gimple.c (gimple_build_omp_for): Adjust.
15742         (gimple_copy): Likewise.
15743         * ipa-cp.c (get_replacement_map): Likewise.
15744         (find_aggregate_values_for_callers_subset): Likewise.
15745         (known_aggs_to_agg_replacement_list): Likewise.
15746         * ipa-devirt.c (get_odr_type): Likewise.
15747         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15748         (read_agg_replacement_chain): Likewise.
15749         * loop-iv.c (get_simple_loop_desc): Likewise.
15750         * lto-cgraph.c (input_node_opt_summary): Likewise.
15751         * lto-section-in.c (lto_new_in_decl_state): Likewise.
15752         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15753         (input_eh_region): Likewise.
15754         (input_eh_lp): Likewise.
15755         (input_cfg): Likewise.
15756         * optabs.c (set_optab_libfunc): Likewise.
15757         (init_tree_optimization_optabs): Likewise.
15758         (set_conv_libfunc): Likewise.
15759         * passes.c (do_per_function_toporder): Likewise.
15760         * rtl.h: Don't use variable_size gty attribute.
15761         * sese.c (if_region_set_false_region): Adjust.
15762         * stringpool.c (gt_pch_save_stringpool): Likewise.
15763         * target-globals.c (save_target_globals): Likewise.
15764         * toplev.c (general_init): Likewise.
15765         * trans-mem.c (record_tm_replacement): Likewise.
15766         (split_bb_make_tm_edge): Likewise.
15767         * tree-cfg.c (move_sese_region_to_fn): Likewise.
15768         * tree-data-ref.h (lambda_vector_new): Likewise.
15769         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15770         * tree-iterator.c (tsi_link_before): Likewise.
15771         (tsi_link_after): Likewise.
15772         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15773         * tree-ssa-loop-niter.c (record_estimate): Likewise.
15774         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15775         * tree-ssa-operands.h: Don't use variable_size gty attribute.
15776         * tree-ssa.c (init_tree_ssa): Adjust.
15777         * tree-ssanames.c (set_range_info): Likewise.
15778         (get_ptr_info): Likewise.
15779         (duplicate_ssa_name_ptr_info): Likewise.
15780         (duplicate_ssa_name_range_info): Likewise.
15781         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15782         (unpack_ts_fixed_cst_value_fields): Likewise.
15783         * tree.c (build_fixed): Likewise.
15784         (build_real): Likewise.
15785         (build_string): Likewise.
15786         (decl_priority_info): Likewise.
15787         (decl_debug_expr_insert): Likewise.
15788         (decl_value_expr_insert): Likewise.
15789         (decl_debug_args_insert): Likewise.
15790         (type_hash_add): Likewise.
15791         (build_omp_clause): Likewise.
15792         * ubsan.c (decl_for_type_insert): Likewise.
15793         * varasm.c (get_unnamed_section): Likewise.
15794         (get_noswitch_section): Likewise.
15795         (get_section): Likewise.
15796         (get_block_for_section): Likewise.
15797         (create_block_symbol): Likewise.
15798         (build_constant_desc): Likewise.
15799         (create_constant_pool): Likewise.
15800         (force_const_mem): Likewise.
15801         (record_tm_clone_pair): Likewise.
15802         * varpool.c (varpool_create_empty_node): Likewise.
15804 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
15806         * dwarf2out.c (tree_add_const_value_attribute): Call
15807         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15808         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15809         instead of ggc_internal_<x>alloc_stat.
15810         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15811         (ggc_realloc): Likewise.
15812         * ggc-none.c (ggc_internal_alloc): Likewise.
15813         (ggc_internal_cleared_alloc): Likewise.
15814         * ggc-page.c: Likewise.
15815         * ggc.h (ggc_internal_alloc_stat): Likewise.
15816         (ggc_internal_alloc): Remove macro.
15817         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15818         (ggc_internal_cleared_alloc): Remove macro.
15819         (GGC_RESIZEVEC): Adjust.
15820         (ggc_resizevar): Remove macro.
15821         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15822         (ggc_internal_cleared_vec_alloc_stat): Likewise.
15823         (ggc_internal_vec_cleared_alloc): Remove macro.
15824         (ggc_alloc_atomic_stat): Drop _stat suffix.
15825         (ggc_alloc_atomic): Remove macro.
15826         (ggc_alloc_cleared_atomic): Remove macro.
15827         (ggc_alloc_string_stat): Drop _stat suffix.
15828         (ggc_alloc_string): Remove macro.
15829         (ggc_alloc_rtx_def_stat): Adjust.
15830         (ggc_alloc_tree_node_stat): Likewise.
15831         (ggc_alloc_cleared_tree_node_stat): Likewise.
15832         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15833         (ggc_alloc_cleared_simd_clone_stat): Likewise.
15834         * gimple.c (gimple_build_omp_for): Likewise.
15835         (gimple_copy): Likewise.
15836         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15837         * toplev.c (realloc_for_line_map): Adjust.
15838         * tree-data-ref.h (lambda_vector_new): Likewise.
15839         * tree-phinodes.c (allocate_phi_node): Likewise.
15840         * tree.c (grow_tree_vec_stat): Likewise.
15841         * vec.h (va_gc::reserve): Adjust.
15843 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
15845         * config/microblaze/microblaze.c (break_handler): New Declaration.
15846         (microblaze_break_function_p,microblaze_is_break_handler): New.
15847         (compute_frame_size): Use microblaze_break_function_p.
15848         Add the test of break_handler.
15849         (microblaze_function_prologue) : Add the test of variable
15850         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
15851         (microblaze_function_epilogue) : Add the test of break_handler.
15852         (microblaze_globalize_label) : Add the test of break_handler.
15853         Check the name by BREAK_HANDLER_NAME.
15855         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15857         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15858         microblaze_is_break_handler test.
15859         (call_internal1,call_value_intern): Use microblaze_break_function_p.
15860         Use SYMBOL_REF_DECL.
15862         * config/microblaze/microblaze-protos.h
15863         (microblaze_break_function_p,microblaze_is_break_handler):
15864         New Declaration.
15866         * doc/extend.texi (MicroBlaze break_handler Functions): Document
15867         new MicroBlaze break_handler functions.
15869 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
15871         * doc/extend.texi (Size of an asm): Move node text according
15872         to its @menu entry position.
15874 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
15876         PR tree-optimization/61140
15877         PR tree-optimization/61150
15878         PR tree-optimization/61197
15879         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15881 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
15883         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
15885 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
15887         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15888         __SIZEOF_INT128__ is defined.
15890 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
15892         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15893         (rs6000_delegitimize_address): Use it.
15895 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
15897         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15898         inplace argument.  Store the new address in the original MEM when true.
15899         * emit-rtl.c (change_address_1): Likewise.
15900         (adjust_address_1, adjust_automodify_address_1, offset_address):
15901         Update accordingly.
15902         * rtl.h (plus_constant): Add an inplace argument.
15903         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
15904         when true.  Avoid generating (plus X (const_int 0)).
15905         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15906         in-place.  Pass true to plus_constant.
15907         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15909 2014-05-16  Dehao Chen  <dehao@google.com>
15911         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15913 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
15915         PR target/54089
15916         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15917         patterns.
15918         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15920 2014-05-16  Dehao Chen  <dehao@google.com>
15922         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15923         optimize_function_for_size_p.
15924         * regs.h (REG_FREQ_FROM_BB): Likewise.
15926 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
15928         PR target/51244
15929         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15930         negt_reg_operand cases.
15931         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15932         predicate.
15933         * config/sh/predicates.md (cbranch_treg_value): Simplify.
15935 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
15937         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15938         target variants.
15940 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
15942         Revert:
15943         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
15945         * tree-cfg.c (dump_function_to_file): Dump the return type of
15946         functions, in a line to itself before the function body, mimicking
15947         the layout of a C function.
15949 2014-05-16  Dehao Chen  <dehao@google.com>
15951         * cfghooks.c (make_forwarder_block): Use direct computation to
15952         get fall-through edge's count and frequency.
15954 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
15956         * config/arc/arc.c (arc_init): Fix typo in error message.
15957         * config/i386/i386.c (ix86_expand_builtin): Likewise.
15958         (split_stack_prologue_scratch_regno): Likewise.
15959         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15960         word from error message.
15962 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15964         * ira-costs.c: Fix typo in comment.
15966 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
15968         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15970 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
15972         * varpool.c (dump_varpool_node): Dump write-only flag.
15973         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15974         write-only flag.
15975         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15976         write-only variables.
15977         * ipa.c (process_references): New function.
15978         (set_readonly_bit): New function.
15979         (set_writeonly_bit): New function.
15980         (clear_addressable_bit): New function.
15981         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15982         fix handling of aliases.
15983         * cgraph.h (struct varpool_node): Add writeonly flag.
15985 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
15987         PR rtl-optimization/60969
15988         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15989         Calculate costs for this case.
15991 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
15993         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15994         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15996 2014-05-16  Richard Biener  <rguenther@suse.de>
15998         PR tree-optimization/61194
15999         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16000         bool patterns ending in a COND_EXPR.
16002 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16004         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16006 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16008         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16009         where we were unable to cost an RTX.
16011 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16013         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16014         HIGH, LO_SUM.
16016 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16017             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16019         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16021 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16022             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16024         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16025         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16027 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16028             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16030         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16031         operators.
16033 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16034             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16036         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16037         DIV/MOD.
16039 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16040             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16042         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16043         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16045 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16046             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16048         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16049         rotates and shifts.
16051 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16052             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16054         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16055         ZERO_EXTEND and SIGN_EXTEND better.
16057 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16058             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16060         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16061         logical operations.
16063 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16064             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16066         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16067         costs when costing loads and stores to memory.
16069 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16070             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
16072         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16073         for SET RTX.
16075 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16077         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16079 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16080             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16082         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16083         to...
16084         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16085         well formed.
16086         (aarch64_rtx_mult_cost): New.
16087         (aarch64_rtx_costs): Use it, refactor as appropriate.
16089 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16090             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16092         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16093         emit instructions, return number of instructions which would
16094         be emitted.
16095         (aarch64_add_constant): Update call to aarch64_build_constant.
16096         (aarch64_output_mi_thunk): Likewise.
16097         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16098         a CONST_DOUBLE.
16100 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16102         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16103         (TARGET_RTX_COSTS): Call it.
16105 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16107         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16108         (cortexa57_vector_cost): Likewise.
16109         (cortexa57_tunings): Use them.
16111 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
16113         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16114         (cpu_addrcost_table): Use it.
16115         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16116         (aarch64_address_cost): Rewrite using aarch64_classify_address,
16117         move it.
16119 2014-05-16  Richard Biener  <rguenther@suse.de>
16121         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16122         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16123         (visit_phi): Ignore edges marked as not executable.
16124         (class cond_dom_walker): New.
16125         (cond_dom_walker::before_dom_children): Value-number
16126         control statements and mark successor edges as not
16127         executable if possible.
16128         (run_scc_vn): First walk all control statements in
16129         dominator order, marking edges as not executable.
16130         * tree-inline.c (copy_edges_for_bb): Be not confused
16131         about random edge flags.
16133 2014-05-16  Richard Biener  <rguenther@suse.de>
16135         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16137 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
16139         PR target/61193
16140         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16141         (__TM_simple_begin): Use it.
16142         (__TM_begin): Likewise.
16144 2014-05-15  Martin Jambor  <mjambor@suse.cz>
16146         PR ipa/61085
16147         * ipa-prop.c (update_indirect_edges_after_inlining): Check
16148         type_preserved flag when the indirect edge is polymorphic.
16150 2014-05-15  Martin Jambor  <mjambor@suse.cz>
16152         PR tree-optimization/61090
16153         * tree-sra.c (sra_modify_expr): Pass the current gsi to
16154         build_ref_for_model.
16156 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16158         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16159         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16161 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
16163         PR tree-optimization/61158
16164         * fold-const.c (fold_binary_loc): If X is zero-extended and
16165         shiftc >= prec, make sure zerobits is all ones instead of
16166         invoking undefined behavior.
16168 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16170         * regcprop.h: New file.
16171         * regcprop.c (skip_debug_insn_p): New decl.
16172         (replace_oldest_value_reg): Check skip_debug_insn_p.
16173         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16174         * shrink-wrap.c: Include regcprop.h.
16175         (prepare_shrink_wrap): Call
16176         copyprop_hardreg_forward_bb_without_debug_insn.
16178 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16180         * shrink-wrap.h: Update comment.
16181         * shrink-wrap.c: Update comment.
16182         (next_block_for_reg): Rename to live_edge_for_reg.
16183         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16184         (move_insn_for_shrink_wrap): Split live_edge.
16185         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16187 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
16189         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16190         Delete.
16191         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16192         * config/sparc/sparc.md (fptype_ut699): New attribute.
16193         (in_branch_delay): Return false if -mfix-ut699 is specified and
16194         fptype_ut699 is set to single.
16195         (truncdfsf2): Add fptype_ut699 attribute.
16196         (fix_truncdfsi2): Likewise.
16197         (floatsisf2): Change fptype attribute.
16198         (fix_truncsfsi2): Likewise.
16199         (negtf2_notv9): Delete.
16200         (negtf2_v9): Likewise.
16201         (negtf2_hq): New instruction.
16202         (negtf2): New instruction and splitter.
16203         (negdf2_notv9): Rewrite.
16204         (abstf2_notv9): Delete.
16205         (abstf2_hq_v9): Likewise.
16206         (abstf2_v9): Likewise.
16207         (abstf2_hq): New instruction.
16208         (abstf2): New instruction and splitter.
16209         (absdf2_notv9): Rewrite.
16211 2014-05-14  Cary Coutant  <ccoutant@google.com>
16213         PR debug/61013
16214         * opts.c (common_handle_option): Don't special-case "-g".
16215         (set_debug_level): Default to at least level 2 with "-g".
16217 2014-05-14  DJ Delorie  <dj@redhat.com>
16219         * config/msp430/msp430.c (msp430_builtin): Add
16220         MSP430_BUILTIN_DELAY_CYCLES.
16221         (msp430_init_builtins): Register void __delay_cycles(long long).
16222         (msp430_builtin_decl): Add it.
16223         (cg_magic_constant): New.
16224         (msp430_expand_delay_cycles): New.
16225         (msp430_expand_builtin): Call it.
16226         (msp430_print_operand_raw): Change integer printing from "int" to
16227         HOST_WIDE_INT.
16228         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16229         (delay_cycles_start): New.
16230         (delay_cycles_end): New.
16231         (delay_cycles_32): New.
16232         (delay_cycles_32x): New.
16233         (delay_cycles_16): New.
16234         (delay_cycles_16x): New.
16235         (delay_cycles_2): New.
16236         (delay_cycles_1): New.
16237         * doc/extend.texi: Document __delay_cycles().
16239 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
16241         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16242         length attribute computation.
16244 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
16246         PR debug/61188
16247         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16249 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
16251         PR target/61084
16252         * config/sparc/sparc.md: Fix types of low and high in DI constant
16253         splitter.  Use gen_int_mode in some other splitters.
16255 2014-05-14  Martin Jambor  <mjambor@suse.cz>
16257         PR ipa/60897
16258         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16260 2014-05-14  James Norris  <jnorris@codesourcery.com>
16262         * omp-low.c (expand_parallel_call): Remove shadow variable.
16263         (expand_omp_taskreg): Likewise.
16265 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
16267         * common/config/i386/i386-common.c
16268         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16269         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16270         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16271         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16272         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16273         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16274         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16275         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16276         xsavecintrin.h, xsavesintrin.h.
16277         (x86_64-*-*): Ditto.
16278         * config/i386/clflushoptintrin.h: New.
16279         * config/i386/xsavecintrin.h: Ditto.
16280         * config/i386/xsavesintrin.h: Ditto.
16281         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16282         (bit_XSAVES): Ditto.
16283         (bit_XSAVES): Ditto.
16284         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16285         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16286         -mno-clflushopt.
16287         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16288         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16289         OPTION_MASK_ISA_XSAVES.
16290         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16291         -mxsavec, -mxsaves.
16292         (PTA_CLFLUSHOPT) Define.
16293         (PTA_XSAVEC): Ditto.
16294         (PTA_XSAVES): Ditto.
16295         (ix86_option_override_internal): Handle new options.
16296         (ix86_valid_target_attribute_inner_p): Ditto.
16297         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16298         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16299         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16300         (bdesc_special_args): Add __builtin_ia32_xsaves,
16301         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16302         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16303         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16304         (ix86_expand_builtin): Handle new builtins.
16305         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16306         (TARGET_CLFLUSHOPT_P): Ditto.
16307         (TARGET_XSAVEC): Ditto.
16308         (TARGET_XSAVEC_P): Ditto.
16309         (TARGET_XSAVES): Ditto.
16310         (TARGET_XSAVES_P): Ditto.
16311         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16312         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16313         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16314         (ANY_XRSTOR): New.
16315         (ANY_XRSTOR64): Ditto.
16316         (xrstor): Ditto.
16317         (xrstor): Change into <xrstor>.
16318         (xrstor_rex64): Change into <xrstor>_rex64.
16319         (xrstor64): Change into <xrstor>64
16320         (clflushopt): New.
16321         * config/i386/i386.opt (mclflushopt): New.
16322         (mxsavec): Ditto.
16323         (mxsaves): Ditto.
16324         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16325         xsavecintrin.h.
16326         * doc/invoke.texi: Document new options.
16328 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
16330         PR rtl-optimization/60866
16331         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16332         Default it to -1.  Pass it down to init_simplejump_data.
16333         (init_simplejump_data): New parameter old_seqno.  Pass it down
16334         to get_seqno_for_a_jump.
16335         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
16336         initializing new jump seqno as a last resort.  Add comment.
16337         (sel_redirect_edge_and_branch): Save old seqno of the conditional
16338         jump and pass it down to sel_init_new_insn.
16339         (sel_redirect_edge_and_branch_force): Likewise.
16341 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
16343         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16344         shifted values to avoid build warning.
16346 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
16348         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16349         * cfgrtl.c (rtl_merge_blocks): Fix comment.
16350         (cfg_layout_merge_blocks): Likewise.
16351         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16353 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
16355         PR rtl-optimization/60901
16356         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16357         bb predecessor belongs to the same scheduling region.  Adjust comment.
16359 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
16361         * doc/sourcebuild.texi: (dfp_hw): Document.
16362         (p8vector_hw): Likewise.
16363         (powerpc_eabi_ok): Likewise.
16364         (powerpc_elfv2): Likewise.
16365         (powerpc_htm_ok): Likewise.
16366         (ppc_recip_hw): Likewise.
16367         (vsx_hw): Likewise.
16369 2014-05-13  Cary Coutant  <ccoutant@google.com>
16371         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16373 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
16375         * gengtype-parse.c (require3): Eliminate in favor of...
16376         (require4): New.
16377         (require_template_declaration): Update to support optional single *
16378         on a type.
16380         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16381         (create_user_defined_type): Handle a single level of explicit
16382         pointerness within template arguments.
16383         (struct write_types_data): Add field "kind".
16384         (filter_type_name): Handle "*" character.
16385         (write_user_func_for_structure_ptr): Require a write_types_data
16386         rather than just a prefix string, so that we can look up the kind
16387         of the wtd and use it as an index into wrote_user_func_for_ptr,
16388         ensuring that such functions are written at most once.  Support
16389         subclasses by invoking the marking function of the ultimate base class.
16390         (write_user_func_for_structure_body): Require a write_types_data
16391         rather than just a prefix string, so that we can pass this to
16392         write_user_func_for_structure_ptr.
16393         (write_func_for_structure): Likewise.
16394         (ggc_wtd): Add initializer of new "kind" field.
16395         (pch_wtd): Likewise.
16397         * gengtype.h (enum write_types_kinds): New.
16398         (struct type): Add field wrote_user_func_for_ptr to the "s"
16399         union member.
16401 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
16403         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16404         instead of const_binop.
16405         (fold_binary_loc): Likewise.
16407 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
16409         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16410         calculation to match get_ref_base_and_extent.
16412 2014-05-13  Catherine Moore  <clm@codesourcery.com>
16413             Sandra Loosemore  <sandra@codesourcery.com>
16415         * configure.ac: Fix assembly for explicit JALR relocation check.
16416         * configure: Regenerate.
16418 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16420         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16421         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16422         Remove associated type declarations and initialisations.
16423         (arm_expand_neon_builtin): Likewise.
16424         (neon_emit_pair_result_insn): Delete.
16425         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16426         * config/arm/neon.md (neon_vtrn<mode>): Delete.
16427         (neon_vzip<mode>): Likewise.
16428         (neon_vuzp<mode>): Likewise.
16430 2014-05-13  Richard Biener  <rguenther@suse.de>
16432         PR ipa/60973
16433         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16434         it needs revisiting whether the call still may be tail-called.
16436 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16438         * rtl.def (SYMBOL_REF): Remove middle "0" field.
16439         * rtl.h (block_symbol): Reduce number of fields to 2.
16440         (rtx_def): Add u2.symbol_ref_flags.
16441         (SYMBOL_REF_FLAGS): Use it.
16442         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16443         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16444         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16445         Lower index of SYMBOL_REF_DATA.
16446         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16447         Print SYMBOL_REF_FLAGS at the same time.
16448         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16450 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16452         * rtl.def (VAR_LOCATION): Remove "i" field.
16453         * rtl.h (rtx_def): Add u2.var_location_status.
16454         (PAT_VAR_LOCATION_STATUS): Use it.
16455         (gen_rtx_VAR_LOCATION): Declare.
16456         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16457         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16458         * var-tracking.c (emit_note_insn_var_location): Remove casts.
16460 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16462         * rtl.def (scratch): Fix outdated comment and remove "0" field.
16463         * gengtype.c (adjust_field_rtx_def): Update accordingly.
16465 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16467         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16468         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16469         * rtl.h (rtx_def): Add insn_uid to u2 field.
16470         (RTX_FLAG_CHECK8): Delete in favor of...
16471         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16472         (INSN_DELETED_P): Update accordingly.
16473         (INSN_UID): Use u2.insn_uid.
16474         (INSN_CHAIN_CODE_P): Define.
16475         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16476         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16477         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16478         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16479         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16480         indices accordingly.
16481         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16482         Update indices for insn-chain rtxes.
16483         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16484         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16485         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16486         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16487         * combine.c (try_combine): Likewise.
16488         * ira.c (setup_prohibited_mode_move_regs): Likewise.
16490 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16492         * rtl.def (REG): Remove middle field.
16493         * rtl.h (rtx_def): Add orignal_regno to u2.
16494         (ORIGINAL_REGNO): Use it instead of field 1.
16495         (REG_ATTRS): Lower field index accordingly.
16496         * gengtype.c (adjust_field_rtx_def): Remove handling of
16497         ORIGINAL_REGNO.  Move REG_ATTRS index down.
16498         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16499         code that prints the REGNO.
16501 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16503         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16504         GENERATOR_FILE.
16506 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16508         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16510 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
16512         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16513         (alloc_iv): Lower base expressions containing ADDR_EXPR.
16515 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
16517         * config/aarch64/aarch64-protos.h
16518         (aarch64_hard_regno_caller_save_mode): New prototype.
16519         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16520         New function.
16521         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16523 2014-05-13  Christian Bruel  <christian.bruel@st.com>
16525         * target.def (mode_switching): New hook vector.
16526         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16527         (mode_exit, modepriority_to_mode): Likewise.
16528         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16529         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16530         * target.h: Include tm.h and hard-reg-set.h.
16531         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16532         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16533         * doc/tm.texi Regenerate.
16534         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16535         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16536         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16537         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16538         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16539         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16540         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16541         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16542         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16543         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16544         (ix86_emit_mode_set): Hookify.
16545         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16546         Delete.
16547         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16548         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16549         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16550         (epiphany_mode_priority_to_mode): Remove declaration.
16551         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16552         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16553         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16554         Likewise.
16555         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
16556         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16557         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16559 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
16561         PR target/61060
16562         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16563         is const0_rtx, return immediately.  Don't test count == 0 when
16564         it is always true.
16566 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16568         * Makefile.in: add shrink-wrap.o.
16569         * config/i386/i386.c: include "shrink-wrap.h"
16570         * function.c: Likewise.
16571         (requires_stack_frame_p, next_block_for_reg,
16572         move_insn_for_shrink_wrap, prepare_shrink_wrap,
16573         dup_block_and_redirect): Move to shrink-wrap.c
16574         (thread_prologue_and_epilogue_insns): Extract three code segments
16575         as functions in shrink-wrap.c
16576         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16577         shrink-wrap.h
16578         * shrink-wrap.c: New file.
16579         * shrink-wrap.h: New file.
16581 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
16583         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
16584         reference to Solaris.
16586 2014-05-12  Mike Stump  <mikestump@comcast.net>
16588         PR other/31778
16589         * genattrtab.c (filename): Add.
16590         (convert_set_attr_alternative): Improve error message.
16591         (check_defs): Restore read_md_filename for error messages.
16592         (gen_insn): Save filename.
16594 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
16596         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16597         -fno-local-ivars and -fivar-visibility.
16598         * c-family/c.opt: Make -Wshadow also implicitly enable
16599         -Wshadow-ivar.
16601 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
16603         * doc/tm.texi: Remove reference to deleted macro.
16604         * doc/tm.texi.in: Likewise.
16606 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16608         PR target/60991
16609         * config/avr/avr.c (avr_out_store_psi): Use correct constant
16610         to restore Y.
16612 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
16614         PR libgcc/61152
16615         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16616         * config/arm/aout.h (License): Same.
16617         * config/arm/bpabi.h (License): Same.
16618         * config/arm/elf.h (License): Same.
16619         * config/arm/linux-elf.h (License): Same.
16620         * config/arm/linux-gas.h (License): Same.
16621         * config/arm/netbsd-elf.h (License): Same.
16622         * config/arm/uclinux-eabi.h (License): Same.
16623         * config/arm/uclinux-elf.h (License): Same.
16624         * config/arm/vxworks.h (License): Same.
16626 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
16628         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16629         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16630         number of operands to 3.
16631         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16632         * tree-nested.c (convert_nonlocal_omp_clauses,
16633         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16634         * gimplify.c (gimplify_scan_omp_clauses): Handle
16635         OMP_CLAUSE_LINEAR_STMT.
16636         * omp-low.c (lower_rec_input_clauses): Fix typo.
16637         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16638         cast between Fortran boolean_type_node and C _Bool if
16639         needed.
16641 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
16643         PR tree-optimization/61136
16644         * wide-int.h (multiple_of_p): Define a version that doesn't return
16645         the quotient.
16646         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16647         integer_zerop/const_binop pair.
16648         (multiple_of_p): Likewise, converting both operands to widest_int
16649         precision.
16651 2014-05-09  Teresa Johnson  <tejohnson@google.com>
16653         * cgraphunit.c (analyze_functions): Use correct dump file.
16655 2014-05-09  Florian Weimer  <fweimer@redhat.com>
16657         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16658         expand_used_vars.
16659         (stack_protect_return_slot_p): New function.
16660         (expand_used_vars): Call stack_protect_decl_p and
16661         stack_protect_return_slot_p for -fstack-protector-strong.
16663 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
16664         Andrew Haley <aph@redhat.com>
16665         Richard Sandiford <rdsandiford@googlemail.com>
16667         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16668         pages.
16670 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
16672         PR middle-end/61111
16673         * fold-const.c (fold_binary_loc): Changed width of mask.
16675 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
16677         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16678         unsigned int initializers for regno_in, regno_out.
16680 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
16682         PR target/61055
16683         * config/avr/avr.md (cc): Add new attribute set_vzn.
16684         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16685         Set cc insn attribute to set_vzn instead of set_zn for alternatives
16686         with INC, DEC or NEG.
16687         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16688         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16689         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16691 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16693         Revert:
16694         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16696         * wide-int.cc (UTItype): Define.
16697         (UDWtype): Define for appropriate W_TYPE_SIZE.
16699 2014-05-09  Richard Biener  <rguenther@suse.de>
16701         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16702         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16703         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16704         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16705         ssa_propagate): Adjust.
16707 2014-05-08  Jeff Law  <law@redhat.com>
16709         PR tree-optimization/61009
16710         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16711         tri-state rather than a boolean.  When a block is too big to
16712         thread through, inform caller via negative return value.
16713         (thread_across_edge): If a block was too big for normal threading,
16714         then it's too big for a joiner too, so remove temporary equivalences
16715         and return immediately.
16717 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16718             Matthias Klose  <doko@ubuntu.com>
16720         PR driver/61106
16721         * optc-gen.awk: Fix option handling for -Wunused-parameter.
16723 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
16725         PR target/59952
16726         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16728 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
16730         PR target/61092
16731         * config/alpha/alpha.c: Include gimple-iterator.h.
16732         (alpha_gimple_fold_builtin): New function.  Move
16733         ALPHA_BUILTIN_UMULH folding from ...
16734         (alpha_fold_builtin): ... here.
16735         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16737 2014-05-08  Wei Mi  <wmi@google.com>
16739         PR target/58066
16740         * config/i386/i386.c (ix86_compute_frame_layout): Update
16741         preferred_stack_boundary for call, expanded from tls descriptor.
16742         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16743         to depend on SP register.
16744         (*tls_local_dynamic_base_32_gnu): Ditto.
16745         (*tls_local_dynamic_32_once): Ditto.
16746         (tls_global_dynamic_64_<mode>): Set
16747         ix86_tls_descriptor_calls_expanded_in_cfun.
16748         (tls_local_dynamic_base_64_<mode>): Ditto.
16749         (tls_global_dynamic_32): Set
16750         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16751         to depend on SP register.
16752         (tls_local_dynamic_base_32): Ditto.
16754 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16756         * config/arm/arm_neon.h: Update comment.
16757         * config/arm/neon-docgen.ml: Delete.
16758         * config/arm/neon-gen.ml: Delete.
16759         * doc/arm-neon-intrinsics.texi: Update comment.
16761 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16763         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16764         and v4sf versions.
16765         (vand, vorr, veor, vorn, vbic): Remove.
16766         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16767         iterator.
16768         (neon_vsub_unspec): Likewise.
16769         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16771 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16773         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16774         (vadd_s16): Likewise.
16775         (vadd_s32): Likewise.
16776         (vadd_f32): Likewise.
16777         (vadd_u8): Likewise.
16778         (vadd_u16): Likewise.
16779         (vadd_u32): Likewise.
16780         (vadd_s64): Likewise.
16781         (vadd_u64): Likewise.
16782         (vaddq_s8): Likewise.
16783         (vaddq_s16): Likewise.
16784         (vaddq_s32): Likewise.
16785         (vaddq_s64): Likewise.
16786         (vaddq_f32): Likewise.
16787         (vaddq_u8): Likewise.
16788         (vaddq_u16): Likewise.
16789         (vaddq_u32): Likewise.
16790         (vaddq_u64): Likewise.
16791         (vmul_s8): Likewise.
16792         (vmul_s16): Likewise.
16793         (vmul_s32): Likewise.
16794         (vmul_f32): Likewise.
16795         (vmul_u8): Likewise.
16796         (vmul_u16): Likewise.
16797         (vmul_u32): Likewise.
16798         (vmul_p8): Likewise.
16799         (vmulq_s8): Likewise.
16800         (vmulq_s16): Likewise.
16801         (vmulq_s32): Likewise.
16802         (vmulq_f32): Likewise.
16803         (vmulq_u8): Likewise.
16804         (vmulq_u16): Likewise.
16805         (vmulq_u32): Likewise.
16806         (vsub_s8): Likewise.
16807         (vsub_s16): Likewise.
16808         (vsub_s32): Likewise.
16809         (vsub_f32): Likewise.
16810         (vsub_u8): Likewise.
16811         (vsub_u16): Likewise.
16812         (vsub_u32): Likewise.
16813         (vsub_s64): Likewise.
16814         (vsub_u64): Likewise.
16815         (vsubq_s8): Likewise.
16816         (vsubq_s16): Likewise.
16817         (vsubq_s32): Likewise.
16818         (vsubq_s64): Likewise.
16819         (vsubq_f32): Likewise.
16820         (vsubq_u8): Likewise.
16821         (vsubq_u16): Likewise.
16822         (vsubq_u32): Likewise.
16823         (vsubq_u64): Likewise.
16824         (vand_s8): Likewise.
16825         (vand_s16): Likewise.
16826         (vand_s32): Likewise.
16827         (vand_u8): Likewise.
16828         (vand_u16): Likewise.
16829         (vand_u32): Likewise.
16830         (vand_s64): Likewise.
16831         (vand_u64): Likewise.
16832         (vandq_s8): Likewise.
16833         (vandq_s16): Likewise.
16834         (vandq_s32): Likewise.
16835         (vandq_s64): Likewise.
16836         (vandq_u8): Likewise.
16837         (vandq_u16): Likewise.
16838         (vandq_u32): Likewise.
16839         (vandq_u64): Likewise.
16840         (vorr_s8): Likewise.
16841         (vorr_s16): Likewise.
16842         (vorr_s32): Likewise.
16843         (vorr_u8): Likewise.
16844         (vorr_u16): Likewise.
16845         (vorr_u32): Likewise.
16846         (vorr_s64): Likewise.
16847         (vorr_u64): Likewise.
16848         (vorrq_s8): Likewise.
16849         (vorrq_s16): Likewise.
16850         (vorrq_s32): Likewise.
16851         (vorrq_s64): Likewise.
16852         (vorrq_u8): Likewise.
16853         (vorrq_u16): Likewise.
16854         (vorrq_u32): Likewise.
16855         (vorrq_u64): Likewise.
16856         (veor_s8): Likewise.
16857         (veor_s16): Likewise.
16858         (veor_s32): Likewise.
16859         (veor_u8): Likewise.
16860         (veor_u16): Likewise.
16861         (veor_u32): Likewise.
16862         (veor_s64): Likewise.
16863         (veor_u64): Likewise.
16864         (veorq_s8): Likewise.
16865         (veorq_s16): Likewise.
16866         (veorq_s32): Likewise.
16867         (veorq_s64): Likewise.
16868         (veorq_u8): Likewise.
16869         (veorq_u16): Likewise.
16870         (veorq_u32): Likewise.
16871         (veorq_u64): Likewise.
16872         (vbic_s8): Likewise.
16873         (vbic_s16): Likewise.
16874         (vbic_s32): Likewise.
16875         (vbic_u8): Likewise.
16876         (vbic_u16): Likewise.
16877         (vbic_u32): Likewise.
16878         (vbic_s64): Likewise.
16879         (vbic_u64): Likewise.
16880         (vbicq_s8): Likewise.
16881         (vbicq_s16): Likewise.
16882         (vbicq_s32): Likewise.
16883         (vbicq_s64): Likewise.
16884         (vbicq_u8): Likewise.
16885         (vbicq_u16): Likewise.
16886         (vbicq_u32): Likewise.
16887         (vbicq_u64): Likewise.
16888         (vorn_s8): Likewise.
16889         (vorn_s16): Likewise.
16890         (vorn_s32): Likewise.
16891         (vorn_u8): Likewise.
16892         (vorn_u16): Likewise.
16893         (vorn_u32): Likewise.
16894         (vorn_s64): Likewise.
16895         (vorn_u64): Likewise.
16896         (vornq_s8): Likewise.
16897         (vornq_s16): Likewise.
16898         (vornq_s32): Likewise.
16899         (vornq_s64): Likewise.
16900         (vornq_u8): Likewise.
16901         (vornq_u16): Likewise.
16902         (vornq_u32): Likewise.
16903         (vornq_u64): Likewise.
16905 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16907         * wide-int.cc (UTItype): Define.
16908         (UDWtype): Define for appropriate W_TYPE_SIZE.
16910 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
16912         PR tree-optimization/59100
16913         * tree-ssa-phiopt.c: Include tree-inline.h.
16914         (neutral_element_p, absorbing_element_p): New functions.
16915         (value_replacement): Handle conditional binary operations with a
16916         neutral or absorbing element.
16918 2014-05-08  Richard Biener  <rguenther@suse.de>
16920         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16921         folding the expression.
16922         (valueize_expr): Remove.
16923         (visit_reference_op_load): Do not valueize the result of
16924         vn_get_expr_for.
16925         (simplify_binary_expression): Likewise.
16926         (simplify_unary_expression): Likewise.
16928 2014-05-08  Richard Biener  <rguenther@suse.de>
16930         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16931         looking at TYPE_ARG_TYPES.
16933 2014-05-08  Richard Biener  <rguenther@suse.de>
16935         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16936         pointer propagation special-case.
16938 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
16940         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16941         core part of address expressions.
16943 2014-05-08  Alan Modra  <amodra@gmail.com>
16945         PR target/60737
16946         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16947         loads and stores when -mno-strict-align at any alignment.
16948         (expand_block_clear): Similarly.  Also correct calculation of
16949         instruction count.
16951 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16953         PR middle-end/39246
16954         * tree-complex.c (expand_complex_move): Keep line info when expanding
16955         complex move.
16956         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16957         of complex expression. Use new argument to display correct location
16958         for values coming from phi statement.
16959         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16960         (warn_uninitialized_phi): Pass location of phi argument to
16961         warn_uninit.
16962         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16963         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16965 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
16967         * config/rs6000/predicates.md (indexed_address_mem): New.
16968         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16969         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16970         fpstore_ux, fpstore_u.
16971         (sign_extend, indexed, update): New.
16972         (cell_micro): Adjust.
16973         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16974         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16975         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16976         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16977         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16978         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16979         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16980         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16981         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16982         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16983         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16984         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16985         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16986         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16987         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16989         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16990         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16991         *vsx_extract_<mode>_store): Adjust.
16992         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16993         is_cracked_insn, insn_must_be_first_in_group,
16994         insn_must_be_last_in_group): Adjust.
16996         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16997         Adjust.
16998         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16999         ppc440-fpstore): Adjust.
17000         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17001         ppc476-fpstore): Adjust.
17002         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17003         ppc601-fpstore): Adjust.
17004         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17005         Adjust.
17006         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17007         Adjust.
17008         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17009         ppc7450-fpstore): Adjust.
17010         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17011         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17012         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17013         Adjust.
17014         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17015         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17016         cell-fpstore, cell-fpstore-update): Adjust.
17017         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17018         ppce300c3_store, ppce300c3_fpstore): Adjust.
17019         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17020         e500mc_fpstore): Adjust.
17021         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17022         e500mc64_store, e500mc64_fpstore): Adjust.
17023         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17024         e5500_fpstore): Adjust.
17025         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17026         e6500_fpstore): Adjust.
17027         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17028         Adjust.
17029         * config/rs6000/power4.md (power4-load, power4-load-ext,
17030         power4-load-ext-update, power4-load-ext-update-indexed,
17031         power4-load-update-indexed, power4-load-update, power4-fpload,
17032         power4-fpload-update, power4-store, power4-store-update,
17033         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17034         Adjust.
17035         * config/rs6000/power5.md (power5-load, power5-load-ext,
17036         power5-load-ext-update, power5-load-ext-update-indexed,
17037         power5-load-update-indexed, power5-load-update, power5-fpload,
17038         power5-fpload-update, power5-store, power5-store-update,
17039         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17040         Adjust.
17041         * config/rs6000/power6.md (power6-load, power6-load-ext,
17042         power6-load-update, power6-load-update-indexed,
17043         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17044         power6-fpload-update, power6-store, power6-store-update,
17045         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17046         Adjust.
17047         * config/rs6000/power7.md (power7-load, power7-load-ext,
17048         power7-load-update, power7-load-update-indexed,
17049         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17050         power7-fpload-update, power7-store, power7-store-update,
17051         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17052         Adjust.
17053         * config/rs6000/power8.md (power8-load, power8-load-update,
17054         power8-load-ext, power8-load-ext-update, power8-fpload,
17055         power8-fpload-update, power8-store, power8-store-update-indexed,
17056         power8-fpstore, power8-fpstore-update): Adjust.
17057         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17058         Adjust.
17059         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17060         titan_lsu_store, titan_lsu_fpstore): Adjust.
17061         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17063 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
17065         PR target/60884
17066         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17067         unrolled byte insns.  Emit address increments after move insns.
17069 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
17071         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17072         const_gimple, rather than a gimple.
17073         (gimple_call_builtin_p): Likewise, for the three variants.
17075         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17076         (gimple_call_builtin_p): Likewise, for the three variants.
17078 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
17080         PR tree-optimization/61095
17081         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17083 2014-05-07  Richard Biener  <rguenther@suse.de>
17085         PR tree-optimization/61034
17086         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17087         (maybe_skip_until): Use translate to take into account
17088         lattices when trying to do disambiguations.
17089         (get_continuation_for_phi_1): Likewise.
17090         (get_continuation_for_phi): Adjust for added translate arguments.
17091         (walk_non_aliased_vuses): Likewise.
17092         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17093         (walk_non_aliased_vuses): Likewise.
17094         (call_may_clobber_ref_p_1): Declare.
17095         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17096         calls.  Stop early if we are only supposed to disambiguate.
17097         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17099 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
17101         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17102         Emit an error when the function has arguments.
17104 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
17106         * cfgloop.h (unswitch_loops): Remove.
17107         * doc/passes.texi: Remove references to loop-unswitch.c
17108         * timevar.def (TV_LOOP_UNSWITCH): Remove.
17110 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
17112         * tree-vect-data-refs.c (vect_grouped_load_supported): New
17113         check for loads group of length 3.
17114         (vect_permute_load_chain): New permutations for loads group of
17115         length 3.
17116         * tree-vect-stmts.c (vect_model_load_cost): Change cost
17117         of vec_perm_shuffle for the new permutations.
17119 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
17121         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17122         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17123         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17124         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17125         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17126         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17127         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17128         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17130 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
17132         * loop-unswitch.c: Delete.
17134 2014-05-07  Richard Biener  <rguenther@suse.de>
17136         * config.gcc: Always set need_64bit_hwint to yes.
17138 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
17140         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17141         of using optimize_size.
17143 2014-05-06  Mike Stump  <mikestump@comcast.net>
17145         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17147 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
17149         * config/i386/sse.md (*mov<mode>_internal)
17150         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17151         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17152         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17153         (*<code><mode>3, *andnot<mode>3<mask_name>)
17154         (<mask_codefor><code><mode>3<mask_name>): Only consider
17155         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17157 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
17159         Revert:
17160         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
17162         * lra-constraints.c (valid_address_p): Move earlier in file.
17163         Add a constraint argument to the address_info version.
17164         (satisfies_memory_constraint_p): New function.
17165         (satisfies_address_constraint_p): Likewise.
17166         (process_alt_operands, curr_insn_transform): Use them.
17167         (process_address): Pass the constraint to valid_address_p when
17168         checking address operands.
17170 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
17172         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17173         to their respective blocks.  Fix inadvertent use of "node".
17175 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
17177         * emit-rtl.c (init_derived_machine_modes): New functionm, split
17178         out from...
17179         (init_emit_once): ...here.
17180         * rtl.h (init_derived_machine_modes): Declare.
17181         * toplev.c (do_compile): Call it even if no_backend.
17183 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
17184             Mike Stump  <mikestump@comcast.net>
17185             Richard Sandiford  <rdsandiford@googlemail.com>
17186             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17188         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17189         (rtx_equal_for_memref_p): Update comment.
17190         (adjust_offset_for_component_ref): Use wide-int interfaces.
17191         * builtins.c (get_object_alignment_2): Likewise.
17192         (c_readstr): Likewise.
17193         (target_char_cast): Add comment.
17194         (determine_block_size): Use wide-int interfaces.
17195         (expand_builtin_signbit): Likewise.
17196         (fold_builtin_int_roundingfn): Likewise.
17197         (fold_builtin_bitop): Likewise.
17198         (fold_builtin_bswap): Likewise.
17199         (fold_builtin_logarithm): Use signop.
17200         (fold_builtin_pow): Likewise.
17201         (fold_builtin_memory_op): Use wide-int interfaces.
17202         (fold_builtin_object_size): Likewise.
17203         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17204         nb_iterations_estimate.
17205         (record_niter_bound): Use wide-int interfaces.
17206         (get_estimated_loop_iterations_int): Likewise.
17207         (get_estimated_loop_iterations): Likewise.
17208         (get_max_loop_iterations): Likewise.
17209         * cfgloop.h: Include wide-int.h.
17210         (struct nb_iter_bound): Change bound to widest_int.
17211         (struct loop): Change nb_iterations_upper_bound and
17212         nb_iterations_estimate to widest_int.
17213         (record_niter_bound): Switch to use widest_int.
17214         (get_estimated_loop_iterations): Likewise.
17215         (get_max_loop_iterations): Likewise.
17216         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17217         update for wide-int.
17218         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17219         * combine.c (try_combine): Likewise.
17220         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17221         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17222         interfaces.
17223         (aarch64_float_const_representable_p): Likewise.
17224         * config/arc/arc.c: Include wide-int.h.
17225         (arc_can_use_doloop_p): Use wide-int interfaces.
17226         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17227         (vfp3_const_double_index): Likewise.
17228         * config/avr/avr.c (avr_out_round): Likewise.
17229         (avr_fold_builtin): Likewise.
17230         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17231         (bfin_can_use_doloop_p): Likewise.
17232         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17233         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17234         * config/i386/i386.c: Include wide-int.h.
17235         (ix86_data_alignment): Use wide-int interfaces.
17236         (ix86_local_alignment): Likewise.
17237         (ix86_emit_swsqrtsf): Update real_from_integer.
17238         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17239         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17240         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17241         (zero_constant): Likewise.
17242         (input_operand): Likewise.
17243         (splat_input_operand): Likewise.
17244         (non_logical_cint_operand): Change const_double to const_wide_int.
17245         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17246         (easy_altivec_constant): Remove comment.
17247         (paired_expand_vector_init): Use CONSTANT_P.
17248         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17249         (rs6000_emit_move): Update checks.
17250         (rs6000_aggregate_candidate): Use wide-int interfaces.
17251         (rs6000_expand_ternop_builtin): Likewise.
17252         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17253         (rs6000_assemble_integer): Likewise.
17254         (rs6000_hash_constant): Likewise.
17255         (output_toc): Likewise.
17256         (rs6000_rtx_costs): Likewise.
17257         (rs6000_emit_swrsqrt); Update call to real_from_integer.
17258         * config/rs6000/rs6000-c.c: Include wide-int.h.
17259         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17260         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17261         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17262         Handle CONST_WIDE_INT.
17263         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17264         Use tree_fits_uhwi_p.
17265         * config/sparc/sparc.c: Include wide-int.h.
17266         (sparc_fold_builtin): Use wide-int interfaces.
17267         * config/vax/vax.c: Include wide-int.h.
17268         (vax_float_literal): Use real_from_integer.
17269         * coretypes.h (struct hwivec_def): New.
17270         (hwivec): New.
17271         (const_hwivec): New.
17272         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17273         (equiv_constant): Handle CONST_WIDE_INT.
17274         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17275         (cselib_hash_rtx): Handle CONST_WIDE_INT.
17276         * dbxout.c (stabstr_U): Use wide-int interfaces.
17277         (dbxout_type): Update to use cst_fits_shwi_p.
17278         * defaults.h (LOG2_BITS_PER_UNIT): Define.
17279         (TARGET_SUPPORTS_WIDE_INT): Add default.
17280         * dfp.c: Include wide-int.h.
17281         (decimal_real_to_integer2): Use wide-int interfaces and rename to
17282         decimal_real_to_integer.
17283         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17284         decimal_real_to_integer.
17285         * doc/generic.texi (Constant expressions): Update for wide_int.
17286         * doc/rtl.texi (const_double): Likewise.
17287         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17288         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17289         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17290         (REAL_VALUE_FROM_INT): Remove.
17291         (TARGET_SUPPORTS_WIDE_INT): New.
17292         * doc/tm.texi: Regenerate.
17293         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17294         * double-int.h: Include wide-int.h.
17295         (struct wi::int_traits): New.
17296         * dwarf2out.c (get_full_len): New.
17297         (dw_val_equal_p): Add case dw_val_class_wide_int.
17298         (size_of_loc_descr): Likewise.
17299         (output_loc_operands): Likewise.
17300         (insert_double): Remove.
17301         (insert_wide_int): New.
17302         (add_AT_wide): New.
17303         (print_die): Add case dw_val_class_wide_int.
17304         (attr_checksum): Likewise.
17305         (attr_checksum_ordered): Likewise.
17306         (same_dw_val_p): Likewise.
17307         (size_of_die): Likewise.
17308         (value_format): Likewise.
17309         (output_die): Likewise.
17310         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17311         Use wide-int.
17312         (clz_loc_descriptor): Use wide-int interfaces.
17313         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
17314         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
17315         (round_up_to_align): Use wide-int interfaces.
17316         (field_byte_offset): Likewise.
17317         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
17318         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
17319         CONST_DOUBLE handling.  Use wide-int interfaces.
17320         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
17321         (gen_enumeration_type_die): Use add_AT_wide.
17322         (hash_loc_operands): Add case dw_val_class_wide_int.
17323         (compare_loc_operands): Likewise.
17324         * dwarf2out.h: Include wide-int.h.
17325         (wide_int_ptr): New.
17326         (enum dw_val_class): Add dw_val_class_wide_int.
17327         (struct dw_val_struct): Add val_wide.
17328         * emit-rtl.c (const_wide_int_htab): New.
17329         (const_wide_int_htab_hash): New.
17330         (const_wide_int_htab_eq): New.
17331         (lookup_const_wide_int): New.
17332         (const_double_htab_hash): Use wide-int interfaces.
17333         (const_double_htab_eq): Likewise.
17334         (rtx_to_double_int): Conditionally compile for wide-int.
17335         (immed_double_int_const): Rename to immed_wide_int_const and
17336         update for wide-int.
17337         (immed_double_const): Conditionally compile for wide-int.
17338         (init_emit_once): Use wide-int interfaces.
17339         * explow.c (plus_constant): Likewise.
17340         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
17341         (lshift_value): Use wide-int interfaces.
17342         (expand_mult): Likewise.
17343         (choose_multiplier): Likewise.
17344         (expand_smod_pow2): Likewise.
17345         (make_tree): Likewise.
17346         * expr.c (convert_modes): Consolidate handling of constants.
17347         Use wide-int interfaces.
17348         (emit_group_load_1): Add note.
17349         (store_expr): Update comment.
17350         (get_inner_reference): Use wide-int interfaces.
17351         (expand_constructor): Update comment.
17352         (expand_expr_real_2): Use wide-int interfaces.
17353         (expand_expr_real_1): Likewise.
17354         (reduce_to_bit_field_precision): Likewise.
17355         (const_vector_from_tree): Likewise.
17356         * final.c: Include wide-int-print.h.
17357         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
17358         * fixed-value.c: Include wide-int.h.
17359         (fixed_from_string): Use wide-int interfaces.
17360         (fixed_to_decimal): Likewise.
17361         (fixed_convert_from_real): Likewise.
17362         (real_convert_from_fixed): Likewise.
17363         * fold-const.h (mem_ref_offset): Return an offset_int.
17364         (div_if_zero_remainder): Remove code parameter.
17365         * fold-const.c (div_if_zero_remainder): Remove code parameter.
17366         Use wide-int interfaces.
17367         (may_negate_without_overflow_p): Use wide-int interfaces.
17368         (negate_expr_p): Likewise.
17369         (fold_negate_expr): Likewise.
17370         (int_const_binop_1): Likewise.
17371         (const_binop): Likewise.
17372         (fold_convert_const_int_from_int): Likewise.
17373         (fold_convert_const_int_from_real): Likewise.
17374         (fold_convert_const_int_from_fixed): Likewise.
17375         (fold_convert_const_fixed_from_int): Likewise.
17376         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
17377         (sign_bit_p): Use wide-int interfaces.
17378         (make_range_step): Likewise.
17379         (build_range_check): Likewise.  Pass an integer of the correct type
17380         instead of using integer_one_node.
17381         (range_predecessor): Pass an integer of the correct type instead
17382         of using integer_one_node.
17383         (range_successor): Likewise.
17384         (merge_ranges): Likewise.
17385         (unextend): Use wide-int interfaces.
17386         (extract_muldiv_1): Likewise.
17387         (fold_div_compare): Likewise.
17388         (fold_single_bit_test): Likewise.
17389         (fold_sign_changed_comparison): Likewise.
17390         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17391         (fold_plusminus_mult_expr): Use wide-int interfaces.
17392         (native_encode_int): Likewise.
17393         (native_interpret_int): Likewise.
17394         (fold_unary_loc): Likewise.
17395         (pointer_may_wrap_p): Likewise.
17396         (size_low_cst): Likewise.
17397         (mask_with_tz): Likewise.
17398         (fold_binary_loc): Likewise.
17399         (fold_ternary_loc): Likewise.
17400         (multiple_of_p): Likewise.
17401         (tree_call_nonnegative_warnv_p): Update calls to
17402         tree_int_cst_min_precision and real_from_integer.
17403         (fold_negate_const): Use wide-int interfaces.
17404         (fold_abs_const): Likewise.
17405         (fold_relational_const): Use tree_int_cst_lt.
17406         (round_up_loc): Use wide-int interfaces.
17407         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17408         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17409         * gengtype.c: Remove include of double-int.h.
17410         (do_typedef): Use wide-int interfaces.
17411         (open_base_files): Add wide-int.h.
17412         (main): Add offset_int and widest_int typedefs.
17413         * gengtype-lex.l: Handle "^".
17414         (CXX_KEYWORD): Add "static".
17415         * gengtype-parse.c (require3): New.
17416         (require_template_declaration): Handle constant template arguments
17417         and nested templates.
17418         * gengtype-state.c: Don't include "double-int.h".
17419         * genpreds.c (write_one_predicate_function): Update comment.
17420         (write_tm_constrs_h): Add check for hval and lval use in
17421         CONST_WIDE_INT.
17422         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17423         (add_to_sequence): Likewise.
17424         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17425         and const_double_operand.
17426         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17427         interfaces.
17428         * gimple-fold.c (get_base_constructor): Likewise.
17429         (fold_array_ctor_reference): Likewise.
17430         (fold_nonarray_ctor_reference): Likewise.
17431         (fold_const_aggregate_ref_1): Likewise.
17432         (gimple_val_nonnegative_real_p): Likewise.
17433         (gimple_fold_indirect_ref): Likewise.
17434         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17435         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17436         (struct slsr_cand_d): Change index to be widest_int.
17437         (struct incr_info_d): Change incr to be widest_int.
17438         (alloc_cand_and_find_basis): Use wide-int interfaces.
17439         (slsr_process_phi): Likewise.
17440         (backtrace_base_for_ref): Likewise.  Return a widest_int.
17441         (restructure_reference): Take a widest_int instead of a double_int.
17442         (slsr_process_ref): Use wide-int interfaces.
17443         (create_mul_ssa_cand): Likewise.
17444         (create_mul_imm_cand): Likewise.
17445         (create_add_ssa_cand): Likewise.
17446         (create_add_imm_cand): Take a widest_int instead of a double_int.
17447         (slsr_process_add): Use wide-int interfaces.
17448         (slsr_process_cast): Likewise.
17449         (slsr_process_copy): Likewise.
17450         (dump_candidate): Likewise.
17451         (dump_incr_vec): Likewise.
17452         (replace_ref): Likewise.
17453         (cand_increment): Likewise.  Return a widest_int.
17454         (cand_abs_increment): Likewise.
17455         (replace_mult_candidate): Take a widest_int instead of a double_int.
17456         (replace_unconditional_candidate): Use wide-int interfaces.
17457         (incr_vec_index): Take a widest_int instead of a double_int.
17458         (create_add_on_incoming_edge): Likewise.
17459         (create_phi_basis): Use wide-int interfaces.
17460         (replace_conditional_candidate): Likewise.
17461         (record_increment): Take a widest_int instead of a double_int.
17462         (record_phi_increments): Use wide-int interfaces.
17463         (phi_incr_cost): Take a widest_int instead of a double_int.
17464         (lowest_cost_path): Likewise.
17465         (total_savings): Likewise.
17466         (analyze_increments): Use wide-int interfaces.
17467         (ncd_with_phi): Take a widest_int instead of a double_int.
17468         (ncd_of_cand_and_phis): Likewise.
17469         (nearest_common_dominator_for_cands): Likewise.
17470         (insert_initializers): Use wide-int interfaces.
17471         (all_phi_incrs_profitable): Likewise.
17472         (replace_one_candidate): Likewise.
17473         (replace_profitable_candidates): Likewise.
17474         * godump.c: Include wide-int-print.h.
17475         (go_output_typedef): Use wide-int interfaces.
17476         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17477         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17478         (build_loop_iteration_domains): Likewise.
17479         * hooks.h: Include wide-int.h rather than double-int.h.
17480         (hook_bool_dint_dint_uint_bool_true): Delete.
17481         (hook_bool_wint_wint_uint_bool_true): Declare.
17482         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17483         (hook_bool_wint_wint_uint_bool_true): New.
17484         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17485         interfaces.
17486         (ubsan_expand_si_overflow_mul_check): Likewise.
17487         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17488         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17489         (get_ancestor_addr_info): Likewise.
17490         (ipa_modify_call_arguments): Likewise.
17491         * loop-doloop.c (doloop_modify): Likewise.
17492         (doloop_optimize): Likewise.
17493         * loop-iv.c (iv_number_of_iterations): Likewise.
17494         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17495         (unroll_loop_constant_iterations): Likewise.
17496         (decide_unroll_runtime_iterations): Likewise.
17497         (unroll_loop_runtime_iterations): Likewise.
17498         (decide_peel_simple): Likewise.
17499         (decide_unroll_stupid): Likewise.
17500         * lto-streamer-in.c (streamer_read_wi): Add.
17501         (input_cfg): Use wide-int interfaces.
17502         (lto_input_tree_1): Likewise.
17503         * lto-streamer-out.c (streamer_write_wi): Add.
17504         (hash_tree): Use wide-int interfaces.
17505         (output_cfg): Likewise.
17506         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17507         (GTFILES): Add wide-int.h and signop.h.
17508         (TAGS): Look for .cc files too.
17509         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17510         * optabs.c (expand_subword_shift): Likewise.
17511         (expand_doubleword_shift): Likewise.
17512         (expand_absneg_bit): Likewise.
17513         (expand_copysign_absneg): Likewise.
17514         (expand_copysign_bit): Likewise.
17515         * postreload.c (reload_cse_simplify_set): Likewise.
17516         * predict.c (predict_iv_comparison): Likewise.
17517         * pretty-print.h: Include wide-int-print.h.
17518         (pp_wide_int) New.
17519         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17520         * print-tree.c: Include wide-int-print.h.
17521         (print_node_brief): Use wide-int interfaces.
17522         (print_node): Likewise.
17523         * read-rtl.c (validate_const_wide_int): New.
17524         (read_rtx_code): Add CONST_WIDE_INT case.
17525         * real.c: Include wide-int.h.
17526         (real_to_integer2): Delete.
17527         (real_to_integer): New function, returning a wide_int.
17528         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17529         (ten_to_ptwo): Update call to real_from_integer.
17530         (real_digit): Likewise.
17531         * real.h: Include signop.h, wide-int.h and insn-modes.h.
17532         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17533         (REAL_VALUE_TO_INT): Delete.
17534         (real_to_integer): Declare a wide-int form.
17535         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17536         * recog.c (const_int_operand): Improve comment.
17537         (const_scalar_int_operand): New.
17538         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17539         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17540         (split_double): Likewise.
17541         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17542         (rtx_size): Likewise.
17543         (rtx_alloc_stat_v): New.
17544         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17545         (cwi_output_hex): New.
17546         (iterative_hash_rtx): Handle CONST_WIDE_INT.
17547         (cwi_check_failed_bounds): New.
17548         * rtl.def (CONST_WIDE_INT): New.
17549         * rtl.h: Include <utility> and wide-int.h.
17550         (struct hwivec_def): New.
17551         (CWI_GET_NUM_ELEM): New.
17552         (CWI_PUT_NUM_ELEM): New.
17553         (struct rtx_def): Add num_elem and hwiv.
17554         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17555         (CASE_CONST_UNIQUE): Likewise.
17556         (CASE_CONST_ANY): Likewise.
17557         (CONST_SCALAR_INT_P): Likewise.
17558         (CONST_WIDE_INT_P): New.
17559         (CWI_ELT): New.
17560         (HWIVEC_CHECK): New.
17561         (cwi_check_failed_bounds): New.
17562         (CWI_ELT): New.
17563         (HWIVEC_CHECK): New.
17564         (CONST_WIDE_INT_VEC) New.
17565         (CONST_WIDE_INT_NUNITS) New.
17566         (CONST_WIDE_INT_ELT) New.
17567         (rtx_mode_t): New type.
17568         (wi::int_traits <rtx_mode_t>): New.
17569         (wi::shwi): New.
17570         (wi::min_value): New.
17571         (wi::max_value): New.
17572         (rtx_alloc_v) New.
17573         (const_wide_int_alloc): New.
17574         (immed_wide_int_const): New.
17575         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17576         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17577         * signop.h: New file.
17578         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17579         (simplify_const_unary_operation): Use wide-int interfaces.
17580         (simplify_binary_operation_1): Likewise.
17581         (simplify_const_binary_operation): Likewise.
17582         (simplify_const_relational_operation): Likewise.
17583         (simplify_immed_subreg): Likewise.
17584         * stmt.c (expand_case): Likewise.
17585         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17586         signop rather than a bool.
17587         * stor-layout.c (layout_type): Use wide-int interfaces.
17588         (initialize_sizetypes): Update calls to
17589         set_min_and_max_values_for_integral_type.
17590         (set_min_and_max_values_for_integral_type): Take a signop rather
17591         than a bool.  Use wide-int interfaces.
17592         (fixup_signed_type): Update accordingly.  Remove
17593         HOST_BITS_PER_DOUBLE_INT limit.
17594         (fixup_unsigned_type): Likewise.
17595         * system.h (STATIC_CONSTANT_P): New.
17596         (STATIC_ASSERT): New.
17597         * target.def (can_use_doloop_p): Take widest_ints rather than
17598         double_ints.
17599         * target.h: Include wide-int.h rather than double-int.h.
17600         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17601         than double_ints.
17602         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17603         rather than INT_CST_LT_UNSIGNED.
17604         (can_use_doloop_if_innermost): Take widest_ints rather than
17605         double_ints.
17606         * tree-affine.c: Include wide-int-print.h.
17607         (double_int_ext_for_comb): Delete.
17608         (wide_int_ext_for_comb): New.
17609         (aff_combination_zero): Use wide-int interfaces.
17610         (aff_combination_const): Take a widest_int instead of a double_int.
17611         (aff_combination_elt): Use wide-int interfaces.
17612         (aff_combination_scale): Take a widest_int instead of a double_int.
17613         (aff_combination_add_elt): Likewise.
17614         (aff_combination_add_cst): Likewise.
17615         (aff_combination_add): Use wide-int interfaces.
17616         (aff_combination_convert): Likewise.
17617         (tree_to_aff_combination): Likewise.
17618         (add_elt_to_tree): Take a widest_int instead of a double_int.
17619         (aff_combination_to_tree): Use wide-int interfaces.
17620         (aff_combination_remove_elt): Likewise.
17621         (aff_combination_add_product): Take a widest_int instead of
17622         a double_int.
17623         (aff_combination_mult): Use wide-int interfaces.
17624         (aff_combination_expand): Likewise.
17625         (double_int_constant_multiple_p): Delete.
17626         (wide_int_constant_multiple_p): New.
17627         (aff_combination_constant_multiple_p): Take a widest_int pointer
17628         instead of a double_int pointer.
17629         (print_aff): Use wide-int interfaces.
17630         (get_inner_reference_aff): Take a widest_int pointer
17631         instead of a double_int pointer.
17632         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17633         * tree-affine.h: Include wide-int.h.
17634         (struct aff_comb_elt): Change type of coef to widest_int.
17635         (struct affine_tree_combination): Change type of offset to widest_int.
17636         (double_int_ext_for_comb): Delete.
17637         (wide_int_ext_for_comb): New.
17638         (aff_combination_const): Use widest_int instead of double_int.
17639         (aff_combination_scale): Likewise.
17640         (aff_combination_add_elt): Likewise.
17641         (aff_combination_constant_multiple_p): Likewise.
17642         (get_inner_reference_aff): Likewise.
17643         (aff_comb_cannot_overlap_p): Likewise.
17644         (aff_combination_zero_p): Use wide-int interfaces.
17645         * tree.c: Include tree.h.
17646         (init_ttree): Use make_int_cst.
17647         (tree_code_size): Removed code for INTEGER_CST case.
17648         (tree_size): Add INTEGER_CST case.
17649         (make_node_stat): Update comment.
17650         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17651         (build_int_cst_type): Use wide-int interfaces.
17652         (double_int_to_tree): Likewise.
17653         (double_int_fits_to_tree_p): Delete.
17654         (force_fit_type_double): Delete.
17655         (force_fit_type): New.
17656         (int_cst_hash_hash): Use wide-int interfaces.
17657         (int_cst_hash_eq): Likewise.
17658         (build_int_cst_wide): Delete.
17659         (wide_int_to_tree): New.
17660         (cache_integer_cst): Use wide-int interfaces.
17661         (build_low_bits_mask): Likewise.
17662         (cst_and_fits_in_hwi): Likewise.
17663         (real_value_from_int_cst): Likewise.
17664         (make_int_cst_stat): New.
17665         (integer_zerop): Use wide_int interfaces.
17666         (integer_onep): Likewise.
17667         (integer_all_onesp): Likewise.
17668         (integer_pow2p): Likewise.
17669         (integer_nonzerop): Likewise.
17670         (tree_log2): Likewise.
17671         (tree_floor_log2): Likewise.
17672         (tree_ctz): Likewise.
17673         (int_size_in_bytes): Likewise.
17674         (mem_ref_offset): Return an offset_int rather than a double_int.
17675         (build_type_attribute_qual_variant): Use wide_int interfaces.
17676         (type_hash_eq): Likewise
17677         (tree_int_cst_equal): Likewise.
17678         (tree_int_cst_lt): Delete.
17679         (tree_int_cst_compare): Likewise.
17680         (tree_fits_shwi_p): Use wide_int interfaces.
17681         (tree_fits_uhwi_p): Likewise.
17682         (tree_int_cst_sign_bit): Likewise.
17683         (tree_int_cst_sgn): Likewise.
17684         (tree_int_cst_min_precision): Take a signop rather than a bool.
17685         (simple_cst_equal): Use wide_int interfaces.
17686         (compare_tree_int): Likewise.
17687         (iterative_hash_expr): Likewise.
17688         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
17689         INT_CST_LT.
17690         (get_type_static_bounds): Use wide_int interfaces.
17691         (tree_int_cst_elt_check_failed): New.
17692         (build_common_tree_nodes): Reordered to set prec before filling in
17693         value.
17694         (int_cst_value): Check cst_and_fits_in_hwi.
17695         (widest_int_cst_value): Use wide_int interfaces.
17696         (upper_bound_in_type): Likewise.
17697         (lower_bound_in_type): Likewise.
17698         (num_ending_zeros): Likewise.
17699         (drop_tree_overflow): Likewise.
17700         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17701         (gen_conditions_for_pow_cst_base): Likewise.
17702         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17703         (group_case_labels_stmt): Use wide-int interfaces.
17704         (verify_gimple_assign_binary): Likewise.
17705         (print_loop): Likewise.
17706         * tree-chrec.c (tree_fold_binomial): Likewise.
17707         * tree-core.h (struct tree_base): Add int_length.
17708         (struct tree_int_cst): Change rep of value.
17709         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17710         (dr_may_alias_p): Likewise.
17711         (max_stmt_executions_tree): Likewise.
17712         * tree.def (INTEGER_CST): Update comment.
17713         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17714         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17715         * tree-dump.c: Include wide-int.h and wide-int-print.h.
17716         (dequeue_and_dump): Use wide-int interfaces.
17717         * tree.h: Include wide-int.h.
17718         (NULL_TREE): Moved to earlier loc in file.
17719         (TREE_INT_CST_ELT_CHECK): New.
17720         (tree_int_cst_elt_check_failed): New.
17721         (TYPE_SIGN): New.
17722         (TREE_INT_CST): Delete.
17723         (TREE_INT_CST_LOW): Use wide-int interfaces.
17724         (TREE_INT_CST_HIGH): Delete.
17725         (TREE_INT_CST_NUNITS): New.
17726         (TREE_INT_CST_EXT_NUNITS): Likewise.
17727         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17728         (TREE_INT_CST_ELT): Likewise.
17729         (INT_CST_LT): Delete.
17730         (tree_int_cst_elt_check): New (two forms).
17731         (type_code_size): Update comment.
17732         (make_int_cst_stat, make_int_cst): New.
17733         (tree_to_double_int): Delete.
17734         (double_int_fits_to_tree_p): Delete.
17735         (force_fit_type_double): Delete.
17736         (build_int_cstu): Replace with out-of-line function.
17737         (build_int_cst_wide): Delete.
17738         (tree_int_cst_lt): Define inline.
17739         (tree_int_cst_le): New.
17740         (tree_int_cst_compare): Define inline.
17741         (tree_int_cst_min_precision): Take a signop rather than a bool.
17742         (wi::int_traits <const_tree>): New.
17743         (wi::int_traits <tree>): New.
17744         (wi::extended_tree): New.
17745         (wi::int_traits <wi::extended_tree>): New.
17746         (wi::to_widest): New.
17747         (wi::to_offset): New.
17748         (wi::fits_to_tree_p): New.
17749         (wi::min_value): New.
17750         (wi::max_value): New.
17751         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17752         (copy_tree_body_r): Likewise.
17753         * tree-object-size.c (compute_object_offset): Likewise.
17754         (addr_object_size): Likewise.
17755         * tree-predcom.c: Include wide-int-print.h.
17756         (struct dref_d): Change type of offset to widest_int.
17757         (dump_dref): Call wide-int printer.
17758         (aff_combination_dr_offset): Use wide-int interfaces.
17759         (determine_offset): Take a widest_int pointer rather than a
17760         double_int pointer.
17761         (split_data_refs_to_components): Use wide-int interfaces.
17762         (suitable_component_p): Likewise.
17763         (order_drefs): Likewise.
17764         (add_ref_to_chain): Likewise.
17765         (valid_initializer_p): Likewise.
17766         (determine_roots_comp): Likewise.
17767         * tree-pretty-print.c: Include wide-int-print.h.
17768         (dump_generic_node): Use wide-int interfaces.
17769         * tree-sra.c (sra_ipa_modify_expr): Likewise.
17770         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17771         (move_fixed_address_to_symbol): Likewise.
17772         (move_hint_to_base): Likewise.
17773         (move_pointer_to_base): Likewise.
17774         (move_variant_to_index): Likewise.
17775         (most_expensive_mult_to_index): Likewise.
17776         (addr_to_parts): Likewise.
17777         (copy_ref_info): Likewise.
17778         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17779         (indirect_refs_may_alias_p): Likewise.
17780         (stmt_kills_ref_p_1): Likewise.
17781         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17782         * tree-ssa-ccp.c: Update comment at top of file.  Include
17783         wide-int-print.h.
17784         (struct prop_value_d): Change type of mask to widest_int.
17785         (extend_mask): New function.
17786         (dump_lattice_value): Use wide-int interfaces.
17787         (get_default_value): Likewise.
17788         (set_constant_value): Likewise.
17789         (set_value_varying): Likewise.
17790         (valid_lattice_transition): Likewise.
17791         (set_lattice_value): Likewise.
17792         (value_to_double_int): Delete.
17793         (value_to_wide_int): New.
17794         (get_value_from_alignment): Use wide-int interfaces.
17795         (get_value_for_expr): Likewise.
17796         (do_dbg_cnt): Likewise.
17797         (ccp_finalize): Likewise.
17798         (ccp_lattice_meet): Likewise.
17799         (bit_value_unop_1): Use widest_ints rather than double_ints.
17800         (bit_value_binop_1): Likewise.
17801         (bit_value_unop): Use wide-int interfaces.
17802         (bit_value_binop): Likewise.
17803         (bit_value_assume_aligned): Likewise.
17804         (evaluate_stmt): Likewise.
17805         (ccp_fold_stmt): Likewise.
17806         (visit_cond_stmt): Likewise.
17807         (ccp_visit_stmt): Likewise.
17808         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17809         (constant_pointer_difference): Likewise.
17810         (associate_pointerplus): Likewise.
17811         (combine_conversions): Likewise.
17812         * tree-ssa-loop.h: Include wide-int.h.
17813         (struct tree_niter_desc): Change type of max to widest_int.
17814         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17815         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17816         (remove_redundant_iv_tests): Likewise.
17817         (canonicalize_loop_induction_variables): Likewise.
17818         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17819         (constant_multiple_of): Take a widest_int pointer instead of
17820         a double_int pointer.
17821         (get_computation_aff): Use wide-int interfaces.
17822         (ptr_difference_cost): Likewise.
17823         (difference_cost): Likewise.
17824         (get_loop_invariant_expr_id): Likewise.
17825         (get_computation_cost_at): Likewise.
17826         (iv_elimination_compare_lt): Likewise.
17827         (may_eliminate_iv): Likewise.
17828         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17829         instead of double_int.
17830         (max_loop_iterations): Likewise.
17831         (max_stmt_executions): Likewise.
17832         (estimated_stmt_executions): Likewise.
17833         * tree-ssa-loop-niter.c: Include wide-int-print.h.
17834         (split_to_var_and_offset): Use wide-int interfaces.
17835         (determine_value_range): Likewise.
17836         (bound_difference_of_offsetted_base): Likewise.
17837         (bounds_add): Take a widest_int instead of a double_int.
17838         (number_of_iterations_ne_max): Use wide-int interfaces.
17839         (number_of_iterations_ne): Likewise.
17840         (number_of_iterations_lt_to_ne): Likewise.
17841         (assert_loop_rolls_lt): Likewise.
17842         (number_of_iterations_lt): Likewise.
17843         (number_of_iterations_le): Likewise.
17844         (number_of_iterations_cond): Likewise.
17845         (number_of_iterations_exit): Likewise.
17846         (finite_loop_p): Likewise.
17847         (derive_constant_upper_bound_assign): Likewise.
17848         (derive_constant_upper_bound): Return a widest_int.
17849         (derive_constant_upper_bound_ops): Likewise.
17850         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17851         (record_estimate): Take a widest_int rather than a double_int.
17852         (record_nonwrapping_iv): Use wide-int interfaces.
17853         (double_int_cmp): Delete.
17854         (wide_int_cmp): New.
17855         (bound_index): Take a widest_int rather than a double_int.
17856         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17857         (maybe_lower_iteration_bound): Likewise.
17858         (estimate_numbers_of_iterations_loop): Likewise.
17859         (estimated_loop_iterations): Take a widest_int pointer than than
17860         a double_int pointer.
17861         (estimated_loop_iterations_int): Use wide-int interfaces.
17862         (max_loop_iterations): Take a widest_int pointer than than
17863         a double_int pointer.
17864         (max_loop_iterations_int): Use wide-int interfaces.
17865         (max_stmt_executions): Take a widest_int pointer than than
17866         a double_int pointer.
17867         (estimated_stmt_executions): Likewise.
17868         (n_of_executions_at_most): Use wide-int interfaces.
17869         (scev_probably_wraps_p): Likewise.
17870         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17871         to real_to_integer.
17872         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17873         interfaces.
17874         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17875         double_ints.  Adjust for trailing_wide_ints <3> representation.
17876         (set_nonzero_bits): Likewise.
17877         (get_range_info): Return wide_ints rather than double_ints.
17878         Adjust for trailing_wide_ints <3> representation.
17879         (get_nonzero_bits): Likewise.
17880         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17881         representation.
17882         * tree-ssanames.h (struct range_info_def): Replace min, max and
17883         nonzero_bits with a trailing_wide_ints <3>.
17884         (set_range_info): Use wide_int_refs rather than double_ints.
17885         (set_nonzero_bits): Likewise.
17886         (get_range_info): Return wide_ints rather than double_ints.
17887         (get_nonzero_bits): Likewise.
17888         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17889         * tree-ssa-pre.c (phi_translate_1): Likewise.
17890         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17891         (acceptable_pow_call): Likewise.
17892         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17893         interfaces.
17894         (vn_reference_fold_indirect): Likewise.
17895         (vn_reference_maybe_forwprop_address): Likewise.
17896         (valueize_refs_1): Likewise.
17897         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17898         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17899         tree_int_cst_lt and tree_int_cst_le.
17900         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17901         interfaces.
17902         (streamer_alloc_tree): Likewise.
17903         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17904         (streamer_write_tree_header): Likewise.
17905         (streamer_write_integer_cst): Likewise.
17906         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17907         (build_constructors): Likewise.
17908         (array_value_type): Likewise.
17909         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17910         (vect_check_gather): Likewise.
17911         * tree-vect-generic.c (build_replicated_const): Likewise.
17912         (expand_vector_divmod): Likewise.
17913         * tree-vect-loop.c (vect_transform_loop): Likewise.
17914         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17915         (vect_do_peeling_for_alignment): Likewise.
17916         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17917         * tree-vrp.c: Include wide-int.h.
17918         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17919         (extract_range_from_assert): Use wide-int interfaces.
17920         (vrp_int_const_binop): Likewise.
17921         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17922         double_int pointers.
17923         (ranges_from_anti_range): Use wide-int interfaces.
17924         (quad_int_cmp): Delete.
17925         (quad_int_pair_sort): Likewise.
17926         (extract_range_from_binary_expr_1): Use wide-int interfaces.
17927         (extract_range_from_unary_expr_1): Likewise.
17928         (adjust_range_with_scev): Likewise.
17929         (masked_increment): Take and return wide_ints rather than double_ints.
17930         (register_edge_assert_for_2): Use wide-int interfaces.
17931         (check_array_ref): Likewise.
17932         (search_for_addr_array): Likewise.
17933         (maybe_set_nonzero_bits): Likewise.
17934         (union_ranges): Pass an integer of the correct type instead of
17935         using integer_one_node.
17936         (intersect_ranges): Likewise.
17937         (simplify_truth_ops_using_ranges): Likewise.
17938         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17939         (range_fits_type_p): Likewise.
17940         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
17941         a bool.
17942         (simplify_conversion_using_ranges): Use wide-int interfaces.
17943         (simplify_float_conversion_using_ranges): Likewise.
17944         (vrp_finalize): Likewise.
17945         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17946         (gimple_stringops_transform): Likewise.
17947         * varasm.c (decode_addr_const): Likewise.
17948         (const_hash_1): Likewise.
17949         (const_rtx_hash_1): Likewise
17950         (output_constant): Likewise.
17951         (array_size_for_constructor): Likewise.
17952         (output_constructor_regular_field): Likewise.
17953         (output_constructor_bitfield): Likewise.
17954         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17955         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17956         GENERATOR_FILEs.
17957         * gencheck.c: Define BITS_PER_UNIT.
17958         * wide-int.cc: New.
17959         * wide-int.h: New.
17960         * wide-int-print.cc: New.
17961         * wide-int-print.h: New.
17963 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17965         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17967 2014-05-06  Richard Biener  <rguenther@suse.de>
17969         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17970         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17971         (TODO_verify_all): Adjust.
17972         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17973         TODO_verify_stmts and TODO_verify_rtl_sharing.
17974         * bb-reorder.c: Likewise.
17975         * cfgexpand.c: Likewise.
17976         * cprop.c: Likewise.
17977         * cse.c: Likewise.
17978         * function.c: Likewise.
17979         * fwprop.c: Likewise.
17980         * gcse.c: Likewise.
17981         * gimple-ssa-isolate-paths.c: Likewise.
17982         * gimple-ssa-strength-reduction.c: Likewise.
17983         * ipa-split.c: Likewise.
17984         * loop-init.c: Likewise.
17985         * loop-unroll.c: Likewise.
17986         * lower-subreg.c: Likewise.
17987         * modulo-sched.c: Likewise.
17988         * postreload-gcse.c: Likewise.
17989         * predict.c: Likewise.
17990         * recog.c: Likewise.
17991         * sched-rgn.c: Likewise.
17992         * store-motion.c: Likewise.
17993         * tracer.c: Likewise.
17994         * trans-mem.c: Likewise.
17995         * tree-call-cdce.c: Likewise.
17996         * tree-cfg.c: Likewise.
17997         * tree-cfgcleanup.c: Likewise.
17998         * tree-complex.c: Likewise.
17999         * tree-eh.c: Likewise.
18000         * tree-emutls.c: Likewise.
18001         * tree-if-conv.c: Likewise.
18002         * tree-into-ssa.c: Likewise.
18003         * tree-loop-distribution.c: Likewise.
18004         * tree-object-size.c: Likewise.
18005         * tree-parloops.c: Likewise.
18006         * tree-pass.h: Likewise.
18007         * tree-sra.c: Likewise.
18008         * tree-ssa-ccp.c: Likewise.
18009         * tree-ssa-copy.c: Likewise.
18010         * tree-ssa-copyrename.c: Likewise.
18011         * tree-ssa-dce.c: Likewise.
18012         * tree-ssa-dom.c: Likewise.
18013         * tree-ssa-dse.c: Likewise.
18014         * tree-ssa-forwprop.c: Likewise.
18015         * tree-ssa-ifcombine.c: Likewise.
18016         * tree-ssa-loop-ch.c: Likewise.
18017         * tree-ssa-loop-ivcanon.c: Likewise.
18018         * tree-ssa-loop.c: Likewise.
18019         * tree-ssa-math-opts.c: Likewise.
18020         * tree-ssa-phiopt.c: Likewise.
18021         * tree-ssa-phiprop.c: Likewise.
18022         * tree-ssa-pre.c: Likewise.
18023         * tree-ssa-reassoc.c: Likewise.
18024         * tree-ssa-sink.c: Likewise.
18025         * tree-ssa-strlen.c: Likewise.
18026         * tree-ssa-tail-merge.c: Likewise.
18027         * tree-ssa-uncprop.c: Likewise.
18028         * tree-switch-conversion.c: Likewise.
18029         * tree-tailcall.c: Likewise.
18030         * tree-vect-generic.c: Likewise.
18031         * tree-vectorizer.c: Likewise.
18032         * tree-vrp.c: Likewise.
18033         * tsan.c: Likewise.
18034         * var-tracking.c: Likewise.
18035         * bt-load.c: Likewise.
18036         * cfgcleanup.c: Likewise.
18037         * combine-stack-adj.c: Likewise.
18038         * combine.c: Likewise.
18039         * compare-elim.c: Likewise.
18040         * config/epiphany/resolve-sw-modes.c: Likewise.
18041         * config/i386/i386.c: Likewise.
18042         * config/mips/mips.c: Likewise.
18043         * config/s390/s390.c: Likewise.
18044         * config/sh/sh_treg_combine.cc: Likewise.
18045         * config/sparc/sparc.c: Likewise.
18046         * dce.c: Likewise.
18047         * dse.c: Likewise.
18048         * final.c: Likewise.
18049         * ifcvt.c: Likewise.
18050         * mode-switching.c: Likewise.
18051         * passes.c: Likewise.
18052         * postreload.c: Likewise.
18053         * ree.c: Likewise.
18054         * reg-stack.c: Likewise.
18055         * regcprop.c: Likewise.
18056         * regrename.c: Likewise.
18057         * web.c: Likewise.
18059 2014-05-06  Richard Biener  <rguenther@suse.de>
18061         PR middle-end/61070
18062         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18063         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18065 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
18067         PR ipa/60965
18068         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18070 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
18071             Tom de Vries  <tom@codesourcery.com>
18073         * target.def (call_fusage_contains_non_callee_clobbers): New
18074         DEFHOOKPOD.
18075         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18076         Hooks to @menu.
18077         (@node Miscellaneous Register Hooks): New node.
18078         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18079         * doc/tm.texi: Regenerate.
18081 2014-05-05  Marek Polacek  <polacek@redhat.com>
18083         PR driver/61065
18084         * opts.c (common_handle_option): Call error_at instead of warning_at.
18086 2014-05-05  Richard Biener  <rguenther@suse.de>
18088         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18089         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
18090         under the TODO_verify_il umbrella.
18092 2014-05-05  Richard Biener  <rguenther@suse.de>
18094         * passes.c (execute_function_todo): Move TODO_verify_flow under
18095         the TODO_verify_ul umbrella.
18097 2014-05-05  Richard Biener  <rguenther@suse.de>
18099         PR middle-end/61010
18100         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18101         X & CST away from a CST that is the mask of a mode.
18103 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18105         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18106         int argument to enum machine_mode.
18107         (picochip_class_max_nregs): Ditto.
18108         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18109         (picochip_class_max_nregs): Ditto.
18111 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18113         * target.def: Add new target hook.
18114         * doc/tm.texi: Regenerate.
18115         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18116         * targhooks.c (default_keep_leaf_when_profiled): New function.
18118         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18119         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18121 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
18123         PR tree-optimization/60363
18124         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18125         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
18126         (update_destination_phis): New parameter.
18127         (create_edge_and_update_destination_phis): Ditto.
18128         (ssa_fix_duplicate_block_edges): Pass new arguments.
18129         (thread_single_edge): Ditto.
18131 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
18133         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18134         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18135         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18136         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18137         Use RS6000_BTM_HARD_FLOAT.
18138         (BU_MISC_2): Likewise.
18139         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18140         RS6000_BTM_HARD_FLOAT.
18141         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18142         is explicitly used.
18143         (rs6000_invalid_builtin): Add hard floating builtin support.
18144         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18145         hard float builtins.
18146         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18148 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
18150         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18151         Add missing function* argument.
18153 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
18155         * lra-constraints.c (valid_address_p): Move earlier in file.
18156         Add a constraint argument to the address_info version.
18157         (satisfies_memory_constraint_p): New function.
18158         (satisfies_address_constraint_p): Likewise.
18159         (process_alt_operands, curr_insn_transform): Use them.
18160         (process_address): Pass the constraint to valid_address_p when
18161         checking address operands.
18163 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
18165         * config/mips/mips.c (mips_isa_rev): New variable.
18166         (mips_set_architecture): Set it.
18167         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18168         from mips_isa_rev.
18169         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18170         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18171         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18172         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18173         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18174         conditions in terms of mips_isa_rev.
18175         (mips_isa_rev): Declare.
18177 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
18179         * config/sh/sh-mem.cc: Use tabs instead of spaces.
18180         (prob_unlikely, prob_likely): Make variables const.
18182 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
18184         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18186 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
18188         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18190 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
18192         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18193         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18194         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18195         functions.
18196         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18197         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18198         sh_pass_in_reg_p.
18199         Replace usage of ROUND_REG with sh_round_reg.
18200         Use CEIL instead of ROUND_ADVANCE.
18202 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
18204         PR target/61026
18205         * config/sh/sh.c: Include stdlib headers before everything else.
18207 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
18209         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18210         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18211         (gimplify_adjust_omp_clauses): Simd region is never
18212         directly nested in combined parallel.  Instead, for linear
18213         with copyin/copyout, if in combined for simd loop, make decl
18214         firstprivate/lastprivate on OMP_FOR.
18215         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18216         expand_omp_for_static_chunk): When setting endvar, also set
18217         fd->loop.v to the same value.
18219 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
18221         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18223 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
18225         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18226         expression.
18228 2014-05-02  Marek Polacek  <polacek@redhat.com>
18230         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18232 2014-05-02  Kito Cheng  <kito@0xlab.org>
18234         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18235         to a C expression marco.
18236         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18237         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18238         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18239         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18240         HONOR_REG_ALLOC_ORDER.
18241         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18243 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18245         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18247 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18249         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18251 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
18253         * tree-if-conv.c (is_cond_scalar_reduction): New function.
18254         (convert_scalar_cond_reduction): Likewise.
18255         (predicate_scalar_phi): Add recognition and transformation
18256         of simple conditioanl reduction to be vectorizable.
18258 2014-05-01  Marek Polacek  <polacek@redhat.com>
18260         PR c/43245
18261         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18263 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
18265         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18266         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18267         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18268         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18269         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18270         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18271         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18272         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18274 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
18276         * config/arc/arc.opt (mlra): Move comment above option name
18277         to avoid mis-parsing as language options.
18279 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18281         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18282         * config/sol2.h: ... here.
18283         * config/sol2-10.h: Remove.
18285         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18286         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18287         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18288         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18289         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18290         * config/sol2.h: ... here.
18291         (SECTION_NAME_FORMAT): Don't redefine.
18292         (STARTFILE_ARCH32_SPEC): Rename to ...
18293         (STARTFILE_ARCH_SPEC): ... this.
18294         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18295         * config/sparc/sol2.h: ... here.
18296         (SECTION_NAME_FORMAT): Don't undef.
18297         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18298         (SUBTARGET_EXTRA_SPECS): Remove.
18299         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18301         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18302         (MD_STARTFILE_PREFIX): Remove.
18303         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18304         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18305         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18306         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18307         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18308         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18309         * config/i386/sol2.h: ... here.
18310         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18311         * config/i386/sol2-bi.h: Remove.
18312         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18313         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18315         * config/i386/t-sol2-64: Rename to ...
18316         * config/i386/t-sol2: ... this.
18317         * config/sparc/t-sol2-64: Rename to ...
18318         * config/sparc/t-sol2: ... this.
18320         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18321         sol2_tm_file_head, sol2_tm_file_tail.
18322         Include ${cpu_type}/sol2.h before sol2.h.
18323         Remove sol2-10.h.
18324         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18325         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18326         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18327         Reflect i386/t-sol2-64 renaming.
18328         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18329         Reflect sparc/t-sol2-64 renaming.
18331 2014-04-30  Richard Biener  <rguenther@suse.de>
18333         * passes.c (execute_function_todo): Move TODO_verify_stmts
18334         and TODO_verify_ssa under the TODO_verify_il umbrella.
18335         * tree-ssa.h (verify_ssa): Adjust prototype.
18336         * tree-ssa.c (verify_ssa): Add parameter to tell whether
18337         we should verify SSA operands.
18338         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18339         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18340         whether we should verify whether not throwing stmts have EH info.
18341         * graphite-scop-detection.c (create_sese_edges): Adjust.
18342         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18343         * tree-eh.c (lower_try_finally_switch): Do not add the
18344         default case label twice.
18346 2014-04-30  Marek Polacek  <polacek@redhat.com>
18348         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18349         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18350         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18351         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18353 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
18355         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18356         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18357         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18358         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18359         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18360         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18361         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18362         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18364 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
18366         * tree-cfg.c (dump_function_to_file): Dump the return type of
18367         functions, in a line to itself before the function body, mimicking
18368         the layout of a C function.
18370 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
18372         PR tree-optimization/60971
18373         * tree-tailcall.c (process_assignment): Reject conversions which
18374         reduce precision.
18376 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
18378         * calls.c (initialize_argument_information): Always treat
18379         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18380         (expand_call): Likewise.
18381         (emit_library_call_calue_1): Likewise.
18382         * expr.c (PUSH_ARGS_REVERSED): Do not define.
18383         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18384         code accordingly.
18386 2014-04-29  Nick Clifton  <nickc@redhat.com>
18388         * config/msp430/msp430.md (umulsidi): Fix typo.
18389         (mulhisi3): Enable even inside interrupt handlers.
18390         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18391         bigger return address pushed in large mode.
18393 2014-04-29  Nick Clifton  <nickc@redhat.com>
18395         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18396         (arc_init_reg_tables): Use a machine_mode enum to iterate over
18397         available modes.
18398         * config/m32r/m32r.c (init_reg_tables): Likewise.
18399         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18400         enum to hold the modes.
18402 2014-04-29  Richard Biener  <rguenther@suse.de>
18404         * dominance.c (free_dominance_info): Add overload with
18405         function parameter.
18406         (dom_info_state): Likewise.
18407         (dom_info_available_p): Likewise.
18408         * basic-block.h (free_dominance_info, dom_info_state,
18409         dom_info_available_p): Declare overloads.
18410         * passes.c (execute_function_todo): Verify that verifiers
18411         don't change dominator info state.  Drop dominator info
18412         for IPA pass invocations.
18413         * cgraph.c (release_function_body): Restore asserts that
18414         dominator information is released.
18416 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
18418         * doc/invoke.texi: Fix typo.
18419         * tree-vrp.c: Fix typos.
18420         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18422 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18424         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18426 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
18428         * config/aarch64/aarch64-builtins.c
18429         (aarch64_types_storestruct_lane_qualifiers): New.
18430         (TYPES_STORESTRUCT_LANE): Likewise.
18431         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18432         (st3_lane): Likewise.
18433         (st4_lane): Likewise.
18434         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18435         (vec_store_lanesci_lane<mode>): Likewise.
18436         (vec_store_lanesxi_lane<mode>): Likewise.
18437         (aarch64_st2_lane<VQ:mode>): Likewise.
18438         (aarch64_st3_lane<VQ:mode>): Likewise.
18439         (aarch64_st4_lane<VQ:mode>): Likewise.
18440         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18441         * config/aarch64/arm_neon.h
18442         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18443         use new macro arguments.
18444         (__ST3_LANE_FUNC): Likewise.
18445         (__ST4_LANE_FUNC): Likewise.
18446         * config/aarch64/iterators.md (V_TWO_ELEM): New.
18447         (V_THREE_ELEM): Likewise.
18448         (V_FOUR_ELEM): Likewise.
18450 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
18452         * doc/gimple.texi: Replace the description of the now-defunct
18453         union gimple_statement_d with a diagram showing the
18454         gimple_statement_base class hierarchy and its relationships to
18455         the GSS_ and GIMPLE_ enums.
18457 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
18459         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18460         * config/aarch64/aarch64.c
18461         (aarch64_cannot_change_mode_class): Weaken conditions.
18462         (aarch64_modes_tieable_p): New.
18463         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18465 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
18467         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18468         (loadsync_<mode>): Change mode.
18469         (load_quadpti, store_quadpti): New.
18470         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18471         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18473 2014-04-28  Martin Jambor  <mjambor@suse.cz>
18475         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18476         same alias type as the original statement.
18477         (subreplacement_assignment_data): New type.
18478         (handle_unscalarized_data_in_subtree): New type of parameter,
18479         generate new memory accesses with same alias type as the original
18480         statement.
18481         (load_assign_lhs_subreplacements): Likewise.
18482         (sra_modify_constructor_assign): Generate new memory accesses with
18483         same alias type as the original statement.
18485 2014-04-28  Richard Biener  <rguenther@suse.de>
18487         * tree-pass.h (TODO_verify_il): Define.
18488         (TODO_verify_all): Complete properly.
18489         * passes.c (execute_function_todo): Move existing loop-closed
18490         SSA verification under TODO_verify_il.
18491         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18492         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18493         Fix tree sharing issue.
18495 2014-04-28  Richard Biener  <rguenther@suse.de>
18497         PR middle-end/60092
18498         * builtins.def (DEF_C11_BUILTIN): Add.
18499         (BUILT_IN_ALIGNED_ALLOC): Likewise.
18500         * coretypes.h (enum function_class): Add function_c11_misc.
18501         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18502         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18503         (call_may_clobber_ref_p_1): Likewise.
18504         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18505         (mark_all_reaching_defs_necessary_1): Likewise.
18506         (propagate_necessity): Likewise.
18507         (eliminate_unnecessary_stmts): Likewise.
18508         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18510 2014-04-28  Richard Biener  <rguenther@suse.de>
18512         * tree-vrp.c (vrp_var_may_overflow): Remove.
18513         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18514         with overflow immediately bump to one before that value and
18515         let iteration figure out overflow status.
18517 2014-04-28  Richard Biener  <rguenther@suse.de>
18519         * configure.ac: Do valgrind header checks unconditionally.
18520         Add --enable-valgrind-annotations.
18521         * system.h: Guard valgrind header inclusion with
18522         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18523         * alloc-pool.c (pool_alloc, pool_free): Use
18524         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18525         to guard possibly dead code.
18526         * config.in: Regenerated.
18527         * configure: Likewise.
18529 2014-04-28  Jeff Law  <law@redhat.com>
18531         PR tree-optimization/60902
18532         * tree-ssa-threadedge.c
18533         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18534         over real defs when invalidating outputs from statements that do not
18535         produce useful outputs for threading.
18537 2014-04-28  Richard Biener  <rguenther@suse.de>
18539         PR tree-optimization/60979
18540         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18541         SCOPs that end in a block with a successor with abnormal
18542         predecessors.
18544 2014-04-28  Richard Biener  <rguenther@suse.de>
18546         * tree-pass.h (execute_pass_list): Adjust prototype.
18547         * passes.c (pass_manager::execute_early_local_passes): Adjust.
18548         (do_per_function): Change callback signature, push all actual
18549         work to the callbals.
18550         (do_per_function_toporder): Likewise.
18551         (execute_function_dump): Adjust.
18552         (execute_function_todo): Likewise.
18553         (clear_last_verified): Likewise.
18554         (verify_curr_properties): Likewise.
18555         (update_properties_after_pass): Likewise.
18556         (execute_pass_list_1): Split out from ...
18557         (execute_pass_list): ... here.  Adjust.
18558         (execute_ipa_pass_list): Likewise.
18559         * cgraphunit.c (cgraph_add_new_function): Adjust.
18560         (analyze_function): Likewise.
18561         (expand_function): Likewise.
18562         * cgraph.c (release_function_body): Free dominance info
18563         here instead of asserting it was magically freed elsewhere.
18565 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18567         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18568         * configure: Regenerate.
18569         * config/sparc/sparc.opt (muser-mode): New option.
18570         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18571         for LEON3.
18572         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18573         * doc/invoke.texi (SPARC options): Document -muser-mode.
18575 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
18577         * cselib.c (find_slot_memmode): Delete.
18578         (cselib_hasher): Change compare_type to a struct.
18579         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
18580         constants.
18581         (preserve_constants_and_equivs): Adjust for new compare_type.
18582         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
18583         (wrap_constant): Delete.
18584         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18586 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
18588         * doc/install.texi (Building with profile feedback): Remove
18589         outdated sentence.
18591 2014-04-26  Tom de Vries  <tom@codesourcery.com>
18593         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18594         array accesses.
18596 2014-04-25  Cary Coutant  <ccoutant@google.com>
18598         PR debug/60929
18599         * dwarf2out.c (should_move_die_to_comdat): A type definition
18600         can contain a subprogram definition, but don't move it to a
18601         comdat unit.
18602         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18603         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18604         from original DIE.
18605         (clone_tree_hash): Rename to...
18606         (clone_tree_partial): ...this; change callers.  Copy
18607         DW_TAG_subprogram DIEs as declarations.
18608         (copy_decls_walk): Don't copy children of a declaration into a
18609         type unit.
18611 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
18613         PR target/60969
18614         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18615         alternative 12.
18617 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
18619         * config/arm/predicates.md (call_insn_operand): Add long_call check.
18620         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18621         reg for long_call.
18622         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18623         restriction.
18625 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18627         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18629 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18631         PR tree-optimization/60930
18632         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
18633         creating a multiply candidate by folding two constant
18634         multiplicands when the result overflows.
18636 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
18638         PR tree-optimization/60960
18639         * tree-vect-generic.c (expand_vector_operation): Only call
18640         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18642 2014-04-25  Tom de Vries  <tom@codesourcery.com>
18644         * expr.c (clobber_reg_mode): New function.
18645         * expr.h (clobber_reg): New function.
18647 2014-04-25  Tom de Vries  <tom@codesourcery.com>
18649         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18650         clobbers.
18652 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
18653             Tom de Vries  <tom@codesourcery.com>
18655         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18656         handle.
18657         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18658         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18659         new argument to find_all_hard_reg_sets call.
18661 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18663         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18664         Use HOST_WIDE_INT_C for mask literal.
18665         (aarch_rev16_shleft_mask_imm_p): Likewise.
18667 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
18669         PR target/60941
18670         * config/sparc/sparc.md (ashlsi3_extend): Delete.
18672 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
18674         PR preprocessor/56540
18675         * config/i386/i386-c.c (ix86_target_macros): Define
18676         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18678 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18680         * configure.ac (tga_func): Remove.
18681         (LIB_TLS_SPEC): Remove.
18682         * configure: Regenerate.
18683         * config.in: Regenerate.
18684         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18686 2014-04-25  Richard Biener  <rguenther@suse.de>
18688         PR ipa/60912
18689         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18690         call stmt use/clobber sets during stmt walk instead of
18691         walking the possibly incomplete set of caller edges.
18693 2014-04-25  Richard Biener  <rguenther@suse.de>
18695         PR ipa/60911
18696         * passes.c (apply_ipa_transforms): Inline into only caller ...
18697         (execute_one_pass): ... here.  Properly bring in function
18698         bodies for nodes we want to apply IPA transforms to.
18700 2014-04-24  Cong Hou  <congh@google.com>
18702         PR tree-optimization/60896
18703         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18704         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18705         (vect_mark_pattern_stmts): Set the def type of all statements in
18706         PATTERN_DEF_SEQ as vect_internal_def.
18708 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
18710         * doc/extend.texi (PowerPC Built-in Functions): Document new
18711         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18712         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18714         * config/rs6000/predicates.md (const_0_to_3_operand): New
18715         predicate to match 0..3 integer constants.
18717         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18718         to support adding miscellaneous builtin functions.
18719         (BU_DFP_MISC_2): Likewise.
18720         (BU_P7_MISC_1): Likewise.
18721         (BU_P7_MISC_2): Likewise.
18722         (BU_P8V_MISC_3): Likewise.
18723         (BU_MISC_1): Likewise.
18724         (BU_MISC_2): Likewise.
18725         (DIVWE): Add extended divide builtin functions.
18726         (DIVWEO): Likewise.
18727         (DIVWEU): Likewise.
18728         (DIVWEUO): Likewise.
18729         (DIVDE): Likewise.
18730         (DIVDEO): Likewise.
18731         (DIVDEU): Likewise.
18732         (DIVDEUO): Likewise.
18733         (DXEX): Add decimal floating-point builtin functions.
18734         (DXEXQ): Likewise.
18735         (DDEDPD): Likewise.
18736         (DDEDPDQ): Likewise.
18737         (DENBCD): Likewise.
18738         (DENBCDQ): Likewise.
18739         (DIEX): Likewise.
18740         (DIEXQ): Likewise.
18741         (DSCLI): Likewise.
18742         (DSCLIQ): Likewise.
18743         (DSCRI): Likewise.
18744         (DSCRIQ): Likewise.
18745         (CDTBCD): Add new BCD builtin functions.
18746         (CBCDTD): Likewise.
18747         (ADDG6S): Likewise.
18748         (BCDADD): Likewise.
18749         (BCDADD_LT): Likewise.
18750         (BCDADD_EQ): Likewise.
18751         (BCDADD_GT): Likewise.
18752         (BCDADD_OV): Likewise.
18753         (BCDSUB): Likewise.
18754         (BCDSUB_LT): Likewise.
18755         (BCDSUB_EQ): Likewise.
18756         (BCDSUB_GT): Likewise.
18757         (BCDSUB_OV): Likewise.
18758         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18759         (UNPACK_TD): Likewise.
18760         (PACK_TF): Likewise.
18761         (UNPACK_TF): Likewise.
18762         (UNPACK_TF_0): Likewise.
18763         (UNPACK_TF_1): Likewise.
18764         (PACK_V1TI): Likewise.
18765         (UNPACK_V1TI): Likewise.
18767         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18768         support for decimal floating point builtin functions.
18769         (rs6000_expand_ternop_builtin): Add checks for the new builtin
18770         functions that take constant arguments.
18771         (rs6000_invalid_builtin): Add decimal floating point builtin support.
18772         (rs6000_init_builtins): Setup long double, _Decimal64, and
18773         _Decimal128 types for new builtin functions.
18774         (builtin_function_type): Set the unsigned flags appropriately for
18775         the new builtin functions.
18776         (rs6000_opt_masks): Add support for decimal floating point builtin
18777         functions.
18779         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18780         floating point builtin functions.
18781         (RS6000_BTM_COMMON): Likewise.
18782         (RS6000_BTI_long_double): Likewise.
18783         (RS6000_BTI_dfloat64): Likewise.
18784         (RS6000_BTI_dfloat128): Likewise.
18785         (long_double_type_internal_node): Likewise.
18786         (dfloat64_type_internal_node): Likewise.
18787         (dfloat128_type_internal_node): Likewise.
18789         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18790         2.07 bcd arithmetic instructions.
18791         (UNSPEC_BCDSUB): Likewise.
18792         (UNSPEC_BCD_OVERFLOW): Likewise.
18793         (UNSPEC_BCD_ADD_SUB): Likewise.
18794         (bcd_add_sub): Likewise.
18795         (BCD_TEST): Likewise.
18796         (bcd<bcd_add_sub>): Likewise.
18797         (bcd<bcd_add_sub>_test): Likewise.
18798         (bcd<bcd_add_sub>_test2): Likewise.
18799         (bcd<bcd_add_sub>_<code>): Likewise.
18800         (peephole2 for combined bcd ops): Likewise.
18802         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18803         decimal floating point builtin functions.
18804         (UNSPEC_DENBCD): Likewise.
18805         (UNSPEC_DXEX): Likewise.
18806         (UNSPEC_DIEX): Likewise.
18807         (UNSPEC_DSCLI): Likewise.
18808         (UNSPEC_DSCRI): Likewise.
18809         (D64_D128): Likewise.
18810         (dfp_suffix): Likewise.
18811         (dfp_ddedpd_<mode>): Likewise.
18812         (dfp_denbcd_<mode>): Likewise.
18813         (dfp_dxex_<mode>): Likewise.
18814         (dfp_diex_<mode>): Likewise.
18815         (dfp_dscli_<mode>): Likewise.
18816         (dfp_dscri_<mode>): Likewise.
18818         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18819         builtin functions.
18820         (UNSPEC_CDTBCD): Likewise.
18821         (UNSPEC_CBCDTD): Likewise.
18822         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18823         (UNSPEC_DIVEO): Likewise.
18824         (UNSPEC_DIVEU): Likewise.
18825         (UNSPEC_DIVEUO): Likewise.
18826         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18827         pack/unpack 128-bit types.
18828         (UNSPEC_PACK_128BIT): Likewise.
18829         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18830         (udiv<mode>3): Use idiv_ldiv mode attribute.
18831         (div<mode>3): Likewise.
18832         (addg6s): Add new BCD builtin functions.
18833         (cdtbcd): Likewise.
18834         (cbcdtd): Likewise.
18835         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18836         (div_extend): Likewise.
18837         (div<div_extend>_<mode>"): Likewise.
18838         (FP128_64): Add support for new builtin functions to pack/unpack
18839         128-bit types.
18840         (unpack<mode>): Likewise.
18841         (unpacktf_0): Likewise.
18842         (unpacktf_1): Likewise.
18843         (unpack<mode>_dm): Likewise.
18844         (unpack<mode>_nodm): Likewise.
18845         (pack<mode>): Likewise.
18846         (unpackv1ti): Likewise.
18847         (packv1ti): Likewise.
18849 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
18851         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18852         is disabled.
18854 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
18856         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18857         * gimplify.c (omp_is_private): Change last argument's type to int.
18858         Only diagnose lastprivate if the simd argument is 1, only diagnose
18859         linear if the simd argument is 2.
18860         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
18861         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
18862         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
18863         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18864         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18865         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18866         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18867         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18868         * tree-nested.c (convert_nonlocal_omp_clauses,
18869         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18871 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
18873         PR target/60822
18874         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18875         operand 1.
18877 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
18879         * flag-types.h (enum ivar_visibility): Add.
18881 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
18883         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18884         function * argument.
18886 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
18888         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18890 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
18891             Tom de Vries  <tom@codesourcery.com>
18893         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18894         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18895         reg-note.
18896         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18897         * emit-rtl.c (try_split): Same.
18899 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
18900             Tom de Vries  <tom@codesourcery.com>
18902         * common.opt (fuse-caller-save): New option.
18904 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
18906         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18907         elements for big-endian.
18909 2014-04-24  Richard Biener  <rguenther@suse.de>
18911         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18912         during TER and instead use the sepops interface for expanding
18913         non-GIMPLE_SINGLE_RHS.
18915 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18917         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18918         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18920 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18922         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18923         assembler 64-bit option.
18924         * configure: Regenerate.
18926 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18928         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18929         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18930         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18931         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18932         (TARGET_CRYPTO): Take TARGET_SIMD into account.
18934 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18936         * config/aarch64/aarch64-builtins.c
18937         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18938         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18939         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18940         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18941         builtins.
18942         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18943         (Vrevsuff): New mode attribute.
18945 2014-04-24  Terry Guo  <terry.guo@arm.com>
18947         * config/arm/arm.h (machine_function): Define variable
18948         after_arm_reorg here.
18949         * config/arm/arm.c (after_arm_reorg): Remove the definition.
18950         (arm_split_constant): Update the way to access variable
18951         after_arm_reorg.
18952         (arm_reorg): Ditto.
18953         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18955 2014-04-23  Tom de Vries  <tom@codesourcery.com>
18957         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18959 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
18961         * is-a.h: Update comments to reflect the following changes to the
18962         "pointerness" of the API, making the template parameter match the
18963         return type, allowing use of is-a.h with typedefs of pointers.
18964         (is_a_helper::cast): Return a T rather then a pointer to a T, so
18965         that the return type matches the parameter to the is_a_helper.
18966         (as_a): Likewise.
18967         (dyn_cast): Likewise.
18969         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18970         pointer from the is-a.h API.
18972         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18973         (is_a_helper <cgraph_node *>::test): ...this, matching change to
18974         is-a.h API.
18975         (is_a_helper <varpool_node>::test): Likewise, convert to...
18976         (is_a_helper <varpool_node *>::test): ...this.
18978         (varpool_first_variable): Update for removal of implicit pointer
18979         from the is-a.h API.
18980         (varpool_next_variable): Likewise.
18981         (varpool_first_static_initializer): Likewise.
18982         (varpool_next_static_initializer): Likewise.
18983         (varpool_first_defined_variable): Likewise.
18984         (varpool_next_defined_variable): Likewise.
18985         (cgraph_first_defined_function): Likewise.
18986         (cgraph_next_defined_function): Likewise.
18987         (cgraph_first_function): Likewise.
18988         (cgraph_next_function): Likewise.
18989         (cgraph_first_function_with_gimple_body): Likewise.
18990         (cgraph_next_function_with_gimple_body): Likewise.
18991         (cgraph_alias_target): Likewise.
18992         (varpool_alias_target): Likewise.
18993         (cgraph_function_or_thunk_node): Likewise.
18994         (varpool_variable_node): Likewise.
18995         (symtab_real_symbol_p): Likewise.
18996         * cgraphunit.c (referred_to_p): Likewise.
18997         (analyze_functions): Likewise.
18998         (handle_alias_pairs): Likewise.
18999         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19000         * gimple-ssa.h (gimple_vuse_op): Likewise.
19001         (gimple_vdef_op): Likewise.
19002         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19003         * gimple.c (gimple_build_asm_1): Likewise.
19004         (gimple_build_try): Likewise.
19005         (gimple_build_resx): Likewise.
19006         (gimple_build_eh_dispatch): Likewise.
19007         (gimple_build_omp_for): Likewise.
19008         (gimple_omp_for_set_clauses): Likewise.
19010         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19011         (is_a_helper <gimple_statement_asm *>::test): ...this.
19012         (is_a_helper <gimple_statement_bind>::test): Convert to...
19013         (is_a_helper <gimple_statement_bind *>::test): ...this.
19014         (is_a_helper <gimple_statement_call>::test): Convert to...
19015         (is_a_helper <gimple_statement_call *>::test): ...this.
19016         (is_a_helper <gimple_statement_catch>::test): Convert to...
19017         (is_a_helper <gimple_statement_catch *>::test): ...this.
19018         (is_a_helper <gimple_statement_resx>::test): Convert to...
19019         (is_a_helper <gimple_statement_resx *>::test): ...this.
19020         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19021         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19022         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19023         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19024         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19025         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19026         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19027         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19028         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19029         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19030         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19031         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19032         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19033         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19034         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19035         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19036         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19037         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19038         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19039         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19040         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19041         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19042         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19043         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19044         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19045         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19046         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19047         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19048         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19049         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19050         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19051         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19052         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19053         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19054         (is_a_helper <gimple_statement_phi>::test): Convert to...
19055         (is_a_helper <gimple_statement_phi *>::test): ...this.
19056         (is_a_helper <gimple_statement_transaction>::test): Convert to...
19057         (is_a_helper <gimple_statement_transaction *>::test): ...this.
19058         (is_a_helper <gimple_statement_try>::test): Convert to...
19059         (is_a_helper <gimple_statement_try *>::test): ...this.
19060         (is_a_helper <gimple_statement_wce>::test): Convert to...
19061         (is_a_helper <gimple_statement_wce *>::test): ...this.
19062         (is_a_helper <const gimple_statement_asm>::test): Convert to...
19063         (is_a_helper <const gimple_statement_asm *>::test): ...this.
19064         (is_a_helper <const gimple_statement_bind>::test): Convert to...
19065         (is_a_helper <const gimple_statement_bind *>::test): ...this.
19066         (is_a_helper <const gimple_statement_call>::test): Convert to...
19067         (is_a_helper <const gimple_statement_call *>::test): ...this.
19068         (is_a_helper <const gimple_statement_catch>::test): Convert to...
19069         (is_a_helper <const gimple_statement_catch *>::test): ...this.
19070         (is_a_helper <const gimple_statement_resx>::test): Convert to...
19071         (is_a_helper <const gimple_statement_resx *>::test): ...this.
19072         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19073         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19074         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19075         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19076         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19077         Convert to...
19078         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19079         ...this.
19080         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19081         Convert to...
19082         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19083         ...this.
19084         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19085         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19086         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19087         to...
19088         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19089         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19090         to...
19091         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19092         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19093         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19094         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19095         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19096         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19097         to...
19098         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19099         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19100         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19101         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19102         to...
19103         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19104         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19105         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19106         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19107         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19108         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19109         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19110         (is_a_helper <const gimple_statement_phi>::test): Convert to...
19111         (is_a_helper <const gimple_statement_phi *>::test): ...this.
19112         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19113         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19114         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19115         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19116         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19117         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19118         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19119         to...
19120         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19121         ...this.
19122         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19123         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19125         (gimple_use_ops): Update for removal of implicit pointer from the
19126         is-a.h API.
19127         (gimple_set_use_ops): Likewise.
19128         (gimple_vuse): Likewise.
19129         (gimple_vdef): Likewise.
19130         (gimple_vuse_ptr): Likewise.
19131         (gimple_vdef_ptr): Likewise.
19132         (gimple_set_vuse): Likewise.
19133         (gimple_set_vdef): Likewise.
19134         (gimple_omp_return_set_lhs): Likewise.
19135         (gimple_omp_return_lhs): Likewise.
19136         (gimple_omp_return_lhs_ptr): Likewise.
19137         (gimple_call_fntype): Likewise.
19138         (gimple_call_set_fntype): Likewise.
19139         (gimple_call_set_internal_fn): Likewise.
19140         (gimple_call_use_set): Likewise.
19141         (gimple_call_clobber_set): Likewise.
19142         (gimple_bind_vars): Likewise.
19143         (gimple_bind_set_vars): Likewise.
19144         (gimple_bind_body_ptr): Likewise.
19145         (gimple_bind_set_body): Likewise.
19146         (gimple_bind_add_stmt): Likewise.
19147         (gimple_bind_block): Likewise.
19148         (gimple_bind_set_block): Likewise.
19149         (gimple_asm_ninputs): Likewise.
19150         (gimple_asm_noutputs): Likewise.
19151         (gimple_asm_nclobbers): Likewise.
19152         (gimple_asm_nlabels): Likewise.
19153         (gimple_asm_input_op): Likewise.
19154         (gimple_asm_input_op_ptr): Likewise.
19155         (gimple_asm_output_op): Likewise.
19156         (gimple_asm_output_op_ptr): Likewise.
19157         (gimple_asm_set_output_op): Likewise.
19158         (gimple_asm_clobber_op): Likewise.
19159         (gimple_asm_set_clobber_op): Likewise.
19160         (gimple_asm_label_op): Likewise.
19161         (gimple_asm_set_label_op): Likewise.
19162         (gimple_asm_string): Likewise.
19163         (gimple_catch_types): Likewise.
19164         (gimple_catch_types_ptr): Likewise.
19165         (gimple_catch_handler_ptr): Likewise.
19166         (gimple_catch_set_types): Likewise.
19167         (gimple_catch_set_handler): Likewise.
19168         (gimple_eh_filter_types): Likewise.
19169         (gimple_eh_filter_types_ptr): Likewise.
19170         (gimple_eh_filter_failure_ptr): Likewise.
19171         (gimple_eh_filter_set_types): Likewise.
19172         (gimple_eh_filter_set_failure): Likewise.
19173         (gimple_eh_must_not_throw_fndecl): Likewise.
19174         (gimple_eh_must_not_throw_set_fndecl): Likewise.
19175         (gimple_eh_else_n_body_ptr): Likewise.
19176         (gimple_eh_else_e_body_ptr): Likewise.
19177         (gimple_eh_else_set_n_body): Likewise.
19178         (gimple_eh_else_set_e_body): Likewise.
19179         (gimple_try_eval_ptr): Likewise.
19180         (gimple_try_cleanup_ptr): Likewise.
19181         (gimple_try_set_eval): Likewise.
19182         (gimple_try_set_cleanup): Likewise.
19183         (gimple_wce_cleanup_ptr): Likewise.
19184         (gimple_wce_set_cleanup): Likewise.
19185         (gimple_phi_capacity): Likewise.
19186         (gimple_phi_num_args): Likewise.
19187         (gimple_phi_result): Likewise.
19188         (gimple_phi_result_ptr): Likewise.
19189         (gimple_phi_set_result): Likewise.
19190         (gimple_phi_arg): Likewise.
19191         (gimple_phi_set_arg): Likewise.
19192         (gimple_resx_region): Likewise.
19193         (gimple_resx_set_region): Likewise.
19194         (gimple_eh_dispatch_region): Likewise.
19195         (gimple_eh_dispatch_set_region): Likewise.
19196         (gimple_omp_critical_name): Likewise.
19197         (gimple_omp_critical_name_ptr): Likewise.
19198         (gimple_omp_critical_set_name): Likewise.
19199         (gimple_omp_for_clauses): Likewise.
19200         (gimple_omp_for_clauses_ptr): Likewise.
19201         (gimple_omp_for_set_clauses): Likewise.
19202         (gimple_omp_for_collapse): Likewise.
19203         (gimple_omp_for_index): Likewise.
19204         (gimple_omp_for_index_ptr): Likewise.
19205         (gimple_omp_for_set_index): Likewise.
19206         (gimple_omp_for_initial): Likewise.
19207         (gimple_omp_for_initial_ptr): Likewise.
19208         (gimple_omp_for_set_initial): Likewise.
19209         (gimple_omp_for_final): Likewise.
19210         (gimple_omp_for_final_ptr): Likewise.
19211         (gimple_omp_for_set_final): Likewise.
19212         (gimple_omp_for_incr): Likewise.
19213         (gimple_omp_for_incr_ptr): Likewise.
19214         (gimple_omp_for_set_incr): Likewise.
19215         (gimple_omp_for_pre_body_ptr): Likewise.
19216         (gimple_omp_for_set_pre_body): Likewise.
19217         (gimple_omp_parallel_clauses): Likewise.
19218         (gimple_omp_parallel_clauses_ptr): Likewise.
19219         (gimple_omp_parallel_set_clauses): Likewise.
19220         (gimple_omp_parallel_child_fn): Likewise.
19221         (gimple_omp_parallel_child_fn_ptr): Likewise.
19222         (gimple_omp_parallel_set_child_fn): Likewise.
19223         (gimple_omp_parallel_data_arg): Likewise.
19224         (gimple_omp_parallel_data_arg_ptr): Likewise.
19225         (gimple_omp_parallel_set_data_arg): Likewise.
19226         (gimple_omp_task_clauses): Likewise.
19227         (gimple_omp_task_clauses_ptr): Likewise.
19228         (gimple_omp_task_set_clauses): Likewise.
19229         (gimple_omp_task_child_fn): Likewise.
19230         (gimple_omp_task_child_fn_ptr): Likewise.
19231         (gimple_omp_task_set_child_fn): Likewise.
19232         (gimple_omp_task_data_arg): Likewise.
19233         (gimple_omp_task_data_arg_ptr): Likewise.
19234         (gimple_omp_task_set_data_arg): Likewise.
19235         (gimple_omp_taskreg_clauses): Likewise.
19236         (gimple_omp_taskreg_clauses_ptr): Likewise.
19237         (gimple_omp_taskreg_set_clauses): Likewise.
19238         (gimple_omp_taskreg_child_fn): Likewise.
19239         (gimple_omp_taskreg_child_fn_ptr): Likewise.
19240         (gimple_omp_taskreg_set_child_fn): Likewise.
19241         (gimple_omp_taskreg_data_arg): Likewise.
19242         (gimple_omp_taskreg_data_arg_ptr): Likewise.
19243         (gimple_omp_taskreg_set_data_arg): Likewise.
19244         (gimple_omp_task_copy_fn): Likewise.
19245         (gimple_omp_task_copy_fn_ptr): Likewise.
19246         (gimple_omp_task_set_copy_fn): Likewise.
19247         (gimple_omp_task_arg_size): Likewise.
19248         (gimple_omp_task_arg_size_ptr): Likewise.
19249         (gimple_omp_task_set_arg_size): Likewise.
19250         (gimple_omp_task_arg_align): Likewise.
19251         (gimple_omp_task_arg_align_ptr): Likewise.
19252         (gimple_omp_task_set_arg_align): Likewise.
19253         (gimple_omp_single_clauses): Likewise.
19254         (gimple_omp_single_clauses_ptr): Likewise.
19255         (gimple_omp_single_set_clauses): Likewise.
19256         (gimple_omp_target_clauses): Likewise.
19257         (gimple_omp_target_clauses_ptr): Likewise.
19258         (gimple_omp_target_set_clauses): Likewise.
19259         (gimple_omp_target_child_fn): Likewise.
19260         (gimple_omp_target_child_fn_ptr): Likewise.
19261         (gimple_omp_target_set_child_fn): Likewise.
19262         (gimple_omp_target_data_arg): Likewise.
19263         (gimple_omp_target_data_arg_ptr): Likewise.
19264         (gimple_omp_target_set_data_arg): Likewise.
19265         (gimple_omp_teams_clauses): Likewise.
19266         (gimple_omp_teams_clauses_ptr): Likewise.
19267         (gimple_omp_teams_set_clauses): Likewise.
19268         (gimple_omp_sections_clauses): Likewise.
19269         (gimple_omp_sections_clauses_ptr): Likewise.
19270         (gimple_omp_sections_set_clauses): Likewise.
19271         (gimple_omp_sections_control): Likewise.
19272         (gimple_omp_sections_control_ptr): Likewise.
19273         (gimple_omp_sections_set_control): Likewise.
19274         (gimple_omp_for_set_cond): Likewise.
19275         (gimple_omp_for_cond): Likewise.
19276         (gimple_omp_atomic_store_set_val): Likewise.
19277         (gimple_omp_atomic_store_val): Likewise.
19278         (gimple_omp_atomic_store_val_ptr): Likewise.
19279         (gimple_omp_atomic_load_set_lhs): Likewise.
19280         (gimple_omp_atomic_load_lhs): Likewise.
19281         (gimple_omp_atomic_load_lhs_ptr): Likewise.
19282         (gimple_omp_atomic_load_set_rhs): Likewise.
19283         (gimple_omp_atomic_load_rhs): Likewise.
19284         (gimple_omp_atomic_load_rhs_ptr): Likewise.
19285         (gimple_omp_continue_control_def): Likewise.
19286         (gimple_omp_continue_control_def_ptr): Likewise.
19287         (gimple_omp_continue_set_control_def): Likewise.
19288         (gimple_omp_continue_control_use): Likewise.
19289         (gimple_omp_continue_control_use_ptr): Likewise.
19290         (gimple_omp_continue_set_control_use): Likewise.
19291         (gimple_transaction_body_ptr): Likewise.
19292         (gimple_transaction_label): Likewise.
19293         (gimple_transaction_label_ptr): Likewise.
19294         (gimple_transaction_set_body): Likewise.
19295         (gimple_transaction_set_label): Likewise.
19297         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19298         * ipa-inline-analysis.c (inline_write_summary): Likewise.
19299         * ipa-ref.c (ipa_record_reference): Likewise.
19300         * ipa-reference.c (analyze_function): Likewise.
19301         (ipa_reference_write_optimization_summary): Likewise.
19302         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19303         (address_taken_from_non_vtable_p): Likewise.
19304         (comdat_can_be_unshared_p_1): Likewise.
19305         * lto-cgraph.c (lto_output_ref): Likewise.
19306         (add_references): Likewise.
19307         (compute_ltrans_boundary): Likewise.
19308         (output_symtab): Likewise.
19309         (input_ref): Likewise.
19310         (input_cgraph_1): Likewise.
19311         (output_cgraph_opt_summary): Likewise.
19312         * lto-streamer-out.c (lto_output): Likewise.
19313         (output_symbol_p): Likewise.
19314         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19315         (lsei_start_function_in_partition): Likewise.
19316         (lsei_next_variable_in_partition): Likewise.
19317         (lsei_start_variable_in_partition): Likewise.
19318         * symtab.c (insert_to_assembler_name_hash): Likewise.
19319         (unlink_from_assembler_name_hash): Likewise.
19320         (symtab_unregister_node): Likewise.
19321         (symtab_remove_node): Likewise.
19322         (dump_symtab_node): Likewise.
19323         (verify_symtab_base): Likewise.
19324         (verify_symtab_node): Likewise.
19325         (symtab_make_decl_local): Likewise.
19326         (symtab_alias_ultimate_target): Likewise.
19327         (symtab_resolve_alias): Likewise.
19328         (symtab_get_symbol_partitioning_class): Likewise.
19329         * tree-phinodes.c (allocate_phi_node): Likewise.
19330         (reserve_phi_args_for_new_edge): Likewise.
19331         (remove_phi_args): Likewise.
19332         * varpool.c (varpool_node_for_asm): Likewise.
19333         (varpool_remove_unreferenced_decls): Likewise.
19335 2014-04-23  Jeff Law  <law@redhat.com>
19337         PR tree-optimization/60902
19338         * tree-ssa-threadedge.c
19339         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19340         invalidate outputs from statements that do not produce useful
19341         outputs for threading.
19343 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
19345         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19346         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19347         machine descriptions for Stack Smashing Protector.
19349 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
19351         * aarch64.md (<optab>_rol<mode>3): New pattern.
19352         (<optab>_rolsi3_uxtw): Likewise.
19353         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19355 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
19357         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19358         (arm_cortex_a12_tune): Likewise.
19360 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19362         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19364 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19366         * config/arm/arm.md (arm_rev16si2): New pattern.
19367         (arm_rev16si2_alt): Likewise.
19368         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19370 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19372         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19373         (rev16<mode>2_alt): Likewise.
19374         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19375         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19376         (aarch_rev16_shleft_mask_imm_p): Likewise.
19377         (aarch_rev16_p_1): Likewise.
19378         (aarch_rev16_p): Likewise.
19379         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19380         (aarch_rev16_shright_mask_imm_p): Likewise.
19381         (aarch_rev16_shleft_mask_imm_p): Likewise.
19383 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19385         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19386         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19387         rev cost.
19388         (cortex_a53_extra_costs): Likewise.
19389         (cortex_a57_extra_costs): Likewise.
19390         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19391         (cortexa7_extra_costs): Likewise.
19392         (cortexa8_extra_costs): Likewise.
19393         (cortexa12_extra_costs): Likewise.
19394         (cortexa15_extra_costs): Likewise.
19395         (v7m_extra_costs): Likewise.
19396         (arm_new_rtx_costs): Handle BSWAP.
19398 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19400         * config/arm/arm.c (cortexa8_extra_costs): New table.
19401         (arm_cortex_a8_tune): New tuning struct.
19402         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19404 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19406         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19408 2014-04-23  Richard Biener  <rguenther@suse.de>
19410         * Makefile.in (OBJS): Remove loop-unswitch.o.
19411         * tree-pass.h (make_pass_rtl_unswitch): Remove.
19412         * passes.def (pass_rtl_unswitch): Likewise.
19413         * loop-init.c (gate_rtl_unswitch): Likewise.
19414         (rtl_unswitch): Likewise.
19415         (pass_data_rtl_unswitch): Likewise.
19416         (pass_rtl_unswitch): Likewise.
19417         (make_pass_rtl_unswitch): Likewise.
19418         * rtl.h (reversed_condition): Likewise.
19419         (compare_and_jump_seq): Likewise.
19420         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19421         and make static.
19422         * loop-unroll.c (compare_and_jump_seq): Likewise.
19424 2014-04-23  Richard Biener  <rguenther@suse.de>
19426         PR tree-optimization/60903
19427         * tree-ssa-loop-im.c (analyze_memory_references): Remove
19428         commented code block.
19429         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19430         loop flags to newly created BBs and edges.
19432 2014-04-23  Nick Clifton  <nickc@redhat.com>
19434         * config/msp430/msp430.c (msp430_handle_option): Move function
19435         to msp430-common.c
19436         (msp430_option_override): Simplify mcu and mcpu option handling.
19437         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
19438         support for -mhwmult command line option.
19439         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
19440         -mhwmult command line option.
19441         (msp430_hwmult_enabled): Delete.
19442         (msp43o_output_labelref): Add support for -mhwmult command line option.
19443         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19444         (umulsidi3): Likewise.
19445         * config/msp430/msp430.opt (mmcu): Add Report attribute.
19446         (mcpu, mlarge, msmall): Likewise.
19447         (mhwmult): New option.
19448         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19449         prototype.
19450         (msp430_is_f5_mcu): Remove prototype.
19451         (msp430_use_f5_series_hwmult): Add prototype.
19452         * config/msp430/msp430-opts.h: New file.
19453         * common/config/msp430: New directory.
19454         * common/config/msp430/msp430-common.c: New file.
19455         * config.gcc (msp430): Remove target_has_targetm_common.
19456         * doc/invoke.texi: Document -mhwmult command line option.
19458 2014-04-23  Nick Clifton  <nickc@redhat.com>
19460         * config/i386/cygwin.h (ENDFILE_SPEC): Include
19461         default-manifest.o if it can be found in the search path.
19462         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19464 2014-04-23  Terry Guo  <terry.guo@arm.com>
19466         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19468 2014-04-23  Richard Biener  <rguenther@suse.de>
19470         PR middle-end/60895
19471         * tree-inline.c (declare_return_variable): Use mark_addressable.
19473 2014-04-23  Richard Biener  <rguenther@suse.de>
19475         PR middle-end/60891
19476         * loop-init.c (loop_optimizer_init): Make sure to apply
19477         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19479 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
19481         PR sanitizer/60275
19482         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19483         New options.
19484         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19485         if flag_sanitize_undefined_trap_on_error.
19486         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19487         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19488         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19489         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19490         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19491         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19492         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19493         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19494         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19495         * ubsan.c (ubsan_instrument_unreachable): Return
19496         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19497         (ubsan_expand_null_ifn): Emit __builtin_trap ()
19498         if flag_sanitize_undefined_trap_on_error and
19499         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19500         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19501         instrument_bool_enum_load): Emit __builtin_trap () if
19502         flag_sanitize_undefined_trap_on_error and
19503         __builtin_handle_*_abort () if !flag_sanitize_recover.
19504         * doc/invoke.texi (-fsanitize-recover,
19505         -fsanitize-undefined-trap-on-error): Document.
19507 2014-04-22  Christian Bruel  <christian.bruel@st.com>
19509         * config/sh/sh.md (mov<mode>): Replace movQIHI.
19510          Force immediates to SImode.
19512 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
19514         * config/nios2/nios2.md (UNSPEC_ROUND): New.
19515         (lroundsfsi2): New.
19516         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19517         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19518         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19519         (nios2_fpu_insn): Add entry for round.
19520         (N2FPU_NO_ERRNO_P): Define.
19521         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19522         flag_errno_math.
19523         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19525 2014-04-22  Richard Henderson  <rth@redhat.com>
19527         * config/aarch64/aarch64 (addti3, subti3): New expanders.
19528         (add<GPI>3_compare0): Remove leading * from name.
19529         (add<GPI>3_carryin): Likewise.
19530         (sub<GPI>3_compare0): Likewise.
19531         (sub<GPI>3_carryin): Likewise.
19532         (<su_optab>mulditi3): New expander.
19533         (multi3): New expander.
19534         (madd<GPI>): Remove leading * from name.
19536 2014-04-22  Martin Jambor  <mjambor@suse.cz>
19538         * cgraphclones.c (cgraph_function_versioning): Copy
19539         ipa_transforms_to_apply instead of asserting it is empty.
19541 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
19543         PR target/60868
19544         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19545         on count_exp to get mode.
19547 2014-04-22  Andrew Pinski  <apinski@cavium.com>
19549         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19550         Handle TLS for ILP32.
19551         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19552         (tlsie_small_<mode>): this and handle PTR.
19553         (tlsie_small_sidi): New pattern.
19554         (tlsle_small): Change to an expand to handle ILP32.
19555         (tlsle_small_<mode>): New pattern.
19556         (tlsdesc_small): Rename to ...
19557         (tlsdesc_small_<mode>): this and handle PTR.
19559 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19561         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19563 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
19565         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19566         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19567         (aarch64_types_signed_poly_qualifiers): Likewise.
19568         (aarch64_types_unsigned_signed_qualifiers): Likewise.
19569         (aarch64_types_poly_signed_qualifiers): Likewise.
19570         (TYPES_REINTERP_SS): Type macro added.
19571         (TYPES_REINTERP_SU): Likewise.
19572         (TYPES_REINTERP_SP): Likewise.
19573         (TYPES_REINTERP_US): Likewise.
19574         (TYPES_REINTERP_PS): Likewise.
19575         (aarch64_fold_builtin): New expression folding added.
19576         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19577         Declarations removed.
19578         (REINTERP_SS): Declarations added.
19579         (REINTERP_US): Likewise.
19580         (REINTERP_PS): Likewise.
19581         (REINTERP_SU): Likewise.
19582         (REINTERP_SP): Likewise.
19583         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19584         (vreinterpretq_p8_f64): Likewise.
19585         (vreinterpret_p16_f64): Likewise.
19586         (vreinterpretq_p16_f64): Likewise.
19587         (vreinterpret_f32_f64): Likewise.
19588         (vreinterpretq_f32_f64): Likewise.
19589         (vreinterpret_f64_f32): Likewise.
19590         (vreinterpret_f64_p8): Likewise.
19591         (vreinterpret_f64_p16): Likewise.
19592         (vreinterpret_f64_s8): Likewise.
19593         (vreinterpret_f64_s16): Likewise.
19594         (vreinterpret_f64_s32): Likewise.
19595         (vreinterpret_f64_s64): Likewise.
19596         (vreinterpret_f64_u8): Likewise.
19597         (vreinterpret_f64_u16): Likewise.
19598         (vreinterpret_f64_u32): Likewise.
19599         (vreinterpret_f64_u64): Likewise.
19600         (vreinterpretq_f64_f32): Likewise.
19601         (vreinterpretq_f64_p8): Likewise.
19602         (vreinterpretq_f64_p16): Likewise.
19603         (vreinterpretq_f64_s8): Likewise.
19604         (vreinterpretq_f64_s16): Likewise.
19605         (vreinterpretq_f64_s32): Likewise.
19606         (vreinterpretq_f64_s64): Likewise.
19607         (vreinterpretq_f64_u8): Likewise.
19608         (vreinterpretq_f64_u16): Likewise.
19609         (vreinterpretq_f64_u32): Likewise.
19610         (vreinterpretq_f64_u64): Likewise.
19611         (vreinterpret_s64_f64): Likewise.
19612         (vreinterpretq_s64_f64): Likewise.
19613         (vreinterpret_u64_f64): Likewise.
19614         (vreinterpretq_u64_f64): Likewise.
19615         (vreinterpret_s8_f64): Likewise.
19616         (vreinterpretq_s8_f64): Likewise.
19617         (vreinterpret_s16_f64): Likewise.
19618         (vreinterpretq_s16_f64): Likewise.
19619         (vreinterpret_s32_f64): Likewise.
19620         (vreinterpretq_s32_f64): Likewise.
19621         (vreinterpret_u8_f64): Likewise.
19622         (vreinterpretq_u8_f64): Likewise.
19623         (vreinterpret_u16_f64): Likewise.
19624         (vreinterpretq_u16_f64): Likewise.
19625         (vreinterpret_u32_f64): Likewise.
19626         (vreinterpretq_u32_f64): Likewise.
19628 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
19630         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19631         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19632         (vreinterpret_p8_s8): Likewise.
19633         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19634         (vreinterpret_p8_s16): Likewise.
19635         (vreinterpret_p8_s32): Likewise.
19636         (vreinterpret_p8_s64): Likewise.
19637         (vreinterpret_p8_f32): Likewise.
19638         (vreinterpret_p8_u8): Likewise.
19639         (vreinterpret_p8_u16): Likewise.
19640         (vreinterpret_p8_u32): Likewise.
19641         (vreinterpret_p8_u64): Likewise.
19642         (vreinterpret_p8_p16): Likewise.
19643         (vreinterpretq_p8_s8): Likewise.
19644         (vreinterpretq_p8_s16): Likewise.
19645         (vreinterpretq_p8_s32): Likewise.
19646         (vreinterpretq_p8_s64): Likewise.
19647         (vreinterpretq_p8_f32): Likewise.
19648         (vreinterpretq_p8_u8): Likewise.
19649         (vreinterpretq_p8_u16): Likewise.
19650         (vreinterpretq_p8_u32): Likewise.
19651         (vreinterpretq_p8_u64): Likewise.
19652         (vreinterpretq_p8_p16): Likewise.
19653         (vreinterpret_p16_s8): Likewise.
19654         (vreinterpret_p16_s16): Likewise.
19655         (vreinterpret_p16_s32): Likewise.
19656         (vreinterpret_p16_s64): Likewise.
19657         (vreinterpret_p16_f32): Likewise.
19658         (vreinterpret_p16_u8): Likewise.
19659         (vreinterpret_p16_u16): Likewise.
19660         (vreinterpret_p16_u32): Likewise.
19661         (vreinterpret_p16_u64): Likewise.
19662         (vreinterpret_p16_p8): Likewise.
19663         (vreinterpretq_p16_s8): Likewise.
19664         (vreinterpretq_p16_s16): Likewise.
19665         (vreinterpretq_p16_s32): Likewise.
19666         (vreinterpretq_p16_s64): Likewise.
19667         (vreinterpretq_p16_f32): Likewise.
19668         (vreinterpretq_p16_u8): Likewise.
19669         (vreinterpretq_p16_u16): Likewise.
19670         (vreinterpretq_p16_u32): Likewise.
19671         (vreinterpretq_p16_u64): Likewise.
19672         (vreinterpretq_p16_p8): Likewise.
19673         (vreinterpret_f32_s8): Likewise.
19674         (vreinterpret_f32_s16): Likewise.
19675         (vreinterpret_f32_s32): Likewise.
19676         (vreinterpret_f32_s64): Likewise.
19677         (vreinterpret_f32_u8): Likewise.
19678         (vreinterpret_f32_u16): Likewise.
19679         (vreinterpret_f32_u32): Likewise.
19680         (vreinterpret_f32_u64): Likewise.
19681         (vreinterpret_f32_p8): Likewise.
19682         (vreinterpret_f32_p16): Likewise.
19683         (vreinterpretq_f32_s8): Likewise.
19684         (vreinterpretq_f32_s16): Likewise.
19685         (vreinterpretq_f32_s32): Likewise.
19686         (vreinterpretq_f32_s64): Likewise.
19687         (vreinterpretq_f32_u8): Likewise.
19688         (vreinterpretq_f32_u16): Likewise.
19689         (vreinterpretq_f32_u32): Likewise.
19690         (vreinterpretq_f32_u64): Likewise.
19691         (vreinterpretq_f32_p8): Likewise.
19692         (vreinterpretq_f32_p16): Likewise.
19693         (vreinterpret_s64_s8): Likewise.
19694         (vreinterpret_s64_s16): Likewise.
19695         (vreinterpret_s64_s32): Likewise.
19696         (vreinterpret_s64_f32): Likewise.
19697         (vreinterpret_s64_u8): Likewise.
19698         (vreinterpret_s64_u16): Likewise.
19699         (vreinterpret_s64_u32): Likewise.
19700         (vreinterpret_s64_u64): Likewise.
19701         (vreinterpret_s64_p8): Likewise.
19702         (vreinterpret_s64_p16): Likewise.
19703         (vreinterpretq_s64_s8): Likewise.
19704         (vreinterpretq_s64_s16): Likewise.
19705         (vreinterpretq_s64_s32): Likewise.
19706         (vreinterpretq_s64_f32): Likewise.
19707         (vreinterpretq_s64_u8): Likewise.
19708         (vreinterpretq_s64_u16): Likewise.
19709         (vreinterpretq_s64_u32): Likewise.
19710         (vreinterpretq_s64_u64): Likewise.
19711         (vreinterpretq_s64_p8): Likewise.
19712         (vreinterpretq_s64_p16): Likewise.
19713         (vreinterpret_u64_s8): Likewise.
19714         (vreinterpret_u64_s16): Likewise.
19715         (vreinterpret_u64_s32): Likewise.
19716         (vreinterpret_u64_s64): Likewise.
19717         (vreinterpret_u64_f32): Likewise.
19718         (vreinterpret_u64_u8): Likewise.
19719         (vreinterpret_u64_u16): Likewise.
19720         (vreinterpret_u64_u32): Likewise.
19721         (vreinterpret_u64_p8): Likewise.
19722         (vreinterpret_u64_p16): Likewise.
19723         (vreinterpretq_u64_s8): Likewise.
19724         (vreinterpretq_u64_s16): Likewise.
19725         (vreinterpretq_u64_s32): Likewise.
19726         (vreinterpretq_u64_s64): Likewise.
19727         (vreinterpretq_u64_f32): Likewise.
19728         (vreinterpretq_u64_u8): Likewise.
19729         (vreinterpretq_u64_u16): Likewise.
19730         (vreinterpretq_u64_u32): Likewise.
19731         (vreinterpretq_u64_p8): Likewise.
19732         (vreinterpretq_u64_p16): Likewise.
19733         (vreinterpret_s8_s16): Likewise.
19734         (vreinterpret_s8_s32): Likewise.
19735         (vreinterpret_s8_s64): Likewise.
19736         (vreinterpret_s8_f32): Likewise.
19737         (vreinterpret_s8_u8): Likewise.
19738         (vreinterpret_s8_u16): Likewise.
19739         (vreinterpret_s8_u32): Likewise.
19740         (vreinterpret_s8_u64): Likewise.
19741         (vreinterpret_s8_p8): Likewise.
19742         (vreinterpret_s8_p16): Likewise.
19743         (vreinterpretq_s8_s16): Likewise.
19744         (vreinterpretq_s8_s32): Likewise.
19745         (vreinterpretq_s8_s64): Likewise.
19746         (vreinterpretq_s8_f32): Likewise.
19747         (vreinterpretq_s8_u8): Likewise.
19748         (vreinterpretq_s8_u16): Likewise.
19749         (vreinterpretq_s8_u32): Likewise.
19750         (vreinterpretq_s8_u64): Likewise.
19751         (vreinterpretq_s8_p8): Likewise.
19752         (vreinterpretq_s8_p16): Likewise.
19753         (vreinterpret_s16_s8): Likewise.
19754         (vreinterpret_s16_s32): Likewise.
19755         (vreinterpret_s16_s64): Likewise.
19756         (vreinterpret_s16_f32): Likewise.
19757         (vreinterpret_s16_u8): Likewise.
19758         (vreinterpret_s16_u16): Likewise.
19759         (vreinterpret_s16_u32): Likewise.
19760         (vreinterpret_s16_u64): Likewise.
19761         (vreinterpret_s16_p8): Likewise.
19762         (vreinterpret_s16_p16): Likewise.
19763         (vreinterpretq_s16_s8): Likewise.
19764         (vreinterpretq_s16_s32): Likewise.
19765         (vreinterpretq_s16_s64): Likewise.
19766         (vreinterpretq_s16_f32): Likewise.
19767         (vreinterpretq_s16_u8): Likewise.
19768         (vreinterpretq_s16_u16): Likewise.
19769         (vreinterpretq_s16_u32): Likewise.
19770         (vreinterpretq_s16_u64): Likewise.
19771         (vreinterpretq_s16_p8): Likewise.
19772         (vreinterpretq_s16_p16): Likewise.
19773         (vreinterpret_s32_s8): Likewise.
19774         (vreinterpret_s32_s16): Likewise.
19775         (vreinterpret_s32_s64): Likewise.
19776         (vreinterpret_s32_f32): Likewise.
19777         (vreinterpret_s32_u8): Likewise.
19778         (vreinterpret_s32_u16): Likewise.
19779         (vreinterpret_s32_u32): Likewise.
19780         (vreinterpret_s32_u64): Likewise.
19781         (vreinterpret_s32_p8): Likewise.
19782         (vreinterpret_s32_p16): Likewise.
19783         (vreinterpretq_s32_s8): Likewise.
19784         (vreinterpretq_s32_s16): Likewise.
19785         (vreinterpretq_s32_s64): Likewise.
19786         (vreinterpretq_s32_f32): Likewise.
19787         (vreinterpretq_s32_u8): Likewise.
19788         (vreinterpretq_s32_u16): Likewise.
19789         (vreinterpretq_s32_u32): Likewise.
19790         (vreinterpretq_s32_u64): Likewise.
19791         (vreinterpretq_s32_p8): Likewise.
19792         (vreinterpretq_s32_p16): Likewise.
19793         (vreinterpret_u8_s8): Likewise.
19794         (vreinterpret_u8_s16): Likewise.
19795         (vreinterpret_u8_s32): Likewise.
19796         (vreinterpret_u8_s64): Likewise.
19797         (vreinterpret_u8_f32): Likewise.
19798         (vreinterpret_u8_u16): Likewise.
19799         (vreinterpret_u8_u32): Likewise.
19800         (vreinterpret_u8_u64): Likewise.
19801         (vreinterpret_u8_p8): Likewise.
19802         (vreinterpret_u8_p16): Likewise.
19803         (vreinterpretq_u8_s8): Likewise.
19804         (vreinterpretq_u8_s16): Likewise.
19805         (vreinterpretq_u8_s32): Likewise.
19806         (vreinterpretq_u8_s64): Likewise.
19807         (vreinterpretq_u8_f32): Likewise.
19808         (vreinterpretq_u8_u16): Likewise.
19809         (vreinterpretq_u8_u32): Likewise.
19810         (vreinterpretq_u8_u64): Likewise.
19811         (vreinterpretq_u8_p8): Likewise.
19812         (vreinterpretq_u8_p16): Likewise.
19813         (vreinterpret_u16_s8): Likewise.
19814         (vreinterpret_u16_s16): Likewise.
19815         (vreinterpret_u16_s32): Likewise.
19816         (vreinterpret_u16_s64): Likewise.
19817         (vreinterpret_u16_f32): Likewise.
19818         (vreinterpret_u16_u8): Likewise.
19819         (vreinterpret_u16_u32): Likewise.
19820         (vreinterpret_u16_u64): Likewise.
19821         (vreinterpret_u16_p8): Likewise.
19822         (vreinterpret_u16_p16): Likewise.
19823         (vreinterpretq_u16_s8): Likewise.
19824         (vreinterpretq_u16_s16): Likewise.
19825         (vreinterpretq_u16_s32): Likewise.
19826         (vreinterpretq_u16_s64): Likewise.
19827         (vreinterpretq_u16_f32): Likewise.
19828         (vreinterpretq_u16_u8): Likewise.
19829         (vreinterpretq_u16_u32): Likewise.
19830         (vreinterpretq_u16_u64): Likewise.
19831         (vreinterpretq_u16_p8): Likewise.
19832         (vreinterpretq_u16_p16): Likewise.
19833         (vreinterpret_u32_s8): Likewise.
19834         (vreinterpret_u32_s16): Likewise.
19835         (vreinterpret_u32_s32): Likewise.
19836         (vreinterpret_u32_s64): Likewise.
19837         (vreinterpret_u32_f32): Likewise.
19838         (vreinterpret_u32_u8): Likewise.
19839         (vreinterpret_u32_u16): Likewise.
19840         (vreinterpret_u32_u64): Likewise.
19841         (vreinterpret_u32_p8): Likewise.
19842         (vreinterpret_u32_p16): Likewise.
19843         (vreinterpretq_u32_s8): Likewise.
19844         (vreinterpretq_u32_s16): Likewise.
19845         (vreinterpretq_u32_s32): Likewise.
19846         (vreinterpretq_u32_s64): Likewise.
19847         (vreinterpretq_u32_f32): Likewise.
19848         (vreinterpretq_u32_u8): Likewise.
19849         (vreinterpretq_u32_u16): Likewise.
19850         (vreinterpretq_u32_u64): Likewise.
19851         (vreinterpretq_u32_p8): Likewise.
19852         (vreinterpretq_u32_p16): Likewise.
19854 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
19856         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19857         Pattern extended.
19858         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19859         (sqabs): Likewise.
19860         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19861         (vqnegd_s64): Likewise.
19862         (vqabs_s64): Likewise.
19863         (vqabsd_s64): Likewise.
19865 2014-04-22  Richard Henderson  <rth@redhat.com>
19867         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19868         computation to the top of the loop.
19870 2014-04-22  Renlin  <renlin.li@arm.com>
19871             Jiong Wang  <jiong.wang@arm.com>
19873         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19874         * config/aarch64/aarch64.c (aarch64_layout_frame)
19875         (aarch64_initial_elimination_offset): Likewise.
19877 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19879         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19880         Fix indentation.
19882 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
19884         * machmode.h (bitwise_mode_for_mode): Declare.
19885         * stor-layout.h (bitwise_type_for_mode): Likewise.
19886         * stor-layout.c (bitwise_mode_for_mode): New function.
19887         (bitwise_type_for_mode): Likewise.
19888         * builtins.c (fold_builtin_memory_op): Use it instead of
19889         int_mode_for_mode and build_nonstandard_integer_type.
19891 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19893         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19894         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19895         (*-*-solaris2*): Simplify.
19896         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19897         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19898         *-*-solaris2.9* handling.
19900         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19901         as bug.
19902         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19903         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19904         handling, simplify.
19905         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19906         * configure: Regenerate.
19908         * config/i386/sol2-9.h: Remove.
19910         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19911         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19912         Remove Solaris 9 references.
19914 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
19916         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19917         (floatuns<GPI:mode><GPF:mode>2): Remove.
19918         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19919         and floatuns conversions.
19920         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19921         and floatuns conversions.
19922         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19923         (w1,w2): New mode attributes for inequal width conversions.
19925 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
19927         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19928         the output asm format.
19930 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
19932         * config/aarch64/aarch64-simd.md
19933         (aarch64_cm<optab>di): Always split.
19934         (*aarch64_cm<optab>di): New.
19935         (aarch64_cmtstdi): Always split.
19936         (*aarch64_cmtstdi): New.
19938 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
19940         PR tree-optimization/60823
19941         * omp-low.c (ipa_simd_modify_function_body): Go through
19942         all SSA_NAMEs and for those refering to vector arguments
19943         which are going to be replaced adjust SSA_NAME_VAR and,
19944         if it is a default definition, change it into a non-default
19945         definition assigned at the beginning of function from new_decl.
19946         (ipa_simd_modify_stmt_ops): Rewritten.
19947         * tree-dfa.c (set_ssa_default_def): When removing default def,
19948         check for NULL loc instead of NULL *loc.
19950 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19952         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19953         restrictions on core registers for DImode values in Thumb2.
19955 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
19957         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19958         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19960 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
19962         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19963         (*iordi_notzesidi_di): Likewise.
19964         (*iordi_notsesidi_di): Likewise.
19966 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
19968         * config/arm/arm-protos.h (tune_params): New struct members.
19969         * config/arm/arm.c: Initialise tune_params per processor.
19970         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19971         for speed, based on new tune_params.
19973 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
19975         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19976         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19977         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19978         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19979         * config/aarch64/arm_neon.h (vrnd_f64): Added.
19980         (vrnda_f64): Likewise.
19981         (vrndi_f64): Likewise.
19982         (vrndm_f64): Likewise.
19983         (vrndn_f64): Likewise.
19984         (vrndp_f64): Likewise.
19985         (vrndx_f64): Likewise.
19987 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19989         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19990         GET_MODE_SIZE argument is enum machine_mode.
19992 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
19994         PR target/60910
19995         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19996         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19998 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
20000         PR middle-end/60281
20001         * asan.c (asan_emit_stack_protection): Force the base to align to
20002         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
20003         appropriate bits if STRICT_ALIGNMENT.
20004         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20005         when asan is on.
20006         (expand_used_vars): Leave a space in the stack frame for alignment
20007         if STRICT_ALIGNMENT.
20009 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
20011         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20012         than a gimple.
20013         (gimple_store_p): Likewise.
20014         (gimple_assign_load_p): Likewise.
20015         (gimple_assign_cast_p): Likewise.
20016         (gimple_clobber_p): Likewise.
20018         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20019         rather than a gimple.
20020         (gimple_assign_cast_p): Likewise.
20022 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
20024         PR target/60735
20025         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20026         If mode is DDmode and TARGET_E500_DOUBLE allow move.
20028         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20029         more debug information for E500 if -mdebug=reg.
20031 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
20033         PR target/60909
20034         * config/i386/i386.c (ix86_expand_builtin)
20035         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20036         register for target RTX.
20037         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20039 2014-04-18  Cong Hou  <congh@google.com>
20041         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20042         the widen-mult pattern by handling two operands with different sizes,
20043         and operands whose size is smaller than half of the result type.
20045 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
20047         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20048         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20049         (do_estimate_edge_time): Compute it.
20050         * ipa-inline.c (want_inline_small_function_p): Bypass
20051         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20053 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
20055         * ipa-inline.c (spec_rem): New static variable.
20056         (dump_overall_stats): New function.
20057         (dump_inline_stats): New function.
20059 2014-04-18  Richard Henderson  <rth@redhat.com>
20061         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20062         to GET_MODE_SIZE, not a reg_class_t.
20064 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20066         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20067         (vsx_xxmrglw_<mode>): Likewise.
20069 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
20071         PR target/60876
20072         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20073         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20074         (rs6000_init_hard_regno_mode_ok): Likewise.
20076 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
20078         * ipa-inline.c (inline_small_functions): Account only non-cold
20079         functions.
20080         * doc/invoke.texi (inline-unit-growth): Update documentation.
20082 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
20084         * config/rs6000/rs6000.md (addti3, subti3): New.
20086 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
20088         PR target/60863
20089         * config/i386/i386.c (ix86_expand_clear): Remove outdated
20090         comment.  Check optimize_insn_for_size_p instead of
20091         optimize_insn_for_speed_p.
20093 2014-04-17  Martin Jambor  <mjambor@suse.cz>
20095         * gimple-iterator.c (gsi_start_edge): New function.
20096         * gimple-iterator.h (gsi_start_edge): Declare.
20097         * tree-sra.c (single_non_eh_succ): New function.
20098         (disqualify_ops_if_throwing_stmt): Renamed to
20099         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
20100         having one non-EH successor BB.
20101         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20102         generate loads into replacements.
20103         (sra_modify_assign): Likewise and and also use the simple path for
20104         such statements.
20105         (sra_modify_function_body): Commit statements on edges.
20107 2014-04-17  Richard Biener  <rguenther@suse.de>
20109         PR middle-end/60849
20110         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20111         comparison results and add clarifying comment.
20113 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
20115         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20116         (blank_mode): Initialize it.
20117         (emit_mode_size_inline, emit_mode_nunits_inline,
20118         emit_mode_inner_inline): New functions.
20119         (emit_insn_modes_h): Call them and surround their output with
20120         #if GCC_VERSION >= 4001 ... #endif.
20121         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20122         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20123         mode_* arrays if the argument is __builtin_constant_p.
20124         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20125         is enum machine_mode.
20127 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
20129         * passes.c (opt_pass::execute): Adjust.
20130         (pass_manager::execute_pass_mode_switching): Likewise.
20131         (early_local_passes::execute): Likewise.
20132         (execute_one_pass): Pass cfun to the pass's execute method.
20133         * tree-pass.h (opt_pass::execute): Add function * argument.
20134         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20135         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20136         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20137         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20138         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20139         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20140         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20141         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20142         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20143         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20144         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20145         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20146         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20147         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20148         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20149         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20150         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20151         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20152         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20153         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20154         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20155         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20156         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20157         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20158         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20159         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20160         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20161         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20162         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20163         Adjust.
20165 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
20167         * passes.c (opt_pass::gate): Take function * argument.
20168         (gate_all_early_local_passes): Merge into
20169         (early_local_passes::gate): this.
20170         (gate_all_early_optimizations): Merge into
20171         (all_early_optimizations::gate): this.
20172         (gate_all_optimizations): Mege into
20173         (all_optimizations::gate): this.
20174         (gate_all_optimizations_g): Merge into
20175         (all_optimizations_g::gate): this.
20176         (gate_rest_of_compilation): Mege into
20177         (rest_of_compilation::gate): this.
20178         (gate_postreload): Merge into
20179         (postreload::gate): this.
20180         (dump_one_pass): Pass cfun to the pass's gate method.
20181         (execute_ipa_summary_passes): Likewise.
20182         (execute_one_pass): Likewise.
20183         (ipa_write_summaries_2): Likewise.
20184         (ipa_write_optimization_summaries_1): Likewise.
20185         (ipa_read_summaries_1): Likewise.
20186         (ipa_read_optimization_summaries_1): Likewise.
20187         (execute_ipa_stmt_fixups): Likewise.
20188         * tree-pass.h (opt_pass::gate): Add function * argument.
20189         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20190         combine-stack-adj.c, combine.c, compare-elim.c,
20191         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20192         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20193         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20194         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
20195         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20196         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20197         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20198         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20199         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20200         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20201         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20202         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20203         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20204         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20205         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20206         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20207         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20208         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20209         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20210         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20211         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20212         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20213         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20214         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20215         var-tracking.c, vtable-verify.c, web.c: Adjust.
20217 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
20219         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20220         * configure: Regenerate.
20222 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
20224         * passes.c (dump_one_pass): don't check pass->has_gate.
20225         (execute_ipa_summary_passes): Likewise.
20226         (execute_one_pass): Likewise.
20227         (ipa_write_summaries_2): Likewise.
20228         (ipa_write_optimization_summaries_1): Likewise.
20229         (ipa_read_optimization_summaries_1): Likewise.
20230         (execute_ipa_stmt_fixups): Likewise.
20231         * tree-pass.h (pass_data::has_gate): Remove.
20232         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20233         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20234         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20235         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20236         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20237         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20238         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20239         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20240         gimple-low.c, gimple-ssa-isolate-paths.c,
20241         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20242         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20243         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20244         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20245         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20246         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20247         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20248         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20249         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20250         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20251         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20252         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20253         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20254         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20255         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20256         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20257         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20258         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20259         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20260         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20261         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20262         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20263         Adjust.
20265 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
20267         * pass_manager.h (pass_manager::register_dump_files_1): Remove
20268         declaration.
20269         * passes.c (pass_manager::register_dump_files_1): Merge into
20270         (pass_manager::register_dump_files): this, and remove its handling of
20271         properties since the pass always has the properties anyway.
20272         (pass_manager::pass_manager): Adjust.
20274 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
20276         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20277         * passes.c (pass_manager::register_dump_files_1): Remove dead code
20278         dealing with properties.
20279         (pass_manager::register_dump_files): Adjust.
20281 2014-03-20  Mark Wielaard  <mjw@redhat.com>
20283         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20284         then represent the bound as normal constant value.
20286 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
20288         PR target/60847
20289         Forward port from 4.8 branch
20290         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
20292         * config/i386/bmiintrin.h (_blsi_u32): New.
20293         (_blsi_u64): Ditto.
20294         (_blsr_u32): Ditto.
20295         (_blsr_u64): Ditto.
20296         (_blsmsk_u32): Ditto.
20297         (_blsmsk_u64): Ditto.
20298         (_tzcnt_u32): Ditto.
20299         (_tzcnt_u64): Ditto.
20301 2014-04-17  Kito Cheng  <kito@0xlab.org>
20303         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20305 2014-04-17  Richard Biener  <rguenther@suse.de>
20307         PR middle-end/60849
20308         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20309         boolean results for comparisons.
20311 2014-04-17  Richard Biener  <rguenther@suse.de>
20313         PR tree-optimization/60836
20314         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20315         initial PHI args to be gimple values.
20317 2014-04-17  Richard Biener  <rguenther@suse.de>
20319         PR tree-optimization/60841
20320         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20321         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20322         of stmts to SLP build.
20323         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20324         (vect_analyze_slp): Likewise.
20325         (vect_analyze_slp_instance): Likewise.
20326         (vect_build_slp_tree): Limit overall SLP tree growth.
20327         * tree-vectorizer.h (vect_analyze_data_refs,
20328         vect_analyze_slp): Adjust prototypes.
20330 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
20332         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20333         Silvermont.
20335 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
20337         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20338         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20339         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20340         for TARGET_SLOW_PSHUFB
20342 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
20344         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20345         * config/i386/i386.c (intel_cost): Ditto.
20347 2014-04-17  Joey Ye  <joey.ye@arm.com>
20349         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20351 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
20353         * opts.c (common_handle_option): Disable -fipa-reference coorectly
20354         with -fuse-profile.
20356 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
20358         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20359         (type_all_derivations_known_p): New predicate.
20360         (type_all_ctors_visible_p): New predicate.
20361         (type_possibly_instantiated_p): New predicate.
20362         (get_odr_type): Compute all_derivations_known.
20363         (dump_odr_type): Dump the flag.
20364         (maybe_record_type): Cleanup.
20365         (record_target_from_binfo): Add bases_to_consider array;
20366         record bases for types w/o instances and skip CXX destructor.
20367         (possible_polymorphic_call_targets_1): Add bases_to_consider
20368         and consider_construction parameters; check if type may have instance.
20369         (get_polymorphic_call_info): Set maybe_in_construction to true
20370         when we know nothing.
20371         (record_targets_from_bases): Skip CXX destructors; they are
20372         never called for types in construction.
20373         (possible_polymorphic_call_targets): Do not record target when
20374         type may not have instance.
20376 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
20378         PR ipa/60854
20379         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20380         external aliases alive, too.
20382 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
20384         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20385         definition.
20387 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
20389         * final.c (compute_alignments): Do not apply loop alignment to a block
20390         falling through to the exit.
20392 2014-04-16  Catherine Moore  <clm@codesourcery.com>
20394         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20395         Adjust constraints for microMIPS store patterns.
20397 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
20399         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20401 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
20403         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20404         (append_use): Run at -O0.
20405         (append_vdef): Likewise.
20406         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20407         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20409 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
20411         PR tree-optimization/60844
20412         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20413         (propagate_op_to_single_use, remove_visited_stmt_chain,
20414         linearize_expr, repropagate_negates, reassociate_bb): Use it
20415         instead of gsi_remove.
20417 2014-04-16  Martin Jambor  <mjambor@suse.cz>
20419         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20420         ipa_transforms_to_apply.
20421         (cgraph_function_versioning): Assert that old_node has empty
20422         ipa_transforms_to_apply.
20423         * trans-mem.c (ipa_tm_create_version): Likewise.
20424         * tree-inline.c (tree_function_versioning): Do not duplicate
20425         ipa_transforms_to_apply.
20427 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20429         PR target/60817
20430         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20431         x86_64-*-* cases.
20432         Pass necessary as flags on 64-bit Solaris/x86.
20433         Use lowercase relocs for x86_64-*-*.
20434         * configure: Regenerate.
20436 2014-04-15  Jan Hubicka  <jh@suse.cz>
20438         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20439         (maybe_record_node, likely_target_p): Use it.
20441 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20443         PR target/60839
20444         Revert following patch
20446         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
20448         PR target/60735
20449         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20450         software floating point or no floating point registers, do not
20451         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
20452         in GPRs that occurs after we tested for GPRs that would never be
20453         true.
20455         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20456         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20457         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
20458         specifically allow DDmode, since that does not use the SPE SIMD
20459         instructions.
20461 2014-03-21  Mark Wielaard  <mjw@redhat.com>
20463         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20464         as unsigned or int depending on type and value used.
20466 2014-04-15  Richard Biener  <rguenther@suse.de>
20468         PR rtl-optimization/56965
20469         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20470         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20471         ... here.
20472         * alias.c (true_dependence_1): Do not call
20473         nonoverlapping_component_refs_p.
20474         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20475         nonoverlapping_component_refs_p.
20476         (indirect_refs_may_alias_p): Likewise.
20478 2014-04-15  Teresa Johnson  <tejohnson@google.com>
20480         * cfg.c (dump_bb_info): Fix flags check.
20481         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20483 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20485         PR rtl-optimization/60663
20486         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20487         avoid 0 cost.
20489 2014-04-15  Richard Biener  <rguenther@suse.de>
20491         * lto-streamer.h (LTO_major_version): Bump to 4.
20493 2014-04-15  Richard Biener  <rguenther@suse.de>
20495         * common.opt (lto_partition_model): New enum.
20496         (flto-partition=): Merge separate options with a single with argument,
20497         add -flto-partition=one support.
20498         * flag-types.h (enum lto_partition_model): Declare.
20499         * opts.c (finish_options): Remove duplicate -flto-partition=
20500         option check.
20501         * lto-wrapper.c (run_gcc): Adjust.
20503 2014-04-15  Richard Biener  <rguenther@suse.de>
20505         * alias.c (ncr_compar): New function.
20506         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20508 2014-04-15  Richard Biener  <rguenther@suse.de>
20510         * alias.c (record_component_aliases): Do not walk BINFOs.
20512 2014-04-15  Richard Biener  <rguenther@suse.de>
20514         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20515         Add struct function argument and adjust.
20516         (find_func_aliases_for_call): Likewise.
20517         (find_func_aliases): Likewise.
20518         (find_func_clobbers): Likewise.
20519         (intra_create_variable_infos): Likewise.
20520         (compute_points_to_sets): Likewise.
20521         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
20523 2014-04-15  Richard Biener  <rguenther@suse.de>
20525         * tree.c (iterative_hash_expr): Use enum tree_code_class
20526         to store TREE_CODE_CLASS.
20527         (tree_block): Likewise.
20528         (tree_set_block): Likewise.
20529         * tree.h (fold_build_pointer_plus_loc): Use
20530         convert_to_ptrofftype_loc.
20532 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
20534         PR plugins/59335
20535         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20536         added in 4.9.
20538 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
20540         * cfgloop.h (struct loop): Move force_vectorize down.
20541         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20542         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20543         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20544         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20545         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20546         * tree-core.h (enum annot_expr_kind): Add new kind values.
20547         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20548         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20549         kinds.
20550         * tree.def (ANNOTATE_EXPR): Tweak comment.
20552 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
20554         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20555         cxa_pure_virtual).
20557 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
20559         * tree.h (TYPE_IDENTIFIER): Declare.
20560         * tree.c (subrange_type_for_debug_p): Use it.
20561         * godump.c (go_format_type): Likewise.
20562         * dwarf2out.c (is_cxx_auto, modified_type_die,
20563         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20564         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20566 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
20568         PR lto/60820
20569         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20571 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
20573         * config/i386/i386.c (examine_argument): Return bool.  Return true if
20574         parameter should be passed in memory.
20575         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20576         (construct_container): Update calls to examine_argument.
20577         (function_arg_advance_64): Ditto.
20578         (return_in_memory_32): Merge with ix86_return_in_memory.
20579         (return_in_memory_64): Ditto.
20580         (return_in_memory_ms_64): Ditto.
20582 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
20584         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20585         * coverage.c (coverage_compute_profile_id): Handle externally visible
20586         symbols.
20588 2014-04-14  Martin Jambor  <mjambor@suse.cz>
20590         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20591         DECL_DISREGARD_INLINE_LIMITS functions.
20593 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
20595         PR target/60827
20596         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20598 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
20600         PR target/60827
20601         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20602         optimize_insn_for_speed_p instead of
20603         optimize_function_for_speed_p.
20605 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
20607         * doc/invoke.texi (free): Document AArch64.
20609 2014-04-14  Richard Biener  <rguenther@suse.de>
20611         PR tree-optimization/60042
20612         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20613         (insert_into_preds_of_block): Do not prevent PHI insertion
20614         for REFERENCE exprs here ...
20615         (eliminate_dom_walker::before_dom_children): ... but prevent
20616         their use here under similar conditions when applied to the
20617         IL after PRE optimizations.
20619 2014-04-14  Richard Biener  <rguenther@suse.de>
20621         * passes.def: Move early points-to after early SRA.
20623 2014-04-14  Richard Biener  <rguenther@suse.de>
20625         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20626         check for which sign-changes we allow when forwarding
20627         a converted value into a switch.
20629 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
20631         * stor-layout.c (place_field): Finalize non-constant offset for the
20632         field, if any.
20634 2014-04-14  Richard Biener  <rguenther@suse.de>
20636         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20637         as argument.
20638         (expand_switch_using_bit_tests_p): Likewise.
20639         (process_switch): Compute and pass on speed_p based on the
20640         switch stmt.
20641         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20642         optimize_bb_for_speed_p.
20644 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
20646         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20647         * function.h (struct function): Rename has_force_vect_loops into
20648         has_force_vectorize_loops.
20649         * lto-streamer-in.c (input_cfg): Adjust for renaming.
20650         (input_struct_function_base): Likewise.
20651         * lto-streamer-out.c (output_cfg): Likewise.
20652         (output_struct_function_base): Likewise.
20653         * omp-low.c (expand_omp_simd): Likewise.
20654         * tree-cfg.c (move_sese_region_to_fn): Likewise.
20655         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20656         (version_loop_for_if_conversion): Likewise.
20657         (tree_if_conversion): Likewise.
20658         (main_tree_if_conversion): Likewise.
20659         (gate_tree_if_conversion): Likewise.
20660         * tree-inline.c (copy_loops): Likewise.
20661         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20662         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20663         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20664         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20665         * tree-vectorizer.c (vectorize_loops): Likewise.
20666         * tree-vectorizer.h (unlimited_cost_model): Likewise.
20668 2014-04-14  Richard Biener  <rguenther@suse.de>
20670         PR lto/60720
20671         * lto-streamer-out.c (wrap_refs): New function.
20672         (lto_output): Wrap symbol references in global initializes in
20673         type-preserving MEM_REFs.
20675 2014-04-14  Christian Bruel  <christian.bruel@st.com>
20677         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20679 2014-04-14  Christian Bruel  <christian.bruel@st.com>
20681         * config/sh/sh.md (setmemqi): New expand pattern.
20682         * config/sh/sh.h (CLEAR_RATIO): Define.
20683         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20684         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20686 2014-04-14  Richard Biener  <rguenther@suse.de>
20688         PR middle-end/55022
20689         * fold-const.c (negate_expr_p): Don't negate directional rounding
20690         division.
20691         (fold_negate_expr): Likewise.
20693 2014-04-14  Richard Biener  <rguenther@suse.de>
20695         PR tree-optimization/59817
20696         PR tree-optimization/60453
20697         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20698         recursion to catch all CHRECs in the scalar evolution and restrict
20699         the predicate for the remains appropriately.
20701 2014-04-12  Catherine Moore  <clm@codesourcery.com>
20703         * config/mips/constraints.md: Add new register constraint "kb".
20704         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20705         (*movhi_internal): Likewise.
20706         (*movqi_internal): Likewise.
20707         * config/mips/mips.h (M16_STORE_REGS): New register class.
20708         (REG_CLASS_NAMES): Add M16_STORE_REGS.
20709         (REG_CLASS_CONTENTS): Likewise.
20710         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20712 2014-04-11  Tobias Burnus  <burnus@net-b.de>
20714         PR c/60194
20715         * doc/invoke.texi (-Wformat-signedness): Document it.
20716         (Wformat=2): Mention that this enables -Wformat-signedness.
20718 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
20720         * common/config/epiphany/epiphany-common.c
20721         (epiphany_option_optimization_table): Enable section anchors by
20722         default at -O1 or higher.
20723         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20724         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20725         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20726         carries no extra cost.
20727         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20728         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20729         * config/epiphany/predicates.md (memclob_operand): New predicate.
20730         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20731         Use memclob_operand predicate and X constraint for operand 3.
20733 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
20735         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20736         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20737         its operands.
20739 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
20741         PR rtl-optimization/60651
20742         * mode-switching.c (optimize_mode_switching): Make sure to emit
20743         sets of a lower numbered entity before sets of a higher numbered
20744         entity to a mode of the same or lower priority.
20745         When creating a seginfo for a basic block that starts with a code
20746         label, move the insertion point past the code label.
20747         (new_seginfo): Document and enforce requirement that
20748         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20749         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20750         * doc/tm.texi: Regenerate.
20752 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
20754         PR target/60811
20755         * config/arc/arc.c (arc_save_restore): Fix assert typo.
20757 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
20759         * BASE-VER: Set to 4.10.0.
20761 2014-04-11  Tobias Burnus  <burnus@net-b.de>
20763         PR other/59055
20764         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20765         * doc/gcc.texi (Service): Update description in the @menu
20766         * doc/invoke.texi (Option Summary): Remove misplaced and
20767         duplicated @menu.
20769 2014-04-11  Steve Ellcey  <sellcey@mips.com>
20770             Jakub Jelinek  <jakub@redhat.com>
20772         PR middle-end/60556
20773         * expr.c (convert_move): Use emit_store_flag_force instead of
20774         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
20775         argument to it.
20777 2014-04-11  Richard Biener  <rguenther@suse.de>
20779         PR middle-end/60797
20780         * varasm.c (assemble_alias): Avoid endless error reporting
20781         recursion by setting TREE_ASM_WRITTEN.
20783 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20785         * config/s390/s390.md: Add a splitter for NOT rtx.
20787 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
20789         PR rtl-optimization/60663
20790         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20792 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
20793             Jakub Jelinek  <jakub@redhat.com>
20795         PR lto/60567
20796         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20797         flag from decl_node to node.
20799 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20801         PR debug/60655
20802         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20803         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20804         ameliorating the cases where it can be.
20806 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
20808         Revert
20809         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
20811         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20812         (loadsync_<mode>): Change mode.
20813         (load_quadpti, store_quadpti): New.
20814         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20815         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20816         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20818 2014-04-09  Cong Hou  <congh@google.com>
20820         PR testsuite/60773
20821         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20822         documentation.
20824 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20826         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20827         instead of vnor to exploit possible fusion opportunity in the
20828         future.
20829         (altivec_expand_vec_perm_const_le): Likewise.
20831 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
20833         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20834         (loadsync_<mode>): Change mode.
20835         (load_quadpti, store_quadpti): New.
20836         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20837         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20839 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
20841         PR target/60763
20842         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20843         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20844         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20846 2014-04-08  Richard Biener  <rguenther@suse.de>
20848         PR middle-end/60706
20849         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20850         a 64bit widest int print double-int similar to on HWI64 hosts.
20852 2014-04-08  Richard Biener  <rguenther@suse.de>
20854         PR tree-optimization/60785
20855         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20856         default defs properly.
20858 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
20860         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20861         (Weffc++): Likewise.
20863 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
20865         * ipa-devirt.c (maybe_record_node): When node is not recorded,
20866         set completep to false rather than true.
20868 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
20870         PR target/60504
20871         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20872         ARM_TARGET2_DWARF_FORMAT.
20874 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
20876         PR target/60609
20877         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20878         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20879         ADDR_DIFF_VEC.
20881 2014-04-07  Richard Biener  <rguenther@suse.de>
20883         PR tree-optimization/60766
20884         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20885         (may_eliminate_iv): Convert cand_value_at result to desired type.
20887 2014-04-07  Jason Merrill  <jason@redhat.com>
20889         PR c++/60731
20890         * common.opt (-fno-gnu-unique): Add.
20891         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20893 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20895         * haifa-sched.c: Fix outdated function reference and minor
20896         grammar errors in introductory comment.
20898 2014-04-07  Richard Biener  <rguenther@suse.de>
20900         PR middle-end/60750
20901         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20902         for noreturn calls.
20903         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20905 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
20907         PR debug/55794
20908         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20909         size accounting for thunks.
20910         (pa_asm_output_mi_thunk): Use final_start_function() and
20911         final_end_function() to output function start and end directives.
20913 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
20915         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20916         device specific ISA/ feature information. Remove short_sp and
20917         errata_skip ds.  Add avr_device_specific_features enum to have device
20918         specific info.
20919         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20920         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20921         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20922         updated device specific info.
20923         * config/avr/avr-mcus.def: Merge device specific details to
20924         dev_attribute field.
20925         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20926         errata_skip.
20927         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20928         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20929         assembler if RMW isa supported by current device.
20930         * config/avr/genmultilib.awk: Update as device info structure changed.
20931         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20933 2014-04-04  Cong Hou  <congh@google.com>
20935         PR tree-optimization/60656
20936         * tree-vect-stmts.c (supportable_widening_operation):
20937         Fix a bug that elements in a vector with vect_used_by_reduction
20938         property are incorrectly reordered when the operation on it is not
20939         consistant with the one in reduction operation.
20941 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
20943         PR rtl-optimization/60155
20944         * gcse.c (record_set_data): New function.
20945         (single_set_gcse): New function.
20946         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20947         (hoist_code): Likewise.
20948         (get_pressure_class_and_nregs): Likewise.
20950 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
20952         * explow.c (probe_stack_range): Emit a final optimization blockage.
20954 2014-04-04  Anthony Green  <green@moxielogic.com>
20956         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20957         typos.
20959 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
20961         PR ipa/59626
20962         * lto-cgraph.c (input_overwrite_node): Check that partitioning
20963         flags are set only during streaming.
20964         * ipa.c (process_references, walk_polymorphic_call_targets,
20965         symtab_remove_unreachable_nodes): Drop bodies of always inline
20966         after early inlining.
20967         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20969 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
20970         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20972         PR debug/60655
20973         * dwarf2out.c (const_ok_for_output_1): Reject expressions
20974         containing a NOT.
20976 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20978         PR bootstrap/60743
20979         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20980         duration.
20981         (cortex_a53_fdivd): Likewise.
20983 2014-04-04  Martin Jambor  <mjambor@suse.cz>
20985         PR ipa/60640
20986         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20987         Adjust all callers.
20988         * cgraph.c (clone_of_p): Also return true if thunks match.
20989         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20990         cgraph_function_or_thunk_node and an obsolete comment.
20991         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20992         file.
20993         (build_function_decl_skip_args): Likewise.
20994         (set_new_clone_decl_and_node_flags): New function.
20995         (duplicate_thunk_for_node): Likewise.
20996         (redirect_edge_duplicating_thunks): Likewise.
20997         (cgraph_clone_node): New parameter args_to_skip, pass it to
20998         redirect_edge_duplicating_thunks which is called instead of
20999         cgraph_redirect_edge_callee.
21000         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21001         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21003 2014-04-04  Jeff Law  <law@redhat.com>
21005         PR target/60657
21006         * config/arm/predicates.md (const_int_I_operand): New predicate.
21007         (const_int_M_operand): Similarly.
21008         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21009         const_int_operand.
21010         (insv_t2, extv_reg, extzv_t2): Likewise.
21011         (load_multiple_with_writeback): Similarly for const_int_I_operand.
21012         (pop_multiple_with_writeback_and_return): Likewise.
21013         (vfp_pop_multiple_with_writeback): Likewise
21015 2014-04-04  Richard Biener  <rguenther@suse.de>
21017         PR ipa/60746
21018         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21019         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21020         non-GIMPLE_LABELs.
21021         * gimplify.h (gimple_add_tmp_var_fn): Declare.
21022         * gimplify.c (gimple_add_tmp_var_fn): New function.
21023         * gimple-expr.h (create_tmp_reg_fn): Declare.
21024         * gimple-expr.c (create_tmp_reg_fn): New function.
21025         * gimple-low.c (record_vars_into): Don't change cfun.
21026         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21027         code generation without cfun.
21029 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
21031         PR bootstrap/60719
21032         * Makefile.in (install-driver): Fix shell scripting.
21034 2014-04-03  Cong Hou  <congh@google.com>
21036         PR tree-optimization/60505
21037         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21038         threshold of number of iterations below which no vectorization
21039         will be done.
21040         * tree-vect-loop.c (new_loop_vec_info):
21041         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21042         * tree-vect-loop.c (vect_analyze_loop_operations):
21043         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21044         * tree-vect-loop.c (vect_transform_loop):
21045         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21046         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21047         of iterations of the loop and see if we should build the epilogue.
21049 2014-04-03  Richard Biener  <rguenther@suse.de>
21051         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21052         (streamer_tree_cache_create): Adjust.
21053         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21054         to allow optional nodes array.
21055         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21056         (streamer_tree_cache_append): Likewise.
21057         (streamer_tree_cache_create): Create nodes array optionally
21058         as specified by parameter.
21059         * lto-streamer-out.c (create_output_block): Avoid maintaining
21060         the node array in the writer cache.
21061         (DFS_write_tree): Remove assertion.
21062         (produce_asm_for_decls): Free the out decl state hash table early.
21063         * lto-streamer-in.c (lto_data_in_create): Adjust for
21064         streamer_tree_cache_create prototype change.
21066 2014-04-03  Richard Biener  <rguenther@suse.de>
21068         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21069         set TREE_CHAIN to NULL_TREE.
21071 2014-04-03  Richard Biener  <rguenther@suse.de>
21073         PR tree-optimization/60740
21074         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21075         over all GIMPLE_COND operands.
21077 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
21079         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21080         (Weffc++): Remove Scott's numbering, merge lists and reference
21081         Wnon-virtual-dtor.
21083 2014-04-03  Nick Clifton  <nickc@redhat.com>
21085         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21086         properly.
21088 2014-04-03  Martin Jambor  <mjambor@suse.cz>
21090         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21091         mention gcc_unreachable before failing.
21092         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21093         removed symbols.
21095 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
21097         PR ipa/60659
21098         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21099         inconsistent code and instead mark the context inconsistent.
21100         (possible_polymorphic_call_targets): For inconsistent contexts
21101         return empty complete list.
21103 2014-04-02  Anthony Green  <green@moxielogic.com>
21105         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21106         (extendqisi2, extendhisi2): Define.
21107         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21108         (WCHAR_TYPE): Change to unsigned int.
21110 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21112         PR tree-optimization/60733
21113         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21114         insertion point for PHI candidates to be the end of the feeding
21115         block for the PHI argument.
21117 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
21119         PR rtl-optimization/60650
21120         * lra-constraints.c (process_alt_operands): Decrease reject for
21121         earlyclobber matching.
21123 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21125         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21127 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21129         * config/spu/spu.c (pad_bb): Do not crash when the last
21130         insn is CODE_FOR_blockage.
21132 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21134         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21135         lies outside the target mode.
21137 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21139         PR target/60735
21140         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21141         software floating point or no floating point registers, do not
21142         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
21143         in GPRs that occurs after we tested for GPRs that would never be
21144         true.
21146         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21147         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21148         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
21149         specifically allow DDmode, since that does not use the SPE SIMD
21150         instructions.
21152 2014-04-02  Richard Biener  <rguenther@suse.de>
21154         PR middle-end/60729
21155         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21156         MODE_INTs.  Properly use negv_optab.
21157         (expand_abs): Likewise.
21159 2014-04-02  Richard Biener  <rguenther@suse.de>
21161         PR bootstrap/60719
21162         * Makefile.in (install-driver): Guard extra installs with special
21163         names properly.
21165 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
21167         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21168         Document vec_vgbbd.
21170 2014-04-01  Richard Henderson  <rth@redhat.com>
21172         PR target/60704
21173         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21174         alternative enabled before register allocation.
21176 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
21178         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21179         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21180         typo.
21181         (nios2_large_got_address): Remove unneeded 'sym' parameter.
21182         (nios2_got_address): Update nios2_large_got_address call site.
21183         (nios2_delegitimize_address): New function.
21184         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21185         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21186         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21188 2014-04-01  Martin Husemann  <martin@duskware.de>
21190         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21191         for -mabi=32.
21193 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
21195         PR rtl-optimization/60604
21196         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21197         check from register_operand.
21198         (register_operand): Redefine in terms of general_operand.
21199         (nonmemory_operand): Use register_operand for the non-constant cases.
21201 2014-04-01  Richard Biener  <rguenther@suse.de>
21203         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21205 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21207         * doc/invoke.texi (mapp-regs): Clarify.
21209 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
21211         * config/i386/avx512fintrin.h (__v32hi): Define type.
21212         (__v64qi): Likewise.
21213         (_mm512_set1_epi8): Define.
21214         (_mm512_set1_epi16): Define.
21215         (_mm512_set4_epi32): Define.
21216         (_mm512_set4_epi64): Define.
21217         (_mm512_set4_pd): Define.
21218         (_mm512_set4_ps): Define.
21219         (_mm512_setr4_epi64): Define.
21220         (_mm512_setr4_epi32): Define.
21221         (_mm512_setr4_pd): Define.
21222         (_mm512_setr4_ps): Define.
21223         (_mm512_setzero_epi32): Define.
21225 2014-03-31  Martin Jambor  <mjambor@suse.cz>
21227         PR middle-end/60647
21228         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21229         callsite_arguments_match_p.  Updated all callers.  Also check types of
21230         corresponding formal parameters and actual arguments.
21231         (not_all_callers_have_enough_arguments_p) Renamed to
21232         some_callers_have_mismatched_arguments_p.
21234 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
21236         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21238 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
21240         PR target/60034
21241         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21242         section anchor.
21244 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
21246         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21247         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21248         Split out
21249         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21250         Use FMAMODE_NOVF512 mode iterator.
21251         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21252         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21253         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21254         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21255         Split out
21256         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21257         Use VF_128_256 mode iterator.
21258         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21259         Ditto.
21261 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
21263         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21264         static chain if needed.
21266 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
21268         PR target/60697
21269         * lra-constraints.c (index_part_to_reg): New.
21270         (process_address): Use it.
21272 2014-03-27  Jeff Law  <law@redhat.com>
21273             Jakub Jelinek  <jakub@redhat.com>
21275         PR target/60648
21276         * expr.c (do_tablejump): Use simplify_gen_binary rather than
21277         gen_rtx_{PLUS,MULT} to build up the address expression.
21279         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21280         creating non-canonical RTL.
21282 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
21284         PR ipa/60243
21285         * ipa-inline.c (want_inline_small_function_p): Short circuit large
21286         functions; reorganize to make cheap checks first.
21287         (inline_small_functions): Do not estimate growth when dumping;
21288         it is expensive.
21289         * ipa-inline.h (inline_summary): Add min_size.
21290         (growth_likely_positive): New function.
21291         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21292         (set_cond_stmt_execution_predicate): Cleanup.
21293         (estimate_edge_size_and_time): Compute min_size.
21294         (estimate_calls_size_and_time): Likewise.
21295         (estimate_node_size_and_time): Likewise.
21296         (inline_update_overall_summary): Update min_size.
21297         (do_estimate_edge_time): Likewise.
21298         (do_estimate_edge_size): Update.
21299         (do_estimate_edge_hints): Update.
21300         (growth_likely_positive): New function.
21302 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
21304         PR target/60693
21305         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21306         also if addr has VOIDmode.
21308 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21310         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21311         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21312         Declare extern.
21313         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21314         instructions as well as AdvancedSIMD loads.
21316 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21318         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21319         Use crypto_aese type.
21320         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21321         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21322         crypto_aese, crypto_aesmc.  Move to types.md.
21323         * config/arm/types.md (crypto_aes): Split into crypto_aese,
21324         crypto_aesmc.
21325         * config/arm/iterators.md (crypto_type): Likewise.
21327 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
21329         * cgraph.c: Include expr.h and tree-dfa.h.
21330         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21331         remove LHS.
21333 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
21335         PR target/60675
21336         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21337         regs from checking multi-reg pseudos.
21339 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21341         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21343 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21345         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21346         if it would clobber the stack pointer, even temporarily.
21348 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
21350         * mode-switching.c: Make small adjustments to the top comment.
21352 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
21354         * config/rs6000/constraints.md (wD constraint): New constraint to
21355         match the constant integer to get the top DImode/DFmode out of a
21356         vector in a VSX register.
21358         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21359         match the constant integer to get the top DImode/DFmode out of a
21360         vector in a VSX register.
21362         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21363         for ISA 2.07.
21365         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21366         vbpermq builtins.
21368         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21369         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21371         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21372         Optimize vec_extract of 64-bit values, where the value being
21373         extracted is in the top word, where we can use scalar
21374         instructions.  Add direct move and store support.  Combine the big
21375         endian/little endian vector select load support into a single insn.
21376         (vsx_extract_<mode>_internal1): Likewise.
21377         (vsx_extract_<mode>_internal2): Likewise.
21378         (vsx_extract_<mode>_load): Likewise.
21379         (vsx_extract_<mode>_store): Likewise.
21380         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21381         combined into vsx_extract_<mode>_load.
21382         (vsx_extract_<mode>_one_le): Likewise.
21384         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21385         define the top 64-bit vector element.
21387         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21388         constraint.
21390         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21391         Document vec_vbpermq builtin.
21393         PR target/60672
21394         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21395         enable use of xxsldwi and xxpermdi builtin functions.
21396         (vec_xxpermdi): Likewise.
21398         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21399         Document use of vec_xxsldwi and vec_xxpermdi builtins.
21401 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
21403         PR rtl-optimization/60650
21404         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21405         first_p.  Use it.
21406         (find_spills_for): New.
21407         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21408         Spill all pseudos on the second iteration.
21410 2014-03-27  Marek Polacek  <polacek@redhat.com>
21412         PR c/50347
21413         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21414         types.
21416 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21418         * config/s390/s390.c (s390_can_use_return_insn): Check for
21419         call-saved FPRs on 31 bit.
21421 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
21423         PR middle-end/60682
21424         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21425         if they need regimplification, just drop them instead of
21426         calling gimple_regimplify_operands on them.
21428 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21430         PR target/60580
21431         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21432         (aarch64_frame_pointer_required): Adjust logic.
21433         (aarch64_can_eliminate): Adjust logic.
21434         (aarch64_override_options_after_change): Adjust logic.
21436 2014-03-27  Dehao Chen  <dehao@google.com>
21438         * ipa-inline.c (early_inliner): Update node's inline info.
21440 2014-03-26  Dehao Chen  <dehao@google.com>
21442         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21443         compiler inserted conditional jumps for NAN float check.
21445 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
21447         * ubsan.h (ubsan_create_data): Change second argument's type
21448         to const location_t *.
21449         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21450         _("<unknown>").
21451         (ubsan_create_data): Change second argument to const location_t *PLOC.
21452         Create Loc field whenever PLOC is non-NULL.
21453         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21454         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21455         callers.
21457         PR other/59545
21458         * real.c (real_to_integer2): Change type of low to UHWI.
21460 2014-03-26  Tobias Burnus  <burnus@net-b.de>
21462         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21463         (CILK_SELF_SPECS): New define.
21464         (driver_self_specs): Use it.
21466 2014-03-26  Richard Biener  <rguenther@suse.de>
21468         * tree-pretty-print.c (percent_K_format): Implement special
21469         case for LTO and its stripped down BLOCK tree.
21471 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
21473         PR sanitizer/60636
21474         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21476         * tree-vrp.c (simplify_internal_call_using_ranges): If only
21477         one range is range_int_cst_p, but not both, at least optimize
21478         addition/subtraction of 0 and multiplication by 0 or 1.
21479         * gimple-fold.c (gimple_fold_call): Fold
21480         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21481         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21482         INTEGER_CSTs, try to fold at least x * 0 and y - y.
21484 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
21486         PR rtl-optimization/60452
21487         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21488         <case REG>: Return 1 for invalid offsets from the frame pointer.
21490 2014-03-26  Marek Polacek  <polacek@redhat.com>
21492         PR c/37428
21493         * doc/extend.texi (C Extensions): Mention variable-length arrays in
21494         a structure/union.
21496 2014-03-26  Marek Polacek  <polacek@redhat.com>
21498         PR c/39525
21499         * doc/extend.texi (Designated Inits): Describe what happens to omitted
21500         field members.
21502 2014-03-26  Marek Polacek  <polacek@redhat.com>
21504         PR other/59545
21505         * ira-color.c (update_conflict_hard_regno_costs): Perform the
21506         multiplication in unsigned type.
21508 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
21510         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21512 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
21514         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21516 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
21518         PR ipa/60315
21519         * cif-code.def (UNREACHABLE) New code.
21520         * ipa-inline.c (inline_small_functions): Skip edges to
21521         __builtlin_unreachable.
21522         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21523         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21524         predicate to __bulitin_unreachable.
21525         (set_cond_stmt_execution_predicate): Fix issue when
21526         invert_tree_comparison returns ERROR_MARK.
21527         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21528         propagate to inline clones.
21529         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21530         to unreachable.
21531         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21532         * cgraphclones.c (cgraph_clone_node): If call destination is already
21533         ureachable, do not redirect it back.
21534         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21535         unreachable.
21537 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
21539         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21540         Do not modify inline clones.
21542 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
21544         * config/i386/i386.md (general_sext_operand): New mode attr.
21545         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21546         don't generate (sign_extend (const_int)).
21547         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21548         operands[2].  Use We constraint instead of <i> and
21549         <general_sext_operand> predicate instead of <general_operand>.
21550         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21551         * config/i386/constraints.md (We): New constraint.
21552         * config/i386/predicates.md (x86_64_sext_operand,
21553         sext_operand): New predicates.
21555 2014-03-25  Martin Jambor  <mjambor@suse.cz>
21557         PR ipa/60600
21558         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21559         inconsistent devirtualizations to __builtin_unreachable.
21561 2014-03-25  Marek Polacek  <polacek@redhat.com>
21563         PR c/35449
21564         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21566 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
21568         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21569         order of elements for big-endian.
21571 2014-03-25  Richard Biener  <rguenther@suse.de>
21573         PR middle-end/60635
21574         * gimplify-me.c (gimple_regimplify_operands): Update the
21575         re-gimplifed stmt.
21577 2014-03-25  Martin Jambor  <mjambor@suse.cz>
21579         PR ipa/59176
21580         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21581         (lto_output_varpool_node): Likewise.
21582         (input_overwrite_node): Likewise.
21583         (input_varpool_node): Likewise.
21585 2014-03-25  Richard Biener  <rguenther@suse.de>
21587         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21588         (run_gcc): Likewise.
21590 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
21592         * combine.c (simplify_compare_const): Add MODE argument.
21593         Handle mode_width 0 as very large mode_width.
21594         (try_combine, simplify_comparison): Adjust callers.
21596         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21597         type to avoid signed integer overflow.
21598         * explow.c (plus_constant): Likewise.
21600 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21602         * doc/generic.texi: Correct typos.
21604 2014-03-24  Tobias Burnus  <burnus@net-b.de>
21606         * doc/invoke.texi (-flto): Expand section about
21607         using static libraries with LTO.
21609 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21611         PR rtl-optimization/60501
21612         * optabs.def (addptr3_optab): New optab.
21613         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21614         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21615         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21617         * lra.c (emit_add3_insn): Use the addptr pattern if available.
21619         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21621 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
21623         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21624         _mm512_set1_pd.
21626         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21627         (_mm256_undefined_ps): Define.
21628         (_mm256_undefined_pd): Define.
21629         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21630         (_mm_undefined_pd): Define.
21631         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21632         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21633         (_mm512_undefined_ps): Define.
21634         (_mm512_undefined_pd): Define.
21635         Use _mm*_undefined_*.
21636         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21638 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
21640         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21641         (lshr_simd): DI mode added.
21642         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21643         (aarch64_ushr_simddi): Likewise.
21644         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21645         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21646         (vshrd_n_u64): Likewise.
21648 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21650         * Makefile.in (s-macro_list): Depend on cc1.
21652 2014-03-23  Teresa Johnson  <tejohnson@google.com>
21654         * ipa-utils.c (ipa_print_order): Use specified dump file.
21656 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
21658         PR rtl-optimization/60601
21659         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21661         * gcc.c (eval_spec_function): Initialize save_growing_value.
21663 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
21665         PR sanitizer/60613
21666         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21667         code == MINUS_EXPR, never swap op0 with op1.
21669         * toplev.c (init_local_tick): Avoid signed integer multiplication
21670         overflow.
21671         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21672         shift by first operand's bitsize.
21674 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
21676         PR target/60610
21677         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21678         redefine to 1 or 0.
21679         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21680         TARGET_ISA_64BIT_P(x).
21682 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21684         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21685         pattern for vector nor instead of subtract from splat(-1).
21686         (altivec_expand_vec_perm_const_le): Likewise.
21688 2014-03-21  Richard Henderson  <rth@twiddle.net>
21690         PR target/60598
21691         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21692         related insns after epilogue_completed.
21694 2014-03-21  Martin Jambor  <mjambor@suse.cz>
21696         PR ipa/59176
21697         * cgraph.h (symtab_node): New flag body_removed.
21698         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21699         when removing bodies.
21700         * symtab.c (dump_symtab_base): Dump body_removed flag.
21701         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21702         had their bodies removed.
21704 2014-03-21  Martin Jambor  <mjambor@suse.cz>
21706         PR ipa/60419
21707         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21708         in the border.
21710 2014-03-21  Richard Biener  <rguenther@suse.de>
21712         PR tree-optimization/60577
21713         * tree-core.h (struct tree_base): Document nothrow_flag use
21714         in DECL_NONALIASED.
21715         * tree.h (DECL_NONALIASED): New.
21716         (may_be_aliased): Adjust.
21717         * coverage.c (build_var): Set DECL_NONALIASED.
21719 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
21721         * expr.c (expand_expr_real_1): Remove outdated comment.
21723 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
21725         PR middle-end/60597
21726         * ira.c (adjust_cleared_regs): Call copy_rtx on
21727         *reg_equiv[REGNO (loc)].src_p before passing it to
21728         simplify_replace_fn_rtx.
21730         PR target/60568
21731         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21732         into CONST, put pic register as first operand of PLUS.  Use
21733         gen_const_mem for both 32-bit and 64-bit PIC got loads.
21735 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21737         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21739 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
21741         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21742         around for store forwarding issue in the FPU on the UT699.
21743         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21744         loads and operations if -mfix-ut699 is specified.
21745         (divtf3_hq): Tweak attribute.
21746         (sqrttf2_hq): Likewise.
21748 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
21750         * calls.c (store_one_arg): Remove incorrect const qualification on the
21751         type of the temporary.
21752         * cfgexpand.c (expand_return): Likewise.
21753         * expr.c (expand_constructor): Likewise.
21754         (expand_expr_real_1): Likewise.
21756 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21758         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21759         of parts.
21761 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
21763         PR target/60039
21764         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21766 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
21768         * config/arm/aarch-common-protos.h
21769         (alu_cost_table): Fix spelling of "extend".
21770         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21772 2014-03-19  Richard Biener  <rguenther@suse.de>
21774         PR middle-end/60553
21775         * tree-core.h (tree_type_common): Re-order pointer members
21776         to reduce recursion depth during GC walks.
21778 2014-03-19  Marek Polacek  <polacek@redhat.com>
21780         PR sanitizer/60569
21781         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21782         before accessing it.
21784 2014-03-19  Richard Biener  <rguenther@suse.de>
21786         PR lto/59543
21787         * lto-streamer-in.c (input_function): In WPA stage do not drop
21788         debug stmts.
21790 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
21792         PR tree-optimization/60559
21793         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21794         with build_zero_cst assignment.
21796 2014-03-18  Kai Tietz  <ktietz@redhat.com>
21798         PR rtl-optimization/56356
21799         * sdbout.c (sdbout_parms): Verify that parms'
21800         incoming argument is valid.
21801         (sdbout_reg_parms): Likewise.
21803 2014-03-18  Richard Henderson  <rth@redhat.com>
21805         PR target/60562
21806         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21807         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
21808         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21810 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
21812         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21813         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21814         Italicize plugin event names in description.  Explain that
21815         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
21816         Remind that no GCC functions should be called after PLUGIN_FINISH.
21817         Explain what pragmas with expansion are.
21819 2014-03-18  Martin Liska  <mliska@suse.cz>
21821         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21822         gimple call statement is update.
21823         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21824         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21826 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
21828         PR sanitizer/60557
21829         * ubsan.c (ubsan_instrument_unreachable): Call
21830         initialize_sanitizer_builtins.
21831         (ubsan_pass): Likewise.
21833         PR sanitizer/60535
21834         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21835         varpool_finalize_decl instead of rest_of_decl_compilation.
21837 2014-03-18  Richard Biener  <rguenther@suse.de>
21839         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21840         by using bitmap_and_compl instead of bitmap_and_compl_into.
21841         (df_rd_transfer_function): Likewise.
21843 2014-03-18  Richard Biener  <rguenther@suse.de>
21845         * doc/lto.texi (fresolution): Fix typo.
21847 2014-03-18  Richard Biener  <rguenther@suse.de>
21849         * doc/invoke.texi (flto): Update for changes in 4.9.
21851 2014-03-18  Richard Biener  <rguenther@suse.de>
21853         * doc/loop.texi: Remove section on the removed lambda framework.
21854         Update loop docs with recent changes in preserving loop structure.
21856 2014-03-18  Richard Biener  <rguenther@suse.de>
21858         * doc/lto.texi (-fresolution): Document.
21860 2014-03-18  Richard Biener  <rguenther@suse.de>
21862         * doc/contrib.texi: Adjust my name.
21864 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
21866         PR ipa/58721
21867         * internal-fn.c: Include diagnostic-core.h.
21868         (expand_BUILTIN_EXPECT): New function.
21869         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21870         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21871         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21872         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21873         IFN_BUILTIN_EXPECT.
21874         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21875         Revert 3 argument __builtin_expect code.
21876         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21877         * gimple-fold.c (gimple_fold_call): Likewise.
21878         * tree.h (fold_builtin_expect): New prototype.
21879         * builtins.c (build_builtin_expect_predicate): Add predictor
21880         argument, if non-NULL, create 3 argument __builtin_expect.
21881         (fold_builtin_expect): No longer static.  Add ARG2 argument,
21882         pass it through to build_builtin_expect_predicate.
21883         (fold_builtin_2): Adjust caller.
21884         (fold_builtin_3): Handle BUILT_IN_EXPECT.
21885         * internal-fn.def (BUILTIN_EXPECT): New.
21887 2014-03-18  Tobias Burnus  <burnus@net-b.de>
21889         PR ipa/58721
21890         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21891         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21892         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21894 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
21896         PR ipa/58721
21897         * predict.c (combine_predictions_for_bb): Fix up formatting.
21898         (expr_expected_value_1, expr_expected_value): Add predictor argument,
21899         fill what it points to if non-NULL.
21900         (tree_predict_by_opcode): Adjust caller, use the predictor.
21901         * predict.def (PRED_COMPARE_AND_SWAP): Add.
21903 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
21905         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21906         proper constant for the store mode.
21908 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
21910         * symtab.c (change_decl_assembler_name): Fix transparent alias
21911         chain construction.
21913 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
21915         * config/aarch64/aarch64.c: Correct the comments about the
21916         aarch64 stack layout.
21918 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
21920         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21921         check for GF_OMP_FOR_KIND_FOR.
21923 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
21925         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21926         ymm and zmm register names.
21928 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
21930         PR target/60516
21931         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21932         note creation for the 2010-08-31 changes.
21934 2014-03-17  Marek Polacek  <polacek@redhat.com>
21936         PR middle-end/60534
21937         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21938         as -fno-tree-loop-vectorize.
21939         (expand_omp_simd): Likewise.
21941 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
21943         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21944         (eligible_for_call_delay): New prototype.
21945         * config/sparc/sparc.c (tls_call_delay): Rename into...
21946         (eligible_for_call_delay): ...this.  Return false if the instruction
21947         cannot be put in the delay slot of a branch.
21948         (eligible_for_restore_insn): Simplify.
21949         (eligible_for_return_delay): Return false if the instruction cannot be
21950         put in the delay slot of a branch and simplify.
21951         (eligible_for_sibcall_delay): Return false if the instruction cannot be
21952         put in the delay slot of a branch.
21953         * config/sparc/sparc.md (fix_ut699): New attribute.
21954         (tls_call_delay): Delete.
21955         (in_call_delay): Reimplement.
21956         (eligible_for_sibcall_delay): Rename into...
21957         (in_sibcall_delay): ...this.
21958         (eligible_for_return_delay): Rename into...
21959         (in_return_delay): ...this.
21960         (in_branch_delay): Reimplement.
21961         (in_uncond_branch_delay): Delete.
21962         (in_annul_branch_delay): Delete.
21964 2014-03-14  Richard Henderson  <rth@redhat.com>
21966         PR target/60525
21967         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21968         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21969         (*floathi<X87MODEF>2_i387_with_temp): Remove.
21970         (floathi splitters): Remove.
21971         (float<SWI48x>xf2): New pattern.
21972         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
21973         code that tried to handle DImode for 32-bit, but which was excluded
21974         by the pattern's condition.  Drop allocation of stack temporary.
21975         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21976         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21977         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21978         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21979         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21980         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21981         (*float<SWI48><MODEF>2_sse_interunit): Remove.
21982         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21983         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21984         (*float<SWI48x><X87MODEF>2_i387): Remove.
21985         (all float _with_temp splitters): Remove.
21986         (*float<SWI48x><MODEF>2_i387): New pattern.
21987         (*float<SWI48><MODEF>2_sse): New pattern.
21988         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21989         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21991 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
21992             Marek Polacek  <polacek@redhat.com>
21994         PR middle-end/60484
21995         * common.opt (dump_base_name_prefixed): New Variable.
21996         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21997         if x_dump_base_name_prefixed is already set, set it at the end.
21999 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
22001         PR rtl-optimization/60508
22002         * lra-constraints.c (get_reload_reg): Add new parameter
22003         in_subreg_p.
22004         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22005         Pass the new parameter values.
22007 2014-03-14  Richard Biener  <rguenther@suse.de>
22009         * common.opt: Revert unintented changes from r205065.
22010         * opts.c: Likewise.
22012 2014-03-14  Richard Biener  <rguenther@suse.de>
22014         PR middle-end/60518
22015         * cfghooks.c (split_block): Properly adjust all loops the
22016         block was a latch of.
22018 2014-03-14  Martin Jambor  <mjambor@suse.cz>
22020         PR lto/60461
22021         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22022         and simplify it.
22024 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
22026         PR target/59396
22027         * config/avr/avr.c (avr_set_current_function): Pass function name
22028         through default_strip_name_encoding before sanity checking instead
22029         of skipping the first char of the assembler name.
22031 2014-03-13  Richard Henderson  <rth@redhat.com>
22033         PR debug/60438
22034         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22035         (ix86_force_to_memory, ix86_free_from_memory): Remove.
22036         * config/i386/i386-protos.h: Likewise.
22037         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22038         in the expander instead of a splitter.
22039         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22040         any possibility of requiring a memory.
22041         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22042         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22043         (fp branch splitters): Update for ix86_split_fp_branch.
22044         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22045         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22046         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22047         (*fop_<MODEF>_2_i387): Remove f/r alternative.
22048         (*fop_<MODEF>_3_i387): Likewise.
22049         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22050         (splitters for the fop_* register patterns): Remove.
22051         (fscalexf4_i387): Rename from *fscalexf4_i387.
22052         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22054 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
22056         PR tree-optimization/59779
22057         * tree-dfa.c (get_ref_base_and_extent): Use double_int
22058         type for bitsize and maxsize instead of HOST_WIDE_INT.
22060 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
22062         PR rtl-optimization/57320
22063         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22064         the CFG after thread_prologue_and_epilogue_insns.
22066 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
22068         PR rtl-optimization/57189
22069         * lra-constraints.c (process_alt_operands): Disfavor spilling
22070         vector pseudos.
22072 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
22074         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22076 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
22078         PR tree-optimization/59025
22079         PR middle-end/60418
22080         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22081         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22083 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
22085         PR target/60486
22086         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22087         calls of avr_out_plus_1.
22089 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
22091         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22092         BB's single pred and update the father loop's latch info later.
22094 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22096         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22097         (VEC_M): Likewise.
22098         (VEC_N): Likewise.
22099         (VEC_R): Likewise.
22100         (VEC_base): Likewise.
22101         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22102         registers, we need to swap double words in little endian mode.
22104         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22105         to be a container mode for 128-bit integer operations added in ISA
22106         2.07.  Unlike TImode and PTImode, the preferred register set is
22107         the Altivec/VMX registers for the 128-bit operations.
22109         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22110         declarations.
22111         (rs6000_split_128bit_ok_p): Likewise.
22113         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22114         macros for creating ISA 2.07 normal and overloaded builtin
22115         functions with 3 arguments.
22116         (BU_P8V_OVERLOAD_3): Likewise.
22117         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22118         for use as overloaded functions.
22119         (VPERM_1TI_UNS): Likewise.
22120         (VSEL_1TI): Likewise.
22121         (VSEL_1TI_UNS): Likewise.
22122         (ST_INTERNAL_1ti): Likewise.
22123         (LD_INTERNAL_1ti): Likewise.
22124         (XXSEL_1TI): Likewise.
22125         (XXSEL_1TI_UNS): Likewise.
22126         (VPERM_1TI): Likewise.
22127         (VPERM_1TI_UNS): Likewise.
22128         (XXPERMDI_1TI): Likewise.
22129         (SET_1TI): Likewise.
22130         (LXVD2X_V1TI): Likewise.
22131         (STXVD2X_V1TI): Likewise.
22132         (VEC_INIT_V1TI): Likewise.
22133         (VEC_SET_V1TI): Likewise.
22134         (VEC_EXT_V1TI): Likewise.
22135         (EQV_V1TI): Likewise.
22136         (NAND_V1TI): Likewise.
22137         (ORC_V1TI): Likewise.
22138         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22139         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
22140         overloaded builtin.
22141         (VADDUQM): Likewise.
22142         (VSUBCUQ): Likewise.
22143         (VADDEUQM): Likewise.
22144         (VADDECUQ): Likewise.
22145         (VSUBEUQM): Likewise.
22146         (VSUBECUQ): Likewise.
22148         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22149         __int128_t and __uint128_t types.
22150         (__uint128_type): Likewise.
22151         (altivec_categorize_keyword): Add support for vector __int128_t,
22152         vector __uint128_t, vector __int128, and vector unsigned __int128
22153         as a container type for TImode operations that need to be done in
22154         VSX/Altivec registers.
22155         (rs6000_macro_to_expand): Likewise.
22156         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22157         to support 128-bit integer instructions vaddcuq, vadduqm,
22158         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22159         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22161         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22162         for V1TImode, and set up preferences to use VSX/Altivec registers.
22163         Setup VSX reload handlers.
22164         (rs6000_debug_reg_global): Likewise.
22165         (rs6000_init_hard_regno_mode_ok): Likewise.
22166         (rs6000_preferred_simd_mode): Likewise.
22167         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22168         (easy_altivec_constant): Likewise.
22169         (output_vec_const_move): Likewise.
22170         (rs6000_expand_vector_set): Convert V1TImode set and extract to
22171         simple move.
22172         (rs6000_expand_vector_extract): Likewise.
22173         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22174         addressing.
22175         (rs6000_const_vec): Add support for V1TImode.
22176         (rs6000_emit_le_vsx_load): Swap double words when loading or
22177         storing TImode/V1TImode.
22178         (rs6000_emit_le_vsx_store): Likewise.
22179         (rs6000_emit_le_vsx_move): Likewise.
22180         (rs6000_emit_move): Add support for V1TImode.
22181         (altivec_expand_ld_builtin): Likewise.
22182         (altivec_expand_st_builtin): Likewise.
22183         (altivec_expand_vec_init_builtin): Likewise.
22184         (altivec_expand_builtin): Likewise.
22185         (rs6000_init_builtins): Add support for V1TImode type.  Add
22186         support for ISA 2.07 128-bit integer builtins.  Define type names
22187         for the VSX/Altivec vector types.
22188         (altivec_init_builtins): Add support for overloaded vector
22189         functions with V1TImode type.
22190         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22191         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22192         external function.
22193         (rs6000_split_128bit_ok_p): Likewise.
22194         (rs6000_handle_altivec_attribute): Create V1TImode from vector
22195         __int128_t and vector __uint128_t.
22197         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22198         and mode attributes.
22199         (VSX_M): Likewise.
22200         (VSX_M2): Likewise.
22201         (VSm): Likewise.
22202         (VSs): Likewise.
22203         (VSr): Likewise.
22204         (VSv): Likewise.
22205         (VS_scalar): Likewise.
22206         (VS_double): Likewise.
22207         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22209         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22210         we support the ISA 2.07 128-bit integer arithmetic instructions.
22211         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22212         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22213         and TImode types for use with the builtin functions.
22214         (V1TI_type_node): Likewise.
22215         (unsigned_V1TI_type_node): Likewise.
22216         (intTI_type_internal_node): Likewise.
22217         (uintTI_type_internal_node): Likewise.
22219         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22220         128-bit builtin functions.
22221         (UNSPEC_VADDEUQM): Likewise.
22222         (UNSPEC_VADDECUQ): Likewise.
22223         (UNSPEC_VSUBCUQ): Likewise.
22224         (UNSPEC_VSUBEUQM): Likewise.
22225         (UNSPEC_VSUBECUQ): Likewise.
22226         (VM): Add V1TImode to vector mode iterators.
22227         (VM2): Likewise.
22228         (VI_unit): Likewise.
22229         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22230         (altivec_vaddcuq): Likewise.
22231         (altivec_vsubuqm): Likewise.
22232         (altivec_vsubcuq): Likewise.
22233         (altivec_vaddeuqm): Likewise.
22234         (altivec_vaddecuq): Likewise.
22235         (altivec_vsubeuqm): Likewise.
22236         (altivec_vsubecuq): Likewise.
22238         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22239         mode iterators.
22240         (BOOL_128): Likewise.
22241         (BOOL_REGS_OUTPUT): Likewise.
22242         (BOOL_REGS_OP1): Likewise.
22243         (BOOL_REGS_OP2): Likewise.
22244         (BOOL_REGS_UNARY): Likewise.
22245         (BOOL_REGS_AND_CR0): Likewise.
22247         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22248         128-bit integer builtin support.
22249         (vec_vadduqm): Likewise.
22250         (vec_vaddecuq): Likewise.
22251         (vec_vaddeuqm): Likewise.
22252         (vec_vsubecuq): Likewise.
22253         (vec_vsubeuqm): Likewise.
22254         (vec_vsubcuq): Likewise.
22255         (vec_vsubuqm): Likewise.
22257         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22258         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22259         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22260         128-bit integer add/subtract to ISA 2.07.
22262 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
22264         * config/arc/arc.c (arc_predicate_delay_insns):
22265         Fix third argument passed to conditionalize_nonjump.
22267 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
22269         * config/aarch64/aarch64-builtins.c
22270         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22271         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22272         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22273         instead of __builtin_lfloor.
22274         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22276 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
22278         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22279         (tree_ssa_ifcombine_bb_1): New function.
22280         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
22281         is an empty forwarder block to then_bb or vice versa and then_bb
22282         and else_bb are effectively swapped.
22284 2014-03-12  Christian Bruel  <christian.bruel@st.com>
22286         PR target/60264
22287         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22288         REG_CFA_DEF_CFA note.
22289         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22290         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22292 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22294         PR tree-optimization/60454
22295         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22297 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22299         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22300         Do not define target_cpu_default2 to generic.
22301         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22302         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22303         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22305 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
22306             Marc Glisse  <marc.glisse@inria.fr>
22308         PR tree-optimization/60502
22309         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22310         instead of build_low_bits_mask.
22312 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
22314         PR middle-end/60482
22315         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22316         if there are multiple uses, but op doesn't live on E edge.
22317         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22318         clobber stmts before __builtin_unreachable.
22320 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
22322         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22323         hard_frame_pointer_rtx.
22324         * cse.c (cse_insn): Remove volatile check.
22325         * cselib.c (cselib_process_insn): Likewise.
22326         * dse.c (scan_insn): Likewise.
22328 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22330         * config/arc/arc.c (conditionalize_nonjump): New function,
22331         broken out of ...
22332         (arc_ifcvt): ... this.
22333         (arc_predicate_delay_insns): Use it.
22335 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22337         * config/arc/predicates.md (extend_operand): During/after reload,
22338         allow const_int_operand.
22339         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22340         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
22341         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22342         to "i".
22343         (umulsi3_highpart_i): Likewise.
22345 2014-03-11  Richard Biener  <rguenther@suse.de>
22347         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22348         Add asserts to guard possible wrong-code bugs.
22350 2014-03-11  Richard Biener  <rguenther@suse.de>
22352         PR tree-optimization/60429
22353         PR tree-optimization/60485
22354         * tree-ssa-structalias.c (set_union_with_increment): Properly
22355         take into account all fields that overlap the shifted vars.
22356         (do_sd_constraint): Likewise.
22357         (do_ds_constraint): Likewise.
22358         (get_constraint_for_ptr_offset): Likewise.
22360 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
22362         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22363         (nios2_compute_frame_layout):
22364         Add calculation of cfun->machine->fp_save_offset.
22365         (nios2_expand_prologue): Correct setting of frame pointer register
22366         in prologue.
22367         (nios2_expand_epilogue): Update recovery of stack pointer from
22368         frame pointer accordingly.
22369         (nios2_initial_elimination_offset): Update calculation of offset
22370         for eliminating to HARD_FRAME_POINTER_REGNUM.
22372 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
22374         PR ipa/60457
22375         * ipa.c (symtab_remove_unreachable_nodes): Don't call
22376         cgraph_get_create_node on VAR_DECLs.
22378 2014-03-10  Richard Biener  <rguenther@suse.de>
22380         PR middle-end/60474
22381         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22383 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
22385         * config/vms/vms.opt (vms_float_format): New variable.
22387 2014-03-08  Tobias Burnus  <burnus@net-b.de>
22389         * doc/invoke.texi (-fcilkplus): Update implementation status.
22391 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
22392             Richard Biener  <rguenther@suse.de>
22394         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22395         consistently accross all TUs.
22396         (run_gcc): Enable -fshort-double automatically at link at link-time
22397         and disallow override.
22399 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
22401         PR target/58271
22402         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22403         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22404         if they can't be used.
22406 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22408         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22409         for Solaris 11/x86 ld.
22410         * configure: Regenerate.
22412 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22414         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22415         (LIB_TLS_SPEC): Save as ld_tls_libs.
22416         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22417         (HAVE_AS_IX86_TLSLDM): New test.
22418         * configure, config.in: Regenerate.
22419         * config/i386/i386.c (legitimize_tls_address): Fall back to
22420         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22421         cannot support TLS_MODEL_LOCAL_DYNAMIC.
22422         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22423         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22425 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
22427         * common.opt (fira-loop-pressure): Mark as optimization.
22429 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
22431         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22432         an OpenMP mappable type.
22434 2014-03-06  Matthias Klose  <doko@ubuntu.com>
22436         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22437         MULTILIB_OSDIRNAMES is not defined.
22439 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
22440             Meador Inge  <meadori@codesourcery.com>
22442         PR target/58595
22443         * config/arm/arm.c (arm_tls_symbol_p): Remove.
22444         (arm_legitimize_address): Call legitimize_tls_address for any
22445         arm_tls_referenced_p expression, handle constant addend.  Call it
22446         before testing for !TARGET_ARM.
22447         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22449 2014-03-06  Richard Biener  <rguenther@suse.de>
22451         PR middle-end/60445
22452         PR lto/60424
22453         PR lto/60427
22454         Revert
22455         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
22457         * tree-streamer.c (record_common_node): Assert we don't record
22458         nodes with type double.
22459         (preload_common_node): Skip type double, complex double and double
22460         pointer since it is now frontend dependent due to fshort-double option.
22462 2014-03-06  Richard Biener  <rguenther@suse.de>
22464         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22465         or -fno-lto is specified and the linker has full plugin support.
22466         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22467         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22468         * lto-wrapper.c (merge_and_complain): Merge compile-time
22469         optimization levels.
22470         (run_gcc): And pass it through to the link options.
22472 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
22474         PR debug/60381
22475         Revert:
22476         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
22477         PR debug/59992
22478         * cselib.c (remove_useless_values): Skip to avoid quadratic
22479         behavior if the condition moved from...
22480         (cselib_process_insn): ... here holds.
22482 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
22484         PR plugins/59335
22485         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22486         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22488         PR plugins/59335
22489         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22490         (TM_H): Add x86-tune.def.
22492 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22494         * config/aarch64/aarch64.c (generic_tunings):
22495         Use cortexa57_extra_costs.
22497 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
22499         PR lto/60404
22500         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22501         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22502         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22503         cost for in_lto_p.
22505 2014-03-04  Heiher  <r@hev.cc>
22507         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22508         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22510 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
22512         * config/i386/predicates.md (const2356_operand): Change to ...
22513         (const2367_operand): ... this.
22514         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22515         const2367_operand.
22516         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22517         (*avx512pf_scatterpf<mode>sf): Ditto.
22518         (avx512pf_scatterpf<mode>df): Ditto.
22519         (*avx512pf_scatterpf<mode>df_mask): Ditto.
22520         (*avx512pf_scatterpf<mode>df): Ditto.
22521         * config/i386/i386.c (ix86_expand_builtin): Update
22522         incorrect hint operand error message.
22524 2014-03-04  Richard Biener  <rguenther@suse.de>
22526         * lto-section-in.c (lto_get_section_data): Fix const cast.
22528 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
22530         * tree-streamer.c (record_common_node): Assert we don't record
22531         nodes with type double.
22532         (preload_common_node): Skip type double, complex double and double
22533         pointer since it is now frontend dependent due to fshort-double option.
22535 2014-03-04  Richard Biener  <rguenther@suse.de>
22537         PR lto/60405
22538         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22539         (lto_input_toplevel_asms): Likewise.
22540         * lto-section-in.c (lto_get_section_data): Instead do it here
22541         for every section.
22543 2014-03-04  Richard Biener  <rguenther@suse.de>
22545         PR tree-optimization/60382
22546         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22547         dead PHIs a reduction.
22549 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
22551         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22552         hint value.
22553         (_mm_prefetch): Move out of GCC target("sse") pragma.
22554         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22555         GCC target("prfchw") pragma.
22556         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22557         for locality <= 2.
22558         * config/i386/i386.c (ix86_option_override_internal): Enable
22559         -mprfchw with -mprefetchwt1.
22561 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
22563         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22564         Mark as varying.
22566 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
22568         * opts.h (CL_PCH_IGNORE): Define.
22569         * targhooks.c (option_affects_pch_p):
22570         Return false for options that have CL_PCH_IGNORE set.
22571         * opt-functions.awk: Process PchIgnore.
22572         * doc/options.texi: Document PchIgnore.
22574         * config/arc/arc.opt (misize): Add PchIgnore property.
22576 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22578         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22579         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22580         constraint on constants to permit them being loaded into
22581         GENERAL_REGS or BASE_REGS.
22583 2014-03-03  Nick Clifton  <nickc@redhat.com>
22585         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22586         anti-cacnonical alternatives.
22587         (negandhi3_real): New pattern.
22588         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22590 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22592         * config/avr/avr-mcus.def: Remove atxmega16x1.
22593         * config/avr/avr-tables.opt: Regenerate.
22594         * config/avr/t-multilib: Regenerate.
22595         * doc/avr-mmcu.texi: Regenerate.
22597 2014-03-03  Tobias Grosser  <tobias@grosser.es>
22598             Mircea Namolaru  <mircea.namolaru@inria.fr>
22600         PR tree-optimization/58028
22601         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22602         scalar dimensions.
22604 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22606         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22607         not handled by recognizers.
22609 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
22611         PR middle-end/60175
22612         * function.c (expand_function_end): Don't emit
22613         clobber_return_register sequence if clobber_after is a BARRIER.
22614         * cfgexpand.c (construct_exit_block): Append instructions before
22615         return_label to prev_bb.
22617 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22619         * config/rs6000/constraints.md: Document reserved use of "wc".
22621 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
22623         PR ipa/60150
22624         * ipa.c (function_and_variable_visibility): When dissolving comdat
22625         group, also set all symbols to local.
22627 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
22629         PR ipa/60306
22631         Revert:
22632         2013-12-14  Jan Hubicka  <jh@suse.cz>
22633         PR middle-end/58477
22634         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22636 2014-03-02  Jon Beniston  <jon@beniston.com>
22638         PR bootstrap/48230
22639         PR bootstrap/50927
22640         PR bootstrap/52466
22641         PR target/46898
22642         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22643           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22644         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22645         (simple_return, *simple_return): New patterns
22646         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22647         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22649 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
22651         * dwarf2out.c (gen_subprogram_die): Tidy.
22653 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
22655         PR target/60071
22656         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22657         (*mov_t_msb_neg_negc): ... this new insn.
22659 2014-02-28  Jason Merrill  <jason@redhat.com>
22661         PR c++/58678
22662         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22663         function.
22665 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
22667         PR c++/60314
22668         * dwarf2out.c (decltype_auto_die): New static.
22669         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22670         (gen_type_die_with_usage): Handle 'decltype(auto)'.
22671         (is_cxx_auto): Likewise.
22673 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
22675         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22676         we are not using general regs only.
22678 2014-02-28  Richard Biener  <rguenther@suse.de>
22680         PR target/60280
22681         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22682         previous fix and only allow to remove trivial pre-headers
22683         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22684         (remove_forwarder_block): Properly update the latch of a loop.
22686 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
22688         PR debug/59992
22689         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22690         (cselib_preserved_hash_table): New.
22691         (preserve_constants_and_equivs): Move preserved vals to it.
22692         (cselib_find_slot): Look it up first.
22693         (cselib_init): Initialize it.
22694         (cselib_finish): Release it.
22695         (dump_cselib_table): Dump it.
22697 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
22699         PR debug/59992
22700         * cselib.c (remove_useless_values): Skip to avoid quadratic
22701         behavior if the condition moved from...
22702         (cselib_process_insn): ... here holds.
22704 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
22706         PR debug/57232
22707         * var-tracking.c (vt_initialize): Apply the same condition to
22708         preserve the CFA base value.
22710 2014-02-28  Joey Ye  <joey.ye@arm.com>
22712         PR target/PR60169
22713         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22714         if reload in progress or completed.
22716 2014-02-28  Tobias Burnus  <burnus@net-b.de>
22718         PR middle-end/60147
22719         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22720         NAMELIST_DECL.
22722 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
22724         * doc/tm.texi.in (Condition Code Status): Update documention for
22725         relative locations of cc0-setter and cc0-user.
22727 2014-02-27  Jeff Law  <law@redhat.com>
22729         PR rtl-optimization/52714
22730         * combine.c (try_combine): When splitting an unrecognized PARALLEL
22731         into two independent simple sets, if I3 is a jump, ensure the
22732         pattern we place into I3 is a (set (pc) ...).
22734 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
22735             Jeff Law  <law@redhat.com>
22737         PR rtl-optimization/49847
22738         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22739         are in different blocks.
22740         * doc/tm.texi (Condition Code Status): Update documention for
22741         relative locations of cc0-setter and cc0-user.
22743 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
22745         PR target/59222
22746         * lra.c (lra_emit_add): Check SUBREG too.
22748 2014-02-27  Andreas Schwab  <schwab@suse.de>
22750         * config/m68k/m68k.c (m68k_option_override): Disable
22751         -flive-range-shrinkage for classic m68k.
22752         (m68k_override_options_after_change): Likewise.
22754 2014-02-27  Marek Polacek  <polacek@redhat.com>
22756         PR middle-end/59223
22757         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22758         -Wmaybe-uninitialized.
22760 2014-02-27  Alan Modra  <amodra@gmail.com>
22762         PR target/57936
22763         * reload1.c (emit_input_reload_insns): When reload_override_in,
22764         set old to rl->in_reg when rl->in_reg is a subreg.
22766 2014-02-26  Richard Biener  <rguenther@suse.de>
22768         PR bootstrap/60343
22769         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22771 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
22773         * common/config/i386/predicates.md (const1256_operand): Remove.
22774         (const2356_operand): New.
22775         (const_1_to_2_operand): Remove.
22776         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22777         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22778         (*avx512pf_gatherpf<mode>sf): Ditto.
22779         (avx512pf_gatherpf<mode>df): Ditto.
22780         (*avx512pf_gatherpf<mode>df_mask): Ditto.
22781         (*avx512pf_gatherpf<mode>df): Ditto.
22782         (avx512pf_scatterpf<mode>sf): Ditto.
22783         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22784         (*avx512pf_scatterpf<mode>sf): Ditto.
22785         (avx512pf_scatterpf<mode>df): Ditto.
22786         (*avx512pf_scatterpf<mode>df_mask): Ditto.
22787         (*avx512pf_scatterpf<mode>df): Ditto.
22788         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22790 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
22792         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22793         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22794         (_mm512_mask_testn_epi64_mask): Move to ...
22795         * config/i386/avx512cdintrin.h: Here.
22796         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22797         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22798         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22799         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22800         TARGET_AVX512F from TARGET_AVX512CD.
22802 2014-02-26  Richard Biener  <rguenther@suse.de>
22804         PR ipa/60327
22805         * ipa.c (walk_polymorphic_call_targets): Properly guard
22806         call to inline_update_overall_summary.
22808 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
22810         PR target/60280
22811         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22812         and latches only if requested.  Fix latch if it is removed.
22813         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22814         LOOPS_HAVE_PREHEADERS.
22816 2014-02-25  Andrew Pinski  <apinski@cavium.com>
22818         * builtins.c (expand_builtin_thread_pointer): Create a new target
22819         when the target is NULL.
22821 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
22823         PR rtl-optimization/60317
22824         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22825         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22826         * lra-assigns.c: Include params.h.
22827         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22828         other reload pseudos considerations.
22830 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22832         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22833         to use canonical form for nor<mode>3.
22835 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22837         PR target/55426
22838         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22839         conversions.
22841 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
22843         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22844         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22845         (ix86_handle_option): Handle OPT_mprefetchwt1.
22846         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22847         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22848         PREFETCHWT1 CPUID.
22849         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22850         OPTION_MASK_ISA_PREFETCHWT1.
22851         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22852         (PTA_PREFETCHWT1): New.
22853         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22854         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22855         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22856         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22857         (*prefetch_avx512pf_<mode>_: Change into ...
22858         (*prefetch_prefetchwt1_<mode>: This.
22859         * config/i386/i386.opt (mprefetchwt1): New.
22860         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22861         (_mm_prefetch): Handle intent to write.
22862         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22864 2014-02-25  Richard Biener  <rguenther@suse.de>
22866         PR middle-end/60291
22867         * emit-rtl.c (mem_attrs_htab): Remove.
22868         (mem_attrs_htab_hash): Likewise.
22869         (mem_attrs_htab_eq): Likewise.
22870         (set_mem_attrs): Always allocate new mem-attrs when something changed.
22871         (init_emit_once): Do not allocate mem_attrs_htab.
22873 2014-02-25  Richard Biener  <rguenther@suse.de>
22875         PR lto/60319
22876         * lto-opts.c (lto_write_options): Output non-explicit conservative
22877         -fwrapv, -fno-trapv and -fno-strict-overflow.
22878         * lto-wrapper.c (merge_and_complain): Handle merging those options.
22879         (run_gcc): And pass them through.
22881 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
22883         * sel-sched.c (calculate_new_fences): New parameter ptime.
22884         Calculate it as a maximum over all fence cycles.
22885         (sel_sched_region_2): Adjust the call to calculate_new_fences.
22886         Print the final schedule timing when sched_verbose.
22888 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
22890         PR rtl-optimization/60292
22891         * sel-sched.c (fill_vec_av_set): Do not reset target availability
22892         bit fot the fence instruction.
22894 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
22896         * calls.h: Fix typo in comment.
22898 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
22900         * config/pa/pa.c (pa_output_move_double): Don't valididate when
22901         adjusting offsetable addresses.
22903 2014-02-24  Guozhi Wei  <carrot@google.com>
22905         * sparseset.h (sparseset_pop): Fix the wrong index.
22907 2014-02-24  Walter Lee  <walt@tilera.com>
22909         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22910         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22911         triplet.
22912         * common/config/tilegx/tilegx-common.c
22913         (TARGET_DEFAULT_TARGET_FLAGS): Define.
22914         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22915         (LINK_SPEC): Ditto.
22916         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22917         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22918         (tilegx_gimplify_va_arg_expr): Handle big endian.
22919         (tilegx_expand_unaligned_load): Ditto.
22920         (tilegx_expand_unaligned_store): Ditto.
22921         (TARGET_RETURN_IN_MSB): New.
22922         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22923         (TARGET_ENDIAN_DEFAULT): New.
22924         (TARGET_BIG_ENDIAN): Handle big endian.
22925         (BYTES_BIG_ENDIAN): Ditto.
22926         (WORDS_BIG_ENDIAN): Ditto.
22927         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22928         (ENDIAN_SPEC): New.
22929         (EXTRA_SPECS): New.
22930         * config/tilegx/tilegx.md (extv): Handle big endian.
22931         (extzv): Ditto.
22932         (insn_st<n>): Ditto.
22933         (insn_st<n>_add<bitsuffix>): Ditto.
22934         (insn_stnt<n>): Ditto.
22935         (insn_stnt<n>_add<bitsuffix>):Ditto.
22936         (vec_interleave_highv8qi): Handle big endian.
22937         (vec_interleave_highv8qi_be): New.
22938         (vec_interleave_highv8qi_le): New.
22939         (insn_v1int_h): Handle big endian.
22940         (vec_interleave_lowv8qi): Handle big endian.
22941         (vec_interleave_lowv8qi_be): New.
22942         (vec_interleave_lowv8qi_le): New.
22943         (insn_v1int_l): Handle big endian.
22944         (vec_interleave_highv4hi): Handle big endian.
22945         (vec_interleave_highv4hi_be): New.
22946         (vec_interleave_highv4hi_le): New.
22947         (insn_v2int_h): Handle big endian.
22948         (vec_interleave_lowv4hi): Handle big endian.
22949         (vec_interleave_lowv4hi_be): New.
22950         (vec_interleave_lowv4hi_le): New.
22951         (insn_v2int_l): Handle big endian.
22952         (vec_interleave_highv2si): Handle big endian.
22953         (vec_interleave_highv2si_be): New.
22954         (vec_interleave_highv2si_le): New.
22955         (insn_v4int_h): Handle big endian.
22956         (vec_interleave_lowv2si): Handle big endian.
22957         (vec_interleave_lowv2si_be): New.
22958         (vec_interleave_lowv2si_le): New.
22959         (insn_v4int_l): Handle big endian.
22960         * config/tilegx/tilegx.opt (mbig-endian): New option.
22961         (mlittle-endian): New option.
22962         * doc/install.texi: Document tilegxbe-linux.
22963         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22965 2014-02-24  Martin Jambor  <mjambor@suse.cz>
22967         PR ipa/60266
22968         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22969         there are no parameter descriptors.
22971 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
22973         PR rtl-optimization/60268
22974         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22975         initialization to ...
22976         (sched_rgn_init): ... here.
22977         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22979 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
22981         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22982         names.
22984 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
22986         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22987         definition.
22989 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
22991         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22992         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22994 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
22996         * config/microblaze/predicates.md: Add cmp_op predicate.
22997         * config/microblaze/microblaze.md: Add branch_compare instruction
22998         which uses cmp_op predicate and emits cmp insn before branch.
22999         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23000         to microblaze_expand_conditional_branch and consolidate logic.
23001         (microblaze_expand_conditional_branch): emit branch_compare
23002         insn instead of handling cmp op separate from branch insn.
23004 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23006         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23007         to permit subregs.
23009 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23011         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23012         define_insn with define_expand and new define_insn
23013         *altivec_lve<VI_char>x_internal.
23014         (altivec_stve<VI_char>x): Replace define_insn with define_expand
23015         and new define_insn *altivec_stve<VI_char>x_internal.
23016         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23017         prototype.
23018         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23019         lve*x built-ins.
23020         (altivec_expand_stvex_be): New function.
23022 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
23024         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23025         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23026         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23027         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23029 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
23031         PR target/60298
23032         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23033         instead of emit_move_insn.
23035 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23037         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23038         vspltw with vsldoi.
23039         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23040         gen_altivec_vsumsws.
23042 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23044         * config/rs6000/altivec.md (altivec_lvxl): Rename as
23045         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23046         (altivec_lvxl_<mode>): New define_expand incorporating
23047         -maltivec=be semantics where needed.
23048         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23049         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23050         semantics where needed.
23051         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23052         (altivec_stvx_<mode>): New define_expand incorporating
23053         -maltivec=be semantics where needed.
23054         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23055         VM2 iterator instead of V4SI.
23056         (altivec_stvxl_<mode>): New define_expand incorporating
23057         -maltivec=be semantics where needed.
23058         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23059         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23060         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23061         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23062         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23063         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23064         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23065         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23066         ALTIVEC_BUILTIN_STVXL.
23067         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23068         (altivec_expand_stvx_be): Likewise.
23069         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23070         (altivec_expand_lvx_be): Likewise.
23071         (altivec_expand_stvx_be): Likewise.
23072         (altivec_expand_builtin): Add cases for
23073         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23074         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23075         (altivec_init_builtins): Add definitions for
23076         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23077         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23079 2014-02-21  Catherine Moore  <clm@codesourcery.com>
23081         * doc/invoke.texi (mvirt, mno-virt): Document.
23082         * config/mips/mips.opt (mvirt): New option.
23083         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23085 2014-02-21  Richard Biener  <rguenther@suse.de>
23087         PR tree-optimization/60276
23088         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23089         (STMT_VINFO_MIN_NEG_DIST): New macro.
23090         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23091         STMT_VINFO_MIN_NEG_DIST.
23092         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23093         made for negative dependence distances still hold.
23095 2014-02-21  Richard Biener  <rguenther@suse.de>
23097         PR middle-end/60291
23098         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23099         DECL_INITIAL for globals not in the current function context.
23101 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
23103         PR tree-optimization/56490
23104         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23105         * tree-ssa-uninit.c: Include params.h.
23106         (compute_control_dep_chain): Add num_calls argument, return false
23107         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23108         num_calls to recursive call.
23109         (find_predicates): Change dep_chain into normal array,
23110         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23111         variable and adjust compute_control_dep_chain caller.
23112         (find_def_preds): Likewise.
23114 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
23116         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23117         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23119 2014-02-21  Nick Clifton  <nickc@redhat.com>
23121         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23122         (pushhi1): Likewise.
23123         (popqi1): Add mode to pre_dec.
23124         (pophi1): Likewise.
23126 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
23128         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23129         mode for mask of V8SFmode permutation.
23131 2014-02-20  Richard Henderson  <rth@redhat.com>
23133         PR c++/60272
23134         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23135         a new pseudo for OLDVAL.
23137 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
23139         PR target/57896
23140         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23141         gen_reg_rtx if d->testing_p.
23142         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23143         if d->testing_p and we will certainly return true.
23144         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
23145         if d->testing_p.
23147 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
23149         * emit-rtl.c (gen_reg_rtx): Assert that
23150         crtl->emit.regno_pointer_align_length is non-zero.
23152 2014-02-20  Richard Henderson  <rth@redhat.com>
23154         PR c++/60272
23155         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23156         on failure the store back into EXPECT.
23158 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
23159             Sandra Loosemore  <sandra@codesourcery.com>
23161         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23162         * config/nios2/nios2.c (nios2_function_profiler): Add
23163         -fPIC (flag_pic == 2) support.
23164         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23165         (nios2_large_offset_p): New function.
23166         (nios2_unspec_reloc_p): Move up position, update to use
23167         nios2_large_offset_p.
23168         (nios2_unspec_address): Remove function.
23169         (nios2_unspec_offset): New function.
23170         (nios2_large_got_address): New function.
23171         (nios2_got_address): Add large offset support.
23172         (nios2_legitimize_tls_address): Update usage of removed and new
23173         functions.
23174         (nios2_symbol_binds_local_p): New function.
23175         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23176         (nios2_legitimize_address): Update to use nios2_large_offset_p.
23177         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23178         (nios2_print_operand): Merge H/L processing, add hiadj/lo
23179         processing for (const (unspec ...)).
23180         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23182 2014-02-20  Richard Biener  <rguenther@suse.de>
23184         * tree-cfg.c (replace_uses_by): Mark altered BBs before
23185         doing the substitution.
23186         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23188 2014-02-20  Martin Jambor  <mjambor@suse.cz>
23190         PR ipa/55260
23191         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23192         info when checking whether lattices are bottom.
23194 2014-02-20  Richard Biener  <rguenther@suse.de>
23196         PR middle-end/60221
23197         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23198         regions at -O0.
23200 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
23202         PR ipa/58555
23203         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23204         parameter specifying the scaling.
23205         (inline_call): Update.
23206         (want_inline_recursively): Guard division by zero.
23207         (recursive_inlining): Update.
23208         * ipa-inline.h (clone_inlined_nodes): Update.
23210 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
23212         PR target/60204
23213         * config/i386/i386.c (classify_argument): Pass structures of size
23214         64 bytes or less in register.
23216 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
23217             Kirill Yukhin  <kirill.yukhin@intel.com>
23219         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23220         (_mm_rcp28_round_ss): Ditto.
23221         (_mm_rsqrt28_round_sd): Ditto.
23222         (_mm_rsqrt28_round_ss): Ditto.
23223         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23224         (_mm_rcp14_round_ss): Ditto.
23225         (_mm_rsqrt14_round_sd): Ditto.
23226         (_mm_rsqrt14_round_ss): Ditto.
23227         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23228         the first input operand, get rid of match_dup.
23229         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23230         attribute to sse.
23231         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23232         Ditto.
23233         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23234         operand as the first input operand, set type attribute.
23235         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23236         Set type attribute.
23237         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23238         operand as the first input operand, set type attribute.
23240 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23242         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23243         bit of zero.
23245 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
23247         PR target/60207
23248         * config/i386/i386.c (construct_container): Remove TFmode check
23249         for X86_64_INTEGER_CLASS.
23251 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
23253         PR target/59794
23254         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23255         only when -Wpsabi is enabled.
23257 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
23259          PR target/59799
23260         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23261         passing arrays in registers are the same as for structs, so remove the
23262         special case for them.
23264 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
23266         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23267         destination type, extract only the valid bits if the source type is not
23268         integral and has a different mode.
23270 2014-02-19  Richard Biener  <rguenther@suse.de>
23272         PR ipa/60243
23273         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23274         for all calls.
23276 2014-02-19  Richard Biener  <rguenther@suse.de>
23278         PR ipa/60243
23279         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23280         (ipa_modify_call_arguments): Emit an argument load explicitely and
23281         preserve virtual SSA form there and for the replacement call.
23282         Do not update SSA form nor free dominance info.
23284 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
23286         * ipa.c (function_and_variable_visibility): Also clear WEAK
23287         flag when disolving COMDAT_GROUP.
23289 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
23291         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23292         * ipa-prop.c (ipa_set_jf_known_type): Return early when
23293         not devirtualizing.
23294         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23295         do more sanity checks.
23296         (detect_type_change): Return true when giving up early.
23297         (compute_complex_assign_jump_func): Fix type parameter of
23298         ipa_set_ancestor_jf.
23299         (compute_complex_ancestor_jump_func): Likewise.
23300         (update_jump_functions_after_inlining): Fix updating of
23301         ancestor function.
23302         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23304 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
23306         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23307         inline clones when edge disappears.
23309 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
23311         PR target/60203
23312         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23313         Split 64-bit moves into 2 patterns.  Do not allow the use of
23314         direct move for TDmode in little endian, since the decimal value
23315         has little endian bytes within a word, but the 64-bit pieces are
23316         ordered in a big endian fashion, and normal subreg's of TDmode are
23317         not allowed.
23318         (mov<mode>_64bit_dm): Likewise.
23319         (movtd_64bit_nodm): Likewise.
23321 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
23323         PR tree-optimization/60174
23324         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23325         statement of an SSA_NAME that occurs in an abnormal PHI node.
23327 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
23329         PR sanitizer/60142
23330         * final.c (SEEN_BB): Remove.
23331         (SEEN_NOTE, SEEN_EMITTED): Renumber.
23332         (final_scan_insn): Don't force_source_line on second
23333         NOTE_INSN_BASIC_BLOCK.
23335 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
23337         PR target/60205
23338         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23339         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23340         (type_natural_mode): Warn ABI change when %zmm register is not
23341         available for AVX512F vector value passing.
23343 2014-02-18  Kai Tietz  <ktietz@redhat.com>
23345         PR target/60193
23346         * config/i386/i386.c (ix86_expand_prologue): Use value in
23347         rax register as displacement when restoring %r10 or %rax.
23348         Fix wrong offset when restoring both registers.
23350 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
23352         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23353         assertion with conditional return.
23355 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
23356             Uros Bizjak  <ubizjak@gmail.com>
23358         PR driver/60233
23359         * config/i386/driver-i386.c (host_detect_local_cpu): If
23360         YMM state is not saved by the OS, also clear has_f16c.  Move
23361         CPUID 0x80000001 handling before YMM state saving checking.
23363 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
23365         PR rtl-optimization/58960
23366         * haifa-sched.c (alloc_global_sched_pressure_data): New,
23367         factored out from ...
23368         (sched_init): ... here.
23369         (free_global_sched_pressure_data): New, factored out from ...
23370         (sched_finish): ... here.
23371         * sched-int.h (free_global_sched_pressure_data): Declare.
23372         * sched-rgn.c (nr_regions_initial): New static global.
23373         (haifa_find_rgns): Initialize it.
23374         (schedule_region): Disable sched-pressure for the newly
23375         generated regions.
23377 2014-02-17  Richard Biener  <rguenther@suse.de>
23379         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23380         release SSA defs of pattern stmts.
23382 2014-02-17  Richard Biener  <rguenther@suse.de>
23384         * tree-inline.c (expand_call_inline): Release the virtual
23385         operand defined by the call we are about to inline.
23387 2014-02-17  Richard Biener  <rguenther@suse.de>
23389         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23391 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
23392             Ilya Tocar  <ilya.tocar@intel.com>
23394         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23395         arguments order in builtin.
23396         (_mm512_permutexvar_epi64): Ditto.
23397         (_mm512_mask_permutexvar_epi64): Ditto
23398         (_mm512_maskz_permutexvar_epi32): Ditto
23399         (_mm512_permutexvar_epi32): Ditto
23400         (_mm512_mask_permutexvar_epi32): Ditto
23402 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23404         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23405         (p8_vmrgow): Likewise.
23407 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23409         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23410         endian targets.
23412 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
23414         PR target/60203
23415         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23416         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23417         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
23418         using direct move instructions on ISA 2.07.  Also adjust
23419         instruction length for 64-bit.
23420         (mov<mode>_64bit, TFmode/TDmode): Likewise.
23421         (mov<mode>_32bit, TFmode/TDmode): Likewise.
23423 2014-02-15  Alan Modra  <amodra@gmail.com>
23425         PR target/58675
23426         PR target/57935
23427         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23428         find_replacement on parts of insn rtl that might be reloaded.
23430 2014-02-15  Richard Biener  <rguenther@suse.de>
23432         PR tree-optimization/60183
23433         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23434         (tree_ssa_phiprop): Calculate and free post-dominators.
23436 2014-02-14  Jeff Law  <law@redhat.com>
23438         PR rtl-optimization/60131
23439         * ree.c (get_extended_src_reg): New function.
23440         (combine_reaching_defs): Use it rather than assuming location of REG.
23441         (find_and_remove_re): Verify first operand of extension is
23442         a REG before adding the insns to the copy list.
23444 2014-02-14  Roland McGrath  <mcgrathr@google.com>
23446         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23447         * configure: Regenerated.
23448         * config.in: Regenerated.
23449         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23450         instead of ASM_SHORT.
23452 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
23453             Richard Earnshaw  <rearnsha@arm.com>
23455         PR rtl-optimization/59535
23456         * lra-constraints.c (process_alt_operands): Encourage alternative
23457         when unassigned pseudo class is superset of the alternative class.
23458         (inherit_reload_reg): Don't inherit when optimizing for code size.
23459         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23460         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23461         modes not less than 4 for Thumb1.
23463 2014-02-14  Kyle McMartin  <kyle@redhat.com>
23465         PR pch/60010
23466         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23468 2014-02-14  Richard Biener  <rguenther@suse.de>
23470         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23471         (get_frame_arg): Drop the assert with langhook types_compatible_p.
23472         Do not strip INDIRECT_REFs.
23474 2014-02-14  Richard Biener  <rguenther@suse.de>
23476         PR lto/60179
23477         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23478         DECL_FUNCTION_SPECIFIC_TARGET.
23479         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23480         * tree-streamer-out.c (pack_ts_target_option): Remove.
23481         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23482         (write_ts_function_decl_tree_pointers): Do not stream
23483         DECL_FUNCTION_SPECIFIC_TARGET.
23484         * tree-streamer-in.c (unpack_ts_target_option): Remove.
23485         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23486         (lto_input_ts_function_decl_tree_pointers): Do not stream
23487         DECL_FUNCTION_SPECIFIC_TARGET.
23489 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
23491         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23492         (get_initial_def_for_induction, vectorizable_induction): Ignore
23493         debug stmts when looking for exit_phi.
23494         (vectorizable_live_operation): Fix up condition.
23496 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
23498         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23499         nreverse() because it changes the content of original tree list.
23501 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
23503         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23504         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23506 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
23508         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23509         GNU coding standards.
23511 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
23513         PR debug/60152
23514         * dwarf2out.c (gen_subprogram_die): Don't call
23515         add_calling_convention_attribute if subr_die is old_die.
23517 2014-02-13  Sharad Singhai  <singhai@google.com>
23519         * doc/optinfo.texi: Fix order of nodes.
23521 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
23523         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23524         operands[2], not operands[3].
23526 2014-02-13  Richard Biener  <rguenther@suse.de>
23528         PR bootstrap/59878
23529         * doc/install.texi (ISL): Update recommended version to 0.12.2,
23530         mention the possibility of an in-tree build.
23531         (CLooG): Update recommended version to 0.18.1, mention the
23532         possibility of an in-tree build and clarify that the ISL
23533         bundled with CLooG does not work.
23535 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
23537         PR target/43546
23538         * expr.c (compress_float_constant): If x is a hard register,
23539         extend into a pseudo and then move to x.
23541 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23543         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23544         caused by bad second argument to warning_at() with -mhotpatch and
23545         nested functions (e.g. with gfortran).
23547 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
23549         * opts.c (option_name): Remove "enabled by default" rider.
23551 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
23553         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23555 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
23556             Uros Bizjak  <ubizjak@gmail.com>
23558         PR target/60151
23559         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23560         * configure: Regenerated.
23562 2014-02-12  Richard Biener  <rguenther@suse.de>
23564         * vec.c (vec_prefix::calculate_allocation): Move as
23565         inline variant to vec.h.
23566         (vec_prefix::calculate_allocation_1): New out-of-line version.
23567         * vec.h (vec_prefix::calculate_allocation_1): Declare.
23568         (vec_prefix::m_has_auto_buf): Rename to ...
23569         (vec_prefix::m_using_auto_storage): ... this.
23570         (vec_prefix::calculate_allocation): Inline the easy cases
23571         and dispatch to calculate_allocation_1 which doesn't need the
23572         prefix address.
23573         (va_heap::reserve): Use gcc_checking_assert.
23574         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23575         m_using_auto_storage.
23576         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23577         member and adjust.
23578         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23579         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23580         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23582 2014-02-12  Richard Biener  <rguenther@suse.de>
23584         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23585         when we found a dependence.
23587 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
23589         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23590         common code...
23591         (maybe_fold_stmt): ... into this new function.
23592         * omp-low.c (lower_omp): Update comment.
23594         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23595         last use.
23597         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23598         dereference.
23600 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
23602         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23603         identifiers in comments.
23604         (cortexa53_extra_costs): Likewise.
23605         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23606         (cortexa7_extra_costs): Likewise.
23607         (cortexa12_extra_costs): Likewise.
23608         (cortexa15_extra_costs): Likewise.
23609         (v7m_extra_costs): Likewise.
23611 2014-02-12  Richard Biener  <rguenther@suse.de>
23613         PR middle-end/60092
23614         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23615         of posix_memalign being successful.
23616         (lower_stmt): Restrict lowering of posix_memalign to when
23617         -ftree-bit-ccp is enabled.
23619 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23621         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23622         arg_loc.
23623         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23625 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
23627         PR rtl-optimization/60116
23628         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23629         other_insn once the combination has been validated.
23631 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
23633         PR lto/59468
23634         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23635         and wrapper.
23636         * ipa-devirt.c: Include demangle.h
23637         (odr_violation_reported): New static variable.
23638         (add_type_duplicate): Update odr_violations.
23639         (maybe_record_node): Add completep parameter; update it.
23640         (record_target_from_binfo): Add COMPLETEP parameter;
23641         update it as needed.
23642         (possible_polymorphic_call_targets_1): Likewise.
23643         (struct polymorphic_call_target_d): Add nonconstruction_targets;
23644         rename FINAL to COMPLETE.
23645         (record_targets_from_bases): Sanity check we found the binfo;
23646         fix COMPLETEP updating.
23647         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23648         parameter, fix computing of COMPLETEP.
23649         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23650         at LTO time do demangling.
23651         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23652         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23653         parameter.
23654         (gimple_get_virt_method_for_binfo): Likewise.
23655         * gimple-fold.h (gimple_get_virt_method_for_binfo,
23656         gimple_get_virt_method_for_vtable): Update prototypes.
23658 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
23660         PR target/49008
23661         * genautomata.c (add_presence_absence): Fix typo with
23662         {final_}presence_list.
23664 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
23666         PR target/60137
23667         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23668         for VSX/Altivec vectors that land in GPR registers.
23670 2014-02-11  Richard Henderson  <rth@redhat.com>
23671             Jakub Jelinek  <jakub@redhat.com>
23673         PR debug/59776
23674         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23675         around drhs if type conversion to lacc->type is not useless.
23677 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23679         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23680         tuning struct.
23681         (cortex-a57.cortex-a53): Likewise.
23682         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23684 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23686         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23687         arm_restrict_it.
23689 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
23691         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23692         add_options_for_arm_vfp3.
23694 2014-02-11  Jeff Law  <law@redhat.com>
23696         PR middle-end/54041
23697         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23698         object with an undesirable mode.
23700 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23702         PR libgomp/60107
23703         * config/i386/sol2-9.h: New file.
23704         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23705         *-*-solaris2.9*): Use it.
23707 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
23709         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23710         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23712 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
23714         * config/microblaze/microblaze.c: Extend mcpu version format
23716 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
23718         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23720 2014-02-10  Richard Henderson  <rth@redhat.com>
23722         PR target/59927
23723         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23724         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23725         ms-abi vs -mno-accumulate-outgoing-args.
23726         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23727         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23728         respect to ms-abi.
23730 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23732         PR middle-end/60080
23733         * cfgexpand.c (expand_asm_operands): Attach source location to
23734         ASM_INPUT rtx objects.
23735         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23737 2014-02-10  Nick Clifton  <nickc@redhat.com>
23739         * config/mn10300/mn10300.c (popcount): New function.
23740         (mn10300_expand_prologue): Include saved registers in stack usage
23741         count.
23743 2014-02-10  Jeff Law  <law@redhat.com>
23745         PR middle-end/52306
23746         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23747         when changing the SET_DEST of a prior insn to avoid an input reload.
23749 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23751         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23752         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23753         -mcall-openbsd, or -mcall-linux.
23754         (CC1_ENDIAN_BIG_SPEC): Remove.
23755         (CC1_ENDIAN_LITTLE_SPEC): Remove.
23756         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23757         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23758         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23759         and %cc1_endian_default.
23760         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23762 2014-02-10  Richard Biener  <rguenther@suse.de>
23764         PR tree-optimization/60115
23765         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23766         MEM_REF handling.  Properly verify that the accesses are not
23767         out of the objects bound.
23769 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23771         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23772         coretex to cortex.
23774 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
23776         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23777         proper constants and fix formatting.
23778         (possible_polymorphic_call_targets): Fix formatting.
23780 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
23781             Ilya Tocar  <ilya.tocar@intel.com>
23783         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23784         (_mm512_loadu_epi32): Renamed into...
23785         (_mm512_loadu_si512): This.
23786         (_mm512_storeu_epi32): Renamed into...
23787         (_mm512_storeu_si512): This.
23788         (_mm512_maskz_ceil_ps): Removed.
23789         (_mm512_maskz_ceil_pd): Ditto.
23790         (_mm512_maskz_floor_ps): Ditto.
23791         (_mm512_maskz_floor_pd): Ditto.
23792         (_mm512_floor_round_ps): Ditto.
23793         (_mm512_floor_round_pd): Ditto.
23794         (_mm512_ceil_round_ps): Ditto.
23795         (_mm512_ceil_round_pd): Ditto.
23796         (_mm512_mask_floor_round_ps): Ditto.
23797         (_mm512_mask_floor_round_pd): Ditto.
23798         (_mm512_mask_ceil_round_ps): Ditto.
23799         (_mm512_mask_ceil_round_pd): Ditto.
23800         (_mm512_maskz_floor_round_ps): Ditto.
23801         (_mm512_maskz_floor_round_pd): Ditto.
23802         (_mm512_maskz_ceil_round_ps): Ditto.
23803         (_mm512_maskz_ceil_round_pd): Ditto.
23804         (_mm512_expand_pd): Ditto.
23805         (_mm512_expand_ps): Ditto.
23806         * config/i386/i386.c (ix86_builtins): Remove
23807         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23808         (bdesc_args): Ditto.
23809         * config/i386/predicates.md (const1256_operand): New.
23810         (const_1_to_2_operand): Ditto.
23811         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23812         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23813         (*avx512pf_gatherpf<mode>sf): Ditto.
23814         (avx512pf_gatherpf<mode>df): Ditto.
23815         (*avx512pf_gatherpf<mode>df_mask): Ditto.
23816         (*avx512pf_gatherpf<mode>df): Ditto.
23817         (avx512pf_scatterpf<mode>sf): Ditto.
23818         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23819         (*avx512pf_scatterpf<mode>sf): Ditto.
23820         (avx512pf_scatterpf<mode>df): Ditto.
23821         (*avx512pf_scatterpf<mode>df_mask): Ditto.
23822         (*avx512pf_scatterpf<mode>df): Ditto.
23823         (avx512f_expand<mode>): Removed.
23824         (<shift_insn><mode>3<mask_name>): Change predicate type.
23826 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
23828         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23829         not at the end of datarefs vector use ordered_remove to avoid
23830         reordering datarefs vector.
23832         PR c/59984
23833         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23834         mark local addressable non-static vars as GOVD_PRIVATE
23835         instead of GOVD_LOCAL.
23836         * omp-low.c (lower_omp_for): Move gimple_bind_vars
23837         and BLOCK_VARS of gimple_bind_block to new_stmt rather
23838         than copying them.
23840         PR middle-end/60092
23841         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23842         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23843         assume_aligned or alloc_align attributes.
23844         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23845         arguments.  Handle also assume_aligned and alloc_align attributes.
23846         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
23847         calls to functions with assume_aligned or alloc_align attributes.
23848         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23850 2014-02-08  Terry Guo  <terry.guo@arm.com>
23852         * doc/invoke.texi: Document ARM -march=armv7e-m.
23854 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
23856         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23857         flag on __cilkrts_rethrow builtin.
23859         PR ipa/60026
23860         * ipa-cp.c (determine_versionability): Fail at -O0
23861         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23862         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23864         Revert:
23865         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
23867         PR ipa/60026
23868         * tree-inline.c (copy_forbidden): Fail for
23869         __attribute__((optimize (0))) functions.
23871 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
23873         * varpool.c: Include pointer-set.h.
23874         (varpool_remove_unreferenced_decls): Variables in other partitions
23875         will not be output; be however careful to not lose information
23876         about partitioning.
23878 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
23880         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23881         lookup in the vtable constructor.
23883 2014-02-07  Jeff Law  <law@redhat.com>
23885         PR target/40977
23886         * config/m68k/m68k.md (ashldi_extsi): Turn into a
23887         define_insn_and_split.
23889         * ipa-inline.c (inline_small_functions): Fix typos.
23891 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23893         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23894         (s390_can_use_return_insn): Declare.
23895         * config/s390/s390.h (EPILOGUE_USES): Define.
23896         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23897         instructions.
23898         (s390_chunkify_start): Handle return JUMP_LABELs.
23899         (s390_early_mach): Emit a main_pool instruction on the entry edge.
23900         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23901         (s390_can_use_return_insn): New functions.
23902         (s390_fix_long_loop_prediction): Handle conditional returns.
23903         (TARGET_SET_UP_BY_PROLOGUE): Define.
23904         * config/s390/s390.md (ANY_RETURN): New code iterator.
23905         (*creturn, *csimple_return, return, simple_return): New patterns.
23907 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23909         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23910         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
23911         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
23912         REG_CFA_RESTORE list when deciding not to restore a register.
23914 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23916         * config/s390/s390.c: Include tree-pass.h and context.h.
23917         (s390_early_mach): New function, split out from...
23918         (s390_emit_prologue): ...here.
23919         (pass_data_s390_early_mach): New pass structure.
23920         (pass_s390_early_mach): New class.
23921         (s390_option_override): Create and register early_mach pass.
23922         Move to end of file.
23924 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23926         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23927         to match for the exit block.
23929 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23931         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23932         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23933         Reject misaligned operands.
23935 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23937         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23939 2014-02-07  Richard Biener  <rguenther@suse.de>
23941         PR middle-end/60092
23942         * gimple-low.c (lower_builtin_posix_memalign): New function.
23943         (lower_stmt): Call it to lower posix_memalign in a way
23944         to make alignment info accessible.
23946 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
23948         PR c++/60082
23949         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23950         __builtin_setjmp_receiver.
23952 2014-02-07  Richard Biener  <rguenther@suse.de>
23954         PR middle-end/60092
23955         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23956         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23957         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23958         Handle BUILT_IN_POSIX_MEMALIGN.
23959         (find_func_clobbers): Likewise.
23960         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23961         (call_may_clobber_ref_p_1): Likewise.
23963 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
23965         PR ipa/59918
23966         * ipa-devirt.c (record_target_from_binfo): Remove overactive
23967         sanity check.
23969 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
23971         PR ipa/59469
23972         * lto-cgraph.c (lto_output_node): Use
23973         symtab_get_symbol_partitioning_class.
23974         (lto_output_varpool_node): likewise.
23975         (symtab_get_symbol_partitioning_class): Move here from
23976         lto/lto-partition.c
23977         * cgraph.h (symbol_partitioning_class): Likewise.
23978         (symtab_get_symbol_partitioning_class): Declare.
23980 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
23982         * ggc.h (ggc_internal_cleared_alloc): New macro.
23983         * vec.h (vec_safe_copy): Handle memory stats.
23984         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23985         * target-globals.c (save_target_globals): Likewise.
23987 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
23989         PR target/60077
23990         * expr.c (emit_move_resolve_push): Export; be bit more selective
23991         on when to clear alias set.
23992         * expr.h (emit_move_resolve_push): Declare.
23993         * function.h (struct function): Add tail_call_marked.
23994         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23995         * config/i386/i386-protos.h (ix86_expand_push): Remove.
23996         * config/i386/i386.md (TImode move expander): De not call
23997         ix86_expand_push.
23998         (FP push expanders): Preserve memory attributes.
23999         * config/i386/sse.md (push<mode>1): Remove.
24000         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24001         (ix86_expand_push): Remove.
24002         * config/i386/mmx.md (push<mode>1): Remove.
24004 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
24006         PR rtl-optimization/60030
24007         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24008         lopart with paradoxical subreg before shifting it up by hprec.
24010 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24012         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24013         Remove extra newline at end of file.
24014         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24015         (arm_issue_rate): Handle cortexa57.
24016         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24017         (cortex-a57.cortex-a53): Likewise.
24019 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
24021         PR target/59575
24022         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24023         don't record in REG_FRAME_RELATED_EXPR registers not set in that
24024         bitmask.
24025         (arm_expand_prologue): Adjust all callers.
24026         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24027         info, registers also at the lowest numbered registers side.  Use
24028         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24029         XEXP.
24031         PR debug/59992
24032         * var-tracking.c (adjust_mems): Before adding a SET to
24033         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24035 2014-02-06  Alan Modra  <amodra@gmail.com>
24037         PR target/60032
24038         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24039         change SDmode to DDmode when lra_in_progress.
24041 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
24043         PR middle-end/59150
24044         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24045         free_data_ref on the dr first, and before goto again also set dr
24046         to the next dr.  For simd_lane_access, free old datarefs[i] before
24047         overwriting it.  For get_vectype_for_scalar_type failure, don't
24048         free_data_ref if simd_lane_access.
24050         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24052         PR target/60062
24053         * tree.h (opts_for_fn): New inline function.
24054         (opt_for_fn): Define.
24055         * config/i386/i386.c (ix86_function_regparm): Use
24056         opt_for_fn (decl, optimize) instead of optimize.
24058 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24060         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24061         for SYMBOL_REF in large memory model.
24063 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24065         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24066         and crypto support.
24067         (cortex-a57): Likewise.
24068         (cortex-a57.cortex-a53): Likewise.
24070 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
24071             Kugan Vivekanandarajah  <kuganv@linaro.org>
24073         * config/arm/arm.c (arm_vector_alignment_reachable): Check
24074         unaligned_access.
24075         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24077 2014-02-06  Richard Biener  <rguenther@suse.de>
24079         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24080         set_loop_copy and initialize_original_copy_tables.
24082 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
24084         * config/aarch64/aarch64-simd.md
24085         (aarch64_ashr_simddi): Change QI to SI.
24087 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
24088             Jakub Jelinek  <jakub@redhat.com>
24090         PR middle-end/60013
24091         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24092         of the dataflow.
24094 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24096         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24097         CODE_FOR_altivec_vpku[hw]um to
24098         CODE_FOR_altivec_vpku[hw]um_direct.
24099         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24100         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24101         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24102         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24104 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24106         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24107         generation for -maltivec=be.
24108         (altivec_vsumsws): Simplify redundant test.
24110 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24112         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24113         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24114         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24115         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24116         gen_altivec_vpkuwum.
24117         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24118         BYTES_BIG_ENDIAN.
24119         (altivec_vpks<VI_char>ss): Likewise.
24120         (altivec_vpks<VI_char>us): Likewise.
24121         (altivec_vpku<VI_char>us): Likewise.
24122         (altivec_vpku<VI_char>um): Likewise.
24123         (altivec_vpku<VI_char>um_direct): New (copy of
24124         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24125         internal use).
24126         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24127         target is little endian and -maltivec=be is not specified.
24128         (*altivec_vupkhs<VU_char>_direct): New (copy of
24129         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24130         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24131         target is little endian and -maltivec=be is not specified.
24132         (*altivec_vupkls<VU_char>_direct): New (copy of
24133         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24134         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24135         little endian and -maltivec=be is not specified.
24136         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24137         little endian and -maltivec=be is not specified.
24139 2014-02-05  Richard Henderson  <rth@redhat.com>
24141         PR debug/52727
24142         * combine-stack-adj.c: Revert r206943.
24143         * sched-int.h (struct deps_desc): Add last_args_size.
24144         * sched-deps.c (init_deps): Initialize it.
24145         (sched_analyze_insn): Add OUTPUT dependencies between insns that
24146         contain REG_ARGS_SIZE notes.
24148 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
24150         * lto-cgraph.c (asm_nodes_output): Make global.
24151         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24152         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24153         (driver_handle_option): Handle OPT_fwpa.
24155 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
24157         PR ipa/59947
24158         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24159         a comment typo and formatting issue.  If odr_hash hasn't been
24160         created, return vNULL and set *completep to false.
24162         PR middle-end/57499
24163         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24164         bb with no successors.
24166 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
24168         PR target/59718
24169         * doc/invoke.texi (-march): Clarify documentation for ARM.
24170         (-mtune): Likewise.
24171         (-mcpu): Likewise.
24173 2014-02-05  Richard Biener  <rguenther@suse.de>
24175         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24176         when not vectorizing because of too many alias checks.
24177         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24178         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24180 2014-02-05  Nick Clifton  <nickc@redhat.com>
24182         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24183         accept extended registers in any mode when compiling for the MN10300.
24185 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
24187         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24188         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24189         sanitization attributes.
24190         (can_inline_edge_p): Likewise.
24191         (sanitize_attrs_match_for_inline_p): New function.
24193 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
24195         * ipa-prop.c (detect_type_change): Shor circuit testing of
24196         type changes on THIS pointer.
24198 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
24200         PR target/59777
24201         * config/pa/pa.c (legitimize_tls_address): Return original address
24202         if not passed a SYMBOL_REF rtx.
24203         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24204         addresses.
24205         (pa_emit_move_sequence): Simplify TLS source operands.
24206         (pa_legitimate_constant_p): Reject all TLS constants.
24207         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24208         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24210 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
24212         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24213         groups when we know they are controlled by LTO.
24214         * varasm.c (default_binds_local_p_1): If object is in other partition,
24215         it will be resolved locally.
24217 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24219         * config/host-linux.c (linux_gt_pch_use_address): Don't
24220         use SSIZE_MAX because it is not always defined.
24222 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
24224         PR bootstrap/59913
24225         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24226         threshold for pseudo splitting.
24227         (update_ebb_live_info): Process call argument hard registers and
24228         hard registers from insn definition too.
24229         (max_small_class_regs_num): New constant.
24230         (inherit_in_ebb): Update live hard regs through EBBs.  Update
24231         reloads_num only for small register classes.  Don't split for
24232         outputs of jumps.
24234 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
24236         PR ipa/60058
24237         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24238         is non-null.
24240 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
24242         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24243         visibility is safe.
24245 2014-02-04  Marek Polacek  <polacek@redhat.com>
24247         * gdbinit.in (pel): Define.
24249 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24251         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24252         behavior.
24254 2014-02-04  Richard Biener  <rguenther@suse.de>
24256         PR lto/59723
24257         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24258         in function context local.
24259         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24260         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24261         similar to LTO_imported_decl_ref.
24263 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
24265         PR tree-optimization/60002
24266         * cgraphclones.c (build_function_decl_skip_args): Clear
24267         DECL_LANG_SPECIFIC.
24269         PR tree-optimization/60023
24270         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24271         false to gsi_replace.
24272         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24273         has been in some EH region and vec_stmt could throw, add
24274         vec_stmt into the same EH region.
24275         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24276         has no lhs, ignore it.
24277         * internal-fn.c (expand_MASK_LOAD): Likewise.
24279         PR ipa/60026
24280         * tree-inline.c (copy_forbidden): Fail for
24281         __attribute__((optimize (0))) functions.
24283         PR other/58712
24284         * omp-low.c (simd_clone_struct_copy): If from->inbranch
24285         is set, copy one less argument.
24286         (expand_simd_clones): Don't subtract clone_info->inbranch
24287         from simd_clone_struct_alloc argument.
24289         PR rtl-optimization/57915
24290         * recog.c (simplify_while_replacing): If all unary/binary/relational
24291         operation arguments are constant, attempt to simplify those.
24293         PR middle-end/59261
24294         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24295         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24297 2014-02-04  Richard Biener  <rguenther@suse.de>
24299         PR tree-optimization/60012
24300         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24301         TBAA disambiguation to all DDRs.
24303 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24305         PR target/59788
24306         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24307         (LINK_SPEC): Use it for -shared, -shared-libgcc.
24309 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
24311         PR ipa/59882
24312         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24314 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
24316         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24317         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24319 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
24321         PR ipa/59831
24322         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24323         to figure out targets of polymorphic calls with known decl.
24324         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24325         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24326         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24327         (get_polymorphic_call_info): ... here.
24328         (get_polymorphic_call_info_from_invariant): New function.
24330 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
24332         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24333         lookup via vtable pointer; check for type consistency
24334         and turn inconsitent facts into UNREACHABLE.
24335         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24336         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24337         type inconsistent querries; return UNREACHABLE instead.
24339 2014-02-03  Richard Henderson  <rth@twiddle.net>
24341         PR tree-opt/59924
24342         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24343         already processed this node.
24344         (normalize_one_pred_1): Pass along mark_set.
24345         (normalize_one_pred): Create and destroy a pointer_set_t.
24346         (normalize_one_pred_chain): Likewise.
24348 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
24350         PR gcov-profile/58602
24351         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24353 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
24355         PR ipa/59831
24356         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24357         -fno-devirtualize; try to devirtualize by the knowledge of
24358         virtual table pointer given by aggregate propagation.
24359         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24360         (ipa_print_node_jump_functions): Dump also offset that
24361         is relevant for polymorphic calls.
24362         (determine_known_aggregate_parts): Add arg_type parameter; use it
24363         instead of determining the type from pointer type.
24364         (ipa_compute_jump_functions_for_edge): Update call of
24365         determine_known_aggregate_parts.
24366         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24367         (gimple_get_virt_method_for_binfo): ... here; simplify using
24368         vtable_pointer_value_to_vtable.
24369         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24370         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24371         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24372         (vtable_pointer_value_to_vtable): Break out from ...; handle also
24373         POINTER_PLUS_EXPR.
24374         (vtable_pointer_value_to_binfo): ... here.
24375         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24377 2014-02-03  Teresa Johnson  <tejohnson@google.com>
24379         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24380         redef of outer loop index variable.
24382 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
24384         PR c++/53017
24385         PR c++/59211
24386         * doc/extend.texi (Function Attributes): Typo.
24388 2014-02-03  Cong Hou  <congh@google.com>
24390         PR tree-optimization/60000
24391         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24392         if the vectorized statement is a store.  A store statement can only
24393         appear at the end of pattern statements.
24395 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
24397         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24398         (ix86_option_override_internal): Default long double to 64-bit for
24399         32-bit Bionic and to 128-bit for 64-bit Bionic.
24401         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24402         TARGET_LONG_DOUBLE_128 is true.
24403         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24405         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24406         (mlong-double-64): Negate -mlong-double-128.
24407         (mlong-double-128): New option.
24409         * config/i386/i386-c.c (ix86_target_macros): Define
24410         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24412         * doc/invoke.texi: Document -mlong-double-128.
24414 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
24416         PR rtl-optimization/60024
24417         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24419 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
24421         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24423 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
24425         PR rtl-optimization/57662
24426         * sel-sched.c (code_motion_path_driver): Do not mark already not
24427         existing blocks in the visiting bitmap.
24429 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
24431         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24432         on the insn being emitted.
24434 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
24435             Will Deacon  <will.deacon@arm.com>
24437         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24439 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24441         * config/arm/arm-tables.opt: Regenerate.
24443 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24445         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24446         for vector types other than V16QImode.
24447         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24448         define_expand, and call altivec_expand_vec_perm_le when producing
24449         code with little endian element order.
24450         (*altivec_vperm_<mode>_internal): New insn having previous
24451         behavior of altivec_vperm_<mode>.
24452         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24453         altivec_expand_vec_perm_le when producing code with little endian
24454         element order.
24455         (*altivec_vperm_<mode>_uns_internal): New insn having previous
24456         behavior of altivec_vperm_<mode>_uns.
24458 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24460         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24461         (altivec_vsumsws): Add handling for -maltivec=be with a little
24462         endian target.
24463         (altivec_vsumsws_direct): New.
24464         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24465         gen_altivec_vsumsws.
24467 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
24469         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24470         vtable_pointer_value_to_binfo): New functions.
24471         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24472         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24474 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
24476         * config/nios2/nios2.md (load_got_register): Initialize GOT
24477         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24478         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24480 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
24482         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24483         preserverd by passthrough, do not propagate the type.
24485 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
24487         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24488         (mips_atomic_assign_expand_fenv): New function.
24489         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24491 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
24493         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24494         (__builtin_mips_set_fcsr): Likewise.
24495         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24496         MIPS_USI_FTYPE_VOID.
24497         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24498         (mips16_expand_set_fcsr): Likewise.
24499         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24500         (mips16_set_fcsr_stub): Likewise.
24501         (mips16_get_fcsr_one_only_stub): New class.
24502         (mips16_set_fcsr_one_only_stub): Likewise.
24503         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24504         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24505         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24506         (hard_float): New availability predicate.
24507         (mips_builtins): Add get_fcsr and set_fcsr.
24508         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24509         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24510         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24511         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24512         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24513         patterns.
24515 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
24517         * config/mips/mips.c (mips_one_only_stub): New class.
24518         (mips_need_mips16_rdhwr_p): Replace with...
24519         (mips16_rdhwr_stub): ...this new variable.
24520         (mips16_stub_call_address): New function.
24521         (mips16_rdhwr_one_only_stub): New class.
24522         (mips_expand_thread_pointer): Use mips16_stub_call_address.
24523         (mips_output_mips16_rdhwr): Delete.
24524         (mips_finish_stub): New function.
24525         (mips_code_end): Use it to handle rdhwr stubs.
24527 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
24529         PR target/60017
24530         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24531         when calculating size of integer atomic types.
24533 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
24535         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24537 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
24539         PR tree-optimization/60003
24540         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24541         * profile.c (branch_prob): Use gimple_call_builtin_p
24542         to check for BUILT_IN_SETJMP_RECEIVER.
24543         * tree-inline.c (copy_bb): Call notice_special_calls.
24545 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
24547         PR bootstrap/59985
24548         * lra-constraints.c (process_alt_operands): Update reload_sum only
24549         on the first pass.
24551 2014-01-31  Richard Henderson  <rth@redhat.com>
24553         PR middle-end/60004
24554         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24555         until after else_eh is processed.
24557 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
24559         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24560         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24561         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24562         in smmintrin.h, remove them.
24563         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24564         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24565         * config/i386/i386.md (ROUND_SAE): Fix value.
24566         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24567         (const48_operand): New.
24568         * config/i386/subst.md (round), (round_expand): Use
24569         const_4_or_8_to_11_operand.
24570         (round_saeonly), (round_saeonly_expand): Use const48_operand.
24572 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
24574         * config/i386/constraints.md (Yk): Swap meaning with k.
24575         * config/i386/i386.md (movhi_internal): Change Yk to k.
24576         (movqi_internal): Ditto.
24577         (*k<logic><mode>): Ditto.
24578         (*andhi_1): Ditto.
24579         (*andqi_1): Ditto.
24580         (kandn<mode>): Ditto.
24581         (*<code>hi_1): Ditto.
24582         (*<code>qi_1): Ditto.
24583         (kxnor<mode>): Ditto.
24584         (kortestzhi): Ditto.
24585         (kortestchi): Ditto.
24586         (kunpckhi): Ditto.
24587         (*one_cmplhi2_1): Ditto.
24588         (*one_cmplqi2_1): Ditto.
24589         * config/i386/sse.md (): Change k to Yk.
24590         (avx512f_load<mode>_mask): Ditto.
24591         (avx512f_blendm<mode>): Ditto.
24592         (avx512f_store<mode>_mask): Ditto.
24593         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24594         (avx512f_storedqu<mode>_mask): Ditto.
24595         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24596         Ditto.
24597         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24598         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24599         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24600         (avx512f_maskcmp<mode>3): Ditto.
24601         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24602         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24603         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24604         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24605         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24606         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24607         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24608         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24609         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24610         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24611         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24612         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24613         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24614         (vec_extract_lo_<mode>_maskm): Ditto.
24615         (vec_extract_hi_<mode>_maskm): Ditto.
24616         (avx512f_vternlog<mode>_mask): Ditto.
24617         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24618         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24619         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24620         (avx512f_<code>v8div16qi2_mask): Ditto.
24621         (avx512f_<code>v8div16qi2_mask_store): Ditto.
24622         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24623         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24624         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24625         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24626         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24627         (*avx512pf_gatherpf<mode>df_mask): Ditto.
24628         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24629         (*avx512pf_scatterpf<mode>df_mask): Ditto.
24630         (avx512cd_maskb_vec_dupv8di): Ditto.
24631         (avx512cd_maskw_vec_dupv16si): Ditto.
24632         (avx512f_vpermi2var<mode>3_maskz): Ditto.
24633         (avx512f_vpermi2var<mode>3_mask): Ditto.
24634         (avx512f_vpermi2var<mode>3_mask): Ditto.
24635         (avx512f_vpermt2var<mode>3_maskz): Ditto.
24636         (*avx512f_gathersi<mode>): Ditto.
24637         (*avx512f_gathersi<mode>_2): Ditto.
24638         (*avx512f_gatherdi<mode>): Ditto.
24639         (*avx512f_gatherdi<mode>_2): Ditto.
24640         (*avx512f_scattersi<mode>): Ditto.
24641         (*avx512f_scatterdi<mode>): Ditto.
24642         (avx512f_compress<mode>_mask): Ditto.
24643         (avx512f_compressstore<mode>_mask): Ditto.
24644         (avx512f_expand<mode>_mask): Ditto.
24645         * config/i386/subst.md (mask): Change k to Yk.
24646         (mask_scalar_merge): Ditto.
24647         (sd): Ditto.
24649 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
24651         * doc/extend.texi (Vector Extensions): Document ?: in C++.
24653 2014-01-31  Richard Biener  <rguenther@suse.de>
24655         PR middle-end/59990
24656         * builtins.c (fold_builtin_memory_op): Make sure to not
24657         use a floating-point mode or a boolean or enumeral type for
24658         the copy operation.
24660 2014-01-30  DJ Delorie  <dj@redhat.com>
24662         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24663         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24664         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24665         whenever main() has an epilogue.
24667 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24669         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24670         unused variable "field".
24671         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24672         (vsx_mergeh_<mode>): Likewise.
24673         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24674         (altivec_vmrghh): Likewise.
24675         (altivec_vmrghw): Likewise.
24676         (altivec_vmrglb): Likewise.
24677         (altivec_vmrglh): Likewise.
24678         (altivec_vmrglw): Likewise.
24679         (altivec_vspltb): Add missing uses.
24680         (altivec_vsplth): Likewise.
24681         (altivec_vspltw): Likewise.
24682         (altivec_vspltsf): Likewise.
24684 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
24686         PR target/59923
24687         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24688         frame related instructions.
24690 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
24692         PR rtl-optimization/59959
24693         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24694         any reload of register whose subreg is invalid.
24696 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
24698         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24699         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24700         Add missing return type - void.
24702 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24704         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24705         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24706         remove element index adjustment for endian (now handled in vsx.md
24707         and altivec.md).
24708         (altivec_expand_vec_perm_const): Use
24709         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24710         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24711         (vsx_xxspltw_<mode>): Adjust element index for little endian.
24712         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24713         define_expand and a new define_insn *altivec_vspltb_internal;
24714         adjust for -maltivec=be on a little endian target.
24715         (altivec_vspltb_direct): New.
24716         (altivec_vsplth): Divide into a define_expand and a new
24717         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24718         little endian target.
24719         (altivec_vsplth_direct): New.
24720         (altivec_vspltw): Divide into a define_expand and a new
24721         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24722         little endian target.
24723         (altivec_vspltw_direct): New.
24724         (altivec_vspltsf): Divide into a define_expand and a new
24725         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24726         a little endian target.
24728 2014-01-30  Richard Biener  <rguenther@suse.de>
24730         PR tree-optimization/59993
24731         * tree-ssa-forwprop.c (associate_pointerplus): Check we
24732         can propagate form the earlier stmt and avoid the transform
24733         when the intermediate result is needed.
24735 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
24737         * README.Portability: Fix typo.
24739 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
24741         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24742         comparison_operator with ordered_comparison_operator.
24744 2014-01-30  Nick Clifton  <nickc@redhat.com>
24746         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24747         Rename to mn10300_store_multiple_regs.
24748         * config/mn10300/mn10300.c: Likewise.
24749         * config/mn10300/mn10300.md (store_movm): Fix typo: call
24750         store_multiple_regs.
24751         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24752         Call mn10300_store_multiple_regs.
24754 2014-01-30  Nick Clifton  <nickc@redhat.com>
24755             DJ Delorie  <dj@redhat.com>
24757         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24758         %fp 2 to keep registers after it properly word-aligned.
24759         (rl78_alloc_physical_registers_umul): Handle the case where both
24760         input operands are the same.
24762 2014-01-30  Richard Biener  <rguenther@suse.de>
24764         PR tree-optimization/59903
24765         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24766         check properly.
24768 2014-01-30  Jason Merrill  <jason@redhat.com>
24770         PR c++/59633
24771         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24773         PR c++/59645
24774         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24776 2014-01-30  Richard Biener  <rguenther@suse.de>
24778         PR tree-optimization/59951
24779         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24781 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
24783         PR target/59784
24784         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24785         SFmode to DFmode case.
24787 2014-01-29  DJ Delorie  <dj@redhat.com>
24789         * config/msp430/msp430.opt (-minrt): New.
24790         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24791         if -minrt given.
24792         (ENDFILE_SPEC): Likewise.
24794 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
24796         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24797         (estimate_function_body_sizes): Use it.
24799 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
24801         PR c++/58561
24802         * dwarf2out.c (is_cxx_auto): New.
24803         (is_base_type): Use it.
24804         (gen_type_die_with_usage): Likewise.
24806 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24808         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
24809         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24810         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24811         -maltivec=be with LE targets.
24812         (vsx_mergeh_<mode>): Likewise.
24813         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24814         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24815         (altivec_vmrghb): Replace with define_expand and new
24816         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24817         (altivec_vmrghb_direct): New define_insn.
24818         (altivec_vmrghh): Replace with define_expand and new
24819         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24820         (altivec_vmrghh_direct): New define_insn.
24821         (altivec_vmrghw): Replace with define_expand and new
24822         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24823         (altivec_vmrghw_direct): New define_insn.
24824         (*altivec_vmrghsf): Adjust for endianness.
24825         (altivec_vmrglb): Replace with define_expand and new
24826         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24827         (altivec_vmrglb_direct): New define_insn.
24828         (altivec_vmrglh): Replace with define_expand and new
24829         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24830         (altivec_vmrglh_direct): New define_insn.
24831         (altivec_vmrglw): Replace with define_expand and new
24832         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24833         (altivec_vmrglw_direct): New define_insn.
24834         (*altivec_vmrglsf): Adjust for endianness.
24835         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24836         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24837         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24838         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24839         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24840         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24841         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24842         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24844 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24846         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24847         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24848         whitespace.
24850 2014-01-29  Richard Biener  <rguenther@suse.de>
24852         PR tree-optimization/58742
24853         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24854         associate_pointerplus_align.
24855         (associate_pointerplus_diff): New function.
24856         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
24857         and associate_pointerplus_diff.
24859 2014-01-29  Richard Biener  <rguenther@suse.de>
24861         * lto-streamer.h (LTO_major_version): Bump to 3.
24862         (LTO_minor_version): Reset to 0.
24864 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
24866         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24867         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24868         (arm_file_start): Generate correct asm header for armv7ve.
24869         * config/arm/bpabi.h: Add multilib support for armv7ve.
24870         * config/arm/driver-arm.c: Change the architectures of cortex-a7
24871         and cortex-a15 to armv7ve.
24872         * config/arm/t-aprofile: Add multilib support for armv7ve.
24873         * doc/invoke.texi: Document -march=armv7ve.
24875 2014-01-29  Richard Biener  <rguenther@suse.de>
24877         PR tree-optimization/58742
24878         * tree-ssa-forwprop.c (associate_plusminus): Return true
24879         if we changed sth, defer EH cleanup to ...
24880         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
24881         (simplify_mult): New function.
24883 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
24885         PR middle-end/59917
24886         PR tree-optimization/59920
24887         * tree.c (build_common_builtin_nodes): Remove
24888         __builtin_setjmp_dispatcher initialization.
24889         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24890         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24891         instead of gsi_after_labels + manually skipping debug stmts.
24892         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24893         ignore bbs with IFN_ABNORMAL_DISPATCHER.
24894         * tree-inline.c (copy_edges_for_bb): Remove
24895         can_make_abnormal_goto argument, instead add abnormal_goto_dest
24896         argument.  Ignore computed_goto_p stmts.  Don't call
24897         make_abnormal_goto_edges.  If a call might need abnormal edges
24898         for non-local gotos, see if it already has an edge to
24899         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24900         with true argument, don't do anything then, otherwise add
24901         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24902         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24903         caller.
24904         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24905         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24906         (lower_stmt): Don't set data->calls_builtin_setjmp.
24907         (lower_builtin_setjmp): Adjust comment.
24908         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24909         * tree-cfg.c (found_computed_goto): Remove.
24910         (factor_computed_gotos): Remove.
24911         (make_goto_expr_edges): Return bool, true for computed gotos.
24912         Don't call make_abnormal_goto_edges.
24913         (build_gimple_cfg): Don't set found_computed_goto, don't call
24914         factor_computed_gotos.
24915         (computed_goto_p): No longer static.
24916         (make_blocks): Don't set found_computed_goto.
24917         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24918         (make_edges): If make_goto_expr_edges returns true, push bb
24919         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24920         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24921         vector.  Record mapping between bbs and OpenMP regions if there
24922         are any, adjust make_gimple_omp_edges caller.  Call
24923         handle_abnormal_edges.
24924         (make_abnormal_goto_edges): Remove.
24925         * tree-cfg.h (make_abnormal_goto_edges): Remove.
24926         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24927         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24928         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24929         * internal-fn.def (ABNORMAL_DISPATCHER): New.
24930         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24931         filling *region also set *region_idx to (*region)->entry->index.
24933         PR other/58712
24934         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24935         For REGs set ORIGINAL_REGNO.
24937 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
24939         * doc/md.texi: Mention that a target shouldn't implement
24940         vec_widen_(s|u)mul_even/odd pair if it is less efficient
24941         than hi/lo pair.
24943 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
24945         PR tree-optimization/59594
24946         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24947         a copy of the datarefs vector rather than the vector itself.
24949 2014-01-28  Jason Merrill  <jason@redhat.com>
24951         PR c++/53756
24952         * dwarf2out.c (auto_die): New static.
24953         (gen_type_die_with_usage): Handle C++1y 'auto'.
24954         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24955         on definition.
24957 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
24959         PR target/59672
24960         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24961         (SPEC_X32): Likewise.
24962         (SPEC_64): Likewise.
24963         * config/i386/i386.c (ix86_option_override_internal): Turn off
24964         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24965         for TARGET_16BIT.
24966         (x86_file_start): Output .code16gcc for TARGET_16BIT.
24967         * config/i386/i386.h (TARGET_16BIT): New macro.
24968         (TARGET_16BIT_P): Likewise.
24969         * config/i386/i386.opt: Add m16.
24970         * doc/invoke.texi: Document -m16.
24972 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
24974         PR preprocessor/59935
24975         * input.c (location_get_source_line): Bail out on when line number
24976         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24978 2014-01-28  Richard Biener  <rguenther@suse.de>
24980         PR tree-optimization/58742
24981         * tree-ssa-forwprop.c (associate_plusminus): Handle
24982         pointer subtraction of the form (T)(P + A) - (T)P.
24984 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24986         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24987         at const_int_cost.
24989 2014-01-28  Richard Biener  <rguenther@suse.de>
24991         Revert
24992         2014-01-28  Richard Biener  <rguenther@suse.de>
24994         PR rtl-optimization/45364
24995         PR rtl-optimization/59890
24996         * var-tracking.c (local_get_addr_clear_given_value): Handle
24997         already cleared slot.
24998         (val_reset): Handle not allocated local_get_addr_cache.
24999         (vt_find_locations): Use post-order on the inverted CFG.
25001 2014-01-28  Richard Biener  <rguenther@suse.de>
25003         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25005 2014-01-28  Richard Biener  <rguenther@suse.de>
25007         PR rtl-optimization/45364
25008         PR rtl-optimization/59890
25009         * var-tracking.c (local_get_addr_clear_given_value): Handle
25010         already cleared slot.
25011         (val_reset): Handle not allocated local_get_addr_cache.
25012         (vt_find_locations): Use post-order on the inverted CFG.
25014 2014-01-28  Alan Modra  <amodra@gmail.com>
25016         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25017         * configure.ac <recursive call for build != host>: Define
25018         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25019         and LD_FOR_BUILD too.
25020         * configure: Regenerate.
25022 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
25024         * config/i386/i386.c (get_builtin_code_for_version): Separate
25025         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25026         Broadwell from Haswell.
25028 2014-01-27  Steve Ellcey  <sellcey@mips.com>
25030         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25031         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25032         * config/mips/mips.c (mips_option_override): Change setting
25033         of TARGET_DSP.
25034         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25035         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25036         Change from Mask to Var.
25038 2014-01-27  Jeff Law  <law@redhat.com>
25040         * ipa-inline.c (inline_small_functions): Fix typo.
25042 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
25044         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25045         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25046         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25047         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25048         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25049         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25050         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25051         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25052         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25053         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25054         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25055         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25056         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25057         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25058         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25059         (_mm512_storeu_epi64): Ditto.
25060         (_mm512_cmpge_epi32_mask): Ditto.
25061         (_mm512_cmpge_epu32_mask): Ditto.
25062         (_mm512_cmpge_epi64_mask): Ditto.
25063         (_mm512_cmpge_epu64_mask): Ditto.
25064         (_mm512_cmple_epi32_mask): Ditto.
25065         (_mm512_cmple_epu32_mask): Ditto.
25066         (_mm512_cmple_epi64_mask): Ditto.
25067         (_mm512_cmple_epu64_mask): Ditto.
25068         (_mm512_cmplt_epi32_mask): Ditto.
25069         (_mm512_cmplt_epu32_mask): Ditto.
25070         (_mm512_cmplt_epi64_mask): Ditto.
25071         (_mm512_cmplt_epu64_mask): Ditto.
25072         (_mm512_cmpneq_epi32_mask): Ditto.
25073         (_mm512_cmpneq_epu32_mask): Ditto.
25074         (_mm512_cmpneq_epi64_mask): Ditto.
25075         (_mm512_cmpneq_epu64_mask): Ditto.
25076         (_mm512_expand_pd): Ditto.
25077         (_mm512_expand_ps): Ditto.
25078         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25079         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25080         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25081         * config/i386/i386.c (ix86_builtins): Add
25082         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25083         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25084         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25085         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25086         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25087         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25088         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25089         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25090         IX86_BUILTIN_PMOVUSQW512_MEM.
25091         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25092         __builtin_ia32_pmovsqd512mem_mask,
25093         __builtin_ia32_pmovqd512mem_mask,
25094         __builtin_ia32_pmovusqw512mem_mask,
25095         __builtin_ia32_pmovsqw512mem_mask,
25096         __builtin_ia32_pmovqw512mem_mask,
25097         __builtin_ia32_pmovusdw512mem_mask,
25098         __builtin_ia32_pmovsdw512mem_mask,
25099         __builtin_ia32_pmovdw512mem_mask,
25100         __builtin_ia32_pmovqb512mem_mask,
25101         __builtin_ia32_pmovusqb512mem_mask,
25102         __builtin_ia32_pmovsqb512mem_mask,
25103         __builtin_ia32_pmovusdb512mem_mask,
25104         __builtin_ia32_pmovsdb512mem_mask,
25105         __builtin_ia32_pmovdb512mem_mask.
25106         (bdesc_args): Add __builtin_ia32_expanddf512,
25107         __builtin_ia32_expandsf512.
25108         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25109         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25110         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25111         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25112         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25113         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25114         (avx512f_<code>v8div16qi2_mask_store): This.
25115         (avx512f_expand<mode>): New.
25117 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
25119         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25120         New.
25121         (_mm512_mask_prefetch_i64gather_pd): Ditto.
25122         (_mm512_prefetch_i32scatter_pd): Ditto.
25123         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25124         (_mm512_prefetch_i64scatter_pd): Ditto.
25125         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25126         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25127         (_mm512_mask_prefetch_i64gather_ps): Ditto.
25128         (_mm512_prefetch_i32scatter_ps): Ditto.
25129         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25130         (_mm512_prefetch_i64scatter_ps): Ditto.
25131         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25132         * config/i386/i386-builtin-types.def: Define
25133         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25134         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25135         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25136         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25137         IX86_BUILTIN_SCATTERPFQPD.
25138         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25139         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25140         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25141         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25142         __builtin_ia32_scatterpfqps.
25143         (ix86_expand_builtin): Expand new built-ins.
25144         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25145         fix memory access data type.
25146         (*avx512pf_gatherpf<mode>_mask): Ditto.
25147         (*avx512pf_gatherpf<mode>): Ditto.
25148         (avx512pf_scatterpf<mode>): Ditto.
25149         (*avx512pf_scatterpf<mode>_mask): Ditto.
25150         (*avx512pf_scatterpf<mode>): Ditto.
25151         (GATHER_SCATTER_SF_MEM_MODE): New.
25152         (avx512pf_gatherpf<mode>df): Ditto.
25153         (*avx512pf_gatherpf<mode>df_mask): Ditto.
25154         (*avx512pf_scatterpf<mode>df): Ditto.
25156 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
25158         PR bootstrap/59934
25159         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25160         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25161         reached.
25163 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
25165         * common/config/arm/arm-common.c
25166         (arm_rewrite_mcpu): Handle multiple names.
25167         * config/arm/arm.h
25168         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25170 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
25172         * gimple-builder.h (create_gimple_tmp): Delete.
25174 2014-01-27  Christian Bruel  <christian.bruel@st.com>
25176         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25177         words comparisons.
25179 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
25181         * config/pa/pa.md (call): Generate indirect long calls to non-local
25182         functions when outputing 32-bit code.
25183         (call_value): Likewise except for special call to buggy powf function.
25185         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25186         portable runtime and PIC indirect calls.
25187         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25188         and PIC call sequences.  Use ldo instead of blr to set return register
25189         in PIC call sequence.
25191 2014-01-25  Walter Lee  <walt@tilera.com>
25193         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25194         avoid clobbering a live register.
25196 2014-01-25  Walter Lee  <walt@tilera.com>
25198         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25199         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25200         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25201         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25203 2014-01-25  Walter Lee  <walt@tilera.com>
25205         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25206         arguments on even registers.
25207         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25208         STACK_BOUNDARY.
25209         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25210         (BIGGEST_ALIGNMENT): Ditto.
25211         (BIGGEST_FIELD_ALIGNMENT): Ditto.
25213 2014-01-25  Walter Lee  <walt@tilera.com>
25215         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25216         insns before bundling.
25217         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25219 2014-01-25  Walter Lee  <walt@tilera.com>
25221         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25222         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25223         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25225 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
25227         * config/mips/constraints.md (kl): Delete.
25228         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25229         define expands, using...
25230         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25231         instructions for MIPS16.
25232         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25233         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25235 2014-01-25  Walter Lee  <walt@tilera.com>
25237         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25238         (clzdi2): Ditto.
25239         (ffsdi2): Ditto.
25241 2014-01-25  Walter Lee  <walt@tilera.com>
25243         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25244         (TARGET_EXPAND_TO_RTL_HOOK): Define.
25246 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
25248         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25249         Handle XOR.
25251 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
25253         * print-rtl.c (in_call_function_usage): New var.
25254         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25255         EXPR_LIST mode as mode and not as reg note name.
25257         PR middle-end/59561
25258         * cfgloopmanip.c (copy_loop_info): If
25259         loop->warned_aggressive_loop_optimizations, make sure
25260         the flag is set in target loop too.
25262 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
25264         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25265         flag_cilkplus.
25266         * builtins.def: Likewise.
25267         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25268         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25269         * ira.c (ira_setup_eliminable_regset): Likewise.
25270         * omp-low.c (gate_expand_omp): Likewise.
25271         (execute_lower_omp): Likewise.
25272         (diagnose_sb_0): Likewise.
25273         (gate_diagnose_omp_blocks): Likewise.
25274         (simd_clone_clauses_extract): Likewise.
25275         (gate): Likewise.
25277 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25279         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25280         correction for little endian...
25281         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25282         here.
25284 2014-01-24  Jeff Law  <law@redhat.com>
25286         PR tree-optimization/59919
25287         * tree-vrp.c (find_assert_locations_1): Do not register asserts
25288         for non-returning calls.
25290 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
25292         * common/config/aarch64/aarch64-common.c
25293         (aarch64_rewrite_mcpu): Handle multiple names.
25294         * config/aarch64/aarch64.h
25295         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25297 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
25299         * input.c (add_file_to_cache_tab): Handle the case where fopen
25300         returns NULL.
25302 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
25304         PR target/59929
25305         * config/i386/i386.md (pushsf splitter): Get stack adjustment
25306         from push operand if code of push isn't PRE_DEC.
25308 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
25310         PR target/59909
25311         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25312         -mquad-memory-atomic.  Update -mquad-memory documentation to say
25313         it is only used for non-atomic loads/stores.
25315         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25316         -mquad-memory or -mquad-memory-atomic switches.
25318         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25319         -mquad-memory-atomic to ISA 2.07 support.
25321         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25322         to separate support of normal quad word memory operations (ldq, stq)
25323         from the atomic quad word memory operations.
25325         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25326         support to separate non-atomic quad word operations from atomic
25327         quad word operations.  Disable non-atomic quad word operations in
25328         little endian mode so that we don't have to swap words after the
25329         load and before the store.
25330         (quad_load_store_p): Add comment about atomic quad word support.
25331         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25332         options printed with -mdebug=reg.
25334         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25335         -mquad-memory-atomic as the test for whether we have quad word
25336         atomic instructions.
25337         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25338         or -mp8-vector are used, allow byte/half-word atomic operations.
25340         * config/rs6000/sync.md (load_lockedti): Insure that the address
25341         is a proper indexed or indirect address for the lqarx instruction.
25342         On little endian systems, swap the hi/lo registers after the lqarx
25343         instruction.
25344         (load_lockedpti): Use indexed_or_indirect_operand predicate to
25345         insure the address is valid for the lqarx instruction.
25346         (store_conditionalti): Insure that the address is a proper indexed
25347         or indirect address for the stqcrx. instruction.  On little endian
25348         systems, swap the hi/lo registers before doing the stqcrx.
25349         instruction.
25350         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25351         insure the address is valid for the stqcrx. instruction.
25353         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25354         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25355         type of quad memory support is available.
25357 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
25359         PR regression/59915
25360         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25361         there is a danger of looping.
25363 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
25365         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25366         force flag_ira_loop_pressure if set via command line.
25368 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
25370         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25371         (ashr_simd): New builtin handling DI mode.
25372         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25373         (aarch64_sshr_simddi): New match pattern.
25374         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25375         (vshrd_n_s64): Likewise.
25376         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25378 2014-01-23  Nick Clifton  <nickc@redhat.com>
25380         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25381         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25382         favour of mcu specific scripts.
25383         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25384         430x multilibs.
25386 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
25387             Alex Velenko  <Alex.Velenko@arm.com>
25389         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25390         (vaddv_s16): Likewise.
25391         (vaddv_s32): Likewise.
25392         (vaddv_u8): Likewise.
25393         (vaddv_u16): Likewise.
25394         (vaddv_u32): Likewise.
25395         (vaddvq_s8): Likewise.
25396         (vaddvq_s16): Likewise.
25397         (vaddvq_s32): Likewise.
25398         (vaddvq_s64): Likewise.
25399         (vaddvq_u8): Likewise.
25400         (vaddvq_u16): Likewise.
25401         (vaddvq_u32): Likewise.
25402         (vaddvq_u64): Likewise.
25403         (vaddv_f32): Likewise.
25404         (vaddvq_f32): Likewise.
25405         (vaddvq_f64): Likewise.
25406         (vmaxv_f32): Likewise.
25407         (vmaxv_s8): Likewise.
25408         (vmaxv_s16): Likewise.
25409         (vmaxv_s32): Likewise.
25410         (vmaxv_u8): Likewise.
25411         (vmaxv_u16): Likewise.
25412         (vmaxv_u32): Likewise.
25413         (vmaxvq_f32): Likewise.
25414         (vmaxvq_f64): Likewise.
25415         (vmaxvq_s8): Likewise.
25416         (vmaxvq_s16): Likewise.
25417         (vmaxvq_s32): Likewise.
25418         (vmaxvq_u8): Likewise.
25419         (vmaxvq_u16): Likewise.
25420         (vmaxvq_u32): Likewise.
25421         (vmaxnmv_f32): Likewise.
25422         (vmaxnmvq_f32): Likewise.
25423         (vmaxnmvq_f64): Likewise.
25424         (vminv_f32): Likewise.
25425         (vminv_s8): Likewise.
25426         (vminv_s16): Likewise.
25427         (vminv_s32): Likewise.
25428         (vminv_u8): Likewise.
25429         (vminv_u16): Likewise.
25430         (vminv_u32): Likewise.
25431         (vminvq_f32): Likewise.
25432         (vminvq_f64): Likewise.
25433         (vminvq_s8): Likewise.
25434         (vminvq_s16): Likewise.
25435         (vminvq_s32): Likewise.
25436         (vminvq_u8): Likewise.
25437         (vminvq_u16): Likewise.
25438         (vminvq_u32): Likewise.
25439         (vminnmv_f32): Likewise.
25440         (vminnmvq_f32): Likewise.
25441         (vminnmvq_f64): Likewise.
25443 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
25445         * config/aarch64/aarch64-simd.md
25446         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25447         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25448         (*aarch64_mul3_elt<mode>): Likewise.
25449         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25450         (*aarch64_mul3_elt_to_64v2df): Likewise.
25451         (*aarch64_mla_elt<mode>): Likewise.
25452         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25453         (*aarch64_mls_elt<mode>): Likewise.
25454         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25455         (*aarch64_fma4_elt<mode>): Likewise.
25456         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25457         (*aarch64_fma4_elt_to_64v2df): Likewise.
25458         (*aarch64_fnma4_elt<mode>): Likewise.
25459         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25460         (*aarch64_fnma4_elt_to_64v2df): Likewise.
25461         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25462         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25463         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25464         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25465         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25466         (aarch64_sqdmull_lane<mode>_internal): Likewise.
25467         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25469 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
25471         * config/aarch64/aarch64-simd.md
25472         (aarch64_be_checked_get_lane<mode>): New define_expand.
25473         * config/aarch64/aarch64-simd-builtins.def
25474         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25475         New builtin definition.
25476         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25477         Use new safe be builtin.
25479 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
25481         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25482         New define_insn.
25483         (aarch64_be_st1<mode>): Likewise.
25484         (aarch_ld1<VALL:mode>): Define_expand modified.
25485         (aarch_st1<VALL:mode>): Likewise.
25486         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25487         (UNSPEC_ST1): Likewise.
25489 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
25491         * config/microblaze/microblaze.md: Add trap insn and attribute
25493 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
25495         PR preprocessor/58580
25496         * input.h (location_get_source_line): Take an additional line_size
25497         parameter.
25498         (void diagnostics_file_cache_fini): Declare new function.
25499         * input.c (struct fcache): New type.
25500         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25501         New static constants.
25502         (diagnostic_file_cache_init, total_lines_num)
25503         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25504         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25505         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25506         (get_next_line, read_next_line, goto_next_line, read_line_num):
25507         New static function definitions.
25508         (diagnostic_file_cache_fini): New function.
25509         (location_get_source_line): Take an additional output line_len
25510         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
25511         read_line_num.
25512         * diagnostic.c (diagnostic_finish): Call
25513         diagnostic_file_cache_fini.
25514         (adjust_line): Take an additional input parameter for the length
25515         of the line, rather than calculating it with strlen.
25516         (diagnostic_show_locus): Adjust the use of
25517         location_get_source_line and adjust_line with respect to their new
25518         signature.  While displaying a line now, do not stop at the first
25519         null byte.  Rather, display the zero byte as a space and keep
25520         going until we reach the size of the line.
25521         * Makefile.in: Add vec.o to OBJS-libcommon
25523 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
25524             Ilya Tocar  <ilya.tocar@intel.com>
25526         * config/i386/avx512fintrin.h (_mm512_kmov): New.
25527         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25528         (__builtin_ia32_kmov16): Ditto.
25529         * config/i386/i386.md (UNSPEC_KMOV): New.
25530         (kmovw): Ditto.
25532 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
25534         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25535         (_mm512_storeu_si512): Ditto.
25537 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
25539         PR target/52125
25540         * rtl.h (get_referenced_operands): Declare.
25541         * recog.c (get_referenced_operands): New function.
25542         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25543         operands have been referenced when recording LO_SUM references.
25545 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
25547         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25549 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
25551         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25552         Enable for generic and recent AMD targets.
25554 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
25556         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25557         ARG_SIZE note when adjustment was eliminated.
25559 2014-01-22  Jeff Law  <law@redhat.com>
25561         PR tree-optimization/59597
25562         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25563         in file.  Accept new argument REGISTERING and use it to modify
25564         dump output appropriately.
25565         (register_jump_thread): Corresponding changes.
25566         (mark_threaded_blocks): Reinstate code to cancel unprofitable
25567         thread paths involving joiner blocks.  Add code to dump cancelled
25568         jump threading paths.
25570 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
25572         PR rtl-optimization/59477
25573         * lra-constraints.c (inherit_in_ebb): Process call for living hard
25574         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
25576 2014-01-22  Tom Tromey  <tromey@redhat.com>
25578         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25579         PARAMS.
25580         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25582 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
25584         PR rtl-optimization/59896
25585         * lra-constraints.c (process_alt_operands): Check unused note for
25586         matched operands of insn with no output reloads.
25588 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
25590         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25591         (mips_move_from_gpr_cost): Likewise.
25593 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
25595         PR rtl-optimization/59858
25596         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25597         ira_class_hard_regs_num.
25598         (process_alt_operands): Increase reject for dying matched operand.
25600 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
25602         PR target/59003
25603         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25604         smaller than size, perform several stores or loads and stores
25605         at dst + count - size to store or copy all of size bytes, rather
25606         than just last modesize bytes.
25608 2014-01-20  DJ Delorie  <dj@redhat.com>
25610         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25611         that CLOBBERs are REGs before propogating their values.
25613 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
25615         PR middle-end/59789
25616         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25617         (cgraph_inline_failed_type): New function.
25618         * cgraph.h (DEFCIFCODE): Add type.
25619         (cgraph_inline_failed_type_t): New enum.
25620         (cgraph_inline_failed_type): New prototype.
25621         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25622         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25623         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25624         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25625         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25626         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25627         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25628         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25629         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25630         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25631         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25632         OPTIMIZATION_MISMATCH.
25633         * tree-inline.c (expand_call_inline): Emit errors during
25634         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25636 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
25638         PR target/59685
25639         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25640         mode attribute in insn output.
25642 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
25644         * output.h (output_constant): Delete.
25645         * varasm.c (output_constant): Make private.
25647 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
25649         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25651 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
25653         PR middle-end/59860
25654         * tree.h (fold_builtin_strcat): New prototype.
25655         * builtins.c (fold_builtin_strcat): No longer static.  Add len
25656         argument, if non-NULL, don't call c_strlen.  Optimize
25657         directly into __builtin_memcpy instead of __builtin_strcpy.
25658         (fold_builtin_2): Adjust fold_builtin_strcat caller.
25659         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25661 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
25663         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25664         for SImode_address_operand operands, having only a REG argument.
25666 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25668         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25669         loader name using mbig-endian.
25670         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25672 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
25674         * doc/invoke.texi (-march): Clarify documentation for AArch64.
25675         (-mtune): Likewise.
25676         (-mcpu): Likewise.
25678 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
25680         * config/aarch64/aarch64-protos.h
25681         (aarch64_cannot_change_mode_class_ptr): Declare.
25682         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25683         aarch64_cannot_change_mode_class_ptr): New.
25684         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25685         backend hook aarch64_cannot_change_mode_class.
25687 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
25689         * common/config/aarch64/aarch64-common.c
25690         (aarch64_handle_option): Don't handle any option order logic here.
25691         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25692         selected_cpu, warn on architecture version mismatch.
25693         (aarch64_override_options): Fix parsing order for option strings.
25695 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25696             Iain Sandoe  <iain@codesourcery.com>
25698         PR bootstrap/59496
25699         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25700         warning.  Amend comment to reflect current functionality.
25702 2014-01-20  Richard Biener  <rguenther@suse.de>
25704         PR middle-end/59860
25705         * builtins.c (fold_builtin_strcat): Remove case better handled
25706         by tree-ssa-strlen.c.
25708 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
25710         * config/aarch64/aarch64.opt
25711         (mcpu, march, mtune): Make case-insensitive.
25713 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
25715         PR target/59880
25716         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25717         if operands[1] is a REG or ZERO_EXTEND of a REG.
25719 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
25721         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25723 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
25725         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25726         long non-pic millicode calls.
25728 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25730         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25732 2014-01-19  Kito Cheng  <kito@0xlab.org>
25734         * builtins.c (expand_movstr): Check movstr expand done or fail.
25736 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
25737             H.J. Lu  <hongjiu.lu@intel.com>
25739         PR target/59379
25740         * config/i386/i386.md (*lea<mode>): Zero-extend return register
25741         to DImode for zero-extended addresses.
25743 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
25745         PR rtl-optimization/57763
25746         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25747         on the new indirect jump_insn and increment LABEL_NUSES (label).
25749 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
25751         PR bootstrap/59580
25752         PR bootstrap/59583
25753         * config.gcc (x86_archs): New variable.
25754         (x86_64_archs): Likewise.
25755         (x86_cpus): Likewise.
25756         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25757         --with-arch/--with-cpu= options.
25758         Support --with-arch=/--with-cpu={nehalem,westmere,
25759         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25761 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
25763         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25764         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
25766 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
25768         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25770 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
25772         PR target/58944
25773         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25774         clear cpp_get_options (parse_in)->warn_unused_macros for
25775         ix86_target_macros_internal with cpp_define.
25777 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
25779         * jump.c (delete_related_insns): Keep (use (insn))s.
25780         * reorg.c (redundant_insn): Check for barriers too.
25782 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
25784         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25786 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
25788         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25789         call to $$dyncall when TARGET_LONG_CALLS is true.
25791 2014-01-17  Jeff Law  <law@redhat.com>
25793         * ree.c (combine_set_extension): Temporarily disable test for
25794         changing number of hard registers.
25796 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
25798         PR middle-end/58125
25799         * ipa-inline-analysis.c (inline_free_summary):
25800         Do not free summary of aliases.
25802 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
25804         PR middle-end/59706
25805         * gimplify.c (gimplify_expr): Use create_tmp_var
25806         instead of create_tmp_var_raw.  If cond doesn't have
25807         integral type, don't add the IFN_ANNOTATE builtin at all.
25809 2014-01-17  Martin Jambor  <mjambor@suse.cz>
25811         PR ipa/59736
25812         * ipa-cp.c (prev_edge_clone): New variable.
25813         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25814         Also resize prev_edge_clone vector.
25815         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25816         (ipcp_edge_removal_hook): New function.
25817         (ipcp_driver): Register ipcp_edge_removal_hook.
25819 2014-01-17  Andrew Pinski  <apinski@cavium.com>
25820             Steve Ellcey  <sellcey@mips.com>
25822         PR target/59462
25823         * config/mips/mips.c (mips_print_operand): Check operand mode instead
25824         of operator mode.
25826 2014-01-17  Jeff Law  <law@redhat.com>
25828         PR middle-end/57904
25829         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25830         so that pass_ccp runs first.
25832 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
25834         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25835         (ix86_adjust_cost): Use !TARGET_XXX.
25836         (do_reorder_for_imul): Likewise.
25837         (swap_top_of_ready_list): Likewise.
25838         (ix86_sched_reorder): Likewise.
25840 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
25842         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25843         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
25844         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
25845         (intel_memset): New.  Duplicate slm_memset.
25846         (intel_cost): New.  Duplicate slm_cost.
25847         (m_INTEL): New macro.
25848         (processor_target_table): Add "intel".
25849         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25850         with PROCESSOR_INTEL for "intel".
25851         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
25852         PROCESSOR_SILVERMONT.
25853         (ix86_issue_rate): Likewise.
25854         (ix86_adjust_cost): Likewise.
25855         (ia32_multipass_dfa_lookahead): Likewise.
25856         (swap_top_of_ready_list): Likewise.
25857         (ix86_sched_reorder): Likewise.
25858         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25859         instead of TARGET_OPT_AGU.
25860         * config/i386/i386.h (TARGET_INTEL): New.
25861         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25862         (processor_type): Add PROCESSOR_INTEL.
25863         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25864         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25866 2014-01-17  Marek Polacek  <polacek@redhat.com>
25868         PR c/58346
25869         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25870         size is zero.
25872 2014-01-17  Richard Biener  <rguenther@suse.de>
25874         PR tree-optimization/46590
25875         * opts.c (default_options_table): Add entries for
25876         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25877         all enabled at -O1 but not for -Og.
25878         * common.opt (fbranch-count-reg): Remove Init(1).
25879         (fmove-loop-invariants): Likewise.
25880         (ftree-pta): Likewise.
25882 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
25884         * config/i386/i386.c (ix86_data_alignment): For compatibility with
25885         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25886         decls to at least the GCC 4.8 used alignments.
25888         PR fortran/59440
25889         * tree-nested.c (convert_nonlocal_reference_stmt,
25890         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25891         of GIMPLE_BIND stmts, adjust associated decls.
25893 2014-01-17  Richard Biener  <rguenther@suse.de>
25895         PR tree-optimization/46590
25896         * vec.h (vec<>::bseach): New member function implementing
25897         binary search according to C89 bsearch.
25898         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25899         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25900         bitmap pointer again.  Make accesses_in_loop a flat array.
25901         (mem_ref_obstack): New global.
25902         (outermost_indep_loop): Adjust for mem_ref->stored changes.
25903         (mark_ref_stored): Likewise.
25904         (ref_indep_loop_p_2): Likewise.
25905         (set_ref_stored_in_loop): New helper function.
25906         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25907         (memref_free): Adjust.
25908         (record_mem_ref_loc): Simplify.
25909         (gather_mem_refs_stmt): Adjust.
25910         (sort_locs_in_loop_postorder_cmp): New function.
25911         (analyze_memory_references): Sort accesses_in_loop after
25912         loop postorder number.
25913         (find_ref_loc_in_loop_cmp): New function.
25914         (for_all_locs_in_loop): Find relevant cluster of locs in
25915         accesses_in_loop and iterate without recursion.
25916         (execute_sm): Avoid uninit warning.
25917         (struct ref_always_accessed): Simplify.
25918         (ref_always_accessed::operator ()): Likewise.
25919         (ref_always_accessed_p): Likewise.
25920         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25921         loop postorder numbers here.
25922         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25923         numbers.
25925 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
25927         PR c++/57945
25928         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25929         on decls for which assemble_alias has been called.
25931 2014-01-17  Nick Clifton  <nickc@redhat.com>
25933         * config/msp430/msp430.opt: (mcpu): New option.
25934         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25935         (msp430_option_override): Parse target_cpu.  If the MCU name
25936         matches a generic string, clear target_mcu.
25937         (msp430_attr): Allow numeric interrupt values up to 63.
25938         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25939         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25940         option.
25941         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25942         Add mcpu matches.
25943         * config/msp430/msp430.md (popm): Use %J rather than %I.
25944         (addsi3): Use msp430_nonimmediate_operand for operand 2.
25945         (addhi_cy_i): Use immediate_operand for operand 2.
25946         * doc/invoke.texi: Document -mcpu option.
25948 2014-01-17  Richard Biener  <rguenther@suse.de>
25950         PR rtl-optimization/38518
25951         * df.h (df_analyze_loop): Declare.
25952         * df-core.c: Include cfgloop.h.
25953         (df_analyze_1): Split out main part of df_analyze.
25954         (df_analyze): Adjust.
25955         (loop_inverted_post_order_compute): New function.
25956         (loop_post_order_compute): Likewise.
25957         (df_analyze_loop): New function avoiding whole-function
25958         postorder computes.
25959         * loop-invariant.c (find_defs): Use df_analyze_loop.
25960         (find_invariants): Adjust.
25961         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25963 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
25965         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25966         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25968 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
25970         * ipa-ref.c (ipa_remove_stmt_references): Fix references
25971         traversal when removing references.
25973 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
25975         PR ipa/59775
25976         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25978 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
25980         PR middle-end/56791
25981         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25982         pushing a reload for an autoinc when we had previously reloaded an
25983         inner part of the address.
25985 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
25987         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25988         field.
25989         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25990         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25991         when not giving up or versioning for alias only because of
25992         loop->safelen.
25993         (vect_analyze_data_ref_dependences): Set to true.
25994         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25995         is a GIMPLE_PHI.
25996         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25997         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25998         to the condition.
26000         PR middle-end/58344
26001         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26003         PR target/59839
26004         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26005         operand 0 predicate for gathers, use a new pseudo as subtarget.
26007 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
26009         PR middle-end/59609
26010         * lra-constraints.c (process_alt_operands): Add printing debug info.
26011         Check absence of input/output reloads for matched operands too.
26013 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
26015         PR rtl-optimization/59835
26016         * ira.c (ira_init_register_move_cost): Increase cost for
26017         impossible modes.
26019 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
26021         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26023 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
26025         PR target/59780
26026         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26027         non-register objects.  Use gen_(high/low)part more consistently.
26028         Fix assertions.
26030 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
26032         PR target/59844
26033         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26034         endian support, remove tests for WORDS_BIG_ENDIAN.
26035         (p8_mfvsrd_3_<mode>): Likewise.
26036         (reload_gpr_from_vsx<mode>): Likewise.
26037         (reload_gpr_from_vsxsf): Likewise.
26038         (p8_mfvsrd_4_disf): Likewise.
26040 2014-01-16  Richard Biener  <rguenther@suse.de>
26042         PR rtl-optimization/46590
26043         * lcm.c (compute_antinout_edge): Use postorder iteration.
26044         (compute_laterin): Use inverted postorder iteration.
26046 2014-01-16  Nick Clifton  <nickc@redhat.com>
26048         PR middle-end/28865
26049         * varasm.c (output_constant): Return the number of bytes actually
26050         emitted.
26051         (output_constructor_array_range): Update the field size with the
26052         number of bytes emitted by output_constant.
26053         (output_constructor_regular_field): Likewise.  Also do not
26054         complain if the total number of bytes emitted is now greater
26055         than the expected fieldpos.
26056         * output.h (output_constant): Update prototype and descriptive comment.
26058 2014-01-16  Marek Polacek  <polacek@redhat.com>
26060         PR middle-end/59827
26061         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26062         it is error_mark_node.
26064 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
26066         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26067         VALID_AVX256_REG_OR_OI_MODE.
26069 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
26071         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26072         current procedure should be profiled.
26074 2014-01-15  Andrew Pinski  <apinski@cavium.com>
26076         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26077         of moving from/to the STACK_REG register class.
26079 2014-01-15  Richard Henderson  <rth@redhat.com>
26081         PR debug/54694
26082         * reginfo.c (global_regs_decl): Globalize.
26083         * rtl.h (global_regs_decl): Declare.
26084         * ira.c (do_reload): Diagnose frame_pointer_needed and it
26085         reserved via global_regs.
26087 2014-01-15  Teresa Johnson  <tejohnson@google.com>
26089         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26091 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
26093         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26094         and vmulosh rather than call gen_vec_widen_smult_*.
26095         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26096         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26097         (vec_widen_smult_even_v16qi): Likewise.
26098         (vec_widen_umult_even_v8hi): Likewise.
26099         (vec_widen_smult_even_v8hi): Likewise.
26100         (vec_widen_umult_odd_v16qi): Likewise.
26101         (vec_widen_smult_odd_v16qi): Likewise.
26102         (vec_widen_umult_odd_v8hi): Likewise.
26103         (vec_widen_smult_odd_v8hi): Likewise.
26104         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26105         vmuloub rather than call gen_vec_widen_umult_*.
26106         (vec_widen_umult_lo_v16qi): Likewise.
26107         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26108         vmulosb rather than call gen_vec_widen_smult_*.
26109         (vec_widen_smult_lo_v16qi): Likewise.
26110         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26111         rather than call gen_vec_widen_umult_*.
26112         (vec_widen_umult_lo_v8hi): Likewise.
26113         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26114         rather than call gen_vec_widen_smult_*.
26115         (vec_widen_smult_lo_v8hi): Likewise.
26117 2014-01-15  Jeff Law  <law@redhat.com>
26119         PR tree-optimization/59747
26120         * ree.c (find_and_remove_re): Properly handle case where a second
26121         eliminated extension requires widening a copy created for elimination
26122         of a prior extension.
26123         (combine_set_extension): Ensure that the number of hard regs needed
26124         for a destination register does not change when we widen it.
26126 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26128         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26129         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26130         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26131         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26132         (avr-*-rtems*): Likewise.
26133         (bfin*-rtems*): Likewise.
26134         (moxie-*-rtems*): Likewise.
26135         (h8300-*-rtems*): Likewise.
26136         (i[34567]86-*-rtems*): Likewise.
26137         (lm32-*-rtems*): Likewise.
26138         (m32r-*-rtems*): Likewise.
26139         (m68k-*-rtems*): Likewise.
26140         (microblaze*-*-rtems*): Likewise.
26141         (mips*-*-rtems*): Likewise.
26142         (powerpc-*-rtems*): Likewise.
26143         (sh-*-rtems*): Likewise.
26144         (sparc-*-rtems*): Likewise.
26145         (sparc64-*-rtems*): Likewise.
26146         (v850-*-rtems*): Likewise.
26147         (m32c-*-rtems*): Likewise.
26149 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
26151         PR rtl-optimization/59511
26152         * ira.c (ira_init_register_move_cost): Use memory costs for some
26153         cases of register move cost calculations.
26154         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26155         instead of BB frequency.
26156         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26157         * lra-assigns.c (find_hard_regno_for): Ditto.
26159 2014-01-15  Richard Biener  <rguenther@suse.de>
26161         PR tree-optimization/59822
26162         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26163         (vectorizable_load): Use it to hoist defs of uses of invariant
26164         loads out of the loop.
26166 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
26167             Kugan Vivekanandarajah  <kuganv@linaro.org>
26169         PR target/59695
26170         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26171         truncation.
26173 2014-01-15  Richard Biener  <rguenther@suse.de>
26175         PR rtl-optimization/59802
26176         * lcm.c (compute_available): Use inverted postorder to seed
26177         the initial worklist.
26179 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26181         PR target/59803
26182         * config/s390/s390.c (s390_preferred_reload_class): Don't return
26183         ADDR_REGS for invalid symrefs in non-PIC code.
26185 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
26187         PR other/58712
26188         * builtins.c (determine_block_size): Initialize *probable_max_size
26189         even if len_rtx is CONST_INT.
26191 2014-01-14  Andrew Pinski  <apinski@cavium.com>
26193         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26194         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26195         (cortexa53_tunings): Likewise.
26196         (aarch64_sched_issue_rate): New function.
26197         (TARGET_SCHED_ISSUE_RATE): Define.
26199 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
26201         * ira-costs.c (find_costs_and_classes): Add missed
26202         ira_init_register_move_cost_if_necessary.
26204 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
26206         PR target/59787
26207         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26209 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
26211         PR target/59794
26212         * config/i386/i386.c (type_natural_mode): Add a bool parameter
26213         to indicate if type is used for function return value.  Warn ABI
26214         change if the vector mode isn't available for function return value.
26215         (ix86_function_arg_advance): Pass false to type_natural_mode.
26216         (ix86_function_arg): Likewise.
26217         (ix86_gimplify_va_arg): Likewise.
26218         (function_arg_32): Don't warn ABI change.
26219         (ix86_function_value): Pass true to type_natural_mode.
26220         (ix86_return_in_memory): Likewise.
26221         (ix86_struct_value_rtx): Removed.
26222         (TARGET_STRUCT_VALUE_RTX): Likewise.
26224 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26226         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26227         converting a conditional jump into a conditional return.
26229 2014-01-14  Richard Biener  <rguenther@suse.de>
26231         PR tree-optimization/58921
26232         PR tree-optimization/59006
26233         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26234         hoisting invariant stmts.
26235         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26236         invariant loads on the preheader edge if possible.
26238 2014-01-14  Joey Ye  <joey.ye@arm.com>
26240         * doc/plugin.texi (Building GCC plugins): Update to C++.
26242 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
26244         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26245         (_mm_rcp28_round_ss): Ditto.
26246         (_mm_rsqrt28_round_sd): Ditto.
26247         (_mm_rsqrt28_round_ss): Ditto.
26248         (_mm_rcp28_sd): Ditto.
26249         (_mm_rcp28_ss): Ditto.
26250         (_mm_rsqrt28_sd): Ditto.
26251         (_mm_rsqrt28_ss): Ditto.
26252         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26253         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26254         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26255         (IX86_BUILTIN_RCP28SD): Ditto.
26256         (IX86_BUILTIN_RCP28SS): Ditto.
26257         (IX86_BUILTIN_RSQRT28SD): Ditto.
26258         (IX86_BUILTIN_RSQRT28SS): Ditto.
26259         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26260         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26261         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26262         (ix86_expand_special_args_builtin): Expand new FTYPE.
26263         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26264         (srcp14<mode>): Make insn unary.
26265         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26266         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26267         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26268         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26269         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26270         Fix rounding: make it SAE only.
26271         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26272         Ditto.
26273         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26274         Ditto.
26275         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26276         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26277         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26278         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26279         (round_saeonly_mask_scalar_operand4): Ditto.
26280         (round_saeonly_mask_scalar_op3): Ditto.
26281         (round_saeonly_mask_scalar_op4): Ditto.
26283 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26285         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26286         Implement -maltivec=be for vec_insert and vec_extract.
26288 2014-01-10  DJ Delorie  <dj@redhat.com>
26290         * config/msp430/msp430.md (call_internal): Don't allow memory
26291         references with SP as the base register.
26292         (call_value_internal): Likewise.
26293         * config/msp430/constraints.md (Yc): New.  For memory references
26294         that don't use SP as a base register.
26296         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26297         "an integer without a # prefix"
26298         * config/msp430/msp430.md (epilogue_helper): Use it.
26300 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
26302         PR target/59617
26303         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26304         AVX512F gather builtins.
26305         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26306         on gather decls with INTEGER_TYPE masktype.
26307         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26308         directly into the builtin rather than hoisting it before loop.
26310         PR tree-optimization/59387
26311         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26312         (scev_const_prop): If folded_casts and type has undefined overflow,
26313         use force_gimple_operand instead of force_gimple_operand_gsi and
26314         for each added stmt if it is assign with
26315         arith_code_with_undefined_signed_overflow, call
26316         rewrite_to_defined_overflow.
26317         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26318         gimple-fold.h instead.
26319         (arith_code_with_undefined_signed_overflow,
26320         rewrite_to_defined_overflow): Moved to ...
26321         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26322         rewrite_to_defined_overflow): ... here.  No longer static.
26323         Include gimplify-me.h.
26324         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26325         rewrite_to_defined_overflow): New prototypes.
26327 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26329         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26331 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
26333         * builtins.c (get_object_alignment_2): Minor tweak.
26334         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26336 2014-01-13  Christian Bruel  <christian.bruel@st.com>
26338         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26339         optimized non constant lengths.
26341 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
26343         PR libgomp/59194
26344         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26345         load as __atomic_load_N if possible.
26347 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
26349         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26350         target parameter.
26351         (rs6000_expand_builtin): Adjust call.
26353 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
26355         PR target/58115
26356         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26357         * config/rs6000/rs6000.c: Include target-globals.h.
26358         (rs6000_set_current_function): Instead of doing target_reinit
26359         unconditionally, use save_target_globals_default_opts and
26360         restore_target_globals.
26362         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26363         FPSCR.
26364         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26365         (rs6000_expand_builtin): Handle mffs and mtfsf.
26366         (rs6000_init_builtins): Define mffs and mtfsf.
26367         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26368         (rs6000_mffs): New pattern.
26369         (rs6000_mtfsf): New pattern.
26371 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
26373         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26374         Start narrowing with START.  Apply candidate-use pair
26375         and check overall cost in narrowing.
26376         (iv_ca_prune): Pass new argument.
26378 2014-01-10  Jeff Law  <law@redhat.com>
26380         PR middle-end/59743
26381         * ree.c (combine_reaching_defs): Ensure the defining statement
26382         occurs before the extension when optimizing extensions with
26383         different source and destination hard registers.
26385 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
26387         PR ipa/58585
26388         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26389         vtables into the type inheritance graph.
26391 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
26393         PR rtl-optimization/59754
26394         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26395         modes in the REGNO != REGNO case.
26397 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26399         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26401 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
26403         PR tree-optimization/59745
26404         * tree-predcom.c (tree_predictive_commoning_loop): Call
26405         free_affine_expand_cache if giving up because components is NULL.
26407         * target-globals.c (save_target_globals): Allocate < 4KB structs using
26408         GC in payload of target_globals struct instead of allocating them on
26409         the heap and the larger structs separately using GC.
26410         * target-globals.h (struct target_globals): Make regs, hard_regs,
26411         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26412         of GTY((skip)) and change type to void *.
26413         (reset_target_globals): Cast loads from those fields to corresponding
26414         types.
26416 2014-01-10  Steve Ellcey  <sellcey@mips.com>
26418         PR plugins/59335
26419         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26420         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26421         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26423 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
26425         PR target/59744
26426         * aarch64-modes.def (CC_Zmode): New flags mode.
26427         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26428         represents an equality.
26429         (aarch64_get_condition_code): Handle CC_Zmode.
26430         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26432 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26434         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26435         extraction in good case.
26437 2014-01-10  Richard Biener  <rguenther@suse.de>
26439         PR tree-optimization/59374
26440         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26441         checking after SLP discovery.  Mark stmts not participating
26442         in any SLP instance properly.
26444 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26446         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26447         when handling a SET rtx.
26449 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26451         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26452         (cortex-a57): Likewise.
26453         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26455 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26457         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26458         non-iwmmxt builtins.
26460 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
26462         PR ipa/58252
26463         PR ipa/59226
26464         * ipa-devirt.c record_target_from_binfo): Take as argument
26465         stack of binfos and lookup matching one for virtual inheritance.
26466         (possible_polymorphic_call_targets_1): Update.
26468 2014-01-10  Huacai Chen  <chenhc@lemote.com>
26470         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26471         kernel strings for Loongson-2E/2F/3A.
26473 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
26475         PR middle-end/59670
26476         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26477         is_gimple_call before calling gimple_call_internal_p.
26479 2014-01-09  Steve Ellcey  <sellcey@mips.com>
26481         * Makefile.in (TREE_FLOW_H): Remove.
26482         (TREE_SSA_H): Add file names from tree-flow.h.
26483         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26484         * tree.h: Remove tree-flow.h reference.
26485         * hash-table.h: Remove tree-flow.h reference.
26486         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26487         reference with tree-ssa-loop.h.
26489 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26491         * doc/invoke.texi: Add -maltivec={be,le} options, and document
26492         default element-order behavior for -maltivec.
26493         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26494         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26495         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26496         when targeting big endian, at least for now.
26497         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26499 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
26501         PR middle-end/47735
26502         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26503         var satisfies use_register_for_decl, just take into account type
26504         alignment, rather than decl alignment.
26506         PR tree-optimization/59622
26507         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
26508         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26509         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26510         Don't devirtualize for inplace at all.  For targets.length () == 1,
26511         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26513 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
26515         * config/i386/i386.md (cpu): Remove the unused btver1.
26517 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
26519         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26521 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
26523         PR target/58115
26524         * tree-core.h (struct target_globals): New forward declaration.
26525         (struct tree_target_option): Add globals field.
26526         * tree.h (TREE_TARGET_GLOBALS): Define.
26527         (prepare_target_option_nodes_for_pch): New prototype.
26528         * target-globals.h (struct target_globals): Define even if
26529         !SWITCHABLE_TARGET.
26530         * tree.c (prepare_target_option_node_for_pch,
26531         prepare_target_option_nodes_for_pch): New functions.
26532         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26533         * config/i386/i386.c: Include target-globals.h.
26534         (ix86_set_current_function): Instead of doing target_reinit
26535         unconditionally, use save_target_globals_default_opts and
26536         restore_target_globals.
26538 2014-01-09  Richard Biener  <rguenther@suse.de>
26540         PR tree-optimization/59715
26541         * tree-cfg.h (split_critical_edges): Declare.
26542         * tree-cfg.c (split_critical_edges): Export.
26543         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26545 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
26547         * cfgexpand.c (expand_stack_vars): Optionally disable
26548         asan stack protection.
26549         (expand_used_vars): Likewise.
26550         (partition_stack_vars): Likewise.
26551         * asan.c (asan_emit_stack_protection): Optionally disable
26552         after return stack usage.
26553         (instrument_derefs): Optionally disable memory access instrumentation.
26554         (instrument_builtin_call): Likewise.
26555         (instrument_strlen_call): Likewise.
26556         (asan_protect_global): Optionally disable global variables protection.
26557         * doc/invoke.texi: Added doc for new options.
26558         * params.def: Added new options.
26559         * params.h: Likewise.
26561 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
26563         PR rtl-optimization/59724
26564         * ifcvt.c (cond_exec_process_if_block): Don't call
26565         flow_find_head_matching_sequence with 0 longest_match.
26566         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26567         non-active insns if !stop_after.
26568         (try_head_merge_bb): Revert 2014-01-07 changes.
26570 2014-01-08  Jeff Law  <law@redhat.com>
26572         * ree.c (get_sub_rtx): New function, extracted from...
26573         (merge_def_and_ext): Here.
26574         (combine_reaching_defs): Use get_sub_rtx.
26576 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
26578         * cgraph.h (varpool_variable_node): Do not choke on null node.
26580 2014-01-08  Catherine Moore  <clm@codesourcery.com>
26582         * config/mips/mips.md (simple_return): Attempt to use JRC
26583         for microMIPS.
26584         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26586 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
26588         PR rtl-optimization/59137
26589         * reorg.c (steal_delay_list_from_target): Call update_block for
26590         elided insns.
26591         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26593 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26595         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26596         two duplicate entries.
26598 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
26600         Revert:
26601         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
26603         * config/mips/mips.c (mips_truncated_op_cost): New function.
26604         (mips_rtx_costs): Adjust test for BADDU.
26605         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26607         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
26609         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26610         (*baddu_si): ...this new pattern.
26612 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
26614         PR ipa/59722
26615         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26617 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26619         PR middle-end/57748
26620         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26621         inner_reference_p.
26622         (expand_expr, expand_normal): Adjust.
26623         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26624         inner_reference_p. Use inner_reference_p to expand inner references.
26625         (store_expr): Adjust.
26626         * cfgexpand.c (expand_call_stmt): Adjust.
26628 2014-01-08  Rong Xu  <xur@google.com>
26630         * gcov-io.c (gcov_var): Move from gcov-io.h.
26631         (gcov_position): Ditto.
26632         (gcov_is_error): Ditto.
26633         (gcov_rewrite): Ditto.
26634         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26635         only part to libgcc/libgcov.h.
26637 2014-01-08  Marek Polacek  <polacek@redhat.com>
26639         PR middle-end/59669
26640         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26642 2014-01-08  Marek Polacek  <polacek@redhat.com>
26644         PR sanitizer/59667
26645         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26647 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
26649         PR rtl-optimization/59649
26650         * stor-layout.c (get_mode_bounds): For BImode return
26651         0 and STORE_FLAG_VALUE.
26653 2014-01-08  Richard Biener  <rguenther@suse.de>
26655         PR middle-end/59630
26656         * gimple.h (is_gimple_builtin_call): Remove.
26657         (gimple_builtin_call_types_compatible_p): New.
26658         (gimple_call_builtin_p): New overload.
26659         * gimple.c (is_gimple_builtin_call): Remove.
26660         (validate_call): Rename to ...
26661         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
26662         check return types.
26663         (validate_type): New static function.
26664         (gimple_call_builtin_p): New overload and adjust.
26665         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26666         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
26667         (gimple_fold_stmt_to_constant_1): Likewise.
26668         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26670 2014-01-08  Richard Biener  <rguenther@suse.de>
26672         PR middle-end/59471
26673         * gimplify.c (gimplify_expr): Gimplify register-register type
26674         VIEW_CONVERT_EXPRs to separate stmts.
26676 2014-01-07  Jeff Law  <law@redhat.com>
26678         PR middle-end/53623
26679         * ree.c (combine_set_extension): Handle case where source
26680         and destination registers in an extension insn are different.
26681         (combine_reaching_defs): Allow source and destination registers
26682         in extension to be different under limited circumstances.
26683         (add_removable_extension): Remove restriction that the
26684         source and destination registers in the extension are the same.
26685         (find_and_remove_re): Emit a copy from the extension's
26686         destination to its source after the defining insn if
26687         the source and destination registers are different.
26689         PR middle-end/59285
26690         * ifcvt.c (merge_if_block): If we are merging a block with more than
26691         one successor with a block with no successors, remove any BARRIER
26692         after the second block.
26694 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
26696         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26698 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
26700         PR target/59652
26701         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26702         for 14-bit register offsets when INT14_OK_STRICT is false.
26704 2014-01-07  Roland Stigge  <stigge@antcom.de>
26705             Michael Meissner  <meissner@linux.vnet.ibm.com>
26707         PR 57386/target
26708         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26709         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
26711 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
26713         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26714         -mcpu.
26716 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
26718         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26719         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26720         rtx is const0_rtx or not.
26722 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
26724         PR target/58115
26725         * target-globals.c (save_target_globals): Remove this_fn_optab
26726         handling.
26727         * toplev.c: Include optabs.h.
26728         (target_reinit): Temporarily restore the global options if another
26729         set of options are in force.
26731 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
26733         PR rtl-optimization/58668
26734         * cfgcleanup.c (flow_find_cross_jump): Don't count
26735         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
26736         to determine what is counted.
26737         (flow_find_head_matching_sequence): Use active_insn_p to determine
26738         what is counted.
26739         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26740         counting change.
26741         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26742         determine what is counted.
26744         PR tree-optimization/59643
26745         * tree-predcom.c (split_data_refs_to_components): If one dr is
26746         read and one write, determine_offset fails and the write isn't
26747         in the bad component, just put the read into the bad component.
26749 2014-01-07  Mike Stump  <mikestump@comcast.net>
26750             Jakub Jelinek  <jakub@redhat.com>
26752         PR pch/59436
26753         * tree-core.h (struct tree_optimization_option): Change optabs
26754         type from unsigned char * to void *.
26755         * optabs.c (init_tree_optimization_optabs): Adjust
26756         TREE_OPTIMIZATION_OPTABS initialization.
26758 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
26760         PR target/59644
26761         * config/i386/i386.h (struct machine_function): Add
26762         no_drap_save_restore field.
26763         * config/i386/i386.c (ix86_save_reg): Use
26764         !cfun->machine->no_drap_save_restore instead of
26765         crtl->stack_realign_needed.
26766         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26767         this function clears frame_pointer_needed.  Set
26768         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26769         and DRAP reg is needed.
26771 2014-01-06  Marek Polacek  <polacek@redhat.com>
26773         PR c/57773
26774         * doc/implement-c.texi: Mention that other integer types are
26775         permitted as bit-field types in strictly conforming mode.
26777 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
26779         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26780         is newly allocated.
26782 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
26784         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26786 2014-01-06  Martin Jambor  <mjambor@suse.cz>
26788         PR ipa/59008
26789         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26790         to int.
26791         * ipa-prop.c (ipa_print_node_params): Fix indentation.
26793 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
26795         PR debug/59350
26796         PR debug/59510
26797         * var-tracking.c (add_stores): Preserve the value of the source even if
26798         we don't record the store.
26800 2014-01-06  Terry Guo  <terry.guo@arm.com>
26802         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26804 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
26806         PR bootstrap/59541
26807         * config/darwin.c (darwin_function_section): Adjust return values to
26808         correspond to optimisation changes made in r206070.
26810 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
26812         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26813         from prefetch_block tune setting.
26814         (nocona_cost): Correct size of prefetch block to 64.
26816 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
26818         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26819         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26820         used to save the static chain register in the computation of the offset
26821         from which the FP registers need to be restored.
26823 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
26825         PR tree-optimization/59519
26826         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26827         ICE if get_current_def (current_new_name) is already non-NULL, as long
26828         as it is a phi result of some other phi in *new_exit_bb that has
26829         the same argument.
26831         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26832         or vmovdqu* for misaligned_operand.
26833         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26834         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26835         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26836         aligned_mem for AVX512F masked aligned load and store builtins and for
26837         non-temporal moves.
26839 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
26841         PR tree-optimization/59651
26842         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26843         Address range for negative step should be added by TYPE_SIZE_UNIT.
26845 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
26847         * config/m68k/m68k.c (handle_move_double): Handle pushes with
26848         overlapping registers also for registers other than the stack pointer.
26850 2014-01-03  Marek Polacek  <polacek@redhat.com>
26852         PR other/59661
26853         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26854         __builtin_FILE.
26856 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
26858         PR target/59625
26859         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26860         asm goto as jump.
26862         * config/i386/i386.md (MODE_SIZE): New mode attribute.
26863         (push splitter): Use <P:MODE_SIZE> instead of
26864         GET_MODE_SIZE (<P:MODE>mode).
26865         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26866         (mov -1, reg peephole2): Likewise.
26867         * config/i386/sse.md (*mov<mode>_internal,
26868         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26869         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26870         *<code><mode>3, *andnot<mode>3<mask_name>,
26871         <mask_codefor><code><mode>3<mask_name>): Likewise.
26872         * config/i386/subst.md (mask_mode512bit_condition,
26873         sd_mask_mode512bit_condition): Likewise.
26875 2014-01-02  Xinliang David Li  <davidxl@google.com>
26877         PR tree-optimization/59303
26878         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26879         (dump_predicates): Better output format.
26880         (pred_equal_p): New function.
26881         (is_neq_relop_p): Ditto.
26882         (is_neq_zero_form_p): Ditto.
26883         (pred_expr_equal_p): Ditto.
26884         (pred_neg_p): Ditto.
26885         (simplify_pred): Ditto.
26886         (simplify_preds_2): Ditto.
26887         (simplify_preds_3): Ditto.
26888         (simplify_preds_4): Ditto.
26889         (simplify_preds): Ditto.
26890         (push_pred): Ditto.
26891         (push_to_worklist): Ditto.
26892         (get_pred_info_from_cmp): Ditto.
26893         (is_degenerated_phi): Ditto.
26894         (normalize_one_pred_1): Ditto.
26895         (normalize_one_pred): Ditto.
26896         (normalize_one_pred_chain): Ditto.
26897         (normalize_preds): Ditto.
26898         (normalize_cond_1): Remove function.
26899         (normalize_cond): Ditto.
26900         (is_gcond_subset_of): Ditto.
26901         (is_subset_of_any): Ditto.
26902         (is_or_set_subset_of): Ditto.
26903         (is_and_set_subset_of): Ditto.
26904         (is_norm_cond_subset_of): Ditto.
26905         (pred_chain_length_cmp): Ditto.
26906         (convert_control_dep_chain_into_preds): Type change.
26907         (find_predicates): Ditto.
26908         (find_def_preds): Ditto.
26909         (destroy_predicates_vecs): Ditto.
26910         (find_matching_predicates_in_rest_chains): Ditto.
26911         (use_pred_not_overlap_with_undef_path_pred): Ditto.
26912         (is_pred_expr_subset): Ditto.
26913         (is_pred_chain_subset_of): Ditto.
26914         (is_included_in): Ditto.
26915         (is_superset_of): Ditto.
26917 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
26919         Update copyright years.
26921 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
26923         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26924         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26925         config/arc/arc.md, config/arc/arc.opt,
26926         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26927         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26928         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26929         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26930         config/linux-protos.h, config/linux.c, config/winnt-c.c,
26931         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26932         vtable-verify.c, vtable-verify.h: Use the standard form for the
26933         copyright notice.
26935 2014-01-02  Tobias Burnus  <burnus@net-b.de>
26937         * gcc.c (process_command): Update copyright notice dates.
26938         * gcov-dump.c: Ditto.
26939         * gcov.c: Ditto.
26940         * doc/cpp.texi: Bump @copying's copyright year.
26941         * doc/cppinternals.texi: Ditto.
26942         * doc/gcc.texi: Ditto.
26943         * doc/gccint.texi: Ditto.
26944         * doc/gcov.texi: Ditto.
26945         * doc/install.texi: Ditto.
26946         * doc/invoke.texi: Ditto.
26948 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26950         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26952 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
26954         * config/i386/sse.md (*mov<mode>_internal): Guard
26955         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26957         PR rtl-optimization/59647
26958         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26959         new_rtx into UNSIGNED_FLOAT rtxes.
26961 Copyright (C) 2014 Free Software Foundation, Inc.
26963 Copying and distribution of this file, with or without modification,
26964 are permitted in any medium without royalty provided the copyright
26965 notice and this notice are preserved.