cse.c (check_for_label_ref): Move earlier in file.
[gcc.git] / gcc / ChangeLog
1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * cse.c (check_for_label_ref): Move earlier in file. Turn from
4 being a for_each_rtx callback to being a function that examines
5 each subrtx itself.
6 (cse_extended_basic_block): Update call accordingly.
7
8 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9
10 * cse.c (check_dependence_data): Delete.
11 (check_dependence): Change from being a for_each_rtx callback to being
12 a function that examines all subrtxes itself. Don't handle null rtxes.
13 (invalidate): Update call accordingly.
14
15 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16
17 * cse.c: Include rtl-iter.h.
18 (approx_reg_cost_1): Delete.
19 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
20 Don't handle null rtxes.
21
22 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
23
24 * cfgcleanup.c: Include rtl-iter.h.
25 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
26 to being a function that examines each subrtx itself.
27 (thread_jump): Update accordingly.
28
29 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
30
31 * combine-stack-adj.c: Include rtl-iter.h.
32 (record_stack_refs_data): Delete.
33 (record_stack_refs): Turn from being a for_each_rtx callback
34 to being a function that examines each subrtx itself.
35 Take a pointer to the reflist. Invert sense of return value
36 so that true means success and false means failure. Don't
37 handle null rtxes.
38 (combine_stack_adjustments_for_block): Update accordingly.
39
40 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
41
42 * combine.c (record_truncated_value): Turn from being a for_each_rtx
43 callback to a function that takes an rtx and returns a bool
44 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
45 for_each_rtx.
46
47 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
48
49 * combine.c: Include rtl-iter.h.
50 (unmentioned_reg_p_1): Delete.
51 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
52 Don't handle null rtxes.
53
54 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
55
56 * calls.c: Include rtl-iter.h.
57 (internal_arg_pointer_based_exp_1): Delete.
58 (internal_arg_pointer_based_exp): Take a const_rtx.
59 Use FOR_EACH_SUBRTX to iterate over subrtxes.
60
61 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
62
63 * caller-save.c: Include rtl-iter.h.
64 (add_used_regs_1): Delete.
65 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
66 to iterate over subrtxes. Assert that any remaining pseudos
67 have been spilled.
68
69 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
70
71 * bt-load.c: Include rtl-iter.h.
72 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
73 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
74 to iterate over subrtxes.
75 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
76 find_btr_use rather than btr_referenced_p.
77
78 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
79
80 * alias.c: Include rtl-iter.h.
81 (refs_newer_value_cb): Delete.
82 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
83
84 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
85
86 * rtl-iter.h: New file.
87 * rtlanal.c: Include it.
88 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
89 (generic_subrtx_iterator <T>::add_single_to_queue)
90 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
91 (generic_subrtx_iterator <T>::free_array): New functions.
92 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
93 (generic_subrtx_iterator <const_rtx_accessor>)
94 (generic_subrtx_iterator <rtx_var_accessor>
95 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
96 (setup_reg_subrtx_bounds): New function.
97 (init_rtlanal): Call it.
98
99 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
100
101 PR target/62261
102 * config/sh/sh.md (ashlsi3): Handle negative shift count for
103 TARGET_SHMEDIA.
104 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
105
106 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
107
108 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
109
110 2014-08-27 David Malcolm <dmalcolm@redhat.com>
111
112 * rtl.h (JUMP_LABEL_AS_INSN): New.
113
114 2014-08-27 David Malcolm <dmalcolm@redhat.com>
115
116 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
117 rtx_expr_list **.
118 (alloc_EXPR_LIST): Strengthen return type from rtx to
119 rtx_expr_list *.
120 (remove_free_EXPR_LIST_node): Likewise for param.
121 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
122 from rtx to rtx_expr_list *.
123 * sched-int.h (struct deps_desc): Strengthen fields
124 "pending_read_mems" and "pending_write_mems" from rtx to
125 rtx_expr_list *.
126
127 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
128 rtx to rtx_expr_list *.
129 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
130 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
131 rtx_expr_list **.
132 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
133 from rtx to rtx_expr_list *.
134 * loop-iv.c (simplify_using_initial_values): Strengthen local
135 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
136 "pnote_next" from rtx * to rtx_expr_list **.
137 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
138 param "exprp" from rtx * to rtx_expr_list **.
139 (add_insn_mem_dependence): Strengthen local "mem_list" from
140 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
141 to rtx_expr_list *.
142 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
143 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
144 param "old_mems_p" from rtx * to rtx_expr_list **.
145 * var-tracking.c (struct adjust_mem_data): Strengthen field
146 "side_effects" from rtx to rtx_expr_list *.
147 (adjust_insn): Replace NULL_RTX with NULL when assigning to
148 rtx_expr_list *.
149 (prepare_call_arguments): Likewise.
150
151 2014-08-27 David Malcolm <dmalcolm@redhat.com>
152
153 * function.h (struct rtl_data): Strengthen field
154 "x_stack_slot_list" from rtx to rtx_expr_list *.
155
156 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
157 when assigning to stack_slot_list.
158
159 2014-08-27 David Malcolm <dmalcolm@redhat.com>
160
161 * function.h (struct rtl_data): Strengthen field
162 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
163 * rtl.h (remove_node_from_expr_list): Strengthen second param from
164 rtx * to rtx_expr_list **.
165
166 * cfgbuild.c (make_edges): In loop over
167 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
168 rtx_expr_list *, and use methods of the latter class to clarify
169 the code.
170 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
171 rtx_expr_list *, and use methods of the latter class to clarify
172 the code.
173 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
174 * reload1.c (set_initial_label_offsets): Likewise for local "x".
175 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
176 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
177 to rtx_expr_list *. Use methods of the latter class to clarify
178 the code.
179
180 2014-08-27 David Malcolm <dmalcolm@redhat.com>
181
182 * function.h (struct expr_status): Strengthen field
183 "x_forced_labels" from rtx to rtx_expr_list *.
184
185 * cfgbuild.c (make_edges): Split local "x" into two locals,
186 strengthening one from rtx to rtx_expr_list *, and using methods
187 of said class.
188 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
189 loop over forced_labels, introduce strengthen it from rtx to
190 rtx_expr_list *, using methods to clarify the code.
191 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
192 to rtx_expr_list *, using methods of said class to clarify the
193 code.
194 * reload1.c (set_initial_label_offsets): Split local "x" into two
195 per-loop variables, strengthening the first from rtx to
196 rtx_expr_list * and using methods.
197
198 2014-08-27 David Malcolm <dmalcolm@redhat.com>
199
200 * coretypes.h (class rtx_expr_list): Add forward declaration.
201 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
202 * gengenrtl.c (special_rtx): Add EXPR_LIST.
203 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
204 invariant: GET_CODE (X) == EXPR_LIST.
205 (is_a_helper <rtx_expr_list *>::test): New.
206 (rtx_expr_list::next): New.
207 (rtx_expr_list::element): New.
208 (gen_rtx_EXPR_LIST): New.
209
210 2014-08-27 David Malcolm <dmalcolm@redhat.com>
211
212 * varasm.c (mark_constants): Convert a GET_CODE check into a
213 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
214 Use methods of rtx_sequence to clarify the code.
215
216 2014-08-27 David Malcolm <dmalcolm@redhat.com>
217
218 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
219 local "seq" via a checked cast, and use methods of rtx_sequence
220 to simplify the code.
221
222 2014-08-27 David Malcolm <dmalcolm@redhat.com>
223
224 * resource.c (mark_referenced_resources): Strengthen local
225 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
226 using methods of rtx_sequence to clarify the code.
227 (find_dead_or_set_registers): Within the switch statement, convert
228 a GET_CODE check to a dyn_cast, introducing local "seq". Within
229 the JUMP_P handling, introduce another local "seq", adding a
230 checked cast to rtx_sequence *. In both cases, use methods of
231 rtx_sequence to clarify the code.
232 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
233 via a checked cast, and use methods of rtx_sequence to simplify
234 the code.
235
236 2014-08-27 David Malcolm <dmalcolm@redhat.com>
237
238 * reorg.c (redundant_insn): In two places in the function, replace
239 a check of GET_CODE with a dyn_cast, introducing local "seq", and
240 usings methods of rtx_sequence to clarify the code.
241
242 2014-08-27 David Malcolm <dmalcolm@redhat.com>
243
244 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
245 local "seq" with a checked cast, and use methods of rtx_sequence
246 to clarify the code.
247
248 2014-08-27 David Malcolm <dmalcolm@redhat.com>
249
250 * function.c (contains): Introduce local "seq" for PATTERN (insn),
251 with a checked cast, in the region for where we know it's a
252 SEQUENCE. Use methods of rtx_sequence.
253
254 2014-08-27 David Malcolm <dmalcolm@redhat.com>
255
256 * final.c (get_attr_length_1): Replace GET_CODE check with a
257 dyn_cast, introducing local "seq" and the use of methods of
258 rtx_sequence.
259 (shorten_branches): Likewise, introducing local "body_seq".
260 Strengthen local "inner_insn" from rtx to rtx_insn *.
261 (reemit_insn_block_notes): Replace GET_CODE check with a
262 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
263 Use methods of rtx_sequence.
264 (final_scan_insn): Likewise, introducing local "seq" for when
265 "body" is known to be a SEQUENCE, using its methods.
266
267 2014-08-27 David Malcolm <dmalcolm@redhat.com>
268
269 * except.c (can_throw_external): Strengthen local "seq" from rtx
270 to rtx_sequence *. Use methods of rtx_sequence.
271 (insn_nothrow_p): Likewise.
272
273 2014-08-27 David Malcolm <dmalcolm@redhat.com>
274
275 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
276 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
277 Use methods of rtx_sequence.
278 (scan_trace): Likewise for local "pat".
279
280 2014-08-27 David Malcolm <dmalcolm@redhat.com>
281
282 * coretypes.h (class rtx_sequence): Add forward declaration.
283 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
284 invariant: GET_CODE (X) == SEQUENCE.
285 (is_a_helper <rtx_sequence *>::test): New.
286 (is_a_helper <const rtx_sequence *>::test): New.
287 (rtx_sequence::len): New.
288 (rtx_sequence::element): New.
289 (rtx_sequence::insn): New.
290
291 2014-08-27 David Malcolm <dmalcolm@redhat.com>
292
293 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
294 rtx_insn_list **.
295 (alloc_INSN_LIST): Strengthen return type from rtx to
296 rtx_insn_list *.
297 (copy_INSN_LIST): Likewise for return type and param.
298 (concat_INSN_LIST): Likewise for both params and return type.
299 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
300 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
301 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
302 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
303
304 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
305 "implicit_sets", "control_uses", "clobbers" from rtx to
306 rtx_insn_list *.
307 (struct deps_desc): Likewise for fields "pending_read_insns",
308 "pending_write_insns", "pending_jump_insns",
309 "last_pending_memory_flush", "last_function_call",
310 "last_function_call_may_noreturn", "sched_before_next_call",
311 "sched_before_next_jump".
312 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
313 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
314
315 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
316 from rtx to rtx_insn_list *.
317 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
318 rtx_insn_list *.
319
320 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
321 to rtx_insn_list **.
322 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
323 rtx_insn_list *.
324 (queue_insn): Likewise for local "link".
325 (struct haifa_saved_data): Strengthen field "insn_queue" from
326 rtx * to rtx_insn_list **.
327 (save_backtrack_point): Update allocation of save->insn_queue to
328 reflect the strengthening of elements from rtx to rtx_insn_list *.
329 (queue_to_ready): Strengthen local "link" from rtx to
330 rtx_insn_list *; use methods "next" and "insn" when traversing the
331 list.
332 (early_queue_to_ready): Likewise for locals "link", "next_link",
333 "prev_link".
334 (schedule_block): Update allocation of insn_queue to reflect the
335 strengthening of elements from rtx to rtx_insn_list *. Strengthen
336 local "link" from rtx to rtx_insn_list *, and use methods when
337 working it.
338 (add_to_speculative_block): Strengthen locals "twins" and
339 "next_node" from rtx to rtx_insn_list *, and use methods when
340 working with them. Strengthen local "twin" from rtx to
341 rtx_insn *, eliminating a checked cast.
342 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
343 from rtx to rtx_insn_list *, and use methods when working with
344 them.
345
346 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
347 from rtx to rtx_insn_list *, adding a checked cast.
348 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
349 rtx_insn_list **.
350 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
351 "newlink" from rtx to rtx_insn_list *. Strengthen local
352 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
353 from rtx to rtx_insn *.
354 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
355 from rtx to rtx_insn_list *. Use methods of the latter class.
356 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
357 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
358 (remove_free_INSN_LIST_node): Strengthen return type and local
359 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
360 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
361 rtx_insn_list *, using "insn" method.
362
363 * sched-deps.c (add_dependence_list): Strengthen param "list"
364 from rtx to rtx_insn_list *, and use methods when working with it.
365 (add_dependence_list_and_free): Strengthen param "listp" from
366 rtx * to rtx_insn_list **.
367 (remove_from_dependence_list): Strenghten param "listp" from rtx *
368 to rtx_insn_list **, and use methods when working with *listp.
369 (remove_from_both_dependence_lists): Strengthen param "listp" from
370 rtx * to rtx_insn_list **
371 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
372 to rtx_insn_list **. Eliminate local "link", in favor of two new
373 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
374 respectively.
375 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
376 by introducing local "cond_deps".
377 (remove_from_deps): Strengthen param "insn" from rtx to
378 rtx_insn *.
379
380 * sched-rgn.c (concat_insn_mem_list): Strengthen param
381 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
382 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
383 Use methods of rtx_insn_list.
384
385 * store-motion.c (struct st_expr): Strengthen fields
386 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
387 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
388 rtx_insn_list *.
389 (find_moveable_store): Split out "tmp" into multiple more-tightly
390 scoped locals. Use methods of rtx_insn_list *.
391 (compute_store_table): Strengthen local "tmp" from rtx to
392 rtx_insn *. Use methods of rtx_insn_list *.
393
394 2014-08-27 David Malcolm <dmalcolm@redhat.com>
395
396 * coretypes.h (class rtx_insn_list): Add forward declaration.
397 * rtl.h (class rtx_insn_list): New subclass of rtx_def
398 (is_a_helper <rtx_insn_list *>::test): New.
399 (rtx_insn_list::next): New.
400 (rtx_insn_list::insn): New.
401 (gen_rtx_INSN_LIST): Add prototype.
402 * emit-rtl.c (gen_rtx_INSN_LIST): New.
403 * gengenrtl.c (special_rtx): Add INSN_LIST.
404
405 2014-08-27 David Malcolm <dmalcolm@redhat.com>
406
407 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
408 "prev" from rtx to rtx_insn *.
409
410 2014-08-27 David Malcolm <dmalcolm@redhat.com>
411
412 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
413 functions. Require merely an rtx for now, not an rtx_insn *.
414 (BLOCK_FOR_INSN): Likewise.
415 (INSN_LOCATION): Likewise.
416 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
417
418 2014-08-27 David Malcolm <dmalcolm@redhat.com>
419
420 * rtl.h (PATTERN): Convert this macro into a pair of inline
421 functions, for now, requiring const_rtx and rtx.
422
423 2014-08-27 David Malcolm <dmalcolm@redhat.com>
424
425 * target.def (unwind_emit): Strengthen param "insn" from rtx to
426 rtx_insn *.
427 (final_postscan_insn): Likewise.
428 (adjust_cost): Likewise.
429 (adjust_priority): Likewise.
430 (variable_issue): Likewise.
431 (macro_fusion_pair_p): Likewise.
432 (dfa_post_cycle_insn): Likewise.
433 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
434 (first_cycle_multipass_issue): Likewise.
435 (dfa_new_cycle): Likewise.
436 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
437 (speculate_insn): Likewise for param "insn".
438 (gen_spec_check): Likewise for params "insn" and "label".
439 (get_insn_spec_ds): Likewise for param "insn".
440 (get_insn_checked_ds): Likewise.
441 (dispatch_do): Likewise.
442 (dispatch): Likewise.
443 (cannot_copy_insn_p): Likewise.
444 (invalid_within_doloop): Likewise.
445 (legitimate_combined_insn): Likewise.
446 (needed): Likewise.
447 (after): Likewise.
448
449 * doc/tm.texi: Automatically updated to reflect changes to
450 target.def.
451
452 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
453 working with insn.
454 (schedule_block): Likewise.
455 (sched_init): Likewise.
456 (sched_speculate_insn): Strengthen param "insn" from rtx to
457 rtx_insn *.
458 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
459 working with insn.
460 * hooks.c (hook_bool_rtx_true): Rename to...
461 hook_bool_rtx_insn_true): ...this, and strengthen first param from
462 rtx to rtx_insn *.
463 (hook_constcharptr_const_rtx_null): Rename to...
464 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
465 first param from const_rtx to const rtx_insn *.
466 (hook_bool_rtx_int_false): Rename to...
467 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
468 param from rtx to rtx_insn *.
469 (hook_void_rtx_int): Rename to...
470 (hook_void_rtx_insn_int): ...this, and strengthen first param from
471 rtx to rtx_insn *.
472
473 * hooks.h (hook_bool_rtx_true): Rename to...
474 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
475 rtx to rtx_insn *.
476 (hook_bool_rtx_int_false): Rename to...
477 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
478 param from rtx to rtx_insn *.
479 (hook_void_rtx_int): Rename to...
480 (hook_void_rtx_insn_int): ...this, and strengthen first param from
481 rtx to rtx_insn *.
482 (hook_constcharptr_const_rtx_null): Rename to...
483 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
484 first param from const_rtx to const rtx_insn *.
485
486 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
487 and local "prev" from rtx to rtx_insn *.
488
489 * sched-int.h (sched_speculate_insn): Strengthen first param from
490 rtx to rtx_insn *.
491
492 * sel-sched.c (create_speculation_check): Likewise for local "label".
493 * targhooks.c (default_invalid_within_doloop): Strengthen param
494 "insn" from const_rtx to const rtx_insn *.
495 * targhooks.h (default_invalid_within_doloop): Strengthen param
496 from const_rtx to const rtx_insn *.
497
498 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
499 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
500
501 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
502 "insn".
503 (arc_invalid_within_doloop): Likewise, with const.
504
505 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
506 (arm_cannot_copy_insn_p): Likewise for param "insn".
507 (arm_unwind_emit): Likewise.
508
509 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
510 "dep_insn".
511
512 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
513 (c6x_variable_issue): Likewise. Removed now-redundant checked
514 cast.
515 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
516
517 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
518 Likewise for param "insn".
519 (epiphany_mode_after): Likewise.
520 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
521 params "insn", "dep_insn".
522 (epiphany_mode_needed): Likewise for param "insn".
523 (epiphany_mode_after): Likewise.
524
525 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
526 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
527 (ix86_avx_u128_mode_needed): Likewise.
528 (ix86_i387_mode_needed): Likewise.
529 (ix86_mode_needed): Likewise.
530 (ix86_avx_u128_mode_after): Likewise.
531 (ix86_mode_after): Likewise.
532 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
533 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
534 (ix86_adjust_priority): Likewise for param "insn".
535 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
536 (do_dispatch): Likewise.
537 (has_dispatch): Likewise.
538 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
539
540 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
541 reflect renaming of default hook implementation from
542 hook_constcharptr_const_rtx_null to
543 hook_constcharptr_const_rtx_insn_null.
544 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
545 rtx to rtx_insn *.
546 (ia64_variable_issue): Likewise for param "insn".
547 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
548 (ia64_dfa_new_cycle): Likewise.
549 (ia64_get_insn_spec_ds): Likewise.
550 (ia64_get_insn_checked_ds): Likewise.
551 (ia64_speculate_insn): Likewise.
552 (ia64_gen_spec_check): Likewise for params "insn", "label".
553 (ia64_asm_unwind_emit): Likewise for param "insn".
554
555 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
556
557 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
558 "insn", "def_insn".
559 (m68k_sched_variable_issue): Likewise for param "insn".
560
561 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
562 "def_insn".
563
564 * config/microblaze/microblaze.c (microblaze_adjust_cost):
565 Likewise for params "insn", "dep".
566
567 * config/mips/mips.c (mips_adjust_cost): Likewise.
568 (mips_variable_issue): Likewise for param "insn".
569 (mips_final_postscan_insn): Likewise.
570
571 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
572 for params "insn", "dep".
573
574 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
575 "dep_insn".
576 (pa_adjust_priority): Likewise for param "insn".
577
578 * config/picochip/picochip.c (picochip_sched_adjust_cost):
579 Likewise for params "insn", "dep_insn".
580
581 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
582 param "insn".
583 (rs6000_variable_issue): Likewise.
584 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
585 (rs6000_debug_adjust_cost): Likewise.
586 (rs6000_adjust_priority): Likewise for param "insn".
587 (rs6000_use_sched_lookahead_guard): Likewise.
588 (get_next_active_insn): Likewise for return type and both params.
589 (redefine_groups): Likewise for params "prev_head_insn", "tail"
590 and locals "insn", "next_insn".
591 (pad_groups): Likewise.
592
593 * config/s390/s390.c (s390_adjust_priority): Likewise for param
594 "insn".
595 (s390_cannot_copy_insn_p): Likewise.
596 (s390_sched_variable_issue): Likewise for third param, eliminating
597 checked cast.
598 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
599 default hook implementation from hook_constcharptr_const_rtx_null
600 to hook_constcharptr_const_rtx_insn_null.
601
602 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
603 from rtx to rtx_insn *.
604 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
605 (sh_variable_issue): Likewise for param "insn".
606 (sh_dfa_new_cycle): Likewise.
607 (sh_mode_needed): Likewise.
608 (sh_mode_after): Likewise.
609
610 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
611 params "insn", "dep_insn".
612 (hypersparc_adjust_cost): Likewise.
613 (sparc_adjust_cost): Likewise.
614
615 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
616 param, eliminated checked cast.
617 (spu_sched_adjust_cost): Likewise for first and third params.
618
619 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
620 params "insn" and "dep_insn" from rtx to rtx_insn *.
621
622 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
623
624 2014-08-27 David Malcolm <dmalcolm@redhat.com>
625
626 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
627 (set_is_load_p): ...this, updating to work on a SET pattern rather
628 than an insn.
629 (is_store_insn): Rename to...
630 (set_is_store_p): ...this, updating to work on a SET pattern
631 rather than an insn.
632 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
633 top of function to where it is needed. Rewrite the bogus
634 condition that checks for "insn" and "dep" being PARALLEL to
635 instead use single_set, introducing locals "insn_set" and
636 "dep_set". Given that we only ever returned "cost" for a non-pair
637 of SETs, bail out early if we don't have a pair of SET.
638 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
639 use the new locals "insn_set" and "dep_set", and update calls to
640 is_load_insn and is_store_insn to be calls to set_is_load_p and
641 set_is_store_p.
642
643 2014-08-27 Guozhi Wei <carrot@google.com>
644
645 PR target/62262
646 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
647 amount before using it.
648
649 2014-08-27 Richard Biener <rguenther@suse.de>
650
651 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
652 get_maxval_strlen inside a more useful API.
653 (gimple_fold_builtin_with_strlen): Remove and fold into ...
654 (gimple_fold_builtin): ... caller.
655 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
656 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
657 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
658 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
659 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
660 gimple_fold_builtin_sprintf): Adjust to compute maxval
661 themselves.
662
663 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
664
665 PR other/62248
666 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
667
668 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
669 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
670 Anna Tikhonova <anna.tikhonova@intel.com>
671 Ilya Tocar <ilya.tocar@intel.com>
672 Andrey Turetskiy <andrey.turetskiy@intel.com>
673 Ilya Verbin <ilya.verbin@intel.com>
674 Kirill Yukhin <kirill.yukhin@intel.com>
675 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
676
677 * config/i386/sse.md
678 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
679 Use `concat_tg_mode' attribute to determine asm register size.
680
681 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
682 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
683 Anna Tikhonova <anna.tikhonova@intel.com>
684 Ilya Tocar <ilya.tocar@intel.com>
685 Andrey Turetskiy <andrey.turetskiy@intel.com>
686 Ilya Verbin <ilya.verbin@intel.com>
687 Kirill Yukhin <kirill.yukhin@intel.com>
688 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
689
690 * config/i386/sse.md
691 (define_mode_iterator VI48_AVX512VL): New.
692 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
693 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
694 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
695 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
696 with VI1): Change mode iterator.
697 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
698 with VI_ULOADSTORE_BW_AVX512VL): New.
699 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
700 with VI_ULOADSTORE_F_AVX512VL): Ditto.
701 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
702 with VI1): Change mode iterator.
703 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
704 with VI_ULOADSTORE_BW_AVX512VL): New.
705 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
706 with VI_ULOADSTORE_F_AVX512VL): Ditto.
707 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
708 with VI1): Change mode iterator.
709 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
710 with VI_ULOADSTORE_BW_AVX512VL): New.
711 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
712 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
713 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
714 (define_insn "<avx512>_storedqu<mode>_mask" with
715 VI48_AVX512VL): New.
716 (define_insn "<avx512>_storedqu<mode>_mask" with
717 VI12_AVX512VL): Ditto.
718
719 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
720 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
721 Anna Tikhonova <anna.tikhonova@intel.com>
722 Ilya Tocar <ilya.tocar@intel.com>
723 Andrey Turetskiy <andrey.turetskiy@intel.com>
724 Ilya Verbin <ilya.verbin@intel.com>
725 Kirill Yukhin <kirill.yukhin@intel.com>
726 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
727
728 * config/i386/sse.md
729 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
730 (define_mode_iterator VI48_AVX512BW): New.
731 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
732 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
733 with VI48_AVX2_48_AVX512F): New.
734 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
735 with VI2_AVX512VL): Ditto.
736
737 2014-08-27 Richard Biener <rguenther@suse.de>
738
739 PR middle-end/62239
740 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
741 (fold_builtin_3): Do not fold strcat_chk here.
742 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
743 from builtins.c.
744 (gimple_fold_builtin): Fold strcat_chk here.
745
746 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
747
748 * dwarf2out.h (dwarf2out_decl): Remove prototype.
749 * dwarf2out.c (dwarf2out_decl): Make static.
750
751 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
752
753 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
754
755 2014-08-26 David Malcolm <dmalcolm@redhat.com>
756
757 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
758 from rtx to rtx_insn *.
759 (cselib_lookup_from_insn): Likewise for final param.
760 (cselib_subst_to_values_from_insn): Likewise.
761 (cselib_add_permanent_equiv): Likewise.
762
763 * cselib.c (cselib_current_insn): Likewise for this variable.
764 (cselib_subst_to_values_from_insn): Likewise for param "insn".
765 (cselib_lookup_from_insn): Likewise.
766 (cselib_add_permanent_equiv): Likewise for param "insn" and local
767 "save_cselib_current_insn".
768 (cselib_process_insn): Replace use of NULL_RTX with NULL.
769
770 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
771 from rtx to rtx_insn *.
772
773 2014-08-26 David Malcolm <dmalcolm@redhat.com>
774
775 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
776 rtx_insn *.
777
778 2014-08-26 David Malcolm <dmalcolm@redhat.com>
779
780 * df.h (df_dump_insn_problem_function): Strengthen first param of
781 this callback from const_rtx to const rtx_insn *.
782 (struct df_insn_info): Strengthen field "insn" from rtx to
783 rtx_insn *.
784 (DF_REF_INSN): Eliminate this function, reinstating the older
785 macro definition.
786 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
787 (df_reg_defined): Likewise.
788 (df_find_use): Likewise.
789 (df_reg_used): Likewise.
790 (df_dump_insn_top): Strengthen param 1 from const_rtx to
791 const rtx_insn *.
792 (df_dump_insn_bottom): Likewise.
793 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
794 (df_insn_debug_regno): Likewise.
795 (debug_df_insn): Likewise.
796 (df_rd_simulate_one_insn): Likewise for param 2.
797 (df_word_lr_simulate_defs): Likewise for param 1.
798 (df_word_lr_simulate_uses): Likewise.
799 (df_md_simulate_one_insn): Likewise for param 2.
800 (df_simulate_find_noclobber_defs): Likewise for param 1.
801 (df_simulate_find_defs): Likewise.
802 (df_simulate_defs): Likewise.
803 (df_simulate_uses): Likewise.
804 (df_simulate_one_insn_backwards): Likewise for param 2.
805 (df_simulate_one_insn_forwards): Likewise.
806 (df_uses_create): Likewise for param 2.
807 (df_insn_create_insn_record): Likewise for param 1.
808 (df_insn_delete): Likewise.
809 (df_insn_rescan): Likewise.
810 (df_insn_rescan_debug_internal): Likewise.
811 (df_insn_change_bb): Likewise.
812 (df_notes_rescan): Likewise.
813 * rtl.h (remove_death): Likewise for param 2.
814 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
815 const rtx_insn *.
816 * sched-int.h (reemit_notes): Strengthen param from rtx to
817 rtx_insn *.
818 * valtrack.h (propagate_for_debug): Likewise for param 1.
819
820 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
821 local "tmp_rtx" from const_rtx to const rtx_insn *.
822 * combine.c (remove_death): Strengthen param "insn" from rtx to
823 rtx_insn *.
824 (move_deaths): Likewise for local "where_dead".
825 * cse.c (delete_trivially_dead_insns): Introduce local
826 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
827 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
828 rtx_insn *.
829 (df_reg_defined): Likewise.
830 (df_find_use): Likewise.
831 (df_reg_used): Likewise.
832 (df_dump_insn_problem_data): Strengthen param "insn" from
833 const_rtx to const rtx_insn *.
834 (df_dump_insn_top): Likewise.
835 (df_dump_insn_bottom): Likewise.
836 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
837 (df_insn_debug_regno): Likewise.
838 (debug_df_insn): Likewise.
839 (DF_REF_INSN): Delete.
840 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
841 from rtx to rtx_insn *.
842 (df_chain_insn_top_dump): Strengthen param "insn" from
843 const_rtx to const rtx_insn *.
844 (df_chain_insn_bottom_dump): Likewise.
845 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
846 rtx_insn *.
847 (df_word_lr_simulate_uses): Likewise.
848 (df_print_note): Likewise.
849 (df_remove_dead_and_unused_notes): Likewise.
850 (df_set_unused_notes_for_mw): Likewise.
851 (df_set_dead_notes_for_mw): Likewise.
852 (df_create_unused_note): Likewise.
853 (df_simulate_find_defs): Likewise.
854 (df_simulate_find_uses): Likewise.
855 (df_simulate_find_noclobber_defs): Likewise.
856 (df_simulate_defs): Likewise.
857 (df_simulate_uses): Likewise.
858 (df_simulate_one_insn_backwards): Likewise.
859 (df_simulate_one_insn_forwards): Likewise.
860 (df_md_simulate_one_insn): Likewise.
861 * df-scan.c (df_uses_create): Likewise.
862 (df_insn_create_insn_record): Likewise.
863 (df_insn_delete): Likewise.
864 (df_insn_rescan): Likewise.
865 (df_insn_rescan_debug_internal): Likewise.
866 (df_insn_change_bb): Likewise.
867 (df_notes_rescan): Likewise.
868 (df_refs_add_to_chains): Likewise.
869 (df_insn_refs_verify): Likewise.
870 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
871 when invoking df_insn_delete.
872 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
873 (set_unique_reg_note): Add checked cast.
874 * final.c (cleanup_subreg_operands): Likewise.
875 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
876 "insn" from rtx to rtx_insn *.
877 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
878 "last" from rtx to rtx_insn *.
879 * ira-emit.c (change_regs_in_insn): New function.
880 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
881 Invoke change_regs_in_insn rather than change_regs.
882 * ira.c (update_equiv_regs): Strengthen locals "insn",
883 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
884 for_each_rtx_in_insn rather than for_each_rtx.
885 * recog.c (confirm_change_group): Add checked casts.
886 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
887 Add checked cast.
888 (peep2_fill_buffer): Add checked cast.
889 * rtlanal.c (remove_note): Likewise.
890 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
891 locals "next" "end" from rtx to rtx_insn *.
892
893 2014-08-26 David Malcolm <dmalcolm@redhat.com>
894
895 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
896 to rtx_insn *.
897 (struct reg_use_data): Likewise for field "insn".
898 (insn_cost): Likewise for param.
899 (real_insn_for_shadow): Likewise for return type and param.
900 (increase_insn_priority): Likewise for param 1.
901 (debug_dependencies): Likewise for both params.
902
903 * haifa-sched.c (insn_delay): Likewise for param "insn".
904 (real_insn_for_shadow): Likewise for return type and param "insn".
905 (update_insn_after_change): Likewise for param "insn".
906 (recompute_todo_spec): Likewise for param "next" and locals "pro",
907 "other".
908 (insn_cost): Likewise for param "insn".
909 (increase_insn_priority): Likewise.
910 (calculate_reg_deaths): Likewise.
911 (setup_insn_reg_pressure_info): Likewise.
912 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
913 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
914 (model_recompute): Likewise.
915 (must_restore_pattern_p): Likewise for param "next".
916 (model_excess_cost): Likewise for param "insn".
917 (queue_remove): Likewise.
918 (adjust_priority): Likewise for param "prev".
919 (update_register_pressure): Likewise for param "insn".
920 (setup_insn_max_reg_pressure): Likewise for local "insn".
921 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
922 (model_add_to_schedule): Likewise.
923 (model_reset_queue_indices): Likewise for local "insn".
924 (unschedule_insns_until): Strengthen local "recompute_vec" from
925 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
926 "con" from rtx to rtx_insn *.
927 (restore_last_backtrack_point): Likewise for both locals "x". Add
928 checked casts.
929 (estimate_insn_tick): Likewise for param "insn".
930 (commit_schedule): Likewise for params "prev_head", "tail" and
931 local "x".
932 (verify_shadows): Likewise for locals "i1", "i2".
933 (dump_insn_stream): Likewise for params "head", "tail" and locals
934 "next_tail", "insn".
935 (schedule_block): Likewise for locals "insn", "x". Add a checked
936 cast.
937 (fix_inter_tick): Likewise for params "head", "tail".
938 (create_check_block_twin): Likewise for local "jump".
939 (haifa_change_pattern): Likewise for param "insn".
940 (haifa_speculate_insn): Likewise.
941 (dump_new_block_header): Likewise for params "head", "tail".
942 (fix_jump_move): Likewise for param "jump".
943 (move_block_after_check): Likewise.
944 (sched_init_insn_luid): Likewise for param "insn".
945 (sched_init_luids): Likewise for local "insn".
946 (insn_luid): Likewise for param "insn".
947 (init_h_i_d): Likewise.
948 (haifa_init_h_i_d): Likewise for local "insn".
949 (haifa_init_insn): Likewise for param "insn".
950 * sched-deps.c (add_dependence): Likewise for local "real_pro",
951 "other".
952 (create_insn_reg_use): Likewise for param "insn".
953 (setup_insn_reg_uses): Likewise. Add a checked cast.
954 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
955 "tail" from rtx to rtx_insn *.
956 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
957 "insn", "next_tail".
958
959 2014-08-26 David Malcolm <dmalcolm@redhat.com>
960
961 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
962 from rtx to rtx_insn *.
963 (model_add_to_schedule): Likewise for locals "start", "end",
964 "iter".
965
966 2014-08-26 David Malcolm <dmalcolm@redhat.com>
967
968 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
969 rtx_insn *.
970 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
971 "to" and locals "insn", "next", "copy". Remove now-redundant
972 checked cast.
973
974 2014-08-26 David Malcolm <dmalcolm@redhat.com>
975
976 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
977 rtx_insn * and param 4 from rtx * to rtx_insn **.
978 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
979 param 2 from rtx * to rtx_insn **.
980
981 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
982 rtx_insn * and final param from rtx * to rtx_insn **.
983
984 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
985 from rtx to rtx_insn *.
986 (try_head_merge_bb): Likewise for both locals named "move_upto".
987 * df-problems.c (can_move_insns_across): Likewise for params
988 "from", "to", "across_from", "across_to" and locals "insn",
989 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
990 rtx_insn **.
991 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
992 from rtx to rtx_insn *.
993 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
994 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
995 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
996 rtx_insn *.
997 (noce_try_abs): Likewise.
998 (noce_get_condition): Likewise for param "jump". Strengthen param
999 "earliest" from rtx * to rtx_insn **.
1000 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1001 rtx_insn *.
1002 (find_cond_trap): Likewise.
1003 (dead_or_predicable): Likewise for local "earliest".
1004 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1005 checked cast.
1006 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1007 and local "prev". Strengthen param "earliest" from rtx * to
1008 rtx_insn **.
1009 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1010 Strengthen param "earliest" from rtx * to rtx_insn **.
1011
1012 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1013
1014 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1015 "to" and local "insn" from rtx to rtx_insn *.
1016
1017 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1018
1019 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1020 from rtx to rtx_insn *.
1021 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1022 (code_motion_path_driver): Likewise for local "last_insn".
1023 (simplify_changed_insns): Likewise for local "insn".
1024
1025 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1026
1027 * rtl.h (push_to_sequence): Strengthen param from rtx to
1028 rtx_insn *.
1029 (push_to_sequence2): Likewise for both params.
1030 (delete_insns_since): Likewise for param.
1031 (reorder_insns_nobb): Likewise for all three params.
1032 (set_new_first_and_last_insn): Likewise for both params.
1033
1034 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1035 rtx_insn *. Remove now-redundant cast.
1036 (set_last_insn): Likewise.
1037
1038 * builtins.c (expand_builtin_return): Strengthen local
1039 "call_fusage" from rtx to rtx_insn *.
1040 * cfgrtl.c (create_basic_block_structure): Likewise for local
1041 "after".
1042 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1043 "first", "last" and local "insn".
1044 (delete_insns_since): Likewise for param "from".
1045 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1046 and local "x".
1047 (push_to_sequence): Likewise for param "first" and local "last".
1048 (push_to_sequence2): Likewise for params "first" and "last".
1049 * lra.c (emit_add3_insn): Likewise for local "last".
1050 (lra_emit_add): Likewise.
1051 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1052 "last_insn".
1053 (process_address_1): Likewise for locals "insn", last".
1054 * modulo-sched.c (ps_first_note): Likewise for return type.
1055 * optabs.c (expand_binop_directly): Likewise for param "last".
1056
1057 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1058
1059 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1060 to rtx_insn*.
1061 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1062
1063 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1064
1065 * function.h (struct sequence_stack): Strengthen fields "first"
1066 and "last" from rtx to rtx_insn *.
1067 (struct emit_status): Likewise for fields "x_first_insn" and
1068 "x_last_insn".
1069
1070 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1071 (set_first_insn): Add checked cast.
1072 (get_last_insn): Remove now-redundant checked cast.
1073 (set_last_insn): Add checked cast.
1074
1075 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1076 "saved_first" and "saved_last" from rtx to rtx_insn *.
1077
1078 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1079
1080 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1081 (unlink_insn_chain): Strengthen both params from rtx to
1082 rtx_insn *.
1083
1084 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1085 variable.
1086 (unlink_insn_chain): Likewise for params "first" and "last".
1087 Remove now-redundant checked cast.
1088 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1089 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1090 rtx_insn *.
1091 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1092 params.
1093 (add_insn): Likewise for param "insn" and local "prev".
1094 (add_insn_after_nobb): Likewise for both params and local "next".
1095 (add_insn_before_nobb): Likewise for both params and local "prev".
1096 (add_insn_after): Rename param "after" to "uncast_after",
1097 introducing local "after" with another checked cast.
1098 (add_insn_before): Rename params "insn" and "before", giving them
1099 "uncast_" prefixes, adding the old names back using checked casts.
1100 (emit_note_after): Likewise for param "after".
1101 (emit_note_before): Likewise for param "before".
1102 (emit_label): Add a checked cast.
1103
1104 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1105
1106 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1107 "insn" from rtx to rtx_insn *.
1108
1109 * cselib.c (cselib_record_sets_hook): Likewise.
1110
1111 * var-tracking.c (add_with_sets): Likewise, renaming back from
1112 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1113 to rtx_insn *.
1114
1115 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1116
1117 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1118 and "header_" from rtx to rtx_insn *.
1119 (struct basic_block_d): Likewise for field "head_" within "x"
1120 field of union basic_block_il_dependent.
1121 (BB_HEAD): Drop function...
1122 (SET_BB_HEAD): ...and this function in favor of...
1123 (BB_HEAD): ...reinstate macro.
1124 (BB_END): Drop function...
1125 (SET_BB_END): ...and this function in favor of...
1126 (BB_END): ...reinstate macro.
1127 (BB_HEADER): Drop function...
1128 (SET_BB_HEADER): ...and this function in favor of...
1129 (BB_HEADER): ...reinstate macro.
1130
1131 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1132 (fix_crossing_unconditional_branches): Likewise.
1133 * caller-save.c (save_call_clobbered_regs): Likewise.
1134 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1135 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1136 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1137 (merge_blocks_move_successor_nojumps): Likewise.
1138 (outgoing_edges_match): Update use of for_each_rtx to
1139 for_each_rtx_in_insn.
1140 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1141 (expand_gimple_cond): Likewise.
1142 (expand_gimple_tailcall): Likewise.
1143 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1144 SET_BB_END.
1145 (construct_exit_block): Drop use of SET_BB_END.
1146 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1147 rtx_insn *.
1148 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1149 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1150 SET_BB_HEAD and SET_BB_END.
1151 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1152 SET_BB_END.
1153 (rtl_delete_block): Drop use of SET_BB_HEAD.
1154 (rtl_split_block): Drop use of SET_BB_END.
1155 (emit_nop_for_unique_locus_between): Likewise.
1156 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1157 (block_label): Drop use of SET_BB_HEAD.
1158 (fixup_abnormal_edges): Drop use of SET_BB_END.
1159 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1160 (relink_block_chain): Likewise.
1161 (fixup_reorder_chain): Drop use of SET_BB_END.
1162 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1163 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1164 rtx_insn **. Drop use of SET_BB_HEADER.
1165 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1166 SET_BB_HEAD.
1167 (BB_HEAD): Delete this function.
1168 (SET_BB_HEAD): Likewise.
1169 (BB_END): Likewise.
1170 (SET_BB_END): Likewise.
1171 (BB_HEADER): Likewise.
1172 (SET_BB_HEADER): Likewise.
1173 * emit-rtl.c (add_insn_after): Rename param "insn" to
1174 "uncast_insn", adding a new local "insn" and a checked cast to
1175 rtx_insn *. Drop use of SET_BB_END.
1176 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1177 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1178 (reorder_insns): Drop use of SET_BB_END.
1179 (emit_insn_after_1): Strengthen param "first" and locals "last",
1180 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1181 (emit_pattern_after_noloc): Add checked cast.
1182 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1183 (restore_other_notes): Likewise.
1184 (move_insn): Likewise.
1185 (sched_extend_bb): Likewise.
1186 (fix_jump_move): Likewise.
1187 * ifcvt.c (noce_process_if_block): Likewise.
1188 (dead_or_predicable): Likewise.
1189 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1190 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1191 * sel-sched-ir.c (sel_move_insn): Likewise.
1192 * sel-sched.c (move_nop_to_previous_block): Likewise.
1193
1194 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1195 SET_BB_END.
1196 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1197
1198 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1199
1200 * basic-block.h (create_basic_block_structure): Strengthen params
1201 1 "head" and 2 "end" from rtx to rtx_insn *.
1202 * cfgrtl.c (create_basic_block_structure): Likewise.
1203 (rtl_create_basic_block): Update casts from void * to rtx to
1204 rtx_insn *, so that we can pass them as rtx_insn * to
1205 create_basic_block_structure.
1206 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1207
1208 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1209
1210 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1211 rtx_insn **.
1212 (check_for_inc_dec): Strengthen param "insn" from rtx to
1213 rtx_insn *.
1214
1215 * cselib.h (cselib_process_insn): Likewise.
1216
1217 * cselib.c (cselib_record_sets): Likewise.
1218 (cselib_process_insn): Likewise.
1219
1220 * dse.c (struct insn_info): Likewise for field "insn".
1221 (check_for_inc_dec_1): Likewise for local "insn".
1222 (check_for_inc_dec): Likewise for param "insn".
1223 (scan_insn): Likewise.
1224 (dse_step1): Likewise for local "insn".
1225
1226 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1227 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1228
1229 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1230
1231 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1232 from rtx to rtx_insn *.
1233 (DEP_PRO): Delete this function and...
1234 (SET_DEP_PRO): ...this function in favor of...
1235 (DEP_PRO): ...reinstate this macro.
1236 (DEP_CON): Delete this function and...
1237 (SET_DEP_CON): ...this function in favor of...
1238 (DEP_CON): ...reinstate this old macro.
1239 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1240 (init_dep): Likewise.
1241 (set_priorities): Likewise for both params.
1242 (sd_copy_back_deps): Likewise for params 1 and 2.
1243
1244 * haifa-sched.c (priority): Likewise for param "insn" and local
1245 "next".
1246 (set_priorities): Likewise for params "head" and "tail" and local
1247 "insn".
1248 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1249 local "consumer".
1250 (add_to_speculative_block): Add a checked cast.
1251 (create_check_block_twin): Drop use of SET_DEP_CON.
1252 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1253 rtx to rtx_insn *.
1254
1255 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1256 Drop use of SET_DEP_PRO
1257 (init_dep): Strengthen params "pro" and "con" from rtx to
1258 rtx_insn *.
1259 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1260 use of SET_DEP_CON.
1261 (DEP_PRO): Delete.
1262 (DEP_CON): Delete.
1263 (SET_DEP_PRO): Delete.
1264 (SET_DEP_CON): Delete.
1265
1266 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1267
1268 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1269 from rtx to rtx_insn *.
1270 (VINSN_INSN_RTX): Eliminate rvalue function and...
1271 (SET_VINSN_INSN): ...lvalue function in favor of...
1272 (VINSN_INSN_RTX): reinstate this old macro.
1273
1274 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1275 in favor of VINSN_INSN_RTX.
1276 (VINSN_INSN_RTX): Delete this function.
1277 (SET_VINSN_INSN_RTX): Likewise.
1278
1279 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1280
1281 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1282 (BND_TO): Delete this function and...
1283 (SET_BND_TO): ...this functions in favor of...
1284 (BND_TO): ...reinstating this macro.
1285 (struct _fence): Strengthen field "executing_insns" from
1286 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1287 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1288 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1289 and param "insn" from rtx to insn_t.
1290 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1291 rtx_insn *.
1292
1293 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1294 vec<rtx_insn *> .
1295 (rtx_vec_t): Likewise.
1296 (struct sched_deps_info_def): Strengthen param of "start_insn"
1297 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1298 "note_mem_dep" callback and first param of "note_dep" callback.
1299
1300 * haifa-sched.c (add_to_speculative_block): Strengthen param
1301 "insn" from rtx to rtx_insn *.
1302 (clear_priorities): Likewise.
1303 (calc_priorities): Likewise for local "insn".
1304
1305 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1306 Remove redundant checked cast.
1307 (haifa_note_mem_dep): Likewise for param "pending_insn".
1308 (haifa_note_dep): Likewise for param "elem".
1309 (note_mem_dep): Likewise for param "e".
1310 (sched_analyze_1): Add checked casts.
1311 (sched_analyze_2): Likewise.
1312
1313 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1314 from rtx to rtx_insn *.
1315 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1316 from vec<rtx> * to vec<rtx_insn *> *.
1317
1318 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1319 scaffolding.
1320 (flist_add): Strengthen param "executing_insns" from
1321 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1322 (advance_deps_context): Remove now-redundant checked cast.
1323 (init_fences): Replace uses of NULL_RTX with NULL.
1324 (merge_fences): Strengthen params "last_scheduled_insn" and
1325 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1326 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1327 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1328 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1329 an instruction, rather than doing double-duty as a pattern.
1330 (return_nop_to_pool): Update for change of insn_t.
1331 (deps_init_id): Remove now-redundant checked cast.
1332 (struct sched_scan_info_def): Strengthen param of "init_insn"
1333 callback from rtx to insn_t.
1334 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1335 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1336 NULL.
1337 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1338 "end" from rtx to rtx_insn *.
1339 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1340 (rtx insn_rtx, bool force_unique_p)
1341 (BND_TO): Delete function.
1342 (SET_BND_TO): Delete function.
1343
1344 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1345 rtx to rtx_insn *.
1346 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1347 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1348 rtx to rtx_insn *.
1349 (undo_transformations): Likewise for param "insn".
1350 (update_liveness_on_insn): Likewise.
1351 (compute_live_below_insn): Likewise for param "insn" and local
1352 "succ".
1353 (update_data_sets): Likewise for param "insn".
1354 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1355 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1356 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1357 rtx_insn *.
1358 (move_cond_jump): Likewise for param "insn".
1359 (move_cond_jump): Drop use of SET_BND_TO.
1360 (compute_av_set_on_boundaries): Likewise.
1361 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1362 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1363 from rtx to rtx_insn *.
1364 (maybe_emit_renaming_copy): Likewise for param "insn".
1365 (maybe_emit_speculative_check): Likewise.
1366 (handle_emitting_transformations): Likewise.
1367 (remove_insn_from_stream): Likewise.
1368 (code_motion_process_successors): Strengthen local "succ" from rtx
1369 to insn_t.
1370
1371 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1372
1373 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1374 ilist_t, not _xlist_t;
1375 (ILIST_INSN): Define in terms of new union field "insn".
1376 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1377 _XLIST_NEXT.
1378 (struct _list_node): Add new field "insn" to the union, of type
1379 insn_t.
1380 (ilist_add): Replace macro with an inline function, requiring an
1381 insn_t.
1382 (ilist_remove): Define this macro directly in terms of
1383 _list_remove, rather than indirectly via _xlist_remove.
1384 (ilist_clear): Likewise, in terms of _list_clear rather than
1385 _xlist_clear.
1386 (ilist_is_in_p): Replace macro with an inline function, requiring
1387 an insn_t.
1388 (_list_iter_cond_insn): New function.
1389 (ilist_iter_remove): Define this macro directly in terms of
1390 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1391 (ilist_iterator): Define directly in terms of _list_iterator
1392 rather than indirectly through _xlist_iterator.
1393 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1394 than in terms of _FOR_EACH_X.
1395 (FOR_EACH_INSN_1): Likewise.
1396
1397 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1398
1399 PR target/60606
1400 PR target/61330
1401 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1402 DECL_HARD_REGISTER and return for invalid register specifications.
1403 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1404 DECL_HARD_REGISTER, call expand_one_error_var.
1405 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1406 CC_REGNUM with non-MODE_CC modes.
1407 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1408
1409 2014-08-26 Marek Polacek <polacek@redhat.com>
1410
1411 PR c/61271
1412 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1413
1414 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1415
1416 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1417 qi cost; add di cost.
1418 (cortexa57_addrcost_table): Likewise.
1419
1420 2014-08-26 Marek Polacek <polacek@redhat.com>
1421
1422 PR c/61271
1423 * expr.c (is_aligning_offset): Remove logical not.
1424
1425 2014-08-26 Marek Polacek <polacek@redhat.com>
1426
1427 PR c/61271
1428 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1429 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1430
1431 2014-08-26 Richard Biener <rguenther@suse.de>
1432
1433 PR tree-optimization/62175
1434 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1435 expand possibly trapping operations.
1436
1437 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1438
1439 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1440 "insn" from rtx to rtx_insn *.
1441 (permute_load): Likewise for param "insn".
1442 (permute_store): Likewise.
1443 (handle_special_swappables): Likewise for local "insn".
1444 (replace_swap_with_copy): Likewise for locals "insn" and
1445 "new_insn".
1446 (rs6000_analyze_swaps): Likewise for local "insn".
1447
1448 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1449
1450 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1451 to rtx_insn *.
1452
1453 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1454
1455 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1456 "note_list" from rtx to rtx_insn *.
1457 (BB_NOTE_LIST): Replace this function and...
1458 (SET_BB_NOTE_LIST): ...this function with...
1459 (BB_NOTE_LIST): ...the former macro implementation.
1460
1461 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1462 local "from_start" from rtx to rtx_insn *. Strengthen param
1463 "to_endp" from rtx * to rtx_insn **.
1464
1465 * haifa-sched.c (concat_note_lists): Likewise.
1466 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1467 BB_NOTE_LIST.
1468 (sel_restore_notes): Likewise.
1469 (move_bb_info): Likewise.
1470 (BB_NOTE_LIST): Delete this function.
1471 (SET_BB_NOTE_LIST): Delete this function.
1472 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1473 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1474
1475 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1476
1477 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1478 from rtx * to rtx_insn **.
1479 (reorder2): Likewise.
1480 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1481 from rtx to rtx_insn *.
1482
1483 * doc/tm.texi: Update mechanically for above change to target.def.
1484
1485 * sched-int.h (note_list): Strengthen this variable from rtx to
1486 rtx_insn *.
1487 (remove_notes): Likewise for both params.
1488 (restore_other_notes): Likewise for return type and first param.
1489 (struct ready_list): Strengthen field "vec" from rtx * to
1490 rtx_insn **.
1491 (struct dep_replacement): Strenghten field "insn" from rtx to
1492 rtx_insn *.
1493 (struct deps_desc): Likewise for fields "last_debug_insn",
1494 "last_args_size".
1495 (struct haifa_sched_info): Likewise for callback field
1496 "can_schedule_ready_p"'s param, for first param of "new_ready"
1497 callback field, for both params of "rank" callback field, for
1498 first field of "print_insn" callback field (with a const), for
1499 both params of "contributes_to_priority" callback, for param
1500 of "insn_finishes_block_p" callback, for fields "prev_head",
1501 "next_tail", "head", "tail", for first param of "add_remove_insn"
1502 callback, for first param of "begin_schedule_ready" callback, for
1503 both params of "begin_move_insn" callback, and for second param
1504 of "advance_target_bb" callback.
1505 (add_dependence): Likewise for params 1 and 2.
1506 (sched_analyze): Likewise for params 2 and 3.
1507 (deps_analyze_insn): Likewise for param 2.
1508 (ready_element): Likewise for return type.
1509 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1510 (try_ready): Strenghten param from rtx to rtx_insn *.
1511 (sched_emit_insn): Likewise for return type.
1512 (record_delay_slot_pair): Likewise for params 1 and 2.
1513 (add_delay_dependencies): Likewise for param.
1514 (contributes_to_priority): Likewise for both params.
1515 (find_modifiable_mems): Likewise.
1516
1517 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1518 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1519 "first_older_only_insn" from rtx to rtx_insn *.
1520 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1521 rtx_insn **.
1522
1523 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1524 "last_scheduled_iter0" from rtx to rtx_insn *.
1525 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1526 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1527 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1528 "insn" from rtx to rtx_insn *.
1529 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1530 rtx_insn **.
1531 (c6x_sched_reorder2): Strengthen param "ready" and locals
1532 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1533 "insn" from rtx to rtx_insn *.
1534 (c6x_variable_issue): Add a checked cast when assigning from insn
1535 to ss.last_scheduled_iter0.
1536 (split_delayed_branch): Strengthen param "insn" and local "i1"
1537 from rtx to rtx_insn *.
1538 (split_delayed_nonbranch): Likewise.
1539 (undo_split_delayed_nonbranch): Likewise for local "insn".
1540 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1541 "entry_after", "end_packet", "head_insn", "tail_insn",
1542 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1543 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1544 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1545 but add a checked cast on loop->start_label. Consolidate calls to
1546 avoid assigning result of gen_spkernel to "insn", now an
1547 rtx_insn *.
1548
1549 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1550 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1551 rtx to rtx_insn *.
1552 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1553 rtx_insn **. Strengthen locals "top", "next" from rtx to
1554 rtx_insn *.
1555 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1556 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1557 (add_parameter_dependencies): Strengthen params "call", "head" and
1558 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1559 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1560 (add_dependee_for_func_arg): Likewise for param "arg" and local
1561 "insn".
1562 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1563 "tail" and locals "insn", "first_arg".
1564
1565 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1566 for params "head", "tail" and locals "insn", "next", "next_tail".
1567 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1568 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1569 "insn", "lowest", "highest" from rtx to rtx_insn *.
1570 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1571 rtx_insn **.
1572 (ia64_sched_reorder2): Likewise.
1573
1574 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1575 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1576 from rtx * to rtx_insn **.
1577 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1578 rtx_insn **.
1579 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1580 rtx_insn *.
1581 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1582 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1583 to rtx_insn *.
1584
1585 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1586 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1587 to rtx_insn *.
1588 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1589 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1590 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1591 rtx_insn **.
1592 (vr4130_reorder): Likewise.
1593 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1594 rtx to rtx_insn *.
1595 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1596 rtx_insn **.
1597 (mips_sched_reorder): Likewise.
1598 (mips_sched_reorder2): Likewise.
1599
1600 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1601
1602 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1603 Strengthen local "tmp" from rtx to rtx_insn *.
1604 (rs6000_sched_reorder2): Likewise.
1605
1606 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1607 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1608 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1609 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1610
1611 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1612 "tmp2" from rtx to rtx_insn *.
1613 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1614 Strengthen local "insn" from rtx to rtx_insn *.
1615 (ready_reorder): Strengthen param "ready" from rtx * to
1616 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1617 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1618 (sh_reorder2): Likewise.
1619
1620 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1621 local "insn" from rtx to rtx_insn *.
1622
1623 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1624 rtx_insn *.
1625 (scheduled_insns): Strengthen this variable from vec<rtx> to
1626 vec<rtx_insn *>.
1627 (set_modulo_params): Likewise for locals "i1", "i2".
1628 (record_delay_slot_pair): Likewise for params "i1", "i2".
1629 (add_delay_dependencies): Likewise for param "insn".
1630 (cond_clobbered_p): Likewise.
1631 (recompute_todo_spec): Likewise for local "prev".
1632 (last_scheduled_insn): Likewise for this variable.
1633 (nonscheduled_insns_begin): Likewise.
1634 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1635 rtx_insn **.
1636 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1637 rtx_insn *.
1638 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1639 Strengthen local "insn" from rtx to rtx_insn *.
1640 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1641 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1642 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1643 (ready_remove_first): Likewise for return type and local "t".
1644 (ready_element): Likewise for return type.
1645 (ready_remove): Likewise for return type and local "t".
1646 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1647 (check_clobbered_conditions): Strengthen local "x" from rtx to
1648 rtx_insn *, adding a checked cast.
1649 (schedule_insn): Likewise for param "insn".
1650 (remove_notes): Likewise for params "head", "tail" and locals
1651 "next_tail", "insn", "next".
1652 (struct haifa_saved_data): Likewise for fields
1653 "last_scheduled_insn", "nonscheduled_insns_begin".
1654 (save_backtrack_point): Update for change to field "vec" of
1655 struct ready_list.
1656 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1657 rtx_insn **.
1658 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1659 from rtx to rtx_insn *
1660 (resolve_dependencies): Strengthen param "insn" from rtx to
1661 rtx_insn *
1662 (restore_other_notes): Likewise for return type, for param "head"
1663 and local "note_head".
1664 (undo_all_replacements): Likewise for local "insn".
1665 (first_nonscheduled_insn): Likewise for return type and local "insn".
1666 (queue_to_ready): Likewise for local "insn", adding checked casts.
1667 (early_queue_to_ready): Likewise for local "insn".
1668 (debug_ready_list_1): Strengthen local "p" from rtx * to
1669 rtx_insn **.
1670 (move_insn): Strengthen param "insn" and local "note" from rtx to
1671 rtx_insn *
1672 (insn_finishes_cycle_p): Likewise for param "insn".
1673 (max_issue): Likewise for local "insn".
1674 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1675 to rtx_insn **.
1676 (commit_schedule): Strengthen param "prev_head" and local "insn"
1677 from rtx to rtx_insn *
1678 (prune_ready_list): Likewise for local "insn".
1679 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1680 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1681 (set_priorities): Likewise for local "prev_head".
1682 (try_ready): Likewise for param "next".
1683 (fix_tick_ready): Likewise.
1684 (change_queue_index): Likewise.
1685 (sched_extend_ready_list): Update for change to field "vec" of
1686 struct ready_list.
1687 (generate_recovery_code): Strengthen param "insn" from rtx to
1688 rtx_insn *.
1689 (begin_speculative_block): Likewise.
1690 (create_check_block_twin): Likewise for param "insn" and locals
1691 "label", "check", "twin". Introduce local "check_pat" to avoid
1692 "check" being used as a plain rtx before being used as an insn.
1693 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1694 extracting elements from ready_list.
1695 (sched_remove_insn): Strengthen param "insn" from rtx to
1696 rtx_insn *.
1697 (sched_emit_insn): Likewise for return type.
1698 (ready_remove_first_dispatch): Likewise for return type and local
1699 "insn".
1700
1701 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1702
1703 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1704 const rtx_insn *.
1705
1706 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1707 from rtx to rtx_insn *.
1708 (add_dependence_list): Likewise for param "insn". Add a checked
1709 cast.
1710 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1711 to rtx_insn *. Strengthen param "list_p" from rtx * to
1712 rtx_insn **.
1713 (chain_to_prev_insn): Strengthen param "insn" and locals
1714 "prec_nonnote", "i" from rtx to rtx_insn *.
1715 (flush_pending_lists): Likewise for param "insn".
1716 (cur_insn): Likewise for this variable.
1717 (haifa_start_insn): Add a checked cast.
1718 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1719 (sched_analyze_reg): Likewise for param "insn".
1720 (sched_analyze_1): Likewise.
1721 (sched_analyze_2): Likewise. Add checked casts.
1722 (sched_analyze_insn): Likewise. Also for local "prev".
1723 (deps_analyze_insn): Likewise for param "insn".
1724 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1725 (add_dependence_1): Likewise for params "insn", "elem".
1726 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1727 (parse_add_or_inc): Likewise for param "insn".
1728 (find_inc): Likewise for local "inc_cand".
1729 (find_modifiable_mems): Likewise for params "head", "tail" and
1730 locals "insn", "next_tail".
1731
1732 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1733 (begin_schedule_ready): Likewise for param "insn".
1734 (begin_move_insn): Likewise for params "insn" and "last".
1735 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1736 const rtx_insn *.
1737 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1738 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1739 (ebb_add_remove_insn): Likewise for param "insn".
1740 (advance_target_bb): Likewise.
1741
1742 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1743 "insn".
1744 (check_live): Likewise for param "insn".
1745 (init_ready_list): Likewise for local "insn".
1746 (can_schedule_ready_p): Likewise for param "insn".
1747 (begin_schedule_ready): Likewise.
1748 (new_ready): Likewise for param "next".
1749 (rgn_print_insn): Likewise for param "insn".
1750 (rgn_rank): Likewise for params "insn1", "insn2".
1751 (contributes_to_priority): Likewise for params "next", "insn".
1752 (rgn_insn_finishes_block_p): Likewise for param "insn".
1753 (add_branch_dependences): Likewise for params "head", "tail" and
1754 locals "insn", "last".
1755 (rgn_add_remove_insn): Likewise for param "insn".
1756 (advance_target_bb): Likewise.
1757
1758 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1759 const_rtx to const rtx_insn *.
1760
1761 * sel-sched-dump.h (sel_print_insn): Likewise.
1762
1763 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1764 (deps_init_id): Likewise.
1765
1766 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1767 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1768 rtx_insn **.
1769
1770 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1771
1772 * output.h (final_start_function): Strengthen param 1 from rtx to
1773 rtx_insn *.
1774
1775 * final.c (final_start_function): Likewise, renaming back from
1776 "uncast_first" to "first", and dropping the checked cast from rtx
1777 to rtx_insn *.
1778
1779 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1780
1781 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1782 * final.c (final): Likewise. Rename param back from
1783 "uncast_first" to "first" and eliminate the checked cast from rtx
1784 to rtx_insn *.
1785
1786 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1787
1788 * output.h (shorten_branches): Strengthen param from rtx to
1789 rtx_insn *.
1790
1791 * final.c (shorten_branches): Likewise, renaming param back from
1792 "uncast_first" to "first", and dropping the checked cast from rtx
1793 to rtx_insn *.
1794
1795 * genattr.c (gen_attr): Likewise when writing out the prototype of
1796 shorten_branches.
1797
1798 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1799
1800 * sched-int.h (struct haifa_sched_info): Strengthen fields
1801 "prev_head" and "next_tail" from rtx to rtx_insn *.
1802
1803 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1804
1805 * rtl.h (rtx_jump_table_data::get_labels): New method.
1806 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1807 with use of the new rtx_jump_table_data::get_labels method.
1808 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1809 to rtx_jump_table_data *. Simplify by using get_labels method.
1810 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1811 a dyn_cast, introducing local "table", using it to replace
1812 label-lookup logic with a get_labels method call.
1813 (patch_jump_insn): Simplify using get_labels method.
1814 * dwarf2cfi.c (create_trace_edges): Likewise.
1815 * rtlanal.c (label_is_jump_target_p): Likewise.
1816
1817 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1818
1819 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1820 to rtx_insn *.
1821
1822 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1823 (unshare_all_rtl_again): Likewise, also for local "p".
1824
1825 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1826
1827 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1828 to rtx_insn *.
1829 * cfgrtl.c (delete_insn_and_edges): Likewise.
1830
1831 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1832
1833 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1834 from rtx to rtx_insn *.
1835
1836 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1837
1838 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1839
1840 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1841 locals "returnjump", "epilogue_end", "insn", "next".
1842
1843 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1844 "returnjump" from rtx * to rtx_insn **.
1845 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1846
1847 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1848
1849 * basic-block.h (struct edge_def). Strengthen "r" within
1850 union edge_def_insns from rtx to rtx_insn *.
1851
1852 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1853 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1854 rtx_insn *.
1855 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1856 from rtx to rtx_insn *.
1857 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1858 rtx_insn *.
1859 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1860 (reg_used_on_edge): Likewise.
1861 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1862 (gt_pch_nx): New overload for rtx_insn *&.
1863 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1864 from rtx to rtx_insn *.
1865
1866 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1867
1868 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1869 from rtx to rtx_insn *.
1870 (BB_FOOTER): Replace function with access macro.
1871 (SET_BB_FOOTER): Delete.
1872
1873 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1874 with BB_FOOTER.
1875 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1876 (emit_barrier_after_bb): Likewise.
1877 (record_effective_endpoints): Likewise.
1878 (relink_block_chain): Likewise.
1879 (fixup_fallthru_exit_predecessor): Likewise.
1880 (cfg_layout_duplicate_bb): Likewise.
1881 (cfg_layout_split_block): Likewise.
1882 (cfg_layout_delete_block): Likewise.
1883 (cfg_layout_merge_blocks): Likewise.
1884 (BB_FOOTER): Delete function.
1885 (SET_BB_FOOTER): Delete function.
1886 * combine.c (update_cfg_for_uncondjump): Replace uses of
1887 SET_BB_FOOTER with BB_FOOTER.
1888
1889 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1890
1891 * except.h (struct eh_landing_pad_d): Strengthen field
1892 "landing_pad" from rtx to rtx_code_label *.
1893
1894 * except.c (sjlj_emit_dispatch_table): Likewise for param
1895 "dispatch_label"
1896 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1897
1898 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1899
1900 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1901 first param from rtx to rtx_insn *.
1902 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1903 field "set_frame_ptr_insn".
1904 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1905 "csend" from rtx to rtx_code_label *.
1906 (xtensa_expand_atomic): Likewise for local "csloop".
1907 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1908 rtx_insn *.
1909 (xtensa_call_tls_desc): Likewise for return type and locals
1910 "call_insn", "insns".
1911 (xtensa_legitimize_tls_address): Likewise for local "insns".
1912 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1913
1914 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1915
1916 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1917 first param from rtx to rtx_insn *.
1918 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1919 "insn".
1920
1921 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1922
1923 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1924 Strengthen param 1 from rtx to rtx_insn *.
1925 (tilepro_output_cbranch): Likewise.
1926 (tilepro_adjust_insn_length): Likewise.
1927 (tilepro_final_prescan_insn): Likewise for sole param.
1928
1929 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1930 Likewise for local "last".
1931 (cbranch_predicted_p): Likewise for param "insn".
1932 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1933 (tilepro_output_cbranch_with_opcode): Likewise.
1934 (tilepro_output_cbranch): Likewise.
1935 (frame_emit_load): Likewise for return type and locals "seq",
1936 "insn".
1937 (emit_sp_adjust): Likewise for return type and local "insn".
1938 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1939 "insn".
1940 (tilepro_adjust_insn_length): Likewise for param "insn".
1941 (next_insn_to_bundle): Likewise for return type and params
1942 "r", "end".
1943 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1944 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1945 local "new_insns".
1946 (match_addli_pcrel): Likewise for param "insn".
1947 (replace_addli_pcrel): Likewise.
1948 (match_auli_pcrel): Likewise.
1949 (replace_auli_pcrel): Likewise.
1950 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1951 "next_insn".
1952 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1953 "queue", "next_queue", "prev".
1954 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1955 (tilepro_final_prescan_insn): Likewise for param "insn".
1956
1957 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1958
1959 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1960 Strengthen param 1 from rtx to rtx_insn *.
1961 (tilegx_output_cbranch): Likewise.
1962 (tilegx_adjust_insn_length): Likewise.
1963 (tilegx_final_prescan_insn): Likewise for sole param.
1964
1965 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1966 or local "last".
1967 (cbranch_predicted_p): Likewise for param "insn".
1968 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1969 (tilegx_output_cbranch_with_opcode): Likewise.
1970 (tilegx_output_cbranch): Likewise.
1971 (frame_emit_load): Likewise for return type.
1972 (set_frame_related_p): Likewise for locals "seq", "insn".
1973 (emit_sp_adjust): Likewise for return type, and for local "insn".
1974 Introduce local "pat" for use in place of "insn" where the latter
1975 isn't an instruction.
1976 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1977 from rtx to rtx_insn *.
1978 (tilegx_adjust_insn_length): Likewise for param "insn".
1979 (next_insn_to_bundle): Likewise for return type and params "r" and
1980 "end".
1981 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1982 "end".
1983 (replace_insns): Likewise for params "old_insn", "new_insns".
1984 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1985 "new_insns".
1986 (replace_mov_pcrel_step2): Likewise.
1987 (replace_mov_pcrel_step3): Likewise.
1988 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1989 "next_insn".
1990 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1991 "queue", "next_queue", "prev".
1992 (tilegx_output_mi_thunk): Likewise for local "insn".
1993 (tilegx_final_prescan_insn): Likewise for param "insn".
1994
1995 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1996
1997 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1998 rtx to rtx_insn *.
1999 (frame_emit_load): Likewise.
2000 (frame_emit_add_imm): Likewise, also for local "insn".
2001 (spu_expand_prologue): Likewise for local "insn".
2002 (struct spu_bb_info): Likewise for field "prop_jump".
2003 (emit_nop_for_insn): Likewise for param "insn" and local
2004 "new_insn".
2005 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2006 "hbr_insn".
2007 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2008 locals "hint", "insn".
2009 (get_branch_target): Likewise for param "branch".
2010 (insn_clobbers_hbr): Likewise for param "insn".
2011 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2012 locals "insn", "before_4", "before_16".
2013 (insert_hbrp): Likewise for local "insn".
2014 (spu_machine_dependent_reorg): Likewise for locals "branch",
2015 "insn", "next", "bbend".
2016 (uses_ls_unit): Likewise for param "insn".
2017 (get_pipe): Likewise.
2018 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2019 introducing a checked cast.
2020 (spu_sched_adjust_cost): Likewise for params "insn" and
2021 "dep_insn".
2022 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2023 (spu_sms_res_mii): Likewise.
2024
2025 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2026
2027 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2028 from rtx to rtx_insn *.
2029 (output_cbranch): Likewise for param 6.
2030 (output_return): Likewise for param 1.
2031 (output_sibcall): Likewise.
2032 (output_v8plus_shift): Likewise.
2033 (output_v8plus_mult): Likewise.
2034 (output_v9branch): Likewise for param 7.
2035 (output_cbcond): Likewise for param 3.
2036
2037 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2038 for local "insn".
2039 (sparc_legitimize_pic_address): Likewise.
2040 (sparc_emit_call_insn): Likewise.
2041 (emit_save_or_restore_regs): Likewise.
2042 (emit_window_save): Likewise for return type and local "insn".
2043 (sparc_expand_prologue): Likewise for local "insn".
2044 (sparc_flat_expand_prologue): Likewise.
2045 (output_return): Likewise for param "insn".
2046 (output_sibcall): Likewise for param "insn" and local "delay".
2047 (output_ubranch): Likewise for param "insn".
2048 (output_cbranch): Likewise.
2049 (output_cbcond): Likewise.
2050 (output_v9branch): Likewise.
2051 (output_v8plus_shift): Likewise.
2052 (sparc_output_mi_thunk): Likewise for local "insn".
2053 (get_some_local_dynamic_name): Likewise.
2054 (output_v8plus_mult): Likewise for param "insn".
2055
2056 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2057
2058 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2059 from rtx to rtx_insn *.
2060 (output_branchy_insn): Likewise for param 3.
2061 (output_far_jump): Likewise for param 1.
2062 (final_prescan_insn): Likewise.
2063 (sh_insn_length_adjustment): Likewise for sole param.
2064
2065 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2066 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2067 rtx_code_label *.
2068 (sh_emit_compare_and_set): Likewise for local "lab".
2069 (output_far_jump): Strengthen param "insn" and local "prev" from
2070 rtx to rtx_insn *.
2071 (output_branchy_insn): Likewise for param "insn" and local
2072 "next_insn".
2073 (output_ieee_ccmpeq): Likewise for param "insn".
2074 (struct label_ref_list_d): Strengthen field "label" from rtx to
2075 rtx_code_label *.
2076 (pool_node): Likewise.
2077 (pool_window_label): Likewise for this global.
2078 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2079 (dump_table): Strengthen params "start", "barrier" and local
2080 "scan" from rtx to rtx_insn *.
2081 (broken_move): Likewise for param "insn".
2082 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2083 Strengthen param "first_mova" from rtx * to rtx_insn **.
2084 (mova_p): Likewise for param "insn".
2085 (fixup_mova): Likewise for param "mova".
2086 (find_barrier): Likewise for return type, params "mova" and
2087 "from", and locals "barrier_before_mova", "found_barrier",
2088 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2089 "label" from rtx to rtx_code_label *.
2090 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2091 rtx to rtx_insn *.
2092 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2093 (split_branches): Likewise for param "first" and local "insn".
2094 (final_prescan_insn): Likewise for param "insn".
2095 (sequence_insn_p): Likewise for locals "prev", "next".
2096 (sh_insn_length_adjustment): Likewise for param "insn".
2097 (sh_can_redirect_branch): Likewise for local "insn".
2098 (find_r0_life_regions): Likewise for locals "end", "insn".
2099 (sh_output_mi_thunk): Likewise for local "insns".
2100
2101 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2102
2103 * config/score/score.c (score_output_mi_thunk): Strengthen local
2104 "insn" from rtx to rtx_insn *.
2105 (score_prologue): Likewise.
2106
2107 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2108
2109 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2110 1 from rtx to rtx_insn *.
2111 (s390_emit_jump): Likewise for return type.
2112 (s390_emit_call): Likewise.
2113 (s390_load_got): Likewise.
2114
2115 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2116 variable.
2117 (s390_match_ccmode): Likewise for param "insn".
2118 (s390_emit_jump): Likewise for return type.
2119 (s390_split_branches): Likewise for local "label".
2120 (struct constant): Strengthen field "label" from rtx to
2121 rtx_code_label *.
2122 (struct constant_pool): Likewise for field "label". Strengthen
2123 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2124 rtx_insn *.
2125 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2126 insns.
2127 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2128 (s390_end_pool): Likewise.
2129 (s390_dump_pool): Likewise for local "insn".
2130 (s390_mainpool_start): Likewise.
2131 (s390_chunkify_start): Likewise.
2132 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2133 with insns. Strengthen locals "label", "jump", "barrier", "next",
2134 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2135 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2136 rtx_insn *.
2137 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2138 "jump", "label", "next_insn".
2139 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2140 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2141 "tbegin_insn".
2142 (s390_load_got): Likewise for return type and local "insns".
2143 (s390_save_gprs_to_fprs): Likewise for local "insn".
2144 (s390_restore_gprs_from_fprs): Likewise.
2145 (pass_s390_early_mach::execute): Likewise.
2146 (s390_emit_prologue): Likewise for local "insns".
2147 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2148 rtx_code_label *.
2149 (s390_emit_call): Strengthen return type and local "insn" from
2150 rtx to rtx_insn *.
2151 (s390_emit_tpf_eh_return): Likewise for local "insn".
2152 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2153 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2154 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2155 local "cur_insn".
2156 (s390_non_addr_reg_read_p): Likewise for param "insn".
2157 (find_cond_jump): Likewise for return type and param "insn".
2158 (s390_swap_cmp): Likewise for param "insn".
2159 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2160 "prev_insn", "next_insn".
2161 (s390_reorg): Likewise for locals "insn", "target".
2162 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2163 (s390_sched_variable_issue): For now, rename param "insn" to
2164 "uncast_insn", introducing a checked cast.
2165 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2166 insn.
2167 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2168 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2169
2170 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2171
2172 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2173 param from rtx to rtx_insn *.
2174 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2175
2176 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2177
2178 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2179 4 from rtx to rtx_insn *.
2180 (rs6000_final_prescan_insn): Likewise for first param.
2181 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2182 local "insn".
2183 (rs6000_get_some_local_dynamic_name): Likewise.
2184 (output_cbranch): Likewise for param "insn".
2185 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2186 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2187 (rs6000_emit_allocate_stack): Likewise for local "insn".
2188 (load_cr_save): Likewise.
2189 (restore_saved_cr): Likewise.
2190 (restore_saved_lr): Likewise.
2191 (emit_cfa_restores): Likewise.
2192 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2193 "deleted_debug_label".
2194 (rs6000_output_mi_thunk): Likewise for local "insn".
2195 (rs6000_final_prescan_insn): Likewise for param "insn".
2196
2197 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2198
2199 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2200 Strengthen param "insn" from rtx to rtx_insn *.
2201 * config/picochip/picochip.c (picochip_current_prescan_insn):
2202 Likewise for this variable.
2203 (picochip_final_prescan_insn): Likewise for param "insn".
2204
2205 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2206
2207 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2208 from rtx to rtx_insn *.
2209 (pa_output_indirect_call): Likewise.
2210 (pa_adjust_insn_length): Likewise.
2211 (pa_attr_length_millicode_call): Likewise.
2212 (pa_attr_length_call): Likewise.
2213 (pa_attr_length_indirect_call): Likewise.
2214
2215 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2216 "insn".
2217 (pa_attr_length_millicode_call): Likewise.
2218 (pa_attr_length_call): Likewise.
2219 (pa_output_call): Likewise.
2220 (pa_attr_length_indirect_call): Likewise.
2221 (pa_output_indirect_call): Likewise.
2222
2223 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2224
2225 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2226 Strengthen first param from rtx to rtx_insn *.
2227 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2228 param "insn".
2229
2230 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2231
2232 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2233 type from rtx to rtx_insn *.
2234 (mips_expand_call): Likewise.
2235 (mips_adjust_insn_length): Likewise for first param.
2236 (mips_output_conditional_branch): Likewise.
2237 (mips_output_order_conditional_branch): Likewise.
2238 (mips_final_prescan_insn): Likewise.
2239
2240 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2241 rtx_insn * for the SEQUENCE case.
2242 (SEQ_END): Likewise.
2243 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2244 (mips_emit_call_insn): Likewise, also for local "insn".
2245 (mips16_gp_pseudo_reg): Likewise for local "scan".
2246 (mips16_build_call_stub): Likewise for return type and for local
2247 "insn". Introduce a new local "pattern" so that "insn" can indeed
2248 be an insn.
2249 (mips_expand_call): Strengthen return type and local "insn" from
2250 rtx to rtx_insn *.
2251 (mips_block_move_loop): Strengthen local "label" from rtx to
2252 rtx_code_label *.
2253 (mips_expand_synci_loop): Likewise for locals "label",
2254 "end_label".
2255 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2256 rtx_insn *.
2257 (mips16e_collect_argument_saves): Likewise for locals "insn",
2258 "next".
2259 (mips_find_gp_ref): Likewise for param of callback for "pred"
2260 param, and for local "insn".
2261 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2262 (mips_insn_has_flexible_gp_ref_p): Likewise.
2263 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2264 local "insn".
2265 (mips_epilogue_set_cfa): Likewise for local "insn".
2266 (mips_expand_epilogue): Likewise.
2267 (mips_adjust_insn_length): Likewise for param "insn".
2268 (mips_output_conditional_branch): Likewise.
2269 (mips_output_order_conditional_branch): Likewise.
2270 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2271 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2272 "falu2_turn_enabled_insn".
2273 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2274 "done_label" from rtx to rtx_code_label *.
2275 (struct mips16_constant): Likewise for field "label".
2276 (mips16_add_constant): Likewise for return type.
2277 (mips16_emit_constants_1): Strengthen return type and param "insn"
2278 from rtx to rtx_insn *.
2279 (mips16_emit_constants): Likewise for param "insn".
2280 (mips16_insn_length): Likewise.
2281 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2282 to rtx_code_label *.
2283 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2284 from rtx to rtx_insn *.
2285 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2286 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2287 (r10k_simplify_address): Strengthen param "insn" and local
2288 "def_insn" from rtx to rtx_insn *.
2289 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2290 rtx_insn *.
2291 (r10k_needs_protection_p_1): Update target type of cast of data
2292 from to rtx to rtx_insn *.
2293 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2294 rtx * to rtx_insn **.
2295 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2296 rtx_insn *.
2297 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2298 (mips_call_expr_from_insn): Likewise for param "insn".
2299 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2300 (mips_find_pic_call_symbol): Likewise for param "insn".
2301 (mips_annotate_pic_calls): Likewise for local "insn".
2302 (mips_sim_insn): Likewise for this variable.
2303 (struct mips_sim): Likewise for field "insn" within elements of
2304 last_set array.
2305 (mips_sim_wait_reg): Likewise for param "insn".
2306 (mips_sim_wait_regs): Likewise.
2307 (mips_sim_wait_units): Likewise.
2308 (mips_sim_wait_insn): Likewise.
2309 (mips_sim_issue_insn): Likewise.
2310 (mips_sim_finish_insn): Likewise.
2311 (mips_seq_time): Likewise for param "seq" and local "insn".
2312 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2313 locals "first", "second".
2314 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2315 "last", "last2", "next".
2316 (mips_avoid_hazard): Likewise for params "after", "insn".
2317 (mips_reorg_process_insns): Likewise for locals "insn",
2318 "last_insn", "subinsn", "next_insn".
2319 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2320 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2321 "jump_sequence".
2322 (mips_output_mi_thunk): Likewise for local "insn".
2323 (mips_final_prescan_insn): Likewise for param "insn".
2324
2325 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2326
2327 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2328 Strengthen return type and local "insns" from rtx to rtx_insn *.
2329 (microblaze_legitimize_tls_address): Likewise for local "insns".
2330 (microblaze_block_move_loop): Strengthen local "label" from rtx
2331 to rtx_code_label *.
2332 (microblaze_expand_prologue): Strengthen two locals named "insn"
2333 from rtx to rtx_insn *.
2334 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2335 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2336 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2337 to rtx_code_label *.
2338
2339 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2340
2341 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2342 param from rtx to rtx_insn *.
2343 (mep_reuse_lo): Likewise for third param.
2344 (mep_use_post_modify_p): Likewise for first param.
2345 (mep_core_address_length): Likewise.
2346 (mep_cop_address_length): Likewise.
2347 (mep_final_prescan_insn): Likewise.
2348 (mep_store_data_bypass_p): Likewise for both params.
2349 (mep_mul_hilo_bypass_p): Likewise.
2350 (mep_ipipe_ldc_p): Likewise for param.
2351
2352 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2353 (mep_rewrite_mult): Likewise.
2354 (mep_rewrite_mulsi3): Likewise.
2355 (mep_rewrite_maddsi3): Likewise.
2356 (mep_reuse_lo_p_1): Likewise.
2357 (mep_reuse_lo_p): Likewise.
2358 (mep_frame_expr): Likewise.
2359 (mep_make_parallel): Likewise for both params.
2360 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2361 local "insn".
2362 (mep_use_post_modify_p): Likewise for param "insn".
2363 (mep_core_address_length): Likewise.
2364 (mep_cop_address_length): Likewise.
2365 (mep_reg_set_in_function): Likewise for local "insn".
2366 (mep_asm_without_operands_p): Likewise.
2367 (F): Likewise for return type and param "x".
2368 (add_constant): Likewise for local "insn".
2369 (maybe_dead_move): Likewise for return type and local "insn".
2370 (mep_expand_prologue): Likewise for local "insn".
2371 (mep_final_prescan_insn): Likewise for param "insn".
2372 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2373 "next", "follow", "x".
2374 (mep_insert_repeat_label_last): Likewise for return type, param
2375 "last_insn", and locals "next", "prev". Strengthen param "label"
2376 from rtx to rtx_code_label *.
2377 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2378 rtx_insn *.
2379 (struct mep_doloop_end): Likewise for fields "insn" and
2380 "fallthrough".
2381 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2382 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2383 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2384 rtx_insn *.
2385 (mep_invert_branch): Likewise for params "insn" and "after".
2386 (mep_reorg_erepeat): Likewise for param "insns" and locals
2387 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2388 "l" from rtx to rtx_code_label *.
2389 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2390 from rtx to rtx_insn *.
2391 (mep_reorg_addcombine): Likewise for param "insns" and locals
2392 "i", "n".
2393 (add_sp_insn_p): Likewise for param "insn".
2394 (mep_reorg_noframe): Likewise for param "insns" and locals
2395 "start_frame_insn", "end_frame_insn", "next".
2396 (mep_reorg): Likewise for local "insns".
2397 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2398 cast.
2399 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2400 (mep_mul_hilo_bypass_p): Likewise.
2401 (mep_ipipe_ldc_p): Likewise for param "insn".
2402 (mep_make_bundle): Likewise for return type, param "cop" and local
2403 "insn", splitting out the latter into a new local "seq" for when it
2404 is a SEQUENCE rather than an insn.
2405 (core_insn_p): Likewise for param "insn".
2406 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2407 "last", "first", "note", "prev", "core_insn".
2408
2409 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2410
2411 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2412 rtx to rtx_insn *.
2413 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2414 (m68k_final_prescan_insn): Likewise for first param.
2415
2416 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2417 (m68k_set_frame_related): Likewise for param "insn".
2418 (output_btst): Likewise for param "insn".
2419 (m68k_final_prescan_insn): Likewise.
2420 (m68k_move_to_reg): Likewise for local "insn".
2421 (m68k_call_tls_get_addr): Likewise for local "insns".
2422 (m68k_call_m68k_read_tp): Likewise.
2423 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2424 (m68k_output_mi_thunk): Likewise for local "insn".
2425
2426 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2427
2428 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2429 first param from rtx to rtx_insn *.
2430 (iq2000_adjust_insn_length): Likewise.
2431 (iq2000_output_conditional_branch): Likewise.
2432 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2433 "insn" and local "nop_insn".
2434 (iq2000_annotate_frame_insn): Likewise for param "insn".
2435 (iq2000_expand_prologue): Likewise for both locals "insn".
2436 (iq2000_adjust_insn_length): Likewise for param "insn".
2437 (iq2000_output_conditional_branch): Likewise.
2438
2439 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2440
2441 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2442 "insns" from rtx to rtx_insn *.
2443 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2444 (struct spill_fill_data): Likewise for field "init_after" and for
2445 elements of array field "prev_insn".
2446 (spill_restore_mem): Likewise for locals "insn", "first".
2447 (do_spill): Likewise for local "insn".
2448 (do_restore): Likewise.
2449 (ia64_expand_prologue): Likewise.
2450 (ia64_expand_epilogue): Likewise.
2451 (emit_insn_group_barriers): Likewise for locals "insn",
2452 "last_label".
2453 (emit_all_insn_group_barriers): Likewise for locals "insn",
2454 "last".
2455 (dfa_stop_insn): Likewise for this global.
2456 (dfa_pre_cycle_insn): Likewise.
2457 (ia64_nop): Likewise.
2458 (final_emit_insn_group_barriers): Likewise for locals "insn",
2459 "last".
2460 (emit_predicate_relation_info): Likewise for locals "head", "n",
2461 "insn", "b", "a".
2462 (ia64_reorg): Likewise for local "insn".
2463 (ia64_output_mi_thunk): Likewise.
2464 (expand_vec_perm_interleave_2): Likewise for local "seq".
2465
2466 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2467
2468 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2469 param 1 "insn" from rtx to rtx_insn *.
2470 (ix86_use_lea_for_mov): Likewise.
2471 (ix86_avoid_lea_for_addr): Likewise.
2472 (ix86_split_lea_for_addr): Likewise.
2473 (ix86_lea_for_add_ok): Likewise.
2474 (ix86_output_call_insn): Likewise.
2475
2476 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2477 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2478 (ix86_output_function_epilogue): Likewise for locals "insn",
2479 "deleted_debug_label".
2480 (legitimize_tls_address): Likewise for local "insn".
2481 (get_some_local_dynamic_name): Likewise.
2482 (increase_distance): Likewise for params "prev", "next".
2483 (distance_non_agu_define_in_bb): Likewise for params "insn",
2484 "start" and locals "prev", "next".
2485 (distance_non_agu_define): Likewise for param "insn".
2486 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2487 locals "next", "prev".
2488 (distance_agu_use): Likewise for param "insn".
2489 (ix86_lea_outperforms): Likewise.
2490 (ix86_ok_to_clobber_flags): Likewise.
2491 (ix86_avoid_lea_for_add): Likewise.
2492 (ix86_use_lea_for_mov): Likewise.
2493 (ix86_avoid_lea_for_addr): Likewise.
2494 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2495 (ix86_split_lea_for_addr): Likewise for param "insn".
2496 (ix86_lea_for_add_ok): Likewise for param "insn".
2497 (ix86_expand_carry_flag_compare): Likewise for local
2498 "compare_seq".
2499 (ix86_expand_int_movcc): Likewise.
2500 (ix86_output_call_insn): Likewise for param "insn".
2501 (ix86_output_call_insn): Likewise for local "i".
2502 (x86_output_mi_thunk): Introduce local "insn", using it in place
2503 of "tmp" when dealing with insns.
2504 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2505 "start".
2506 (ix86_pad_returns): Likewise for locals "ret", "prev".
2507 (ix86_count_insn_bb): Likewise for local "insn".
2508 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2509 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2510 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2511 (expand_vec_perm_interleave2): Likewise for local "seq".
2512 (expand_vec_perm_vperm2f128_vblend): Likewise.
2513 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2514 call to for_each_rtx with for_each_rtx_in_insn.
2515
2516 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2517
2518 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2519 "label" from rtx to rtx_code_label *.
2520 (ix86_expand_prologue): Likewise.
2521 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2522 "varargs_label".
2523 (ix86_split_idivmod): Likewise for locals "end_label" and
2524 "qimode_label".
2525 (ix86_expand_branch): Likewise for local "label2".
2526 (ix86_expand_aligntest): Likewise for return type and local "label".
2527 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2528 "top_label".
2529 (expand_movmem_epilogue): Likewise for the various locals named
2530 "label".
2531 (expand_setmem_epilogue): Likewise.
2532 (expand_small_movmem_or_setmem): Likewise for local "label".
2533 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2534 Strengthen param "done_label" from rtx * to rtx_code_label **.
2535 Strengthen locals "loop_label" and "label" from rtx to
2536 rtx_code_label *.
2537 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2538 Likewise for locals "loop_label", "label".
2539 (ix86_expand_set_or_movmem): Likewise for locals "label",
2540 "jump_around_label", "hot_label".
2541 (ix86_expand_strlensi_unroll_1): Likewise for locals
2542 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2543 "end_2_label".
2544 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2545 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2546 "label2", "jump_label".
2547 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2548 local "label".
2549 (ix86_expand_lfloorceil): Likewise for local "label".
2550 (ix86_expand_rint): Likewise.
2551 (ix86_expand_floorceildf_32): Likewise.
2552 (ix86_expand_floorceil): Likewise.
2553 (ix86_expand_rounddf_32): Likewise.
2554 (ix86_expand_trunc): Likewise.
2555 (ix86_expand_truncdf_32): Likewise.
2556 (ix86_expand_round): Likewise.
2557
2558 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2559
2560 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2561 first param from rtx to rtx_insn *.
2562 (h8300_insn_length_from_table): Likewise.
2563 * config/h8300/h8300.c (F): Likewise for return type and param
2564 "x".
2565 (Fpa): Add a checked cast to rtx_insn *.
2566 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2567 rtx_insn *.
2568 (final_prescan_insn): Likewise for param "insn".
2569 (h8300_binary_length): Likewise.
2570 (h8300_insn_length_from_table): Likewise.
2571
2572 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2573
2574 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2575 Strengthen first param "insn" from rtx to rtx_insn *.
2576
2577 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2578 Likewise.
2579 (frame_insn): Likewise for return type. Introduce local "insn"
2580 for use in place of local "x" for use as an rtx_insn *.
2581 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2582 (epiphany_expand_prologue): Likewise for local "insn".
2583 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2584 * config/epiphany/resolve-sw-modes.c
2585 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2586 "seq".
2587
2588 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2589
2590 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2591 param from rtx to rtx_insn *.
2592 (c6x_final_prescan_insn): Likewise for first param.
2593
2594 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2595 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2596 (c6x_expand_compare): Strengthen local "insns" from rtx to
2597 rtx_insn *.
2598 (c6x_get_unit_specifier): Likewise for param "insn".
2599 (c6x_print_unit_specifier_field): Likewise.
2600 (c6x_final_prescan_insn): Likewise.
2601 (emit_add_sp_const): Likewise for local "insn".
2602 (c6x_expand_prologue): Likewise.
2603
2604 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2605
2606 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2607 param 1 from rtx to rtx_insn *.
2608 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2609 the various locals named "insn".
2610 (expand_epilogue_reg_restore): Likewise.
2611 (frame_related_constant_load): Likewise.
2612 (add_to_reg): Likewise.
2613 (emit_link_insn): Likewise.
2614 (do_link): Likewise.
2615 (expand_interrupt_handler_prologue): Likewise.
2616 (branch_dest): Likewise for param "branch".
2617 (asm_conditional_branch): Likewise for param "insn".
2618 (gen_one_bundle): Likewise for elements of param "slot" and local
2619 "t".
2620 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2621 elements of local "slot".
2622 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2623 "queue", "next_queue", "prev".
2624 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2625 (add_sched_insns_for_speculation): Likewise for local "insn".
2626
2627 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2628
2629 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2630 from rtx to rtx_insn *.
2631 (output_movhi): Likewise.
2632 (output_movsisf): Likewise.
2633 (avr_out_tstsi): Likewise.
2634 (avr_out_tsthi): Likewise.
2635 (avr_out_tstpsi): Likewise.
2636 (avr_out_compare): Likewise.
2637 (avr_out_compare64): Likewise.
2638 (avr_out_movpsi): Likewise.
2639 (ashlqi3_out): Likewise.
2640 (ashlhi3_out): Likewise.
2641 (ashlsi3_out): Likewise.
2642 (ashrqi3_out): Likewise.
2643 (ashrhi3_out): Likewise.
2644 (ashrsi3_out): Likewise.
2645 (lshrqi3_out): Likewise.
2646 (lshrhi3_out): Likewise.
2647 (lshrsi3_out): Likewise.
2648 (avr_out_ashlpsi3): Likewise.
2649 (avr_out_ashrpsi3): Likewise.
2650 (avr_out_lshrpsi3): Likewise.
2651 (avr_out_fract): Likewise.
2652 (avr_out_sbxx_branch): Likewise.
2653 (avr_out_round): Likewise.
2654 (avr_out_xload): Likewise.
2655 (avr_out_movmem): Likewise.
2656 (adjust_insn_length): Likewise.
2657 (avr_out_lpm): Likewise.
2658 (reg_unused_after): Likewise.
2659 (_reg_unused_after): Likewise.
2660 (avr_jump_mode): Likewise for second param.
2661 (jump_over_one_insn): Likewise for first param.
2662 (avr_final_prescan_insn): Likewise.
2663 (out_shift_with_cnt): Likewise for second param.
2664
2665 * config/avr/avr.c (get_sequence_length): Likewise for param
2666 "insns" and local "insn".
2667 (emit_push_byte): Likewise for local "insn".
2668 (emit_push_sfr): Likewise.
2669 (avr_prologue_setup_frame): Likewise for locals "insn",
2670 "fp_plus_insns", "sp_plus_insns".
2671 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2672 "sp_plus_insns".
2673 (avr_jump_mode): Likewise for param "insn".
2674 (avr_final_prescan_insn): Likewise.
2675 (avr_find_unused_d_reg): Likewise.
2676 (avr_out_lpm_no_lpmx): Likewise.
2677 (avr_out_lpm): Likewise.
2678 (avr_out_xload): Likewise.
2679 (output_movqi): Likewise.
2680 (output_movhi): Likewise.
2681 (out_movqi_r_mr): Likewise.
2682 (out_movhi_r_mr): Likewise.
2683 (out_movsi_r_mr): Likewise.
2684 (out_movsi_mr_r): Likewise.
2685 (output_movsisf): Likewise.
2686 (avr_out_load_psi): Likewise.
2687 (avr_out_store_psi): Likewise.
2688 (avr_out_movpsi): Likewise.
2689 (out_movqi_mr_r): Likewise.
2690 (avr_out_movhi_mr_r_xmega): Likewise.
2691 (out_movhi_mr_r): Likewise.
2692 (compare_condition): Likewise for param "insn" and local "next".
2693 (compare_sign_p): Likewise for param "insn".
2694 (compare_diff_p): Likewise.
2695 (compare_eq_p): Likewise.
2696 (avr_out_compare): Likewise.
2697 (avr_out_compare64): Likewise.
2698 (avr_out_tsthi): Likewise.
2699 (avr_out_tstpsi): Likewise.
2700 (avr_out_tstsi): Likewise.
2701 (out_shift_with_cnt): Likewise.
2702 (ashlqi3_out): Likewise.
2703 (ashlhi3_out): Likewise.
2704 (avr_out_ashlpsi3): Likewise.
2705 (ashlsi3_out): Likewise.
2706 (ashrqi3_out): Likewise.
2707 (ashrhi3_out): Likewise.
2708 (avr_out_ashrpsi3): Likewise.
2709 (ashrsi3_out): Likewise.
2710 (lshrqi3_out): Likewise.
2711 (lshrhi3_out): Likewise.
2712 (avr_out_lshrpsi3): Likewise.
2713 (lshrsi3_out): Likewise.
2714 (avr_out_fract): Likewise.
2715 (avr_out_round): Likewise.
2716 (avr_adjust_insn_length): Likewise.
2717 (reg_unused_after): Likewise.
2718 (_reg_unused_after): Likewise.
2719 (avr_compare_pattern): Likewise.
2720 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2721 and locals "branch1", "branch2", "insn2", "jump".
2722 (avr_reorg): Likewise for local "insn".
2723 (avr_2word_insn_p): Likewise for param "insn".
2724 (jump_over_one_insn_p): Likewise.
2725 (avr_out_sbxx_branch): Likewise.
2726 (avr_out_movmem): Likewise.
2727
2728 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2729
2730 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2731 param from rtx to rtx_insn *.
2732 (thumb1_final_prescan_insn): Likewise.
2733 (thumb2_final_prescan_insn): Likewise.
2734
2735 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2736 rtx to rtx_insn *.
2737 (struct minipool_node): Likewise for field "insn".
2738 (dump_minipool): Likewise for param "scan".
2739 (create_fix_barrier): Likewise for local "from". Strengthen local
2740 "label" from rtx to rtx_code_label *.
2741 (push_minipool_barrier): Strengthen param "insn" from rtx to
2742 rtx_insn *.
2743 (push_minipool_fix): Likewise.
2744 (note_invalid_constants): Likewise.
2745 (thumb2_reorg): Likewise for local "insn".
2746 (arm_reorg): Likewise.
2747 (thumb2_final_prescan_insn): Likewise for param
2748 "insn" and local "first_insn".
2749 (arm_final_prescan_insn): Likewise for param "insn" and locals
2750 "start_insn", "this_insn".
2751 (arm_debugger_arg_offset): Likewise for param "insn".
2752 (thumb1_emit_multi_reg_push): Likewise for return type and local
2753 "insn".
2754 (thumb1_final_prescan_insn): Likewise for param "insn".
2755 (thumb_far_jump_used_p): Likewise for local "insn".
2756 (thumb1_expand_prologue): Likewise.
2757 (arm_expand_epilogue_apcs_frame): Likewise.
2758 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2759 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2760 from rtx to rtx_code_label *.
2761 (arm_split_atomic_op): Likewise for local "label".
2762 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2763
2764 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2765
2766 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2767 first param from rtx to rtx_insn *.
2768 (arc_verify_short): Likewise.
2769 (arc_short_long): Likewise.
2770 (arc_need_delay): Likewise.
2771
2772 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2773 "target_insn".
2774 (arc_ccfsm_advance): Likewise for param "insn" and locals
2775 "start_insn", "this_insn".
2776 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2777 (arc_ccfsm_post_advance): Likewise for param "insn".
2778 (arc_next_active_insn): Likewise for return type and param "insn".
2779 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2780 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2781 (output_short_suffix): Likewise for local "insn".
2782 (arc_final_prescan_insn): Likewise for param "insn". Remove
2783 now-redundant checked cast.
2784 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2785 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2786 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2787 for use where lc_set became an insn.
2788 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2789 rtx to rtx_insn *.
2790 (arc_get_insn_variants): Likewise for local "prev".
2791 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2792 "next".
2793 (arc_predicate_delay_insns): Likewise for local "insn".
2794 (arc_pad_return): Likewise for local "prev". For now, add a
2795 checked cast when extracting the insn from "final_sequence".
2796 (arc_short_long): Likewise for param "insn".
2797 (arc_need_delay): Likewise for param "insn" and local "next".
2798 (arc_label_align): Likewise for locals "prev", "next".
2799
2800 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2801
2802 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2803 "insn" from rtx to rtx_insn *.
2804 (alpha_gp_save_rtx): Likewise for local "seq".
2805 (alpha_instantiate_decls): Likewise for local "top".
2806 (get_some_local_dynamic_name): Likewise for local "insn".
2807 (alpha_does_function_need_gp): Likewise.
2808 (set_frame_related_p): Likewise for return type and for locals
2809 "seq" and "insn".
2810 (emit_frame_store_1): Likewise for local "insn".
2811 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2812 (alpha_end_function): Likewise for local "insn".
2813 (alpha_output_mi_thunk_osf): Likewise.
2814 (alphaev4_insn_pipe): Likewise for param "insn".
2815 (alphaev5_insn_pipe): Likewise.
2816 (alphaev4_next_group): Likewise for return type and param 1
2817 "insn".
2818 (alphaev5_next_group): Likewise.
2819 (alpha_align_insns_1): Likewise for return type and param 1 of
2820 callback param "next_group", and for locals "i", "next", "prev",
2821 "where", "where2", "insn".
2822
2823 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2824
2825 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2826 rather than modifying the stmt.
2827
2828 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2829
2830 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2831 cgraph_state conversion.
2832
2833 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2834
2835 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2836 Strengthen local "insns" from rtx to rtx_insn *.
2837 (aarch64_set_frame_expr): Likewise for local "insn".
2838 (aarch64_save_or_restore_fprs): Likewise.
2839 (aarch64_save_or_restore_callee_save_registers): Likewise.
2840 (aarch64_expand_prologue): Likewise.
2841 (aarch64_expand_epilogue): Likewise.
2842 (aarch64_output_mi_thunk): Likewise.
2843 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2844 "label2" from rtx to rtx_code_label *.
2845 (aarch64_split_atomic_op): Likewise for local "label".
2846
2847 2014-08-25 Martin Liska <mliska@suse.cz>
2848
2849 * cgraph.h (symtab_node):
2850 (bool needed_p (void)): created from decide_is_symbol_needed
2851 (bool referred_to_p (void)): created from referred_to_p
2852 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2853 * cgraph.h (cgraph_node):
2854 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2855 (void expand (void)): created from expand_function
2856 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2857 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2858 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2859 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2860 * cgraph.h (varpool_node):
2861 (static void add (tree decl): created from varpool_add_new_variable
2862 * cgraph.h (cgraph_edge):
2863 void remove (void);
2864 (void remove_caller (void)): created from cgraph_edge_remove_caller
2865 (void remove_callee (void)): created from cgraph_edge_remove_callee
2866 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2867 created from cgraph_set_call_stmt
2868 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2869 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2870 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2871 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2872 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2873 created from cgraph_speculative_call_info
2874 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2875 int freq_scale, bool update_original)): created from cgraph_clone_edge
2876 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2877 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2878 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2879 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2880 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2881 (static void rebuild_references (void)): created from cgraph_rebuild_references
2882 * cgraph.h (symbol_table):
2883 (create_reference): renamed from add_reference
2884 (maybe_create_reference): renamed from maybe_add_reference
2885 (void register_symbol (symtab_node *node)): new function
2886 (void clear_asm_symbols (void)): new function
2887 (void unregister (symtab_node *node)): new function
2888 (void release_symbol (cgraph_node *node, int uid)): new function
2889 (cgraph_node * allocate_cgraph_symbol (void)): new function
2890 (void initialize (void)): created from cgraph_init
2891 (symtab_node *first_symbol (void)):new function
2892 (asm_node *first_asm_symbol (void)):new function
2893 (symtab_node *first_defined_symbol (void)):new function
2894 (varpool_node *first_variable (void)):new function
2895 (varpool_node *next_variable (varpool_node *node)):new function
2896 (varpool_node *first_static_initializer (void)):new function
2897 (varpool_node *next_static_initializer (varpool_node *node)):new function
2898 (varpool_node *first_defined_variable (void)):new function
2899 (varpool_node *next_defined_variable (varpool_node *node)):new function
2900 (cgraph_node *first_defined_function (void)):new function
2901 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2902 (cgraph_node *first_function (void)):new function
2903 (cgraph_node *next_function (cgraph_node *node)):new function
2904 (cgraph_node *first_function_with_gimple_body (void)):new function
2905 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2906 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2907 created from symtab_remove_unreachable_nodes
2908 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2909 (void process_new_functions (void)): created from cgraph_process_new_functions
2910 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2911 (bool output_variables (void)): created from varpool_node::output_variables
2912 (void output_asm_statements (void)): created from output_asm_statements
2913 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2914 (void compile (void)): created from compile
2915 (void output_weakrefs (void)): created from output_weakrefs
2916 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2917 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2918 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2919 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2920 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2921 created from cgraph_next_function_with_gimple_body
2922 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2923 created from cgraph_remove_edge_removal_hook
2924 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2925 created from cgraph_add_node_removal_hook
2926 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2927 created from cgraph_remove_node_removal_hook
2928 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2929 created from varpool_add_node_removal_hook
2930 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2931 created from varpool_remove_node_removal_hook
2932 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2933 created from cgraph_add_function_insertion_hook
2934 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2935 created from cgraph_remove_function_insertion_hook
2936 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2937 created from varpool_add_variable_insertion_hook
2938 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2939 created from varpool_remove_variable_insertion_hook
2940 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2941 created from cgraph_add_edge_duplication_hook
2942 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2943 created from cgraph_remove_edge_duplication_hook
2944 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2945 created from cgraph_add_node_duplication_hook
2946 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2947 created from cgraph_remove_node_duplication_hook
2948 (void call_edge_removal_hooks (cgraph_edge *e)):
2949 created from cgraph_call_edge_removal_hooks
2950 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2951 created from call_function_insertion_hooks
2952 (void call_cgraph_removal_hooks (cgraph_node *node)):
2953 created from cgraph_call_node_removal_hooks
2954 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2955 created from cgraph_node::call_duplication_hooks
2956 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2957 created from cgraph_call_edge_duplication_hooks
2958 (void call_varpool_removal_hooks (varpool_node *node)):
2959 created from varpool_call_node_removal_hooks
2960 (void call_varpool_insertion_hooks (varpool_node *node)):
2961 created from varpool_call_variable_insertion_hooks
2962 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2963 created from insert_to_assembler_name_hash
2964 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2965 created from unlink_from_assembler_name_hash
2966 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2967 created from symtab_prevail_in_asm_name_hash
2968 (void symtab_initialize_asm_name_hash (void)):
2969 created from symtab_initialize_asm_name_hash
2970 (void change_decl_assembler_name (tree decl, tree name)):
2971 created from change_decl_assembler_name
2972 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2973 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2974 created from decl_assembler_name_hash
2975 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2976 created from decl_assembler_name_equal
2977 (static hashval_t hash_node_by_assembler_name (const void *p)):
2978 created from hash_node_by_assembler_name
2979 (static int eq_assembler_name (const void *p1, const void *p2)):
2980 created from eq_assembler_name
2981
2982 2014-08-25 Marek Polacek <polacek@redhat.com>
2983
2984 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2985
2986 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2987
2988 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2989 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2990 SWI1248_AVX512BW mode iterator.
2991
2992 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2993
2994 PR target/62111
2995 * config/sh/predicates.md (general_extend_operand): Disable
2996 TRUNCATE before reload completes.
2997
2998 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2999
3000 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3001
3002 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3003
3004 PR target/61996
3005 * config/sh/sh.opt (musermode): Allow negative form.
3006 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3007 targets that don't support it.
3008 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3009 Document -mno-usermode option.
3010
3011 2014-08-24 Kito Cheng <kito@0xlab.org>
3012
3013 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3014 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3015 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3016 * doc/tm.texi: Regenerate.
3017
3018 2014-08-24 Kito Cheng <kito@0xlab.org>
3019
3020 * ira.c: Fix typo in comment.
3021
3022 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3023
3024 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3025 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3026
3027 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3028
3029 PR target/62038
3030 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3031 last_address when the current function is a thunk.
3032 (pa_asm_output_mi_thunk): When we don't have named sections or they
3033 are not being used, check that thunk can reach the stub table with a
3034 short branch.
3035
3036 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3037
3038 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3039 rtx_insn *.
3040 (pass_web::execute): Likewise for local "insn".
3041
3042 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3043
3044 * var-tracking.c (struct micro_operation_def): Strengthen field
3045 "insn" from rtx to rtx_insn *.
3046 (struct emit_note_data_def): Likewise.
3047 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3048 (vt_stack_adjustments): Likewise for local "insn".
3049 (adjust_insn): Likewise for param "insn".
3050 (val_store): Likewise.
3051 (val_resolve): Likewise.
3052 (struct count_use_info): Likewise for field "insn".
3053 (log_op_type): Likewise for param "insn".
3054 (reverse_op): Likewise.
3055 (prepare_call_arguments): Likewise.
3056 (add_with_sets): The initial param takes an insn, but we can't
3057 yet strengthen it from rtx to rtx_insn * since it's used as a
3058 cselib_record_sets_hook callback. For now rename initial param
3059 from "insn" to "uncast_insn", and introduce a local "insn" of
3060 the stronger rtx_insn * type, with a checked cast.
3061 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3062 rtx_insn *.
3063 (emit_note_insn_var_location): Likewise.
3064 (emit_notes_for_changes): Likewise.
3065 (emit_notes_for_differences): Likewise.
3066 (next_non_note_insn_var_location): Likewise for return type and
3067 for param "insn".
3068 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3069 (vt_initialize): Likewise for local "insn".
3070 (delete_debug_insns): Likewise for locals "insn" and "next".
3071
3072 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3073
3074 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3075 rtx_insn *.
3076 (mark_constant_pool): Likewise for local "insn".
3077
3078 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3079
3080 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3081 rtx to rtx_insn *.
3082 (dead_debug_promote_uses): Likewise.
3083 (dead_debug_insert_temp): Likewise.
3084
3085 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3086
3087 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3088 from const_rtx to const rtx_insn *.
3089 (store_killed_after): Likewise. Strengthen locals "last", "act"
3090 from rtx to rtx_insn *.
3091 (store_killed_before): Strengthen param "insn" from const_rtx to
3092 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3093 (find_moveable_store): Strengthen param "insn" from rtx to
3094 rtx_insn *.
3095 (compute_store_table): Likewise for local "insn".
3096 (insert_insn_start_basic_block): Likewise for param "insn" and
3097 locals "prev", "before", "insn".
3098 (insert_store): For now, add a checked cast to rtx_insn * on the
3099 result of gen_move_insn.
3100 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3101 to rtx_insn *.
3102 (replace_store_insn): Likewise. For now, add a checked cast to
3103 rtx_insn * on the result of gen_move_insn.
3104
3105 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3106
3107 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3108 rtx_insn *.
3109 (expand_sjlj_dispatch_table): Likewise.
3110
3111 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3112
3113 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3114 "insn" from rtx to rtx_insn *.
3115
3116 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3117
3118 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3119 "insn" from rtx to rtx_insn *.
3120 (dup_block_and_redirect): Likewise for param 3 "before".
3121
3122 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3123 from rtx to rtx_insn *.
3124 (move_insn_for_shrink_wrap): Likewise.
3125 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3126 (dup_block_and_redirect): Likewise for param "before" and local
3127 "insn".
3128 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3129 "end".
3130 (convert_to_simple_return): Likewise for local "start".
3131
3132 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3133 Strengthen local "insn" from rtx to rtx_insn *, for use when
3134 invoking requires_stack_frame_p.
3135
3136 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3137
3138 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3139 rtx_insn *.
3140 (speculate_expr): Likewise for locals "orig_insn_rtx",
3141 "spec_insn_rtx".
3142 (eq_transformed_insns): Likewise for locals "i1", "i2".
3143 (check_for_new_jump): Likewise for return type and local "end".
3144 (find_new_jump): Likewise for return type and local "jump".
3145 (sel_split_edge): Likewise for local "jump".
3146 (sel_create_recovery_block): Likewise.
3147 (sel_redirect_edge_and_branch_force): Likewise.
3148 (sel_redirect_edge_and_branch): Likewise.
3149
3150 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3151
3152 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3153 "new_insn" from rtx to rtx_insn *.
3154 (create_insn_rtx_with_rhs): Likewise for return type and for local
3155 "insn_rtx".
3156 (create_insn_rtx_with_lhs): Likewise.
3157 (create_speculation_check): Likewise for local "insn_rtx".
3158 (implicit_clobber_conflict_p): Likewise for local "insn".
3159 (get_expr_cost): Likewise.
3160 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3161 (move_cond_jump): Likewise for locals "next", "prev", "link",
3162 "head", "from", "to".
3163
3164 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3165
3166 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3167 "next" from rtx to rtx_insn *.
3168 (find_conditional_protection): Likewise for local "next".
3169 (is_conditionally_protected): Likewise for local "insn1".
3170 (is_pfree): Likewise for locals "insn1", "insn2".
3171
3172 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3173
3174 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3175 from rtx to rtx_insn *.
3176
3177 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3178 locals "insn1", "insn2" from rtx to rtx_insn *.
3179 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3180 locals "insn", "prev", "last_jump", "next_tail".
3181 (schedule_ebb): Likewise for params "head", "tail".
3182 (schedule_ebbs): Likewise for locals "tail", "head".
3183
3184 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3185 to rtx_insn on "last_insn" in one of the invocations of
3186 schedule_ebb.
3187
3188 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3189
3190 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3191 "elem", "insn" from rtx to rtx_insn *.
3192 (change_spec_dep_to_hard): Likewise.
3193 (get_back_and_forw_lists): Likewise for local "con".
3194 (sd_add_dep): Likewise for locals "elem", "insn".
3195 (sd_resolve_dep): Likewise for locals "pro", "con".
3196 (sd_unresolve_dep): Likewise.
3197 (sd_delete_dep): Likewise.
3198 (chain_to_prev_insn): Likewise for local "pro".
3199 (find_inc): Likewise for locals "pro", "con".
3200
3201 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3202
3203 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3204 to rtx_insn *.
3205 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3206 const rtx_insn *.
3207 (modified_between_p): Strengthen local "insn" from rtx to
3208 rtx_insn *.
3209 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3210 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3211 const rtx_insn *.
3212
3213 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3214
3215 * resource.c (next_insn_no_annul): Strengthen local "next" from
3216 rtx to rtx_insn *.
3217 (mark_referenced_resources): Likewise for local "insn".
3218
3219 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3220
3221 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3222 to rtx_insn *.
3223 (find_reloads): Likewise for param 1.
3224 (subst_reloads): Likewise for sole param.
3225 (find_equiv_reg): Likwise for param 2.
3226 (regno_clobbered_p): Likwise for param 2.
3227 (reload): Likewise for param 1.
3228
3229 * caller-save.c (save_call_clobbered_regs): Strengthen local
3230 "insn" from rtx to rtx_insn *.
3231 (insert_one_insn): Likewise for local "insn".
3232
3233 * reload.c (this_insn): Likewise for this global.
3234 (find_reloads): Likewise for param "insn".
3235 (find_reloads_toplev): Likewise.
3236 (find_reloads_address): Likewise.
3237 (subst_reg_equivs): Likewise.
3238 (update_auto_inc_notes): Likewise.
3239 (find_reloads_address_1): Likewise.
3240 (find_reloads_subreg_address): Likewise.
3241 (subst_reloads): Likewise.
3242 (find_equiv_reg): Likewise, also for local "p".
3243 (regno_clobbered_p): Likewise for param "insn".
3244
3245 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3246 array.
3247 (spill_reg_store): Likewise for the elements of this array.
3248 (remove_init_insns): Likewise for local "equiv_insn".
3249 (will_delete_init_insn_p): Likewise for param "insn".
3250 (reload): Likewise for param ""first" and local "insn".
3251 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3252 rtx_insn *.
3253 (calculate_elim_costs_all_insns): Likewise.
3254 (delete_caller_save_insns): Likewise.
3255 (spill_failure): Likewise for param "insn".
3256 (delete_dead_insn): Likewise.
3257 (set_label_offsets): Likewise.
3258 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3259 "prev_insn".
3260 (elimination_costs_in_insn): Likewise for param "insn".
3261 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3262 when referring to an insn.
3263 (set_initial_label_offsets): Likewise.
3264 (set_offsets_for_label): Strengthen param "insn" from rtx to
3265 rtx_insn *.
3266 (init_eliminable_invariants): Likewise for param "first" and local
3267 "insn".
3268 (fixup_eh_region_note): Likewise for param "insn".
3269 (reload_as_needed): Likewise for locals "prev", "insn",
3270 "old_next", "old_prev", "next".
3271 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3272 "last".
3273 (reload_inheritance_insn): Strengthen elements of this array from
3274 rtx to rtx_insn *.
3275 (failed_reload): Likewise for param "insn".
3276 (choose_reload_regs): Likewise for local "insn". Replace use of
3277 NULL_RTX with NULL when referring to an insn.
3278 (input_reload_insns): Strengthen elements of this array from rtx
3279 to rtx_insn *.
3280 (other_input_address_reload_insns): Likewise for this global.
3281 (other_input_reload_insns): Likewise for this global.
3282 (input_address_reload_insns): Likwise for the elements of this
3283 array.
3284 (inpaddr_address_reload_insns): Likwise for the elements of this
3285 array.
3286 (output_reload_insns): Likewise for the elements of this array.
3287 (output_address_reload_insns): Likewise for the elements of this
3288 array.
3289 (outaddr_address_reload_insns): Likewise for the elements of this
3290 array.
3291 (operand_reload_insns): Likewise for this global.
3292 (other_operand_reload_insns): Likewise for this global.
3293 (other_output_reload_insns): Likewise for the elements of this
3294 array.
3295 (new_spill_reg_store): Likewise for the elements of this
3296 array.
3297 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3298 Strengthen local "where" from rtx * to rtx_insn **.
3299 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3300 from rtx to rtx_insn *.
3301 (do_input_reload): Likewise for local "insn".
3302 (do_output_reload): Likewise for local "insn".
3303 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3304 (emit_insn_if_valid_for_reload): Likewise for return type and local
3305 "last". Add checked cast to rtx_insn when returning "insn" since
3306 this has been through emit_insn.
3307 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3308 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3309 returning "insn" since it's been through
3310 emit_insn_if_valid_for_reload at this point.
3311 (delete_output_reload): Strengthen param "insn" and locals
3312 "output_reload_insn", "i2" from rtx to rtx_insn *.
3313 (delete_address_reloads): Likewise for params "dead_insn",
3314 "current_insn" and locals "prev", "next".
3315 (delete_address_reloads_1): Likewise for params "dead_insn",
3316 "current_insn" and locals "prev", "i2".
3317 (inc_for_reload): Likewise for locals "last", "add_insn".
3318 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3319 rtx_insn *.
3320
3321 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3322 param of this duplicate of the prototype from reload.h
3323
3324 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3325
3326 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3327 rtx to rtx_insn *.
3328 (regstat_bb_compute_calls_crossed): Likewise.
3329
3330 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3331
3332 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3333 to rtx_insn *.
3334 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3335 with an insn.
3336 (regrename_analyze): Strengthen local "insn" from rtx to
3337 rtx_insn *.
3338 (scan_rtx_reg): Likewise for param "insn".
3339 (scan_rtx_address): Likewise.
3340 (scan_rtx): Likewise.
3341 (restore_operands): Likewise.
3342 (record_out_operands): Likewise.
3343 (build_def_use): Likewise for local "insn". Replace use of
3344 NULL_RTX with NULL when dealing with an insn.
3345
3346 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3347
3348 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3349 * reginfo.c (reg_scan): Likewise, also for local "insn".
3350 (reg_scan_mark_refs): Likewise for param "insn".
3351 (init_subregs_of_mode): Likewise for local "insn".
3352
3353 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3354
3355 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3356 "insn" from rtx to rtx_insn *.
3357 (replace_oldest_value_reg): Likewise for param "insn".
3358 (replace_oldest_value_addr): Likewise.
3359 (replace_oldest_value_mem): Likewise.
3360 (apply_debug_insn_changes): Likewise for local "last_insn".
3361 (copyprop_hardreg_forward_1): Likewise for local "insn".
3362
3363 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3364
3365 * reg-stack.c (next_flags_user): Strengthen return type and param
3366 "insn" from rtx to rtx_insn *.
3367 (straighten_stack): Likewise for param "insn".
3368 (check_asm_stack_operands): Likewise.
3369 (remove_regno_note): Likewise.
3370 (emit_pop_insn): Likewise for return type, param "insn", local
3371 "pop_insn".
3372 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3373 "limit" from rtx to rtx_insn *.
3374 (swap_to_top): Likewise for param "insn".
3375 (move_for_stack_reg): Likewise.
3376 (move_nan_for_stack_reg): Likewise.
3377 (swap_rtx_condition): Likewise.
3378 (compare_for_stack_reg): Likewise.
3379 (subst_all_stack_regs_in_debug_insn): Likewise.
3380 (subst_stack_regs_pat): Likewise, and local "insn2".
3381 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3382 rtx_insn *.
3383 (subst_stack_regs): Likewise.
3384 (change_stack): Likewise.
3385 (convert_regs_1): Likewise for locals "insn", "next".
3386
3387 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3388
3389 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3390 rtx_insn *.
3391 (combine_set_extension): Likewise for param "curr_insn".
3392 (transform_ifelse): Likewise for param "def_insn".
3393 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3394 from vec<rtx> * to vec<rtx_insn *> *.
3395 (is_cond_copy_insn): Likewise for param "insn".
3396 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3397 to vec<rtx_insn *>.
3398 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3399 local "def_insn" from rtx to rtx_insn *.
3400 (get_sub_rtx): Likewise for param "def_insn".
3401 (merge_def_and_ext): Likewise.
3402 (combine_reaching_defs): Likewise.
3403 (add_removable_extension): Likewise for param "insn".
3404 (find_removable_extensions): Likewise for local "insn".
3405 (find_and_remove_re): Likewise for locals "curr_insn" and
3406 "def_insn". Strengthen locals "reinsn_del_list" and
3407 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3408
3409 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3410
3411 * recog.c (split_insn): Strengthen param "insn" and locals
3412 "first", "last" from rtx to rtx_insn *.
3413 (split_all_insns): Likewise for locals "insn", "next".
3414 (split_all_insns_noflow): Likewise.
3415
3416 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3417
3418 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3419 const rtx_insn *.
3420 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3421 (debug_rtx_find): Likewise for param 1 "x".
3422
3423 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3424 const_rtx to const rtx_insn *. Likewise for local "insn".
3425 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3426 (debug_rtx_find): Likewise for param 1 "x".
3427 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3428 from const_rtx to const rtx_insn * within the appropriate cases of
3429 the switch statement.
3430
3431 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3432 Strengthen local "insns" from rtx to rtx_insn * since this is
3433 passed to a call to debug_rtx_list.
3434
3435 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3436
3437 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3438 to rtx_insn *.
3439
3440 * function.c (stack_protect_epilogue): Add checked cast to
3441 rtx_insn for now when invoking predict_insn_def.
3442
3443 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3444 rtx_insn *.
3445 (predict_insn_def): Likewise.
3446 (rtl_predict_edge): Likewise for local "last_insn".
3447 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3448 const rtx_insn *.
3449 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3450 to rtx_insn *.
3451 (bb_estimate_probability_locally): Likewise for local "last_insn".
3452 (expensive_function_p): Likewise for local "insn".
3453
3454 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3455 local "jmp", since this is used when invoking predict_insn_def.
3456
3457 2014-08-22 Marek Polacek <polacek@redhat.com>
3458
3459 PR c++/62199
3460 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3461
3462 2014-08-22 Marek Polacek <polacek@redhat.com>
3463
3464 PR c/61271
3465 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3466 a comparison in parens.
3467 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3468 in parens.
3469
3470 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3471
3472 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3473 rtx_insn *.
3474
3475 * cprop.c (fis_get_condition): Likewise.
3476
3477 * postreload.c (reload_cse_regs): Likewise for param "first".
3478 (reload_cse_simplify): Likewise for param "insn".
3479 (reload_cse_regs_1): Likewise for local "insn".
3480 (reload_cse_simplify_set): Likewise for param "insn".
3481 (reload_cse_simplify_operands): Likewise.
3482 (struct reg_use): Likewise for field "insn".
3483 (reload_combine_purge_insn_uses): Likewise for param "insn".
3484 (fixup_debug_insns): Likewise for params "from", "to" and local
3485 "insn".
3486 (try_replace_in_use): Likewise for local "use_insn".
3487 (reload_combine_recognize_const_pattern): Likewise for param
3488 "insn" and locals "add_moved_after_insn", "use_insn".
3489 (reload_combine_recognize_pattern): Likewise for param "insn" and
3490 local "prev".
3491 (reload_combine): Likewise for locals "insn", "prev".
3492 (reload_combine_note_use): Likewise for param "insn".
3493 (move2add_use_add2_insn): Likewise.
3494 (move2add_use_add3_insn): Likewise.
3495 (reload_cse_move2add): Likewise, also for local "next".
3496 (move2add_note_store): Likewise for local "insn".
3497
3498 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3499
3500 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3501 rtx to rtx_insn *.
3502 (struct unoccr): Likewise.
3503 (struct modifies_mem): Likewise.
3504 (alloc_mem): Likewise for local "insn".
3505 (insert_expr_in_table): Likewise for param "insn".
3506 (dump_expr_hash_table_entry): Likewise for local "insn".
3507 (oprs_unchanged_p): Likewise for param "insn".
3508 (load_killed_in_block_p): Likewise for local "setter".
3509 (record_last_reg_set_info): Likewise for param "insn".
3510 (record_last_reg_set_info_regno): Likewise.
3511 (record_last_mem_set_info): Likewise.
3512 (record_last_set_info): Likewise for local "last_set_insn".
3513 (record_opr_changes): Likewise for param "insn".
3514 (hash_scan_set): Likewise.
3515 (compute_hash_table): Likewise for local "insn".
3516 (get_avail_load_store_reg): Likewise for param "insn".
3517 (eliminate_partially_redundant_load): Likewise, also for locals
3518 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3519 RTX for insns.
3520 (eliminate_partially_redundant_loads): Likewise for local "insn".
3521
3522 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3523
3524 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3525 rtx to rtx_insn *.
3526 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3527 (expand_twoval_unop): Likewise for locals entry_last", "last".
3528 (expand_twoval_binop): Likewise.
3529 (expand_twoval_binop_libfunc): Likewise for local "insns".
3530 (widen_leading): Likewise for local "last".
3531 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3532 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3533 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3534 (expand_parity): Likewise for locals "last" and "seq".
3535 (expand_ffs): Likewise for local "seq". Strengthen local
3536 "nonzero_label" from rtx to rtx_code_label *.
3537 (expand_absneg_bit): Strengthen local "insns" from rtx to
3538 rtx_insn *.
3539 (expand_unop_direct): Likewise for local "last".
3540 (expand_unop): Likewise for locals "last", "insns".
3541 (expand_abs_nojump): Likewise for local "last".
3542 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3543 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3544 rtx_insn *.
3545 (expand_copysign_absneg): Strengthen local "label" from rtx to
3546 rtx_code_label *.
3547 (expand_copysign_bit): Strengthen local "insns" from rtx to
3548 rtx_insn *.
3549 (struct no_conflict_data): Likewise for fields "first", "insn".
3550 (emit_libcall_block_1): Likewise for param "insns" and locals
3551 "next", "last", "insn".
3552 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3553 on "insns" when invoking emit_libcall_block_1. Ultimately we
3554 want to strengthen insns itself.
3555 (prepare_cmp_insn): Strengthen local "last" from rtx to
3556 rtx_insn *.
3557 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3558 (prepare_float_lib_cmp): Likewise for local "insns".
3559 (emit_conditional_move): Likewise for local "last".
3560 (emit_conditional_add): Likewise.
3561 (have_sub2_insn): Likewise for local "seq".
3562 (expand_float): Likewise for local "insns". Strengthen locals
3563 "label", "neglabel" from rtx to rtx_code_label *.
3564 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3565 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3566 (expand_fixed_convert): Likewise for local "insns" (to
3567 rtx_insn *).
3568 (expand_sfix_optab): Likewise for local "last".
3569 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3570 to rtx_code_label *.
3571 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3572 from rtx to rtx_insn *.
3573 (expand_atomic_fetch_op): Likewise for local "insn".
3574 (maybe_legitimize_operand_same_code): Likewise for local "last".
3575 (maybe_legitimize_operands): Likewise.
3576
3577 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3578
3579 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3580 "insn" from rtx to rtx_insn *.
3581 (ps_rtl_insn): Likewise for return type.
3582 (doloop_register_get): Likewise for params "head", "tail" and
3583 locals "insn", "first_insn_not_to_check".
3584 (schedule_reg_move): Likewise for local "this_insn".
3585 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3586 of gen_move_insn for now.
3587 (reset_sched_times): Strengthen local "insn" from rtx to
3588 rtx_insn *.
3589 (permute_partial_schedule): Likewise.
3590 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3591 (dump_insn_location): Likewise for param "insn".
3592 (loop_canon_p): Likewise for local "insn".
3593 (sms_schedule): Likewise.
3594 (print_partial_schedule): Likewise.
3595 (ps_has_conflicts): Likewise.
3596
3597 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3598
3599 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3600 "tailp" from rtx * to rtx_insn **.
3601
3602 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3603 from rtx to rtx_insn *.
3604 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3605 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3606 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3607 rtx to rtx_insn *.
3608 * modulo-sched.c (const_iteration_count): Strengthen return type
3609 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3610 use of NULL_RTX with NULL when working with insns.
3611 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3612 to rtx_insn *.
3613 (sms_schedule): Likewise.
3614 * sched-rgn.c (init_ready_list): Likewise, also for locals
3615 "src_head" and "src_next_tail".
3616 (compute_block_dependences): Likewise.
3617 (free_block_dependencies): Likewise.
3618 (debug_rgn_dependencies): Likewise.
3619 (free_rgn_deps): Likewise.
3620 (compute_priorities): Likewise.
3621 (schedule_region): Likewise.
3622 * sel-sched.c (find_ebb_boundaries): Likewise.
3623
3624 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3625 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3626
3627 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3628
3629 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3630 from rtx to rtx_insn *.
3631 (new_seginfo): Likewise for param "insn".
3632 (create_pre_exit): Likewise for locals "last_insn",
3633 "before_return_copy", "return_copy".
3634 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3635 "mode_set".
3636
3637 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3638
3639 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3640 from rtx to rtx_insn *.
3641 (lra_push_insn): Likewise for 1st param.
3642 (lra_push_insn_and_update_insn_regno_info): Likewise.
3643 (lra_pop_insn): Likewise for return type.
3644 (lra_invalidate_insn_data): Likewise for 1st param.
3645 (lra_set_insn_deleted): Likewise.
3646 (lra_delete_dead_insn): Likewise.
3647 (lra_process_new_insns): Likewise for first 3 params.
3648 (lra_set_insn_recog_data): Likewise for 1st param.
3649 (lra_update_insn_recog_data): Likewise.
3650 (lra_set_used_insn_alternative): Likewise.
3651 (lra_invalidate_insn_regno_info): Likewise.
3652 (lra_update_insn_regno_info): Likewise.
3653 (lra_former_scratch_operand_p): Likewise.
3654 (lra_eliminate_regs_1): Likewise.
3655 (lra_get_insn_recog_data): Likewise.
3656
3657 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3658 rtx to rtx_insn *.
3659
3660 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3661 "mv1" and "mv2".
3662 (substitute_within_insn): New.
3663 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3664 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3665 Replace call to "substitute" with call to substitute_within_insn.
3666
3667 * lra-constraints.c (curr_insn): Strengthen from rtx to
3668 rtx_insn *.
3669 (get_equiv_with_elimination): Likewise for param "insn".
3670 (match_reload): Strengthen params "before" and "after" from rtx *
3671 to rtx_insn **.
3672 (emit_spill_move): Likewise for return type. Add a checked cast
3673 to rtx_insn * on result of gen_move_insn for now.
3674 (check_and_process_move): Likewise for local "before". Replace
3675 NULL_RTX with NULL when referring to insns.
3676 (process_addr_reg): Strengthen params "before" and "after" from
3677 rtx * to rtx_insn **.
3678 (insert_move_for_subreg): Likewise.
3679 (simplify_operand_subreg): Strengthen locals "before" and "after"
3680 from rtx to rtx_insn *.
3681 (process_address_1): Strengthen params "before" and "after" from
3682 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3683 rtx to rtx_insn *.
3684 (process_address): Strengthen params "before" and "after" from
3685 rtx * to rtx_insn **.
3686 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3687 (curr_insn_transform): Strengthen locals "before" and "after"
3688 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3689 to insns.
3690 (loc_equivalence_callback): Update cast of "data", changing
3691 resulting type from rtx to rtx_insn *.
3692 (substitute_pseudo_within_insn): New.
3693 (inherit_reload_reg): Strengthen param "insn" from rtx to
3694 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3695 NULL when referring to insns. Add a checked cast to rtx_insn *
3696 when using usage_insn to invoke lra_update_insn_regno_info.
3697 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3698 likewise for locals "restore", "save". Add checked casts to
3699 rtx_insn * when using usage_insn to invoke
3700 lra_update_insn_regno_info and lra_process_new_insns. Replace
3701 NULL_RTX with NULL when referring to insns.
3702 (split_if_necessary): Strengthen param "insn" from rtx to
3703 rtx_insn *.
3704 (update_ebb_live_info): Likewise for params "head", "tail" and local
3705 "prev_insn".
3706 (get_last_insertion_point): Likewise for return type and local "insn".
3707 (get_live_on_other_edges): Likewise for local "last".
3708 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3709 "prev_insn", "next_insn", "restore".
3710 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3711 (undo_optional_reloads): Likewise for local "insn".
3712
3713 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3714 "insn".
3715 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3716 insns.
3717 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3718 rtx_insn *.
3719 (spill_pseudos): Likewise for local "insn".
3720 (init_elimination): Likewise.
3721 (process_insn_for_elimination): Likewise for param "insn".
3722
3723 * lra-lives.c (curr_insn): Likewise.;
3724
3725 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3726 (remove_pseudos): Likewise for param "insn".
3727 (spill_pseudos): Likewise for local "insn".
3728 (lra_final_code_change): Likewise for locals "insn", "curr".
3729
3730 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3731 (lra_set_insn_deleted): Likewise.
3732 (lra_delete_dead_insn): Likewise, and for local "prev".
3733 (new_insn_reg): Likewise for param "insn".
3734 (lra_set_insn_recog_data): Likewise.
3735 (lra_update_insn_recog_data): Likewise.
3736 (lra_set_used_insn_alternative): Likewise.
3737 (get_insn_freq): Likewise.
3738 (invalidate_insn_data_regno_info): Likewise.
3739 (lra_invalidate_insn_regno_info): Likewise.
3740 (lra_update_insn_regno_info): Likewise.
3741 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3742 vec<rtx_insn *>.
3743 (lra_push_insn_1): Strengthen param "insn" from rtx to
3744 rtx_insn *.
3745 (lra_push_insn): Likewise.
3746 (lra_push_insn_and_update_insn_regno_info): Likewise.
3747 (lra_pop_insn): Likewise for return type and local "insn".
3748 (push_insns): Likewise for params "from", "to", and local "insn".
3749 (setup_sp_offset): Likewise for params "from", "last" and locals
3750 "before", "insn".
3751 (lra_process_new_insns): Likewise for params "insn", "before",
3752 "after" and local "last".
3753 (struct sloc): Likewise for field "insn".
3754 (lra_former_scratch_operand_p): Likewise for param "insn".
3755 (remove_scratches): Likewise for locals "insn", "last".
3756 (check_rtl): Likewise for local "insn".
3757 (add_auto_inc_notes): Likewise for param "insn".
3758 (update_inc_notes): Likewise for local "insn".
3759 (lra): Replace NULL_RTX with NULL when referring to insn.
3760
3761 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3762
3763 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3764 to rtx_insn *.
3765 (resolve_reg_notes): Likewise.
3766 (resolve_simple_move): Likewise for return type, param "insn", and
3767 locals "insns", "minsn".
3768 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3769 (resolve_use): Likewise.
3770 (resolve_debug): Likewise.
3771 (find_decomposable_shift_zext): Likewise.
3772 (resolve_shift_zext): Likewise for return type, param "insn", and
3773 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3774 (decompose_multiword_subregs): Likewise for local "insn",
3775 "orig_insn", "decomposed_shift", "end".
3776
3777 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3778
3779 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3780 param "insns" from rtx to rtx_insn *.
3781
3782 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3783 rtx to rtx_insn *.
3784 (struct iv_to_split): Likewise.
3785 (loop_exit_at_end_p): Likewise for local "insn".
3786 (split_edge_and_insert): Likewise for param "insns".
3787 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3788 and locals "seq", "jump".
3789 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3790 "branch_code"; update invocations of compare_and_jump_seq to
3791 eliminate NULL_RTX in favor of NULL.
3792 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3793 rtx to rtx_insn *.
3794 (reset_debug_uses_in_loop): Likewise.
3795 (analyze_insn_to_expand_var): Likewise for param "insn".
3796 (analyze_iv_to_split_insn): Likewise.
3797 (analyze_insns_in_loop): Likewise for local "insn".
3798 (insert_base_initialization): Likewise for param
3799 "insn" and local "seq".
3800 (split_iv): Likewise for param "insn" and local "seq".
3801 (expand_var_during_unrolling): Likewise for param "insn".
3802 (insert_var_expansion_initialization): Likewise for local "seq".
3803 (combine_var_copies_in_loop_exit): Likewise.
3804 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3805 "insn".
3806 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3807 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3808 "next".
3809
3810 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3811
3812 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3813 rtx_insn *.
3814 (iv_analyze_result): Likewise.
3815 (iv_analyze_expr): Likewise.
3816 (biv_p): Likewise.
3817
3818 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3819 local "def_insn" from rtx to rtx_insn *.
3820 (get_biv_step_1): Likewise for local "insn".
3821 (iv_analyze_expr): Likewise for param "insn".
3822 (iv_analyze_def): Likewise for local "insn".
3823 (iv_analyze_op): Likewise for param "insn".
3824 (iv_analyze): Likewise.
3825 (iv_analyze_result): Likewise.
3826 (biv_p): Likewise.
3827 (suitable_set_for_replacement): Likewise.
3828 (simplify_using_initial_values): Likewise for local "insn".
3829 (iv_number_of_iterations): Likewise for param "insn".
3830 (check_simple_exit): Add checked cast to rtx_insn when invoking
3831 iv_number_of_iterations for now (until get_condition is
3832 strengthened).
3833
3834 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3835 "insn" from rtx to rtx_insn *.
3836 (analyze_insns_in_loop): Likewise for local "insn".
3837
3838 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3839
3840 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3841 to rtx_insn *.
3842 (struct invariant): Likewise.
3843 (hash_invariant_expr_1): Likewise for param "insn".
3844 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3845 (find_exits): Likewise for local "insn".
3846 (create_new_invariant): Likewise for param "insn".
3847 (check_dependencies): Likewise.
3848 (find_invariant_insn): Likewise.
3849 (record_uses): Likewise.
3850 (find_invariants_insn): Likewise.
3851 (find_invariants_bb): Likewise for local "insn".
3852 (get_pressure_class_and_nregs): Likewise for param "insn".
3853 (calculate_loop_reg_pressure): Likewise for local "insn".
3854
3855 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3856
3857 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3858 to rtx_insn *.
3859 (add_test): Likewise for locals "seq", "jump".
3860 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3861
3862 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3863
3864 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3865 rtx_insn *.
3866 (rebuild_jump_labels_chain): Likewise for param "chain".
3867
3868 * cfgexpand.c (pass_expand::execute): Add checked cast to
3869 rtx_insn * when calling rebuild_jump_labels_chain in region where
3870 we know e->insns.r is non-NULL.
3871
3872 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3873 rtx_insn *.
3874 (rebuild_jump_labels): Likewise.
3875 (rebuild_jump_labels_chain): Likewise for param "chain".
3876 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3877 (init_label_info): Likewise for param "f".
3878 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3879 "prev_nonjump_insn".
3880 (mark_all_labels): Likewise for param "f" and locals "insn",
3881 "prev_nonjump_insn".
3882
3883 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3884
3885 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3886 from rtx to rtx_insn *insn.
3887 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3888 (ira_add_allocno_copy): Likewise.
3889 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3890 rtx to rtx_insn *.
3891 (ira_create_copy): Likewise.
3892 (ira_add_allocno_copy): Likewise.
3893 (create_bb_allocnos): Likewise for local "insn".
3894 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3895 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3896 process_regs_for_copy for rtx_insn * param.
3897 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3898 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3899 process_regs_for_copy for rtx_insn * param.
3900 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3901 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3902 (record_operand_costs): Likewise.
3903 (scan_one_insn): Likewise for return type, and for param "insn".
3904 (process_bb_for_costs): Likewise for local "insn".
3905 (process_bb_node_for_hard_reg_moves): Likewise.
3906 * ira-emit.c (struct move): Likewise for field "insn".
3907 (create_move): Eliminate use of NULL_RTX when dealing with an
3908 rtx_insn *.
3909 (emit_move_list): Strengthen return type and locals "result",
3910 "insn" from rtx to rtx_insn *insn.
3911 (emit_moves): Likewise for locals "insns", "tmp".
3912 (ira_emit): Likewise for local "insn".
3913 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3914 "insn".
3915 (find_call_crossed_cheap_reg): Likewise.
3916 (process_bb_node_lives): Likewise for local "insn".
3917 * ira.c (decrease_live_ranges_number): Likewise.
3918 (compute_regs_asm_clobbered): Likewise.
3919 (build_insn_chain): Likewise.
3920 (find_moveable_pseudos): Likewise, also locals "def_insn",
3921 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3922 to rtx_insn **. Add a checked cast when assigning from
3923 "closest_use" into closest_uses array in a region where we know
3924 it's a non-NULL insn.
3925 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3926 to rtx_insn *.
3927 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3928 "last_interesting_insn", "uin".
3929 (move_unallocated_pseudos): Likewise for locals "def_insn",
3930 "move_insn", "newinsn".
3931
3932 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3933
3934 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3935 Strengthen locals "done_label", "do_error" from rtx to
3936 rtx_code_label *.
3937 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3938 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3939 rtx_code_label *.
3940 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3941 "done_label", "do_error" to rtx_code_label * and local "last" to
3942 rtx_insn *.
3943 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3944 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3945 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3946 "after_lopart_neg", "do_overflow", "hipart_different" to
3947 rtx_code_label * and local "last" to rtx_insn *.
3948
3949 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3950
3951 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3952 "insn" and "move_insn" from rtx to rtx_insn *.
3953
3954 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3955
3956 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3957 rtx_insn *.
3958 (cheap_bb_rtx_cost_p): Likewise.
3959 (first_active_insn): Likewise for return type and local "insn".
3960 (last_active_insn): Likewise for return type and locals "insn",
3961 "head".
3962 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3963 "insn_b".
3964 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3965 "seq".
3966 (noce_try_move): Likewise for local "seq".
3967 (noce_try_store_flag): Likewise.
3968 (noce_try_store_flag_constants): Likewise.
3969 (noce_try_addcc): Likewise.
3970 (noce_try_store_flag_mask): Likewise.
3971 (noce_try_cmove): Likewise.
3972 (noce_try_minmax): Likewise.
3973 (noce_try_abs): Likewise.
3974 (noce_try_sign_mask): Likewise.
3975 (noce_try_bitop): Likewise.
3976 (noce_can_store_speculate_p): Likewise for local "insn".
3977 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3978 seq".
3979 (check_cond_move_block): Likewise for local "insn".
3980 (cond_move_convert_if_block): Likewise.
3981 (cond_move_process_if_block): Likewise for locals "seq",
3982 "loc_insn".
3983 (noce_find_if_block): Likewise for local "jump".
3984 (merge_if_block): Likewise for local "last".
3985 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3986 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3987 (block_has_only_trap): Likewise for return type and local "trap".
3988 (find_if_case_1): Likewise for local "jump".
3989 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3990 "insn".
3991
3992 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3993
3994 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3995 "last_insn", "loop_end" from rtx to rtx_insn *.
3996
3997 * hw-doloop.c (scan_loop): Likewise for local "insn".
3998 (discover_loop): Likewise for param "tail_insn".
3999 (discover_loops): Likewise for local "tail".
4000
4001 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4002 cast to rtx_insn * when assigning from an rtx local to a
4003 hwloop_info's "last_insn" field.
4004
4005 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4006
4007 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4008 (add_delay_dependencies): Strengthen local "pro" from rtx to
4009 rtx_insn *.
4010 (recompute_todo_spec): Likewise.
4011 (dep_cost_1): Likewise for locals "insn", "used".
4012 (schedule_insn): Likewise for local "dbg".
4013 (schedule_insn): Likewise for locals "pro", "next".
4014 (unschedule_insns_until): Likewise for local "con".
4015 (restore_pattern): Likewise for local "next".
4016 (estimate_insn_tick): Likewise for local "pro".
4017 (resolve_dependencies): Likewise for local "next".
4018 (fix_inter_tick): Likewise.
4019 (fix_tick_ready): Likewise for local "pro".
4020 (add_to_speculative_block): Likewise for locals "check", "twin",
4021 "pro".
4022 (sched_extend_bb): Likewise for locals "end", "insn".
4023 (init_before_recovery): Likewise for local "x".
4024 (sched_create_recovery_block): Likewise for local "barrier".
4025 (create_check_block_twin): Likewise for local "pro".
4026 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4027 "consumer".
4028 (unlink_bb_notes): Update for change to type of bb_header.
4029 Strengthen locals "prev", "label", "note", "next" from rtx to
4030 rtx_insn *.
4031 (clear_priorities): Likewise for local "pro".
4032
4033 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4034
4035 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4036 rtx_insn *.
4037 (test_insn): Likewise for this global.
4038 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4039 const rtx_insn *.
4040 (oprs_anticipatable_p): Likewise.
4041 (oprs_available_p): Likewise.
4042 (insert_expr_in_table): Strengthen param "insn" from rtx to
4043 rtx_insn *.
4044 (hash_scan_set): Likewise.
4045 (hash_scan_clobber): Likewise.
4046 (hash_scan_call): Likewise.
4047 (hash_scan_insn): Likewise.
4048 (compute_hash_table_work): Likewise for local "insn".
4049 (process_insert_insn): Likewise for return type and local "pat".
4050 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4051 "pat", "pat_end", "maybe_cc0_setter".
4052 (pre_edge_insert): Likewise for local "insn".
4053 (pre_insert_copy_insn): Likewise for param "insn".
4054 (pre_insert_copies): Likewise for local "insn".
4055 (struct set_data): Likewise for field "insn".
4056 (single_set_gcse): Likewise for param "insn".
4057 (gcse_emit_move_after): Likewise.
4058 (pre_delete): Likewise for local "insn".
4059 (update_bb_reg_pressure): Likewise for param "from" and local
4060 "insn".
4061 (should_hoist_expr_to_dom): Likewise for param "from".
4062 (hoist_code): Likewise for local "insn".
4063 (get_pressure_class_and_nregs): Likewise for param "insn".
4064 (calculate_bb_reg_pressure): Likewise for local "insn".
4065 (compute_ld_motion_mems): Likewise.
4066
4067 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4068
4069 * genpeep.c (main): Rename param back from "uncast_ins1" to
4070 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4071 checked cast.
4072
4073 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4074
4075 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4076
4077 PR target/62195
4078 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4079 documentation to state it is only for VSX operations.
4080
4081 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4082 constraint only active if VSX.
4083
4084 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4085 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4086 (lfiwzx): Likewise.
4087
4088 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4089
4090 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4091 Strengthen local "insn" from rtx to rtx_insn *.
4092 (use_killed_between): Likewise for param "target_insn".
4093 (all_uses_available_at): Likewise for param "target_insn" and
4094 local "next".
4095 (update_df_init): Likewise for params "def_insn", "insn".
4096 (update_df): Likewise for param "insn".
4097 (try_fwprop_subst): Likewise for param "def_insn" and local
4098 "insn".
4099 (free_load_extend): Likewise for param "insn".
4100 (forward_propagate_subreg): Likewise for param "def_insn" and
4101 local "use_insn".
4102 (forward_propagate_asm): Likewise for param "def_insn" and local
4103 "use_insn".
4104 (forward_propagate_and_simplify): Likewise for param "def_insn"
4105 and local "use_insn".
4106 (forward_propagate_into): Likewise for locals "def_insn" and
4107 "use_insn".
4108
4109 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4110
4111 * function.c (emit_initial_value_sets): Strengthen local "seq"
4112 from rtx to rtx_insn *.
4113 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4114 local "seq".
4115 (instantiate_virtual_regs): Likewise for local "insn".
4116 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4117 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4118 (expand_function_end): Likewise for locals "insn" and "seq".
4119 (epilogue_done): Likewise for local "insn".
4120 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4121 "last", "trial".
4122 (reposition_prologue_and_epilogue_notes): Likewise for locals
4123 "insn", "last", "note", "first".
4124 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4125 (pass_match_asm_constraints::execute): Likewise for local "insn".
4126
4127 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4128
4129 * output.h (final_scan_insn): Strengthen return type from rtx to
4130 rtx_insn *.
4131 (final_forward_branch_p): Likewise for param.
4132 (current_output_insn): Likewise for this global.
4133
4134 * final.c (rtx debug_insn): Likewise for this variable.
4135 (current_output_insn): Likewise.
4136 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4137 adding "insn" back in as an rtx_insn * with a checked cast, so
4138 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4139 first param.
4140 (compute_alignments): Strengthen local "label" from rtx to
4141 rtx_insn *.
4142 (shorten_branches): Rename param from "first" to "uncast_first",
4143 introducing a new local rtx_insn * "first" using a checked cast to
4144 effectively strengthen "first" from rtx to rtx_insn * without
4145 affecting the type signature. Strengthen locals "insn", "seq",
4146 "next", "label" from rtx to rtx_insn *.
4147 (change_scope): Strengthen param "orig_insn" and local "insn" from
4148 rtx to rtx_insn *.
4149 (final_start_function): Rename param from "first" to "uncast_first",
4150 introducing a new local rtx_insn * "first" using a checked cast to
4151 effectively strengthen "first" from rtx to rtx_insn * without
4152 affecting the type signature. Strengthen local "insn" from rtx to
4153 rtx_insn *.
4154 (dump_basic_block_info): Strengthen param "insn" from rtx to
4155 rtx_insn *.
4156 (final): Rename param from "first" to "uncast_first",
4157 introducing a new local rtx_insn * "first" using a checked cast to
4158 effectively strengthen "first" from rtx to rtx_insn * without
4159 affecting the type signature. Strengthen locals "insn", "next"
4160 from rtx to rtx_insn *.
4161 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4162 rtx_insn *.
4163 (call_from_call_insn): Strengthen param "insn" from rtx to
4164 rtx_call_insn *.
4165 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4166 introducing a new local rtx_insn * "insn" using a checked cast to
4167 effectively strengthen "insn" from rtx to rtx_insn * without
4168 affecting the type signature. Strengthen return type and locals
4169 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4170 now-redundant checked cast to rtx_insn * from both invocations of
4171 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4172 introducing a local "call_insn" for use when invoking
4173 call_from_call_insn.
4174 (notice_source_line): Strengthen param "insn" from rtx to
4175 rtx_insn *.
4176 (leaf_function_p): Likewise for local "insn".
4177 (final_forward_branch_p): Likewise.
4178 (leaf_renumber_regs): Likewise for param "first".
4179 (rest_of_clean_state): Likewise for locals "insn" and "next".
4180 (self_recursive_call_p): Likewise for param "insn".
4181 (collect_fn_hard_reg_usage): Likewise for local "insn".
4182 (get_call_fndecl): Likewise for param "insn".
4183 (get_call_cgraph_rtl_info): Likewise.
4184 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4185 introducing a new local rtx_insn * "insn" using a checked cast to
4186 effectively strengthen "insn" from rtx to rtx_insn * without
4187 affecting the type signature.
4188
4189 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4190 cast when assigning from param "insn" to current_output_insn.
4191 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4192 so that we can assign it back to current_output_insn.
4193
4194 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4195
4196 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4197 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4198 atmxt540s and atmxt540sreva devices.
4199 * config/avr/avr-tables.opt: Regenerate.
4200 * config/avr/t-multilib: Regenerate.
4201 * doc/avr-mmcu.texi: Regenerate.
4202
4203 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4204
4205 * expr.c (convert_move): Strengthen local "insns" from rtx to
4206 rtx_insn *.
4207 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4208 "top_label" from rtx to rtx_code_label *.
4209 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4210 rtx_insn *.
4211 (emit_single_push_insn): Likewise for locals "prev", "last".
4212 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4213 to rtx_code_label *.
4214 (store_constructor): Likewise for locals "loop_start", "loop_end".
4215 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4216 rtx_insn *.
4217 (expand_expr_real_2): Likewise.
4218 (expand_expr_real_1): Strengthen local "label" from rtx to
4219 rtx_code_label *.
4220
4221 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4222
4223 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4224 from rtx to rtx_insn *.
4225 (store_bit_field_1): Likewise.
4226 (extract_bit_field_1): Likewise.
4227 (expand_mult_const): Likewise for local "insns".
4228 (expmed_mult_highpart): Strengthen local "label" from rtx to
4229 rtx_code_label *.
4230 (expand_smod_pow2): Likewise.
4231 (expand_sdiv_pow2): Likewise.
4232 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4233 rtx_insn *. Strengthen locals "label", "label1", "label2",
4234 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4235 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4236 (emit_store_flag): Likewise.
4237 (emit_store_flag_force): Strengthen local "label" from rtx to
4238 rtx_code_label *.
4239 (do_cmp_and_jump): Likewise for param "label".
4240
4241 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4242
4243 * explow.c (force_reg): Strengthen local "insn" from rtx to
4244 rtx_insn *.
4245 (adjust_stack_1): Likewise.
4246 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4247 "final_label", "available_label", "space_available" from rtx to
4248 rtx_code_label *.
4249 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4250 (anti_adjust_stack_and_probe): Likewise.
4251
4252 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4253
4254 * except.h (sjlj_emit_function_exit_after): Strengthen param
4255 "after" from rtx to rtx_insn *. This is only called with
4256 result of get_last_insn (in function.c) so type-change should be
4257 self-contained.
4258
4259 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4260 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4261 to rtx_insn *. These fields are only used from except.c so this
4262 type-change should be self-contained to this patch.
4263
4264 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4265 local "last" from rtx to rtx_insn *.
4266 (dw2_build_landing_pads): Likewise for local "seq".
4267 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4268 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4269 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4270 rtx to rtx_insn *.
4271 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4272 to rtx_insn *.
4273 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4274 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4275 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4276 referring to an insn. Strengthen local "dispatch_label" from
4277 rtx to rtx_code_label *.
4278 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4279 rtx_insn *.
4280 (expand_eh_return): Strengthen local "around_label" from
4281 rtx to rtx_code_label *.
4282 (convert_to_eh_region_ranges): Strengthen locals "iter",
4283 "last_action_insn", "first_no_action_insn",
4284 "first_no_action_insn_before_switch",
4285 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4286
4287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4288
4289 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4290 from rtx to rtx_insn *.
4291 (cached_next_real_insn): Likewise.
4292 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4293 working with insns.
4294 (dwarf2out_var_location): Strengthen locals "next_real",
4295 "next_note", "expected_next_loc_note", "last_start", "insn" from
4296 rtx to rtx_insn *.
4297
4298 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4299
4300 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4301 from rtx to rtx_insn *.
4302 (create_pseudo_cfg): Likewise for local "insn".
4303
4304 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4305
4306 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4307 from rtx to rtx_insn *.
4308 (df_bb_regno_last_def_find): Likewise.
4309
4310 * df-problems.c (df_rd_bb_local_compute): Likewise.
4311 (df_lr_bb_local_compute): Likewise.
4312 (df_live_bb_local_compute): Likewise.
4313 (df_chain_remove_problem): Likewise.
4314 (df_chain_create_bb): Likewise.
4315 (df_word_lr_bb_local_compute): Likewise.
4316 (df_remove_dead_eq_notes): Likewise for param "insn".
4317 (df_note_bb_compute): Likewise for local "insn".
4318 (simulate_backwards_to_point): Likewise.
4319 (df_md_bb_local_compute): Likewise.
4320
4321 * df-scan.c (df_scan_free_bb_info): Likewise.
4322 (df_scan_start_dump): Likewise.
4323 (df_scan_start_block): Likewise.
4324 (df_install_ref_incremental): Likewise for local "insn".
4325 (df_insn_rescan_all): Likewise.
4326 (df_reorganize_refs_by_reg_by_insn): Likewise.
4327 (df_reorganize_refs_by_insn_bb): Likewise.
4328 (df_recompute_luids): Likewise.
4329 (df_bb_refs_record): Likewise.
4330 (df_update_entry_exit_and_calls): Likewise.
4331 (df_bb_verify): Likewise.
4332
4333 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4334
4335 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4336 "first_note" from rtx to rtx_insn *.
4337 (get_node_of_insn): Likewise for param 2 "insn".
4338 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4339
4340 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4341 rtx_insn *.
4342 (mem_write_insn_p): Likewise.
4343 (mem_access_insn_p): Likewise.
4344 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4345 (def_has_ccmode_p): Likewise for param "insn".
4346 (add_cross_iteration_register_deps): Likewise for locals
4347 "def_insn" and "use_insn".
4348 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4349 (build_intra_loop_deps): Likewise for local "src_insn".
4350 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4351 to rtx_insn *.
4352 (get_node_of_insn): Likewise for param "insn".
4353
4354 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4355
4356 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4357 (deletable_insn_p): Strengthen param "insn" from rtx to
4358 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4359 find_call_stack_args, since this is guarded by CALL_P (insn).
4360 (marked_insn_p): Strengthen param "insn" from rtx to
4361 rtx_insn *.
4362 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4363 invoking find_call_stack_args, since this is guarded by
4364 CALL_P (insn).
4365 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4366 rtx_insn *; we know this is an insn since this was called by
4367 mark_nonreg_stores.
4368 (mark_nonreg_stores_2): Likewise.
4369 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4370 rtx_insn *.
4371 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4372 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4373 to rtx_insn *.
4374 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4375 from rtx to rtx_insn *.
4376 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4377 "next", "ref_insn".
4378 (delete_unmarked_insns): Likewise for locals "insn", "next".
4379 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4380 (mark_reg_dependencies): Likewise for param "insn".
4381 (rest_of_handle_ud_dce): Likewise for local "insn".
4382 (word_dce_process_block): Likewise.
4383 (dce_process_block): Likewise.
4384
4385 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4386
4387 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4388 from rtx to rtx_insn *.
4389 (struct change_cc_mode_args): Likewise for field "insn".
4390 (this_insn): Strengthen from rtx to rtx_insn *.
4391 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4392 with insn.
4393 (validate_canon_reg): Strengthen param "insn" from rtx to
4394 rtx_insn *.
4395 (canon_reg): Likewise.
4396 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4397 dealing with insn.
4398 (record_jump_equiv): Strengthen param "insn" from rtx to
4399 rtx_insn *.
4400 (try_back_substitute_reg): Likewise, also for locals "prev",
4401 "bb_head".
4402 (find_sets_in_insn): Likewise for param "insn".
4403 (canonicalize_insn): Likewise.
4404 (cse_insn): Likewise. Add a checked cast.
4405 (invalidate_from_clobbers): Likewise for param "insn".
4406 (invalidate_from_sets_and_clobbers): Likewise.
4407 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4408 dealing with insn.
4409 (cse_prescan_path): Strengthen local "insn" from rtx to
4410 rtx_insn *.
4411 (cse_extended_basic_block): Likewise for locals "insn" and
4412 "prev_insn".
4413 (cse_main): Likewise for param "f".
4414 (check_for_label_ref): Likewise for local "insn".
4415 (set_live_p): Likewise for second param ("insn").
4416 (insn_live_p): Likewise for first param ("insn") and for local
4417 "next".
4418 (cse_change_cc_mode_insn): Likewise for first param "insn".
4419 (cse_change_cc_mode_insns): Likewise for first and second params
4420 "start" and "end".
4421 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4422 and "end".
4423 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4424 "cc_src_insn".
4425
4426 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4427 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4428 Anna Tikhonova <anna.tikhonova@intel.com>
4429 Ilya Tocar <ilya.tocar@intel.com>
4430 Andrey Turetskiy <andrey.turetskiy@intel.com>
4431 Ilya Verbin <ilya.verbin@intel.com>
4432 Kirill Yukhin <kirill.yukhin@intel.com>
4433 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4434
4435 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4436 New.
4437 * config/i386/sse.md
4438 (define_mode_iterator VI248_AVX2): Delete.
4439 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4440 (define_mode_iterator VI48_AVX2): Ditto.
4441 (define_insn <shift_insn><mode>3): Delete.
4442 (define_insn "<shift_insn><mode>3<mask_name>" with
4443 VI2_AVX2_AVX512BW): New.
4444 (define_insn "<shift_insn><mode>3<mask_name>" with
4445 VI48_AVX2): Ditto.
4446
4447 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4448 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4449 Anna Tikhonova <anna.tikhonova@intel.com>
4450 Ilya Tocar <ilya.tocar@intel.com>
4451 Andrey Turetskiy <andrey.turetskiy@intel.com>
4452 Ilya Verbin <ilya.verbin@intel.com>
4453 Kirill Yukhin <kirill.yukhin@intel.com>
4454 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4455
4456 * config/i386/sse.md
4457 (define_mode_iterator VI4F_BRCST32x2): New.
4458 (define_mode_attr 64x2_mode): Ditto.
4459 (define_mode_attr 32x2mode): Ditto.
4460 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4461 with VI4F_BRCST32x2): Ditto.
4462 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4463 with V16FI mode iterator): Ditto.
4464 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4465 with V16FI): Ditto.
4466 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4467 with VI8F_BRCST64x2): Ditto.
4468
4469 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4470 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4471 Anna Tikhonova <anna.tikhonova@intel.com>
4472 Ilya Tocar <ilya.tocar@intel.com>
4473 Andrey Turetskiy <andrey.turetskiy@intel.com>
4474 Ilya Verbin <ilya.verbin@intel.com>
4475 Kirill Yukhin <kirill.yukhin@intel.com>
4476 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4477
4478 * config/i386/sse.md
4479 (define_mode_iterator VI8_AVX512VL): New.
4480 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4481
4482 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4483
4484 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4485 (define_mode_iterator V48_AVX512VL): New.
4486 (define_mode_iterator V12_AVX512VL): Ditto.
4487 (define_insn <avx512>_load<mode>_mask): Split into two similar
4488 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4489 Refactor output template.
4490 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4491
4492 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4493
4494 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4495 rtx_insn *.
4496 (reg_available_p): Likewise for param "insn".
4497 (insert_set_in_table): Likewise.
4498 (hash_scan_set): Likewise.
4499 (hash_scan_insn): Likewise.
4500 (make_set_regs_unavailable): Likewise.
4501 (compute_hash_table_work): Likewise for local "insn".
4502 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4503 const rtx_insn *.
4504 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4505 (try_replace_reg): Likewise.
4506 (find_avail_set): Likewise.
4507 (cprop_jump): Likewise for params "setcc", "jump".
4508 (constprop_register): Likewise for param "insn".
4509 (cprop_insn): Likewise.
4510 (do_local_cprop): Likewise.
4511 (local_cprop_pass): Likewise for local "insn".
4512 (bypass_block): Likewise for params "setcc" and "jump".
4513 (bypass_conditional_jumps): Likewise for locals "setcc" and
4514 "insn".
4515 (one_cprop_pass): Likewise for local "insn".
4516
4517 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4518
4519 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4520 from rtx to rtx_insn *.
4521 (struct comparison): Likewise, also for field "prev_clobber".
4522 (conforming_compare): Likewise for param "insn".
4523 (arithmetic_flags_clobber_p): Likewise.
4524 (find_flags_uses_in_insn): Likewise.
4525 (find_comparison_dom_walker::before_dom_children): Likewise for
4526 locals "insn", "next", "last_clobber".
4527 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4528
4529 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4530
4531 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4532 "insn" from rtx to rtx_insn *.
4533 (single_set_for_csa): Likewise for param "insn".
4534 (record_one_stack_ref): Likewise.
4535 (try_apply_stack_adjustment): Likewise.
4536 (struct record_stack_refs_data): Likewise for field "insn".
4537 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4538 (prev_active_insn_bb): Likewise for return type and param "insn".
4539 (next_active_insn_bb): Likewise.
4540 (force_move_args_size_note): Likewise for params "prev" and "last"
4541 and locals "test", "next_candidate", "prev_candidate".
4542 (combine_stack_adjustments_for_block): Strengthen locals
4543 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4544 rtx_insn *.
4545
4546 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4547
4548 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4549 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4550 (subst_insn): Likewise for this variable.
4551 (added_links_insn): Likewise.
4552 (struct insn_link): Likewise for field "insn".
4553 (alloc_insn_link): Likewise for param "insn".
4554 (struct undobuf): Likewise for field "other_insn".
4555 (find_single_use): Likewise for param "insn" and local "next".
4556 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4557 (delete_noop_moves): Likewise for locals "insn", "next".
4558 (create_log_links): Likewise for locals "insn", "use_insn".
4559 Strengthen local "next_use" from rtx * to rtx_insn **.
4560 (insn_a_feeds_b): Likewise for params "a", "b".
4561 (combine_instructions): Likewise for param "f" and locals "insn",
4562 "next", "prev", "first", "last_combined_insn", "link", "link1",
4563 "temp". Replace use of NULL_RTX with NULL when referring to
4564 insns.
4565 (setup_incoming_promotions): Likewise for param "first"
4566 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4567 (can_combine_p): Likewise for params "insn", "i3", "pred",
4568 "pred2", "succ", "succ2" and for local "p".
4569 (combinable_i3pat): Likewise for param "i3".
4570 (cant_combine_insn_p): Likewise for param "insn".
4571 (likely_spilled_retval_p): Likewise.
4572 (adjust_for_new_dest): Likewise.
4573 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4574 (try_combine): Likewise for return type and for params "i3", "i2",
4575 "i1", "i0", "last_combined_insn", and for locals "insn",
4576 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4577 "i0_insn". Eliminate local "tem" in favor of new locals
4578 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4579 checked cast for now to rtx_insn * on the return type of
4580 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4581 insns.
4582 (find_split_point): Strengthen param "insn" from rtx to
4583 rtx_insn *.
4584 (simplify_set): Likewise for local "other_insn".
4585 (recog_for_combine): Likewise for param "insn".
4586 (record_value_for_reg): Likewise.
4587 (record_dead_and_set_regs_1): Likewise for local
4588 "record_dead_insn".
4589 (record_dead_and_set_regs): Likewise for param "insn".
4590 (record_promoted_value): Likewise.
4591 (check_promoted_subreg): Likewise.
4592 (get_last_value_validate): Likewise.
4593 (reg_dead_at_p): Likewise.
4594 (move_deaths): Likewise for param "to_insn".
4595 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4596 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4597 in favor of new locals "tem_note" and "tem_insn", the latter being
4598 an rtx_insn *.
4599 (distribute_links): Strengthen locals "place", "insn" from rtx to
4600 rtx_insn *.
4601
4602 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4603
4604 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4605 than a const_rtx.
4606 (can_delete_label_p): Require a const rtx_code_label * rather than
4607 a const_rtx.
4608 (delete_insn): Add checked cast to rtx_code_label * when we know
4609 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4610 rtx to rtx_insn *.
4611 (delete_insn_chain): Strengthen locals "prev" and "current" from
4612 rtx to rtx_insn *. Add a checked cast when assigning from
4613 "finish" (strengthening the params will come later). Add a
4614 checked cast to rtx_note * in region where we know
4615 NOTE_P (current).
4616 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4617 rtx_insn *.
4618 (compute_bb_for_insn): Likewise.
4619 (free_bb_for_insn): Likewise for local "insn".
4620 (compute_bb_for_insn): Likewise.
4621 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4622 local "insn" from rtx to rtx_insn *
4623 (flow_active_insn_p): Require a const rtx_insn * rather than a
4624 const_rtx.
4625 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4626 rtx_insn *.
4627 (can_fallthru): Likewise for locals "insn" and "insn2".
4628 (bb_note): Likewise for local "note".
4629 (first_insn_after_basic_block_note): Likewise for local "note" and
4630 for return type.
4631 (rtl_split_block): Likewise for locals "insn" and "next".
4632 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4633 "end".
4634 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4635 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4636 "prev", "tmp".
4637 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4638 them), "kill_from", "barrier", "new_insn".
4639 (patch_jump_insn): Likewise for params "insn", "old_label".
4640 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4641 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4642 "old_label", "new_label".
4643 (rtl_tidy_fallthru_edge): Likewise for local "q".
4644 (rtl_split_edge): Likewise for locals "before", "last".
4645 (commit_one_edge_insertion): Likewise for locals "before",
4646 "after", "insns", "tmp", "last", adding a checked cast where
4647 currently necessary.
4648 (commit_edge_insertions): Likewise.
4649 (rtl_dump_bb): Likewise for locals "insn", "last".
4650 (print_rtl_with_bb): Likewise for local "x".
4651 (rtl_verify_bb_insns): Likewise for local "x".
4652 (rtl_verify_bb_pointers): Likewise for local "insn".
4653 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4654 "head", "end".
4655 (rtl_verify_fallthru): Likewise for local "insn".
4656 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4657 (purge_dead_edges): Likewise for local "insn".
4658 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4659 (skip_insns_after_block): Likewise for return type and for locals
4660 "insn", "last_insn", "next_head", "prev".
4661 (record_effective_endpoints): Likewise for locals "next_insn",
4662 "insn", "end".
4663 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4664 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4665 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4666 (duplicate_insn_chain): For now, add checked cast from rtx to
4667 rtx_insn * when returning insn.
4668 (cfg_layout_duplicate_bb): Likewise for local "insn".
4669 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4670 "prev", "remaints".
4671 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4672 (rtl_block_empty_p): Likewise.
4673 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4674 "split_point", "last".
4675 (rtl_block_ends_with_call_p): Likewise for local "insn".
4676 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4677 const rtx_insn *.
4678 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4679 "split_at_insn" from rtx to rtx_insn *.
4680 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4681 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4682 to const rtx_insn *.
4683 (rtl_account_profile_record): Likewise.
4684
4685 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4686
4687 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4688 rtx to rtx_insn *.
4689 (average_num_loop_insns): Likewise.
4690 (init_set_costs): Likewise for local "seq".
4691 (seq_cost): Likewise for param "seq", from const_rtx to const
4692 rtx_insn *.
4693
4694 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4695
4696 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4697 rtx to rtx_insn *.
4698
4699 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4700
4701 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4702 "f1" and "f2" from rtx * to rtx_insn **.
4703 (flow_find_head_matching_sequence): Likewise.
4704
4705 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4706 "cbranch_insn" from rtx to rtx_insn *.
4707 (thread_jump): Likewise for local "insn".
4708 (try_forward_edges): Likewise for local "last".
4709 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4710 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4711 "real_b_end".
4712 (can_replace_by): Likewise for params "i1", "i2".
4713 (old_insns_match_p): Likewise.
4714 (merge_notes): Likewise.
4715 (walk_to_nondebug_insn): Likewise for param "i1".
4716 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4717 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4718 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4719 (flow_find_head_matching_sequence): Strengthen params "f1" and
4720 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4721 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4722 rtx_insn *.
4723 (outgoing_edges_match): Likewise for locals "last1", "last2".
4724 (try_crossjump_to_edge): Likewise for local "insn".
4725 Replace call to for_each_rtx with for_each_rtx_in_insn.
4726
4727 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4728 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4729 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4730 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4731 (try_optimize_cfg): Strengthen local "last" from rtx to
4732 rtx_insn *.
4733 (delete_dead_jumptables): Likewise for locals "insn", "next",
4734 "label".
4735
4736 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4737 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4738 "rtx else_first_tail", to reflect the basic-block.h changes above.
4739
4740 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4741
4742 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4743 rtx_insn *.
4744 (purge_dead_tablejump_edges): Likewise.
4745 (find_bb_boundaries): Likewise for locals "insn", "end",
4746 "flow_transfer_insn".
4747
4748 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4749
4750 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4751 "ins" and "prev" from rtx to rtx_insn *.
4752
4753 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4754
4755 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4756 rtx_insn *.
4757 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4758 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4759 "scan_start".
4760 (load_register_parameters): Likewise for local "before_arg".
4761 (check_sibcall_argument_overlap): Likewise for param "insn".
4762 (expand_call): Likewise for locals "normal_call_insns",
4763 "tail_call_insns", "insns", "before_call", "after_args",
4764 "before_arg", "last", "prev". Strengthen one of the "last" from
4765 rtx to rtx_call_insn *.
4766 (fixup_tail_calls): Strengthen local "insn" from rtx to
4767 rtx_insn *.
4768 (emit_library_call_value_1): Likewise for locals "before_call" and
4769 "last".
4770
4771 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4772
4773 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4774 and "last" from rtx to rtx_insn *.
4775 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4776 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4777 rtx_call_insn *.
4778 (expand_errno_check): Strengthen local "lab" from rtx to
4779 rtx_code_label *.
4780 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4781 rtx_insn *.
4782 (expand_builtin_mathfn_2): Likewise.
4783 (expand_builtin_mathfn_ternary): Likewise.
4784 (expand_builtin_mathfn_3): Likewise.
4785 (expand_builtin_interclass_mathfn): Likewise for local "last".
4786 (expand_builtin_int_roundingfn): Likewise for local "insns".
4787 (expand_builtin_int_roundingfn_2): Likewise.
4788 (expand_builtin_strlen): Likewise for local "before_strlen".
4789 (expand_builtin_strncmp): Likewise for local "seq".
4790 (expand_builtin_signbit): Likewise for local "last".
4791 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4792 from rtx to rtx_code_label *.
4793 (expand_stack_restore): Strengthen local "prev" from rtx to
4794 rtx_insn *.
4795
4796 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4797
4798 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4799 to rtx_insn *.
4800 (struct btr_def_s): Likewise.
4801 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4802 const rtx_insn *.
4803 (add_btr_def): Likewise.
4804 (new_btr_user): Likewise.
4805 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4806 rtx to rtx_insn *.
4807 (link_btr_uses): Likewise.
4808 (move_btr_def): Likewise for locals "insp", "old_insn",
4809 "new_insn". Add checked cast to rtx_insn * for now on result of
4810 gen_move_insn.
4811 (can_move_up): Strengthen param "insn" from const_rtx to
4812 const rtx_insn *.
4813
4814 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4815
4816 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4817 rtx_insn *.
4818 (get_uncond_jump_length): Likewise for locals "label", "jump".
4819 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4820 "jump", "insn".
4821 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4822 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4823 (find_jump_block): Likewise for local "insn".
4824 (fix_crossing_conditional_branches): Likewise for locals
4825 "old_jump", "new_jump".
4826 (fix_crossing_unconditional_branches): Likewise for locals
4827 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4828 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4829
4830 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4831
4832 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4833 rtx to rtx_insn *.
4834 (struct mem_insn): Likewise for field "insn".
4835 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4836 (reg_next_inc_use): Likewise.
4837 (reg_next_def): Likewise.
4838 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4839 from rtx to rtx_insn *.
4840 (move_insn_before): Likewise for param "next_insn" and local "insns".
4841 (attempt_change): Likewise for local "mov_insn".
4842 (try_merge): Likewise for param "last_insn".
4843 (get_next_ref): Likewise for return type and local "insn".
4844 Strengthen param "next_array" from rtx * to rtx_insn **.
4845 (parse_add_or_inc): Strengthen param "insn" from rtx to
4846 rtx_insn *.
4847 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4848 the latter).
4849 (merge_in_block): Likewise for locals "insn", "curr",
4850 "other_insn".
4851 (pass_inc_dec::execute): Update allocations of the arrays to
4852 reflect the stronger types.
4853
4854 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4855
4856 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4857 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4858 from rtx to rtx_code_label *.
4859
4860 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4861
4862 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4863 to rtx_insn *.
4864
4865 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4866
4867 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4868 generated a warning and prevented bootstrapping the compiler.
4869
4870 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4871
4872 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4873 rtx_insn *.
4874
4875 * jump.c (delete_related_insns): Likewise, also for locals "next"
4876 and "prev".
4877
4878 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4879
4880 * genautomata.c (output_internal_insn_latency_func): When writing
4881 the function "internal_insn_latency" to insn-automata.c,
4882 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4883 allowing the optional guard function of (define_bypass) clauses to
4884 expect a pair of rtx_insn *, rather than a pair of rtx.
4885 (output_insn_latency_func): When writing the function
4886 "insn_latency", add an "uncast_" prefix to params "insn" and
4887 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4888 using checked casts from the params, thus enabling the above
4889 change to the generated "internal_insn_latency" function.
4890
4891 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4892
4893 PR tree-optimization/62091
4894 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4895 handle correctly arrays.
4896 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4897 inheritance binfos.
4898 (record_known_type): Walk into inner type.
4899 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4900 condition on no type changes.
4901
4902 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4903
4904 * genattrtab.c (write_attr_get): Within the generated get_attr_
4905 functions, rename param "insn" to "uncast_insn" and reintroduce
4906 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4907 is an rtx_insn * within insn-attrtab.c
4908
4909 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4910
4911 * output.h (peephole): Strengthen return type from rtx to
4912 rtx_insn *.
4913 * rtl.h (delete_for_peephole): Likewise for both params.
4914 * genpeep.c (main): In generated "peephole" function, strengthen
4915 return type and local "insn" from rtx to rtx_insn *. For now,
4916 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4917 rtx_insn *, with a checked cast.
4918 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4919 locals "insn", "next", "prev" from rtx to rtx_insn *.
4920
4921 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4922
4923 PR tree-optimization/62112
4924 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4925 * gimple-iterator.h (gsi_replace): Return bool.
4926 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4927 moved from ref_may_alias_global_p.
4928 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4929 New overloads.
4930 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4931 (stmt_kills_ref_p_1): Rename...
4932 (stmt_kills_ref_p): ... to this.
4933 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4934 stmt_kills_ref_p): Declare.
4935 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4936 Move the self-assignment case...
4937 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4938
4939 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4940
4941 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4942
4943 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4944 "after". For now, don't strengthen param "trial", which requires
4945 adding checked casts when returning it.
4946
4947 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4948
4949 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4950 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4951 "var_location" hook from rtx to rtx_insn *.
4952 (debug_nothing_rtx): Delete in favor of...
4953 (debug_nothing_rtx_code_label): New prototype.
4954 (debug_nothing_rtx_rtx): Delete unused prototype.
4955 (debug_nothing_rtx_insn): New prototype.
4956
4957 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4958 invoking debug_hooks->var_location (in two places, one in a NOTE
4959 case of a switch statement, the other guarded by a CALL_P
4960 conditional. Add checked cast to rtx_code_label * when invoking
4961 debug_hooks->label (within CODE_LABEL case of switch statement).
4962
4963 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4964 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4965 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4966 (xcoff_debug_hooks): Likewise.
4967 * debug.c (do_nothing_debug_hooks): Likewise.
4968 (debug_nothing_rtx): Delete in favor of...
4969 (debug_nothing_rtx_insn): New function.
4970 (debug_nothing_rtx_rtx): Delete unused function.
4971 (debug_nothing_rtx_code_label): New function.
4972 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4973 debug_nothing_rtx to debug_nothing_rtx_code_label.
4974 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4975 to rtx_insn *.
4976 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4977 debug_nothing_rtx to debug_nothing_rtx_insn.
4978 (sdbout_label): Strengthen param "insn" from rtx to
4979 rtx_code_label *.
4980 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4981 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4982 "var_location" hook from debug_nothing_rtx to
4983 debug_nothing_rtx_insn.
4984
4985 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4986
4987 * recog.h (insn_output_fn): Update this function typedef to match
4988 the changes below to the generated output functions, strengthening
4989 the 2nd param from rtx to rtx_insn *.
4990
4991 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4992 insn when invoking an output function, to match the new signature
4993 of insn_output_fn with a stronger second param.
4994
4995 * genconditions.c (write_header): In the generated code for
4996 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4997 to match the other changes in this patch.
4998
4999 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5000 the generated "gen_" functions from rtx to rtx_insn * within their
5001 implementations.
5002
5003 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5004 the subfunctions within the generated "recog_", "split", "peephole2"
5005 function trees from rtx to rtx_insn *. For now, the top-level
5006 generated functions ("recog", "split", "peephole2") continue to
5007 take a plain rtx for "insn", to avoid introducing dependencies on
5008 other patches. Rename this 2nd param from "insn" to
5009 "uncast_insn", and reintroduce "insn" as a local variable of type
5010 rtx_insn *, initialized at the top of the generated function with
5011 a checked cast on "uncast_insn".
5012 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5013 the generated "gen_" functions from rtx to rtx_insn * within their
5014 prototypes.
5015
5016 * genoutput.c (process_template): Strengthen the 2nd param within
5017 the generated "output_" functions "insn" from rtx to rtx_insn *.
5018
5019 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5020
5021 * tree-profile.c (tree_profiling): Skip external functions
5022 when doing coverage instrumentation.
5023 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5024
5025 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5026
5027 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5028 (vec_mergee): Likewise.
5029 (vec_mergeo): Likewise.
5030 (vec_cntlz): Likewise.
5031 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5032 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5033 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5034 VMRGEW, and VMRGOW.
5035 * doc/extend.texi: Document various forms of vec_cpsgn,
5036 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5037 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5038 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5039 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5040 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5041
5042 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5043
5044 * config/rs6000/rs6000.c (context.h): New include.
5045 (tree-pass.h): Likewise.
5046 (make_pass_analyze_swaps): New decl.
5047 (rs6000_option_override): Register pass_analyze_swaps.
5048 (swap_web_entry): New subsclass of web_entry_base (df.h).
5049 (special_handling_values): New enum.
5050 (union_defs): New function.
5051 (union_uses): Likewise.
5052 (insn_is_load_p): Likewise.
5053 (insn_is_store_p): Likewise.
5054 (insn_is_swap_p): Likewise.
5055 (rtx_is_swappable_p): Likewise.
5056 (insn_is_swappable_p): Likewise.
5057 (chain_purpose): New enum.
5058 (chain_contains_only_swaps): New function.
5059 (mark_swaps_for_removal): Likewise.
5060 (swap_const_vector_halves): Likewise.
5061 (adjust_subreg_index): Likewise.
5062 (permute_load): Likewise.
5063 (permute_store): Likewise.
5064 (handle_special_swappables): Likewise.
5065 (replace_swap_with_copy): Likewise.
5066 (dump_swap_insn_table): Likewise.
5067 (rs6000_analyze_swaps): Likewise.
5068 (pass_data_analyze_swaps): New pass_data.
5069 (pass_analyze_swaps): New rtl_opt_pass.
5070 (make_pass_analyze_swaps): New function.
5071 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5072
5073 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5074
5075 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5076 type from rtx to rtx_insn *.
5077 (create_copy_of_insn_rtx): Likewise.
5078 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5079 (create_copy_of_insn_rtx): Likewise, also for local "res".
5080
5081 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5082
5083 * rtl.h (find_first_parameter_load): Strengthen return type from
5084 rtx to rtx_insn *.
5085 * rtlanal.c (find_first_parameter_load): Strengthen return type
5086 from rtx to rtx_insn *. Add checked cast for now, to postpone
5087 strengthening the params.
5088
5089 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5090
5091 PR fortran/44054
5092 * diagnostic.c: Set default caret.
5093 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5094 line is needed.
5095 * diagnostic.h (struct diagnostic_context):
5096
5097 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5098
5099 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5100 (sel_bb_head): Strengthen return type insn_t (currently just an
5101 rtx) to rtx_insn *.
5102 (sel_bb_end): Likewise.
5103
5104 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5105 (sel_bb_head): Strengthen return type and local "head" from
5106 insn_t (currently just an rtx) to rtx_insn *.
5107 (sel_bb_end): Likewise for return type.
5108 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5109 working with insn.
5110
5111 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5112
5113 * basic-block.h (get_last_bb_insn): Strengthen return type from
5114 rtx to rtx_insn *.
5115 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5116 end".
5117
5118 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5119
5120 PR fortran/44054
5121 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5122 to here ...
5123 (diagnostic_report_diagnostic): ... from here.
5124 * toplev.c (general_init): Move code to c-family.
5125
5126 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5127
5128 * df.h (web_entry_base): Replace existing struct web_entry with a
5129 new class web_entry_base with only the predecessor member.
5130 (unionfind_root): Remove declaration and move to class member.
5131 (unionfind_union): Remove declaration and move to friend
5132 function.
5133 (union_defs): Remove declaration.
5134 * web.c (web_entry_base::unionfind_root): Modify to be member
5135 function and adjust accessors.
5136 (unionfind_union): Modify to be friend function and adjust
5137 accessors.
5138 (web_entry): New subclass of web_entry_base containing the reg
5139 member.
5140 (union_match_dups): Modify for struct -> class changes.
5141 (union_defs): Likewise.
5142 (entry_register): Likewise.
5143 (pass_web::execute): Likewise.
5144
5145 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5146
5147 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5148 builtin define __VEC_ELEMENT_REG_ORDER__.
5149
5150 2014-08-20 Martin Jambor <mjambor@suse.cz>
5151 Wei Mi <wmi@google.com>
5152
5153 PR ipa/60449
5154 PR middle-end/61776
5155 * tree-ssa-operands.c (update_stmt_operands): Remove
5156 MODIFIED_NORETURN_CALLS.
5157 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5158 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5159 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5160 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5161 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5162 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5163 (gimple_call_set_ctrl_altering): New func.
5164 (gimple_call_ctrl_altering_p): Ditto.
5165 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5166 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5167 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5168 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5169 remove MODIFIED_NORETURN_CALLS.
5170
5171 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5172
5173 * coverage.c (coverage_compute_profile_id): Return non-0;
5174 also handle symbols with unique name.
5175 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5176
5177 2014-08-20 Steve Ellcey <sellcey@mips.com>
5178
5179 PR middle-end/49191
5180 * doc/sourcebuild.texi (non_strict_align): New.
5181
5182 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5183
5184 * cgraphunit.c (ipa_passes, compile): Reshedule
5185 symtab_remove_unreachable_nodes passes; update comments.
5186 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5187 TODO_remove_functions before the pass; the functions ought to be
5188 already removed.
5189 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5190 TODO_remove_functions.
5191 * passes.c (pass_data_early_local_passes): Do not schedule function
5192 removal.
5193 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5194
5195 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5196
5197 PR c/59304
5198 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5199 before setting the option.
5200 * diagnostic.c (diagnostic_classify_diagnostic): Record
5201 command-line status.
5202
5203 2014-08-20 Richard Biener <rguenther@suse.de>
5204
5205 PR lto/62190
5206 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5207 to build uint{16,32,64}_type_node.
5208
5209 2014-08-20 Terry Guo <terry.guo@arm.com>
5210
5211 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5212 with immediate_operand.
5213
5214 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5215
5216 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5217 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5218 NULL.
5219
5220 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5221
5222 PR preprocessor/51303
5223 * incpath.c (remove_duplicates): Use cpp_warning.
5224
5225 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5226
5227 PR c/60975
5228 PR c/53063
5229 * doc/options.texi (CPP): Document it.
5230 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5231 * optc-gen.awk: Handle CPP.
5232 * opth-gen.awk: Likewise.
5233
5234 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5235
5236 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5237 rtx_insn *.
5238 (duplicate_insn_chain): Likewise.
5239 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5240 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5241 checked cast for now (until we can strengthen the params in the
5242 same way).
5243 (duplicate_insn_chain): Likewise.
5244
5245 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5246
5247 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5248 rtx_insn *.
5249 (prev_cc0_setter): Likewise.
5250
5251 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5252 rtx_insn *, adding checked casts for now as necessary.
5253 (prev_cc0_setter): Likewise.
5254
5255 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5256
5257 * expr.h (emit_move_insn): Strengthen return type from rtx to
5258 rtx_insn *.
5259 (emit_move_insn_1): Likewise.
5260 (emit_move_complex_push): Likewise.
5261 (emit_move_complex_parts): Likewise.
5262
5263 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5264 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5265 with insns.
5266 (emit_move_complex_push): Strengthen return type from rtx to
5267 rtx_insn *.
5268 (emit_move_complex): Likewise, also for local "ret".
5269 (emit_move_ccmode): Likewise.
5270 (emit_move_multi_word): Likewise for return type and locals
5271 "last_insn", "seq".
5272 (emit_move_insn_1): Likewise for return type and locals "result",
5273 "ret".
5274 (emit_move_insn): Likewise for return type and local "last_insn".
5275 (compress_float_constant): Likewise.
5276
5277 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5278
5279 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5280 from rtx to rtx_insn *.
5281
5282 * rtl.h (emit_insn_before): Likewise.
5283 (emit_insn_before_noloc): Likewise.
5284 (emit_insn_before_setloc): Likewise.
5285 (emit_jump_insn_before): Likewise.
5286 (emit_jump_insn_before_noloc): Likewise.
5287 (emit_jump_insn_before_setloc): Likewise.
5288 (emit_call_insn_before): Likewise.
5289 (emit_call_insn_before_noloc): Likewise.
5290 (emit_call_insn_before_setloc): Likewise.
5291 (emit_debug_insn_before): Likewise.
5292 (emit_debug_insn_before_noloc): Likewise.
5293 (emit_debug_insn_before_setloc): Likewise.
5294 (emit_label_before): Likewise.
5295 (emit_insn_after): Likewise.
5296 (emit_insn_after_noloc): Likewise.
5297 (emit_insn_after_setloc): Likewise.
5298 (emit_jump_insn_after): Likewise.
5299 (emit_jump_insn_after_noloc): Likewise.
5300 (emit_jump_insn_after_setloc): Likewise.
5301 (emit_call_insn_after): Likewise.
5302 (emit_call_insn_after_noloc): Likewise.
5303 (emit_call_insn_after_setloc): Likewise.
5304 (emit_debug_insn_after): Likewise.
5305 (emit_debug_insn_after_noloc): Likewise.
5306 (emit_debug_insn_after_setloc): Likewise.
5307 (emit_label_after): Likewise.
5308 (emit_insn): Likewise.
5309 (emit_debug_insn): Likewise.
5310 (emit_jump_insn): Likewise.
5311 (emit_call_insn): Likewise.
5312 (emit_label): Likewise.
5313 (gen_clobber): Likewise.
5314 (emit_clobber): Likewise.
5315 (gen_use): Likewise.
5316 (emit_use): Likewise.
5317 (emit): Likewise.
5318
5319 (emit_barrier_before): Strengthen return type from rtx to
5320 rtx_barrier *.
5321 (emit_barrier_after): Likewise.
5322 (emit_barrier): Likewise.
5323
5324 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5325 from rtx to rtx_insn *. Add checked casts for now when converting
5326 "last" from rtx to rtx_insn *.
5327 (emit_insn_before_noloc): Likewise for return type.
5328 (emit_jump_insn_before_noloc): Likewise.
5329 (emit_call_insn_before_noloc): Likewise.
5330 (emit_debug_insn_before_noloc): Likewise.
5331 (emit_barrier_before): Strengthen return type and local "insn"
5332 from rtx to rtx_barrier *.
5333 (emit_label_before): Strengthen return type from rtx to
5334 rtx_insn *. Add checked cast for now when returning param
5335 (emit_pattern_after_noloc): Strengthen return type from rtx to
5336 rtx_insn *. Add checked casts for now when converting "last" from
5337 rtx to rtx_insn *.
5338 (emit_insn_after_noloc): Strengthen return type from rtx to
5339 rtx_insn *.
5340 (emit_jump_insn_after_noloc): Likewise.
5341 (emit_call_insn_after_noloc): Likewise.
5342 (emit_debug_insn_after_noloc): Likewise.
5343 (emit_barrier_after): Strengthen return type from rtx to
5344 rtx_barrier *.
5345 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5346 Add checked cast for now when converting "label" from rtx to
5347 rtx_insn *.
5348 (emit_pattern_after_setloc): Strengthen return type from rtx to
5349 rtx_insn *. Add checked casts for now when converting "last" from
5350 rtx to rtx_insn *.
5351 (emit_pattern_after): Strengthen return type from rtx to
5352 rtx_insn *.
5353 (emit_insn_after_setloc): Likewise.
5354 (emit_insn_after): Likewise.
5355 (emit_jump_insn_after_setloc): Likewise.
5356 (emit_jump_insn_after): Likewise.
5357 (emit_call_insn_after_setloc): Likewise.
5358 (emit_call_insn_after): Likewise.
5359 (emit_debug_insn_after_setloc): Likewise.
5360 (emit_debug_insn_after): Likewise.
5361 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5362 when converting "last" from rtx to rtx_insn *.
5363 (emit_pattern_before): Strengthen return type from rtx to
5364 rtx_insn *.
5365 (emit_insn_before_setloc): Likewise.
5366 (emit_insn_before): Likewise.
5367 (emit_jump_insn_before_setloc): Likewise.
5368 (emit_jump_insn_before): Likewise.
5369 (emit_call_insn_before_setloc): Likewise.
5370 (emit_call_insn_before): Likewise.
5371 (emit_debug_insn_before_setloc): Likewise.
5372 (emit_debug_insn_before): Likewise.
5373 (emit_insn): Strengthen return type and locals "last", "insn",
5374 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5375 within cases where we know we have an insn.
5376 (emit_debug_insn): Likewise.
5377 (emit_jump_insn): Likewise.
5378 (emit_call_insn): Strengthen return type and local "insn" from rtx
5379 to rtx_insn *.
5380 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5381 a checked cast to rtx_insn * for now on "label".
5382 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5383 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5384 (emit_use): Likewise.
5385 (gen_use): Likewise, also for local "seq".
5386 (emit): Likewise for return type and local "insn".
5387 (rtx_insn): Likewise for return type and local "new_rtx".
5388
5389 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5390 from rtx to rtx_barrier *.
5391
5392 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5393 changed return type from rtx to rtx_insn *, we must update
5394 "emit_fn" type, and this in turn means updating...
5395 (frame_insn): ...this. Strengthen return type from rtx to
5396 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5397
5398 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5399
5400 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5401 rtx to rtx_jump_table_data *. Also for local.
5402 * rtl.h (emit_jump_table_data): Likewise.
5403
5404 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5405
5406 * basic-block.h (create_basic_block_structure): Strengthen third
5407 param "bb_note" from rtx to rtx_note *.
5408 * rtl.h (emit_note_before): Strengthen return type from rtx to
5409 rtx_note *.
5410 (emit_note_after): Likewise.
5411 (emit_note): Likewise.
5412 (emit_note_copy): Likewise. Also, strengthen param similarly.
5413 * function.h (struct rtl_data): Strengthen field
5414 "x_stack_check_probe_note" from rtx to rtx_note *.
5415
5416 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5417 from rtx to rtx_note *.
5418 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5419 "bb_note" from rtx to rtx_note *.
5420 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5421 when calling emit_note_copy.
5422 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5423 rtx_note *.
5424 (emit_note_after): Likewise.
5425 (emit_note_before): Likewise.
5426 (emit_note_copy): Likewise. Also, strengthen param similarly.
5427 (emit_note): Likewise.
5428 * except.c (emit_note_eh_region_end): Likewise for return type.
5429 Strengthen local "next" from rtx to rtx_insn *.
5430 (convert_to_eh_region_ranges): Strengthen local "note"
5431 from rtx to rtx_note *.
5432 * final.c (change_scope): Likewise.
5433 (reemit_insn_block_notes): Likewise, for both locals named "note".
5434 Also, strengthen local "insn" from rtx to rtx_insn *.
5435 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5436 rtx to rtx_note *.
5437 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5438 strengthen local "seq" from rtx to rtx_insn *.
5439 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5440 to rtx_note *.
5441 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5442 vec<rtx_note *>.
5443 (get_bb_note_from_pool): Strengthen return type from rtx to
5444 rtx_note *.
5445 (sel_create_basic_block): Strengthen local "new_bb_note" from
5446 insn_t to rtx_note *.
5447 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5448 "note" from rtx to rtx_note *.
5449 (emit_notes_in_bb): Likewise.
5450
5451 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5452
5453 * function.h (struct rtl_data): Strengthen field
5454 "x_parm_birth_insn" from rtx to rtx_insn *.
5455 * function.c (struct assign_parm_data_all): Strengthen fields
5456 "first_conversion_insn" and "last_conversion_insn" from rtx to
5457 rtx_insn *.
5458
5459 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5460
5461 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5462 to rtx_insn *; also for local "var_end_seq".
5463 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5464 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5465 "insn".
5466 (expand_gimple_cond): Likewise for locals "last2" and "last".
5467 (mark_transaction_restart_calls): Likewise for local "insn".
5468 (expand_gimple_stmt): Likewise for return type and locals "last"
5469 and "insn".
5470 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5471 (avoid_complex_debug_insns): Likewise for param "insn".
5472 (expand_debug_locations): Likewise for locals "insn", "last",
5473 "prev_insn" and "insn2".
5474 (expand_gimple_basic_block): Likewise for local "last".
5475 (construct_exit_block): Likewise for locals "head", "end",
5476 "orig_end".
5477 (pass_expand::execute): Likewise for locals "var_seq",
5478 "var_ret_seq", "next".
5479
5480 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5481
5482 * asan.h (asan_emit_stack_protection): Strengthen return type from
5483 rtx to rtx_insn *.
5484 * asan.c (asan_emit_stack_protection): Likewise. Add local
5485 "insns" to hold the return value.
5486
5487 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5488
5489 * basic-block.h (bb_note): Strengthen return type from rtx to
5490 rtx_note *.
5491 * sched-int.h (bb_note): Likewise.
5492 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5493
5494 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5495
5496 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5497 rtx_insn *.
5498
5499 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5500 "insn" from rtx to rtx_insn *.
5501 (make_debug_insn_raw): Strengthen return type from rtx to
5502 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5503 (make_jump_insn_raw): Strengthen return type from rtx to
5504 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5505 (make_call_insn_raw): Strengthen return type from rtx to
5506 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5507 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5508 callback from rtx to rtx_insn *; likewise for local "insn" and
5509 "next", adding a checked cast to rtx_insn in the relevant cases of
5510 the switch statement.
5511 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5512 callback from rtx to rtx_insn *.
5513 (emit_pattern_after_setloc): Likewise.
5514 (emit_pattern_after): Likewise.
5515 (emit_pattern_before_setloc): Likewise.
5516 (emit_pattern_before): Likewise.
5517
5518 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5519
5520 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5521 rtx_call_insn *.
5522 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5523 accepting an rtx_insn *.
5524 (last_call_insn): Strengthen return type from rtx to
5525 rtx_call_insn *.
5526
5527 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5528
5529 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5530 "insns" from rtx to rtx_insn *.
5531 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5532 locals "insn" and "prev".
5533
5534 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5535
5536 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5537 rtx_jump_table_data **.
5538
5539 * cfgbuild.c (make_edges): Introduce local "table", using it in
5540 place of "tmp" for jump table data.
5541 (find_bb_boundaries): Strengthen local "table" from rtx to
5542 rtx_jump_table_data *.
5543 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5544 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5545 (try_crossjump_to_edge): Likewise.
5546 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5547 "table".
5548 (patch_jump_insn): Introduce local "table", using it in place of
5549 "tmp" for jump table data.
5550 (force_nonfallthru_and_redirect): Introduce local "table", so that
5551 call to tablejump_p can receive an rtx_jump_table_data **. Update
5552 logic around the call to overwrite "note" appropriately if
5553 tablejump_p returns non-zero.
5554 (get_last_bb_insn): Introduce local "table", using it in place of
5555 "tmp" for jump table data.
5556 * dwarf2cfi.c (create_trace_edges): Likewise.
5557
5558 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5559 from rtx to rtx_jump_table_data *.
5560 (create_fix_barrier): Strengthen local "tmp" from rtx to
5561 rtx_jump_table_data *.
5562 (arm_reorg): Likewise for local "table".
5563
5564 * config/s390/s390.c (s390_chunkify_start): Likewise.
5565
5566 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5567
5568 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5569 rtx to rtx_jump_table_data *.
5570
5571 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5572 rtx_jump_table_data **. Add a checked cast when writing through
5573 the pointer: we know there that local "table" is non-NULL and that
5574 JUMP_TABLE_DATA_P (table) holds.
5575 (label_is_jump_target_p): Introduce local "table", using it in
5576 place of "tmp" for jump table data.
5577
5578 2014-08-19 Marek Polacek <polacek@redhat.com>
5579
5580 PR c++/62153
5581 * doc/invoke.texi: Document -Wbool-compare.
5582
5583 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5584
5585 * rtl.h (entry_of_function): Strengthen return type from rtx to
5586 rtx_insn *.
5587 * cfgrtl.c (entry_of_function): Likewise.
5588
5589 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5590
5591 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5592 rtx_insn *, adding a checked cast for now.
5593 (get_last_insn): Likewise.
5594
5595 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5596
5597 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5598 rtx_code_label *.
5599
5600 * emit-rtl.c (gen_label_rtx): Likewise.
5601
5602 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5603
5604 * rtl.h (previous_insn): Strengthen return type from rtx to
5605 rtx_insn *.
5606 (next_insn): Likewise.
5607 (prev_nonnote_insn): Likewise.
5608 (prev_nonnote_insn_bb): Likewise.
5609 (next_nonnote_insn): Likewise.
5610 (next_nonnote_insn_bb): Likewise.
5611 (prev_nondebug_insn): Likewise.
5612 (next_nondebug_insn): Likewise.
5613 (prev_nonnote_nondebug_insn): Likewise.
5614 (next_nonnote_nondebug_insn): Likewise.
5615 (prev_real_insn): Likewise.
5616 (next_real_insn): Likewise.
5617 (prev_active_insn): Likewise.
5618 (next_active_insn): Likewise.
5619
5620 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5621 rtx_insn *, adding a checked cast.
5622 (previous_insn): Likewise.
5623 (next_nonnote_insn): Likewise.
5624 (next_nonnote_insn_bb): Likewise.
5625 (prev_nonnote_insn): Likewise.
5626 (prev_nonnote_insn_bb): Likewise.
5627 (next_nondebug_insn): Likewise.
5628 (prev_nondebug_insn): Likewise.
5629 (next_nonnote_nondebug_insn): Likewise.
5630 (prev_nonnote_nondebug_insn): Likewise.
5631 (next_real_insn): Likewise.
5632 (prev_real_insn): Likewise.
5633 (next_active_insn): Likewise.
5634 (prev_active_insn): Likewise.
5635
5636 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5637 param "stepfunc" so that it returns an rtx_insn * rather than an
5638 rtx, to track the change to prev_nonnote_insn_bb, which is the
5639 only function this is called with.
5640 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5641
5642 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5643
5644 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5645 assert.
5646
5647 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5648
5649 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5650 (class rtx_nonjump_insn): Likewise.
5651 (class rtx_jump_insn): Likewise.
5652 (class rtx_call_insn): Likewise.
5653 (class rtx_jump_table_data): Likewise.
5654 (class rtx_barrier): Likewise.
5655 (class rtx_code_label): Likewise.
5656 (class rtx_note): Likewise.
5657
5658 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5659 adding the invariant DEBUG_INSN_P (X).
5660 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5661 the invariant NONJUMP_INSN_P (X).
5662 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5663 the invariant JUMP_P (X).
5664 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5665 the invariant CALL_P (X).
5666 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5667 invariant JUMP_TABLE_DATA_P (X).
5668 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5669 invariant BARRIER_P (X).
5670 (class rtx_code_label): New, a subclass of rtx_insn, adding
5671 the invariant LABEL_P (X).
5672 (class rtx_note): New, a subclass of rtx_insn, adding
5673 the invariant NOTE_P(X).
5674 (is_a_helper <rtx_debug_insn *>::test): New.
5675 (is_a_helper <rtx_nonjump_insn *>::test): New.
5676 (is_a_helper <rtx_jump_insn *>::test): New.
5677 (is_a_helper <rtx_call_insn *>::test): New.
5678 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5679 overloaded for both rtx and rtx_insn *.
5680 (is_a_helper <rtx_barrier *>::test): New.
5681 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5682 for both rtx and rtx_insn *.
5683 (is_a_helper <rtx_note *>::test): New.
5684
5685 2014-08-19 Marek Polacek <polacek@redhat.com>
5686
5687 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5688 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5689 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5690 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5691
5692 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5693
5694 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5695 rtx_insn *. To help with transition, for now, convert from an
5696 access macro into a pair of functions: BND_TO, returning an
5697 rtx_insn *, and...
5698 (SET_BND_TO): New function, for use where BND_TO is used as an
5699 lvalue.
5700
5701 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5702 SET_BND_TO.
5703 (BND_TO): New function, adding a checked cast.
5704 (SET_BND_TO): New function.
5705
5706 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5707 SET_BND_TO.
5708 (compute_av_set_on_boundaries): Likewise.
5709
5710 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5711
5712 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5713 destination if it is used in source.
5714 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5715 (*popcount<mode>2_falsedep_1): Likewise.
5716
5717 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5718
5719 PR other/62168
5720 * configure.ac: Set install_gold_as_default to no first.
5721 * configure: Regenerated.
5722
5723 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5724
5725 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5726 "note_list" field will eventually be an rtx_insn *. To help with
5727 transition, for now, convert from an access macro into a pair of
5728 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5729 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5730 used as an lvalue.
5731
5732 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5733 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5734
5735 * sel-sched-ir.c (init_bb): Likewise.
5736 (sel_restore_notes): Likewise.
5737 (move_bb_info): Likewise.
5738 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5739 (SET_BB_NOTE_LIST): New function.
5740
5741 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5742
5743 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5744 field will eventually be an rtx_insn *. To help with transition,
5745 for now, convert from an access macro into a pair of functions:
5746 VINSN_INSN_RTX, returning an rtx_insn *, and...
5747 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5748 is used as an lvalue.
5749
5750 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5751 SET_VINSN_INSN_RTX where it's used as an lvalue.
5752 (VINSN_INSN_RTX): New function.
5753 (SET_VINSN_INSN_RTX): New function.
5754
5755 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5756
5757 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5758 eventually be rtx_insn *, but to help with transition, for now,
5759 convert from an access macro into a pair of functions: DEP_PRO
5760 returning an rtx_insn * and...
5761 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5762 lvalue, returning an rtx&.
5763 (DEP_CON): Analogous changes to DEP_PRO above.
5764 (SET_DEP_CON): Likewise.
5765
5766 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5767 an lvalue to SET_DEP_CON.
5768 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5769 (sd_copy_back_deps): Likewise for DEP_CON.
5770 (DEP_PRO): New function, adding a checked cast for now.
5771 (DEP_CON): Likewise.
5772 (SET_DEP_PRO): New function.
5773 (SET_DEP_CON): Likewise.
5774
5775 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5776
5777 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5778 (extra_options): Add i386/cygwin.opt.
5779 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5780 (CPP_SPEC): Accept -pthread.
5781 (LINK_SPEC): Ditto.
5782 (GOMP_SELF_SPECS): Update comment.
5783 * config/i386/cygwin.opt: New file for -pthread flag.
5784
5785 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5786
5787 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5788 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5789 that we can return an rtx_insn *.
5790
5791 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5792
5793 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5794 when building executables, not DLLs. Add --large-address-aware
5795 under the same conditions.
5796 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5797 when building executables, not DLLs. Add --large-address-aware
5798 under the same conditions when using -m32.
5799
5800 * config/i386/cygwin-stdint.h: Throughout, make type
5801 definitions dependent on target architecture, not host.
5802
5803 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5804
5805 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5806 the return type from rtx to rtx_insn *, which will enable various
5807 conversions in followup patches. For now this is is done by a
5808 checked cast.
5809 (NEXT_INSN): Likewise.
5810 (SET_PREV_INSN): Convert to an inline function. This is intended
5811 for use as an lvalue, and so returns an rtx& to allow in-place
5812 modification.
5813 (SET_NEXT_INSN): Likewise.
5814
5815 2014-07-08 Mark Wielaard <mjw@redhat.com>
5816
5817 PR debug/59051
5818 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5819
5820 2014-08-19 Marek Polacek <polacek@redhat.com>
5821
5822 PR c/61271
5823 * cgraphunit.c (handle_alias_pairs): Fix condition.
5824
5825 2014-08-19 Richard Biener <rguenther@suse.de>
5826
5827 * gimple-fold.c (fold_gimple_assign): Properly build a
5828 null-pointer constant when devirtualizing addresses.
5829
5830 2014-07-07 Mark Wielaard <mjw@redhat.com>
5831
5832 * dwarf2out.c (decl_quals): New function.
5833 (modified_type_die): Take one cv_quals argument instead of two,
5834 one for const and one for volatile.
5835 (add_type_attribute): Likewise.
5836 (generic_parameter_die): Call add_type_attribute with one modifier
5837 argument.
5838 (base_type_for_mode): Likewise.
5839 (add_bounds_info): Likewise.
5840 (add_subscript_info): Likewise.
5841 (gen_array_type_die): Likewise.
5842 (gen_descr_array_type_die): Likewise.
5843 (gen_entry_point_die): Likewise.
5844 (gen_enumeration_type_die): Likewise.
5845 (gen_formal_parameter_die): Likewise.
5846 (gen_subprogram_die): Likewise.
5847 (gen_variable_die): Likewise.
5848 (gen_const_die): Likewise.
5849 (gen_field_die): Likewise.
5850 (gen_pointer_type_die): Likewise.
5851 (gen_reference_type_die): Likewise.
5852 (gen_ptr_to_mbr_type_die): Likewise.
5853 (gen_inheritance_die): Likewise.
5854 (gen_subroutine_type_die): Likewise.
5855 (gen_typedef_die): Likewise.
5856 (force_type_die): Likewise.
5857
5858 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5859
5860 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5861 if unset.
5862 * configure: Regenerate.
5863
5864 2014-08-19 Richard Biener <rguenther@suse.de>
5865
5866 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5867 DECL_EXTERNALs in BLOCKs as non-references.
5868 * tree-streamer-out.c (streamer_write_chain): Likewise.
5869
5870 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5871 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5872 Anna Tikhonova <anna.tikhonova@intel.com>
5873 Ilya Tocar <ilya.tocar@intel.com>
5874 Andrey Turetskiy <andrey.turetskiy@intel.com>
5875 Ilya Verbin <ilya.verbin@intel.com>
5876 Kirill Yukhin <kirill.yukhin@intel.com>
5877 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5878
5879 * config/i386/sse.md
5880 (define_mode_iterator VI48_AVX512F): Delete.
5881 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5882 (define_mode_iterator VI2_AVX512VL): Ditto.
5883 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5884 Delete.
5885 (define_insn
5886 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5887 New.
5888 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5889 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5890 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5891 with VI48_AVX512F_AVX512VL): New.
5892 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5893 with VI2_AVX512VL): Ditto.
5894
5895 2014-08-19 Marek Polacek <polacek@redhat.com>
5896
5897 * doc/invoke.texi: Document -Wc99-c11-compat.
5898
5899 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5900
5901 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5902 for rvalues, and...
5903 (SET_PREV_INSN): New macro, for use as an lvalue.
5904 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5905
5906 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5907 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5908 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5909 (fixup_abnormal_edges): Likewise.
5910 (unlink_insn_chain): Likewise.
5911 (fixup_reorder_chain): Likewise.
5912 (cfg_layout_delete_block): Likewise.
5913 (cfg_layout_merge_blocks): Likewise.
5914 * combine.c (update_cfg_for_uncondjump): Likewise.
5915 * emit-rtl.c (link_insn_into_chain): Likewise.
5916 (remove_insn): Likewise.
5917 (delete_insns_since): Likewise.
5918 (reorder_insns_nobb): Likewise.
5919 (emit_insn_after_1): Likewise.
5920 * final.c (rest_of_clean_state): Likewise.
5921 (final_scan_insn): Likewise.
5922 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5923 * haifa-sched.c (concat_note_lists): Likewise.
5924 (remove_notes): Likewise.
5925 (restore_other_notes): Likewise.
5926 (move_insn): Likewise.
5927 (unlink_bb_notes): Likewise.
5928 (restore_bb_notes): Likewise.
5929 * jump.c (delete_for_peephole): Likewise.
5930 * optabs.c (emit_libcall_block_1): Likewise.
5931 * reorg.c (emit_delay_sequence): Likewise.
5932 (fill_simple_delay_slots): Likewise.
5933 * sel-sched-ir.c (sel_move_insn): Likewise.
5934 (sel_remove_insn): Likewise.
5935 (get_bb_note_from_pool): Likewise.
5936 * sel-sched.c (move_nop_to_previous_block): Likewise.
5937
5938 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5939 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5940 (c6x_gen_bundles): Likewise.
5941 (hwloop_optimize): Likewise.
5942 * config/frv/frv.c (frv_function_prologue): Likewise.
5943 (frv_register_nop): Likewise.
5944 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5945 (ia64_reorg): Likewise.
5946 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5947 (mep_make_bundle): Likewise.
5948 (mep_bundle_insns): Likewise.
5949 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5950 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5951 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5952
5953 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5954
5955 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5956 return type from rtx to rtx_insn *.
5957 (BB_END): Likewise.
5958 (BB_HEADER): Likewise.
5959 (BB_FOOTER): Likewise.
5960 (SET_BB_HEAD): Convert to a function.
5961 (SET_BB_END): Likewise.
5962 (SET_BB_HEADER): Likewise.
5963 (SET_BB_FOOTER): Likewise.
5964
5965 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5966 Strengthen the return type from rtx to rtx_insn *. For now, this
5967 is done by adding a checked cast, but this will eventually
5968 become a field lookup.
5969 (BB_END): Likewise.
5970 (BB_HEADER): Likewise.
5971 (BB_FOOTER): Likewise.
5972 (SET_BB_HEAD): New function, from macro of same name. This is
5973 intended for use as an lvalue, and so returns an rtx& to allow
5974 in-place modification.
5975 (SET_BB_END): Likewise.
5976 (SET_BB_HEADER): Likewise.
5977 (SET_BB_FOOTER): Likewise.
5978
5979 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5980
5981 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5982 for rvalues, and...
5983 (SET_BB_HEAD): New macro, for use as a lvalue.
5984 (BB_END, SET_BB_END): Likewise.
5985 (BB_HEADER, SET_BB_HEADER): Likewise.
5986 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5987
5988 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5989 of BB_* macros into SET_BB_* macros.
5990 (fix_crossing_unconditional_branches): Likewise.
5991 * caller-save.c (save_call_clobbered_regs): Likewise.
5992 (insert_one_insn): Likewise.
5993 * cfgbuild.c (find_bb_boundaries): Likewise.
5994 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5995 (outgoing_edges_match): Likewise.
5996 (try_optimize_cfg): Likewise.
5997 * cfgexpand.c (expand_gimple_cond): Likewise.
5998 (expand_gimple_tailcall): Likewise.
5999 (expand_gimple_basic_block): Likewise.
6000 (construct_exit_block): Likewise.
6001 * cfgrtl.c (delete_insn): Likewise.
6002 (create_basic_block_structure): Likewise.
6003 (rtl_delete_block): Likewise.
6004 (rtl_split_block): Likewise.
6005 (emit_nop_for_unique_locus_between): Likewise.
6006 (rtl_merge_blocks): Likewise.
6007 (block_label): Likewise.
6008 (try_redirect_by_replacing_jump): Likewise.
6009 (emit_barrier_after_bb): Likewise.
6010 (fixup_abnormal_edges): Likewise.
6011 (record_effective_endpoints): Likewise.
6012 (relink_block_chain): Likewise.
6013 (fixup_reorder_chain): Likewise.
6014 (fixup_fallthru_exit_predecessor): Likewise.
6015 (cfg_layout_duplicate_bb): Likewise.
6016 (cfg_layout_split_block): Likewise.
6017 (cfg_layout_delete_block): Likewise.
6018 (cfg_layout_merge_blocks): Likewise.
6019 * combine.c (update_cfg_for_uncondjump): Likewise.
6020 * emit-rtl.c (add_insn_after): Likewise.
6021 (remove_insn): Likewise.
6022 (reorder_insns): Likewise.
6023 (emit_insn_after_1): Likewise.
6024 * haifa-sched.c (get_ebb_head_tail): Likewise.
6025 (restore_other_notes): Likewise.
6026 (move_insn): Likewise.
6027 (sched_extend_bb): Likewise.
6028 (fix_jump_move): Likewise.
6029 * ifcvt.c (noce_process_if_block): Likewise.
6030 (dead_or_predicable): Likewise.
6031 * ira.c (update_equiv_regs): Likewise.
6032 * reg-stack.c (change_stack): Likewise.
6033 * sel-sched-ir.c (sel_move_insn): Likewise.
6034 * sel-sched.c (move_nop_to_previous_block): Likewise.
6035
6036 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6037 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6038
6039 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6040
6041 * rtl.h (for_each_rtx_in_insn): New function.
6042 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6043
6044 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6045
6046 * coretypes.h (class rtx_insn): Add forward declaration.
6047
6048 * rtl.h: Include is-a.h.
6049 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6050 workaround to ensure gengtype knows inheritance is occurring,
6051 whilst continuing to use the pre-existing special-casing for
6052 rtx_def.
6053 (class rtx_insn): New subclass of rtx_def, adding the
6054 invariant that we're dealing with something we can sanely use
6055 INSN_UID, NEXT_INSN, PREV_INSN on.
6056 (is_a_helper <rtx_insn *>::test): New.
6057 (is_a_helper <const rtx_insn *>::test): New.
6058
6059 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6060
6061 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6062
6063 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6064
6065 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6066 comdats as extern.
6067
6068 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6069
6070 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6071 to BUILT_IN_UNREACHABLE.
6072
6073 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6074
6075 PR target/62011
6076 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6077 New tune flag.
6078 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6079 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6080 (ffs<mode>2): Do not expand with tzcnt for
6081 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6082 (ffssi2_no_cmove): Ditto.
6083 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6084 (ctz<mode>2): New expander.
6085 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6086 (*ctz<mode>2_falsedep): New insn.
6087 (*ctz<mode>2): Rename from ctz<mode>2.
6088 (clz<mode>2_lzcnt): New expander.
6089 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6090 (*clz<mode>2_lzcnt_falsedep): New insn.
6091 (*clz<mode>2): Rename from ctz<mode>2.
6092 (popcount<mode>2): New expander.
6093 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6094 (*popcount<mode>2_falsedep): New insn.
6095 (*popcount<mode>2): Rename from ctz<mode>2.
6096 (*popcount<mode>2_cmp): Remove.
6097 (*popcountsi2_cmp_zext): Ditto.
6098
6099 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6100
6101 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6102 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6103 * config/microblaze/microblaze.h
6104 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6105
6106 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6107
6108 PR other/62168
6109 * configure.ac: Set install_gold_as_default to no for
6110 --enable-gold=no.
6111 * configure: Regenerated.
6112
6113 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6114
6115 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6116 * config.in: Add undef of HAVE_isl.
6117 * configure: Regenerate.
6118 * configure.ac: Add definition of HAVE_isl.
6119 * graphite-blocking.c: Add checking of HAVE_isl.
6120 * graphite-dependences.c: Likewise.
6121 * graphite-interchange.c: Likewise.
6122 * graphite-isl-ast-to-gimple.c: Likewise.
6123 * graphite-optimize-isl.c: Likewise.
6124 * graphite-poly.c: Likewise.
6125 * graphite-scop-detection.c: Likewise.
6126 * graphite-sese-to-poly.c: Likewise.
6127 * graphite.c: Likewise.
6128 * toplev.c: Replace the checking of HAVE_cloog with the checking
6129 of HAVE_isl.
6130
6131 2014-08-18 Richard Biener <rguenther@suse.de>
6132
6133 PR tree-optimization/62090
6134 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6135 (fold_builtin_3): Do not fold snprintf.
6136 (fold_builtin_4): Likewise.
6137 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6138 moved from builtins.c.
6139 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6140 (gimple_fold_builtin): Do not fold sprintf here.
6141
6142 2014-08-18 Richard Biener <rguenther@suse.de>
6143
6144 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6145 code to ...
6146 (maybe_canonicalize_mem_ref_addr): ... this function.
6147 (fold_stmt_1): Apply it here before all simplification.
6148
6149 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6150
6151 PR ipa/61800
6152 * cgraph.h (cgraph_node::create_indirect_edge): Add
6153 compute_indirect_info param.
6154 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6155 indirect_info only when it is required.
6156 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6157 indirect_info fore cloned indirect edge.
6158
6159 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6160 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6161 Anna Tikhonova <anna.tikhonova@intel.com>
6162 Ilya Tocar <ilya.tocar@intel.com>
6163 Andrey Turetskiy <andrey.turetskiy@intel.com>
6164 Ilya Verbin <ilya.verbin@intel.com>
6165 Kirill Yukhin <kirill.yukhin@intel.com>
6166 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6167
6168 * config/i386/sse.md
6169 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6170 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6171
6172 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6173 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6174 Anna Tikhonova <anna.tikhonova@intel.com>
6175 Ilya Tocar <ilya.tocar@intel.com>
6176 Andrey Turetskiy <andrey.turetskiy@intel.com>
6177 Ilya Verbin <ilya.verbin@intel.com>
6178 Kirill Yukhin <kirill.yukhin@intel.com>
6179 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6180
6181 * config/i386/sse.md
6182 (define_mode_iterator VF1_AVX512VL): New.
6183 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6184 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6185 New.
6186
6187 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6188 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6189 Anna Tikhonova <anna.tikhonova@intel.com>
6190 Ilya Tocar <ilya.tocar@intel.com>
6191 Andrey Turetskiy <andrey.turetskiy@intel.com>
6192 Ilya Verbin <ilya.verbin@intel.com>
6193 Kirill Yukhin <kirill.yukhin@intel.com>
6194 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6195
6196 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6197 * config/i386/i386.md
6198 (define_code_iterator any_float): New.
6199 (define_code_attr floatsuffix): New.
6200 * config/i386/sse.md
6201 (define_mode_iterator VF1_128_256VL): New.
6202 (define_mode_iterator VF2_512_256VL): New.
6203 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6204 TARGET check.
6205 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6206 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6207 New.
6208 (define_mode_attr qq2pssuff): New.
6209 (define_mode_attr sselongvecmode): New.
6210 (define_mode_attr sselongvecmodelower): New.
6211 (define_mode_attr sseintvecmode3): New.
6212 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6213 New.
6214 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6215 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6216 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6217 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6218
6219 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6220 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6221 Anna Tikhonova <anna.tikhonova@intel.com>
6222 Ilya Tocar <ilya.tocar@intel.com>
6223 Andrey Turetskiy <andrey.turetskiy@intel.com>
6224 Ilya Verbin <ilya.verbin@intel.com>
6225 Kirill Yukhin <kirill.yukhin@intel.com>
6226 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6227
6228 * config/i386/sse.md
6229 (define_mode_iterator VF2_AVX512VL): New.
6230 (define_mode_attr sseintvecmode2): New.
6231 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6232 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6233 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6234 (define_insn
6235 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6236 Ditto.
6237 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6238 Ditto.
6239 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6240 Ditto.
6241
6242 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6243 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6244 Anna Tikhonova <anna.tikhonova@intel.com>
6245 Ilya Tocar <ilya.tocar@intel.com>
6246 Andrey Turetskiy <andrey.turetskiy@intel.com>
6247 Ilya Verbin <ilya.verbin@intel.com>
6248 Kirill Yukhin <kirill.yukhin@intel.com>
6249 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6250
6251 * config/i386/i386.md
6252 (define_insn "*movoi_internal_avx"): Add evex version.
6253 (define_insn "*movti_internal"): Ditto.
6254
6255 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6256 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6257 Anna Tikhonova <anna.tikhonova@intel.com>
6258 Ilya Tocar <ilya.tocar@intel.com>
6259 Andrey Turetskiy <andrey.turetskiy@intel.com>
6260 Ilya Verbin <ilya.verbin@intel.com>
6261 Kirill Yukhin <kirill.yukhin@intel.com>
6262 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6263
6264 * config/i386/i386.md
6265 (define_attr "isa"): Add avx512dq, noavx512dq.
6266 (define_attr "enabled"): Ditto.
6267 * config/i386/sse.md
6268 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6269
6270 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6271 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6272 Anna Tikhonova <anna.tikhonova@intel.com>
6273 Ilya Tocar <ilya.tocar@intel.com>
6274 Andrey Turetskiy <andrey.turetskiy@intel.com>
6275 Ilya Verbin <ilya.verbin@intel.com>
6276 Kirill Yukhin <kirill.yukhin@intel.com>
6277 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6278
6279 * config/i386/i386.c
6280 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6281 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6282 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6283 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6284 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6285 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6286 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6287 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6288 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6289 * config/i386/sse.md
6290 (define_mode_iterator VMOVE): Allow V4TI mode.
6291 (define_mode_iterator V_AVX512VL): New.
6292 (define_mode_iterator V): New handling for AVX512VL.
6293 (define_insn "avx512f_load<mode>_mask"): Delete.
6294 (define_insn "<avx512>_load<mode>_mask"): New.
6295 (define_insn "avx512f_store<mode>_mask"): Delete.
6296 (define_insn "<avx512>_store<mode>_mask"): New.
6297
6298
6299 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6300
6301 PR sanitizer/62089
6302 * asan.c (instrument_derefs): Fix bitfield check.
6303
6304 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6305
6306 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6307 * config/rs6000/htm.md (ttest): Remove clobber.
6308 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6309 (and_operand): Reformat.
6310 (and_2rld_operand): New predicate.
6311 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6312 parameter.
6313 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6314 parameter. Handle AND directly.
6315 (rs6000_split_logical_di): Remove last parameter.
6316 (rs6000_split_logical): Remove last parameter. Remove obsolete
6317 comment.
6318 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6319 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6320 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6321 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6322 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6323 and 5 anonymous splitters): Delete.
6324 (and<mode>3): New expander.
6325 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6326 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6327 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6328 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6329 (floatdisf2_internal1): Remove clobbers.
6330 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6331 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6332 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6333 (and<mode>3 for BOOL_128): Remove clobber.
6334 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6335 rs6000_split_logical.
6336 (*bool<mode>3_internal for BOOL_128): Adjust call of
6337 rs6000_split_logical.
6338 (*boolc<mode>3_internal1 for BOOL_128,
6339 *boolc<mode>3_internal2 for BOOL_128,
6340 *boolcc<mode>3_internal1 for BOOL_128,
6341 *boolcc<mode>3_internal2 for BOOL_128,
6342 *eqv<mode>3_internal1 for BOOL_128,
6343 *eqv<mode>3_internal2 for BOOL_128,
6344 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6345 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6346 clobber.
6347 (*vec_reload_and_reg_<mptrsize>): Delete.
6348
6349 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6350
6351 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6352 and split, *boolccsi3_internal3 and split): Delete.
6353 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6354 *boolccdi3_internal3 and split): Delete.
6355 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6356 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6357
6358 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6359
6360 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6361 and split, *boolcsi3_internal3 and split): Delete.
6362 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6363 *boolcdi3_internal3 and split): Delete.
6364 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6365
6366 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6367
6368 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6369 <'u'>: Also support printing the low-order 16 bits.
6370 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6371 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6372 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6373 *booldi3_internal3 and split): Delete.
6374 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6375 *bool<mode>3_dot2): New.
6376 (two anonymous define_splits for non_logical_cint_operand): Merge.
6377
6378 2014-08-17 Marek Polacek <polacek@redhat.com>
6379 Manuel López-Ibáñez <manu@gcc.gnu.org>
6380
6381 PR c/62059
6382 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6383 (diagnostic_show_locus): Don't print caret diagnostic
6384 if a column is larger than the line_width.
6385
6386 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6387
6388 * common.opt: Make the ISL AST generator to be the main code generator
6389 of Graphite.
6390
6391 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6392
6393 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6394
6395 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6396
6397 PR target/61641
6398 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6399 Declare.
6400 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6401 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6402 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6403 Define.
6404 * config/pa/pa.md (begin_brtab): Delete insn.
6405 (end_brtab): Likewise.
6406
6407 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6408
6409 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6410
6411 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6412
6413 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6414 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6415 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6416 (get_dynamic_type): Remove.
6417 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6418 (clear_speculation): Bring to ipa-deivrt.h
6419 (get_class_context): Rename to ...
6420 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6421 (contains_type_p): Update.
6422 (get_dynamic_type): Rename to ...
6423 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6424 (possible_polymorphic_call_targets): UPdate.
6425 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6426 * ipa-prop.c (ipa_analyze_call_uses): Update.
6427
6428 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6429
6430 * doc/invoke.texi (SH options): Document missing processor variant
6431 options. Remove references to Hitachi. Undocument deprecated mspace
6432 option.
6433
6434 2014-08-15 Jason Merrill <jason@redhat.com>
6435
6436 * tree.c (type_hash_canon): Uncomment assert.
6437
6438 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6439
6440 * input.h (in_system_header_at): Add comment.
6441
6442 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6443
6444 PR fortran/44054
6445 * diagnostic.c (build_message_string): Make it extern.
6446 * diagnostic.h (build_message_string): Make it extern.
6447
6448 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6449
6450 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6451 load/store from/to non-floating class pseudo.
6452
6453 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6454
6455 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6456
6457 2014-08-15 Richard Biener <rguenther@suse.de>
6458
6459 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6460 (get_constraint_for_ssa_var): Remove dead code.
6461 (get_constraint_for_1): Adjust.
6462 (find_what_var_points_to): Likewise.
6463 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6464
6465 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6466
6467 PR target/61878
6468 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6469 (_mm512_mask_cmpge_epu32_mask): Ditto.
6470 (_mm512_cmpge_epu32_mask): Ditto.
6471 (_mm512_mask_cmpge_epi64_mask): Ditto.
6472 (_mm512_cmpge_epi64_mask): Ditto.
6473 (_mm512_mask_cmpge_epu64_mask): Ditto.
6474 (_mm512_cmpge_epu64_mask): Ditto.
6475 (_mm512_mask_cmple_epi32_mask): Ditto.
6476 (_mm512_cmple_epi32_mask): Ditto.
6477 (_mm512_mask_cmple_epu32_mask): Ditto.
6478 (_mm512_cmple_epu32_mask): Ditto.
6479 (_mm512_mask_cmple_epi64_mask): Ditto.
6480 (_mm512_cmple_epi64_mask): Ditto.
6481 (_mm512_mask_cmple_epu64_mask): Ditto.
6482 (_mm512_cmple_epu64_mask): Ditto.
6483 (_mm512_mask_cmplt_epi32_mask): Ditto.
6484 (_mm512_cmplt_epi32_mask): Ditto.
6485 (_mm512_mask_cmplt_epu32_mask): Ditto.
6486 (_mm512_cmplt_epu32_mask): Ditto.
6487 (_mm512_mask_cmplt_epi64_mask): Ditto.
6488 (_mm512_cmplt_epi64_mask): Ditto.
6489 (_mm512_mask_cmplt_epu64_mask): Ditto.
6490 (_mm512_cmplt_epu64_mask): Ditto.
6491 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6492 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6493 (_mm512_cmpneq_epu32_mask): Ditto.
6494 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6495 (_mm512_cmpneq_epi64_mask): Ditto.
6496 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6497 (_mm512_cmpneq_epu64_mask): Ditto.
6498 (_mm512_castpd_ps): Ditto.
6499 (_mm512_castpd_si512): Ditto.
6500 (_mm512_castps_pd): Ditto.
6501 (_mm512_castps_si512): Ditto.
6502 (_mm512_castsi512_ps): Ditto.
6503 (_mm512_castsi512_pd): Ditto.
6504 (_mm512_castpd512_pd128): Ditto.
6505 (_mm512_castps512_ps128): Ditto.
6506 (_mm512_castsi512_si128): Ditto.
6507 (_mm512_castpd512_pd256): Ditto.
6508 (_mm512_castps512_ps256): Ditto.
6509 (_mm512_castsi512_si256): Ditto.
6510 (_mm512_castpd128_pd512): Ditto.
6511 (_mm512_castps128_ps512): Ditto.
6512 (_mm512_castsi128_si512): Ditto.
6513 (_mm512_castpd256_pd512): Ditto.
6514 (_mm512_castps256_ps512): Ditto.
6515 (_mm512_castsi256_si512): Ditto.
6516 (_mm512_cmpeq_epu32_mask): Ditto.
6517 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6518 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6519 (_mm512_cmpeq_epu64_mask): Ditto.
6520 (_mm512_cmpgt_epu32_mask): Ditto.
6521 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6522 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6523 (_mm512_cmpgt_epu64_mask): Ditto.
6524 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6525 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6526 * config/i386/i386.c (enum ix86_builtins): Add
6527 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6528 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6529 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6530 (bdesc_args): Add __builtin_ia32_si512_256si,
6531 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6532 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6533 __builtin_ia32_pd512_pd.
6534 (ix86_expand_args_builtin): Handle new FTYPEs.
6535 * config/i386/sse.md (castmode): Add 512-bit modes.
6536 (AVX512MODE2P): New.
6537 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6538 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6539
6540 2014-08-15 Richard Biener <rguenther@suse.de>
6541
6542 * fold-const.c (tree_swap_operands_p): Put all constants
6543 last, also strip sign-changing NOPs when considering further
6544 canonicalization. Canonicalize also when optimizing for size.
6545
6546 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6547
6548 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6549 one_match > zero_match case to just before simple_sequence.
6550
6551 2014-08-15 Richard Biener <rguenther@suse.de>
6552
6553 * data-streamer.h (streamer_string_index, string_for_index):
6554 Remove.
6555 * data-streamer-out.c (streamer_string_index): Make static.
6556 * data-streamer-in.c (string_for_index): Likewise.
6557 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6558 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6559
6560 2014-08-15 Richard Biener <rguenther@suse.de>
6561
6562 PR tree-optimization/62031
6563 * tree-data-ref.c (dr_analyze_indices): Do not set
6564 DR_UNCONSTRAINED_BASE.
6565 (dr_may_alias_p): All indirect accesses have to go the
6566 formerly DR_UNCONSTRAINED_BASE path.
6567 * tree-data-ref.h (struct indices): Remove
6568 unconstrained_base member.
6569 (DR_UNCONSTRAINED_BASE): Remove.
6570
6571 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6572
6573 PR middle-end/62092
6574 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6575 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6576 in OMP_CLAUSE_MAP in some outer target region.
6577
6578 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6579
6580 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6581 name_expansion_cache.
6582 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6583 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6584 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6585 (difference_cannot_overflow_p): New parameter. Use affine
6586 expansion for equality check.
6587 (iv_elimination_compare_lt): Pass new argument.
6588
6589 2014-08-14 DJ Delorie <dj@redhat.com>
6590
6591 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6592 variables to the accumulator.
6593
6594 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6595 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6596 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6597 with far-far moves.
6598
6599 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6600 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6601 (umulqihi3_virt): Likewise.
6602 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6603 (umulqihi3_real): Likewise.
6604
6605 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6606
6607 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6608
6609 PR tree-optimization/62091
6610 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6611 function_entry_reached.
6612 (walk_aliased_vdefs): Clear it here.
6613 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6614
6615 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6616
6617 * ipa-utils.h (compare_virtual_tables): Declare.
6618 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6619
6620 2014-08-14 Marek Polacek <polacek@redhat.com>
6621
6622 DR 458
6623 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6624 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6625
6626 2014-08-14 Tom de Vries <tom@codesourcery.com>
6627
6628 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6629
6630 2014-08-14 Tom de Vries <tom@codesourcery.com>
6631
6632 PR rtl-optimization/62004
6633 PR rtl-optimization/62030
6634 * ifcvt.c (rtx_interchangeable_p): New function.
6635 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6636 * emit-rtl.h (mem_attrs_eq_p): Declare.
6637
6638 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6639
6640 * graphite-scop-detection.c:
6641 Add inclusion of cp-tree.h.
6642 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6643 in case they are pointers to object types
6644
6645 2014-08-14 Richard Biener <rguenther@suse.de>
6646
6647 * BASE-VER: Change to 5.0.0
6648
6649 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6650 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6651 Anna Tikhonova <anna.tikhonova@intel.com>
6652 Ilya Tocar <ilya.tocar@intel.com>
6653 Andrey Turetskiy <andrey.turetskiy@intel.com>
6654 Ilya Verbin <ilya.verbin@intel.com>
6655 Kirill Yukhin <kirill.yukhin@intel.com>
6656 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6657
6658 * config/i386/sse.md (define_mode_attr avx512): New.
6659 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6660 V4DI modes.
6661 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6662 (define_mode_attr ssse3_avx2): Ditto.
6663 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6664 (define_mode_attr avx2_avx512bw): New.
6665 (define_mode_attr ssedoublemodelower): New.
6666 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6667 V32HI, V64QI modes.
6668 (define_mode_attr ssebytemode): Allow V8DI modes.
6669 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6670 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6671 (define_mode_attr ssePSmode2): New.
6672 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6673 V16HI, V32HI modes.
6674 (define_mode_attr dbpsadbwmode): New.
6675 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6676 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6677 (vi8_sse4_1_avx2_avx512): New.
6678 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6679 mode attribute.
6680 (define_mode_attr blendbits): Move before its immediate use.
6681
6682 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6683 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6684 Anna Tikhonova <anna.tikhonova@intel.com>
6685 Ilya Tocar <ilya.tocar@intel.com>
6686 Andrey Turetskiy <andrey.turetskiy@intel.com>
6687 Ilya Verbin <ilya.verbin@intel.com>
6688 Kirill Yukhin <kirill.yukhin@intel.com>
6689 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6690
6691 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6692 * config/i386/subst.md
6693 (define_mode_iterator SUBST_V): Update.
6694 (define_mode_iterator SUBST_A): Ditto.
6695 (define_subst_attr "mask_operand7"): New.
6696 (define_subst_attr "mask_operand10"): New.
6697 (define_subst_attr "mask_operand_arg34") : New.
6698 (define_subst_attr "mask_expand_op3"): New.
6699 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6700 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6701 (define_subst_attr "mask_avx512vl_condition"): New.
6702 (define_subst_attr "round_mask_operand4"): Ditto.
6703 (define_subst_attr "round_mask_scalar_op3"): Delete.
6704 (define_subst_attr "round_mask_op4"): New.
6705 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6706 V16SImode.
6707 (define_subst_attr "round_modev8sf_condition"): New.
6708 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6709 <MODE>mode.
6710 (define_subst_attr "round_saeonly_mask_operand4"): New.
6711 (define_subst_attr "round_saeonly_mask_op4"): New.
6712 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6713 V8DImode, V16SImode.
6714 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6715 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6716 (define_subst_attr "mask_expand4_args"): New.
6717 (define_subst "mask_expand4"): New.
6718
6719 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6720 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6721 Anna Tikhonova <anna.tikhonova@intel.com>
6722 Ilya Tocar <ilya.tocar@intel.com>
6723 Andrey Turetskiy <andrey.turetskiy@intel.com>
6724 Ilya Verbin <ilya.verbin@intel.com>
6725 Kirill Yukhin <kirill.yukhin@intel.com>
6726 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6727
6728 * config/i386/i386.md
6729 (define_attr "isa"): Add avx512bw,noavx512bw.
6730 (define_attr "enabled"): Ditto.
6731 (define_split): Add 32/64-bit mask logic.
6732 (define_insn "*k<logic>qi"): New.
6733 (define_insn "*k<logic>hi"): New.
6734 (define_insn "*anddi_1"): Add mask version.
6735 (define_insn "*andsi_1"): Ditto.
6736 (define_insn "*<code><mode>_1"): Ditto.
6737 (define_insn "*<code>hi_1"): Ditto.
6738 (define_insn "kxnor<mode>"): New.
6739 (define_insn "kunpcksi"): New.
6740 (define_insn "kunpckdi"): New.
6741 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6742 (define_insn "*one_cmplhi2_1"): Ditto.
6743
6744 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6745 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6746 Anna Tikhonova <anna.tikhonova@intel.com>
6747 Ilya Tocar <ilya.tocar@intel.com>
6748 Andrey Turetskiy <andrey.turetskiy@intel.com>
6749 Ilya Verbin <ilya.verbin@intel.com>
6750 Kirill Yukhin <kirill.yukhin@intel.com>
6751 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6752
6753 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6754 V32HImode.
6755
6756 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6757 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6758 Anna Tikhonova <anna.tikhonova@intel.com>
6759 Ilya Tocar <ilya.tocar@intel.com>
6760 Andrey Turetskiy <andrey.turetskiy@intel.com>
6761 Ilya Verbin <ilya.verbin@intel.com>
6762 Kirill Yukhin <kirill.yukhin@intel.com>
6763 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6764
6765 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6766 registers.
6767 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6768 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6769 xmm/ymm16+ when availble.
6770 * config/i386/i386.h
6771 (HARD_REGNO_NREGS): Add mask regs.
6772 (VALID_AVX512F_REG_MODE): Ditto.
6773 (VALID_AVX512F_REG_MODE) : Define.
6774 (VALID_MASK_AVX512BW_MODE): Ditto.
6775 (reg_class) (MASK_REG_P(X)): Define.
6776 * config/i386/i386.md: Do not split long moves with mask register,
6777 use kmovb if avx512bw is availible.
6778 (movdi_internal): Handle mask registers.
6779
6780 2014-08-14 Richard Biener <rguenther@suse.de>
6781
6782 PR tree-optimization/62081
6783 * tree-ssa-loop.c (pass_fix_loops): New pass.
6784 (pass_tree_loop::gate): Do not fixup loops here.
6785 * tree-pass.h (make_pass_fix_loops): Declare.
6786 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6787
6788 2014-08-14 Richard Biener <rguenther@suse.de>
6789
6790 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6791 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6792
6793 2014-08-14 Richard Biener <rguenther@suse.de>
6794
6795 PR tree-optimization/62090
6796 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6797 (fold_builtin_2): Do not fold sprintf.
6798 (fold_builtin_3): Likewise.
6799 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6800 moved from builtins.c.
6801 (gimple_fold_builtin): Fold sprintf.
6802
6803 2014-08-14 Richard Biener <rguenther@suse.de>
6804
6805 PR rtl-optimization/62079
6806 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6807 run cleanup_cfg.
6808
6809 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6810
6811 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6812 current_function_decl.
6813
6814 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6815
6816 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6817 cgraph_function_node to cgraph_node::function_symbol
6818 refactoring.
6819
6820 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6821
6822 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6823 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6824
6825 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6826
6827 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6828 warning.
6829
6830 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6831
6832 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6833 generator.
6834
6835 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6836
6837 PR target/62025
6838 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6839 any registers that are used in mem_insn.
6840
6841 2014-08-12 Steve Ellcey <sellcey@mips.com>
6842
6843 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6844
6845 2014-08-12 Steve Ellcey <sellcey@mips.com>
6846
6847 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6848 (MULTILIB_DIRNAMES): Ditto.
6849 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6850 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6851 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6852 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6853 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6854 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6855
6856 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6857
6858 PR target/61413
6859 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6860 of __ARM_SIZEOF_WCHAR_T.
6861
6862 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6863
6864 PR target/62098
6865 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6866 Remove unnecessary attributes.
6867
6868 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6869
6870 * internal-fn.c (init_internal_fns): Fix off-by-one.
6871
6872 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6873 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6874 Anna Tikhonova <anna.tikhonova@intel.com>
6875 Ilya Tocar <ilya.tocar@intel.com>
6876 Andrey Turetskiy <andrey.turetskiy@intel.com>
6877 Ilya Verbin <ilya.verbin@intel.com>
6878 Kirill Yukhin <kirill.yukhin@intel.com>
6879 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6880
6881 * config/i386/i386.c (standard_sse_constant_opcode): Use
6882 vpxord/vpternlog if avx512 is availible.
6883
6884 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6885
6886 PR middle-end/62103
6887 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6888 bitfields, that is when size doesn't match the size of type or the
6889 size of the constructor.
6890
6891 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6892
6893 * config/rs6000/constraints.md (wh constraint): New constraint,
6894 for FP registers if direct move is available.
6895 (wi constraint): New constraint, for VSX/FP registers that can
6896 handle 64-bit integers.
6897 (wj constraint): New constraint for VSX/FP registers that can
6898 handle 64-bit integers for direct moves.
6899 (wk constraint): New constraint for VSX/FP registers that can
6900 handle 64-bit doubles for direct moves.
6901 (wy constraint): Make documentation match implementation.
6902
6903 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6904 scalar_in_vmx_p field to simplify tests of whether SFmode or
6905 DFmode can go in the Altivec registers.
6906 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6907 (rs6000_setup_reg_addr_masks): Likewise.
6908 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6909 field, and wh/wi/wj/wk constraints.
6910 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6911 the wh/wi/wj/wk constraints.
6912 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6913 upper registers, prefer VSX registers unless the operation is a
6914 memory operation with REG+OFFSET addressing.
6915
6916 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6917 DImode. Change SFmode to use ww constraint instead of d to allow
6918 SF registers in the upper registers.
6919 (VSr2): Likewise.
6920 (VSr3): Likewise.
6921 (VSr5): Fix thinko in comment.
6922 (VSa): New mode attribute that is an alternative to wa, that
6923 returns the VSX register class that a mode can go in, but may not
6924 be the preferred register class.
6925 (VS_64dm): New mode attribute for appropriate register classes for
6926 referencing 64-bit elements of vectors for direct moves and normal
6927 moves.
6928 (VS_64reg): Likewise.
6929 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6930 register allocator to only registers the data type can handle.
6931 (vsx_le_perm_load_<mode>): Likewise.
6932 (vsx_le_perm_store_<mode>): Likewise.
6933 (vsx_xxpermdi2_le_<mode>): Likewise.
6934 (vsx_xxpermdi4_le_<mode>): Likewise.
6935 (vsx_lxvd2x2_le_<mode>): Likewise.
6936 (vsx_lxvd2x4_le_<mode>): Likewise.
6937 (vsx_stxvd2x2_le_<mode>): Likewise.
6938 (vsx_add<mode>3): Likewise.
6939 (vsx_sub<mode>3): Likewise.
6940 (vsx_mul<mode>3): Likewise.
6941 (vsx_div<mode>3): Likewise.
6942 (vsx_tdiv<mode>3_internal): Likewise.
6943 (vsx_fre<mode>2): Likewise.
6944 (vsx_neg<mode>2): Likewise.
6945 (vsx_abs<mode>2): Likewise.
6946 (vsx_nabs<mode>2): Likewise.
6947 (vsx_smax<mode>3): Likewise.
6948 (vsx_smin<mode>3): Likewise.
6949 (vsx_sqrt<mode>2): Likewise.
6950 (vsx_rsqrte<mode>2): Likewise.
6951 (vsx_tsqrt<mode>2_internal): Likewise.
6952 (vsx_fms<mode>4): Likewise.
6953 (vsx_nfma<mode>4): Likewise.
6954 (vsx_eq<mode>): Likewise.
6955 (vsx_gt<mode>): Likewise.
6956 (vsx_ge<mode>): Likewise.
6957 (vsx_eq<mode>_p): Likewise.
6958 (vsx_gt<mode>_p): Likewise.
6959 (vsx_ge<mode>_p): Likewise.
6960 (vsx_xxsel<mode>): Likewise.
6961 (vsx_xxsel<mode>_uns): Likewise.
6962 (vsx_copysign<mode>3): Likewise.
6963 (vsx_float<VSi><mode>2): Likewise.
6964 (vsx_floatuns<VSi><mode>2): Likewise.
6965 (vsx_fix_trunc<mode><VSi>2): Likewise.
6966 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6967 (vsx_x<VSv>r<VSs>i): Likewise.
6968 (vsx_x<VSv>r<VSs>ic): Likewise.
6969 (vsx_btrunc<mode>2): Likewise.
6970 (vsx_b2trunc<mode>2): Likewise.
6971 (vsx_floor<mode>2): Likewise.
6972 (vsx_ceil<mode>2): Likewise.
6973 (vsx_<VS_spdp_insn>): Likewise.
6974 (vsx_xscvspdp): Likewise.
6975 (vsx_xvcvspuxds): Likewise.
6976 (vsx_float_fix_<mode>2): Likewise.
6977 (vsx_set_<mode>): Likewise.
6978 (vsx_extract_<mode>_internal1): Likewise.
6979 (vsx_extract_<mode>_internal2): Likewise.
6980 (vsx_extract_<mode>_load): Likewise.
6981 (vsx_extract_<mode>_store): Likewise.
6982 (vsx_splat_<mode>): Likewise.
6983 (vsx_xxspltw_<mode>): Likewise.
6984 (vsx_xxspltw_<mode>_direct): Likewise.
6985 (vsx_xxmrghw_<mode>): Likewise.
6986 (vsx_xxmrglw_<mode>): Likewise.
6987 (vsx_xxsldwi_<mode>): Likewise.
6988 (vsx_xscvdpspn): Tighten constraints to only use register classes
6989 the types use.
6990 (vsx_xscvspdpn): Likewise.
6991 (vsx_xscvdpspn_scalar): Likewise.
6992
6993 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6994 wj, and wk constraints.
6995 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6996 general purpose registers.
6997
6998 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6999 direct moves.
7000 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7001 DImode instead of wm. Use wk constraint for direct move of DFmode
7002 instead of wm.
7003 (extendsidi2_lfiwax): Likewise.
7004 (lfiwax): Likewise.
7005 (lfiwzx): Likewise.
7006 (movdi_internal64): Likewise.
7007
7008 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7009 wk constraints. Make the wy constraint documentation match them
7010 implementation.
7011
7012 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7013
7014 Replacement of isl_int by isl_val
7015 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7016 (compute_bounds_for_param): use isl_val instead of isl_int
7017 (compute_bounds_for_loop): likewise
7018 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7019 (build_linearized_memory_access): use isl_val instead of isl_int
7020 (pdr_stride_in_loop): likewise
7021 * graphite-optimize-isl.c:
7022 (getPrevectorMap): use isl_val instead of isl_int
7023 * graphite-poly.c:
7024 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7025 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7026 (extern the_isl_ctx): declare
7027 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7028 (extract_affine_gmp): likewise
7029 (wrap): likewise
7030 (build_loop_iteration_domains): likewise
7031 (add_param_constraints): likewise
7032
7033 2014-08-11 Richard Biener <rguenther@suse.de>
7034
7035 PR tree-optimization/62075
7036 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7037 handle uses in patterns.
7038
7039 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7040 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7041 Anna Tikhonova <anna.tikhonova@intel.com>
7042 Ilya Tocar <ilya.tocar@intel.com>
7043 Andrey Turetskiy <andrey.turetskiy@intel.com>
7044 Ilya Verbin <ilya.verbin@intel.com>
7045 Kirill Yukhin <kirill.yukhin@intel.com>
7046 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7047
7048 * common/config/i386/i386-common.c
7049 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7050 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7051 (ix86_handle_option): Handle OPT_mavx512vl.
7052 * config/i386/cpuid.h (bit_AVX512VL): Define.
7053 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7054 set -mavx512vl accordingly.
7055 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7056 OPTION_MASK_ISA_AVX512VL.
7057 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7058 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7059 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7060 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7061 * config/i386/i386.h (TARGET_AVX512VL): Define.
7062 (TARGET_AVX512VL_P(x)): Ditto.
7063 * config/i386/i386.opt: Add mavx512vl.
7064
7065 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7066
7067 PR tree-optimization/62073
7068 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7069 a basic block.
7070
7071 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7072 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7073 Anna Tikhonova <anna.tikhonova@intel.com>
7074 Ilya Tocar <ilya.tocar@intel.com>
7075 Andrey Turetskiy <andrey.turetskiy@intel.com>
7076 Ilya Verbin <ilya.verbin@intel.com>
7077 Kirill Yukhin <kirill.yukhin@intel.com>
7078 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7079
7080 * common/config/i386/i386-common.c
7081 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7082 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7083 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7084 (ix86_handle_option): Handle OPT_mavx512bw.
7085 * config/i386/cpuid.h (bit_AVX512BW): Define.
7086 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7087 set -mavx512bw accordingly.
7088 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7089 OPTION_MASK_ISA_AVX512BW.
7090 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7091 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7092 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7093 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7094 * config/i386/i386.h (TARGET_AVX512BW): Define.
7095 (TARGET_AVX512BW_P(x)): Ditto.
7096 * config/i386/i386.opt: Add mavx512bw.
7097
7098 2014-08-11 Richard Biener <rguenther@suse.de>
7099
7100 PR tree-optimization/62070
7101 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7102 Remove SSA checking.
7103
7104 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7105
7106 * asan.c (asan_check_flags): New enum.
7107 (build_check_stmt_with_calls): Removed function.
7108 (build_check_stmt): Split inlining logic to
7109 asan_expand_check_ifn.
7110 (instrument_derefs): Rename parameter.
7111 (instrument_mem_region_access): Rename parameter.
7112 (instrument_strlen_call): Likewise.
7113 (asan_expand_check_ifn): New function.
7114 (asan_instrument): Remove old code.
7115 (pass_sanopt::execute): Change handling of
7116 asan-instrumentation-with-call-threshold.
7117 (asan_clear_shadow): Fix formatting.
7118 (asan_function_start): Likewise.
7119 (asan_emit_stack_protection): Likewise.
7120 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7121 Update description.
7122 * internal-fn.c (expand_ASAN_CHECK): New function.
7123 * internal-fn.def (ASAN_CHECK): New internal function.
7124 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7125 Update description.
7126 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7127 * tree.c: Small comment fix.
7128
7129 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7130
7131 * gimple.c (gimple_call_fnspec): Support internal functions.
7132 (gimple_call_return_flags): Use const.
7133 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7134 * internal-fn.def: Add fnspec information.
7135 * internal-fn.h (internal_fn_fnspec): New function.
7136 (init_internal_fns): Declare new function.
7137 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7138 (init_internal_fns): New function.
7139 * tree-core.h: Update macro call.
7140 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7141
7142 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7143
7144 * lto-streamer.h (struct output_block::symbol): Change from
7145 struct symtab_node to plain symtab_node.
7146 (referenced_from_this_partition_p): Change first parameter
7147 from struct symtab_node to plain symtab_node.
7148
7149 2014-08-10 Marek Polacek <polacek@redhat.com>
7150
7151 PR c/51849
7152 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7153
7154 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7155
7156 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7157 DECL correctly; do not give up on types in static storage.
7158
7159 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7160
7161 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7162
7163 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7164
7165 * graphite-isl-ast-to-gimple.c:
7166 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7167
7168 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7169
7170 2014-08-08 Guozhi Wei <carrot@google.com>
7171
7172 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7173
7174 2014-08-08 Cary Coutant <ccoutant@google.com>
7175
7176 * dwarf2out.c (get_skeleton_type_unit): Remove.
7177 (output_skeleton_debug_sections): Remove skeleton type units.
7178 (output_comdat_type_unit): Likewise.
7179 (dwarf2out_finish): Likewise.
7180
7181 2014-08-07 Yi Yang <ahyangyi@google.com>
7182
7183 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7184
7185 2014-08-08 Richard Biener <rguenther@suse.de>
7186
7187 * lto-streamer.h (struct lto_input_block): Make it a class
7188 with a constructor.
7189 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7190 (struct lto_function_header, struct lto_simple_header,
7191 struct lto_simple_header_with_strings,
7192 struct lto_decl_header, struct lto_function_header): Make
7193 a simple inheritance hieararchy. Remove unused fields.
7194 (struct lto_asm_header): Remove.
7195 * lto-streamer-out.c (produce_asm): Adjust.
7196 (lto_output_toplevel_asms): Likewise.
7197 (produce_asm_for_decls): Likewise.
7198 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7199 * data-streamer-in.c (string_for_index): Likewise.
7200 * ipa-inline-analysis.c (inline_read_section): Likewise.
7201 * ipa-prop.c (ipa_prop_read_section): Likewise.
7202 (read_replacements_section): Likewise.
7203 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7204 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7205 (lto_destroy_simple_input_block): Likewise.
7206 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7207 (lto_input_toplevel_asms): Likewise.
7208
7209 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7210 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7211 Anna Tikhonova <anna.tikhonova@intel.com>
7212 Ilya Tocar <ilya.tocar@intel.com>
7213 Andrey Turetskiy <andrey.turetskiy@intel.com>
7214 Ilya Verbin <ilya.verbin@intel.com>
7215 Kirill Yukhin <kirill.yukhin@intel.com>
7216 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7217
7218 * common/config/i386/i386-common.c
7219 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7220 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7221 (ix86_handle_option): Handle OPT_mavx512dq.
7222 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7223 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7224 set -mavx512dq accordingly.
7225 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7226 OPTION_MASK_ISA_AVX512DQ.
7227 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7228 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7229 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7230 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7231 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7232 (TARGET_AVX512DQ_P(x)): Ditto.
7233 * config/i386/i386.opt: Add mavx512dq.
7234
7235 2014-08-08 Richard Biener <rguenther@suse.de>
7236
7237 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7238 target_percent, target_percent_s): Export.
7239 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7240 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7241 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7242 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7243 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7244 Move to gimple-fold.c.
7245 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7246 strcat and strcpy.
7247 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7248 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7249 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7250 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7251 (rewrite_call_expr_array): Remove.
7252 (fold_builtin_sprintf_chk): Likewise.
7253 (fold_builtin_snprintf_chk): Likewise.
7254 (fold_builtin_varargs): Remove handling of sprintf_chk,
7255 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7256 (gimple_fold_builtin_sprintf_chk): Remove.
7257 (gimple_fold_builtin_snprintf_chk): Likewise.
7258 (gimple_fold_builtin_varargs): Likewise.
7259 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7260 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7261 * gimple.c (gimple_seq_add_seq_without_update): New function.
7262 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7263 * gimple-fold.c: Include output.h.
7264 (gsi_replace_with_seq_vops): New function, split out from ...
7265 (gimplify_and_update_call_from_tree): ... here.
7266 (replace_call_with_value): New function.
7267 (replace_call_with_call_and_fold): Likewise.
7268 (var_decl_component_p): Moved from builtins.c.
7269 (gimple_fold_builtin_memory_op): Moved from builtins.c
7270 fold_builtin_memory_op and rewritten to GIMPLE.
7271 (gimple_fold_builtin_memset): Likewise.
7272 (gimple_fold_builtin_strcpy): Likewise.
7273 (gimple_fold_builtin_strncpy): Likewise.
7274 (gimple_fold_builtin_strcat): Likewise.
7275 (gimple_fold_builtin_fputs): Likewise.
7276 (gimple_fold_builtin_memory_chk): Likewise.
7277 (gimple_fold_builtin_stxcpy_chk): Likewise.
7278 (gimple_fold_builtin_stxncpy_chk): Likewise.
7279 (gimple_fold_builtin_snprintf_chk): Likewise.
7280 (gimple_fold_builtin_sprintf_chk): Likewise.
7281 (gimple_fold_builtin_strlen): New function.
7282 (gimple_fold_builtin_with_strlen): New function split out from
7283 gimple_fold_builtin.
7284 (gimple_fold_builtin): Change signature and handle
7285 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7286 here. Call gimple_fold_builtin_with_strlen.
7287 (gimple_fold_call): Adjust.
7288
7289 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7290
7291 * calls.c (precompute_arguments): Check
7292 promoted_for_signed_and_unsigned_p and set the promoted mode.
7293 (promoted_for_signed_and_unsigned_p): New function.
7294 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7295 and set the promoted mode.
7296 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7297 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7298 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7299
7300
7301 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7302
7303 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7304 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7305 (expand_call): Likewise.
7306 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7307 to get promoted mode.
7308 * combine.c (record_promoted_value): Skip > 0 comparison with
7309 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7310 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7311 of SUBREG_PROMOTED_UNSIGNED_P.
7312 (convert_modes): Likewise.
7313 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7314 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7315 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7316 SUBREG_PROMOTED_UNSIGNED_SET.
7317 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7318 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7319 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7320 SUBREG_PROMOTED_SET.
7321 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7322 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7323 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7324 of SUBREG_PROMOTED_UNSIGNED_P.
7325 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7326 (SUBREG_PROMOTED_SET): New define.
7327 (SUBREG_PROMOTED_GET): Likewise.
7328 (SUBREG_PROMOTED_SIGN): Likewise.
7329 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7330 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7331 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7332 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7333 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7334 (nonzero_bits1): Skip > 0 comparison with the results as
7335 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7336 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7337 of !SUBREG_PROMOTED_UNSIGNED_P.
7338 * simplify-rtx.c (simplify_unary_operation_1): Use new
7339 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7340 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7341 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7342 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7343
7344 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7345
7346 * ipa-devirt.c: Include gimple-pretty-print.h
7347 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7348 further tests.
7349 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7350 (get_polymorphic_call_info): Fix return value
7351 (type_change_info): New sturcture based on ipa-prop
7352 variant.
7353 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7354 based on ipa-prop variant.
7355 (extr_type_from_vtbl_ptr_store): New function
7356 based on ipa-prop variant.
7357 (record_known_type): New function.
7358 (check_stmt_for_type_change): New function.
7359 (get_dynamic_type): New function.
7360 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7361 * tree-ssa-pre.c: ipa-utils.h
7362 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7363 machinery; sanity check with ipa-prop devirtualization.
7364 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7365 polymorphic flag.
7366
7367 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7368
7369 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7370 * alias.c, cfgexpand.c, cgraphbuild.c,
7371 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7372 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7373 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7374 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7375 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7376 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7377 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7378 dse.c, except.c, gengtype.c, gimple-expr.c,
7379 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7380 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7381 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7382 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7383 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7384 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7385 pointer-set.h.
7386 * pointer-set.c: Remove file.
7387 * pointer-set.h: Remove file.
7388
7389 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7390
7391 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7392 * config/arm/types.md (f_sels, f_seld): Delete.
7393
7394 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7395
7396 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7397 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7398 (aarch64_movdi_<mode>high): Likewise.
7399 (aarch64_mov<mode>high_di): Likewise.
7400 (aarch64_movdi_<mode>low): Likewise.
7401 (aarch64_mov<mode>low_di): Likewise.
7402 (aarch64_movtilow_tilow): Likewise.
7403 Add comment explaining usage of fp,simd attributes and of
7404 TARGET_FLOAT and TARGET_SIMD.
7405
7406 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7407 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7408
7409 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7410 Use MOVN when one of the half-words is 0xffff.
7411
7412 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7413
7414 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7415
7416 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7417
7418 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7419 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7420 (rfs_str): String corresponding to RFS_* constants.
7421 (rank_for_schedule_stats_t): New typedef.
7422 (rank_for_schedule_stats): New static variable.
7423 (rfs_result): New static function.
7424 (rank_for_schedule): Track statistics for deciding heuristics.
7425 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7426 static functions.
7427 (ready_sort): Use them for debug printouts.
7428 (schedule_block): Init statistics state. Print statistics on
7429 rank_for_schedule decisions.
7430
7431 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7432
7433 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7434
7435 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7436
7437 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7438 constraint.
7439
7440 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7441
7442 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7443 function to not conflict.
7444 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7445 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7446 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7447 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7448 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7449 of pointer_map.
7450
7451 2014-08-07 Marek Polacek <polacek@redhat.com>
7452
7453 * fold-const.c (fold_binary_loc): Add folding of
7454 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7455
7456 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7457
7458 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7459 instead of type size.
7460 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7461
7462 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7463
7464 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7465 (*thumb1_movqi_insn): Likewise.
7466 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7467
7468 2014-08-07 Tom de Vries <tom@codesourcery.com>
7469
7470 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7471 (glibc_2_11_or_earlier): Remove effective-target keywords.
7472
7473 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7474
7475 * config/arm/arm.c (bdesc_2arg): Fix typo.
7476 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7477
7478 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7479
7480 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7481
7482 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7483
7484 PR debug/61923
7485 * haifa-sched.c (advance_one_cycle): Fix dump.
7486 (schedule_block): Don't advance cycle if we are already at the
7487 beginning of the cycle.
7488
7489 2014-08-06 Martin Jambor <mjambor@suse.cz>
7490
7491 PR ipa/61393
7492 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7493
7494 2014-08-06 Richard Biener <rguenther@suse.de>
7495
7496 PR lto/62034
7497 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7498 SCCs here.
7499 (lto_input_tree): Pop SCCs here.
7500
7501 2014-08-06 Richard Biener <rguenther@suse.de>
7502
7503 PR tree-optimization/61320
7504 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7505 handle misaligned loads.
7506
7507 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7508
7509 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7510 (aarch64_expand_vec_perm_const): Check for dup before zip.
7511
7512 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7513
7514 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7515 CONST_INT_P instead of GET_CODE and compare.
7516 (aarch64_select_cc_mode): Likewise.
7517 (aarch64_print_operand): Likewise.
7518 (aarch64_rtx_costs): Likewise.
7519 (aarch64_simd_valid_immediate): Likewise.
7520 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7521 (aarch64_simd_emit_pair_result_insn): Likewise.
7522
7523 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7524
7525 * gdbhooks.py (find_gcc_source_dir): New helper function.
7526 (class PassNames): New class, locating and parsing passes.def.
7527 (class BreakOnPass): New command "break-on-pass".
7528
7529 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7530
7531 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7532 getting olde.
7533
7534 2014-08-05 Richard Biener <rguenther@suse.de>
7535
7536 PR rtl-optimization/61672
7537 * emit-rtl.h (mem_attrs_eq_p): Declare.
7538 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7539 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7540 * cfgcleanup.c (merge_memattrs): Likewise.
7541 Include emit-rtl.h.
7542
7543 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7544
7545 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7546 rather than singleton vectors.
7547 (vqdmlsls_lane_s32): Likewise.
7548
7549 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7550
7551 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7552 Use VSDQ_HSI mode iterator.
7553 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7554 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7555 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7556 Use BUILTIN_VDQHS macro.
7557 (sqrdmulh_laneq): Likewise.
7558 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7559 (vqdmlals_laneq_s32): Likewise.
7560 (vqdmlslh_laneq_s16): Likewise.
7561 (vqdmlsls_laneq_s32): Likewise.
7562 (vqdmulhh_laneq_s16): Likewise.
7563 (vqdmulhs_laneq_s32): Likewise.
7564 (vqrdmulhh_laneq_s16): Likewise.
7565 (vqrdmulhs_laneq_s32): Likewise.
7566
7567 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7568
7569 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7570 (vmuld_laneq_f64): Likewise.
7571 (vmuls_laneq_f32): Likewise.
7572 (vmul_n_f64): Likewise.
7573 (vmuld_lane_f64): Reimplement in C.
7574 (vmuls_lane_f32): Likewise.
7575
7576 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7577
7578 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7579 to reservation.
7580 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7581
7582 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7583
7584 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7585 (rbitsi2): Likewise.
7586 (*arm_rev): Set predicable and predicable_short_it attributes.
7587
7588 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7589
7590 * convert.c (convert_to_integer): Guard transformation to lrint by
7591 -fno-math-errno.
7592
7593 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7594
7595 * config/aarch64/aarch64-builtins.c
7596 (aarch64_simd_builtin_type_mode): Delete.
7597 (v8qi_UP): Remap to V8QImode.
7598 (v4hi_UP): Remap to V4HImode.
7599 (v2si_UP): Remap to V2SImode.
7600 (v2sf_UP): Remap to V2SFmode.
7601 (v1df_UP): Remap to V1DFmode.
7602 (di_UP): Remap to DImode.
7603 (df_UP): Remap to DFmode.
7604 (v16qi_UP):V16QImode.
7605 (v8hi_UP): Remap to V8HImode.
7606 (v4si_UP): Remap to V4SImode.
7607 (v4sf_UP): Remap to V4SFmode.
7608 (v2di_UP): Remap to V2DImode.
7609 (v2df_UP): Remap to V2DFmode.
7610 (ti_UP): Remap to TImode.
7611 (ei_UP): Remap to EImode.
7612 (oi_UP): Remap to OImode.
7613 (ci_UP): Map to CImode.
7614 (xi_UP): Remap to XImode.
7615 (si_UP): Remap to SImode.
7616 (sf_UP): Remap to SFmode.
7617 (hi_UP): Remap to HImode.
7618 (qi_UP): Remap to QImode.
7619 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7620 (VAR1): Build builtin name.
7621 (aarch64_init_simd_builtins): Remove dead code.
7622
7623 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7624
7625 * graphite-isl-ast-to-gimple.c:
7626 (set_options): New function.
7627 (scop_to_isl_ast): Add calling of set_options.
7628
7629 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7630
7631 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7632 (analyze_iv_to_split_insn): Don't initialize them.
7633 (get_ivts_expr): Removed.
7634 (allocate_basic_variable, insert_base_initialization): Use
7635 SET_SRC instead of *get_ivts_expr.
7636 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7637
7638 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7639
7640 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7641 (translate_isl_ast_for_loop): Add checking of the
7642 flag_loop_parallelize_all.
7643 (ast_build_before_for): New function.
7644 (scop_to_isl_ast): Add checking of the
7645 flag_loop_parallelize_all.
7646 * graphite-dependences.c: Move the defenition of the
7647 scop_get_dependences from graphite-optimize-isl.c to this file.
7648 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7649 (carries_deps): Add checking of the x's value.
7650 * graphite-optimize-isl.c: Move the defenition of the
7651 scop_get_dependences to graphite-dependences.c.
7652 * graphite-poly.h: Add declarations of scop_get_dependences
7653 and carries_deps.
7654
7655 2014-08-04 Rohit <rohitarulraj@freescale.com>
7656
7657 PR target/60102
7658 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7659 names.
7660 (alt_reg_names): Likewise.
7661 (rs6000_dwarf_register_span): For SPE high registers, replace
7662 dwarf register numbers with GCC hard register numbers.
7663 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7664 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7665 register number for the corresponding GCC hard register number.
7666 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7667 newly added GCC hard register numbers for SPE high registers.
7668 (DWARF_FRAME_REGISTERS): Likewise.
7669 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7670 (DWARF_FRAME_REGNUM): Likewise.
7671 (FIXED_REGISTERS): Likewise.
7672 (CALL_USED_REGISTERS): Likewise.
7673 (CALL_REALLY_USED_REGISTERS): Likewise.
7674 (REG_ALLOC_ORDER): Likewise.
7675 (enum reg_class): Likewise.
7676 (REG_CLASS_NAMES): Likewise.
7677 (REG_CLASS_CONTENTS): Likewise.
7678 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7679
7680 2014-08-04 Richard Biener <rguenther@suse.de>
7681
7682 * gimple-fold.h (gimple_fold_builtin): Remove.
7683 * gimple-fold.c (gimple_fold_builtin): Make static.
7684 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7685 fold_stmt, not gimple_fold_builtin.
7686
7687 2014-08-04 Martin Liska <mliska@suse.cz>
7688
7689 * cgraph.h (csi_end_p): Removed.
7690 (csi_next): Likewise.
7691 (csi_node): Likewise.
7692 (csi_start): Likewise.
7693 (cgraph_node_in_set_p): Likewise.
7694 (cgraph_node_set_size): Likewise.
7695 (vsi_end_p): Likewise.
7696 (vsi_next): Likewise.
7697 (vsi_node): Likewise.
7698 (vsi_start): Likewise.
7699 (varpool_node_set_size): Likewise.
7700 (cgraph_node_set_nonempty_p): Likewise.
7701 (varpool_node_set_nonempty_p): Likewise.
7702 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7703 cgraph_node_set.
7704 * ipa-inline-transform.c: Likewise.
7705 * ipa-utils.c (cgraph_node_set_new): Removed.
7706 (cgraph_node_set_add): Likewise.
7707 (cgraph_node_set_remove): Likewise.
7708 (cgraph_node_set_find): Likewise.
7709 (dump_cgraph_node_set): Likewise.
7710 (debug_cgraph_node_set): Likewise.
7711 (free_cgraph_node_set): Likewise.
7712 (varpool_node_set_new): Likewise.
7713 (varpool_node_set_add): Likewise.
7714 (varpool_node_set_remove): Likewise.
7715 (varpool_node_set_find): Likewise.
7716 (dump_varpool_node_set): Likewise.
7717 (free_varpool_node_set): Likewise.
7718 (debug_varpool_node_set): Likewise.
7719 * tree-emutls.c (struct tls_var_data):
7720 (emutls_index): Removed.
7721 (emutls_decl): Likewise.
7722 (gen_emutls_addr): Function implementation uses newly added
7723 hash_map<varpool_node *, tls_var_data>.
7724 (clear_access_vars): Likewise.
7725 (create_emultls_var): Likewise.
7726 (ipa_lower_emutls): Likewise.
7727 (reset_access): New function.
7728
7729 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7730
7731 * config/i386/i386.c (ix86_option_override_internal): Add
7732 PTA_RDRND and PTA_MOVBE for bdver4.
7733
7734 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7735 James Greenhalgh <james.greenhalgh@arm.com>
7736
7737 * doc/md.texi (clrsb): Document.
7738 (clz): Change reference to x into operand 1.
7739 (ctz): Likewise.
7740 (popcount): Likewise.
7741
7742 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7743
7744 PR target/61713
7745 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7746 move to subtarget in serial version if result is ignored.
7747
7748 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7749 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7750
7751 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7752 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7753 (sched_analyze_insn): Update use of try_group_insn to
7754 sched_macro_fuse_insns.
7755 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7756 arguments that are not conditional jumps.
7757
7758 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7759
7760 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7761 family information. Handle BTVER2 cpu with cpuid family value.
7762
7763 2014-08-04 Tom de Vries <tom@codesourcery.com>
7764
7765 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7766 (glibc_2_11_or_earlier): Document effective-target keywords.
7767
7768 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7769
7770 * ipa-devirt.c (odr_type_warn_count): Add type.
7771 (possible_polymorphic_call_targets): Set it.
7772 (ipa_devirt): Use it.
7773
7774 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7775
7776 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7777 Document.
7778 * ipa-devirt.c: Include hash-map.h
7779 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7780 (clear_speculation): Break out of ...
7781 (get_class_context): ... here; speed up handling obviously useless
7782 speculations.
7783 (odr_type_warn_count, decl_warn_count): New structures.
7784 (final_warning_record): New structure.
7785 (final_warning_records): New static variable.
7786 (possible_polymorphic_call_targets): Cleanup handling of
7787 speculative info; do not build speculation when user do not care;
7788 record info about warnings when asked for.
7789 (add_decl_warning): New function.
7790 (type_warning_cmp): New function.
7791 (decl_warning_cmp): New function.
7792 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7793 (gate): Enable pass when warnings are requested.
7794 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7795 options.
7796
7797 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7798
7799 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7800 Fix cast.
7801 (hash_map::remove): New method.
7802 (hash_map::traverse): New method.
7803 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7804 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7805 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7806 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7807 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7808 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7809 pointer_map.
7810
7811 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7812
7813 * hash-set.h: new File.
7814 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7815 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7816 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7817 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7818 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7819 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7820 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7821 varpool.c: Use hash_set instead of pointer_set.
7822
7823 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7824
7825 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7826
7827 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7828
7829 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7830 for frame access when strict_p is false.
7831
7832 2014-08-01 Renlin Li <renlin.li@arm.com>
7833 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7834
7835 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7836 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7837 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7838 Declaration.
7839 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7840 predicate.
7841 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7842 aarch64_mem_pair_offset.
7843
7844 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7845
7846 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7847 offset.
7848 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7849 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7850
7851 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7852
7853 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7854
7855 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7856
7857 PR regression/61510
7858 * cgraphunit.c (analyze_functions): Use get_create rather than get
7859 for decls which are clones of abstract functions.
7860
7861 2014-08-01 Martin Liska <mliska@suse.cz>
7862
7863 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7864 * ipa-prop.h (count_formal_params): Global function created from static.
7865 * ipa-prop.c (count_formal_params): Likewise.
7866 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7867 profiles for semantically equivalent functions.
7868 * passes.c (do_per_function): If we load body of a function
7869 during WPA, this condition should behave same.
7870 * varpool.c (ctor_for_folding): More tolerant assert for variable
7871 aliases created during WPA.
7872
7873 2014-08-01 Martin Liska <mliska@suse.cz>
7874
7875 * doc/invoke.texi (Options That Control Optimization): Documentation
7876 for -foptimize-strlen introduced. Optimization levels default options
7877 fixed.
7878
7879 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7880
7881 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7882 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7883 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7884 type to bool.
7885 * stor-layout.h (min_align_of_type): New prototype.
7886 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7887 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7888 check.
7889 * ubsan.c: Include builtins.h.
7890 (ubsan_expand_bounds_ifn): Change return type to bool,
7891 always return true.
7892 (ubsan_expand_null_ifn): Change return type to bool, change
7893 argument to gimple_stmt_iterator *. Handle both null and alignment
7894 sanitization, take type from ckind argument's type rather than
7895 first argument.
7896 (instrument_member_call): Removed.
7897 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7898 Handle both null and alignment sanitization, don't say whole
7899 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7900 call instead of 2 argument.
7901 (instrument_null): Adjust instrument_mem_ref caller. Don't
7902 instrument calls here.
7903 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7904 like SANITIZE_NULL.
7905 * stor-layout.c (min_align_of_type): New function.
7906 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7907 Or it into SANITIZE_UNDEFINED.
7908 * doc/invoke.texi (-fsanitize=alignment): Document.
7909
7910 2014-07-31 Andi Kleen <ak@linux.intel.com>
7911
7912 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7913
7914 2014-07-31 Andi Kleen <ak@linux.intel.com>
7915
7916 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7917 inchash.
7918 (vn_reference_compute_hash): Dito.
7919 (vn_nary_op_compute_hash): Dito.
7920 (vn_phi_compute_hash): Dito.
7921 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7922
7923 2014-07-31 Andi Kleen <ak@linux.intel.com>
7924
7925 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7926 Rename to inchash:add_expr_commutative. Convert to inchash.
7927 (iterative_hash_hashable_expr): Rename to
7928 inchash:add_hashable_expr. Convert to inchash.
7929 (avail_expr_hash): Dito.
7930
7931 2014-07-31 Andi Kleen <ak@linux.intel.com>
7932
7933 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7934 Convert to inchash.
7935
7936 2014-07-31 Andi Kleen <ak@linux.intel.com>
7937
7938 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7939
7940 2014-07-31 Andi Kleen <ak@linux.intel.com>
7941
7942 * Makefile.in (OBJS): Add rtlhash.o
7943 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7944 (loc_checksum): Dito.
7945 (loc_checksum_ordered): Dito.
7946 (hash_loc_operands): Dito.
7947 (hash_locs): Dito.
7948 (hash_loc_list): Dito.
7949 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7950 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7951 * rtlhash.c: New file.
7952 * rtlhash.h: New file.
7953
7954 2014-07-31 Andi Kleen <ak@linux.intel.com>
7955
7956 * inchash.h (inchash): Change inchash class to namespace.
7957 (class hash): ... Rename from inchash.
7958 (add_object): Move from macro to class template.
7959 * lto-streamer-out.c (hash_tree): Change inchash
7960 to inchash::hash.
7961 * tree.c (build_type_attribute_qual_variant): Dito.
7962 (type_hash_list): Dito.
7963 (attribute_hash_list): Dito.
7964 (iterative_hstate_expr): Rename to inchash::add_expr
7965 (build_range_type_1): Change inchash to inchash::hash
7966 and use hash::add_expr.
7967 (build_array_type_1): Dito.
7968 (build_function_type): Dito
7969 (build_method_type_directly): Dito.
7970 (build_offset_type): Dito.
7971 (build_complex_type): Dito.
7972 (make_vector_type): Dito.
7973 * tree.h (iterative_hash_expr): Dito.
7974
7975 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7976
7977 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7978
7979 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7980
7981 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7982 correct alphabetical position.
7983 (vpaddd_f64): Rewrite using builtins.
7984 (vpaddd_s64): Move to correct alphabetical position.
7985 (vpaddd_u64): New.
7986
7987 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7988
7989 PR target/61844
7990 * config/sh/sh.c (sh_legitimate_address_p,
7991 sh_legitimize_reload_address): Handle reg+reg address modes when
7992 ALLOW_INDEXED_ADDRESS is false.
7993 * config/sh/predicates.md (general_movsrc_operand,
7994 general_movdst_operand): Likewise.
7995
7996 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7997
7998 * config/aarch64/aarch64-builtins.c
7999 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8000 BYTES_BIG_ENDIAN.
8001
8002 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8003
8004 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8005 the generated mask based on BYTES_BIG_ENDIAN.
8006 (aarch64_simd_check_vect_par_cnst_half): New.
8007 * config/aarch64/aarch64-protos.h
8008 (aarch64_simd_check_vect_par_cnst_half): New.
8009 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8010 the check out to aarch64_simd_check_vect_par_cnst_half.
8011 (vect_par_cnst_lo_half): Likewise.
8012 * config/aarch64/aarch64-simd.md
8013 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8014 (move_hi_quad_<mode>): Always generate a low mask.
8015
8016 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8017
8018 * doc/invoke.texi (AVR Options): Add documentation about
8019 __AVR_DEVICE_NAME__ built-in macro.
8020
8021 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8022
8023 PR target/61948
8024 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8025 constraints are satisfied.
8026 (<shift>di3_neon): Likewise.
8027
8028 2014-07-31 Richard Biener <rguenther@suse.de>
8029
8030 PR tree-optimization/61964
8031 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8032 by structural equality.
8033
8034 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8035
8036 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8037 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8038 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8039 New enums.
8040 * gcc.c (sanitize_spec_function): Support new option.
8041 (SANITIZER_SPEC): Remove now redundant check.
8042 * opts.c (common_handle_option): Support new option.
8043 (finish_options): Check for incompatibilities.
8044 * toplev.c (process_options): Split userspace-specific checks.
8045
8046 2014-07-31 Richard Biener <rguenther@suse.de>
8047
8048 * lto-streamer.h (struct output_block): Remove global.
8049 (struct data_in): Remove labels, num_named_labels and
8050 num_unnamed_labels.
8051 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8052 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8053
8054 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8055
8056 PR c++/60517
8057 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8058 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8059 (isolate_path): New argument to avoid inserting a trap.
8060 (find_implicit_erroneous_behaviour): Handle returning the address
8061 of a local variable.
8062 (find_explicit_erroneous_behaviour): Likewise.
8063
8064 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8065
8066 PR lto/61868
8067 * toplev.c (init_random_seed): Move piece of code never called to
8068 set_random_seed.
8069 (set_random_seed): see above.
8070
8071 2014-07-31 Tom de Vries <tom@codesourcery.com>
8072
8073 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8074
8075 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8076
8077 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8078 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8079
8080 2014-07-31 Richard Biener <rguenther@suse.de>
8081
8082 * data-streamer.h (streamer_write_data_stream): Declare here,
8083 renamed from ...
8084 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8085 * lto-cgraph.c (lto_output_node): Adjust.
8086 (lto_output_varpool_node): Likewise.
8087 * data-streamer-out.c (streamer_string_index): Likewise.
8088 (streamer_write_data_stream, lto_append_block): Move from ...
8089 * lto-section-out.c (lto_output_data_stream,
8090 lto_append_block): ... here.
8091
8092 2014-07-30 Mike Stump <mikestump@comcast.net>
8093
8094 * configure.ac: Also check for popen.
8095 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8096 * configure: Regenerate.
8097 * config.in: Regenerate.
8098
8099 2014-07-30 Martin Jambor <mjambor@suse.cz>
8100
8101 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8102 parameter to gimple.
8103
8104 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8105
8106 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8107 address as second parameter to __tpf_eh_return routine.
8108
8109 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8110
8111 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8112 Thumb2.
8113
8114 2014-07-30 Tom Tromey <tromey@redhat.com>
8115
8116 PR c/59855
8117 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8118 * doc/extend.texi (Type Attributes): Document designated_init
8119 attribute.
8120
8121 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8122
8123 * graphite-isl-ast-to-gimple.c:
8124 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8125 (gcc_expression_from_isl_expression): Pass type to
8126 gcc_expression_from_isl_ast_expr_id.
8127
8128 2014-07-30 Richard Biener <rguenther@suse.de>
8129
8130 * lto-streamer.h (lto_write_data): New function.
8131 * langhooks.c (lhd_append_data): Do not free block.
8132 * lto-section-out.c (lto_write_data): New function writing
8133 raw data to the current section.
8134 (lto_write_stream): Adjust for langhook semantic change.
8135 (lto_destroy_simple_output_block): Write header directly.
8136 * lto-opts.c (lto_write_options): Write options directly.
8137 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8138 (lto_output_toplevel_asms): Likewise.
8139 (copy_function_or_variable): Copy data directly.
8140 (write_global_references): Output index table directly.
8141 (lto_output_decl_state_refs): Likewise.
8142 (write_symbol): Write data directly.
8143 (produce_symtab): Adjust.
8144 (produce_asm_for_decls): Output header and refs directly.
8145
8146 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8147
8148 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8149 to speculative_targets
8150 (get_class_context): Fix handling of contextes without outer type;
8151 avoid matching non-polymorphic types in LTO.
8152 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8153 parameter to speculative_targetsp; handle speculation.
8154 (dump_possible_polymorphic_call_targets): Update dumping.
8155
8156 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8157
8158 * common.opt (Wodr): Enable by default.
8159
8160 2014-07-29 Olivier Hainque <hainque@adacore.com>
8161
8162 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8163
8164 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8165
8166 PR bootstrap/61914
8167 * gengtype.c (strtoken): New function.
8168 (create_user_defined_type): Replace strtok with strtoken.
8169
8170 2014-07-29 Nathan Sidwell <nathan@acm.org>
8171
8172 * gcov-io.c (gcov_var): Make hidden.
8173 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8174 (gcov_do_dump): Declare.
8175 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8176
8177 2014-07-29 Martin Jambor <mjambor@suse.cz>
8178
8179 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8180 parameter to gimple.
8181 (sra_modify_assign): Likewise.
8182
8183 2014-07-29 Richard Biener <rguenther@suse.de>
8184
8185 PR middle-end/52478
8186 * expr.c (expand_expr_real_2): Revert last change.
8187
8188 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8189
8190 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8191 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8192 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8193 call.
8194 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8195 (contains_type_p): Forward declare.
8196 (polymorphic_call_target_hasher::hash): Hash speculative info.
8197 (polymorphic_call_target_hasher::equal): Compare speculative info.
8198 (get_class_context): Handle speuclation.
8199 (contains_type_p): Update.
8200 (get_polymorphic_call_info_for_decl): Update.
8201 (walk_ssa_copies): Break out from ...
8202 (get_polymorphic_call_info): ... here; set speculative context
8203 before giving up.
8204 * ipa-prop.c (ipa_write_indirect_edge_info,
8205 ipa_read_indirect_edge_info): Stream speculative context.
8206 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8207 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8208 SPECULATIVE_MAYBE_DERIVED_TYPE).
8209 (possible_polymorphic_call_targets overriders): Update.
8210 (dump_possible_polymorphic_call_targets overriders): Update.
8211 (dump_possible_polymorphic_call_target_p overriders): Update.
8212
8213 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8214
8215 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8216 ipa-devirt path; fix thinko there.
8217
8218 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8219
8220 * config/i386/i386.c (ix86_return_in_memory): Replace one
8221 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8222
8223 2014-07-28 Marek Polacek <polacek@redhat.com>
8224
8225 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8226
8227 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8228
8229 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8230 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8231 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8232 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8233 (USE_LD_AS_NEEDED): Likewise.
8234 (ASM_APP_ON): Likewise.
8235 (ASM_APP_OFF): Likewise.
8236 (TARGET_POSIX_IO): Likewise.
8237 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8238 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8239 (USE_LD_AS_NEEDED): Likewise.
8240 (ASM_APP_ON): Likewise.
8241 (ASM_APP_OFF): Likewise.
8242 (TARGET_POSIX_IO): Likewise.
8243
8244 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8245
8246 PR middle-end/61734
8247 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8248 operators other than the equality operators.
8249
8250 2014-07-28 Richard Biener <rguenther@suse.de>
8251
8252 PR middle-end/52478
8253 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8254 sure to register SImode ones, not only >= word_mode ones.
8255 * expr.c (expand_expr_real_2): When expanding -ftrapv
8256 binops do not use OPTAB_LIB_WIDEN.
8257
8258 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8259
8260 PR middle-end/61919
8261 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8262 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8263 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8264 inserting them in the insn stream.
8265
8266 2014-07-28 Marek Polacek <polacek@redhat.com>
8267
8268 PR middle-end/61913
8269 * common.opt (Wodr): Add Var.
8270
8271 2014-07-28 Richard Biener <rguenther@suse.de>
8272
8273 PR tree-optimization/61921
8274 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8275 if there is a varpool node before dereferencing it.
8276
8277 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8278
8279 * graphite-sese-to-poly.c:
8280 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8281 id of the pbb), which contains pointer to the pbb1.
8282
8283 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8284
8285 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8286
8287 * graphite-isl-ast-to-gimple.c:
8288 (graphite_create_new_guard): New function.
8289 (translate_isl_ast_node_if): New function.
8290 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8291
8292 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8293
8294 2014-07-27 Anthony Green <green@moxielogic.com>
8295
8296 * config.gcc: Add moxie-*-moxiebox* configuration.
8297 * config/moxie/moxiebox.h: New file.
8298
8299 2014-07-26 Andrew Pinski <apinski@cavium.com>
8300
8301 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8302 from the read only register.
8303
8304 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8305
8306 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8307 as the allocation class if it isn't likely to be spilled.
8308
8309 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8310
8311 * rtl.h (tls_referenced_p): Declare.
8312 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8313 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8314 (mips_cannot_force_const_mem): Use tls_referenced_p.
8315 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8316 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8317 instead of pa_tls_referenced_p.
8318 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8319 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8320 (pa_legitimate_constant_p): Likewise.
8321 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8322 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8323 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8324 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8325 rs6000_tls_referenced_p.
8326 (rs6000_tls_symbol_ref_1): Delete.
8327
8328 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8329
8330 PR target/44551
8331 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8332 Optimize inverse of a VEC_CONCAT.
8333
8334 2014-07-25 Xinliang David Li <davidxl@google.com>
8335
8336 * params.def: New parameter.
8337 * coverage.c (get_coverage_counts): Check new flag.
8338 (coverage_compute_profile_id): Check new flag.
8339 (coverage_begin_function): Check new flag.
8340 (coverage_end_function): Check new flag.
8341 * value-prof.c (coverage_node_map_initialized_p): New function.
8342 (init_node_map): Populate map with all functions.
8343 * doc/invoke.texi: Document new parameter.
8344
8345 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8346 Richard Biener <rguenther@suse.de>
8347
8348 * lto-streamer-out.c (struct sccs): Turn to ...
8349 (class DFS): ... this one; refactor the DFS walk so it can
8350 be re-done on per-SCC basis.
8351 (DFS::DFS): New constructor.
8352 (DFS::~DFS): New destructor.
8353 (hash_tree): Add new MAP argument holding in-SCC hash values;
8354 remove POINTER_TYPE hashing hack.
8355 (scc_entry_compare): Rename to ...
8356 (DFS::scc_entry_compare): ... this one.
8357 (hash_scc): Rename to ...
8358 (DFS::hash_scc): ... this one; pass output_block instead
8359 of streamer_cache; work harder to get unique and stable SCC
8360 hashes.
8361 (DFS_write_tree): Rename to ...
8362 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8363 (lto_output_tree): Update.
8364
8365 2014-07-25 Andi Kleen <ak@linux.intel.com>
8366
8367 * lto-streamer-out.c (hash_tree): Convert to inchash.
8368
8369 2014-07-25 Andi Kleen <ak@linux.intel.com>
8370
8371 * tree.c (build_type_attribute_qual_variant): Use inchash.
8372 (type_hash_list): Dito.
8373 (attribute_hash_list): Dito
8374 (iterative_hstate_expr): Dito.
8375 (iterative_hash_expr): Dito.
8376 (build_range_type_1): Dito.
8377 (build_array_type_1): Dito.
8378 (build_function_type): Dito.
8379 (build_method_type_directly): Dito.
8380 (build_offset_type): Dito.
8381 (build_complex_type): Dito.
8382 (make_vector_type): Dito.
8383 * tree.h (iterative_hash_expr): Add compat wrapper.
8384 (iterative_hstate_expr): Add.
8385
8386 2014-07-25 Andi Kleen <ak@linux.intel.com>
8387
8388 * Makefile.in (OBJS): Add inchash.o.
8389 (PLUGIN_HEADERS): Add inchash.h.
8390 * ipa-devirt.c: Include inchash.h.
8391 * lto-streamer-out.c: Dito.
8392 * tree-ssa-dom.c: Dito.
8393 * tree-ssa-pre.c: Dito.
8394 * tree-ssa-sccvn.c: Dito.
8395 * tree-ssa-tail-merge.c: Dito.
8396 * asan.c: Dito.
8397 * tree.c (iterative_hash_hashval_t): Move to ...
8398 (iterative_hash_host_wide_int): Move to ...
8399 * inchash.c: Here. New file.
8400 * tree.h (iterative_hash_hashval_t): Move to ...
8401 (iterative_hash_host_wide_int): Move to ...
8402 * inchash.h: Here. New file.
8403
8404 2014-07-25 Richard Biener <rguenther@suse.de>
8405
8406 PR middle-end/61762
8407 PR middle-end/61894
8408 * fold-const.c (native_encode_int): Add and handle offset
8409 parameter to do partial encodings of expr.
8410 (native_encode_fixed): Likewise.
8411 (native_encode_real): Likewise.
8412 (native_encode_complex): Likewise.
8413 (native_encode_vector): Likewise.
8414 (native_encode_string): Likewise.
8415 (native_encode_expr): Likewise.
8416 * fold-const.c (native_encode_expr): Add offset parameter
8417 defaulting to -1.
8418 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8419 (fold_ctor_reference): Handle all reads from tcc_constant
8420 ctors.
8421
8422 2014-07-25 Richard Biener <rguenther@suse.de>
8423
8424 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8425 as possibly unused.
8426
8427 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8428
8429 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8430
8431 2014-07-24 Kyle McMartin <kyle@redhat.com>
8432
8433 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8434
8435 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8436
8437 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8438 Add prototype.
8439 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8440 function.
8441 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8442 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8443 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8444
8445 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8446
8447 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8448 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8449 aggregate types. Instead, *all* aggregate types, except for single-
8450 element or homogeneous float/vector aggregates, are quadword-aligned
8451 if required by their type alignment. Issue -Wpsabi note when a type
8452 is now treated differently than before.
8453
8454 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8455
8456 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8457 does not fit fully into floating-point registers, and there is still
8458 space in the register parameter area, use GPRs to pass those parts
8459 of the argument. Issue -Wpsabi note if any parameter is now treated
8460 differently than before.
8461 (rs6000_arg_partial_bytes): Update.
8462
8463 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8464
8465 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8466
8467 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8468
8469 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8470 * toplev.c (initialize_rtl): Don't use it. Move previously
8471 "language-dependent" calls to...
8472 (backend_init): ...here.
8473 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8474 Assert that RTL initialization hasn't happend yet.
8475
8476 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8477
8478 PR rtl-optimization/61629
8479 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8480 they have already been initialized.
8481
8482 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8483
8484 PR middle-end/61268
8485 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8486 DECL_INCOMING_RTL and entry_parm.
8487 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8488 * calls.c (load_register_parameters): Likewise argument values.
8489 (emit_library_call_value_1, store_one_arg): Likewise argument
8490 save areas.
8491 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8492 stack slot.
8493 * explow.c (validize_mem): Modify the argument in-place.
8494
8495 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8496
8497 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8498 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8499
8500 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8501
8502 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8503 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8504
8505 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8506
8507 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8508 (aarch64_save_callee_saves): New parameter "skip_wb".
8509 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8510
8511 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8512
8513 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8514 "wb_candidate2".
8515 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8516
8517 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8518
8519 * graphite-isl-ast-to-gimple.c:
8520 (graphite_create_new_loop): Add calling of isl_id_free to properly
8521 decrement reference counts.
8522
8523 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8524
8525 2014-07-24 Martin Liska <mliska@suse.cz>
8526 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8527 function used.
8528 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8529 (rs6000_code_end): Likewise.
8530
8531 2014-07-24 Martin Liska <mliska@suse.cz>
8532
8533 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8534 symtab_node funtion used.
8535 (rs6000_xcoff_declare_object_name): Likewise.
8536
8537 2014-07-24 Martin Liska <mliska@suse.cz>
8538
8539 * cgraphunit.c (compile): Correct function used.
8540
8541 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8542
8543 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8544 as non-indexable.
8545
8546 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8547
8548 PR lto/61802
8549 * varasm.c (bss_initializer_p): Handle offlined ctors.
8550 (align_variable, get_variable_align): Likewise.
8551 (make_decl_one_only): Likewise.
8552 (default_binds_local_p_1): Likewise.
8553 (decl_binds_to_current_def_p): Likewise.
8554 (get_variable_section): Get constructor if it is offlined.
8555 (assemble_variable_contents): Sanity check that the caller
8556 streamed in the ctor in LTO.
8557
8558 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8559
8560 * graphite-isl-ast-to-gimple.c:
8561 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8562 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8563 isl_ast_op_pdiv_r to the different case.
8564
8565 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8566
8567 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8568
8569 PR middle-end/61876
8570 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8571 when flag_errno_math is on.
8572
8573 2014-07-24 Martin Liska <mliska@suse.cz>
8574
8575 * cgraph.h (varpool_node):
8576 (availability get_availability (void)):
8577 created from cgraph_variable_initializer_availability
8578 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8579 created from: cgraph_variable_initializer_availability
8580 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8581 (void finalize_named_section_flags (void)):
8582 created from varpool_finalize_named_section_flags
8583 (bool assemble_decl (void)): created from varpool_assemble_decl
8584 (void analyze (void)): created from varpool_analyze_node
8585 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8586 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8587 (void remove_initializer (void)): created from varpool_remove_initializer
8588 (tree get_constructor (void)): created from varpool_get_constructor
8589 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8590 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8591 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8592 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8593 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8594 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8595 (static bool output_variables (void)): created from varpool_output_variables
8596 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8597 created from varpool_extra_name_alias
8598 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8599 (static void dump_varpool (FILE *f)): created from dump_varpool
8600 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8601 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8602 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8603 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8604 (void assemble_aliases (void)): created from assemble_aliases
8605
8606 2014-07-24 Martin Liska <mliska@suse.cz>
8607
8608 * cgraph.h (symtab_node):
8609 (void register_symbol (void)): created from symtab_register_node
8610 (void remove (void)): created from symtab_remove_node
8611 (void dump (FILE *f)): created from dump_symtab_node
8612 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8613 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8614 (struct ipa_ref *add_reference (symtab_node *referred_node,
8615 enum ipa_ref_use use_type)): created from add_reference
8616 (struct ipa_ref *add_reference (symtab_node *referred_node,
8617 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8618 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8619 gimple stmt)): created from maybe_add_reference
8620 (bool semantically_equivalent_p (symtab_node *target)): created from
8621 symtab_semantically_equivalent_p
8622 (void remove_from_same_comdat_group (void)): created from
8623 remove_from_same_comdat_group
8624 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8625 symtab_add_to_same_comdat_group
8626 (void dissolve_same_comdat_group_list (void)): created from
8627 symtab_dissolve_same_comdat_group_list
8628 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8629 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8630 created from symtab_alias_ultimate_target
8631 (inline symtab_node *next_defined_symbol (void)): created from
8632 symtab_next_defined_symbol
8633 (bool resolve_alias (symtab_node *target)): created from
8634 symtab_resolve_alias
8635 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8636 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8637 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8638 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8639 (void set_section (const char *section)): created from set_section_1
8640 (enum availability get_availability (void)): created from symtab_node_availability
8641 (void make_decl_local (void)): created from symtab_make_decl_local
8642 (bool real_symbol_p (void)): created from symtab_read_node
8643 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8644 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8645 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8646 symtab_in_same_comdat_p;
8647 (bool address_taken_from_non_vtable_p (void)): created from
8648 address_taken_from_non_vtable_p
8649 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8650 (static void dump_table (FILE *)): created from dump_symtab
8651 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8652 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8653 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8654 symtab_used_from_object_file_p
8655 (void dump_base (FILE *)): created from dump_symtab_base
8656 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8657 (void unregister (void)): created from symtab_unregister_node
8658 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8659 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8660 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8661 symtab_nonoverwritable_alias_1
8662 * cgraph.h (cgraph_node):
8663 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8664 created from cgraph_remove_node_and_inline_clones
8665 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8666 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8667 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8668 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8669 created from cgraph_function_node
8670 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8671 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8672 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8673 created from cgraph_create_clone
8674 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8675 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8676 created from cgraph_create_virtual_clone
8677 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8678 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8679 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8680 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8681 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8682 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8683 created from cgraph_function_version_info
8684 (struct cgraph_function_version_info *insert_new_function_version (void)):
8685 created from insert_new_cgraph_node_version
8686 (struct cgraph_function_version_info *function_version (void)): created from
8687 get_cgraph_node_version
8688 (void analyze (void)): created from analyze_function
8689 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8690 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8691 tree real_alias) cgraph_add_thunk
8692 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8693 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8694 created from cgraph_function_or_thunk_node
8695 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8696 created from expand_thunk
8697 (void reset (void)): created from cgraph_reset_node
8698 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8699 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8700 (void remove (void)): created from cgraph_remove_node
8701 (void dump (FILE *f)): created from dump_cgraph_node
8702 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8703 (bool get_body (void)): created from cgraph_get_body
8704 (void release_body (void)): created from cgraph_release_function_body
8705 (void unnest (void)): created from cgraph_unnest_node
8706 (void make_local (void)): created from cgraph_make_node_local
8707 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8708 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8709 gcov_type count, int freq)): created from cgraph_create_edge
8710 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8711 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8712 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8713 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8714 created from cgraph_create_edge_including_clones
8715 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8716 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8717 (void remove_callers (void)): created from cgraph_node_remove_callers
8718 (void remove_callees (void)): created from cgraph_node_remove_callees
8719 (enum availability get_availability (void)): created from cgraph_function_body_availability
8720 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8721 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8722 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8723 (void call_duplication_hooks (cgraph_node *node2)): created from
8724 cgraph_call_node_duplication_hooks
8725 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8726 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8727 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8728 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8729 (void call_function_insertion_hooks (void)):
8730 created from cgraph_call_function_insertion_hooks
8731 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8732 (bool local_p (void)): created from cgraph_local_node
8733 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8734 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8735 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8736 (inline bool only_called_directly_or_aliased_p (void)):
8737 created from cgraph_only_called_directly_or_aliased_p
8738 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8739 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8740 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8741 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8742 (bool can_remove_if_no_direct_calls_p (void)):
8743 created from cgraph_can_remove_if_no_direct_calls_p
8744 (inline bool has_gimple_body_p (void)):
8745 created from cgraph_function_with_gimple_body_p
8746 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8747 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8748 (static inline void debug_cgraph (void)): created from debug_cgraph
8749 (static void record_function_versions (tree decl1, tree decl2)):
8750 created from record_function_versions
8751 (static void delete_function_version (tree decl)):
8752 created from delete_function_version
8753 (static void add_new_function (tree fndecl, bool lowered)):
8754 created from cgraph_add_new_function
8755 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8756 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8757 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8758 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8759 (static cgraph_node *get_for_asmname (tree asmname)):
8760 created from cgraph_node_for_asm
8761 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8762 created from cgraph_same_body_alias
8763 (static bool used_from_object_file_p_worker (cgraph_node *node,
8764 void *): new function
8765 (static bool non_local_p (cgraph_node *node, void *)):
8766 created from cgraph_non_local_node_p_1
8767 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8768 created from verify_cgraph
8769 (static bool make_local (cgraph_node *node, void *)):
8770 created from cgraph_make_node_local
8771 (static cgraph_node *create_alias (tree alias, tree target)):
8772 created from cgraph_create_function_alias
8773 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8774 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8775 created from cgraph_create_edge_1
8776 * cgraph.h (varpool_node):
8777 (void remove (void)): created from varpool_remove_node
8778 (void dump (FILE *f)): created from dump_varpool_node
8779
8780 2014-07-24 Richard Biener <rguenther@suse.de>
8781
8782 PR ipa/61823
8783 * tree-ssa-structalias.c (create_variable_info_for_1):
8784 Use varpool_get_constructor.
8785 (create_variable_info_for): Likewise.
8786
8787 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8788
8789 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8790 subtract outgoing area size when restoring stack_pointer_rtx.
8791
8792 2014-07-24 Nick Clifton <nickc@redhat.com>
8793
8794 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8795 that operations are taking place in parallel.
8796 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8797
8798 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8799
8800 * omp-low.c (extract_omp_for_data): Add missing break statement.
8801
8802 2014-07-24 Richard Biener <rguenther@suse.de>
8803
8804 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8805 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8806 and adjust MOVE_RATIO query accordingly.
8807 (estimate_num_insns): Adjust callers.
8808 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8809 * ipa-cp.c (gather_context_independent_values,
8810 estimate_local_effects): Likewise.
8811 * ipa-split.c (consider_split): Likewise.
8812
8813 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8814
8815 * config/i386/driver-i386.c: Remove names of unused arguments and
8816 unnecessary unused attributes.
8817 * config/i386/host-mingw32.c: Likewise.
8818 * config/i386/i386.c: Likewise.
8819 * config/i386/winnt-stubs.c: Likewise.
8820 * config/i386/winnt.c: Likewise.
8821
8822 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8823
8824 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8825 (aarch64_gen_loadwb_pair): New helper function.
8826 (aarch64_expand_epilogue): Simplify code using new helper functions.
8827 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8828
8829 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8830
8831 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8832 (aarch64_gen_storewb_pair): New helper function.
8833 (aarch64_expand_prologue): Simplify code using new helper functions.
8834 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8835
8836 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8837
8838 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8839 Rename to aarch64_save_callee_saves, remove restore code.
8840 (aarch64_restore_callee_saves): New function.
8841
8842 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8843
8844 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8845 (aarch64_save_callee_saves): New function to handle reg save
8846 for both core and vectore regs.
8847
8848 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8849
8850 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8851 (aarch64_gen_store_pair): New helper function.
8852 (aarch64_save_or_restore_callee_save_registers)
8853 (aarch64_save_or_restore_fprs): Use new helper functions.
8854
8855 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8856
8857 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8858 (aarch64_save_or_restore_callee_save_registers)
8859 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8860
8861 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8862
8863 * config/aarch64/aarch64.c
8864 (aarch64_save_or_restore_callee_save_registers)
8865 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8866
8867 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8868
8869 * config/aarch64/aarch64.c
8870 (aarch64_save_or_restore_callee_save_registers)
8871 (aarch64_save_or_restore_fprs): Remove 'increment'.
8872
8873 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8874
8875 * config/aarch64/aarch64.c
8876 (aarch64_save_or_restore_callee_save_registers)
8877 (aarch64_save_or_restore_fprs): Use register offset in
8878 cfun->machine->frame.reg_offset.
8879
8880 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8881
8882 * config/aarch64/aarch64.c
8883 (aarch64_save_or_restore_callee_save_registers)
8884 (aarch64_save_or_restore_fprs): Remove base_rtx.
8885
8886 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8887
8888 * config/aarch64/aarch64.c
8889 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8890 to 'start_offset'. Remove local variable 'start_offset'.
8891
8892 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8893
8894 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8895 type to HOST_WIDE_INT.
8896
8897 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8898
8899 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8900 (aarch64_save_or_restore_fprs)
8901 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8902
8903 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8904
8905 * config/arm/t-rtems-eabi: Add
8906 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8907 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8908 mbig-endian/mthumb/march=armv7-r, and
8909 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8910 multilibs.
8911
8912 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8913 Chris Johns <chrisj@rtems.org>
8914 Joel Sherrill <joel.sherrill@oarcorp.com>
8915
8916 * config.gcc: Add nios2-*-rtems*.
8917 * config/nios2/rtems.h: New file.
8918 * gcc/config/nios2/t-rtems: New file.
8919
8920 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8921
8922 PR target/61396
8923 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8924 constant numbers, not general constants.
8925 (rs6000_expand_vector_init): Ditto.
8926
8927 2014-07-23 Nathan Sidwell <nathan@acm.org>
8928
8929 * gcov-tool.c (gcov_list): Declare here.
8930 (set_gcov_list): Remove.
8931 (gcov_output_files): Set gcov_list directly.
8932
8933 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8934
8935 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8936
8937 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8938
8939 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8940 callee-saved registers are available for padding purpose
8941 and r3 is not mandatory, then prefer use those callee-saved
8942 instead of r3.
8943
8944 2014-07-23 Richard Biener <rguenther@suse.de>
8945
8946 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8947 * combine.c: Include statistics.h and params.h.
8948 (combine_instructions): Guard three and four insn combines
8949 with max-combine-insns value. Record statistics for combines
8950 performed.
8951 * doc/invoke.texi (max-combine-insns): Document new param.
8952
8953 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8954
8955 * graphite-isl-ast-to-gimple.c:
8956 (translate_isl_ast_node_block): New function.
8957 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8958
8959 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8960 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8961
8962 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8963
8964 * graphite-isl-ast-to-gimple.c:
8965 (get_max_schedule_dimensions): New function.
8966 (extend_schedule): Likewise.
8967 (generate_isl_schedule): Add calling of extend_schedule and
8968 get_max_schedule_dimensions.
8969
8970 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8971
8972 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8973 (case UNSPEC): Handle UNSPEC_RBIT.
8974
8975 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8976
8977 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8978 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8979
8980 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8981
8982 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8983
8984 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8985
8986 * graphite-isl-ast-to-gimple.c:
8987 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8988 (ivs_params_clear):
8989 (build_iv_mapping): New function.
8990 (translate_isl_ast_node_user): Likewise.
8991 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8992
8993 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8994 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8995 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8996
8997 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8998
8999 PR target/55701
9000 * config/arm/arm.md (setmem): New pattern.
9001 * config/arm/arm-protos.h (struct tune_params): New fields.
9002 (arm_gen_setmem): New prototype.
9003 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9004 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9005 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9006 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9007 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9008 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9009 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9010 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9011 (arm_const_inline_cost): New function.
9012 (arm_block_set_max_insns): New function.
9013 (arm_block_set_non_vect_profit_p): New function.
9014 (arm_block_set_vect_profit_p): New function.
9015 (arm_block_set_unaligned_vect): New function.
9016 (arm_block_set_aligned_vect): New function.
9017 (arm_block_set_unaligned_non_vect): New function.
9018 (arm_block_set_aligned_non_vect): New function.
9019 (arm_block_set_vect, arm_gen_setmem): New functions.
9020
9021 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9022
9023 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9024
9025 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9026
9027 PR target/61855
9028 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9029 out of #ifdef __OPTIMIZE__.
9030
9031 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9032
9033 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9034 different trapping status if -fnon-call-exceptions is enabled.
9035
9036 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9037
9038 * expr.c (store_field): Handle VOIDmode for calls that return values
9039 in multiple locations.
9040
9041 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9042
9043 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9044 (altivec_vsldoi_<mode>): Likewise.
9045
9046 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9047
9048 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9049 to the number of characters in the line.
9050
9051 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9052
9053 * graphite-isl-ast-to-gimple.c: Add using of
9054 build_nonstandard_integer_type instead of int128_integer_type_node.
9055
9056 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9057
9058 * toplev.c (output_stack_usage): Adjust the location of the warning.
9059
9060 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9061
9062 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9063 (*membar_storeload): Disable for LEON3.
9064
9065 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9066
9067 PR rtl-optimization/61461
9068 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9069
9070 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9071
9072 PR target/61794
9073 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9074 Fix instruction constraint.
9075 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9076
9077 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9078
9079 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9080
9081 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9082
9083 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9084 GNU coding standards.
9085 (nds32_register_move_cost): Likewise.
9086 (nds32_memory_move_cost): Likewise.
9087 (nds32_address_cost): Likewise.
9088
9089 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9090
9091 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9092
9093 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9094
9095 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9096 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9097 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9098 (HAVE_sync_compare_and_swapqi): Define.
9099 (HAVE_sync_compare_and_swaphi): Likewise.
9100 (HAVE_sync_compare_and_swapsi): Likewise.
9101
9102 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9103
9104 * config/mips/p5600.md: Add missing cpu tests.
9105
9106 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9107
9108 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9109 (vmla_f64): Likewise.
9110 (vfms_f64): Likewise.
9111 (vmls_f64): Likewise.
9112
9113 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9114
9115 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9116 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9117
9118 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9119
9120 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9121 (vmlal_high_lane_s32): Likewise.
9122 (vmlal_high_lane_u16): Likewise.
9123 (vmlal_high_lane_u32): Likewise.
9124 (vmlsl_high_lane_s16): Likewise.
9125 (vmlsl_high_lane_s32): Likewise.
9126 (vmlsl_high_lane_u16): Likewise.
9127 (vmlsl_high_lane_u32): Likewise.
9128
9129 2014-07-17 Terry Guo <terry.guo@arm.com>
9130
9131 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9132 (alus_reg): Renamed to alus_sreg.
9133 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9134 from alu_reg to alu_sreg. Change type of dsp instructions from
9135 alu_reg to alu_dsp_reg.
9136 * config/arm/thumb1.md: Likewise.
9137 * config/arm/thumb2.md: Likewise.
9138 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9139 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9140 with alu_sreg and alus_sreg.
9141 * config/arm/arm1026ejs.md (alu_op): Likewise.
9142 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9143 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9144 * config/arm/fa526.md (526_alu_op): Likewise.
9145 * config/arm/fa606te.md (606te_alu_op): Likewise.
9146 * config/arm/fa626te.md (626te_alu_op): Likewise.
9147 * config/arm/fa726te.md (726te_alu_op): Likewise.
9148 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9149 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9150 alu_sreg, alu_dsp_reg and alus_sreg.
9151 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9152 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9153 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9154 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9155 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9156 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9157 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9158 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9159 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9160 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9161 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9162 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9163 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9164 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9165 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9166 alus_reg to alus_sreg.
9167
9168 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9169
9170 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9171 infinity format.
9172
9173 2014-07-17 Richard Biener <rguenther@suse.de>
9174
9175 PR rtl-optimization/61801
9176 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9177 don't set reg_pending_barrier if it appears in a debug-insn.
9178
9179 2014-07-16 DJ Delorie <dj@redhat.com>
9180
9181 * config/rx/rx.c (rx_option_override): Fix alignment values.
9182 (rx_align_for_label): Likewise.
9183
9184 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9185
9186 PR target/61737.
9187 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9188 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9189 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9190 functions.
9191 (cris_print_index, cris_print_operand, cris_constant_index_p)
9192 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9193 (cris_address_cost): Ditto last CONSTANT_P.
9194 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9195 callers changed. Yield cris_offsettable_symbol for non-PIC
9196 constant symbolic expressions including labels. Yield cris_unspec
9197 for all unspecs.
9198 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9199 target to pic_offset_table_rtx for calls that will likely go
9200 through PLT, const0_rtx when they can't. All callers changed.
9201 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9202 symbolic expressions to be PICified. Remove second, redundant,
9203 assert on can_create_pseudo_p returning non-zero. Use
9204 replace_equiv_address_nv, not replace_equiv_address, for final
9205 operand update.
9206 * config/cris/cris.md ("movsi"): Move variable t to pattern
9207 toplevel. Adjust assert for new cris_symbol_type member. Use
9208 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9209 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9210 for lapc stricter.
9211 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9212 ("call", "call_value"): Use second incoming operand as a marker
9213 for pic-offset-table-register being used.
9214 ("*expanded_call_non_v32", "*expanded_call_v32")
9215 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9216 second incoming operand to CALL, match cris_call_type_marker.
9217 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9218 ("*expanded_call_side"): Ditto. Fix typo in comment.
9219 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9220 CONSTANT_P.
9221 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9222 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9223 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9224 users changed. Add members cris_offsettable_symbol and cris_unspec.
9225 (cris_symbol_type): Rename from cris_pic_symbol_type.
9226 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9227 just CONSTANT_P.
9228 * config/cris/cris-protos.h (cris_symbol_type_of,
9229 cris_expand_pic_call_address): Adjust prototypes.
9230 (cris_legitimate_constant_p): New prototype.
9231
9232 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9233 an existing tmake_file. Don't add t-slibgcc and t-linux.
9234
9235 2014-07-17 Jason Merrill <jason@redhat.com>
9236
9237 PR c++/61623
9238 * symtab.c (symtab_remove_from_same_comdat_group): Also
9239 set_comdat_group to NULL_TREE.
9240 (verify_symtab): Fix diagnostic.
9241
9242 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9243
9244 PR target/61662
9245 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9246
9247 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9248
9249 Support location tracking for built-in macro tokens
9250 * input.h (is_location_from_builtin_token): New function declaration.
9251 * input.c (is_location_from_builtin_token): New function definition.
9252 * toplev.c (general_init): Tell libcpp what the pre-defined
9253 spelling location for built-in tokens is.
9254
9255 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9256
9257 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9258 on the FUNCTION_DECL.
9259
9260 2014-07-16 Richard Biener <rguenther@suse.de>
9261
9262 PR other/61782
9263 * doc/extend.texi (always_inline): Clarify.
9264
9265 2014-07-15 Eric Christopher <echristo@gmail.com>
9266
9267 * doc/invoke.texi (Link Options): Document -z option.
9268
9269 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9270
9271 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9272 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9273
9274 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9275
9276 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9277
9278 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9279
9280 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9281 varpool_assemble_decl.
9282 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9283 true.
9284
9285 2014-07-15 Michael Matz <matz@suse.de>
9286
9287 PR rtl-optimization/61772
9288 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9289
9290 2014-07-15 Richard Biener <rguenther@suse.de>
9291
9292 * opts.c (default_options_table): Disable bit-ccp at -Og.
9293
9294 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9295
9296 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9297
9298 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9299
9300 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9301 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9302 call langhook for unknown declaration.
9303 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9304 * tree.h (DECL_ARGUMENTS): Update.
9305 * print-tree.c (print_node): Update.
9306 * tree-core.h (tree_decl_non_common): Remove arguments.
9307 (tree_function_decl): Add arguments.
9308
9309 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9310
9311 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9312
9313 2014-07-14 Richard Biener <rguenther@suse.de>
9314
9315 PR tree-optimization/61779
9316 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9317 simplifying a condition.
9318
9319 2014-07-14 Richard Biener <rguenther@suse.de>
9320
9321 * builtins.c (c_strlen): Make only_value == 2 really only
9322 affect warning generation.
9323
9324 2014-07-14 Richard Biener <rguenther@suse.de>
9325
9326 PR tree-optimization/61757
9327 PR tree-optimization/61783
9328 PR tree-optimization/61787
9329 * tree-ssa-dom.c (record_equality): Revert canonicalization
9330 change and add comment.
9331 (propagate_rhs_into_lhs): Revert previous fix, removing
9332 loop depth restriction again.
9333
9334 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9335
9336 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9337 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9338 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9339 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9340 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9341 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9342 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9343
9344 2014-07-14 Richard Biener <rguenther@suse.de>
9345
9346 * cgraph.h (decl_in_symtab_p): Make inline.
9347
9348 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9349
9350 PR middle-end/61294
9351 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9352
9353 PR target/61656
9354 * config/i386/i386.c (classify_argument): Don't merge classes above
9355 number of words.
9356
9357 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9358
9359 * cgraph.h (symtab_node): Add nonzero_address.
9360 (decl_in_symtab_p): Break out from ...
9361 (symtab_get_node): ... here.
9362 * fold-const.c: Include cgraph.h
9363 (tree_single_nonzero_warnv_p): Use symtab to determine
9364 if symbol is non-zero.
9365 * symtab.c (symtab_node::nonzero_address): New method.
9366
9367 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9368
9369 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9370 forgotten in previous commit.
9371
9372 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9373
9374 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9375 on builtin types.
9376 * ipa-devirt.c: Include stor-layout.h and intl.h
9377 (odr_subtypes_equivalent_p): New function.
9378 (warn_odr): New function.
9379 (warn_type_mismatch): New function.
9380 (odr_types_equivalent_p): New function.
9381 (add_type_duplicate): Use it.
9382 * common.opt (Wodr): New flag.
9383 * doc/invoke.texi (Wodr): Document new warning.
9384
9385 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9386
9387 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9388 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9389 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9390 (varpool_get_constructor): Push CTORS_IN timevar.
9391 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9392
9393 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9394
9395 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9396 Remove VOID_FTYPE_PUSHORT.
9397 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9398 Change code to USHORT_FTYPE_VOID.
9399 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9400 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9401 (ix86_atomic_assign_expand_fenv): Update for
9402 __builtin_ia32_fnstsw changes.
9403 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9404 (fnstsw): Change operand 0 to nonimmediate operand.
9405
9406 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9407
9408 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9409 (varpool_get_constructor): New function.
9410 (varpool_ctor_useable_for_folding_p): Break out from ...
9411 (ctor_for_folding): ... here; use varpool_get_constructor.
9412 (varpool_assemble_decl): Likewise.
9413 * lto-streamer.h (struct output_block): Turn cgraph_node
9414 to symbol filed.
9415 (lto_input_variable_constructor): Declare.
9416 * ipa-visibility.c (function_and_variable_visibility): Use
9417 varpool_get_constructor.
9418 * cgraph.h (varpool_get_constructor): Declare.
9419 (varpool_ctor_useable_for_folding_p): New function.
9420 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9421 parameter; return error_mark_node for non-trivial constructors.
9422 (lto_write_tree_1, DFS_write_tree): Update use of
9423 get_symbol_initial_value.
9424 (output_function): Update initialization of symbol.
9425 (output_constructor): New function.
9426 (copy_function): Rename to ..
9427 (copy_function_or_variable): ... this one; handle vars too.
9428 (lto_output): Output variable sections.
9429 * lto-streamer-in.c (input_constructor): New function.
9430 (lto_read_body): Rename from ...
9431 (lto_read_body_or_constructor): ... this one; handle vars too.
9432 (lto_input_variable_constructor): New function.
9433 * ipa-prop.c (ipa_prop_write_jump_functions,
9434 ipa_prop_write_all_agg_replacement): Update.
9435 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9436 (output_cgraph_opt_summary): Set symbol to NULL.
9437
9438 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9439
9440 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9441 non-polymorphic types.
9442 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9443 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9444 of types is not polymorphic.
9445
9446 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9447
9448 * lra-constraints.c (remove_inheritance_pseudos): Process
9449 destination pseudo too.
9450
9451 2014-07-11 Rong Xu <xur@google.com>
9452
9453 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9454 commit r212448.
9455
9456 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9457
9458 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9459 * config/avr/avr-devices.c (AVR_MCU): Same.
9460 (avr_mcu_types): add text start value to end of device list.
9461 * config/avr/avr-mcus.def: Add text section start for all devices.
9462 (ata5782): Add new avr5 device.
9463 (ata5831): Same.
9464 * config/avr/avr-tables.opt: Regenerate.
9465 * config/avr/avr.h: Add declaration for text section start handler.
9466 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9467 SPEC functions.
9468 (LINK_SPEC): Include text section start handler to linker spec.
9469 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9470 pass -Ttext option to linker if the text section start for the device
9471 is not zero.
9472 * config/avr/t-multilib: Regenerate.
9473 * doc/avr-mmcu.texi: Regenerate.
9474
9475 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9476
9477 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9478 * config/rs6000/aix52.h (LINK_SPEC): Same.
9479 * config/rs6000/aix53.h (LINK_SPEC): Same.
9480 * config/rs6000/aix61.h (LINK_SPEC): Same.
9481 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9482
9483 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9484
9485 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9486 (graphite_verify): New function.
9487 (ivs_params_clear): New function.
9488 (gcc_expression_from_isl_ast_expr_id): New function.
9489 (gcc_expression_from_isl_expr_int): New function.
9490 (binary_op_to_tree): New function.
9491 (ternary_op_to_tree): New function.
9492 (unary_op_to_tree): New function.
9493 (nary_op_to_tree): New function.
9494 (gcc_expression_from_isl_expr_op): New function.
9495 (gcc_expression_from_isl_expression): New function.
9496 (graphite_create_new_loop): New function.
9497 (translate_isl_ast_for_loop): New function.
9498 (get_upper_bound): New function.
9499 (graphite_create_new_loop_guard): New function.
9500 (translate_isl_ast_node_for): New function.
9501 (translate_isl_ast): New function.
9502 (add_parameters_to_ivs_params): New function.
9503 (scop_to_isl_ast): New parameter ip.
9504 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9505
9506 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9507
9508 * config/xtensa/predicates.md (call expander): Update for
9509 DECL_SECTION_NAME being string.
9510
9511 2014-07-11 Richard Biener <rguenther@suse.de>
9512
9513 PR middle-end/61473
9514 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9515 can be implemented with a single load followed by a single store.
9516 (c_strlen): Only warn when only_value is not 2.
9517
9518 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9519
9520 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9521
9522 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9523
9524 PR target/61561
9525 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9526 (*movhi_bytes): Likewise.
9527 (*arm_movqi_insn): Likewise.
9528
9529 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9530
9531 PR target/56858
9532 * config/alpha/alpha.c: Include tree-pass.h, context.h
9533 and pass_manager.h.
9534 (pass_data_handle_trap_shadows): New pass.
9535 (pass_handle_trap_shadows::gate): New pass gate function.
9536 (make_pass_handle_trap_shadows): New function.
9537 (rest_of_handle_trap_shadows): Ditto.
9538
9539 (alpha_align_insns_1): Rename from alpha_align_insns.
9540 (pass_data_align_insns): New pass.
9541 (pass_align_insns::gate): New pass gate function.
9542 (make_pass_aling_insns): New function.
9543 (rest_of_align_insns): Ditto.
9544 (alpha_align_insns): Ditto.
9545
9546 (alpha_option_override): Declare handle_trap_shadows info
9547 and align_insns_info. Register handle_trap_shadows and align_insns
9548 passes here.
9549 (alpha_reorg): Do not call alpha_trap_shadows and
9550 alpha_align_insn from here.
9551
9552 (alpha_pad_function_end): Do not skip BARRIERs.
9553
9554 2014-07-10 Rong Xu <xur@google.com>
9555
9556 Add gcov-tool: an offline gcda profile processing tool support.
9557 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9558 (gcov_is_error): Ditto.
9559 (gcov_read_string): Ditto.
9560 (gcov_read_sync): Ditto.
9561 * gcov-io.h: Move counter defines to gcov-counter.def.
9562 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9563 * coverage.c: Ditto.
9564 * gcov-tool.c: Offline gcda profile processing tool.
9565 (unlink_gcda_file): Remove one gcda file.
9566 (unlink_profile_dir): Remove gcda files from the profile path.
9567 (gcov_output_files): Output gcda files to an output dir.
9568 (profile_merge): Merge two profiles in directory.
9569 (print_merge_usage_message): Print merge usage.
9570 (merge_usage): Print merge usage and exit.
9571 (do_merge): Driver for profile merge sub-command.
9572 (profile_rewrite): Rewrite profile.
9573 (print_rewrite_usage_message): Print rewrite usage.
9574 (rewrite_usage): Print rewrite usage and exit.
9575 (do_rewrite): Driver for profile rewrite sub-command.
9576 (print_usage): Print gcov-info usage and exit.
9577 (print_version): Print gcov-info version.
9578 (process_args): Process arguments.
9579 (main): Main routine for gcov-tool.
9580 * Makefile.in: Build and install gcov-tool.
9581 * gcov-counter.def: New file split from gcov-io.h.
9582 * doc/gcc.texi: Include gcov-tool.texi.
9583 * doc/gcov-tool.texi: Document for gcov-tool.
9584
9585 2014-07-10 Richard Biener <rguenther@suse.de>
9586
9587 PR tree-optimization/61757
9588 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9589 (propagate_rhs_into_lhs): Revert part of last change.
9590
9591 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9592
9593 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9594 FUNCTION_DECLs.
9595
9596 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9597
9598 PR middle-end/53590
9599 * function.c (allocate_struct_function): Revert r188667 change.
9600
9601 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9602
9603 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9604
9605 * doc/install.texi: Remove links to defunct package providers for
9606 Solaris.
9607
9608 2014-07-09 Tom de Vries <tom@codesourcery.com>
9609
9610 * final.c (get_call_fndecl): Declare.
9611 (self_recursive_call_p): New function.
9612 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9613
9614 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9615
9616 * ipa-devirt.c (record_node): Walk through aliases.
9617
9618 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9619
9620 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9621
9622 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9623
9624 Revert:
9625 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9626
9627 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9628
9629 * ipa-visibility.c (function_and_variable_visibility): Remove
9630 temporary hack disabling local aliases on AIX.
9631
9632 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9633
9634 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9635 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9636
9637 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9638
9639 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9640 * rs6000/rs6000.c: Inline output of .set instruction.
9641 (declare_alias_data): New struct.
9642 (rs6000_declare_alias): New function.
9643 (rs6000_xcoff_declare_function_name): Use it.
9644 (rs6000_xcoff_declare_object_name): New function.
9645 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9646 (ASM_OUTPUT_DEF): Turn to empty definition.
9647
9648 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9649
9650 PR bootstrap/61679
9651 * hash-table.h: use hash_table::value_type instead of
9652 Descriptor::value_type in the return types of several methods.
9653
9654 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9655
9656 * tree-pass.h (pass_data): Remove has_execute member.
9657 * passes.c (execute_one_pass): Don't check pass->has_execute.
9658 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9659 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9660 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9661 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9662 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9663 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9664 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9665 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9666 gimple-low.c, gimple-ssa-isolate-paths.c,
9667 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9668 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9669 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9670 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9671 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9672 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9673 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9674 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9675 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9676 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9677 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9678 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9679 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9680 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9681 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9682 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9683 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9684 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9685 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9686 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9687 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9688 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9689 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9690 web.c: Remove initializer for pass_data::has_execute.
9691
9692 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9693
9694 * graphite-htab.h: Use hash_map instead of hash_table.
9695 * graphite-clast-to-gimple.c: Adjust.
9696 * passes.c: Use hash_map instead of hash_table.
9697 * sese.c: Likewise.
9698 * sese.h: Remove now unused code.
9699
9700 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9701
9702 PR target/61599
9703 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9704 than zero.
9705
9706 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9707
9708 PR rtl-optimization/61673
9709 * combine.c (simplify_comparison): Test just mode's sign bit
9710 in tmode rather than the sign bit and any bits above it.
9711
9712 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9713
9714 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9715 Add __isl_give to the declaration.
9716 (generate_isl_schedule): Likewise.
9717 (scop_to_isl_ast): Likewise.
9718
9719 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9720
9721 * config/arm/arm.c (cortexa5_extra_costs): New table.
9722 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9723
9724 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9725
9726 PR tree-optimization/61725
9727 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9728 range, use range_includes_zerop_p instead of integer_zerop on
9729 vr0->min, only use log2 of max if min is not negative.
9730
9731 2014-07-08 Richard Biener <rguenther@suse.de>
9732
9733 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9734 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9735 restriction on loop depth difference.
9736 (record_equality): Likewise.
9737 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9738 (loop_depth_of_name): Remove.
9739 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9740 restriction on loop depth difference.
9741 (init_copy_prop): Likewise.
9742
9743 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9744
9745 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9746 parameter.
9747 (walk_aliased_vdefs): Likewise.
9748 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9749 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9750 (detect_type_change_from_memory_writes): Check if entry was reached.
9751
9752 2014-07-08 Richard Biener <rguenther@suse.de>
9753
9754 PR tree-optimization/61681
9755 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9756 NONLOCAL inside ESCAPED.
9757
9758 2014-07-08 Richard Biener <rguenther@suse.de>
9759
9760 PR tree-optimization/61680
9761 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9762 Handle properly all read-write dependences with group accesses.
9763
9764 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9765
9766 PR tree-optimization/61576
9767 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9768 block containing reduction statement is predecessor of phi basi block.
9769
9770 2014-07-08 Marek Polacek <polacek@redhat.com>
9771
9772 PR c/60226
9773 * fold-const.c (round_up_loc): Change the parameter type.
9774 Remove assert.
9775 * fold-const.h (round_up_loc): Adjust declaration.
9776 * stor-layout.c (finalize_record_size): Check for too large types.
9777
9778 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9779
9780 * symtab.c: Include calls.h.
9781 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9782
9783 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9784
9785 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9786 little-endian code generation.
9787 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9788 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9789 (spe_evmergehilo): Rename to...
9790 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9791 (spe_evmergelo): Rename to...
9792 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9793 (spe_evmergelohi): Rename to...
9794 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9795 (spe_evmergehi, spe_evmergehilo): New expanders.
9796 (spe_evmergelo, spe_evmergelohi): Likewise.
9797 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9798 (*frob_tf_ti): Likewise.
9799 (*frob_<mode>_di_2): Likewise.
9800 (*frob_tf_di_8_2): Likewise.
9801 (*frob_di_<mode>): Likewise.
9802 (*frob_ti_tf): Likewise.
9803 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9804 (*frob_ti_<mode>_8_2): Likewise.
9805 (*frob_ti_tf_2): Likewise.
9806 (mov_si<mode>_e500_subreg0): Rename to...
9807 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9808 endianness only.
9809 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9810 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9811 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9812 the big endianness only.
9813 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9814 (*mov_si<mode>_e500_subreg0_2): Rename to...
9815 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9816 big big endianness only.
9817 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9818 (*mov_si<mode>_e500_subreg4): Rename to...
9819 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9820 endianness only.
9821 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9822 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9823 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9824 the big endianness only.
9825 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9826 pattern.
9827 (*mov_si<mode>_e500_subreg4_2): Rename to...
9828 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9829 endianness only.
9830 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9831 (*mov_sitf_e500_subreg8): Rename to...
9832 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9833 endianness only.
9834 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9835 (*mov_sitf_e500_subreg8_2): Rename to...
9836 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9837 endianness only.
9838 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9839 (*mov_sitf_e500_subreg12): Rename to...
9840 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9841 endianness only.
9842 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9843 (*mov_sitf_e500_subreg12_2): Rename to...
9844 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9845 endianness only.
9846 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9847
9848 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9849
9850 * asan.c (instrument_strlen_call): Do not instrument first byte
9851 in strlen if already instrumented.
9852
9853 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9854
9855 * config/arm/arm.opt (mwords-little-endian): Delete.
9856 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9857 of TARGET_LITTLE_WORDS.
9858 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9859 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9860 warning.
9861 * doc/invoke.texi: Remove references to -mwords-little-endian.
9862
9863 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9864
9865 * expmed.c (struct init_expmed_rtl): Change all fields but
9866 pow2 and cint from struct rtx_def to rtx.
9867 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9868 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9869 at the end again.
9870
9871 2014-07-06 Marek Polacek <polacek@redhat.com>
9872
9873 PR c/6940
9874 * doc/invoke.texi: Document -Wsizeof-array-argument.
9875
9876 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9877
9878 * wide-int.h (wide_int_storage): Change declaration from struct
9879 to class.
9880
9881 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9882
9883 * cgraph.c (cgraph_create_indirect_edge): Update call of
9884 get_polymorphic_call_info.
9885 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9886 (possible_polymorphic_call_targets): Add parameter call.
9887 (decl_maybe_in_construction_p): New predicate.
9888 (get_polymorphic_call_info): Add parameter call;
9889 use decl_maybe_in_construction_p.
9890 * gimple-fold.c (fold_gimple_assign): Update use of
9891 possible_polymorphic_call_targets.
9892 (gimple_fold_call): Likewise.
9893 * ipa-prop.c: Inlcude calls.h
9894 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9895 (param_type_may_change_p): New predicate.
9896 (detect_type_change_from_memory_writes): Break out from ...
9897 (detect_type_change): ... this one; use param_type_may_change_p.
9898 (detect_type_change_ssa): Use param_type_may_change_p.
9899 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9900
9901 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9902
9903 PR target/49423
9904 * config/arm/arm-protos.h (arm_legitimate_address_p,
9905 arm_is_constant_pool_ref): Add prototypes.
9906 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9907 (arm_is_constant_pool_ref) New function.
9908 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9909 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9910 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9911 operand. Remove pool_range and neg_pool_range attributes.
9912 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9913 pool_range and neg_pool_range attributes.
9914 * config/arm/constraints.md (Uh): New constraint.
9915 (Uq): Don't allow constant pool references.
9916
9917 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9918
9919 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9920 (move_lo_quad_internal_be_<mode>): Likewise.
9921 (move_lo_quad_<mode>): Convert to define_expand.
9922 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9923 (aarch64_simd_move_hi_quad_be_<mode>): New.
9924 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9925 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9926 (aarch64_combinez_be<mode>): New.
9927 (aarch64_combine<mode>): Convert to define_expand.
9928 (aarch64_combine_internal<mode>): New.
9929 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9930
9931 2014-07-04 Tom de Vries <tom@codesourcery.com>
9932
9933 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9934 combination of earlyclobber and read/write modifiers.
9935
9936 2014-07-04 Tom de Vries <tom@codesourcery.com>
9937
9938 * config/aarch64/aarch64-simd.md
9939 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9940
9941 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9942
9943 PR target/61714
9944 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9945
9946 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9947
9948 PR middle-end/61654
9949 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9950
9951 PR tree-optimization/61684
9952 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9953 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9954
9955 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9956 Kito Cheng <kito@0xlab.org>
9957 Monk Chiang <sh.chiang04@gmail.com>
9958
9959 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9960 (nds32_symbol_load_store_p): Move to ...
9961 (nds32_fp_as_gp_check_available): Move to ...
9962 * config/nds32/nds32-fp-as-gp.c: ... here.
9963 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9964 extern declaration.
9965
9966 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9967 Kito Cheng <kito@0xlab.org>
9968 Monk Chiang <sh.chiang04@gmail.com>
9969
9970 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9971 (nds32_expand_store_multiple): Move to ...
9972 (nds32_expand_movmemqi): Move to ...
9973 * config/nds32/nds32-memory-manipulation.c: ... here.
9974
9975 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9976 Kito Cheng <kito@0xlab.org>
9977 Monk Chiang <sh.chiang04@gmail.com>
9978
9979 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9980 (nds32_output_casesi_pc_relative): Move to ...
9981 (nds32_output_casesi): Move to ...
9982 (nds32_mem_format): Move to ...
9983 (nds32_output_16bit_store): Move to ...
9984 (nds32_output_16bit_load): Move to ...
9985 (nds32_output_32bit_store): Move to ...
9986 (nds32_output_32bit_load): Move to ...
9987 (nds32_output_32bit_load_s): Move to ...
9988 (nds32_output_stack_push): Move to ...
9989 (nds32_output_stack_pop): Move to ...
9990 * config/nds32/nds32-md-auxiliary.c: ... here.
9991
9992 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9993 Ling-Hua Tseng <uranus@tinlans.org>
9994
9995 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9996 the purpose of this file.
9997
9998 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9999 Kito Cheng <kito@0xlab.org>
10000 Monk Chiang <sh.chiang04@gmail.com>
10001
10002 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10003 (nds32_address_cost): Move implementation to ...
10004 * config/nds32/nds32-cost.c: ... here.
10005 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10006 (nds32_address_cost_impl): Declare.
10007
10008 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10009 Kito Cheng <kito@0xlab.org>
10010 Monk Chiang <sh.chiang04@gmail.com>
10011
10012 * config/nds32/nds32.c
10013 (nds32_consecutive_registers_load_store_p): Move to ...
10014 (nds32_valid_multiple_load_store): Move to ...
10015 (nds32_valid_stack_push_pop): Move to ...
10016 (nds32_can_use_bclr_p): Move to ...
10017 (nds32_can_use_bset_p): Move to ...
10018 (nds32_can_use_btgl_p): Move to ...
10019 (nds32_can_use_bitci_p): Move to ...
10020 * config/nds32/nds32-predicates.c: ... here.
10021
10022 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10023 Kito Cheng <kito@0xlab.org>
10024 Monk Chiang <sh.chiang04@gmail.com>
10025
10026 * config/nds32/nds32.c
10027 (nds32_expand_builtin_null_ftype_reg): Move to ...
10028 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10029 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10030 (nds32_init_builtins): Move implementation to ...
10031 (nds32_expand_builtin): Move implementation to ...
10032 * config/nds32/nds32-intrinsic.c: ... here.
10033 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10034 (nds32_expand_builtin_impl): Declare.
10035
10036 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10037 Kito Cheng <kito@0xlab.org>
10038 Monk Chiang <sh.chiang04@gmail.com>
10039
10040 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10041 (nds32_emit_section_tail_template): Move to ...
10042 (nds32_emit_isr_jmptbl_section): Move to ...
10043 (nds32_emit_isr_vector_section): Move to ...
10044 (nds32_emit_isr_reset_conten): Move to ...
10045 (nds32_check_isr_attrs_conflict): Move to ...
10046 (nds32_construct_isr_vectors_information): Move to ...
10047 (nds32_asm_file_start): Move implementation to ...
10048 (nds32_asm_file_end): Move implementation to ...
10049 * config/nds32/nds32-isr.c: ... here.
10050 * config/nds32/nds32-protos.h
10051 (nds32_check_isr_attrs_conflict): Declare.
10052 (nds32_construct_isr_vectors_information): Declare.
10053 (nds32_asm_file_start_for_isr): Declare.
10054 (nds32_asm_file_end_for_isr): Declare.
10055
10056 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10057 Kito Cheng <kito@0xlab.org>
10058 Monk Chiang <sh.chiang04@gmail.com>
10059
10060 * config.gcc (nds32*): Add new modules to extra_objs.
10061 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10062 (nds32be-*-*): Likewise.
10063 * config/nds32/nds32-cost.c: New file.
10064 * config/nds32/nds32-fp-as-gp.c: New file.
10065 * config/nds32/nds32-intrinsic.c: New file.
10066 * config/nds32/nds32-isr.c: New file.
10067 * config/nds32/nds32-md-auxiliary.c: New file.
10068 * config/nds32/nds32-memory-manipulation.c: New file.
10069 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10070 * config/nds32/nds32-predicates.c: New file.
10071 * config/nds32/t-nds32: New file.
10072
10073 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10074
10075 PR tree-optimization/61682
10076 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10077 using cases and when one of the operands is equal to 1.
10078
10079 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10080
10081 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10082 ashr<mode>3): Correct mode of operands[2].
10083 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10084 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10085 Correct mode of operands[2]. Fix split condition.
10086
10087 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10088
10089 * arm.md (arch): Add armv6_or_vfpv3.
10090 (arch_enabled): Add test for the above.
10091 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10092 on VFP9.
10093 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10094
10095 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10096
10097 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10098 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10099 HWI 1 and negate the unsigned value.
10100 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10101 use AND instead of shift.
10102 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10103
10104 2014-07-03 Marek Polacek <polacek@redhat.com>
10105
10106 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10107 (-fsanitize=float-divide-by-zero): Move to the table with
10108 -fsanitize=undefined suboptions.
10109 (-fsanitize=float-cast-overflow): Likewise.
10110
10111 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10112
10113 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10114 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10115 endianness.
10116
10117 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10118
10119 * loop-invariant.c (struct invariant): Add a new member: eqno;
10120 (find_identical_invariants): Update eqno;
10121 (create_new_invariant): Init eqno;
10122 (get_inv_cost): Compute comp_cost with eqno;
10123
10124 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10125
10126 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10127 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10128 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10129 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10130 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10131
10132 2014-07-02 Christian Bruel <christian.bruel@st.com>
10133
10134 PR target/29349
10135 PR target/53513
10136 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10137 (make_preds_opaque): Delete.
10138 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10139 (commit_mode_sets): New function.
10140 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10141 Process all modes at once.
10142 * basic-block.h (pre_edge_lcm_avs): Declare.
10143 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10144 Call clear_aux_for_edges. Fix comments.
10145 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10146 (pre_edge_rev_lcm): Idem.
10147 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10148 parameter.
10149 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10150 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10151 Idem.
10152 * config/i386/i386.c (x96_emit_mode_set): Idem.
10153 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10154 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10155 (fpscr_toggle) Disallow from delay slot.
10156 * target.def (emit_mode_set): Add prev_mode parameter.
10157 * doc/tm.texi: Regenerate.
10158
10159 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10160
10161 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10162 variable i.
10163
10164 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10165
10166 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10167 vtable_pointer_value_to_vtable): Constify.
10168 (contains_polymorphic_type_p): Declare.
10169 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10170 vtable_pointer_value_to_vtable): Constify.
10171 (contains_polymorphic_type_p): New predicate.
10172 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10173 polymorphic types.
10174 (ipa_set_ancestor_jf): Likewise.
10175 (detect_type_change): Return false in easy cases.
10176 (compute_complex_assign_jump_func): Require type to contain
10177 polymorphic type.
10178 (compute_known_type_jump_func): Likewise.
10179
10180 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10181
10182 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10183 Remove.
10184 (type_in_anonymous_namespace_p): Constify argument.
10185 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10186 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10187 (main_odr_variant): New function.
10188 (hash_type_name): Make static; update assert; do not ICE on
10189 non-records.
10190 (types_same_for_odr): Bring here from tree.c; simplify and remove
10191 old structural comparing code that doesn't work for templates.
10192 (odr_hasher::equal): Update assert.
10193 (add_type_duplicate): Return true when bases should be computed;
10194 replace incomplete loader by complete; do not output duplicated
10195 warnings; do not ICE on non-records; set odr_violated flag.
10196 (get_odr_type): Be ready to replace incomplete type by complete
10197 one; work on ODR variants instead of main variants; reorder item
10198 in array so bases have still smaller indexes.
10199 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10200 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10201
10202 2014-07-01 Cary Coutant <ccoutant@google.com>
10203
10204 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10205 lookup.
10206 (resolve_addr_in_expr): When replacing the rtx in a location list
10207 entry, get a new address table entry.
10208 (dwarf2out_finish): Call index_location_lists even if there are no
10209 addr_index_table entries yet.
10210
10211 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10212
10213 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10214 change for not being obvious.
10215
10216 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10217
10218 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10219 unused argument.
10220
10221 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10222
10223 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10224 (vcagt_f64): Likewise.
10225 (vcale_f64): Likewise.
10226 (vcaled_f64): Likewise.
10227 (vcales_f32): Likewise.
10228 (vcalt_f64): Likewise.
10229 (vcaltd_f64): Likewise.
10230 (vcalts_f32): Likewise.
10231
10232 2014-07-01 Marek Polacek <polacek@redhat.com>
10233
10234 * doc/invoke.texi: Document -Wint-conversion.
10235
10236 2014-07-01 Marek Polacek <polacek@redhat.com>
10237
10238 PR c/58286
10239 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10240
10241 2014-07-01 Martin Liska <mliska@suse.cz>
10242
10243 IPA REF alias refactoring
10244 * cgraph.h (iterate_direct_aliases): New function.
10245 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10246 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10247 FOR_EACH_ALIAS added.
10248 (cgraph_for_node_and_aliases): Likewise.
10249 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10250 * ipa-inline.c (reset_edge_caches): Likewise.
10251 (update_caller_keys): Likewise.
10252 * trans-mem.c (ipa_tm_execute): Likewise.
10253 *varpool.c (varpool_analyze_node): Likewise.
10254 (varpool_for_node_and_aliases): Likewise.
10255 * ipa-ref.h (first_alias): New function.
10256 (last_alias): Likewise.
10257 (has_aliases_p): Likewise.
10258 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10259 is sensitive to IPA_REF_ALIASes.
10260 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10261 are put at the beginning of the list.
10262 (symtab_node::iterate_direct_aliases): New function.
10263
10264 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10265
10266 Revert:
10267 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10268 type is complete.
10269 (write_ts_type_common_tree_pointers): Do not stream fields not set
10270 for incomplete types; do not stream duplicated fields for variants;
10271 sanity check that variant and type match.
10272 (write_ts_type_non_common_tree_pointers): Likewise.
10273 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10274 TYPE_SIZE whether type is complete.
10275 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10276 write_ts_type_common_tree_pointers
10277 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10278
10279 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10280
10281 * var-tracking.c (add_stores): Return instead of asserting if old
10282 and new values for conditional store are the same.
10283
10284 2014-06-30 Richard Henderson <rth@redhat.com>
10285
10286 PR rtl-opt/61608
10287 PR target/39284
10288 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10289 the cfg if there were any changes.
10290 * passes.def: Revert move of peephole2 after reorder_blocks;
10291 move duplicate_computed_gotos before peephole2.
10292
10293 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10294
10295 * except.c (emit_note_eh_region_end): New helper function.
10296 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10297 emit EH_REGION_END note.
10298 * jump.c (cleanup_barriers): Do not split a call and its
10299 corresponding CALL_ARG_LOCATION note.
10300
10301 2014-06-30 Jeff Law <law@redhat.com>
10302
10303 PR tree-optimization/61607
10304 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10305 deeper into the SSA_NAME_VALUE chain.
10306
10307 2014-06-30 Marek Polacek <polacek@redhat.com>
10308
10309 * convert.c (convert_to_integer): Don't instrument conversions if the
10310 function has no_sanitize_undefined attribute.
10311 * ubsan.c: Don't run the ubsan pass if the function has
10312 no_sanitize_undefined attribute.
10313
10314 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10315
10316 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10317 -fsanitize=undefined suboptions.
10318
10319 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10320
10321 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10322 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10323 against bigendian and adjust indices.
10324
10325 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10326
10327 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10328
10329 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10330
10331 PR target/61633
10332 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10333 Add alternative; make early clobber. Adjust both split patterns
10334 to use operand 0 as the working register.
10335
10336 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10337
10338 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10339 as ira_object_id_map might be NULL, or 1.
10340
10341 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10342
10343 * loop-invariant.c (get_inv_cost): Handle register class.
10344 (gain_for_invariant): Check the register pressure of the inv
10345 and its overlapped register class, other than all.
10346
10347 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10348
10349 * doc/invoke.texi (Optimize Options): Fix descriptions of
10350 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10351
10352 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10353
10354 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10355 documentation.
10356
10357 2014-06-29 Tobias Grosser <tobias@grosser.es>
10358
10359 PR bootstrap/61650
10360 * graphite-isl-ast-to-gimple.c: Add missing guards.
10361
10362 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10363
10364 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10365 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10366 * flag-types.h: Add new enum fgraphite_generator.
10367 * graphite-isl-ast-to-gimple.c: New.
10368 * graphite-isl-ast-to-gimple.h: New.
10369 * graphite.c (graphite_transform_loops): Add choice of Graphite
10370 code generator, which depends on flag_graphite_code_gen.
10371
10372 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10373
10374 * graphite-dependences.c (subtract_commutative_associative_deps):
10375 Add NULL checking of the following variables: must_raw_no_source,
10376 may_raw_no_source, must_war_no_source, may_war_no_source,
10377 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10378 must_war, may_war, must_waw, may_waw.
10379
10380 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10381
10382 * graphite-clast-to-gimple.c: gloog is renamed to
10383 graphite_regenerate_ast_cloog. gloog_error is renamed to
10384 graphite_regenerate_error.
10385 * graphite-clast-to-gimple.h: The definition of the struct
10386 bb_pbb_def is moved to graphite-htab.h.
10387 Add inclusion of the hash-table.h.
10388 * graphite-htab.h: The declaration of the function gloog is moved
10389 to graphite-clast-to-gimple.h and renamed to
10390 graphite_regenerate_ast_cloog.
10391 * graphite.c (graphite_transform_loops): gloog is renamed
10392 to graphite_regenerate_ast_cloog.
10393
10394 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10395
10396 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10397 type is complete.
10398 (write_ts_type_common_tree_pointers): Do not stream fields not set
10399 for incomplete types; do not stream duplicated fields for variants;
10400 sanity check that variant and type match.
10401 (write_ts_type_non_common_tree_pointers): Likewise.
10402 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10403 TYPE_SIZE whether type is complete.
10404 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10405 write_ts_type_common_tree_pointers
10406 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10407
10408 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10409
10410 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10411
10412 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10413
10414 * tree-inline.c (remap_type_1): Do not duplicate fields
10415 that are shared in between type and its main variant.
10416
10417 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10418
10419 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10420 of the type.
10421 (ipa_set_ancestor_jf) Likewise.
10422 (check_stmt_for_type_change): Check that we work on main variant.
10423 (detect_type_change): Look into main variant.
10424 (compute_known_type_jump_func): Check that main variant has BINFO.
10425
10426 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10427
10428 * ipa-devirt.c (set_type_binfo): New function.
10429 (add_type_duplicate): Use it.
10430 (get_odr_type): Sanity check that binfos points to main variants.
10431 (get_class_context): Be sure the context's outer_type is main variant.
10432 (contains_type_p): Walk main variant.
10433 (get_polymorphic_call_info_for_decl): Set outer_type to be
10434 main variant.
10435 (get_polymorphic_call_info): Likewise.
10436 (possible_polymorphic_call_targets): Sanity check that we operate
10437 on main variant.
10438
10439 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10440
10441 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10442
10443 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10444
10445 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10446 accidental change due to wide-int branch merge.
10447
10448 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10449
10450 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10451 compressed debug support.
10452 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10453 * configure: Regenerate.
10454 * config.in: Regenerate.
10455 * common.opt (compressed_debug_sections): New enum.
10456 (gz, gz=): New options.
10457 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10458 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10459 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10460 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10461 LINK_COMPRESS_DEBUG_SPEC.
10462 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10463 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10464 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10465 (Debugging Options): Document -gz[=type].
10466
10467 2014-06-27 Martin Jambor <mjambor@suse.cz>
10468
10469 PR ipa/61160
10470 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10471 args_to_skip, use those from node instead. Copy args_to_skip and
10472 combined_args_to_skip from node to the new thunk.
10473 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10474 (cgraph_create_virtual_clone): Moved computation of
10475 combined_args_to_skip...
10476 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10477
10478 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10479
10480 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10481 redundant diagnostic machinary.
10482
10483 2014-06-27 Richard Biener <rguenther@suse.de>
10484
10485 * tree-ssa-math-opts.c (bswap_replace): Fix
10486 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10487
10488 2014-06-27 Martin Liska <mliska@suse.cz>
10489
10490 * gimple.h (gimple_location_safe): New function introduced.
10491 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10492 of gimple_location_safe replaces gimple_location.
10493 (gimple_fold_call): Likewise.
10494 * ipa-devirt.c (ipa_devirt): Likewise.
10495 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10496 * ipa.c (walk_polymorphic_call_targets): Likewise.
10497 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10498
10499 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10500
10501 PR tree-optimization/57233
10502 PR tree-optimization/61299
10503 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10504 functions.
10505 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10506 would be lowered to scalar shifts, check if corresponding
10507 shifts and vector BIT_IOR_EXPR are supported and don't lower
10508 or lower just to narrower vector type in that case.
10509 * expmed.c (expand_shift_1): Fix up handling of vector
10510 shifts and rotates.
10511
10512 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10513
10514 PR target/61586
10515 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10516
10517 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10518
10519 * doc/invoke.texi (-fsemantic-interposition): Document.
10520 * common.opt (fsemantic-interposition): New flag.
10521 * varasm.c (decl_replaceable_p): Use it.
10522
10523 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10524
10525 PR target/61542
10526 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10527 extraction other than index 3.
10528
10529 2014-06-26 Teresa Johnson <tejohnson@google.com>
10530
10531 * doc/invoke.texi: Fix typo.
10532 * dumpfile.c: Add support for documented -fdump-* options
10533 optimized/missed/note/optall.
10534
10535 2014-06-26 Martin Jambor <mjambor@suse.cz>
10536
10537 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10538 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10539 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10540 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10541 * opts.c (default_options_optimization): Set
10542 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10543 * doc/invoke.texi (allow-load-data-races)
10544 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10545 (allow-store-data-races): Document the new default.
10546
10547 2014-06-26 Martin Jambor <mjambor@suse.cz>
10548
10549 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10550 renamed to ipa_impossible_devirt_target. Fix typo.
10551 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10552 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10553 ipa_impossible_devirt_target.
10554
10555 2014-06-26 Richard Biener <rguenther@suse.de>
10556
10557 PR tree-optimization/61607
10558 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10559 explaining why we restrict copies on loop depth.
10560 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10561 on loop depth.
10562 (record_equivalences_from_phis): Instead add it here.
10563
10564 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10565
10566 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10567 (LTO_WRAPPER_OBJS): New variable.
10568 (lto-wrapper$(exeext)): Use it.
10569 * collect2.c: Include "collect-utils.h".
10570 (verbose, debug): Remove variables.
10571 (at_file_supplied): No longer static.
10572 (tool_name): New variable.
10573 (do_wait, fork_execute, maybe_unlink): Don't declare.
10574 (tool_cleanup): No longer static.
10575 (notice): Remove function.
10576 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10577 fork_execute calls.
10578 (collect_wait, do_wait, collect_execute): Remove functions.
10579 (maybe_unlink): No longer static.
10580 * collect2.h (verbose, debug): Don't declare.
10581 (at_file_supplied): Declare.
10582 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10583 changed.
10584 (collect_execute): Replace with implementation from collect2, plus a
10585 new arg use_atfile. All callers changed.
10586 (collect_wait): Replace with implementation from collect2.
10587 (maybe_unlink_file): Remove function.
10588 (fork_execute): Replace with implementation from collect2, plus a
10589 new arg use_atfile. All callers changed.
10590 (do_wait): Add call to utils_cleanup to the error path.
10591 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10592 (tool_cleanup): Adjust declarations.
10593 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10594 * tlink.c: Include "collect-utils.h".
10595 (tlink_execute): New arg use_atfile. All callers changed.
10596 (tlink_init, tlink_execute): Remove declarations.
10597
10598 * collect-utils.c (save_temps): New variable.
10599 (do_wait): Use it instead of debug. Use fatal_error.
10600 * collect-utils.h (save_temps): Declare.
10601 * collect2.c (verbose): Rename from vflag. All uses changed.
10602 (tool_cleanup): New function, copied from collect_atexit.
10603 (collect_atexit, handler): Just call it.
10604 * collect2.h (verbose): Declaration renamed from vflag.
10605 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10606 debug.
10607
10608 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10609 (lto-wrapper$(exeext)): Link with collect-utils.o.
10610 * collect-utils.c: New file.
10611 * collect-utils.h: New file.
10612 * lto-wrapper.c: Include "collect-utils.h".
10613 (args_name): Delete variable.
10614 (tool_name): New variable.
10615 (tool_cleanup): New function.
10616 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10617 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10618 (fork_execute): Remove functions.
10619
10620 2014-06-26 Nick Clifton <nickc@redhat.com>
10621
10622 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10623
10624 * doc/extend.texi (Function Attributes): Fix typo in description
10625 of RX vector attribute.
10626
10627 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10628
10629 * config.gcc (supported_defaults): Error when passing either
10630 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10631
10632 2014-06-26 Richard Biener <rguenther@suse.de>
10633
10634 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10635 propagating volatile pointers.
10636
10637 2014-06-26 Richard Biener <rguenther@suse.de>
10638
10639 PR tree-optimization/61607
10640 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10641 loop if we redirected its latch edge.
10642 (thread_block_1): Do not cancel loops prematurely.
10643
10644 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10645
10646 * toplev.c (backend_init_target): Move init_emit_regs and
10647 init_regs to...
10648 (backend_init) ... here; skip ira_init_once and backend_init_target.
10649 (target_reinit) ... and here; clear
10650 this_target_rtl->lang_dependent_initialized.
10651 (lang_dependent_init_target): Clear
10652 this_target_rtl->lang_dependent_initialized;
10653 break out rtl initialization to ...
10654 (initialize_rtl): ... here; call also backend_init_target
10655 and ira_init_once.
10656 * toplev.h (initialize_rtl): New function.
10657 * function.c: Include toplev.h
10658 (init_function_start): Call initialize_rtl.
10659 * rtl.h (target_rtl): Add target_specific_initialized,
10660 lang_dependent_initialized.
10661
10662 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10663 Jakub Jelinek <jakub@redhat.com>
10664
10665 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10666
10667 2014-06-25 Tom de Vries <tom@codesourcery.com>
10668
10669 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10670
10671 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10672
10673 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10674 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10675 Issue a strict overflow warning if appropriate.
10676
10677 2014-06-25 Martin Liska <mliska@suse.cz>
10678
10679 IPA REF refactoring
10680 * Makefile.in: Removed header file (ipa-ref-inline.h).
10681 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10682 called.
10683 (cgraph_speculative_call_info): Likewise.
10684 (cgraph_for_node_thunks_and_aliases): Likewise.
10685 (cgraph_for_node_and_aliases): Likewise.
10686 (verify_cgraph_node): Likewise.
10687 * cgraph.h: Batch of IPA REF functions become member functions of
10688 symtab_node: add_reference, maybe_add_reference, clone_references,
10689 clone_referring, clone_reference, find_reference,
10690 remove_stmt_references, remove_all_references,
10691 remove_all_referring, dump_references, dump_referring,
10692 has_alias_p, iterate_reference, iterate_referring.
10693 * cgraphbuild.c (record_reference): New IPA REF function used.
10694 (record_type_list): Likewise.
10695 (record_eh_tables): Likewise.
10696 (mark_address): Likewise.
10697 (mark_load): Likewise.
10698 (mark_store): Likewise.
10699 (pass_build_cgraph_edges): Likewise.
10700 (rebuild_cgraph_edge): Likewise.
10701 (cgraph_rebuild_references): Likewise.
10702 (pass_remove_cgraph_callee_edges): Likewise.
10703 * cgraphclones.c (cgraph_clone_node): Likewise.
10704 (cgraph_create_virtual_clone): Likewise.
10705 (cgraph_materialize_clone): Likewise.
10706 (cgraph_materialize_all_clones): Likewise.
10707 * cgraphunit.c (cgraph_reset_node): Likewise.
10708 (cgraph_reset_node): Likewise.
10709 (analyze_function): Likewise.
10710 (assemble_thunks_and_aliases): Likewise.
10711 (expand_function): Likewise.
10712 * ipa-comdats.c (propagate_comdat_group): Likewise.
10713 (enqueue_references): Likewise.
10714 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10715 (create_specialized_node): Likewise.
10716 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10717 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10718 * ipa-inline.c (reset_edge_caches): Likewise.
10719 (update_caller_keys): Likewise.
10720 (execute): Likewise.
10721 * ipa-prop.c (remove_described_reference): Likewise.
10722 (propagate_controlled_uses): Likewise.
10723 (ipa_edge_duplication_hook): Likewise.
10724 (ipa_modify_call_arguments): Likewise.
10725 * ipa-pure-const.c (propagate_pure_const): Likewise.
10726 * ipa-ref-inline.h: Header file removed, functions moved
10727 to symtab_node class.
10728 * ipa-ref.c (remove_reference): New class member function.
10729 (cannot_lead_to_return): New class member function.
10730 (referring_ref_list): Likewise.
10731 (referred_ref_list): Likewise.
10732 Rest of functions moved to symtab_node class.
10733 * ipa-ref.h: New member functions remove_reference,
10734 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10735 to ipa_ref class.
10736 ipa_ref_list class has new member functions: first_reference,
10737 first_referring, clear, nreferences.
10738 * ipa-reference.c (analyze_function): New IPA REF function used.
10739 (write_node_summary_p): Likewise.
10740 (ipa_reference_write_optimization_summary): Likewise.
10741 * ipa-split.c (split_function): Likewise.
10742 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10743 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10744 (function_and_variable_visibility): Likewise.
10745 * ipa.c (has_addr_references_p): Likewise.
10746 (process_references): Argument type changed.
10747 (symtab_remove_unreachable_nodes): New IPA REF function used.
10748 (process_references): Likewise.
10749 (set_writeonly_bit): Likewise.
10750 * lto-cgraph.c: Implementation of new symtab_node member functions
10751 that uses new IPA REF functions.
10752 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10753 function used.
10754 * lto-streamer-out.c (output_symbol_p): Likewise.
10755 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10756 changed.
10757 * symtab.c: Implementation of new IPA REF API.
10758 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10759 (ipa_tm_create_version): Likewise.
10760 (ipa_tm_execute): Likewise.
10761 * tree-emutls.c (gen_emutls_addr): Likewise.
10762 * tree-inline.c (copy_bb): Likewise.
10763 (delete_unreachable_blocks_update_callgraph): Likewise.
10764 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10765 (varpool_for_node_and_aliases): Likewise.
10766
10767 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10768
10769 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10770
10771 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10772
10773 PR bootstrap/61598
10774 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10775 tree_node * instead of tree_node *.
10776 (fold): Adjust.
10777 (print_fold_checksum): Likewise.
10778 (fold_check_failed): Likewise.
10779 (debug_fold_checksum): Likewise.
10780 (fold_build1_stat_loc): Likewise.
10781 (fold_build2_stat_loc): Likewise.
10782 (fold_build3_stat_loc): Likewise.
10783 (fold_build_call_array_loc): Likewise.
10784
10785 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10786
10787 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10788 implementation with call to...
10789 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10790 function.
10791 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10792 Declare.
10793
10794 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10795
10796 PR tree-optimization/57742
10797 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10798 after replacing the statement.
10799
10800 2014-06-25 Nick Clifton <nickc@redhat.com>
10801
10802 * config/v850/v850.c (GHS_default_section_names): Change to const
10803 char * type.
10804 (GHS_current_section_names): Likewise.
10805 (v850_insert_attributes): Do not build strings, just assign the
10806 names directly. Change the type of 'chosen_section' to const
10807 char*.
10808 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10809 directly to the array entry.
10810 * config/v850/v850.h (GHS_default_section_names): Change to const
10811 char * type.
10812 (GHS_current_section_names): Likewise.
10813
10814 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10815
10816 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10817 (LANG_HOOKS_DECLS): Add it.
10818 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10819 has correct type.
10820 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10821 * langhooks.h (struct lang_hooks_for_decls): Add
10822 omp_clause_linear_ctor hook.
10823 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10824 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10825 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10826 combined simd loop use omp_clause_linear_ctor hook.
10827
10828 2014-06-24 Cong Hou <congh@google.com>
10829
10830 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10831 pattern recognition.
10832 (type_conversion_p): PROMOTION is true if it's a type promotion
10833 conversion, and false otherwise. Return true if the given expression
10834 is a type conversion one.
10835 * tree-vectorizer.h: Adjust the number of patterns.
10836 * tree.def: Add SAD_EXPR.
10837 * optabs.def: Add sad_optab.
10838 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10839 * expr.c (expand_expr_real_2): Likewise.
10840 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10841 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10842 * optabs.c (optab_for_tree_code): Likewise.
10843 * tree-cfg.c (estimate_operator_cost): Likewise.
10844 * tree-ssa-operands.c (get_expr_operands): Likewise.
10845 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10846 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10847 * doc/generic.texi: Add document for SAD_EXPR.
10848 * doc/md.texi: Add document for ssad and usad.
10849
10850 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10851
10852 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10853 qualification in cast.
10854
10855 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10856
10857 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10858 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10859 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10860 (tree_function_decl): ... here.
10861 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10862 streaming of vindex to ...
10863 (write_ts_function_decl_tree_pointers): ... here.
10864 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10865 Do not stream DECL_VINDEX.
10866 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10867
10868 2014-06-24 Catherine Moore <clm@codesourcery.com>
10869 Sandra Loosemore <sandra@codesourcery.com>
10870
10871 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10872 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10873 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10874
10875 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10876
10877 * doc/invoke.texi (Warning Options): Remove duplicated
10878 -Wmaybe-uninitialized.
10879
10880 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10881
10882 PR tree-optimization/57742
10883 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10884 (handle_builtin_malloc, handle_builtin_memset): New functions.
10885 (strlen_optimize_stmt): Call them.
10886 * passes.def: Move strlen after loop+dom but before vrp.
10887
10888 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10889
10890 PR target/61570
10891 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10892 model family 6 CPU with has_longmode never use a CPU without
10893 64-bit support.
10894
10895 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10896
10897 PR target/61570
10898 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10899 the last change.
10900
10901 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10902
10903 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10904 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10905 pointer_map.
10906 * hash-map.h: New file.
10907 * ipa-comdats.c: Use hash_map instead of pointer_map.
10908 * ipa.c: Likewise.
10909 * lto-section-out.c: Adjust.
10910 * lto-streamer.h: Replace pointer_map with hash_map.
10911 * symtab.c (verify_symtab): Likewise.
10912 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10913 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10914 * tree-streamer.h: Likewise.
10915 * tree-streamer.c: Adjust.
10916 * pointer-set.h: Remove pointer_map.
10917
10918 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10919
10920 * hash-table.h: Add a template arg to choose between storing values
10921 and storing pointers to values, and then provide partial
10922 specializations for both.
10923 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10924 should store, not the type values should point to.
10925 * tree-into-ssa.c (var_info_hasher): Likewise.
10926 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10927 * tree-complex.c: Adjust.
10928 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10929 table instead of int_tree_map *.
10930 * tree-parloops.c: Adjust.
10931 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10932 type is being stored.
10933 * tree-vectorizer.c: Adjust.
10934
10935 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10936
10937 * hash-table.h: Remove a layer of indirection from hash_table so that
10938 it contains the hash table's data instead of a pointer to the data.
10939 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10940 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10941 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10942 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10943 fold-const.c, gcse.c, ggc-common.c,
10944 gimple-ssa-strength-reduction.c, gimplify.c,
10945 graphite-clast-to-gimple.c, graphite-dependences.c,
10946 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10947 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10948 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10949 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10950 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10951 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10952 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10953 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10954 tree-ssa-live.c, tree-ssa-loop-im.c,
10955 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10956 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10957 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10958 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10959 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10960 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10961 vtable-verify.c, vtable-verify.h: Adjust.
10962
10963 2014-06-24 Richard Biener <rguenther@suse.de>
10964
10965 PR tree-optimization/61572
10966 * tree-ssa-sink.c (statement_sink_location): Do not sink
10967 loads from hard registers.
10968
10969 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10970
10971 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10972 not mentioned in clauses use private clause if the iterator is
10973 declared in #pragma omp for simd, and when adding lastprivate
10974 instead, add it to the outer #pragma omp for too. Diagnose
10975 if the variable is private in outer context. For simd collapse > 1
10976 loops, replace all iterators with temporaries.
10977 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10978 same even in collapse > 1 loops.
10979
10980 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10981 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10982 non-NULL.
10983 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10984 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10985 non-NULL.
10986 (gimplify_adjust_omp_clauses): Likewise.
10987 * omp-low.c (lower_rec_simd_input_clauses,
10988 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10989 safelen the same as safelen(1).
10990 * tree-nested.c (convert_nonlocal_omp_clauses,
10991 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10992 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10993 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10994 Fixup handling of GIMPLE_OMP_TARGET.
10995 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10996 GIMPLE_OMP_TARGET.
10997
10998 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10999
11000 PR tree-optimization/61554
11001 * tree-ssa-propagate.c: Include "bitmap.h".
11002 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11003 properly update constructor/destructor.
11004 (substitute_and_fold_dom_walker::before_dom_children):
11005 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11006 need_eh_cleaup instead.
11007 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11008 need_eh_cleanup.
11009
11010 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11011
11012 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11013 * tree-pass.h (make_pass_ipa_single_use): New pass.
11014 * cgraph.h (used_by_single_function): New flag.
11015 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11016 Stream it.
11017 * passes.def (pass_ipa_single_use): Scedule.
11018 * ipa.c (BOTTOM): New macro.
11019 (meet): New function
11020 (propagate_single_user): New function.
11021 (ipa_single_use): New function.
11022 (pass_data_ipa_single_use): New pass.
11023 (pass_ipa_single_use): New pass.
11024 (pass_ipa_single_use::gate): New gate.
11025 (make_pass_ipa_single_use): New function.
11026
11027 2014-06-23 Kai Tietz <ktietz@redhat.com>
11028
11029 PR target/39284
11030 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11031 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11032
11033 2014-06-23 Richard Biener <rguenther@suse.de>
11034
11035 * tree-ssa-loop.c (gate_loop): New function.
11036 (pass_tree_loop::gate): Call it.
11037 (pass_data_tree_no_loop, pass_tree_no_loop,
11038 make_pass_tree_no_loop): New.
11039 * tree-vectorizer.c: Include tree-scalar-evolution.c
11040 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11041 required.
11042 (pass_slp_vectorize::clone): New method.
11043 * timevar.def (TV_TREE_NOLOOP): New.
11044 * tree-pass.h (make_pass_tree_no_loop): Declare.
11045 * passes.def (pass_tree_no_loop): New pass group with
11046 SLP vectorizer.
11047
11048 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11049
11050 PR target/61570
11051 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11052 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11053
11054 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11055
11056 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11057 "yes" where needed.
11058
11059 2014-06-23 Alan Modra <amodra@gmail.com>
11060
11061 PR bootstrap/61583
11062 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11063 to zero on debug statements.
11064
11065 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11066
11067 PR target/60825
11068 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11069 Ignore third operand if present by marking qualifier_internal.
11070
11071 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11072
11073 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11074 vector extension.
11075 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11076 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11077 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11078 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11079 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11080 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11081 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11082 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11083 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11084 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11085 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11086 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11087 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11088 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11089 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11090 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11091 logic in GCC vector extensions
11092
11093 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11094 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11095 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11096 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11097 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11098 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11099 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11100 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11101 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11102 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11103
11104 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11105
11106 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11107 extensions.
11108
11109 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11110 (vget_low_s64): Use __GET_LOW macro.
11111 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11112 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11113 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11114 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11115 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11116
11117 (vcombine_s64): Use GCC vector extensions; remove cast.
11118 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11119 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11120 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11121 Fix type signature; remove cast.
11122
11123 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11124
11125 PR target/60825
11126 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11127 V1DFmode.
11128 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11129 add V1DFmode
11130 (BUILTIN_VD1): New.
11131 (BUILTIN_VD_RE): Remove.
11132 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11133 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11134 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11135 variant but not df.
11136 (vreinterpretv1df*, vreinterpret*v1df): New.
11137 (vreinterpretdf*, vreinterpret*df): Remove.
11138 * config/aarch64/aarch64-simd.md (aarch64_create,
11139 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11140 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11141 (VD1): New.
11142 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11143 (vcreate_f64): Remove cast, use v1df builtin.
11144 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11145 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11146 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11147 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11148 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11149 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11150 add range check using __builtin_aarch64_im_lane_boundsi.
11151 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11152 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11153 type signature, use gcc vector extensions.
11154 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11155 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11156 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11157 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11158 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11159 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11160 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11161 vreinterpret_u64_f64): Use v1df builtin not df.
11162
11163 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11164
11165 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11166 vector registers.
11167
11168 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11169
11170 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11171 priority directly.
11172
11173 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11174
11175 * loop-invariant.c (pre_check_invariant_p): New function.
11176 (find_invariant_insn): Call pre_check_invariant_p.
11177
11178 2014-06-22 Richard Henderson <rth@redhat.com>
11179
11180 PR target/61565
11181 * compare-elim.c (struct comparison): Add eh_note.
11182 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11183 a redundant comparison in a different EH region. Purge EH edges if
11184 necessary.
11185
11186 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11187
11188 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11189 (var_shift): Use it.
11190 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11191 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11192 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11193 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11194 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11195 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11196 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11197 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11198 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11199 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11200 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11201 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11202 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11203 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11204 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11205 *rotldi3_internal15be): Use the new attribute. Merge register and
11206 integer alternatives.
11207
11208 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11209
11210 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11211 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11212 split, *ashrdi3_internal3 and split): Delete, merge into...
11213 (ashr<mode>3): New expander.
11214 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11215 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11216
11217 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11218
11219 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11220 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11221 *rotldi3_internal3 and split): Delete, merge into...
11222 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11223 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11224 Use "rotlw" extended mnemonic.
11225
11226 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11227
11228 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11229 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11230 and split, *ashldi3_internal3 and split): Delete, merge into...
11231 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11232 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11233
11234 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11235
11236 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11237 (lshrsi3, two anonymous define_insns and define_splits,
11238 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11239 *lshrdi3_internal3 and split): Delete, merge into...
11240 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11241 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11242
11243 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11244
11245 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11246 Remove "O" alternative.
11247
11248 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11249
11250 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11251 (mips_move_from_gpr_cost): Likewise.
11252 (mips_register_move_cost): Update accordingly.
11253 (mips_secondary_reload_class): Remove name of in_p.
11254
11255 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11256
11257 PR target/61503
11258 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11259 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11260
11261 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11262
11263 * config/nios2/nios2.c: Include "builtins.h".
11264
11265 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11266
11267 * cgraph.h (tls_model_names): New variable.
11268 * print-tree.c (print_node): Simplify.
11269 * varpool.c (tls_model_names): New variable.
11270 (dump_varpool_node): Output tls model.
11271
11272 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11273
11274 * ipa-visibility.c (function_and_variable_visibility): Disable
11275 temporarily local aliases for some targets.
11276
11277 2014-06-20 Marek Polacek <polacek@redhat.com>
11278
11279 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11280 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11281 into SANITIZE_UNDEFINED.
11282 * doc/invoke.texi: Describe -fsanitize=bounds.
11283 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11284 functions created in the FEs.
11285 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11286 (expand_UBSAN_BOUNDS): New function.
11287 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11288 * internal-fn.h: Don't define internal functions here.
11289 * opts.c (common_handle_option): Add -fsanitize=bounds.
11290 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11291 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11292 * tree-core.h: Define internal functions here.
11293 (struct tree_base): Add ifn field.
11294 * tree-pretty-print.c: Include "internal-fn.h".
11295 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11296 * tree.c (get_callee_fndecl): Likewise.
11297 (build_call_expr_internal_loc): New function.
11298 * tree.def (CALL_EXPR): Update description.
11299 * tree.h (CALL_EXPR_IFN): Define.
11300 (build_call_expr_internal_loc): Declare.
11301 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11302 types.
11303 (ubsan_type_descriptor): Change bool parameter to enum
11304 ubsan_print_style. Adjust the code. Add handling of
11305 UBSAN_PRINT_ARRAY.
11306 (ubsan_expand_bounds_ifn): New function.
11307 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11308 (ubsan_build_overflow_builtin): Likewise.
11309 (instrument_bool_enum_load): Likewise.
11310 (ubsan_instrument_float_cast): Likewise.
11311 * ubsan.h (enum ubsan_print_style): New enum.
11312 (ubsan_expand_bounds_ifn): Declare.
11313 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11314
11315 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11316
11317 * config/rs6000/rs6000.md: Append `DONE' to preparation
11318 statements of `bswap' pattern splitters.
11319
11320 2014-06-20 Tom de Vries <tom@codesourcery.com>
11321
11322 * target.def (call_fusage_contains_non_callee_clobbers): Update
11323 definition.
11324 * doc/tm.texi: Regenerate.
11325
11326 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11327 Max Ostapenko <m.ostapenko@partner.samsung.com>
11328
11329 PR sanitizer/61547
11330 * asan.c (instrument_strlen_call): Fixed instrumentation of
11331 trailing byte.
11332
11333 2014-06-20 Martin Jambor <mjambor@suse.cz>
11334
11335 PR ipa/61540
11336 * ipa-prop.c (impossible_devirt_target): New function.
11337 (try_make_edge_direct_virtual_call): Use it, also instead of
11338 asserting.
11339
11340 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11341 Max Ostapenko <m.ostapenko@partner.samsung.com>
11342
11343 PR sanitizer/61530
11344 * asan.c (build_check_stmt): Add condition.
11345
11346 2014-06-20 Martin Jambor <mjambor@suse.cz>
11347
11348 PR ipa/61211
11349 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11350 expanded clones.
11351
11352 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11353
11354 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11355 Update comments.
11356 (VCONQ): Make comment more helpful.
11357 (VCON): Delete.
11358 * config/aarch64/aarch64-simd.md
11359 (aarch64_sqdmulh_lane<mode>):
11360 Use VCOND for operands 2. Update lane checking and flipping logic.
11361 (aarch64_sqrdmulh_lane<mode>): Likewise.
11362 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11363 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11364 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11365 attribute of operand 3 to VCOND.
11366 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11367 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11368 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11369 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11370 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11371 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11372 define_insn.
11373 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11374 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11375 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11376 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11377 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11378 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11379 operand to VCOND. Update lane flipping and bounds checking logic.
11380 (aarch64_sqdmlal2_lane<mode>): Likewise.
11381 (aarch64_sqdmlsl_lane<mode>): Likewise.
11382 (aarch64_sqdmull_lane<mode>): Likewise.
11383 (aarch64_sqdmull2_lane<mode>): Likewise.
11384 (aarch64_sqdmlal_laneq<mode>):
11385 Replace VCON usage with VCONQ.
11386 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11387 (aarch64_sqdmlal2_laneq<mode>): Emit
11388 aarch64_sqdmlal2_laneq<mode>_internal insn.
11389 Replace VCON with VCONQ.
11390 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11391 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11392 (aarch64_sqdmull_laneq<mode>): Emit
11393 aarch64_sqdmull_laneq<mode>_internal insn.
11394 Replace VCON with VCONQ.
11395 (aarch64_sqdmull2_laneq<mode>): Emit
11396 aarch64_sqdmull2_laneq<mode>_internal insn.
11397 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11398 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11399 of 3rd argument to int16x4_t.
11400 (vqdmlalh_lane_s16): Likewise.
11401 (vqdmlslh_lane_s16): Likewise.
11402 (vqdmull_high_lane_s16): Likewise.
11403 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11404 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11405 (vqdmlsl_lane_s16): Likewise.
11406 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11407 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11408 (vqdmlals_lane_s32): Likewise.
11409 (vqdmlsls_lane_s32): Likewise.
11410 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11411 (vqdmulls_lane_s32): Likewise.
11412 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11413 (vqdmlsl_lane_s32): Likewise.
11414 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11415 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11416 (vqrdmulhh_lane_s16): Likewise.
11417 (vqdmlsl_high_lane_s16): Likewise.
11418 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11419 (vqdmlsl_high_lane_s32): Likewise.
11420 (vqrdmulhs_lane_s32): Likewise.
11421
11422 2014-06-20 Tom de Vries <tom@codesourcery.com>
11423
11424 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11425 get_call_reg_set_usage.
11426
11427 2014-06-20 Tom de Vries <tom@codesourcery.com>
11428
11429 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11430 it contains all call_used_regs.
11431
11432 2014-06-20 Tom de Vries <tom@codesourcery.com>
11433
11434 * final.c (collect_fn_hard_reg_usage): Add and use variable
11435 function_used_regs.
11436
11437 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11438
11439 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11440 (set_init_priority, get_init_priority, set_fini_priority,
11441 get_fini_priority): New methods.
11442 * tree.c (init_priority_for_decl): Remove.
11443 (init_ttree): Do not initialize init priority.
11444 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11445 (decl_priority_info): Remove.
11446 (decl_init_priority_insert): Rewrite.
11447 (decl_fini_priority_insert): Rewrite.
11448 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11449 tree_priority_map_marked_p): Remove.
11450 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11451 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11452 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11453 not output priorities.
11454 (pack_ts_function_decl_value_fields): Likewise.
11455 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11456 not input priorities.
11457 (unpack_ts_function_decl_value_fields): Likewise.
11458 * symtab.c (symbol_priority_map): Declare.
11459 (init_priority_hash): Declare.
11460 (symtab_unregister_node): Unregister from priority hash, too.
11461 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11462 New methods.
11463 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11464 (symbol_priority_info): New function.
11465 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11466 New methods.
11467 * tree-core.h (tree_priority_map): Remove.
11468
11469 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11470
11471 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11472 0xff to uint64_t before shifting it up.
11473
11474 2014-06-20 Julian Brown <julian@codesourcery.com>
11475 Chung-Lin Tang <cltang@codesourcery.com>
11476
11477 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11478 TARGET_THUMB1_ONLY. Add comments.
11479
11480 2014-06-19 Tom de Vries <tom@codesourcery.com>
11481
11482 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11483 return type to void.
11484 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11485
11486 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11487
11488 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11489 as "move", from depends_on.
11490
11491 2014-06-19 Terry Guo <terry.guo@arm.com>
11492
11493 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11494 stage.
11495
11496 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11497
11498 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11499 Remove cr5.
11500 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11501
11502 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11503
11504 PR target/61550
11505 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11506 addresses here if reload in progress or completed.
11507
11508 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11509
11510 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11511 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11512 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11513 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11514 (mips_register_priority): New function that implements the target
11515 hook TARGET_REGISTER_PRIORITY.
11516 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11517 (mips_lra_p): Likewise for TARGET_LRA_P.
11518 (TARGET_REGISTER_PRIORITY): Define macro.
11519 (TARGET_SPILL_CLASS): Likewise.
11520 (TARGET_LRA_P): Likewise.
11521 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11522 classes.
11523 (REG_CLASS_NAMES): Likewise.
11524 (REG_CLASS_CONTENTS): Likewise.
11525 (BASE_REG_CLASS): Use M16_SP_REGS.
11526 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11527 New set attribute to enable alternatives depending on the register
11528 allocator used.
11529 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11530 (*lea64): Disable pattern for MIPS16.
11531 * config/mips/mips.opt (mlra): New option.
11532
11533 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11534
11535 * lra-constraints.c (base_to_reg): New function.
11536 (process_address): Use new function.
11537
11538 2014-06-18 Tom de Vries <tom@codesourcery.com>
11539
11540 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11541 * config/aarch64/aarch64.c
11542 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11543 (aarch64_emit_call_insn): New function.
11544 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11545 of emit_call_insn.
11546 * config/aarch64/aarch64.md (define_expand "call_internal")
11547 (define_expand "call_value_internal", define_expand "sibcall_internal")
11548 (define_expand "sibcall_value_internal"): New.
11549 (define_expand "call", define_expand "call_value")
11550 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11551 expand variant and aarch64_emit_call_insn.
11552
11553 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11554 Tom de Vries <tom@codesourcery.com>
11555
11556 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11557 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11558 Redefine to true.
11559 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11560 clobbers to CALL_INSN_FUNCTION_USAGE.
11561 (define_expand "sibcall_internal")
11562 (define_expand "sibcall_value_internal"): New.
11563 (define_expand "call", define_expand "call_value"): Add argument to
11564 arm_emit_call_insn.
11565 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11566 (define_expand "sibcall_value"): Use sibcall_value_internal and
11567 arm_emit_call_insn.
11568
11569 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11570
11571 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11572
11573 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11574
11575 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11576 __udivmoddi4.
11577
11578 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11579
11580 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11581 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11582 annotations. Fix DWARF information.
11583
11584 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11585
11586 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11587 __udivmoddi4, and fixups for negative operands.
11588
11589 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11590
11591 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11592
11593 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11594
11595 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11596 to __udivmoddi4.
11597
11598 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11599
11600 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11601 manipulation.
11602
11603 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11604
11605 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11606 describing register usage on function entry and exit.
11607
11608 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11609
11610 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11611 (__aeabi_ldivmod): Fix whitespace.
11612
11613 2014-06-18 Andreas Schwab <schwab@suse.de>
11614
11615 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11616 Remove blank line after @item.
11617
11618 2014-06-18 Richard Henderson <rth@redhat.com>
11619
11620 PR target/61545
11621 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11622
11623 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11624
11625 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11626 POST_MODIFY for neon loads and stores.
11627 (arm_print_operand): Output post-index register for neon loads and
11628 stores.
11629
11630 2014-06-18 Richard Biener <rguenther@suse.de>
11631
11632 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11633
11634 2014-06-18 Richard Biener <rguenther@suse.de>
11635
11636 * tree-pass.h (make_pass_dce_loop): Remove.
11637 * passes.def: Replace pass_dce_loop with pass_dce.
11638 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11639 changed free niter estimates and reset the scev cache.
11640 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11641 make_pass_dce_loop): Remove.
11642 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11643 (fini_copy_prop): Return whether something changed. Always
11644 let substitute_and_fold perform DCE and free niter estimates
11645 and reset the scev cache if so.
11646 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11647 (pass_data_copy_prop): Do not unconditionally schedule
11648 cleanup-cfg or update-ssa.
11649
11650 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11651
11652 PR tree-optimization/61518
11653 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11654 reduction var is used in reduction stmt or phi-function only.
11655
11656 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11657
11658 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11659
11660 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11661
11662 PR tree-optimization/61517
11663 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11664 whose rhs's first tree is the source expression instead of the
11665 expression itself.
11666 (find_bswap_or_nop): Likewise.
11667 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11668 gimple stmt whose rhs's first tree is the source. In the memory source
11669 case, move the stmt to be replaced close to one of the original load to
11670 avoid the problem of a store between the load and the stmt's original
11671 location.
11672 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11673 signature.
11674
11675 2014-06-18 Andreas Schwab <schwab@suse.de>
11676
11677 PR rtl-optimization/54555
11678 * postreload.c (move2add_use_add2_insn): Substitute
11679 STRICT_LOW_PART only if it is cheaper.
11680
11681 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11682
11683 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11684 Do not use unspec as call operand. Use memory_operand instead of
11685 memory_nox32_operand and add "m" operand constraint. Disable
11686 pattern for TARGET_X32.
11687 (*sibcall_pop_memory): Ditto.
11688 (*sibcall_value_memory): Ditto.
11689 (*sibcall_value_pop_memory): Ditto.
11690 (sibcall peepholes): Merge SImode and DImode patterns using
11691 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11692 Disable pattern for TARGET_X32. Check if eliminated register is
11693 really dead after call insn. Generate call RTX without unspec operand.
11694 (sibcall_value peepholes): Ditto.
11695 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11696 instead of memory_nox32_operand. Check if eliminated register is
11697 really dead after call insn. Generate call RTX without unspec operand.
11698 (sibcall_value_pop peepholes): Ditto.
11699 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11700
11701 2014-06-18 Terry Guo <terry.guo@arm.com>
11702
11703 PR target/61544
11704 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11705 reach the head.
11706
11707 2014-06-18 Olivier Hainque <hainque@adacore.com>
11708
11709 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11710 memorization of the end of block source location.
11711 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11712 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11713 end source location info we have on the block entry/exit code we
11714 generate.
11715
11716 2014-06-18 Richard Biener <rguenther@suse.de>
11717
11718 * common.opt (fssa-phiopt): New option.
11719 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11720 but not with -Og.
11721 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11722 * doc/invoke.texi (-fssa-phiopt): Document.
11723
11724 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11725
11726 * genattrtab.c (n_bypassed): New variable.
11727 (process_bypasses): Initialise n_bypassed.
11728 Count number of bypassed reservations.
11729 (make_automaton_attrs): Allocate space for bypassed reservations
11730 rather than number of bypasses.
11731
11732 2014-06-18 Richard Biener <rguenther@suse.de>
11733
11734 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11735 we propagated anything.
11736 (substitute_and_fold_dom_walker::before_dom_children): Something
11737 changed if we propagated into PHI arguments.
11738 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11739 we removed a stmt.
11740
11741 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11742
11743 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11744 vector case.
11745 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11746 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11747 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11748 Introduces alternative way of loads group permutaions.
11749 (vect_transform_grouped_load): Try alternative way of permutations.
11750
11751 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11752
11753 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11754 changed in ORT_TARGET region, don't jump to do_outer.
11755 (struct gimplify_adjust_omp_clauses_data): New type.
11756 (gimplify_adjust_omp_clauses_1): Adjust for data being
11757 a struct gimplify_adjust_omp_clauses_data pointer instead
11758 of tree *. Pass pre_p as a new argument to
11759 lang_hooks.decls.omp_finish_clause hook.
11760 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11761 splay_tree_foreach to pass both list_p and pre_p.
11762 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11763 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11764 gimplify_adjust_omp_clauses callers.
11765 * langhooks.c (lhd_omp_finish_clause): New function.
11766 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11767 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11768 * langhooks.h (struct lang_hooks_for_decls): Add a new
11769 gimple_seq * argument to omp_finish_clause hook.
11770 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11771 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11772 (scan_omp_parallel, lower_omp_for): When adding
11773 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11774 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11775 * tree-nested.c (convert_nonlocal_omp_clauses,
11776 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11777 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11778
11779 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11780
11781 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11782 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11783
11784 2014-06-17 Xinliang David Li <davidxl@google.com>
11785
11786 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11787 * passes.c (pass_init_dump_file): Do not set initialize
11788 flag to false unconditionally.
11789
11790 2014-06-17 Richard Biener <rguenther@suse.de>
11791
11792 * genopinit.c (main): Use vec<>::qsort method.
11793 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11794 Likewise.
11795 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11796
11797 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11798
11799 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11800 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11801 (mips_move_to_gpr_cost): Remove ST_REGS case.
11802 (mips_move_from_gpr_cost): Likewise.
11803 (mips_register_move_cost): Likewise.
11804 (mips_secondary_reload_class): Likewise.
11805
11806 2014-06-17 Richard Biener <rguenther@suse.de>
11807
11808 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11809 (pass_all_optimizations): Move 3rd copy-prop pass from after
11810 fre to before ifcombine/phiopt.
11811
11812 2014-06-17 Richard Biener <rguenther@suse.de>
11813
11814 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11815 and allow all blocks to be forwarders.
11816
11817 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11818
11819 PR target/61483
11820 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11821 variable 'size'; calculate 'size' right in the front; use
11822 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11823 pcum->aapcs_stack_words.
11824
11825 2014-06-17 Nick Clifton <nickc@redhat.com>
11826
11827 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11828 (umulhi3, mulsidi3, umulsidi3): Likewise.
11829
11830 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11831
11832 PR middle-end/61508
11833 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11834 check for section name.
11835
11836 2014-06-17 Richard Biener <rguenther@suse.de>
11837
11838 * tree-ssa-propagate.c: Include domwalk.h.
11839 (substitute_and_fold): Outline main worker into a domwalker ...
11840 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11841 Schedule stmts we can fully propagate for removal. Remove
11842 poor-mans DCE.
11843 (substitute_and_fold): Apply a dominator walk to perform
11844 substitution. Process stmts scheduled for removal here.
11845
11846 2014-06-17 Richard Biener <rguenther@suse.de>
11847
11848 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11849 of PHI node moving.
11850
11851 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11852
11853 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11854 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11855 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11856 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11857 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11858 TARGET_HARD_FLOAT.
11859 (get_fpscr) : Likewise.
11860
11861 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11862
11863 PR rtl-optimization/61325
11864 * lra-constraints.c (valid_address_p): Add forward declaration.
11865 (simplify_operand_subreg): Check address validity before and after
11866 alter_reg of memory subreg.
11867
11868 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11869
11870 * config/i386/i386.c (decide_alg): Correctly handle
11871 maximum size of stringop algorithm.
11872
11873 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11874
11875 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11876
11877 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11878
11879 PR rtl-optimization/61522
11880 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11881
11882 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11883
11884 Revert:
11885 * symtab.c (symtab_node::reset_section): New method.
11886 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11887 for localization.
11888 * cgraph.h (reset_section): Declare.
11889 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11890 do not consider comdat locals.
11891 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11892 for new symbol.
11893 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11894 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11895 reset sections of symbols dragged out of the comdats.
11896 (function_and_variable_visibility): Reset sections of
11897 localized symbols.
11898
11899 2014-06-16 Richard Biener <rguenther@suse.de>
11900
11901 PR tree-optimization/61482
11902 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11903 [-INF(OVF), +INF(OVF)] range.
11904
11905 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11906
11907 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11908 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11909 handling 32-bit multiplication.
11910
11911 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11912
11913 PR middle-end/61430
11914 * lra-lives.c (process_bb_lives): Skip creating copy during
11915 insn scan when src/dest has constrained to same regno.
11916
11917 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11918
11919 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11920 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11921
11922 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11923
11924 * asan.c (check_func): New function.
11925 (maybe_create_ssa_name): Likewise.
11926 (build_check_stmt_with_calls): Likewise.
11927 (use_calls_p): Likewise.
11928 (report_error_func): Change interface.
11929 (build_check_stmt): Allow non-integer lengths; add support
11930 for new parameter.
11931 (asan_instrument): Likewise.
11932 (instrument_mem_region_access): Moved code to build_check_stmt.
11933 (instrument_derefs): Likewise.
11934 (instrument_strlen_call): Likewise.
11935 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11936 * doc/invoke.texi: Describe new parameter.
11937 * params.def: Define new parameter.
11938 * params.h: Likewise.
11939 * sanitizer.def: Describe new builtins.
11940
11941 2014-06-16 Richard Biener <rguenther@suse.de>
11942
11943 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11944 Make all defs available at the end.
11945 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11946
11947 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11948
11949 PR plugins/45078
11950 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11951
11952 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11953
11954 PR bootstrap/61516
11955 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11956 initialization. Replace remaining use of uid.
11957
11958 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11959
11960 * c-family/c-common.c (handle_tls_model_attribute): Use
11961 set_decl_tls_model.
11962 * c-family/c-common.c (handle_tls_model_attribute): Use
11963 set_decl_tls_model.
11964 * cgraph.h (struct varpool_node): Add tls_model.
11965 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11966 * tree.h (DECL_TLS_MODEL): Update.
11967 (DECL_THREAD_LOCAL_P): Check that variable is static.
11968 (decl_tls_model): Declare.
11969 (set_decl_tls_model): Declare.
11970 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11971 set symbol prorperties.
11972 (get_emutls_init_templ_addr): Cleanup.
11973 (new_emutls_decl): Update.
11974 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11975 (lto_input_varpool_node): Likewise.
11976 * lto-streamer-out.c (hash_tree): Likewise.
11977 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11978 not stream DECL_TLS_MODEL.
11979 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11980 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11981
11982 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11983
11984 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11985
11986 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11987
11988 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11989 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11990 lists.
11991 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11992 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11993 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11994 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11995 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11996 (df_get_artificial_defs, df_get_artificial_uses)
11997 (df_single_def, df_single_use): Update accordingly.
11998 (df_refs_chain_dump): Take the first element in a linked list as
11999 parameter, rather than a pointer to an array of pointers.
12000 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12001 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12002 (df_chain_create_bb_process_use): Likewise.
12003 (df_md_bb_local_compute_process_def): Likewise.
12004 * fwprop.c (process_defs, process_uses): Likewise.
12005 (register_active_defs, update_uses): Likewise.
12006 (forward_propagate_asm): Update for new df_ref linking.
12007 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12008 (df_null_ref_rec, df_null_mw_rec): Likewise.
12009 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12010 explicitly.
12011 (df_scan_free_bb_info): Remove check for null artificial_defs.
12012 (df_install_ref_incremental): Adjust for new df_ref linking.
12013 Use a single-element insertion rather than a full sort.
12014 (df_ref_chain_delete_du_chain): Take the first element
12015 in a linked list as parameter, rather than a pointer to an array of
12016 pointers.
12017 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12018 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12019 (df_insn_info_delete): Remove check for null defs and call to
12020 df_scan_free_mws_vec.
12021 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12022 null rather than df_null_*_rec.
12023 (df_insn_rescan_debug_internal): Likewise, and update null
12024 checks in the same way. Remove check for null defs.
12025 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12026 Move a single element rather doing a full sort.
12027 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12028 linking.
12029 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12030 Initialize df_ref and df_mw_hardreg lists to null rather than
12031 df_null_*_rec.
12032 (df_ref_compare): Take df_refs as parameter, transferring the
12033 old interface to...
12034 (df_ref_ptr_compare): ...this new function.
12035 (df_sort_and_compress_refs): Update accordingly.
12036 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12037 old interface to...
12038 (df_mw_ptr_compare): ...this new function.
12039 (df_sort_and_compress_mws): Update accordingly.
12040 (df_install_refs, df_install_mws): Return a linked list rather than
12041 an array of pointers.
12042 (df_refs_add_to_chains): Assert that old lists are empty rather
12043 than freeing them.
12044 (df_insn_refs_verify): Don't handle null defs speciailly.
12045 * web.c (union_match_dups): Update for new df_ref linking.
12046
12047 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12048
12049 * df.h (df_ref_create, df_ref_remove): Delete.
12050 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12051 (df_ref_remove): Likewise.
12052
12053 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12054
12055 * df.h (df_single_def, df_single_use): New functions.
12056 * ira.c (find_moveable_pseudos): Use them.
12057
12058 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12059
12060 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12061 * df-problems.c (df_note_bb_compute): Use it.
12062 * regstat.c (regstat_bb_compute_ri): Likewise.
12063
12064 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12065
12066 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12067 * cse.c (cse_extended_basic_block): Use them.
12068 * dce.c (mark_artificial_use): Likewise.
12069 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12070 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12071 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12072 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12073 (df_simulate_initialize_backwards): Likewise.
12074 (df_simulate_finalize_backwards): Likewise.
12075 (df_simulate_initialize_forwards): Likewise.
12076 (df_md_simulate_artificial_defs_at_top): Likewise.
12077 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12078 * regrename.c (init_rename_info): Likewise.
12079 * regstat.c (regstat_bb_compute_ri): Likewise.
12080 (regstat_bb_compute_calls_crossed): Likewise.
12081
12082 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12083
12084 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12085 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12086 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12087 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12088 * combine.c (create_log_links): Likewise.
12089 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12090 (try_eliminate_compare): Likewise.
12091 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12092 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12093 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12094 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12095 (word_dce_process_block, dce_process_block): Likewise.
12096 * ddg.c (def_has_ccmode_p): Likewise.
12097 * df-core.c (df_bb_regno_first_def_find): Likewise.
12098 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12099 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12100 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12101 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12102 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12103 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12104 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12105 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12106 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12107 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12108 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12109 * fwprop.c (local_ref_killed_between_p): Likewise.
12110 (all_uses_available_at, free_load_extend): Likewise.
12111 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12112 * hw-doloop.c (scan_loop): Likewise.
12113 * ifcvt.c (dead_or_predicable): Likewise.
12114 * init-regs.c (initialize_uninitialized_regs): Likewise.
12115 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12116 (process_bb_node_lives): Likewise.
12117 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12118 (find_moveable_pseudos): Likewise.
12119 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12120 * recog.c (peep2_find_free_register): Likewise.
12121 * ree.c (get_defs): Likewise.
12122 * regstat.c (regstat_bb_compute_ri): Likewise.
12123 (regstat_bb_compute_calls_crossed): Likewise.
12124 * sched-deps.c (find_inc, find_mem): Likewise.
12125 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12126 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12127 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12128 (prepare_shrink_wrap): Likewise.
12129 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12130 * web.c (union_defs, pass_web::execute): Likewise.
12131 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12132 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12133
12134 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12135
12136 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12137 to inheritance pseudos.
12138 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12139
12140 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12141
12142 PR target/61415
12143 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12144 (BU_MISC_2): Rename to ...
12145 (BU_LDBL128_2): ... this.
12146 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12147 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12148 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12149 RS6000_BTM_LDBL128.
12150 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12151 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12152 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12153 (unpacktf_1): Likewise.
12154 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12155 (__builtin_longdouble_dw1): Likewise.
12156 * doc/sourcebuild.texi (longdouble128): Document.
12157
12158 2014-06-13 Jeff Law <law@redhat.com>
12159
12160 PR rtl-optimization/61094
12161 PR rtl-optimization/61446
12162 * ree.c (combine_reaching_defs): Get the mode for the copy from
12163 the extension insn rather than the defining insn.
12164
12165 2014-06-13 Dehao Chen <dehao@google.com>
12166
12167 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12168
12169 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12170
12171 * doc/install.texi (--enable-linker-plugin-configure-flags)
12172 (--enable-linker-plugin-flags): Document new flags.
12173
12174 2014-06-13 Martin Jambor <mjambor@suse.cz>
12175
12176 PR ipa/61186
12177 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12178 cache_token if returning early.
12179
12180 2014-06-13 Nick Clifton <nickc@redhat.com>
12181
12182 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12183 requested alignment is active.
12184 (LABEL_ALIGN): Likewise.
12185 (LOOP_ALIGN): Likewise.
12186
12187 2014-06-13 Richard Biener <rguenther@suse.de>
12188
12189 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12190 Rewrite to propagate the VN result into all uses where
12191 possible and to remove stmts becoming dead because of that.
12192 (eliminate): Generalize stmt removal handling, remove in
12193 reverse dominator order to support proper debug stmt
12194 generation. Update stmts before removing stmts.
12195 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12196
12197 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12198
12199 PR tree-optimization/61375
12200 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12201 symbolic number cannot be represented in an uint64_t.
12202 (find_bswap_or_nop_1): Likewise.
12203
12204 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12205
12206 * symtab.c (symtab_node::reset_section): New method.
12207 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12208 for localization.
12209 * cgraph.h (reset_section): Declare.
12210 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12211 do not consider comdat locals.
12212 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12213 for new symbol.
12214 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12215 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12216 reset sections of symbols dragged out of the comdats.
12217 (function_and_variable_visibility): Reset sections of
12218 localized symbols.
12219
12220 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12221
12222 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12223 to use symtab and decl_binds_to_current_def_p
12224 * tree-vectorizer.c (increase_alignment): Increase alignment
12225 of alias target, too.
12226
12227 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12228
12229 PR middle-end/61486
12230 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12231 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12232 if outer combined construct is distribute.
12233 (gimplify_omp_for): For OMP_DISTRIBUTE set
12234 gimplify_omp_ctxp->distribute.
12235 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12236 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12237 mapping into decl map.
12238
12239 2014-06-12 Jason Merrill <jason@redhat.com>
12240
12241 * common.opt (fabi-version): Change default to 0.
12242
12243 2014-06-12 Jason Merrill <jason@redhat.com>
12244
12245 * toplev.c (process_options): Reject -fabi-version=1.
12246
12247 2014-06-12 Jeff Law <law@redhat.com>
12248
12249 PR tree-optimization/61009
12250 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12251 value when we stop processing a block due to problematic PHIs.
12252
12253 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12254
12255 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12256 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12257 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12258 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12259 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12260 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12261 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12262 are not in the spec.
12263
12264 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12265
12266 PR target/59843
12267 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12268 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12269 Support V1DFmode.
12270
12271 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12272
12273 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12274
12275 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12276
12277 PR target/61443
12278 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12279 loading from address spaces.
12280
12281 2014-06-12 Martin Liska <mliska@suse.cz>
12282
12283 PR ipa/61462
12284 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12285 statement is reachable.
12286
12287 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12288
12289 * symtab.c (section_hash): New hash.
12290 (symtab_unregister_node): Clear section before freeing.
12291 (hash_section_hash_entry): New haser.
12292 (eq_sections): New function.
12293 (symtab_node::set_section_for_node): New method.
12294 (set_section_1): Update.
12295 (symtab_node::set_section): Take string instead of tree as parameter.
12296 (symtab_resolve_alias): Update.
12297 * cgraph.h (section_hash_entry_d): New structure.
12298 (section_hash_entry): New typedef.
12299 (cgraph_node): Change comdat_group_ to x_comdat_group,
12300 change section_ to x_section and turn into section_hash_entry;
12301 update accestors; put set_section_for_node offline.
12302 * tree.c (decl_section_name): Turn into string.
12303 (set_decl_section_name): Change parameter to be string.
12304 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12305 * sdbout.c (sdbout_one_type): Update.
12306 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12307 * varasm.c (IN_NAMED_SECTION, get_named_section,
12308 resolve_unique_section, hot_function_section, get_named_text_section,
12309 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12310 make_decl_rtl, default_unique_section): Update.
12311 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12312 (c6x_elf_unique_section): Update.
12313 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12314 * config/pa/pa.c (pa_function_section): Update.
12315 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12316 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12317 * config/arc/arc.c (arc_in_small_data_p): Update.
12318 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12319 * config/mcore/mcore.c (mcore_unique_section): Update.
12320 * config/mips/mips.c (mips16_build_function_stub): Update.
12321 (mips16_build_call_stub): Update.
12322 (mips_function_rodata_section): Update.
12323 (mips_in_small_data_p): Update.
12324 * config/score/score.c (score_in_small_data_p): Update.
12325 * config/rx/rx.c (rx_in_small_data): Update.
12326 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12327 (rs6000_xcoff_asm_named_section): Update.
12328 (rs6000_xcoff_unique_section): Update.
12329 * config/frv/frv.c (frv_string_begins_with): Update.
12330 (frv_in_small_data_p): Update.
12331 * config/v850/v850.c (v850_encode_data_area): Update.
12332 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12333 (bfin_handle_l1_data_attribute): Update.
12334 (bfin_handle_l2_attribute): Update.
12335 * config/mep/mep.c (mep_unique_section): Update.
12336 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12337 Update.
12338 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12339 (h8300_handle_tiny_data_attribute): Update.
12340 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12341 (m32r_in_small_data_p): Update.
12342 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12343 * config/i386/i386.c (ix86_in_large_data_p): Update.
12344 * config/i386/winnt.c (i386_pe_unique_section): Update.
12345 * config/darwin.c (darwin_function_section): Update.
12346 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12347 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12348 (new_emutls_decl): Update.
12349 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12350 input_varpool_node): Update.
12351 (ead_string_cst): Turn to ...
12352 (read_string): ... this one.
12353 * dwarf2out.c (secname_for_decl): Update.
12354 * asan.c (asan_protect_global): Update.
12355
12356 2014-06-11 DJ Delorie <dj@redhat.com>
12357
12358 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12359 cache lines.
12360 * config/rx/rx.c (rx_option_override): Likewise.
12361 (rx_align_for_label): Likewise.
12362
12363 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12364
12365 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12366
12367 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12368 prototype.
12369
12370 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12371
12372 * common.md: New file.
12373 * doc/md.texi: Update description of generic, machine-independent
12374 constraints.
12375 * config/s390/constraints.md (e): Delete.
12376 * Makefile.in (md_file): Include common.md.
12377 * config/m32c/t-m32c (md_file): Likewise.
12378 * genpreds.c (general_mem): New array.
12379 (generic_constraint_letters): Remove constraints now defined by
12380 common.md.
12381 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12382 Allow the first character to be '<' or '>' as well.
12383 * genoutput.c (general_mem): New array.
12384 (indep_constraints): Remove constraints now defined by common.md.
12385 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12386 Remove special handling of 'm'.
12387 * ira-costs.c (record_reg_classes): Remove special handling of
12388 constraints now defined by common.md.
12389 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12390 * ira-lives.c (single_reg_class): Likewise.
12391 (ira_implicitly_set_insn_hard_regs): Likewise.
12392 * lra-constraints.c (reg_class_from_constraints): Likewise.
12393 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12394 * postreload.c (reload_cse_simplify_operands): Likewise.
12395 * reload.c (push_secondary_reload, scratch_reload_class)
12396 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12397 * reload1.c (maybe_fix_stack_asms): Likewise.
12398 * targhooks.c (default_secondary_reload): Likewise.
12399 * stmt.c (parse_output_constraint): Likewise.
12400 * recog.c (preprocess_constraints): Likewise.
12401 (constrain_operands, peep2_find_free_register): Likewise.
12402 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12403 must be handled specially.
12404
12405 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12406
12407 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12408 * genpreds.c (have_const_dbl_constraints): Delete.
12409 (add_constraint): Don't set it.
12410 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12411 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12412 constraints using the lookup_constraint logic.
12413 * ira-lives.c (single_reg_class): Likewise.
12414 * ira.c (ira_setup_alts): Likewise.
12415 * lra-constraints.c (process_alt_operands): Likewise.
12416 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12417 * reload.c (find_reloads): Likewise.
12418
12419 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12420
12421 * genpreds.c (const_int_start, const_int_end): New variables.
12422 (choose_enum_order): Output CONST_INT constraints before memory
12423 constraints.
12424 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12425 Add CT_CONST_INT.
12426 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12427 * ira.c (ira_setup_alts): Likewise.
12428 * lra-constraints.c (process_alt_operands): Likewise.
12429 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12430 * reload.c (find_reloads): Likewise.
12431
12432 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12433
12434 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12435 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12436 * recog.c (preprocess_constraints): Update accordingly.
12437
12438 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12439
12440 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12441 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12442 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12443 * genpreds.c (print_type_tree): New function.
12444 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12445 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12446 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12447 Write out enum constraint_type and get_constraint_type.
12448 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12449 constraint_num rather than a constraint string.
12450 (satisfies_address_constraint_p): Likewise.
12451 (reg_class_from_constraints): Avoid old constraint macros.
12452 (process_alt_operands, process_address_1): Likewise.
12453 (curr_insn_transform): Likewise.
12454 * ira-costs.c (record_reg_classes): Likewise.
12455 (record_operand_costs): Likewise.
12456 * ira-lives.c (single_reg_class): Likewise.
12457 (ira_implicitly_set_insn_hard_regs): Likewise.
12458 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12459 * postreload.c (reload_cse_simplify_operands): Likewise.
12460 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12461 (constrain_operands, peep2_find_free_register): Likewise.
12462 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12463 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12464 * reload1.c (maybe_fix_stack_asms): Likewise.
12465 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12466 * targhooks.c (default_secondary_reload): Likewise.
12467 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12468 to EXTRA_CONSTRAINT_STR.
12469 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12470
12471 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12472
12473 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12474 (write_constraint_satisfied_p_array): ...this new function.
12475 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12476 an array.
12477 (write_insn_preds_c): Update accordingly.
12478
12479 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12480
12481 * genpreds.c (write_lookup_constraint): Rename to...
12482 (write_lookup_constraint_1): ...this.
12483 (write_lookup_constraint_array): New function.
12484 (write_tm_preds_h): Define lookup_constraint as an inline function
12485 that uses write_lookup_constraint_array where possible.
12486 (write_insn_preds_c): Update for the changes above.
12487
12488 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12489
12490 * doc/md.texi (regclass_for_constraint): Rename to...
12491 (reg_class_for_constraint): ...this.
12492 * genpreds.c (num_constraints, enum_order, register_start)
12493 (register_end, satisfied_start, memory_start, memory_end)
12494 (address_start, address_end): New variables.
12495 (add_constraint): Count the number of constraints.
12496 (choose_enum_order): New function.
12497 (write_enum_constraint_num): Iterate over enum_order.
12498 (write_regclass_for_constraint): Rename to...
12499 (write_reg_class_for_constraint_1): ...this and update output
12500 accordingly.
12501 (write_constraint_satisfied_p): Rename to...
12502 (write_constraint_satisfied_p_1): ...this and update output
12503 accordingly. Do nothing if all extra constraints are register
12504 constraints.
12505 (write_insn_extra_memory_constraint): Delete.
12506 (write_insn_extra_address_constraint): Delete.
12507 (write_range_function): New function.
12508 (write_tm_preds_h): Define constraint_satisfied_p and
12509 reg_class_for_constraint as inline functions that do a range check
12510 before calling the out-of-line function. Use write_range_function
12511 to implement insn_extra_{register,memory,address}_constraint,
12512 the first of which is new.
12513 (write_insn_preds_c): Update after above changes to write_* functions.
12514 (main): Call choose_enum_order.
12515
12516 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12517
12518 PR tree-optimization/61306
12519 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12520 expression instead of its size.
12521 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12522 false to prevent optimization when the result is unpredictable due to
12523 arithmetic right shift of signed type with highest byte is set.
12524 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12525 (init_symbolic_number): Likewise.
12526 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12527 when the result is unpredictable due to sign extension.
12528
12529 2014-06-11 Terry Guo <terry.guo@arm.com>
12530
12531 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12532 (*thumb1_addsi3): Ditto.
12533 (*thumb_subdi3): Ditto.
12534 (thumb1_subsi3_insn): Ditto.
12535 (*thumb_mulsi3): Ditto.
12536 (*thumb_mulsi3_v6): Ditto.
12537 (*thumb1_andsi3_insn): Ditto.
12538 (thumb1_bicsi3): Ditto.
12539 (*thumb1_iorsi3_insn): Ditto.
12540 (*thumb1_xorsi3_insn): Ditto.
12541 (*thumb1_ashlsi3): Ditto.
12542 (*thumb1_ashrsi3): Ditto.
12543 (*thumb1_lshrsi3): Ditto.
12544 (*thumb1_rotrsi3): Ditto.
12545 (*thumb1_negdi2): Ditto.
12546 (*thumb1_negsi2): Ditto.
12547 (*thumb1_abssi2): Ditto.
12548 (*thumb1_neg_abssi2): Ditto.
12549 (*thumb1_one_cmplsi2): Ditto.
12550 (*thumb1_zero_extendhisi2): Ditto.
12551 (*thumb1_zero_extendqisi2): Ditto.
12552 (*thumb1_zero_extendqisi2_v6): Ditto.
12553 (thumb1_extendhisi2): Ditto.
12554 (thumb1_extendqisi2): Ditto.
12555 (*thumb1_movdi_insn): Ditto.
12556 (*thumb1_movsi_insn): Ditto.
12557 (*thumb1_movhi_insn): Ditto.
12558 (thumb_movhi_clobber): Ditto.
12559 (*thumb1_movqi_insn): Ditto.
12560 (*thumb1_movhf): Ditto.
12561 (*thumb1_movsf_insn): Ditto.
12562 (*thumb_movdf_insn): Ditto.
12563 (movmem12b): Ditto.
12564 (movmem8b): Ditto.
12565 (cbranchqi4): Ditto.
12566 (cbranchsi4_insn): Ditto.
12567 (cbranchsi4_scratch): Ditto.
12568 (*negated_cbranchsi4): Ditto.
12569 (*tbit_cbranch): Ditto.
12570 (*tlobits_cbranch): Ditto.
12571 (*tstsi3_cbranch): Ditto.
12572 (*cbranchne_decr1): Ditto.
12573 (*addsi3_cbranch): Ditto.
12574 (*addsi3_cbranch_scratch): Ditto.
12575 (*thumb_cmpdi_zero): Ditto.
12576 (cstoresi_eq0_thumb1): Ditto.
12577 (cstoresi_ne0_thumb1): Ditto.
12578 (*cstoresi_eq0_thumb1_insn): Ditto.
12579 (*cstoresi_ne0_thumb1_insn): Ditto.
12580 (cstoresi_nltu_thumb1): Ditto.
12581 (cstoresi_ltu_thumb1): Ditto.
12582 (thumb1_addsi3_addgeu): Ditto.
12583 (*thumb_jump): Ditto.
12584 (*call_reg_thumb1_v5): Ditto.
12585 (*call_reg_thumb1): Ditto.
12586 (*call_value_reg_thumb1_v5): Ditto.
12587 (*call_value_reg_thumb1): Ditto.
12588 (*call_insn): Ditto.
12589 (*call_value_insn): Ditto.
12590 (thumb1_casesi_internal_pic): Ditto.
12591 (thumb1_casesi_dispatch): Ditto.
12592 (*thumb1_indirect_jump): Ditto.
12593 (prologue_thumb1_interwork): Ditto.
12594 (*epilogue_insns): Ditto.
12595 (consttable_1): Ditto.
12596 (consttable_2): Ditto.
12597 (tablejump): Ditto.
12598 (*thumb1_tablejump): Ditto.
12599 (thumb_eh_return): Ditto.
12600 (define_peephole2): Two of them are thumb1 only and got moved into
12601 new file thumb1.md.
12602 (define_split): Six of them are thumb1 only and got moved into new
12603 file thumb1.md.
12604 * config/arm/thumb1.md: New file comprised of above thumb1 only
12605 patterns.
12606
12607 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12608
12609 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12610 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12611 dependencies.
12612 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12613 (aarch64_crc_builtin_datum): New struct.
12614 (aarch64_crc_builtin_data): New.
12615 (aarch64_init_crc32_builtins): New function.
12616 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12617 (aarch64_crc32_expand_builtin): New.
12618 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12619 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12620 __ARM_FEATURE_CRC32 when appropriate.
12621 (TARGET_CRC32): Define.
12622 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12623 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12624 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12625 (aarch64_<crc_variant>): New pattern.
12626 * config/aarch64/arm_acle.h: New file.
12627 * config/aarch64/iterators.md (CRC): New int iterator.
12628 (crc_variant, crc_mode): New int attributes.
12629 * doc/aarch64-acle-intrinsics.texi: New file.
12630 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12631 Include aarch64-acle-intrinsics.texi.
12632
12633 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12634
12635 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12636 check for stores group of length 3.
12637 (vect_permute_store_chain): New permutations for stores group of
12638 length 3.
12639 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12640 of vec_perm_shuffle for the new permutations.
12641
12642 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12643
12644 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12645 table rewriting temporarily on targets not supporting ONE_ONLY.
12646
12647 2014-06-11 Richard Biener <rguenther@suse.de>
12648
12649 PR middle-end/61437
12650 Revert
12651 2014-06-04 Richard Biener <rguenther@suse.de>
12652
12653 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12654 TREE_PUBLIC and DECL_EXTERNAL decls.
12655
12656 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12657
12658 * varasm.c (set_implicit_section): New function.
12659 (resolve_unique_section): Use it to set implicit section
12660 for aliases, too.
12661 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12662 (default_function_section): Likewise.
12663 (decl_binds_to_current_def_p): Constify argument.
12664 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12665 * asan.c (asan_protect_global): Use
12666 symtab_get_node (decl)->implicit_section.
12667 * symtab.c (dump_symtab_base): Dump implicit sections.
12668 (verify_symtab_base): Verify sanity of sectoins and comdats.
12669 (symtab_resolve_alias): Alias share the section of its target.
12670 (set_section_1): New function.
12671 (symtab_node::set_section): Move here, recurse to aliases.
12672 (verify_symtab): Check for duplicated symtab lists.
12673 * tree-core.h (implicit_section_name_p): Remove.
12674 * tree-vect-data-refs.c: Include varasm.h.
12675 (vect_can_force_dr_alignment_p): Fix conditional on when
12676 decl bints to current definition; use
12677 symtab_get_node (decl)->implicit_section.
12678 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12679 * cgraph.h (struct symtab_node): Add implicit_section.
12680 (set_section): Rename to ...
12681 (set_section_for_node): ... this one.
12682 (set_section): Declare.
12683 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12684 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12685 input_overwrite_node, input_varpool_node): Stream implicit_section.
12686 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12687 removal; it will fail in LTO.
12688
12689 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12690
12691 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12692 Change second alternative type to f_mcr.
12693 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12694 and 12th alternatives' types to f_mcr and f_mrc.
12695 (*movdi_aarch64): Same for 12th and 13th alternatives.
12696 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12697 (aarch64_movtilow_tilow): Change type to fmov.
12698
12699 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12700
12701 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12702 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12703
12704 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12705
12706 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12707 New expander.
12708 (aarch64_sqrdmulh_lane<mode>): Likewise.
12709 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12710 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12711 (aarch64_sqdmulh_laneq<mode>): New expander.
12712 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12713 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12714 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12715 (aarch64_sqdmulh_lane<mode>): New expander.
12716 (aarch64_sqrdmulh_lane<mode>): Likewise.
12717 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12718 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12719 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12720 (aarch64_sqdmlal_laneq<mode>): Likewise.
12721 (aarch64_sqdmlsl_lane<mode>): Likewise.
12722 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12723 (aarch64_sqdmlal2_lane<mode>): Likewise.
12724 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12725 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12726 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12727 (aarch64_sqdmull_lane<mode>): Likewise.
12728 (aarch64_sqdmull_laneq<mode>): Likewise.
12729 (aarch64_sqdmull2_lane<mode>): Likewise.
12730 (aarch64_sqdmull2_laneq<mode>): Likewise.
12731
12732 2014-06-10 Richard Biener <rguenther@suse.de>
12733
12734 PR tree-optimization/61438
12735 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12736 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12737 insertion of IVs if running PRE.
12738 (eliminate): Adjust.
12739 (pass_pre::execute): Likewise.
12740 (pass_fre::execute): Likewise.
12741
12742 2014-06-10 Richard Biener <rguenther@suse.de>
12743
12744 PR middle-end/61456
12745 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12746 Do not use the main variant for the type comparison.
12747 (ncr_compar): Likewise.
12748 (nonoverlapping_component_refs_p): Likewise.
12749
12750 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12751
12752 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12753 REG_CFA_RESTORE mode.
12754
12755 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12756
12757 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12758 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12759 expand_vec_perm_pblendv.
12760
12761 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12762
12763 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12764 available.
12765 Simplify description of __crc32d and __crc32cd intrinsics.
12766 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12767 availability.
12768
12769 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12770
12771 PR lto/61334
12772 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12773 * config.in: Regenerate.
12774 * configure: Likewise.
12775
12776 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12777
12778 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12779 and public vars.
12780 (intersect_static_var_sets): Remove.
12781 (propagate): Do not prune local statics.
12782
12783 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12784
12785 PR fortran/60928
12786 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12787 Set lastprivate_firstprivate even if omp_private_outer_ref
12788 langhook returns true.
12789 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12790 langhook, call unshare_expr on new_var and call
12791 build_outer_var_ref to get the last argument.
12792
12793 2014-06-10 Marek Polacek <polacek@redhat.com>
12794
12795 PR c/60988
12796 * doc/extend.texi: Add cindex for transparent_union.
12797
12798 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12799
12800 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12801 init_symbolic_number ().
12802
12803 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12804
12805 PR middle-end/61141
12806 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12807 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12808 (verify_rtl_sharing): Likewise.
12809
12810 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12811
12812 PR c++/54442
12813 * tree.c (build_qualified_type): Use a canonical type for
12814 TYPE_CANONICAL.
12815
12816 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12817
12818 * config/arm/arm-modes.def: Remove XFmode.
12819
12820 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12821
12822 PR target/61062
12823 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12824 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12825 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12826 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12827 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12828 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12829 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12830 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12831 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12832
12833 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12834
12835 * tree-core.h (tree_decl_with_vis): Remove section_name.
12836
12837 2014-06-09 Kito Cheng <kito@0xlab.org>
12838
12839 * ira.c (ira): Don't call init_caller_save if LRA enabled
12840 since LRA use its own infrastructure to handle that.
12841
12842 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12843
12844 * symtab.c (dump_symtab_base): Update dumping.
12845 (symtab_make_decl_local): Clear only DECL_COMDAT.
12846 * tree-vect-data-refs.c (Check that variable is static before
12847 tampering with sections.
12848 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12849 (cgraph_create_virtual_clone): Likewise.
12850 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12851 (decl_section_name, set_decl_section_name): New accessors.
12852 (find_decls_types_r): Do not walk section name
12853 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12854 (decl_comdat_group, decl_comdat_group_id): Constify.
12855 (decl_section_name, set_decl_section_name): Update.
12856 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12857 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12858 (cgraph_make_node_local_1): Clear section and comdat group.
12859 * cgraph.h (set_comdat_group): Sanity check.
12860 (get_section, set_section): New.
12861 * ipa-comdats.c (ipa_comdats): Use get_section.
12862 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12863 * lto-streamer-out.c: Do not follow section names.
12864 * c-family/c-common.c (handle_section_attribute): Update.
12865 * lto-cgraph.c (lto_output_node): Output section.
12866 (lto_output_varpool_node): Likewise.
12867 (read_comdat_group): Rename to ...
12868 (read_identifier): ... this one.
12869 (read_string_cst): New function.
12870 (input_node, input_varpool_node): Input section names.
12871 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12872 (new_emutls_decl): Update.
12873 (secname_for_decl): Check section names only of static vars.
12874 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12875 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12876 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12877 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12878 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12879 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12880 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12881 * config/v850/v850.c (v850_insert_attributes): Likewise.
12882 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12883 Likewise.
12884 (h8300_handle_tiny_data_attribute): Likewise.
12885 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12886 (bfin_handle_l2_attribute): Likewise.
12887
12888 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12889
12890 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12891 remove static initializer.
12892
12893 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12894
12895 * varasm.c (use_blocks_for_decl_p): Check symbol table
12896 instead of alias attribute.
12897 (place_block_symbol): Recurse on aliases.
12898
12899 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12900
12901 * ipa-visibility.c: Include varasm.h
12902 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12903
12904 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12905
12906 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12907 outputting aliases.
12908
12909 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12910
12911 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12912 from test_insn into GGC space escape via SET_SRC.
12913
12914 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12915
12916 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12917 call statement, if any.
12918 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12919 statements, if any. Tidy up.
12920
12921 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12922
12923 PR target/61431
12924 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12925 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12926 handles swapping the two 64-bit double words on little endian
12927 systems. Include V1TImode and optionally TImode in VSX_LE so that
12928 these types are properly swapped. Change all of the insns and
12929 splits that do the 64-bit swaps to use VSX_LE.
12930 (vsx_le_perm_load_<mode>): Likewise.
12931 (vsx_le_perm_store_<mode>): Likewise.
12932 (splitters for little endian memory operations): Likewise.
12933 (vsx_xxpermdi2_le_<mode>): Likewise.
12934 (vsx_lxvd2x2_le_<mode>): Likewise.
12935 (vsx_stxvd2x2_le_<mode>): Likewise.
12936
12937 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12938
12939 PR target/61423
12940 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12941 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12942 and corresponding splitters. Zero extend general register
12943 or memory input operand to XMM temporary. Enable for
12944 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12945 (floatunssi<mode>2): Update expander predicate.
12946
12947 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12948
12949 PR rtl-optimization/61325
12950 * lra-constraints.c (process_address_1): Check scale equal to one
12951 to prevent transformation: base + scale * index => base + new_reg.
12952
12953 2014-06-06 Richard Biener <rguenther@suse.de>
12954
12955 PR tree-optimization/59299
12956 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12957 a def operand.
12958 (nearest_common_dominator_of_uses): Likewise.
12959 (statement_sink_location): Adjust. Support sinking loads.
12960
12961 2014-06-06 Martin Jambor <mjambor@suse.cz>
12962
12963 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12964 (build_agg_jump_func_from_list): Likewise.
12965 (determine_known_aggregate_parts): Renamed to
12966 determine_locally_known_aggregate_parts. Moved some functionality
12967 to the two functions above, removed bound checks.
12968
12969 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12970
12971 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12972 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12973 (aarch64_progress_pointer): Likewise.
12974 (aarch64_copy_one_part_and_move_pointers): Likewise.
12975 (aarch64_expand_movmen): Likewise.
12976 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12977 * config/aarch64/aarch64.md (movmem<mode>): New.
12978
12979 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12980
12981 * targhooks.c (default_add_stmt_cost): Call target specific
12982 hook instead of default one.
12983
12984 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12985
12986 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12987 endianness instead of host endianness.
12988 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12989 comments.
12990
12991 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12992
12993 PR debug/53927
12994 * function.c (instantiate_decls): Process the saved static chain.
12995 (expand_function_start): If not optimizing, save the static chain
12996 onto the stack.
12997 * tree-nested.c (convert_all_function_calls): Always create the static
12998 chain for nested functions if not optimizing.
12999
13000 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13001
13002 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13003
13004 2014-06-06 Richard Biener <rguenther@suse.de>
13005
13006 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13007 (construct_init_block): Likewise.
13008 (construct_exit_block): Likewise.
13009 (pass_expand::execute): Likewise.
13010 * graphite.c (graphite_transforms): Replace check for current_loops
13011 with a check for > 1 loops.
13012 (pass_graphite_transforms::execute): Adjust.
13013 * ipa-split.c (split_function): Remove check for current_loops.
13014 * omp-low.c (expand_parallel_call): Likewise.
13015 (expand_omp_for_init_counts): Likewise.
13016 (extract_omp_for_update_vars): Likewise.
13017 (expand_omp_for_generic): Likewise.
13018 (expand_omp_sections): Likewise.
13019 (expand_omp_target): Likewise.
13020 * tracer.c (tail_duplicate): Likewise.
13021 (pass_tracer::execute): Likewise.
13022 * trans-mem.c (expand_transaction): Likewise.
13023 * tree-complex.c (expand_complex_div_wide): Likewise.
13024 * tree-eh.c (lower_resx): Likewise.
13025 (cleanup_empty_eh_merge_phis): Likewise.
13026 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13027 current_loops with a check for > 1 loops.
13028 (pass_predcom::execute): Adjust.
13029 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13030 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13031 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13032 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13033 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13034 * tree-switch-conversion.c (process_switch): Likewise.
13035 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13036 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13037 (execute_vrp): Likewise.
13038 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13039
13040 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13041
13042 * rtl.h (insn_location): Declare.
13043 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13044 with UNKNOWN_LOCATION.
13045 * emit-rtl.c (insn_location): New function.
13046 * final.c (notice_source_line): Check that the instruction has a
13047 location before retrieving it and use insn_location.
13048 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13049 * print-rtl.c (print_rtx): Likewise.
13050
13051 2014-06-06 Richard Biener <rguenther@suse.de>
13052
13053 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13054
13055 2014-06-06 Christian Bruel <christian.bruel@st.com>
13056
13057 PR tree-optimization/43934
13058 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13059 cost.
13060
13061 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13062
13063 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13064 return NO_REGS for extra address and memory constraints. Handle
13065 operands that match (or are equivalent to something that matches)
13066 extra constant constraints. Ignore other non-register operands.
13067
13068 2014-06-06 Alan Modra <amodra@gmail.com>
13069
13070 PR target/61300
13071 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13072 * doc/tm.texi: Regenerate.
13073 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13074 Use throughout in place of REG_PARM_STACK_SPACE.
13075 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13076 "incoming" param. Pass to rs6000_function_parms_need_stack.
13077 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13078 prototype_p when incoming. Use function decl when incoming
13079 to handle K&R style functions.
13080 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13081 (INCOMING_REG_PARM_STACK_SPACE): Define.
13082
13083 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13084
13085 PR target/52472
13086 * cfgexpand.c (expand_debug_expr): Use address space of nested
13087 TREE_TYPE for ADDR_EXPR and MEM_REF.
13088
13089 2014-06-05 Jeff Law <law@redhat.com>
13090
13091 PR tree-optimization/61289
13092 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13093 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13094 looking for those which match LHS. All callers changed.
13095 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13096 parameters and code which manipulated them. All callers changed.
13097 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13098 and DST_MAP parameters. Simplify invalidation code by just calling
13099 invalidate_equivalences. All callers changed.
13100 (thread_across_edge): Simplify now that we don't need to maintain
13101 the map of equivalences to invalidate.
13102
13103 2014-06-05 Kai Tietz <ktietz@redhat.com>
13104 Richard Henderson <rth@redhat.com>
13105
13106 PR target/46219
13107 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13108 checking for !TARGET_X32.
13109 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13110 (sibcall_intern): New define_insn, plus required peepholes.
13111 (sibcall_pop_intern): Likewise.
13112 (sibcall_value_intern): Likewise.
13113 (sibcall_value_pop_intern): Likewise.
13114
13115 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13116
13117 * tree-inline.c (tree_function_versioning): Check DF info existence
13118 before accessing it.
13119
13120 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13121
13122 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13123 frame_size.
13124 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13125 aarch64_frame hard_fp_offset and frame_size.
13126 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13127 frame_size; remove original_frame_size.
13128 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13129 (aarch64_initial_elimination_offset): Remove frame_size and
13130 offset. Use aarch64_frame frame_size.
13131
13132 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13133 Jiong Wang <jiong.wang@arm.com>
13134 Renlin <renlin.li@arm.com>
13135
13136 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13137 initialization of R30 offset. Update offset. Iterate core
13138 regisers upto X30. Remove X29, X30 specific code.
13139
13140 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13141 Jiong Wang <jiong.wang@arm.com>
13142
13143 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13144 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13145 (aarch64_register_saved_on_entry): Adjust test.
13146
13147 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13148
13149 * config/aarch64/aarch64.h (machine_function): Move
13150 saved_varargs_size from here...
13151 (aarch64_frame): ... to here.
13152
13153 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13154 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13155 (aarch64_initial_elimination_offset)
13156 (aarch64_setup_incoming_varargs): Adjust location of
13157 saved_varargs_size.
13158
13159 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13160
13161 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13162 layout comment.
13163
13164 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13165 Prachi Godbole <Prachi.Godbole@imgtec.com>
13166
13167 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13168 mips32r5 entry to use PROCESSOR_P5600.
13169 * config/mips/mips-tables.opt: Regenerate.
13170 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13171 * config/mips/mips.c (mips_fmadd_bypass): New function.
13172 (mips_rtx_cost_data): Add costs for p5600.
13173 (mips_issue_rate): Add support for p5600.
13174 (mips_multipass_dfa_lookahead): Likewise.
13175 * config/mips/mips.h (TUNE_P5600): New define.
13176 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13177 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13178 * config/mips/mips.md: Include p5600.md.
13179 (processor): Add p5600.
13180 * config/mips/p5600.md: New file.
13181
13182 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13183
13184 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13185 * config/i386/predicates.md (palignr_operand): New.
13186 Indicates if permutation is suitable for palignr instruction.
13187
13188 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13189
13190 PR tree-optimization/61319
13191 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13192 stmt belongs to loop.
13193
13194 2014-06-05 Richard Biener <rguenther@suse.de>
13195
13196 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13197 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13198 (lookup_tmp_var): Adjust.
13199 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13200
13201 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13202
13203 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13204
13205 2014-06-05 Marek Polacek <polacek@redhat.com>
13206
13207 PR c/49706
13208 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13209
13210 2014-06-04 Tom de Vries <tom@codesourcery.com>
13211
13212 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13213 CONST_INT.
13214
13215 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13216
13217 PR tree-optimization/61385
13218 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13219
13220 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13221
13222 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13223 changed to use fatal_error.
13224 (main): Ensure lto_wrapper_cleanup is run atexit.
13225
13226 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13227
13228 * lra-constraints.c (valid_address_p): Move earlier in file.
13229 (address_eliminator): New structure.
13230 (satisfies_memory_constraint_p): New function.
13231 (satisfies_address_constraint_p): Likewise.
13232 (process_alt_operands, process_address, curr_insn_transform): Use them.
13233
13234 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13235
13236 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13237 const pointer.
13238 (target_lra_int, default_target_lra_int, this_target_lra_int)
13239 (op_alt_data): Delete.
13240 * lra.h (lra_init): Delete.
13241 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13242 (init_insn_code_data_once): Remove op_alt_data handling.
13243 (finish_insn_code_data_once): Likewise.
13244 (init_op_alt_data): Delete.
13245 (get_static_insn_data): Initialize operand_alternative to null.
13246 (free_insn_recog_data): Cast operand_alternative before freeing it.
13247 (setup_operand_alternative): Take the operand_alternative as
13248 parameter and assume it isn't already cached in the static
13249 insn data.
13250 (lra_set_insn_recog_data): Update accordingly.
13251 (lra_init): Delete.
13252 * ira.c (ira_init): Don't call lra_init.
13253 * target-globals.h (this_target_lra_int): Declare.
13254 (target_globals): Remove lra_int.
13255 (restore_target_globals): Update accordingly.
13256 * target-globals.c: Don't include lra-int.h.
13257 (default_target_globals, save_target_globals): Remove lra_int.
13258
13259 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13260
13261 * recog.h (operand_alternative): Convert reg_class, reject,
13262 matched and matches into bitfields.
13263 (preprocess_constraints): New overload.
13264 (preprocess_insn_constraints): New function.
13265 (preprocess_constraints): Take the insn as parameter.
13266 (recog_op_alt): Change into a pointer.
13267 (target_recog): Add x_op_alt.
13268 * recog.c (asm_op_alt): New variable.
13269 (recog_op_alt): Change into a pointer.
13270 (preprocess_constraints): New overload, replacing the old function
13271 definition with one that doesn't use global state.
13272 (preprocess_insn_constraints): New function.
13273 (preprocess_constraints): Use them. Take the insn as parameter.
13274 Use asm_op_alt for asms.
13275 (recog_init): Free existing x_op_alt entries.
13276 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13277 pointer const.
13278 (make_early_clobber_and_input_conflicts): Likewise.
13279 (process_bb_node_lives): Pass the insn to process_constraints.
13280 * reg-stack.c (check_asm_stack_operands): Likewise.
13281 (subst_asm_stack_regs): Likewise.
13282 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13283 * regrename.c (build_def_use): Likewise.
13284 * sched-deps.c (sched_analyze_insn): Likewise.
13285 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13286 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13287 (note_invalid_constants): Likewise.
13288 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13289 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13290 const.
13291
13292 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13293
13294 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13295 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13296 alternatives.
13297 (make_early_clobber_and_input_conflicts): Likewise.
13298 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13299
13300 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13301
13302 * recog.h (alternative_class): New function.
13303 (which_op_alt): Return a const recog_op_alt.
13304 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13305 (subst_asm_stack_regs): Likewise.
13306 * config/arm/arm.c (note_invalid_constants): Likewise.
13307 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13308 the operand_alternative; use alternative class instead.
13309 * sel-sched.c (get_reg_class): Likewise.
13310 * regrename.c (build_def_use): Likewise.
13311 (hide_operands, restore_operands, record_out_operands): Update type
13312 accordingly.
13313
13314 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13315
13316 * recog.h (recog_op_alt): Convert to a flat array.
13317 (which_op_alt): New function.
13318 * recog.c (recog_op_alt): Convert to a flat array.
13319 (preprocess_constraints): Update accordingly, grouping all
13320 operands of the same alternative together, rather than the
13321 other way around.
13322 * ira-lives.c (check_and_make_def_conflict): Likewise.
13323 (make_early_clobber_and_input_conflicts): Likewise.
13324 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13325 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13326 (subst_asm_stack_regs): Likewise.
13327 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13328 * regrename.c (hide_operands, record_out_operands): Likewise.
13329 (build_def_use): Likewise.
13330 * sel-sched.c (get_reg_class): Likewise.
13331 * config/arm/arm.c (note_invalid_constants): Likewise.
13332
13333 2014-06-04 Jason Merrill <jason@redhat.com>
13334
13335 PR c++/51253
13336 PR c++/61382
13337 * gimplify.c (gimplify_arg): Non-static.
13338 * gimplify.h: Declare it.
13339
13340 2014-06-04 Richard Biener <rguenther@suse.de>
13341
13342 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13343 TREE_PUBLIC and DECL_EXTERNAL decls.
13344
13345 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13346
13347 * regcprop.c (copyprop_hardreg_forward_1): Account for
13348 HARD_REGNO_CALL_PART_CLOBBERED.
13349
13350 2014-06-04 Richard Biener <rguenther@suse.de>
13351
13352 * configure.ac: Check whether the underlying type of int64_t
13353 is long or long long.
13354 * configure: Regenerate.
13355 * config.in: Likewise.
13356 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13357 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13358
13359 2014-06-04 Richard Biener <rguenther@suse.de>
13360
13361 PR tree-optimization/60098
13362 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13363 we hit a kill.
13364 (dse_optimize_stmt): Simplify, now that we found a kill
13365 earlier.
13366
13367 2014-06-04 Richard Biener <rguenther@suse.de>
13368
13369 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13370 of accesses with non-invariant address.
13371
13372 2014-06-04 Martin Liska <mliska@suse.cz>
13373
13374 * cgraph.h (cgraph_make_wrapper): New function introduced.
13375 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13376 * ipa-inline.h (inline_analyze_function): The function is global.
13377 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13378
13379 2014-06-04 Martin Liska <mliska@suse.cz>
13380
13381 * tree.h (private_lookup_attribute_starting): New function.
13382 (lookup_attribute_starting): Likewise.
13383 * tree.c (private_lookup_attribute_starting): Likewise.
13384
13385 2014-06-04 Martin Liska <mliska@suse.cz>
13386
13387 * cgraph.h (expand_thunk): New argument added.
13388 (address_taken_from_non_vtable_p): New global function.
13389 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13390 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13391 * cgraphunit.c (analyze_function): Likewise.
13392 (assemble_thunks_and_aliases): Argument added to call.
13393 (expand_thunk): New argument forces to produce GIMPLE thunk.
13394
13395 2014-06-04 Martin Liska <mliska@suse.cz>
13396
13397 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13398 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13399 * profile.c (branch_prob): Likewise.
13400
13401 2014-06-04 Martin Jambor <mjambor@suse.cz>
13402
13403 PR ipa/61340
13404 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13405 handler for switch on an ipa_ref_use enum.
13406 * ipa-reference.c (analyze_function): Likewise.
13407
13408 2014-06-04 Kai Tietz <ktietz@redhat.com>
13409
13410 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13411 from old call-instruction.
13412
13413 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13414
13415 * config/aarch64/aarch64.c (aarch64_classify_address)
13416 (aarch64_legitimize_reload_address): Support full addressing modes
13417 for vector modes.
13418 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13419 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13420
13421 2014-06-03 Andrew Pinski <apinski@cavium.com>
13422
13423 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13424 for OP0.
13425
13426 2014-06-03 Andrew Pinski <apinski@cavium.com>
13427
13428 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13429 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13430
13431 2014-06-03 Kai Tietz <ktietz@redhat.com>
13432
13433 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13434 for 64-bit ms-abi.
13435
13436 2014-06-03 Dehao Chen <dehao@google.com>
13437
13438 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13439 the same loop.
13440
13441 2014-06-03 Marek Polacek <polacek@redhat.com>
13442
13443 PR c/60439
13444 * doc/invoke.texi: Document -Wswitch-bool.
13445 * function.c (stack_protect_epilogue): Cast controlling expression of
13446 the switch to int.
13447 * gengtype.c (walk_type): Generate switch expression with its
13448 controlling expression cast to int.
13449
13450 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13451
13452 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13453 and attiny841.
13454 * config/avr/avr-tables.opt: Regenerate.
13455 * config/avr/t-multilib: Regenerate.
13456 * doc/avr-mmcu.texi: Regenerate.
13457
13458 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13459 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13460
13461 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13462 (ata6617c, ata664251): Add new avr35 devices.
13463 (ata6612c): Add new avr4 device.
13464 (ata6613c, ata6614q): Add new avr5 devices.
13465 * config/avr/avr-tables.opt: Regenerate.
13466 * config/avr/t-multilib: Regenerate.
13467 * doc/avr-mmcu.texi: Regenerate.
13468
13469 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13470
13471 * gcc/config/aarch64/aarch64-builtins.c
13472 (aarch64_types_binop_ssu_qualifiers): New static data.
13473 (TYPES_BINOP_SSU): Define.
13474 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13475 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13476 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13477 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13478 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13479 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13480 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13481 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13482 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13483 suffix to builtin function name, remove cast.
13484 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13485 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13486 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13487
13488 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13489
13490 * gcc/config/aarch64/aarch64-builtins.c
13491 (aarch64_types_binop_uus_qualifiers,
13492 aarch64_types_shift_to_unsigned_qualifiers,
13493 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13494 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13495 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13496 sqshlu_n, uqshl_n): Update qualifiers.
13497 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13498 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13499 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13500 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13501 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13502 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13503 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13504 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13505 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13506 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13507 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13508 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13509 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13510 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13511 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13512 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13513 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13514 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13515 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13516 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13517 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13518 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13519 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13520 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13521 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13522 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13523 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13524
13525 2014-06-03 Teresa Johnson <tejohnson@google.com>
13526
13527 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13528
13529 2014-06-02 Jason Merrill <jason@redhat.com>
13530
13531 PR c++/61020
13532 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13533
13534 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13535
13536 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13537 location == 0.
13538
13539 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13540
13541 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13542 New pattern.
13543 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13544 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13545 * config/aarch64/iterators.md (REVERSE): New iterator.
13546 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13547 (rev_op): New int_attribute.
13548 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13549 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13550 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13551 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13552 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13553 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13554 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13555 Replace temporary __asm__ with __builtin_shuffle.
13556
13557 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13558
13559 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13560 mips64r5.
13561 * config/mips/mips-tables.opt: Regenerate.
13562 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13563 to use mips_isa_rev rather than ISA_MIPS32R2.
13564 * config/mips/mips.h (ISA_MIPS32R3): New define.
13565 (ISA_MIPS32R5): New define.
13566 (ISA_MIPS64R3): New define.
13567 (ISA_MIPS64R5): New define.
13568 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13569 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13570 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13571 and mips64r5.
13572 (MIPS_ISA_SYNCI_SPEC): Likewise.
13573 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13574 (LINK_SPEC): Added mips32r3 and mips32r5.
13575 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13576 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13577 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13578 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13579 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13580 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13581 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13582
13583 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13584
13585 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13586 options.
13587 * config/mips/mips.opt (mxpa): New option.
13588 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13589 assembler.
13590
13591 2014-06-03 Martin Jambor <mjambor@suse.cz>
13592
13593 PR ipa/61160
13594 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13595 thunks.
13596
13597 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13598
13599 PR tree-optimization/61328
13600 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13601 initialization from find_bswap_or_nop_1.
13602 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13603 in source_expr2 before using the size value the function sets. Also
13604 make use of init_symbolic_number () in both the old place and
13605 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13606 doing recursion in the GIMPLE_BINARY_RHS case.
13607
13608 2014-06-03 Richard Biener <rguenther@suse.de>
13609
13610 PR tree-optimization/61383
13611 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13612 stmts can't trap.
13613
13614 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13615
13616 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13617 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13618 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13619 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13620 in this file.
13621 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13622 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13623 * system.h: ...here and make it unconditional.
13624 * target.def (conditional_register_usage): Mention
13625 define_register_constraint instead of old-style constraint macros.
13626 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13627 * doc/tm.texi: Regenerate.
13628 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13629 protected by !USE_MD_CONSTRAINTS.
13630 * config/frv/frv.md: Remove quote from old version of documentation.
13631 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13632 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13633 CONST_DOUBLE_OK_FOR_LETTER.
13634 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13635
13636 2014-06-02 Andrew Pinski <apinski@cavium.com>
13637
13638 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13639 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13640 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13641 file whose name depends on -mabi= and -mbig-endian.
13642 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13643 Handle LP64 better and handle ilp32 too.
13644 (MULTILIB_OPTIONS): Delete.
13645 (MULTILIB_DIRNAMES): Delete.
13646
13647 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13648
13649 * expr.h: Remove prototypes of functions defined in builtins.c.
13650 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13651 Remove prototypes of functions defined in builtins.c.
13652 * builtins.h: Update prototype list to include all exported functions.
13653 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13654 no_c99_libc_has_function): Move to targhooks.c
13655 (build_string_literal, build_call_expr_loc_array,
13656 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13657 to tree.c.
13658 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13659 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13660 no_c99_libc_has_function): Relocate from builtins.c.
13661 * tree.c: Include builtins.h.
13662 (build_call_expr_loc_array, build_call_expr_loc_vec,
13663 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13664 from builtins.c.
13665 * fold-const.h (fold_fma): Move prototype to builtins.h.
13666 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13667 * asan.c: Include builtins.h.
13668 * cfgexpand.c: Likewise.
13669 * convert.c: Likewise.
13670 * emit-rtl.c: Likewise.
13671 * except.c: Likewise.
13672 * expr.c: Likewise.
13673 * fold-const.c: Likewise.
13674 * gimple-fold.c: Likewise.
13675 * gimple-ssa-strength-reduction.c: Likewise.
13676 * gimplify.c: Likewise.
13677 * ipa-inline.c: Likewise.
13678 * ipa-prop.c: Likewise.
13679 * lto-streamer-out.c: Likewise.
13680 * stmt.c: Likewise.
13681 * tree-inline.c: Likewise.
13682 * tree-object-size.c: Likewise.
13683 * tree-sra.c: Likewise.
13684 * tree-ssa-ccp.c: Likewise.
13685 * tree-ssa-forwprop.c: Likewise.
13686 * tree-ssa-loop-ivcanon.c: Likewise.
13687 * tree-ssa-loop-ivopts.c: Likewise.
13688 * tree-ssa-math-opts.c: Likewise.
13689 * tree-ssa-reassoc.c: Likewise.
13690 * tree-ssa-threadedge.c: Likewise.
13691 * tree-streamer-in.c: Likewise.
13692 * tree-vect-data-refs.c: Likewise.
13693 * tree-vect-patterns.c: Likewise.
13694 * tree-vect-stmts.c: Likewise.
13695 * config/aarch64/aarch64.c: Likewise.
13696 * config/alpha/alpha.c: Likewise.
13697 * config/arc/arc.c: Likewise.
13698 * config/arm/arm.c: Likewise.
13699 * config/avr/avr.c: Likewise.
13700 * config/bfin/bfin.c: Likewise.
13701 * config/c6x/c6x.c: Likewise.
13702 * config/cr16/cr16.c: Likewise.
13703 * config/cris/cris.c: Likewise.
13704 * config/epiphany/epiphany.c: Likewise.
13705 * config/fr30/fr30.c: Likewise.
13706 * config/frv/frv.c: Likewise.
13707 * config/h8300/h8300.c: Likewise.
13708 * config/i386/i386.c: Likewise.
13709 * config/i386/winnt.c: Likewise.
13710 * config/ia64/ia64.c: Likewise.
13711 * config/iq2000/iq2000.c: Likewise.
13712 * config/lm32/lm32.c: Likewise.
13713 * config/m32c/m32c.c: Likewise.
13714 * config/m32r/m32r.c: Likewise.
13715 * config/m68k/m68k.c: Likewise.
13716 * config/mcore/mcore.c: Likewise.
13717 * config/mep/mep.c: Likewise.
13718 * config/microblaze/microblaze.c: Likewise.
13719 * config/mips/mips.c: Likewise.
13720 * config/mmix/mmix.c: Likewise.
13721 * config/mn10300/mn10300.c: Likewise.
13722 * config/moxie/moxie.c: Likewise.
13723 * config/msp430/msp430.c: Likewise.
13724 * config/nds32/nds32.c: Likewise.
13725 * config/pa/pa.c: Likewise.
13726 * config/pdp11/pdp11.c: Likewise.
13727 * config/picochip/picochip.c: Likewise.
13728 * config/rl78/rl78.c: Likewise.
13729 * config/rs6000/rs6000.c: Likewise.
13730 * config/rx/rx.c: Likewise.
13731 * config/s390/s390.c: Likewise.
13732 * config/score/score.c: Likewise.
13733 * config/sh/sh.c: Likewise.
13734 * config/sparc/sparc.c: Likewise.
13735 * config/spu/spu.c: Likewise.
13736 * config/stormy16/stormy16.c: Likewise.
13737 * config/tilegx/tilegx.c: Likewise.
13738 * config/tilepro/tilepro.c: Likewise.
13739 * config/v850/v850.c: Likewise.
13740 * config/vax/vax.c: Likewise.
13741 * config/xtensa/xtensa.c: Likewise.
13742
13743 2014-06-02 Jeff Law <law@redhat.com>
13744
13745 PR rtl-optimization/61094
13746 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13747 was marked as do_no_reextend. If a copy is needed to eliminate
13748 an extension, then mark it as do_not_reextend.
13749
13750 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13751
13752 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13753
13754 2014-06-02 Richard Henderson <rth@redhat.com>
13755
13756 PR target/61336
13757 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13758 addresses inside asms. Use output_operand_lossage instead of
13759 gcc_unreachable.
13760
13761 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13762
13763 PR target/61239
13764 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13765 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13766
13767 2014-06-02 Tom de Vries <tom@codesourcery.com>
13768
13769 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13770 case that x has VOIDmode.
13771
13772 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13773
13774 * varasm.c (copy_constant): Delete function.
13775 (build_constant_desc): Don't call it.
13776
13777 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13778
13779 PR target/61154
13780 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13781 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13782 with immediate_operand.
13783
13784 2014-06-02 Andreas Schwab <schwab@suse.de>
13785
13786 * config/ia64/ia64.c
13787 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13788 pending_data_specs first.
13789
13790 2014-06-02 Richard Biener <rguenther@suse.de>
13791
13792 PR tree-optimization/61378
13793 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13794 valueized_anything.
13795
13796 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13797
13798 * config/i386/constraints.md (Bw): Rename from 'w'.
13799 (Bz): Rename from 'z'.
13800 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13801
13802 2014-06-01 Kai Tietz <ktietz@redhat.com>
13803
13804 PR target/61377
13805 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13806 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13807 instead of m constraint.
13808
13809 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13810
13811 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13812 a separate alternative where the scratch operand 2 is marked as
13813 early clobber.
13814
13815 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13816
13817 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13818 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13819 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13820 and __builtins_arm_get_fpscr.
13821 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13822 __builtins_arm_get_fpscr.
13823 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13824 __builtins_arm_ldfpscr.
13825 (arm_atomic_assign_expand_fenv): New function.
13826 * config/arm/vfp.md (set_fpscr): New pattern.
13827 (get_fpscr) : Likewise.
13828 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13829 VUNSPEC_SET_FPSCR.
13830 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13831 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13832
13833 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13834
13835 * asan.c (report_error_func): Add SLOW_P argument, use
13836 BUILT_IN_ASAN_*_N if set.
13837 (build_check_stmt): Likewise.
13838 (instrument_derefs): If T has insufficient alignment,
13839 force same handling as for odd sizes.
13840
13841 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13842 BUILT_IN_ASAN_REPORT_STORE_N): New.
13843 * asan.c (struct asan_mem_ref): Change access_size type to
13844 HOST_WIDE_INT.
13845 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13846 update_mem_ref_hash_table): Likewise.
13847 (asan_mem_ref_hasher::hash): Hash in a HWI.
13848 (report_error_func): Change size_in_bytes argument to HWI.
13849 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13850 two.
13851 (build_shadow_mem_access): New function.
13852 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13853 Handle size_in_bytes not power of two or larger than 16.
13854 (instrument_derefs): Don't give up if size_in_bytes is not
13855 power of two or is larger than 16.
13856
13857 2014-05-30 Kai Tietz <ktietz@redhat.com>
13858
13859 PR target/60104
13860 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13861 for sibling-tail-calls.
13862 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13863 to its use.
13864 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13865 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13866
13867 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13868
13869 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13870 * config/avr/avr-tables.opt: Regenerate.
13871 * config/avr/t-multilib: Regenerate.
13872 * doc/avr-mmcu.texi: Regenerate.
13873
13874 2014-05-30 Ian Lance Taylor <iant@google.com>
13875
13876 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13877 target("sse").
13878
13879 2014-05-30 Tom de Vries <tom@codesourcery.com>
13880
13881 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13882 Redefine as true.
13883
13884 2014-05-30 Tom de Vries <tom@codesourcery.com>
13885
13886 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13887 * lra.c (initialize_lra_reg_info_element): Add init of
13888 actual_call_used_reg_set field.
13889 (lra): Call lra_create_live_ranges before lra_inheritance for
13890 -fuse-caller-save.
13891 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13892 -fuse-caller-save.
13893 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13894 instead of call_used_reg_set for -fuse-caller-save.
13895 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13896
13897 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13898
13899 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13900 to mov_imm.
13901 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13902
13903 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13904
13905 * ira.c (ira_get_dup_out_num): Check for output operands at
13906 the start of the loop. Handle cases where an included alternative
13907 follows an excluded one.
13908
13909 2014-05-29 Mike Stump <mikestump@comcast.net>
13910
13911 PR debug/61352
13912 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13913 post ld passes when lto is used.
13914
13915 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13916
13917 PR rtl-optimization/61325
13918 * lra-constraints.c (process_address): Rename to process_address_1.
13919 (process_address): New function.
13920
13921 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13922
13923 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13924 TYPES_BINOPV): New static data.
13925 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13926 New builtin.
13927 * config/aarch64/aarch64-simd.md (aarch64_ext,
13928 aarch64_im_lane_boundsi): New patterns.
13929 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13930 patterns for EXT.
13931 (aarch64_evpc_ext): New function.
13932
13933 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13934
13935 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13936 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13937 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13938 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13939 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13940
13941 2014-05-29 Tom de Vries <tom@codesourcery.com>
13942
13943 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13944
13945 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13946 Richard Sandiford <rdsandiford@googlemail.com>
13947
13948 * arm/iterators.md (shiftable_ops): New code iterator.
13949 (t2_binop0, arith_shift_insn): New code attributes.
13950 * arm/predicates.md (shift_nomul_operator): New predicate.
13951 * arm/arm.md (insn_enabled): Delete.
13952 (enabled): Remove insn_enabled test.
13953 (*arith_shiftsi): Delete. Replace with ...
13954 (*<arith_shift_insn>_multsi): ... new pattern.
13955 (*<arith_shift_insn>_shiftsi): ... new pattern.
13956 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13957
13958 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13959 Tom de Vries <tom@codesourcery.com>
13960
13961 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13962 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13963 clobber.
13964 (mips_split_call): Use POST_CALL_TMP_REG.
13965 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13966
13967 2014-05-29 Tom de Vries <tom@codesourcery.com>
13968
13969 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13970 with #ifdef STACK_REGS.
13971
13972 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13973
13974 * varasm.c (get_variable_section): Walk aliases.
13975 (place_block_symbol): Walk aliases.
13976
13977 2014-05-28 Tom de Vries <tom@codesourcery.com>
13978
13979 Revert:
13980 2014-05-28 Tom de Vries <tom@codesourcery.com>
13981
13982 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13983 * lra.c (initialize_lra_reg_info_element): Add init of
13984 actual_call_used_reg_set field.
13985 (lra): Call lra_create_live_ranges before lra_inheritance for
13986 -fuse-caller-save.
13987 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13988 -fuse-caller-save.
13989 * lra-constraints.c (need_for_call_save_p): Use
13990 actual_call_used_reg_set instead of call_used_reg_set for
13991 -fuse-caller-save.
13992 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13993
13994 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13995
13996 * doc/md.texi: Document that the % constraint character must
13997 be at the beginning of the string.
13998 * genoutput.c (validate_insn_alternatives): Check that '=',
13999 '+' and '%' only appear at the beginning of a constraint.
14000 * ira.c (commutative_constraint_p): Delete.
14001 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14002 at the start of the string.
14003 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14004 duplicate '='s.
14005 * config/arm/neon.md (bicdi3_neon): Likewise.
14006 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14007 (slt_si, sltu_si): Likewise.
14008 * config/vax/vax.md (sbcdi3): Likewise.
14009 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14010 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14011 (mul64): Move '%' to beginning of constraint.
14012 * config/arm/arm.md (*xordi3_insn): Likewise.
14013 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14014 (xorsi3): Likewise.
14015
14016 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14017
14018 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14019
14020 2014-05-28 Jason Merrill <jason@redhat.com>
14021
14022 PR c++/47202
14023 * cgraph.h (symtab_node::get_comdat_group_id): New.
14024 * cgraphunit.c (analyze_functions): Call it.
14025 * symtab.c (dump_symtab_node): Likewise.
14026 * tree.c (decl_comdat_group_id): New.
14027 * tree.h: Declare it.
14028 * lto-streamer-out.c (write_symbol): Use it.
14029 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14030
14031 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14032
14033 PR bootstrap/PR61146
14034 * wide-int.cc: Do not include longlong.h when compiling with clang.
14035
14036 2014-05-28 Richard Biener <rguenther@suse.de>
14037
14038 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14039 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14040 (vrp_visit_assignment_or_call): Print less vertical space.
14041 (vrp_visit_stmt): Likewise.
14042 (vrp_visit_phi_node): Likewise. For a PHI argument with
14043 VR_VARYING range consider recording it as copy.
14044
14045 2014-05-28 Richard Biener <rguenther@suse.de>
14046
14047 Revert
14048 2014-05-28 Richard Biener <rguenther@suse.de>
14049
14050 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14051
14052 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14053
14054 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14055 sufficiently aligned and an offset is used at the same time.
14056 (expand_expr_real_1): Likewise.
14057
14058 2014-05-28 Richard Biener <rguenther@suse.de>
14059
14060 PR middle-end/61045
14061 * fold-const.c (fold_comparison): When folding
14062 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14063 the sign of the remaining constant operand stays the same.
14064
14065 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14066
14067 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14068 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14069 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14070 to the assembler.
14071 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14072 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14073 (m32bit-doubles) Likewise.
14074 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14075 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14076 option for RL78.
14077
14078 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14079
14080 * configure.ac ($gcc_cv_ld_clearcap): New test.
14081 * configure: Regenerate.
14082 * config.in: Regenerate.
14083 * config/sol2.opt (mclear-hwcap): New option.
14084 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14085 * config/sol2-clearcap.map: Moved here from
14086 testsuite/gcc.target/i386/clearcap.map.
14087 * config/sol2-clearcapv2.map: Move here from
14088 gcc.target/i386/clearcapv2.map.
14089 * config/t-sol2 (install): Depend on install-clearcap-map.
14090 (install-clearcap-map): New target.
14091 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14092 -mclear-hwcap.
14093
14094 2014-05-28 Richard Biener <rguenther@suse.de>
14095
14096 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14097 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14098 ... here and remove the rest.
14099 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14100
14101 2014-05-28 Richard Biener <rguenther@suse.de>
14102
14103 PR tree-optimization/61335
14104 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14105 new range fails, drop to varying.
14106
14107 2014-05-28 Olivier Hainque <hainque@adacore.com>
14108
14109 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14110 (CPP_SPEC): Add entry for -mcpu=8548.
14111 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14112 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14113
14114 2014-05-28 Tom de Vries <tom@codesourcery.com>
14115
14116 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14117 * lra.c (initialize_lra_reg_info_element): Add init of
14118 actual_call_used_reg_set field.
14119 (lra): Call lra_create_live_ranges before lra_inheritance for
14120 -fuse-caller-save.
14121 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14122 -fuse-caller-save.
14123 * lra-constraints.c (need_for_call_save_p): Use
14124 actual_call_used_reg_set instead of call_used_reg_set for
14125 -fuse-caller-save.
14126 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14127
14128 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14129 Tom de Vries <tom@codesourcery.com>
14130
14131 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14132 to gccoptlist.
14133 (@item -fuse-caller-save): New item.
14134
14135 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14136 Tom de Vries <tom@codesourcery.com>
14137
14138 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14139 OPT_fuse_caller_save.
14140
14141 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14142 Tom de Vries <tom@codesourcery.com>
14143
14144 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14145 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14146 get_call_reg_set_usage.
14147 * resource.c (mark_set_resources, mark_target_live_regs): Use
14148 get_call_reg_set_usage.
14149 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14150 field.
14151 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14152 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14153 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14154 * ira-build.c (ira_create_allocno): Init
14155 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14156 (create_cap_allocno, propagate_allocno_info)
14157 (propagate_some_info_from_allocno)
14158 (copy_info_to_removed_store_destinations): Handle
14159 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14160 * ira-costs.c (ira_tune_allocno_costs): Use
14161 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14162
14163 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14164 Tom de Vries <tom@codesourcery.com>
14165
14166 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14167 and function_used_regs_valid fields.
14168 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14169 find_all_hard_reg_sets.
14170 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14171 (get_call_reg_set_usage): New function.
14172 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14173 * regs.h (get_call_reg_set_usage): Declare.
14174
14175 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14176
14177 PR libgcc/61152
14178 * config/dbx.h (License): Add Runtime Library Exception.
14179 * config/newlib-stdint.h (License): Same.
14180 * config/rtems.h (License): Same
14181 * config/initfini-array.h (License): Same
14182 * config/v850/v850.h (License): Same.
14183 * config/v850/v850-opts.h (License): Same
14184 * config/v850/rtems.h (License): Same.
14185
14186 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14187
14188 PR target/61044
14189 * doc/extend.texi (Local Labels): Note that label differences are
14190 not supported for AVR.
14191
14192 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14193 Olivier Hainque <hainque@adacore.com>
14194
14195 * rtl.h (set_for_reg_notes): Declare.
14196 * emit-rtl.c (set_for_reg_notes): New function.
14197 (set_unique_reg_note): Use it.
14198 * optabs.c (add_equal_note): Likewise
14199
14200 2014-05-27 Andrew Pinski <apinski@cavium.com>
14201
14202 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14203 Use <w> for the register in assembly template.
14204 (stack_protect_test): Use the mode of operands[0] for the result.
14205 (stack_protect_test_<mode>): Use <w> for the register
14206 in assembly template.
14207
14208 2014-05-27 DJ Delorie <dj@redhat.com>
14209
14210 * config/rx/rx.c (add_vector_labels): New.
14211 (rx_output_function_prologue): Call it.
14212 (rx_handle_func_attribute): Don't require empty arguments.
14213 (rx_handle_vector_attribute): New.
14214 (rx_attribute_table): Add "vector" attribute.
14215 * doc/extend.texi (interrupt, vector): Document new/changed
14216 RX-specific attributes.
14217
14218 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14219
14220 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14221
14222 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14223 predicate to detect a negative quotient.
14224
14225 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14226
14227 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14228 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14229 Add X - Y CMP 0 to X CMP Y transformation.
14230 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14231
14232 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14233
14234 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14235 before printing.
14236
14237 2014-05-27 Steve Ellcey <sellcey@mips.com>
14238
14239 * config/mips/mips.c: Add include of cgraph.h.
14240
14241 2014-05-27 Richard Biener <rguenther@suse.de>
14242
14243 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14244
14245 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14246
14247 PR libgcc/61152
14248 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14249 * config/arm/arm-cores.def (License): Same.
14250 * config/arm/arm-opts.h (License): Same.
14251 * config/arm/aout.h (License): Same.
14252 * config/arm/bpabi.h (License): Same.
14253 * config/arm/elf.h (License): Same.
14254 * config/arm/linux-elf.h (License): Same.
14255 * config/arm/linux-gas.h (License): Same.
14256 * config/arm/netbsd-elf.h (License): Same.
14257 * config/arm/uclinux-eabi.h (License): Same.
14258 * config/arm/uclinux-elf.h (License): Same.
14259 * config/arm/vxworks.h (License): Same.
14260
14261 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14262
14263 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14264 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14265 (arm_init_neon_builtins): Handle NEON_BSWAP.
14266 Define required type nodes.
14267 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14268 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14269 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14270 * config/arm/iterators.md (VDQHSD): New mode iterator.
14271
14272 2014-05-27 Richard Biener <rguenther@suse.de>
14273
14274 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14275 Try using literal operands when comparing value-ranges failed.
14276
14277 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14278
14279 * ira.c (commutative_operand): Adjust for change to recog_data.
14280 [Missing from previous commit.]
14281
14282 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14283
14284 * system.h (TEST_BIT): New macro.
14285 * recog.h (alternative_mask): New type.
14286 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14287 (recog_data_d): Replace alternative_enabled_p array with
14288 enabled_alternatives.
14289 (target_recog): New structure.
14290 (default_target_recog, this_target_recog): Declare.
14291 (get_enabled_alternatives, recog_init): Likewise.
14292 * recog.c (default_target_recog, this_target_recog): New variables.
14293 (get_enabled_alternatives): New function.
14294 (extract_insn): Use it.
14295 (recog_init): New function.
14296 (preprocess_constraints, constrain_operands): Adjust for change to
14297 recog_data.
14298 * postreload.c (reload_cse_simplify_operands): Likewise.
14299 * reload.c (find_reloads): Likewise.
14300 * ira-costs.c (record_reg_classes): Likewise.
14301 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14302 all alternatives after a disabled one would be skipped.
14303 (ira_implicitly_set_insn_hard_regs): Likewise.
14304 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14305 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14306 with enabled_alternatives.
14307 * lra.c (free_insn_recog_data): Update accordingly.
14308 (lra_update_insn_recog_data): Likewise.
14309 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14310 * lra-constraints.c (process_alt_operands): Likewise. Handle
14311 only_alternative as part of the enabled mask.
14312 * target-globals.h (this_target_recog): Declare.
14313 (target_globals): Add a recog field.
14314 (restore_target_globals): Restore this_target_recog.
14315 * target-globals.c: Include recog.h.
14316 (default_target_globals): Initialize recog field.
14317 (save_target_globals): Likewise.
14318 * reginfo.c (reinit_regs): Call recog_init.
14319 * toplev.c (backend_init_target): Likewise.
14320
14321 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14322
14323 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14324 rather than any named insn's code.
14325
14326 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14327
14328 PR libgcc/61152
14329 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14330 * config/arm/arm-cores.def (License): Same.
14331
14332 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14333
14334 * tree.h (decl_comdat_group): Declare.
14335 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14336 * tree.c (decl_comdat_group): Here.
14337
14338 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14339
14340 PR rtl-optimization/61222
14341 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14342 the shift, truncate the PLUS operand to the result mode.
14343
14344 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14345
14346 PR target/61271
14347 * config/i386/i386.c (ix86_rtx_costs)
14348 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14349 Fix condition.
14350
14351 2014-05-26 Martin Jambor <mjambor@suse.cz>
14352
14353 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14354 subreg uses.
14355
14356 2014-05-26 Richard Biener <rguenther@suse.de>
14357
14358 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14359 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14360 Provide specializations.
14361 (wi::int_traits <HOST_WIDE_INT>,
14362 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14363
14364 2014-05-26 Alan Modra <amodra@gmail.com>
14365
14366 PR target/61098
14367 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14368 params and return a bool. Remove dead code. Update comment.
14369 Assert we have a const_int source. Remove bogus code from
14370 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14371 handling of constants > 2G and reg_equal note, from..
14372 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14373 return value. Update comment. If we can, use a new pseudo
14374 for intermediate calculations.
14375 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14376 prototype.
14377 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14378 call to rs6000_emit_set_const in splitter.
14379 (movdi_internal64+2, +3): Likewise.
14380
14381 2014-05-26 Richard Biener <rguenther@suse.de>
14382
14383 * system.h: Define __STDC_FORMAT_MACROS before
14384 including inttypes.h.
14385 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14386 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14387 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14388 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14389 HOST_WIDEST_INT_C): Remove.
14390 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14391 if C99 inttypes.h is not available.
14392 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14393 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14394 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14395 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14396 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14397 (struct output_info): Likewise.
14398 (print_statistics): Adjust.
14399 (dump_bitmap_statistics): Likewise.
14400 * bt-load.c (migrate_btr_defs): Print with PRId64.
14401 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14402 (MAX_SAFE_MULTIPLIER): Adjust.
14403 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14404 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14405 dump_cgraph_node): Likewise.
14406 * final.c (dump_basic_block_info): Likewise.
14407 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14408 * gcov.c (format_gcov): Likewise.
14409 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14410 for calculation.
14411 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14412 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14413 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14414 Use PRId64 for dumping.
14415 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14416 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14417 (add_allocno_hard_regs): Adjust.
14418 * loop-doloop.c (doloop_modify): Print using PRId64.
14419 * loop-iv.c (inverse): Compute in uint64_t.
14420 (determine_max_iter, iv_number_of_iterations): Likewise.
14421 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14422 Print using PRId64.
14423 * lto-streamer-out.c (write_symbol): Use uint64_t.
14424 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14425 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14426 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14427 * modulo-sched.c (const_iteration_count): Use int64_t.
14428 (sms_schedule): Dump using PRId64.
14429 * predict.c (dump_prediction): Likewise.
14430 * pretty-print.h (pp_widest_integer): Remove.
14431 * profile.c (get_working_sets, is_edge_inconsistent,
14432 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14433 * tree-pretty-print.c (pp_double_int): Remove case handling
14434 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14435 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14436 and adjust users.
14437 (pass_optimize_bswap::execute): Remove restriction on hosts.
14438 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14439 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14440 * tree.c (widest_int_cst_value): Remove.
14441 * tree.h (widest_int_cst_value): Likewise.
14442 * value-prof.c (dump_histogram_value): Print using PRId64.
14443 * gengtype.c (main): Also inject int64_t.
14444 * ggc-page.c (struct max_alignment): Use int64_t.
14445 * alloc-pool.c (struct allocation_object_def): Likewise.
14446 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14447 for computation.
14448 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14449 * doc/tm.texi: Regenerated.
14450 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14451 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14452 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14453 mmix_output_register_setting): Use [u]int64_t in prototypes.
14454 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14455 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14456 mmix_output_octa, mmix_output_shifted_value): Adjust.
14457 (mmix_intval): Adjust. Remove unreachable case.
14458 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14459
14460 2014-05-26 Richard Biener <rguenther@suse.de>
14461
14462 * configure.ac: Drop __int64 type check. Insist that we
14463 found uint64_t and int64_t.
14464 * hwint.h (HOST_BITS_PER___INT64): Remove.
14465 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14466 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14467 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14468 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14469 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14470 for dst_q_src_df_rms_cdt.
14471 * configure: Regenerate.
14472 * config.in: Likewise.
14473
14474 2014-05-26 Michael Tautschnig <mt@debian.org>
14475
14476 PR target/61249
14477 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14478 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14479
14480 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14481
14482 PR rtl-optimization/61278
14483 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14484
14485 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14486
14487 PR rtl-optimization/61220
14488 Part of PR rtl-optimization/61225
14489 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14490 insn; skip split_edge for a block with only one successor.
14491
14492 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14493
14494 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14495 for variables.
14496
14497 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14498
14499 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14500 (update_vtable_references): New function.
14501 (function_and_variable_visibility): Rewrite also vtable initializers.
14502 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14503
14504 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14505
14506 * ggc.h (ggc_grow): New function.
14507 * ggc-none.c (ggc_grow): New function.
14508 * ggc-page.c (ggc_grow): Likewise.
14509
14510 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14511
14512 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14513 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14514 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14515 varpool_externally_visible_p, can_replace_by_local_alias,
14516 update_visibility_by_resolution_info, function_and_variable_visibility,
14517 pass_data_ipa_function_and_variable_visibility,
14518 make_pass_ipa_function_and_variable_visibility,
14519 whole_program_function_and_variable_visibility,
14520 pass_data_ipa_whole_program_visibility,
14521 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14522 * cgraph.h (cgraph_local_node_p): Declare.
14523 * ipa-visibility.c: New file.
14524 * Makefile.in (OBJS): Add ipa-visiblity.o
14525
14526 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14527
14528 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14529 that var decl is available.
14530
14531 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14532
14533 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14534 symtab_node pointer.
14535 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14536 (find_decls_types_r): Do not walk COMDAT_GROUP.
14537 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14538 * varasm.c (make_decl_one_only): Use set_comdat_group;
14539 create node if needed.
14540 * ipa-inline-transform.c (save_inline_function_body): Update
14541 way we decl->symtab mapping.
14542 * symtab.c (symtab_hash, hash_node, eq_node
14543 symtab_insert_node_to_hashtable): Remove.
14544 (symtab_register_node): Update.
14545 (symtab_unregister_node): Update.
14546 (symtab_get_node): Reimplement as inline function.
14547 (symtab_add_to_same_comdat_group): Update.
14548 (symtab_dissolve_same_comdat_group_list): Update.
14549 (dump_symtab_base): Update.
14550 (verify_symtab_base): Update.
14551 (symtab_make_decl_local): Update.
14552 (fixup_same_cpp_alias_visibility): Update.
14553 (symtab_nonoverwritable_alias): Update.
14554 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14555 * ipa.c (update_visibility_by_resolution_info): UPdate.
14556 * bb-reorder.c: Include cgraph.h
14557 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14558 with comdat groups.
14559 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14560 * cgraph.c (cgraph_get_create_node): Update.
14561 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14562 and comdat_group_.
14563 (symtab_get_node): Make inline.
14564 (symtab_insert_node_to_hashtable): Remove.
14565 (symtab_can_be_discarded): Update.
14566 (decl_comdat_group): New function.
14567 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14568 Update.
14569 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14570 comdat group name.
14571 (read_comdat_group): New function.
14572 (input_node, input_varpool_node): Use it.
14573 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14574 comdat groups.
14575 * mips.c (mips_start_unique_function): Likewise.
14576 (ix86_code_end): Likewise.
14577 (rs6000_code_end): Likweise.
14578 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14579
14580 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14581
14582 * gengtype-state.c (fatal_reading_state): Bring offline.
14583 * optabs.c (widening_optab_handler): Bring offline.
14584 * optabs.h (widening_optab_handler): Likewise.
14585 * final.c (get_attr_length_1): Likewise.
14586
14587 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14588
14589 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14590
14591 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14592
14593 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14594 (ppc440-compare): Include shift with dot.
14595 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14596 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14597 without dot.
14598 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14599 without dot.
14600 (e6500_sfx2): Include it.
14601 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14602 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14603 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14604 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14605 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14606 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14607 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14608 *lshiftrt_internal1le, *lshiftrt_internal1be,
14609 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14610 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14611 *rotldi3_internal10le, *rotldi3_internal10be,
14612 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14613 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14614 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14615 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14616 define_insns): Use type "shift" in the appropriate alternatives.
14617
14618 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14619
14620 * config/rs6000/rs6000.md (type): Add "logical". Delete
14621 "fast_compare".
14622 (dot): Adjust comment.
14623 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14624 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14625 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14626 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14627 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14628 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14629 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14630 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14631
14632 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14633 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14634 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14635 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14636 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14637 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14638 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14639 * config/rs6000/8540.md (ppc8540_su): Adjust.
14640 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14641 cell-cmp-microcoded): Adjust.
14642 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14643 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14644 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14645 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14646 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14647 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14648 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14649 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14650 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14651 Adjust.
14652 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14653 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14654 Adjust. Adjust comment.
14655 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14656 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14657
14658 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14659
14660 * config/rs6000/rs6000.md (type): Add "add".
14661 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14662 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14663 define_insns): Use it.
14664 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14665
14666 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14667 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14668 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14669 * config/rs6000/601.md (ppc601-integer): Adjust.
14670 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14671 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14672 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14673 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14674 * config/rs6000/8540.md (ppc8540_su): Adjust.
14675 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14676 cell-cmp-microcoded): Adjust.
14677 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14678 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14679 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14680 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14681 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14682 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14683 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14684 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14685 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14686 Adjust.
14687 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14688 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14689 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14690 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14691
14692 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14693
14694 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14695 "delayed_compare", "var_delayed_compare".
14696 (var_shift): New attribute.
14697 (cell_micro): Adjust.
14698 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14699 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14700 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14701 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14702 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14703 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14704 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14705 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14706 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14707 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14708 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14709 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14710 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14711 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14712 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14713 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14714 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14715 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14716 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14717 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14718 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14719 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14720 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14721 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14722 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14723
14724 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14725 * config/rs6000/440.md (ppc440-integer): Adjust.
14726 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14727 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14728 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14729 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14730 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14731 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14732 * config/rs6000/8540.md (ppc8540_su): Adjust.
14733 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14734 cell-cmp-microcoded): Adjust.
14735 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14736 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14737 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14738 e500mc64_delayed): Adjust.
14739 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14740 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14741 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14742 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14743 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14744 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14745 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14746 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14747 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14748 Adjust comment.
14749 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14750 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14751
14752 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14753
14754 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14755 (bits): New mode_attr.
14756 (idiv_ldiv): Delete mode_attr.
14757 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14758 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14759 rs6000_adjust_priority, is_nonpipeline_insn,
14760 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14761
14762 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14763 * config/rs6000/440.md (ppc440-idiv): Adjust.
14764 * config/rs6000/476.md (ppc476-idiv): Adjust.
14765 * config/rs6000/601.md (ppc601-idiv): Adjust.
14766 * config/rs6000/603.md (ppc603-idiv): Adjust.
14767 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14768 ppc620-ldiv): Adjust.
14769 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14770 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14771 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14772 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14773 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14774 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14775 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14776 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14777 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14778 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14779 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14780 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14781 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14782 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14783 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14784 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14785 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14786 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14787
14788 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14789
14790 * config/rs6000/rs6000.md (type): Delete "insert_word",
14791 "insert_dword". Add "insert".
14792 (size): Update comment.
14793 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14794 insn_must_be_first_in_group): Adjust.
14795 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14796 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14797 *insvsi_internal6, insvdi_internal): Adjust.
14798
14799 * config/rs6000/40x.md (ppc403-integer): Adjust.
14800 * config/rs6000/440.md (ppc440-integer): Adjust.
14801 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14802 * config/rs6000/601.md (ppc601-integer): Adjust.
14803 * config/rs6000/603.md (ppc603-integer): Adjust.
14804 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14805 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14806 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14807 * config/rs6000/8540.md (ppc8540_su): Adjust.
14808 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14809 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14810 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14811 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14812 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14813 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14814 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14815 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14816 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14817 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14818 * config/rs6000/power7.md (power7-integer): Adjust.
14819 * config/rs6000/power8.md (power8-1cyc): Adjust.
14820 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14821 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14822
14823 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14824
14825 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14826 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14827 (size): New attribute.
14828 (dot): New attribute.
14829 (cell_micro): Adjust.
14830 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14831 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14832 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14833 umuldi3_highpart): Adjust.
14834 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14835 rs6000_adjust_priority, is_nonpipeline_insn,
14836 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14837
14838 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14839 ppc405-imul3): Adjust.
14840 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14841 * config/rs6000/476.md (ppc476-imul): Adjust.
14842 * config/rs6000/601.md (ppc601-imul): Adjust.
14843 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14844 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14845 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14846 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14847 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14848 Adjust.
14849 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14850 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14851 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14852 cell-imul): Adjust.
14853 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14854 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14855 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14856 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14857 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14858 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14859 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14860 power4-lmul, power4-imul, power4-imul3): Adjust.
14861 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14862 power5-lmul, power5-imul, power5-imul3): Adjust.
14863 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14864 power6-lmul, power6-imul, power6-imul3): Adjust.
14865 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14866 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14867
14868 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14869 rs64a-lmul): Adjust.
14870 * config/rs6000/titan.md (titan_imul): Adjust.
14871
14872 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14873
14874 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14875 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14876 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14877 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14878 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14879 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14880 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14881 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14882 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14883 * config/rs6000/titan.md: Delete nonsensical comment.
14884 (titan_imul): Add type imul3.
14885 (titan_mulhw): Remove type imul3; add type halfmul.
14886
14887 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14888
14889 * config/rs6000/rs6000.md (type): Reorder, reformat.
14890
14891 2014-05-23 Martin Jambor <mjambor@suse.cz>
14892
14893 PR tree-optimization/53787
14894 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14895 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14896 analysis_done, update all uses.
14897 * ipa-prop.c: Include domwalk.h
14898 (param_analysis_info): Removed.
14899 (param_aa_status): New type.
14900 (ipa_bb_info): Likewise.
14901 (func_body_info): Likewise.
14902 (ipa_get_bb_info): New function.
14903 (aa_overwalked): Likewise.
14904 (find_dominating_aa_status): Likewise.
14905 (parm_bb_aa_status_for_bb): Likewise.
14906 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14907 (load_from_unmodified_param): Accept func_body_info as a parameter
14908 instead of parms_ainfo.
14909 (parm_ref_data_preserved_p): Changed to use new param AA info.
14910 (parm_ref_data_pass_through_p): Likewise.
14911 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14912 (compute_complex_assign_jump_func): Changed to use new param AA info.
14913 (compute_complex_ancestor_jump_func): Likewise.
14914 (ipa_compute_jump_functions_for_edge): Likewise.
14915 (ipa_compute_jump_functions): Removed.
14916 (ipa_compute_jump_functions_for_bb): New function.
14917 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14918 declarations down.
14919 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14920 and info, moved variable declarations down.
14921 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14922 node and info.
14923 (ipa_analyze_stmt_uses): Likewise.
14924 (ipa_analyze_params_uses): Removed.
14925 (ipa_analyze_params_uses_in_bb): New function.
14926 (ipa_analyze_controlled_uses): Likewise.
14927 (free_ipa_bb_info): Likewise.
14928 (analysis_dom_walker): New class.
14929 (ipa_analyze_node): Handle node-specific forbidden analysis,
14930 initialize and free func_body_info, use dominator walker.
14931 (ipcp_modif_dom_walker): New class.
14932 (ipcp_transform_function): Create and free func_body_info, use
14933 ipcp_modif_dom_walker, moved a lot of functionality there.
14934
14935 2014-05-23 Marek Polacek <polacek@redhat.com>
14936 Jakub Jelinek <jakub@redhat.com>
14937
14938 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14939 * gcc.c (sanitize_spec_function): Likewise.
14940 * convert.c (convert_to_integer): Include "ubsan.h". Add
14941 floating-point to integer instrumentation.
14942 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14943 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14944 SANITIZE_NONDEFAULT.
14945 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14946 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14947 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14948 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14949 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14950 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14951 float/double/long double.
14952 (ubsan_instrument_float_cast): New function.
14953 * ubsan.h (ubsan_instrument_float_cast): Declare.
14954
14955 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14956
14957 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14958 predicate.
14959 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14960 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14961 Adjust for tailcalling through registers.
14962 * config/aarch64/aarch64.h (enum reg_class): New caller save
14963 register class.
14964 (REG_CLASS_NAMES): Likewise.
14965 (REG_CLASS_CONTENTS): Likewise.
14966 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14967 Allow tailcalling without decls.
14968
14969 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14970
14971 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14972 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14973
14974 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14975 gsi, and variables v_* to v*.
14976
14977 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14978
14979 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14980
14981 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14982
14983 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14984 * omp-low.c: Update accordingly.
14985
14986 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14987 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14988 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14989 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14990 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14991 GF_OMP_TARGET_KIND_UPDATE.
14992
14993 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14994 Explicitly enumerate the expected region types.
14995
14996 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14997
14998 PR other/56955
14999 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15000 documentation; the old documentation didn't clearly state the
15001 constraints on the contents of the pointed-to storage.
15002
15003 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15004
15005 Fix bootstrap error on ia64
15006 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15007 Return default value.
15008
15009 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15010
15011 PR tree-optimization/54733
15012 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15013 (CMPNOP): Define.
15014 (find_bswap_or_nop_load): New.
15015 (find_bswap_1): Renamed to ...
15016 (find_bswap_or_nop_1): This. Also add support for memory source.
15017 (find_bswap): Renamed to ...
15018 (find_bswap_or_nop): This. Also add support for memory source and
15019 detection of bitwise operations equivalent to load in target
15020 endianness.
15021 (execute_optimize_bswap): Likewise. Also move its leading comment back
15022 in place and split statement transformation into ...
15023 (bswap_replace): This.
15024
15025 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15026
15027 PR rtl-optimization/61215
15028 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15029 simplify_gen_subreg until final substitution.
15030
15031 2014-05-23 Alan Modra <amodra@gmail.com>
15032
15033 PR target/61231
15034 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15035 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15036 Use "Y" constraint rather than "m".
15037
15038 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15039
15040 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15041 define.
15042 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15043 New function declaration.
15044 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15045 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15046 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15047 (aarch64_init_builtins) : Initialize builtins
15048 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15049 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15050 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15051 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15052 and __builtins_aarch64_set_fpsr.
15053 (aarch64_atomic_assign_expand_fenv): New function.
15054 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15055 (get_fpcr) : Likewise.
15056 (set_fpsr) : Likewise.
15057 (get_fpsr) : Likewise.
15058 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15059 and UNSPECV_SET_FPSR.
15060 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15061 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15062 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15063
15064 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15065
15066 PR rtl-optimization/60969
15067 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15068 constraints. Set up mem cost for NO_REGS case.
15069
15070 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15071
15072 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15073
15074 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15075
15076 * config/darwin.c: Include "lto-section-names.h".
15077 (LTO_SEGMENT_NAME): Don't define.
15078 * config/i386/winnt.c: Include "lto-section-names.h".
15079 * lto-streamer.c: Include "lto-section-names.h".
15080 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15081 * lto-wrapper.c: Include "lto-section-names.h".
15082 (LTO_SECTION_NAME_PREFIX): Don't define.
15083 * lto-section-names.h: New file.
15084 * cgraphunit.c: Include "lto-section-names.h".
15085
15086 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15087
15088 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15089
15090 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15091
15092 PR target/61208
15093 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15094
15095 2014-05-22 Nick Clifton <nickc@redhat.com>
15096
15097 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15098
15099 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15100
15101 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15102 -> (T)A transformation to integer types.
15103
15104 2014-05-22 Teresa Johnson <tejohnson@google.com>
15105
15106 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15107 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15108 (gcov_rewrite): Use gcov_nonruntime_assert.
15109 (gcov_open): Ditto.
15110 (gcov_write_words): Ditto.
15111 (gcov_write_length): Ditto.
15112 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15113 gcc_assert from IN_LIBGCOV code.
15114 (gcov_read_summary): Use gcov_error to flag profile corruption.
15115 (gcov_sync): Use gcov_nonruntime_assert.
15116 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15117 (gcov_histo_index): Use gcov_nonruntime_assert.
15118 (static void gcov_histogram_merge): Ditto.
15119 (compute_working_sets): Ditto.
15120 * gcov-io.h (gcov_nonruntime_assert): Define.
15121 (gcov_error): Define for !IN_LIBGCOV
15122
15123 2014-05-22 Richard Biener <rguenther@suse.de>
15124
15125 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15126 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15127 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15128 and deallocation site.
15129 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15130 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15131 passing through the incoming points-to set.
15132 (handle_lhs_call): Use flags argument instead of recomputing it.
15133 (find_func_aliases_for_call): Call handle_lhs_call with proper
15134 call return flags.
15135
15136 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15137
15138 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15139 all padding bits in REAL_VALUE_TYPE are cleared.
15140
15141 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15142
15143 Cleanup and improve multipass_dfa_lookahead_guard
15144 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15145 (core2i7_first_cycle_multipass_begin,)
15146 (core2i7_first_cycle_multipass_issue,)
15147 (core2i7_first_cycle_multipass_backtrack): Update signature.
15148 * config/ia64/ia64.c
15149 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15150 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15151 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15152 hook definition.
15153 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15154 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15155 values.
15156 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15157 return values.
15158 * doc/tm.texi: Regenerate.
15159 * doc/tm.texi.in
15160 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15161 * haifa-sched.c (ready_try): Make signed to allow negative values.
15162 (rebug_ready_list_1): Update.
15163 (choose_ready): Simplify.
15164 (sched_extend_ready_list): Update.
15165
15166 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15167
15168 Remove IA64 speculation tweaking flags
15169 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15170 speculation tuning flags.
15171 (msched-prefer-non-data-spec-insns,)
15172 (msched-prefer-non-control-spec-insns): Obsolete options.
15173 * haifa-sched.c (choose_ready): Remove handling of
15174 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15175 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15176 and PREFER_NON_DATA_SPEC.
15177 * sel-sched.c (process_spec_exprs): Remove handling of
15178 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15179
15180 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15181
15182 Improve scheduling debug output
15183 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15184 (advance_one_cycle): Update.
15185 (schedule_insn, queue_to_ready): Add debug printouts.
15186 (debug_ready_list_1): New static function.
15187 (debug_ready_list): Update.
15188 (max_issue): Add debug printouts.
15189 (dump_insn_stream): New static function.
15190 (schedule_block): Use it. Also better indent printouts.
15191
15192 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15193
15194 Fix sched_insn debug counter
15195 * haifa-sched.c (schedule_insn): Update.
15196 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15197 (save_backtrack_point, restore_backtrack_point): Update.
15198 (first_nonscheduled_insn): New static function.
15199 (queue_to_ready, choose_ready): Use it.
15200 (schedule_block): Init nonscheduled_insns_begin.
15201 (sched_emit_insn): Update.
15202
15203
15204 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15205
15206 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15207 to GENERAL_REGS.
15208 (aarch64_secondary_reload) : LikeWise.
15209 (aarch64_class_max_nregs) : Remove CORE_REGS.
15210 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15211 (REG_CLASS_NAMES) : Likewise.
15212 (REG_CLASS_CONTENTS) : LikeWise.
15213 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15214
15215 2014-05-21 Guozhi Wei <carrot@google.com>
15216
15217 PR target/61202
15218 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15219 constraint.
15220 (vqdmulhq_n_s16): Likewise.
15221
15222 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15223
15224 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15225
15226 2014-05-21 Marek Polacek <polacek@redhat.com>
15227
15228 PR sanitizer/61272
15229 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15230
15231 2014-05-21 Martin Jambor <mjambor@suse.cz>
15232
15233 * doc/invoke.texi (Optimize Options): Document parameters
15234 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15235 ipa-cp-array-index-hint-bonus.
15236
15237 2014-05-21 Mark Wielaard <mjw@redhat.com>
15238
15239 PR debug/16063
15240 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15241 version >= 3 or not strict DWARF.
15242 * langhooks.h (struct lang_hooks_for_types): Add
15243 enum_underlying_base_type.
15244 * langhooks.c (lhd_enum_underlying_base_type): New function.
15245 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15246 enum_underlying_base_type.
15247 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15248 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15249 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15250
15251 2014-05-21 Richard Biener <rguenther@suse.de>
15252
15253 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15254
15255 2014-05-21 John Marino <gnugcc@marino.st>
15256
15257 * config.gcc (*-*-dragonfly*): New target.
15258 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15259 * configure: Regenerate.
15260 * config/dragonfly-stdint.h: New.
15261 * config/dragonfly.h: New.
15262 * config/dragonfly.opt: New.
15263 * config/i386/dragonfly.h: New.
15264 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15265
15266 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15267
15268 * tree.def (VOID_CST): New.
15269 * tree-core.h (TI_VOID): New.
15270 * tree.h (void_node): New.
15271 * tree.c (tree_node_structure_for_code, tree_code_size)
15272 (iterative_hash_expr): Handle VOID_CST.
15273 (build_common_tree_nodes): Initialize void_node.
15274
15275 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15276
15277 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15278 functions.
15279 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15280
15281 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15282 more places.
15283
15284 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15285 flag_reorder_blocks_and_partition.
15286 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15287
15288 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15289
15290 PR target/54236
15291 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15292 constraints.
15293 (*addc_r_t): Add new insn_and_split.
15294
15295 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15296
15297 PR middle-end/61252
15298 * omp-low.c (handle_simd_reference): New function.
15299 (lower_rec_input_clauses): Use it. Defer adding reference
15300 initialization even for reduction without placeholder if in simd,
15301 handle it properly later on.
15302
15303 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15304
15305 PR tree-optimization/60899
15306 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15307 assume all static symbols will have definition wile parsing and
15308 check the do have definition later in compilation; check that
15309 variable referring symbol will be output before concluding that
15310 reference is safe; be conservative for referring local statics;
15311 be more precise about when comdat is output in other partition.
15312
15313 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15314
15315 PR bootstrap/60984
15316 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15317 parameter.
15318 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15319 (ipa_inline): Loop inline_to_all_callers until no more aliases
15320 are removed.
15321
15322 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15323
15324 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15325 set writeonly flag only for vars actually written to.
15326
15327 2014-05-20 Dehao Chen <dehao@google.com>
15328
15329 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15330 and callee count to get clone count.
15331 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15332 count in copy_body.
15333
15334 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15335
15336 PR rtl-optimization/61243
15337 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15338
15339 2014-05-20 Xinliang David Li <davidxl@google.com>
15340
15341 * cgraphunit.c (walk_polymorphic_call_targets): Add
15342 dbgcnt and fopt-info support.
15343 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15344 * ipa-devirt.c (ipa_devirt): Ditto.
15345 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15346 * ipa.c (walk_polymorphic_call_targets): Ditto.
15347 * gimple-fold.c (fold_gimple_assign): Ditto.
15348 (gimple_fold_call): Ditto.
15349 * dbgcnt.def: New counter.
15350
15351 2014-05-20 DJ Delorie <dj@redhat.com>
15352
15353 * config/msp430/msp430.md (split): Don't allow subregs when
15354 splitting SImode adds.
15355 (andneghi): Fix subtraction logic.
15356 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15357
15358 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15359
15360 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15361 symbols.
15362 * except.c (switch_to_exception_section, resolve_unique_section,
15363 get_named_text_section, default_function_rodata_section,
15364 align_variable, get_block_for_decl, default_section_type_flags):
15365 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15366 * symtab.c (symtab_add_to_same_comdat_group,
15367 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15368 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15369 Likewise.
15370 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15371 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15372 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15373 (c6x_function_in_section_p): Likewise.
15374 * config/darwin.c (machopic_select_section): Likewise.
15375 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15376 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15377 * config/mep/mep.c (mep_select_section): LIkewise.
15378 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15379
15380 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15381
15382 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15383 EH region of calls to pure functions that can throw an exception.
15384 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15385 (copy_reference_ops_from_call): Also copy the EH region of the call if
15386 it can throw an exception.
15387
15388 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15389
15390 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15391 nested VEC_SELECTs that are inverses of each other.
15392
15393 2014-05-20 Richard Biener <rguenther@suse.de>
15394
15395 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15396 (extract_and_process_scc_for_name): not here.
15397 (cond_dom_walker::before_dom_children): Only process
15398 stmts that end the BB in interesting ways.
15399 (run_scc_vn): Mark param uses as visited.
15400
15401 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15402
15403 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15404 arm_restrict_it.
15405
15406 2014-05-20 Nick Clifton <nickc@redhat.com>
15407
15408 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15409 (msp430_gimplify_va_arg_expr): New function.
15410 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15411
15412 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15413 operand 0 in order to prevent confusion about the number of
15414 registers involved.
15415
15416 2014-05-20 Richard Biener <rguenther@suse.de>
15417
15418 PR tree-optimization/61221
15419 * tree-ssa-pre.c (el_to_update): Remove.
15420 (eliminate_dom_walker::before_dom_children): Handle released
15421 VDEFs by value-numbering them to the associated VUSE. Update
15422 stmt immediately for substituted call address.
15423 (eliminate): Remove delayed stmt updating code.
15424 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15425 possibly late re-numbered vuses.
15426 (vn_reference_lookup_2): Adjust.
15427 (vn_reference_lookup_pieces): Likewise.
15428 (vn_reference_lookup): Likewise.
15429
15430 2014-05-20 Richard Biener <rguenther@suse.de>
15431
15432 * config.gcc: Remove need_64bit_hwint.
15433 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15434 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15435 it to be true.
15436 * config.in: Regenerate.
15437 * configure: Likewise.
15438
15439 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15440
15441 * doc/extend.texi: Create Label Attributes section,
15442 move all label attributes into it and reference it.
15443
15444 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15445
15446 * arm.c (thumb1_reorg): When scanning backwards skip anything
15447 that's not a proper insn.
15448
15449 2014-05-19 Richard Biener <rguenther@suse.de>
15450
15451 PR tree-optimization/61221
15452 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15453 Do nothing for unreachable blocks.
15454 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15455 Improve unreachability detection.
15456
15457 2014-05-19 Richard Biener <rguenther@suse.de>
15458
15459 PR tree-optimization/61209
15460 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15461
15462 2014-05-19 Nick Clifton <nickc@redhat.com>
15463
15464 * except.c (init_eh): Fix computation of builtin setjmp buffer
15465 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15466
15467 2014-05-19 Richard Biener <rguenther@suse.de>
15468
15469 PR tree-optimization/61184
15470 * tree-vrp.c (is_negative_overflow_infinity): Use
15471 TREE_OVERFLOW_P and do that check first.
15472 (is_positive_overflow_infinity): Likewise.
15473 (is_overflow_infinity): Likewise.
15474 (vrp_operand_equal_p): Properly treat operands with
15475 differing overflow as not equal.
15476
15477 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15478
15479 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15480 shift simplification where it was intended.
15481
15482 2014-05-19 Christian Bruel <christian.bruel@st.com>
15483
15484 PR target/61195
15485 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15486
15487 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15488
15489 PR target/61084
15490 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15491 than wide_int.
15492
15493 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15494
15495 * reg-notes.def (CROSSING_JUMP): Likewise.
15496 * rtl.h (rtx_def): Update comment for jump flag.
15497 (CROSSING_JUMP_P): Define.
15498 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15499 of a REG_CROSSING_JUMP note.
15500 * cfghooks.c (tidy_fallthru_edges): Likewise.
15501 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15502 * emit-rtl.c (try_split): Likewise.
15503 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15504 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15505 * jump.c (redirect_jump_2): Likewise.
15506 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15507 (relax_delay_slots): Likewise.
15508 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15509 (bbit_di): Likewise.
15510 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15511 * config/sh/sh.md (jump_compact): Likewise.
15512 * bb-reorder.c (rotate_loop): Likewise.
15513 (pass_duplicate_computed_gotos::execute): Likewise.
15514 (add_reg_crossing_jump_notes): Rename to...
15515 (update_crossing_jump_flags): ...this.
15516 (pass_partition_blocks::execute): Update accordingly.
15517
15518 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15519
15520 * tree.h: Remove extraneous template <>.
15521
15522 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15523
15524 * ipa.c (symtab_remove_unreachable_nodes): Remove
15525 symbol from comdat group if its body was eliminated.
15526 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15527 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15528 (symtab_unregister_node): ... this one.
15529 (verify_symtab_base): More strict checking of comdats.
15530 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15531
15532 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15533
15534 * tree-pass.h (make_pass_ipa_comdats): New pass.
15535 * timevar.def (TV_IPA_COMDATS): New timevar.
15536 * passes.def (pass_ipa_comdats): Add.
15537 * Makefile.in (OBJS): Add ipa-comdats.o
15538 * ipa-comdats.c: New file.
15539
15540 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15541
15542 * ipa.c (update_visibility_by_resolution_info): New function.
15543 (function_and_variable_visibility): Use it.
15544
15545 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15546
15547 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15548 New functions.
15549 (FOR_EACH_DEFINED_SYMBOL): New macro.
15550 (varpool_first_static_initializer, varpool_next_static_initializer,
15551 varpool_first_defined_variable, varpool_next_defined_variable):
15552 Fix comments.
15553 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15554
15555 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15556
15557 * ggc-page.c (ggc_handle_finalizers): Add comment.
15558
15559 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15560
15561 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15562 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15563 (ggc_internal_cleared_alloc): Likewise.
15564 * ggc-page.c (finalizer): New class.
15565 (vec_finalizer): Likewise.
15566 (globals::finalizers): New member.
15567 (globals::vec_finalizers): Likewise.
15568 (ggc_internal_alloc): Record the finalizer if any for the block being
15569 allocated.
15570 (ggc_handle_finalizers): New function.
15571 (ggc_collect): Call ggc_handle_finalizers.
15572 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15573 finalizer.
15574 (ggc_internal_cleared_alloc): Likewise.
15575 (finalize): New function.
15576 (need_finalization_p): Likewise.
15577 (ggc_alloc): Install the type's destructor as the finalizer if it
15578 might do something.
15579 (ggc_cleared_alloc): Likewise.
15580 (ggc_vec_alloc): Likewise.
15581 (ggc_cleared_vec_alloc): Likewise.
15582
15583 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15584
15585 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15586
15587 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15588
15589 * alias.c (record_alias_subset): Adjust.
15590 * bitmap.c (bitmap_element_allocate): Likewise.
15591 (bitmap_gc_alloc_stat): Likewise.
15592 * cfg.c (init_flow): Likewise.
15593 (alloc_block): Likewise.
15594 (unchecked_make_edge): Likewise.
15595 * cfgloop.c (alloc_loop): Likewise.
15596 (flow_loops_find): Likewise.
15597 (rescan_loop_exit): Likewise.
15598 * cfgrtl.c (init_rtl_bb_info): Likewise.
15599 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15600 (cgraph_allocate_node): Likewise.
15601 (cgraph_create_edge_1): Likewise.
15602 (cgraph_allocate_init_indirect_info): Likewise.
15603 * cgraphclones.c (cgraph_clone_edge): Likewise.
15604 * cgraphunit.c (add_asm_node): Likewise.
15605 (init_lowered_empty_function): Likewise.
15606 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15607 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15608 (alpha_use_linkage): Likewise.
15609 * config/arc/arc.c (arc_init_machine_status): Likewise.
15610 * config/arm/arm.c (arm_init_machine_status): Likewise.
15611 * config/avr/avr.c (avr_init_machine_status): Likewise.
15612 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15613 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15614 * config/cris/cris.c (cris_init_machine_status): Likewise.
15615 * config/darwin.c (machopic_indirection_name): Likewise.
15616 (darwin_build_constant_cfstring): Likewise.
15617 (darwin_enter_string_into_cfstring_table): Likewise.
15618 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15619 * config/frv/frv.c (frv_init_machine_status): Likewise.
15620 * config/i386/i386.c (get_dllimport_decl): Likewise.
15621 (ix86_init_machine_status): Likewise.
15622 (assign_386_stack_local): Likewise.
15623 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15624 (i386_pe_maybe_record_exported_symbol): Likewise.
15625 (i386_pe_record_stub): Likewise.
15626 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15627 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15628 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15629 (m32c_note_pragma_address): Likewise.
15630 * config/mep/mep.c (mep_init_machine_status): Likewise.
15631 (mep_note_pragma_flag): Likewise.
15632 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15633 (mips16_local_alias): Likewise.
15634 (mips_init_machine_status): Likewise.
15635 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15636 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15637 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15638 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15639 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15640 * config/pa/pa.c (pa_init_machine_status): Likewise.
15641 (pa_get_deferred_plabel): Likewise.
15642 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15643 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15644 (rs6000_init_machine_status): Likewise.
15645 (output_toc): Likewise.
15646 * config/s390/s390.c (s390_init_machine_status): Likewise.
15647 * config/score/score.c (score_output_external): Likewise.
15648 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15649 * config/spu/spu.c (spu_init_machine_status): Likewise.
15650 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15651 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15652 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15653 * coverage.c (coverage_end_function): Likewise.
15654 * dbxout.c (dbxout_init): Likewise.
15655 * doc/gty.texi: Don't mention variable_size attribute.
15656 * dwarf2cfi.c (new_cfi): Adjust.
15657 (new_cfi_row): Likewise.
15658 (copy_cfi_row): Likewise.
15659 (create_cie_data): Likewise.
15660 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15661 (new_loc_descr): Likewise.
15662 (find_AT_string_in_table): Likewise.
15663 (add_addr_table_entry): Likewise.
15664 (new_die): Likewise.
15665 (add_var_loc_to_decl): Likewise.
15666 (clone_die): Likewise.
15667 (clone_as_declaration): Likewise.
15668 (break_out_comdat_types): Likewise.
15669 (new_loc_list): Likewise.
15670 (add_loc_descr_to_each): Likewise.
15671 (add_location_or_const_value_attribute): Likewise.
15672 (add_linkage_name): Likewise.
15673 (lookup_filename): Likewise.
15674 (dwarf2out_var_location): Likewise.
15675 (new_line_info_table): Likewise.
15676 (dwarf2out_init): Likewise.
15677 (mem_loc_descriptor): Likewise.
15678 (loc_descriptor): Likewise.
15679 (add_const_value_attribute): Likewise.
15680 (tree_add_const_value_attribute): Likewise.
15681 (comp_dir_string): Likewise.
15682 (dwarf2out_vms_debug_main_pointer): Likewise.
15683 (string_cst_pool_decl): Likewise.
15684 * emit-rtl.c (set_mem_attrs): Likewise.
15685 (get_reg_attrs): Likewise.
15686 (start_sequence): Likewise.
15687 (init_emit): Likewise.
15688 (init_emit_regs): Likewise.
15689 * except.c (init_eh_for_function): Likewise.
15690 (gen_eh_region): Likewise.
15691 (gen_eh_region_catch): Likewise.
15692 (gen_eh_landing_pad): Likewise.
15693 (add_call_site): Likewise.
15694 * function.c (add_frame_space): Likewise.
15695 (insert_temp_slot_address): Likewise.
15696 (assign_stack_temp_for_type): Likewise.
15697 (get_hard_reg_initial_val): Likewise.
15698 (allocate_struct_function): Likewise.
15699 (prepare_function_start): Likewise.
15700 (types_used_by_var_decl_insert): Likewise.
15701 * gengtype.c (variable_size_p): Remove function.
15702 (enum alloc_quantity): Remove enum.
15703 (write_typed_alloc_def): Remove function.
15704 (write_typed_struct_alloc_def): Likewise.
15705 (write_typed_typedef_alloc_def): Likewise.
15706 (write_typed_alloc_defns): Likewise.
15707 (main): Adjust.
15708 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15709 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15710 * ggc.h (ggc_alloc): new function.
15711 (ggc_cleared_alloc): Likewise.
15712 (ggc_vec_alloc): Template on type of vector element, and remove
15713 element size argument.
15714 (ggc_cleared_vec_alloc): Likewise.
15715 * gimple.c (gimple_build_omp_for): Adjust.
15716 (gimple_copy): Likewise.
15717 * ipa-cp.c (get_replacement_map): Likewise.
15718 (find_aggregate_values_for_callers_subset): Likewise.
15719 (known_aggs_to_agg_replacement_list): Likewise.
15720 * ipa-devirt.c (get_odr_type): Likewise.
15721 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15722 (read_agg_replacement_chain): Likewise.
15723 * loop-iv.c (get_simple_loop_desc): Likewise.
15724 * lto-cgraph.c (input_node_opt_summary): Likewise.
15725 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15726 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15727 (input_eh_region): Likewise.
15728 (input_eh_lp): Likewise.
15729 (input_cfg): Likewise.
15730 * optabs.c (set_optab_libfunc): Likewise.
15731 (init_tree_optimization_optabs): Likewise.
15732 (set_conv_libfunc): Likewise.
15733 * passes.c (do_per_function_toporder): Likewise.
15734 * rtl.h: Don't use variable_size gty attribute.
15735 * sese.c (if_region_set_false_region): Adjust.
15736 * stringpool.c (gt_pch_save_stringpool): Likewise.
15737 * target-globals.c (save_target_globals): Likewise.
15738 * toplev.c (general_init): Likewise.
15739 * trans-mem.c (record_tm_replacement): Likewise.
15740 (split_bb_make_tm_edge): Likewise.
15741 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15742 * tree-data-ref.h (lambda_vector_new): Likewise.
15743 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15744 * tree-iterator.c (tsi_link_before): Likewise.
15745 (tsi_link_after): Likewise.
15746 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15747 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15748 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15749 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15750 * tree-ssa.c (init_tree_ssa): Adjust.
15751 * tree-ssanames.c (set_range_info): Likewise.
15752 (get_ptr_info): Likewise.
15753 (duplicate_ssa_name_ptr_info): Likewise.
15754 (duplicate_ssa_name_range_info): Likewise.
15755 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15756 (unpack_ts_fixed_cst_value_fields): Likewise.
15757 * tree.c (build_fixed): Likewise.
15758 (build_real): Likewise.
15759 (build_string): Likewise.
15760 (decl_priority_info): Likewise.
15761 (decl_debug_expr_insert): Likewise.
15762 (decl_value_expr_insert): Likewise.
15763 (decl_debug_args_insert): Likewise.
15764 (type_hash_add): Likewise.
15765 (build_omp_clause): Likewise.
15766 * ubsan.c (decl_for_type_insert): Likewise.
15767 * varasm.c (get_unnamed_section): Likewise.
15768 (get_noswitch_section): Likewise.
15769 (get_section): Likewise.
15770 (get_block_for_section): Likewise.
15771 (create_block_symbol): Likewise.
15772 (build_constant_desc): Likewise.
15773 (create_constant_pool): Likewise.
15774 (force_const_mem): Likewise.
15775 (record_tm_clone_pair): Likewise.
15776 * varpool.c (varpool_create_empty_node): Likewise.
15777
15778 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15779
15780 * dwarf2out.c (tree_add_const_value_attribute): Call
15781 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15782 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15783 instead of ggc_internal_<x>alloc_stat.
15784 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15785 (ggc_realloc): Likewise.
15786 * ggc-none.c (ggc_internal_alloc): Likewise.
15787 (ggc_internal_cleared_alloc): Likewise.
15788 * ggc-page.c: Likewise.
15789 * ggc.h (ggc_internal_alloc_stat): Likewise.
15790 (ggc_internal_alloc): Remove macro.
15791 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15792 (ggc_internal_cleared_alloc): Remove macro.
15793 (GGC_RESIZEVEC): Adjust.
15794 (ggc_resizevar): Remove macro.
15795 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15796 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15797 (ggc_internal_vec_cleared_alloc): Remove macro.
15798 (ggc_alloc_atomic_stat): Drop _stat suffix.
15799 (ggc_alloc_atomic): Remove macro.
15800 (ggc_alloc_cleared_atomic): Remove macro.
15801 (ggc_alloc_string_stat): Drop _stat suffix.
15802 (ggc_alloc_string): Remove macro.
15803 (ggc_alloc_rtx_def_stat): Adjust.
15804 (ggc_alloc_tree_node_stat): Likewise.
15805 (ggc_alloc_cleared_tree_node_stat): Likewise.
15806 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15807 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15808 * gimple.c (gimple_build_omp_for): Likewise.
15809 (gimple_copy): Likewise.
15810 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15811 * toplev.c (realloc_for_line_map): Adjust.
15812 * tree-data-ref.h (lambda_vector_new): Likewise.
15813 * tree-phinodes.c (allocate_phi_node): Likewise.
15814 * tree.c (grow_tree_vec_stat): Likewise.
15815 * vec.h (va_gc::reserve): Adjust.
15816
15817 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15818
15819 * config/microblaze/microblaze.c (break_handler): New Declaration.
15820 (microblaze_break_function_p,microblaze_is_break_handler): New.
15821 (compute_frame_size): Use microblaze_break_function_p.
15822 Add the test of break_handler.
15823 (microblaze_function_prologue) : Add the test of variable
15824 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15825 (microblaze_function_epilogue) : Add the test of break_handler.
15826 (microblaze_globalize_label) : Add the test of break_handler.
15827 Check the name by BREAK_HANDLER_NAME.
15828
15829 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15830
15831 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15832 microblaze_is_break_handler test.
15833 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15834 Use SYMBOL_REF_DECL.
15835
15836 * config/microblaze/microblaze-protos.h
15837 (microblaze_break_function_p,microblaze_is_break_handler):
15838 New Declaration.
15839
15840 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15841 new MicroBlaze break_handler functions.
15842
15843 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15844
15845 * doc/extend.texi (Size of an asm): Move node text according
15846 to its @menu entry position.
15847
15848 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15849
15850 PR tree-optimization/61140
15851 PR tree-optimization/61150
15852 PR tree-optimization/61197
15853 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15854
15855 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15856
15857 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15858
15859 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15860
15861 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15862 __SIZEOF_INT128__ is defined.
15863
15864 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15865
15866 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15867 (rs6000_delegitimize_address): Use it.
15868
15869 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15870
15871 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15872 inplace argument. Store the new address in the original MEM when true.
15873 * emit-rtl.c (change_address_1): Likewise.
15874 (adjust_address_1, adjust_automodify_address_1, offset_address):
15875 Update accordingly.
15876 * rtl.h (plus_constant): Add an inplace argument.
15877 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15878 when true. Avoid generating (plus X (const_int 0)).
15879 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15880 in-place. Pass true to plus_constant.
15881 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15882
15883 2014-05-16 Dehao Chen <dehao@google.com>
15884
15885 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15886
15887 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15888
15889 PR target/54089
15890 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15891 patterns.
15892 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15893
15894 2014-05-16 Dehao Chen <dehao@google.com>
15895
15896 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15897 optimize_function_for_size_p.
15898 * regs.h (REG_FREQ_FROM_BB): Likewise.
15899
15900 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15901
15902 PR target/51244
15903 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15904 negt_reg_operand cases.
15905 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15906 predicate.
15907 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15908
15909 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15910
15911 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15912 target variants.
15913
15914 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15915
15916 Revert:
15917 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15918
15919 * tree-cfg.c (dump_function_to_file): Dump the return type of
15920 functions, in a line to itself before the function body, mimicking
15921 the layout of a C function.
15922
15923 2014-05-16 Dehao Chen <dehao@google.com>
15924
15925 * cfghooks.c (make_forwarder_block): Use direct computation to
15926 get fall-through edge's count and frequency.
15927
15928 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15929
15930 * config/arc/arc.c (arc_init): Fix typo in error message.
15931 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15932 (split_stack_prologue_scratch_regno): Likewise.
15933 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15934 word from error message.
15935
15936 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15937
15938 * ira-costs.c: Fix typo in comment.
15939
15940 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15941
15942 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15943
15944 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15945
15946 * varpool.c (dump_varpool_node): Dump write-only flag.
15947 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15948 write-only flag.
15949 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15950 write-only variables.
15951 * ipa.c (process_references): New function.
15952 (set_readonly_bit): New function.
15953 (set_writeonly_bit): New function.
15954 (clear_addressable_bit): New function.
15955 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15956 fix handling of aliases.
15957 * cgraph.h (struct varpool_node): Add writeonly flag.
15958
15959 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15960
15961 PR rtl-optimization/60969
15962 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15963 Calculate costs for this case.
15964
15965 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15966
15967 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15968 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15969
15970 2014-05-16 Richard Biener <rguenther@suse.de>
15971
15972 PR tree-optimization/61194
15973 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15974 bool patterns ending in a COND_EXPR.
15975
15976 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15977
15978 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15979
15980 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15981
15982 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15983 where we were unable to cost an RTX.
15984
15985 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15986
15987 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15988 HIGH, LO_SUM.
15989
15990 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15991 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15992
15993 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15994
15995 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15996 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15997
15998 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15999 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16000
16001 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16002 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16003
16004 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16005 operators.
16006
16007 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16008 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16009
16010 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16011 DIV/MOD.
16012
16013 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16014 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16015
16016 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16017 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16018
16019 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16020 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16021
16022 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16023 rotates and shifts.
16024
16025 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16026 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16027
16028 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16029 ZERO_EXTEND and SIGN_EXTEND better.
16030
16031 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16032 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16033
16034 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16035 logical operations.
16036
16037 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16038 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16039
16040 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16041 costs when costing loads and stores to memory.
16042
16043 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16044 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16045
16046 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16047 for SET RTX.
16048
16049 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16050
16051 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16052
16053 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16054 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16055
16056 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16057 to...
16058 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16059 well formed.
16060 (aarch64_rtx_mult_cost): New.
16061 (aarch64_rtx_costs): Use it, refactor as appropriate.
16062
16063 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16064 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16065
16066 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16067 emit instructions, return number of instructions which would
16068 be emitted.
16069 (aarch64_add_constant): Update call to aarch64_build_constant.
16070 (aarch64_output_mi_thunk): Likewise.
16071 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16072 a CONST_DOUBLE.
16073
16074 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16075
16076 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16077 (TARGET_RTX_COSTS): Call it.
16078
16079 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16080
16081 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16082 (cortexa57_vector_cost): Likewise.
16083 (cortexa57_tunings): Use them.
16084
16085 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16086
16087 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16088 (cpu_addrcost_table): Use it.
16089 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16090 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16091 move it.
16092
16093 2014-05-16 Richard Biener <rguenther@suse.de>
16094
16095 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16096 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16097 (visit_phi): Ignore edges marked as not executable.
16098 (class cond_dom_walker): New.
16099 (cond_dom_walker::before_dom_children): Value-number
16100 control statements and mark successor edges as not
16101 executable if possible.
16102 (run_scc_vn): First walk all control statements in
16103 dominator order, marking edges as not executable.
16104 * tree-inline.c (copy_edges_for_bb): Be not confused
16105 about random edge flags.
16106
16107 2014-05-16 Richard Biener <rguenther@suse.de>
16108
16109 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16110
16111 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16112
16113 PR target/61193
16114 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16115 (__TM_simple_begin): Use it.
16116 (__TM_begin): Likewise.
16117
16118 2014-05-15 Martin Jambor <mjambor@suse.cz>
16119
16120 PR ipa/61085
16121 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16122 type_preserved flag when the indirect edge is polymorphic.
16123
16124 2014-05-15 Martin Jambor <mjambor@suse.cz>
16125
16126 PR tree-optimization/61090
16127 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16128 build_ref_for_model.
16129
16130 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16131
16132 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16133 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16134
16135 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16136
16137 PR tree-optimization/61158
16138 * fold-const.c (fold_binary_loc): If X is zero-extended and
16139 shiftc >= prec, make sure zerobits is all ones instead of
16140 invoking undefined behavior.
16141
16142 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16143
16144 * regcprop.h: New file.
16145 * regcprop.c (skip_debug_insn_p): New decl.
16146 (replace_oldest_value_reg): Check skip_debug_insn_p.
16147 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16148 * shrink-wrap.c: Include regcprop.h.
16149 (prepare_shrink_wrap): Call
16150 copyprop_hardreg_forward_bb_without_debug_insn.
16151
16152 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16153
16154 * shrink-wrap.h: Update comment.
16155 * shrink-wrap.c: Update comment.
16156 (next_block_for_reg): Rename to live_edge_for_reg.
16157 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16158 (move_insn_for_shrink_wrap): Split live_edge.
16159 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16160
16161 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16162
16163 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16164 Delete.
16165 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16166 * config/sparc/sparc.md (fptype_ut699): New attribute.
16167 (in_branch_delay): Return false if -mfix-ut699 is specified and
16168 fptype_ut699 is set to single.
16169 (truncdfsf2): Add fptype_ut699 attribute.
16170 (fix_truncdfsi2): Likewise.
16171 (floatsisf2): Change fptype attribute.
16172 (fix_truncsfsi2): Likewise.
16173 (negtf2_notv9): Delete.
16174 (negtf2_v9): Likewise.
16175 (negtf2_hq): New instruction.
16176 (negtf2): New instruction and splitter.
16177 (negdf2_notv9): Rewrite.
16178 (abstf2_notv9): Delete.
16179 (abstf2_hq_v9): Likewise.
16180 (abstf2_v9): Likewise.
16181 (abstf2_hq): New instruction.
16182 (abstf2): New instruction and splitter.
16183 (absdf2_notv9): Rewrite.
16184
16185 2014-05-14 Cary Coutant <ccoutant@google.com>
16186
16187 PR debug/61013
16188 * opts.c (common_handle_option): Don't special-case "-g".
16189 (set_debug_level): Default to at least level 2 with "-g".
16190
16191 2014-05-14 DJ Delorie <dj@redhat.com>
16192
16193 * config/msp430/msp430.c (msp430_builtin): Add
16194 MSP430_BUILTIN_DELAY_CYCLES.
16195 (msp430_init_builtins): Register void __delay_cycles(long long).
16196 (msp430_builtin_decl): Add it.
16197 (cg_magic_constant): New.
16198 (msp430_expand_delay_cycles): New.
16199 (msp430_expand_builtin): Call it.
16200 (msp430_print_operand_raw): Change integer printing from "int" to
16201 HOST_WIDE_INT.
16202 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16203 (delay_cycles_start): New.
16204 (delay_cycles_end): New.
16205 (delay_cycles_32): New.
16206 (delay_cycles_32x): New.
16207 (delay_cycles_16): New.
16208 (delay_cycles_16x): New.
16209 (delay_cycles_2): New.
16210 (delay_cycles_1): New.
16211 * doc/extend.texi: Document __delay_cycles().
16212
16213 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16214
16215 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16216 length attribute computation.
16217
16218 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16219
16220 PR debug/61188
16221 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16222
16223 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16224
16225 PR target/61084
16226 * config/sparc/sparc.md: Fix types of low and high in DI constant
16227 splitter. Use gen_int_mode in some other splitters.
16228
16229 2014-05-14 Martin Jambor <mjambor@suse.cz>
16230
16231 PR ipa/60897
16232 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16233
16234 2014-05-14 James Norris <jnorris@codesourcery.com>
16235
16236 * omp-low.c (expand_parallel_call): Remove shadow variable.
16237 (expand_omp_taskreg): Likewise.
16238
16239 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16240
16241 * common/config/i386/i386-common.c
16242 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16243 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16244 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16245 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16246 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16247 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16248 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16249 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16250 xsavecintrin.h, xsavesintrin.h.
16251 (x86_64-*-*): Ditto.
16252 * config/i386/clflushoptintrin.h: New.
16253 * config/i386/xsavecintrin.h: Ditto.
16254 * config/i386/xsavesintrin.h: Ditto.
16255 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16256 (bit_XSAVES): Ditto.
16257 (bit_XSAVES): Ditto.
16258 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16259 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16260 -mno-clflushopt.
16261 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16262 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16263 OPTION_MASK_ISA_XSAVES.
16264 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16265 -mxsavec, -mxsaves.
16266 (PTA_CLFLUSHOPT) Define.
16267 (PTA_XSAVEC): Ditto.
16268 (PTA_XSAVES): Ditto.
16269 (ix86_option_override_internal): Handle new options.
16270 (ix86_valid_target_attribute_inner_p): Ditto.
16271 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16272 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16273 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16274 (bdesc_special_args): Add __builtin_ia32_xsaves,
16275 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16276 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16277 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16278 (ix86_expand_builtin): Handle new builtins.
16279 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16280 (TARGET_CLFLUSHOPT_P): Ditto.
16281 (TARGET_XSAVEC): Ditto.
16282 (TARGET_XSAVEC_P): Ditto.
16283 (TARGET_XSAVES): Ditto.
16284 (TARGET_XSAVES_P): Ditto.
16285 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16286 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16287 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16288 (ANY_XRSTOR): New.
16289 (ANY_XRSTOR64): Ditto.
16290 (xrstor): Ditto.
16291 (xrstor): Change into <xrstor>.
16292 (xrstor_rex64): Change into <xrstor>_rex64.
16293 (xrstor64): Change into <xrstor>64
16294 (clflushopt): New.
16295 * config/i386/i386.opt (mclflushopt): New.
16296 (mxsavec): Ditto.
16297 (mxsaves): Ditto.
16298 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16299 xsavecintrin.h.
16300 * doc/invoke.texi: Document new options.
16301
16302 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16303
16304 PR rtl-optimization/60866
16305 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16306 Default it to -1. Pass it down to init_simplejump_data.
16307 (init_simplejump_data): New parameter old_seqno. Pass it down
16308 to get_seqno_for_a_jump.
16309 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16310 initializing new jump seqno as a last resort. Add comment.
16311 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16312 jump and pass it down to sel_init_new_insn.
16313 (sel_redirect_edge_and_branch_force): Likewise.
16314
16315 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16316
16317 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16318 shifted values to avoid build warning.
16319
16320 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16321
16322 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16323 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16324 (cfg_layout_merge_blocks): Likewise.
16325 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16326
16327 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16328
16329 PR rtl-optimization/60901
16330 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16331 bb predecessor belongs to the same scheduling region. Adjust comment.
16332
16333 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16334
16335 * doc/sourcebuild.texi: (dfp_hw): Document.
16336 (p8vector_hw): Likewise.
16337 (powerpc_eabi_ok): Likewise.
16338 (powerpc_elfv2): Likewise.
16339 (powerpc_htm_ok): Likewise.
16340 (ppc_recip_hw): Likewise.
16341 (vsx_hw): Likewise.
16342
16343 2014-05-13 Cary Coutant <ccoutant@google.com>
16344
16345 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16346
16347 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16348
16349 * gengtype-parse.c (require3): Eliminate in favor of...
16350 (require4): New.
16351 (require_template_declaration): Update to support optional single *
16352 on a type.
16353
16354 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16355 (create_user_defined_type): Handle a single level of explicit
16356 pointerness within template arguments.
16357 (struct write_types_data): Add field "kind".
16358 (filter_type_name): Handle "*" character.
16359 (write_user_func_for_structure_ptr): Require a write_types_data
16360 rather than just a prefix string, so that we can look up the kind
16361 of the wtd and use it as an index into wrote_user_func_for_ptr,
16362 ensuring that such functions are written at most once. Support
16363 subclasses by invoking the marking function of the ultimate base class.
16364 (write_user_func_for_structure_body): Require a write_types_data
16365 rather than just a prefix string, so that we can pass this to
16366 write_user_func_for_structure_ptr.
16367 (write_func_for_structure): Likewise.
16368 (ggc_wtd): Add initializer of new "kind" field.
16369 (pch_wtd): Likewise.
16370
16371 * gengtype.h (enum write_types_kinds): New.
16372 (struct type): Add field wrote_user_func_for_ptr to the "s"
16373 union member.
16374
16375 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16376
16377 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16378 instead of const_binop.
16379 (fold_binary_loc): Likewise.
16380
16381 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16382
16383 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16384 calculation to match get_ref_base_and_extent.
16385
16386 2014-05-13 Catherine Moore <clm@codesourcery.com>
16387 Sandra Loosemore <sandra@codesourcery.com>
16388
16389 * configure.ac: Fix assembly for explicit JALR relocation check.
16390 * configure: Regenerate.
16391
16392 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16393
16394 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16395 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16396 Remove associated type declarations and initialisations.
16397 (arm_expand_neon_builtin): Likewise.
16398 (neon_emit_pair_result_insn): Delete.
16399 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16400 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16401 (neon_vzip<mode>): Likewise.
16402 (neon_vuzp<mode>): Likewise.
16403
16404 2014-05-13 Richard Biener <rguenther@suse.de>
16405
16406 PR ipa/60973
16407 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16408 it needs revisiting whether the call still may be tail-called.
16409
16410 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16411
16412 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16413 * rtl.h (block_symbol): Reduce number of fields to 2.
16414 (rtx_def): Add u2.symbol_ref_flags.
16415 (SYMBOL_REF_FLAGS): Use it.
16416 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16417 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16418 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16419 Lower index of SYMBOL_REF_DATA.
16420 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16421 Print SYMBOL_REF_FLAGS at the same time.
16422 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16423
16424 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16425
16426 * rtl.def (VAR_LOCATION): Remove "i" field.
16427 * rtl.h (rtx_def): Add u2.var_location_status.
16428 (PAT_VAR_LOCATION_STATUS): Use it.
16429 (gen_rtx_VAR_LOCATION): Declare.
16430 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16431 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16432 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16433
16434 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16435
16436 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16437 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16438
16439 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16440
16441 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16442 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16443 * rtl.h (rtx_def): Add insn_uid to u2 field.
16444 (RTX_FLAG_CHECK8): Delete in favor of...
16445 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16446 (INSN_DELETED_P): Update accordingly.
16447 (INSN_UID): Use u2.insn_uid.
16448 (INSN_CHAIN_CODE_P): Define.
16449 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16450 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16451 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16452 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16453 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16454 indices accordingly.
16455 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16456 Update indices for insn-chain rtxes.
16457 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16458 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16459 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16460 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16461 * combine.c (try_combine): Likewise.
16462 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16463
16464 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16465
16466 * rtl.def (REG): Remove middle field.
16467 * rtl.h (rtx_def): Add orignal_regno to u2.
16468 (ORIGINAL_REGNO): Use it instead of field 1.
16469 (REG_ATTRS): Lower field index accordingly.
16470 * gengtype.c (adjust_field_rtx_def): Remove handling of
16471 ORIGINAL_REGNO. Move REG_ATTRS index down.
16472 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16473 code that prints the REGNO.
16474
16475 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16476
16477 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16478 GENERATOR_FILE.
16479
16480 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16481
16482 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16483
16484 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16485
16486 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16487 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16488
16489 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16490
16491 * config/aarch64/aarch64-protos.h
16492 (aarch64_hard_regno_caller_save_mode): New prototype.
16493 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16494 New function.
16495 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16496
16497 2014-05-13 Christian Bruel <christian.bruel@st.com>
16498
16499 * target.def (mode_switching): New hook vector.
16500 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16501 (mode_exit, modepriority_to_mode): Likewise.
16502 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16503 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16504 * target.h: Include tm.h and hard-reg-set.h.
16505 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16506 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16507 * doc/tm.texi Regenerate.
16508 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16509 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16510 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16511 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16512 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16513 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16514 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16515 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16516 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16517 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16518 (ix86_emit_mode_set): Hookify.
16519 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16520 Delete.
16521 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16522 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16523 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16524 (epiphany_mode_priority_to_mode): Remove declaration.
16525 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16526 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16527 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16528 Likewise.
16529 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16530 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16531 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16532
16533 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16534
16535 PR target/61060
16536 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16537 is const0_rtx, return immediately. Don't test count == 0 when
16538 it is always true.
16539
16540 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16541
16542 * Makefile.in: add shrink-wrap.o.
16543 * config/i386/i386.c: include "shrink-wrap.h"
16544 * function.c: Likewise.
16545 (requires_stack_frame_p, next_block_for_reg,
16546 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16547 dup_block_and_redirect): Move to shrink-wrap.c
16548 (thread_prologue_and_epilogue_insns): Extract three code segments
16549 as functions in shrink-wrap.c
16550 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16551 shrink-wrap.h
16552 * shrink-wrap.c: New file.
16553 * shrink-wrap.h: New file.
16554
16555 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16556
16557 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16558 reference to Solaris.
16559
16560 2014-05-12 Mike Stump <mikestump@comcast.net>
16561
16562 PR other/31778
16563 * genattrtab.c (filename): Add.
16564 (convert_set_attr_alternative): Improve error message.
16565 (check_defs): Restore read_md_filename for error messages.
16566 (gen_insn): Save filename.
16567
16568 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16569
16570 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16571 -fno-local-ivars and -fivar-visibility.
16572 * c-family/c.opt: Make -Wshadow also implicitly enable
16573 -Wshadow-ivar.
16574
16575 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16576
16577 * doc/tm.texi: Remove reference to deleted macro.
16578 * doc/tm.texi.in: Likewise.
16579
16580 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16581
16582 PR target/60991
16583 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16584 to restore Y.
16585
16586 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16587
16588 PR libgcc/61152
16589 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16590 * config/arm/aout.h (License): Same.
16591 * config/arm/bpabi.h (License): Same.
16592 * config/arm/elf.h (License): Same.
16593 * config/arm/linux-elf.h (License): Same.
16594 * config/arm/linux-gas.h (License): Same.
16595 * config/arm/netbsd-elf.h (License): Same.
16596 * config/arm/uclinux-eabi.h (License): Same.
16597 * config/arm/uclinux-elf.h (License): Same.
16598 * config/arm/vxworks.h (License): Same.
16599
16600 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16601
16602 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16603 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16604 number of operands to 3.
16605 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16606 * tree-nested.c (convert_nonlocal_omp_clauses,
16607 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16608 * gimplify.c (gimplify_scan_omp_clauses): Handle
16609 OMP_CLAUSE_LINEAR_STMT.
16610 * omp-low.c (lower_rec_input_clauses): Fix typo.
16611 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16612 cast between Fortran boolean_type_node and C _Bool if
16613 needed.
16614
16615 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16616
16617 PR tree-optimization/61136
16618 * wide-int.h (multiple_of_p): Define a version that doesn't return
16619 the quotient.
16620 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16621 integer_zerop/const_binop pair.
16622 (multiple_of_p): Likewise, converting both operands to widest_int
16623 precision.
16624
16625 2014-05-09 Teresa Johnson <tejohnson@google.com>
16626
16627 * cgraphunit.c (analyze_functions): Use correct dump file.
16628
16629 2014-05-09 Florian Weimer <fweimer@redhat.com>
16630
16631 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16632 expand_used_vars.
16633 (stack_protect_return_slot_p): New function.
16634 (expand_used_vars): Call stack_protect_decl_p and
16635 stack_protect_return_slot_p for -fstack-protector-strong.
16636
16637 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16638 Andrew Haley <aph@redhat.com>
16639 Richard Sandiford <rdsandiford@googlemail.com>
16640
16641 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16642 pages.
16643
16644 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16645
16646 PR middle-end/61111
16647 * fold-const.c (fold_binary_loc): Changed width of mask.
16648
16649 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16650
16651 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16652 unsigned int initializers for regno_in, regno_out.
16653
16654 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16655
16656 PR target/61055
16657 * config/avr/avr.md (cc): Add new attribute set_vzn.
16658 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16659 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16660 with INC, DEC or NEG.
16661 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16662 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16663 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16664
16665 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16666
16667 Revert:
16668 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16669
16670 * wide-int.cc (UTItype): Define.
16671 (UDWtype): Define for appropriate W_TYPE_SIZE.
16672
16673 2014-05-09 Richard Biener <rguenther@suse.de>
16674
16675 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16676 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16677 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16678 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16679 ssa_propagate): Adjust.
16680
16681 2014-05-08 Jeff Law <law@redhat.com>
16682
16683 PR tree-optimization/61009
16684 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16685 tri-state rather than a boolean. When a block is too big to
16686 thread through, inform caller via negative return value.
16687 (thread_across_edge): If a block was too big for normal threading,
16688 then it's too big for a joiner too, so remove temporary equivalences
16689 and return immediately.
16690
16691 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16692 Matthias Klose <doko@ubuntu.com>
16693
16694 PR driver/61106
16695 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16696
16697 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16698
16699 PR target/59952
16700 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16701
16702 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16703
16704 PR target/61092
16705 * config/alpha/alpha.c: Include gimple-iterator.h.
16706 (alpha_gimple_fold_builtin): New function. Move
16707 ALPHA_BUILTIN_UMULH folding from ...
16708 (alpha_fold_builtin): ... here.
16709 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16710
16711 2014-05-08 Wei Mi <wmi@google.com>
16712
16713 PR target/58066
16714 * config/i386/i386.c (ix86_compute_frame_layout): Update
16715 preferred_stack_boundary for call, expanded from tls descriptor.
16716 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16717 to depend on SP register.
16718 (*tls_local_dynamic_base_32_gnu): Ditto.
16719 (*tls_local_dynamic_32_once): Ditto.
16720 (tls_global_dynamic_64_<mode>): Set
16721 ix86_tls_descriptor_calls_expanded_in_cfun.
16722 (tls_local_dynamic_base_64_<mode>): Ditto.
16723 (tls_global_dynamic_32): Set
16724 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16725 to depend on SP register.
16726 (tls_local_dynamic_base_32): Ditto.
16727
16728 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16729
16730 * config/arm/arm_neon.h: Update comment.
16731 * config/arm/neon-docgen.ml: Delete.
16732 * config/arm/neon-gen.ml: Delete.
16733 * doc/arm-neon-intrinsics.texi: Update comment.
16734
16735 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16736
16737 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16738 and v4sf versions.
16739 (vand, vorr, veor, vorn, vbic): Remove.
16740 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16741 iterator.
16742 (neon_vsub_unspec): Likewise.
16743 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16744
16745 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16746
16747 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16748 (vadd_s16): Likewise.
16749 (vadd_s32): Likewise.
16750 (vadd_f32): Likewise.
16751 (vadd_u8): Likewise.
16752 (vadd_u16): Likewise.
16753 (vadd_u32): Likewise.
16754 (vadd_s64): Likewise.
16755 (vadd_u64): Likewise.
16756 (vaddq_s8): Likewise.
16757 (vaddq_s16): Likewise.
16758 (vaddq_s32): Likewise.
16759 (vaddq_s64): Likewise.
16760 (vaddq_f32): Likewise.
16761 (vaddq_u8): Likewise.
16762 (vaddq_u16): Likewise.
16763 (vaddq_u32): Likewise.
16764 (vaddq_u64): Likewise.
16765 (vmul_s8): Likewise.
16766 (vmul_s16): Likewise.
16767 (vmul_s32): Likewise.
16768 (vmul_f32): Likewise.
16769 (vmul_u8): Likewise.
16770 (vmul_u16): Likewise.
16771 (vmul_u32): Likewise.
16772 (vmul_p8): Likewise.
16773 (vmulq_s8): Likewise.
16774 (vmulq_s16): Likewise.
16775 (vmulq_s32): Likewise.
16776 (vmulq_f32): Likewise.
16777 (vmulq_u8): Likewise.
16778 (vmulq_u16): Likewise.
16779 (vmulq_u32): Likewise.
16780 (vsub_s8): Likewise.
16781 (vsub_s16): Likewise.
16782 (vsub_s32): Likewise.
16783 (vsub_f32): Likewise.
16784 (vsub_u8): Likewise.
16785 (vsub_u16): Likewise.
16786 (vsub_u32): Likewise.
16787 (vsub_s64): Likewise.
16788 (vsub_u64): Likewise.
16789 (vsubq_s8): Likewise.
16790 (vsubq_s16): Likewise.
16791 (vsubq_s32): Likewise.
16792 (vsubq_s64): Likewise.
16793 (vsubq_f32): Likewise.
16794 (vsubq_u8): Likewise.
16795 (vsubq_u16): Likewise.
16796 (vsubq_u32): Likewise.
16797 (vsubq_u64): Likewise.
16798 (vand_s8): Likewise.
16799 (vand_s16): Likewise.
16800 (vand_s32): Likewise.
16801 (vand_u8): Likewise.
16802 (vand_u16): Likewise.
16803 (vand_u32): Likewise.
16804 (vand_s64): Likewise.
16805 (vand_u64): Likewise.
16806 (vandq_s8): Likewise.
16807 (vandq_s16): Likewise.
16808 (vandq_s32): Likewise.
16809 (vandq_s64): Likewise.
16810 (vandq_u8): Likewise.
16811 (vandq_u16): Likewise.
16812 (vandq_u32): Likewise.
16813 (vandq_u64): Likewise.
16814 (vorr_s8): Likewise.
16815 (vorr_s16): Likewise.
16816 (vorr_s32): Likewise.
16817 (vorr_u8): Likewise.
16818 (vorr_u16): Likewise.
16819 (vorr_u32): Likewise.
16820 (vorr_s64): Likewise.
16821 (vorr_u64): Likewise.
16822 (vorrq_s8): Likewise.
16823 (vorrq_s16): Likewise.
16824 (vorrq_s32): Likewise.
16825 (vorrq_s64): Likewise.
16826 (vorrq_u8): Likewise.
16827 (vorrq_u16): Likewise.
16828 (vorrq_u32): Likewise.
16829 (vorrq_u64): Likewise.
16830 (veor_s8): Likewise.
16831 (veor_s16): Likewise.
16832 (veor_s32): Likewise.
16833 (veor_u8): Likewise.
16834 (veor_u16): Likewise.
16835 (veor_u32): Likewise.
16836 (veor_s64): Likewise.
16837 (veor_u64): Likewise.
16838 (veorq_s8): Likewise.
16839 (veorq_s16): Likewise.
16840 (veorq_s32): Likewise.
16841 (veorq_s64): Likewise.
16842 (veorq_u8): Likewise.
16843 (veorq_u16): Likewise.
16844 (veorq_u32): Likewise.
16845 (veorq_u64): Likewise.
16846 (vbic_s8): Likewise.
16847 (vbic_s16): Likewise.
16848 (vbic_s32): Likewise.
16849 (vbic_u8): Likewise.
16850 (vbic_u16): Likewise.
16851 (vbic_u32): Likewise.
16852 (vbic_s64): Likewise.
16853 (vbic_u64): Likewise.
16854 (vbicq_s8): Likewise.
16855 (vbicq_s16): Likewise.
16856 (vbicq_s32): Likewise.
16857 (vbicq_s64): Likewise.
16858 (vbicq_u8): Likewise.
16859 (vbicq_u16): Likewise.
16860 (vbicq_u32): Likewise.
16861 (vbicq_u64): Likewise.
16862 (vorn_s8): Likewise.
16863 (vorn_s16): Likewise.
16864 (vorn_s32): Likewise.
16865 (vorn_u8): Likewise.
16866 (vorn_u16): Likewise.
16867 (vorn_u32): Likewise.
16868 (vorn_s64): Likewise.
16869 (vorn_u64): Likewise.
16870 (vornq_s8): Likewise.
16871 (vornq_s16): Likewise.
16872 (vornq_s32): Likewise.
16873 (vornq_s64): Likewise.
16874 (vornq_u8): Likewise.
16875 (vornq_u16): Likewise.
16876 (vornq_u32): Likewise.
16877 (vornq_u64): Likewise.
16878
16879 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16880
16881 * wide-int.cc (UTItype): Define.
16882 (UDWtype): Define for appropriate W_TYPE_SIZE.
16883
16884 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16885
16886 PR tree-optimization/59100
16887 * tree-ssa-phiopt.c: Include tree-inline.h.
16888 (neutral_element_p, absorbing_element_p): New functions.
16889 (value_replacement): Handle conditional binary operations with a
16890 neutral or absorbing element.
16891
16892 2014-05-08 Richard Biener <rguenther@suse.de>
16893
16894 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16895 folding the expression.
16896 (valueize_expr): Remove.
16897 (visit_reference_op_load): Do not valueize the result of
16898 vn_get_expr_for.
16899 (simplify_binary_expression): Likewise.
16900 (simplify_unary_expression): Likewise.
16901
16902 2014-05-08 Richard Biener <rguenther@suse.de>
16903
16904 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16905 looking at TYPE_ARG_TYPES.
16906
16907 2014-05-08 Richard Biener <rguenther@suse.de>
16908
16909 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16910 pointer propagation special-case.
16911
16912 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16913
16914 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16915 core part of address expressions.
16916
16917 2014-05-08 Alan Modra <amodra@gmail.com>
16918
16919 PR target/60737
16920 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16921 loads and stores when -mno-strict-align at any alignment.
16922 (expand_block_clear): Similarly. Also correct calculation of
16923 instruction count.
16924
16925 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16926
16927 PR middle-end/39246
16928 * tree-complex.c (expand_complex_move): Keep line info when expanding
16929 complex move.
16930 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16931 of complex expression. Use new argument to display correct location
16932 for values coming from phi statement.
16933 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16934 (warn_uninitialized_phi): Pass location of phi argument to
16935 warn_uninit.
16936 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16937 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16938
16939 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16940
16941 * config/rs6000/predicates.md (indexed_address_mem): New.
16942 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16943 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16944 fpstore_ux, fpstore_u.
16945 (sign_extend, indexed, update): New.
16946 (cell_micro): Adjust.
16947 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16948 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16949 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16950 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16951 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16952 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16953 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16954 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16955 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16956 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16957 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16958 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16959 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16960 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16961 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16962
16963 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16964 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16965 *vsx_extract_<mode>_store): Adjust.
16966 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16967 is_cracked_insn, insn_must_be_first_in_group,
16968 insn_must_be_last_in_group): Adjust.
16969
16970 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16971 Adjust.
16972 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16973 ppc440-fpstore): Adjust.
16974 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16975 ppc476-fpstore): Adjust.
16976 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16977 ppc601-fpstore): Adjust.
16978 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16979 Adjust.
16980 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16981 Adjust.
16982 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16983 ppc7450-fpstore): Adjust.
16984 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16985 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16986 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16987 Adjust.
16988 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16989 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16990 cell-fpstore, cell-fpstore-update): Adjust.
16991 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16992 ppce300c3_store, ppce300c3_fpstore): Adjust.
16993 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16994 e500mc_fpstore): Adjust.
16995 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16996 e500mc64_store, e500mc64_fpstore): Adjust.
16997 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16998 e5500_fpstore): Adjust.
16999 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17000 e6500_fpstore): Adjust.
17001 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17002 Adjust.
17003 * config/rs6000/power4.md (power4-load, power4-load-ext,
17004 power4-load-ext-update, power4-load-ext-update-indexed,
17005 power4-load-update-indexed, power4-load-update, power4-fpload,
17006 power4-fpload-update, power4-store, power4-store-update,
17007 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17008 Adjust.
17009 * config/rs6000/power5.md (power5-load, power5-load-ext,
17010 power5-load-ext-update, power5-load-ext-update-indexed,
17011 power5-load-update-indexed, power5-load-update, power5-fpload,
17012 power5-fpload-update, power5-store, power5-store-update,
17013 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17014 Adjust.
17015 * config/rs6000/power6.md (power6-load, power6-load-ext,
17016 power6-load-update, power6-load-update-indexed,
17017 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17018 power6-fpload-update, power6-store, power6-store-update,
17019 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17020 Adjust.
17021 * config/rs6000/power7.md (power7-load, power7-load-ext,
17022 power7-load-update, power7-load-update-indexed,
17023 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17024 power7-fpload-update, power7-store, power7-store-update,
17025 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17026 Adjust.
17027 * config/rs6000/power8.md (power8-load, power8-load-update,
17028 power8-load-ext, power8-load-ext-update, power8-fpload,
17029 power8-fpload-update, power8-store, power8-store-update-indexed,
17030 power8-fpstore, power8-fpstore-update): Adjust.
17031 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17032 Adjust.
17033 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17034 titan_lsu_store, titan_lsu_fpstore): Adjust.
17035 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17036
17037 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17038
17039 PR target/60884
17040 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17041 unrolled byte insns. Emit address increments after move insns.
17042
17043 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17044
17045 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17046 const_gimple, rather than a gimple.
17047 (gimple_call_builtin_p): Likewise, for the three variants.
17048
17049 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17050 (gimple_call_builtin_p): Likewise, for the three variants.
17051
17052 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17053
17054 PR tree-optimization/61095
17055 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17056
17057 2014-05-07 Richard Biener <rguenther@suse.de>
17058
17059 PR tree-optimization/61034
17060 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17061 (maybe_skip_until): Use translate to take into account
17062 lattices when trying to do disambiguations.
17063 (get_continuation_for_phi_1): Likewise.
17064 (get_continuation_for_phi): Adjust for added translate arguments.
17065 (walk_non_aliased_vuses): Likewise.
17066 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17067 (walk_non_aliased_vuses): Likewise.
17068 (call_may_clobber_ref_p_1): Declare.
17069 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17070 calls. Stop early if we are only supposed to disambiguate.
17071 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17072
17073 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17074
17075 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17076 Emit an error when the function has arguments.
17077
17078 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17079
17080 * cfgloop.h (unswitch_loops): Remove.
17081 * doc/passes.texi: Remove references to loop-unswitch.c
17082 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17083
17084 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17085
17086 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17087 check for loads group of length 3.
17088 (vect_permute_load_chain): New permutations for loads group of
17089 length 3.
17090 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17091 of vec_perm_shuffle for the new permutations.
17092
17093 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17094
17095 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17096 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17097 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17098 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17099 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17100 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17101 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17102 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17103
17104 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17105
17106 * loop-unswitch.c: Delete.
17107
17108 2014-05-07 Richard Biener <rguenther@suse.de>
17109
17110 * config.gcc: Always set need_64bit_hwint to yes.
17111
17112 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17113
17114 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17115 of using optimize_size.
17116
17117 2014-05-06 Mike Stump <mikestump@comcast.net>
17118
17119 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17120
17121 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17122
17123 * config/i386/sse.md (*mov<mode>_internal)
17124 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17125 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17126 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17127 (*<code><mode>3, *andnot<mode>3<mask_name>)
17128 (<mask_codefor><code><mode>3<mask_name>): Only consider
17129 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17130
17131 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17132
17133 Revert:
17134 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17135
17136 * lra-constraints.c (valid_address_p): Move earlier in file.
17137 Add a constraint argument to the address_info version.
17138 (satisfies_memory_constraint_p): New function.
17139 (satisfies_address_constraint_p): Likewise.
17140 (process_alt_operands, curr_insn_transform): Use them.
17141 (process_address): Pass the constraint to valid_address_p when
17142 checking address operands.
17143
17144 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17145
17146 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17147 to their respective blocks. Fix inadvertent use of "node".
17148
17149 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17150
17151 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17152 out from...
17153 (init_emit_once): ...here.
17154 * rtl.h (init_derived_machine_modes): Declare.
17155 * toplev.c (do_compile): Call it even if no_backend.
17156
17157 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17158 Mike Stump <mikestump@comcast.net>
17159 Richard Sandiford <rdsandiford@googlemail.com>
17160 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17161
17162 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17163 (rtx_equal_for_memref_p): Update comment.
17164 (adjust_offset_for_component_ref): Use wide-int interfaces.
17165 * builtins.c (get_object_alignment_2): Likewise.
17166 (c_readstr): Likewise.
17167 (target_char_cast): Add comment.
17168 (determine_block_size): Use wide-int interfaces.
17169 (expand_builtin_signbit): Likewise.
17170 (fold_builtin_int_roundingfn): Likewise.
17171 (fold_builtin_bitop): Likewise.
17172 (fold_builtin_bswap): Likewise.
17173 (fold_builtin_logarithm): Use signop.
17174 (fold_builtin_pow): Likewise.
17175 (fold_builtin_memory_op): Use wide-int interfaces.
17176 (fold_builtin_object_size): Likewise.
17177 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17178 nb_iterations_estimate.
17179 (record_niter_bound): Use wide-int interfaces.
17180 (get_estimated_loop_iterations_int): Likewise.
17181 (get_estimated_loop_iterations): Likewise.
17182 (get_max_loop_iterations): Likewise.
17183 * cfgloop.h: Include wide-int.h.
17184 (struct nb_iter_bound): Change bound to widest_int.
17185 (struct loop): Change nb_iterations_upper_bound and
17186 nb_iterations_estimate to widest_int.
17187 (record_niter_bound): Switch to use widest_int.
17188 (get_estimated_loop_iterations): Likewise.
17189 (get_max_loop_iterations): Likewise.
17190 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17191 update for wide-int.
17192 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17193 * combine.c (try_combine): Likewise.
17194 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17195 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17196 interfaces.
17197 (aarch64_float_const_representable_p): Likewise.
17198 * config/arc/arc.c: Include wide-int.h.
17199 (arc_can_use_doloop_p): Use wide-int interfaces.
17200 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17201 (vfp3_const_double_index): Likewise.
17202 * config/avr/avr.c (avr_out_round): Likewise.
17203 (avr_fold_builtin): Likewise.
17204 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17205 (bfin_can_use_doloop_p): Likewise.
17206 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17207 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17208 * config/i386/i386.c: Include wide-int.h.
17209 (ix86_data_alignment): Use wide-int interfaces.
17210 (ix86_local_alignment): Likewise.
17211 (ix86_emit_swsqrtsf): Update real_from_integer.
17212 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17213 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17214 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17215 (zero_constant): Likewise.
17216 (input_operand): Likewise.
17217 (splat_input_operand): Likewise.
17218 (non_logical_cint_operand): Change const_double to const_wide_int.
17219 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17220 (easy_altivec_constant): Remove comment.
17221 (paired_expand_vector_init): Use CONSTANT_P.
17222 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17223 (rs6000_emit_move): Update checks.
17224 (rs6000_aggregate_candidate): Use wide-int interfaces.
17225 (rs6000_expand_ternop_builtin): Likewise.
17226 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17227 (rs6000_assemble_integer): Likewise.
17228 (rs6000_hash_constant): Likewise.
17229 (output_toc): Likewise.
17230 (rs6000_rtx_costs): Likewise.
17231 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17232 * config/rs6000/rs6000-c.c: Include wide-int.h.
17233 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17234 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17235 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17236 Handle CONST_WIDE_INT.
17237 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17238 Use tree_fits_uhwi_p.
17239 * config/sparc/sparc.c: Include wide-int.h.
17240 (sparc_fold_builtin): Use wide-int interfaces.
17241 * config/vax/vax.c: Include wide-int.h.
17242 (vax_float_literal): Use real_from_integer.
17243 * coretypes.h (struct hwivec_def): New.
17244 (hwivec): New.
17245 (const_hwivec): New.
17246 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17247 (equiv_constant): Handle CONST_WIDE_INT.
17248 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17249 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17250 * dbxout.c (stabstr_U): Use wide-int interfaces.
17251 (dbxout_type): Update to use cst_fits_shwi_p.
17252 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17253 (TARGET_SUPPORTS_WIDE_INT): Add default.
17254 * dfp.c: Include wide-int.h.
17255 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17256 decimal_real_to_integer.
17257 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17258 decimal_real_to_integer.
17259 * doc/generic.texi (Constant expressions): Update for wide_int.
17260 * doc/rtl.texi (const_double): Likewise.
17261 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17262 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17263 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17264 (REAL_VALUE_FROM_INT): Remove.
17265 (TARGET_SUPPORTS_WIDE_INT): New.
17266 * doc/tm.texi: Regenerate.
17267 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17268 * double-int.h: Include wide-int.h.
17269 (struct wi::int_traits): New.
17270 * dwarf2out.c (get_full_len): New.
17271 (dw_val_equal_p): Add case dw_val_class_wide_int.
17272 (size_of_loc_descr): Likewise.
17273 (output_loc_operands): Likewise.
17274 (insert_double): Remove.
17275 (insert_wide_int): New.
17276 (add_AT_wide): New.
17277 (print_die): Add case dw_val_class_wide_int.
17278 (attr_checksum): Likewise.
17279 (attr_checksum_ordered): Likewise.
17280 (same_dw_val_p): Likewise.
17281 (size_of_die): Likewise.
17282 (value_format): Likewise.
17283 (output_die): Likewise.
17284 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17285 Use wide-int.
17286 (clz_loc_descriptor): Use wide-int interfaces.
17287 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17288 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17289 (round_up_to_align): Use wide-int interfaces.
17290 (field_byte_offset): Likewise.
17291 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17292 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17293 CONST_DOUBLE handling. Use wide-int interfaces.
17294 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17295 (gen_enumeration_type_die): Use add_AT_wide.
17296 (hash_loc_operands): Add case dw_val_class_wide_int.
17297 (compare_loc_operands): Likewise.
17298 * dwarf2out.h: Include wide-int.h.
17299 (wide_int_ptr): New.
17300 (enum dw_val_class): Add dw_val_class_wide_int.
17301 (struct dw_val_struct): Add val_wide.
17302 * emit-rtl.c (const_wide_int_htab): New.
17303 (const_wide_int_htab_hash): New.
17304 (const_wide_int_htab_eq): New.
17305 (lookup_const_wide_int): New.
17306 (const_double_htab_hash): Use wide-int interfaces.
17307 (const_double_htab_eq): Likewise.
17308 (rtx_to_double_int): Conditionally compile for wide-int.
17309 (immed_double_int_const): Rename to immed_wide_int_const and
17310 update for wide-int.
17311 (immed_double_const): Conditionally compile for wide-int.
17312 (init_emit_once): Use wide-int interfaces.
17313 * explow.c (plus_constant): Likewise.
17314 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17315 (lshift_value): Use wide-int interfaces.
17316 (expand_mult): Likewise.
17317 (choose_multiplier): Likewise.
17318 (expand_smod_pow2): Likewise.
17319 (make_tree): Likewise.
17320 * expr.c (convert_modes): Consolidate handling of constants.
17321 Use wide-int interfaces.
17322 (emit_group_load_1): Add note.
17323 (store_expr): Update comment.
17324 (get_inner_reference): Use wide-int interfaces.
17325 (expand_constructor): Update comment.
17326 (expand_expr_real_2): Use wide-int interfaces.
17327 (expand_expr_real_1): Likewise.
17328 (reduce_to_bit_field_precision): Likewise.
17329 (const_vector_from_tree): Likewise.
17330 * final.c: Include wide-int-print.h.
17331 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17332 * fixed-value.c: Include wide-int.h.
17333 (fixed_from_string): Use wide-int interfaces.
17334 (fixed_to_decimal): Likewise.
17335 (fixed_convert_from_real): Likewise.
17336 (real_convert_from_fixed): Likewise.
17337 * fold-const.h (mem_ref_offset): Return an offset_int.
17338 (div_if_zero_remainder): Remove code parameter.
17339 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17340 Use wide-int interfaces.
17341 (may_negate_without_overflow_p): Use wide-int interfaces.
17342 (negate_expr_p): Likewise.
17343 (fold_negate_expr): Likewise.
17344 (int_const_binop_1): Likewise.
17345 (const_binop): Likewise.
17346 (fold_convert_const_int_from_int): Likewise.
17347 (fold_convert_const_int_from_real): Likewise.
17348 (fold_convert_const_int_from_fixed): Likewise.
17349 (fold_convert_const_fixed_from_int): Likewise.
17350 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17351 (sign_bit_p): Use wide-int interfaces.
17352 (make_range_step): Likewise.
17353 (build_range_check): Likewise. Pass an integer of the correct type
17354 instead of using integer_one_node.
17355 (range_predecessor): Pass an integer of the correct type instead
17356 of using integer_one_node.
17357 (range_successor): Likewise.
17358 (merge_ranges): Likewise.
17359 (unextend): Use wide-int interfaces.
17360 (extract_muldiv_1): Likewise.
17361 (fold_div_compare): Likewise.
17362 (fold_single_bit_test): Likewise.
17363 (fold_sign_changed_comparison): Likewise.
17364 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17365 (fold_plusminus_mult_expr): Use wide-int interfaces.
17366 (native_encode_int): Likewise.
17367 (native_interpret_int): Likewise.
17368 (fold_unary_loc): Likewise.
17369 (pointer_may_wrap_p): Likewise.
17370 (size_low_cst): Likewise.
17371 (mask_with_tz): Likewise.
17372 (fold_binary_loc): Likewise.
17373 (fold_ternary_loc): Likewise.
17374 (multiple_of_p): Likewise.
17375 (tree_call_nonnegative_warnv_p): Update calls to
17376 tree_int_cst_min_precision and real_from_integer.
17377 (fold_negate_const): Use wide-int interfaces.
17378 (fold_abs_const): Likewise.
17379 (fold_relational_const): Use tree_int_cst_lt.
17380 (round_up_loc): Use wide-int interfaces.
17381 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17382 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17383 * gengtype.c: Remove include of double-int.h.
17384 (do_typedef): Use wide-int interfaces.
17385 (open_base_files): Add wide-int.h.
17386 (main): Add offset_int and widest_int typedefs.
17387 * gengtype-lex.l: Handle "^".
17388 (CXX_KEYWORD): Add "static".
17389 * gengtype-parse.c (require3): New.
17390 (require_template_declaration): Handle constant template arguments
17391 and nested templates.
17392 * gengtype-state.c: Don't include "double-int.h".
17393 * genpreds.c (write_one_predicate_function): Update comment.
17394 (write_tm_constrs_h): Add check for hval and lval use in
17395 CONST_WIDE_INT.
17396 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17397 (add_to_sequence): Likewise.
17398 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17399 and const_double_operand.
17400 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17401 interfaces.
17402 * gimple-fold.c (get_base_constructor): Likewise.
17403 (fold_array_ctor_reference): Likewise.
17404 (fold_nonarray_ctor_reference): Likewise.
17405 (fold_const_aggregate_ref_1): Likewise.
17406 (gimple_val_nonnegative_real_p): Likewise.
17407 (gimple_fold_indirect_ref): Likewise.
17408 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17409 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17410 (struct slsr_cand_d): Change index to be widest_int.
17411 (struct incr_info_d): Change incr to be widest_int.
17412 (alloc_cand_and_find_basis): Use wide-int interfaces.
17413 (slsr_process_phi): Likewise.
17414 (backtrace_base_for_ref): Likewise. Return a widest_int.
17415 (restructure_reference): Take a widest_int instead of a double_int.
17416 (slsr_process_ref): Use wide-int interfaces.
17417 (create_mul_ssa_cand): Likewise.
17418 (create_mul_imm_cand): Likewise.
17419 (create_add_ssa_cand): Likewise.
17420 (create_add_imm_cand): Take a widest_int instead of a double_int.
17421 (slsr_process_add): Use wide-int interfaces.
17422 (slsr_process_cast): Likewise.
17423 (slsr_process_copy): Likewise.
17424 (dump_candidate): Likewise.
17425 (dump_incr_vec): Likewise.
17426 (replace_ref): Likewise.
17427 (cand_increment): Likewise. Return a widest_int.
17428 (cand_abs_increment): Likewise.
17429 (replace_mult_candidate): Take a widest_int instead of a double_int.
17430 (replace_unconditional_candidate): Use wide-int interfaces.
17431 (incr_vec_index): Take a widest_int instead of a double_int.
17432 (create_add_on_incoming_edge): Likewise.
17433 (create_phi_basis): Use wide-int interfaces.
17434 (replace_conditional_candidate): Likewise.
17435 (record_increment): Take a widest_int instead of a double_int.
17436 (record_phi_increments): Use wide-int interfaces.
17437 (phi_incr_cost): Take a widest_int instead of a double_int.
17438 (lowest_cost_path): Likewise.
17439 (total_savings): Likewise.
17440 (analyze_increments): Use wide-int interfaces.
17441 (ncd_with_phi): Take a widest_int instead of a double_int.
17442 (ncd_of_cand_and_phis): Likewise.
17443 (nearest_common_dominator_for_cands): Likewise.
17444 (insert_initializers): Use wide-int interfaces.
17445 (all_phi_incrs_profitable): Likewise.
17446 (replace_one_candidate): Likewise.
17447 (replace_profitable_candidates): Likewise.
17448 * godump.c: Include wide-int-print.h.
17449 (go_output_typedef): Use wide-int interfaces.
17450 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17451 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17452 (build_loop_iteration_domains): Likewise.
17453 * hooks.h: Include wide-int.h rather than double-int.h.
17454 (hook_bool_dint_dint_uint_bool_true): Delete.
17455 (hook_bool_wint_wint_uint_bool_true): Declare.
17456 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17457 (hook_bool_wint_wint_uint_bool_true): New.
17458 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17459 interfaces.
17460 (ubsan_expand_si_overflow_mul_check): Likewise.
17461 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17462 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17463 (get_ancestor_addr_info): Likewise.
17464 (ipa_modify_call_arguments): Likewise.
17465 * loop-doloop.c (doloop_modify): Likewise.
17466 (doloop_optimize): Likewise.
17467 * loop-iv.c (iv_number_of_iterations): Likewise.
17468 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17469 (unroll_loop_constant_iterations): Likewise.
17470 (decide_unroll_runtime_iterations): Likewise.
17471 (unroll_loop_runtime_iterations): Likewise.
17472 (decide_peel_simple): Likewise.
17473 (decide_unroll_stupid): Likewise.
17474 * lto-streamer-in.c (streamer_read_wi): Add.
17475 (input_cfg): Use wide-int interfaces.
17476 (lto_input_tree_1): Likewise.
17477 * lto-streamer-out.c (streamer_write_wi): Add.
17478 (hash_tree): Use wide-int interfaces.
17479 (output_cfg): Likewise.
17480 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17481 (GTFILES): Add wide-int.h and signop.h.
17482 (TAGS): Look for .cc files too.
17483 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17484 * optabs.c (expand_subword_shift): Likewise.
17485 (expand_doubleword_shift): Likewise.
17486 (expand_absneg_bit): Likewise.
17487 (expand_copysign_absneg): Likewise.
17488 (expand_copysign_bit): Likewise.
17489 * postreload.c (reload_cse_simplify_set): Likewise.
17490 * predict.c (predict_iv_comparison): Likewise.
17491 * pretty-print.h: Include wide-int-print.h.
17492 (pp_wide_int) New.
17493 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17494 * print-tree.c: Include wide-int-print.h.
17495 (print_node_brief): Use wide-int interfaces.
17496 (print_node): Likewise.
17497 * read-rtl.c (validate_const_wide_int): New.
17498 (read_rtx_code): Add CONST_WIDE_INT case.
17499 * real.c: Include wide-int.h.
17500 (real_to_integer2): Delete.
17501 (real_to_integer): New function, returning a wide_int.
17502 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17503 (ten_to_ptwo): Update call to real_from_integer.
17504 (real_digit): Likewise.
17505 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17506 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17507 (REAL_VALUE_TO_INT): Delete.
17508 (real_to_integer): Declare a wide-int form.
17509 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17510 * recog.c (const_int_operand): Improve comment.
17511 (const_scalar_int_operand): New.
17512 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17513 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17514 (split_double): Likewise.
17515 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17516 (rtx_size): Likewise.
17517 (rtx_alloc_stat_v): New.
17518 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17519 (cwi_output_hex): New.
17520 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17521 (cwi_check_failed_bounds): New.
17522 * rtl.def (CONST_WIDE_INT): New.
17523 * rtl.h: Include <utility> and wide-int.h.
17524 (struct hwivec_def): New.
17525 (CWI_GET_NUM_ELEM): New.
17526 (CWI_PUT_NUM_ELEM): New.
17527 (struct rtx_def): Add num_elem and hwiv.
17528 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17529 (CASE_CONST_UNIQUE): Likewise.
17530 (CASE_CONST_ANY): Likewise.
17531 (CONST_SCALAR_INT_P): Likewise.
17532 (CONST_WIDE_INT_P): New.
17533 (CWI_ELT): New.
17534 (HWIVEC_CHECK): New.
17535 (cwi_check_failed_bounds): New.
17536 (CWI_ELT): New.
17537 (HWIVEC_CHECK): New.
17538 (CONST_WIDE_INT_VEC) New.
17539 (CONST_WIDE_INT_NUNITS) New.
17540 (CONST_WIDE_INT_ELT) New.
17541 (rtx_mode_t): New type.
17542 (wi::int_traits <rtx_mode_t>): New.
17543 (wi::shwi): New.
17544 (wi::min_value): New.
17545 (wi::max_value): New.
17546 (rtx_alloc_v) New.
17547 (const_wide_int_alloc): New.
17548 (immed_wide_int_const): New.
17549 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17550 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17551 * signop.h: New file.
17552 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17553 (simplify_const_unary_operation): Use wide-int interfaces.
17554 (simplify_binary_operation_1): Likewise.
17555 (simplify_const_binary_operation): Likewise.
17556 (simplify_const_relational_operation): Likewise.
17557 (simplify_immed_subreg): Likewise.
17558 * stmt.c (expand_case): Likewise.
17559 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17560 signop rather than a bool.
17561 * stor-layout.c (layout_type): Use wide-int interfaces.
17562 (initialize_sizetypes): Update calls to
17563 set_min_and_max_values_for_integral_type.
17564 (set_min_and_max_values_for_integral_type): Take a signop rather
17565 than a bool. Use wide-int interfaces.
17566 (fixup_signed_type): Update accordingly. Remove
17567 HOST_BITS_PER_DOUBLE_INT limit.
17568 (fixup_unsigned_type): Likewise.
17569 * system.h (STATIC_CONSTANT_P): New.
17570 (STATIC_ASSERT): New.
17571 * target.def (can_use_doloop_p): Take widest_ints rather than
17572 double_ints.
17573 * target.h: Include wide-int.h rather than double-int.h.
17574 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17575 than double_ints.
17576 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17577 rather than INT_CST_LT_UNSIGNED.
17578 (can_use_doloop_if_innermost): Take widest_ints rather than
17579 double_ints.
17580 * tree-affine.c: Include wide-int-print.h.
17581 (double_int_ext_for_comb): Delete.
17582 (wide_int_ext_for_comb): New.
17583 (aff_combination_zero): Use wide-int interfaces.
17584 (aff_combination_const): Take a widest_int instead of a double_int.
17585 (aff_combination_elt): Use wide-int interfaces.
17586 (aff_combination_scale): Take a widest_int instead of a double_int.
17587 (aff_combination_add_elt): Likewise.
17588 (aff_combination_add_cst): Likewise.
17589 (aff_combination_add): Use wide-int interfaces.
17590 (aff_combination_convert): Likewise.
17591 (tree_to_aff_combination): Likewise.
17592 (add_elt_to_tree): Take a widest_int instead of a double_int.
17593 (aff_combination_to_tree): Use wide-int interfaces.
17594 (aff_combination_remove_elt): Likewise.
17595 (aff_combination_add_product): Take a widest_int instead of
17596 a double_int.
17597 (aff_combination_mult): Use wide-int interfaces.
17598 (aff_combination_expand): Likewise.
17599 (double_int_constant_multiple_p): Delete.
17600 (wide_int_constant_multiple_p): New.
17601 (aff_combination_constant_multiple_p): Take a widest_int pointer
17602 instead of a double_int pointer.
17603 (print_aff): Use wide-int interfaces.
17604 (get_inner_reference_aff): Take a widest_int pointer
17605 instead of a double_int pointer.
17606 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17607 * tree-affine.h: Include wide-int.h.
17608 (struct aff_comb_elt): Change type of coef to widest_int.
17609 (struct affine_tree_combination): Change type of offset to widest_int.
17610 (double_int_ext_for_comb): Delete.
17611 (wide_int_ext_for_comb): New.
17612 (aff_combination_const): Use widest_int instead of double_int.
17613 (aff_combination_scale): Likewise.
17614 (aff_combination_add_elt): Likewise.
17615 (aff_combination_constant_multiple_p): Likewise.
17616 (get_inner_reference_aff): Likewise.
17617 (aff_comb_cannot_overlap_p): Likewise.
17618 (aff_combination_zero_p): Use wide-int interfaces.
17619 * tree.c: Include tree.h.
17620 (init_ttree): Use make_int_cst.
17621 (tree_code_size): Removed code for INTEGER_CST case.
17622 (tree_size): Add INTEGER_CST case.
17623 (make_node_stat): Update comment.
17624 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17625 (build_int_cst_type): Use wide-int interfaces.
17626 (double_int_to_tree): Likewise.
17627 (double_int_fits_to_tree_p): Delete.
17628 (force_fit_type_double): Delete.
17629 (force_fit_type): New.
17630 (int_cst_hash_hash): Use wide-int interfaces.
17631 (int_cst_hash_eq): Likewise.
17632 (build_int_cst_wide): Delete.
17633 (wide_int_to_tree): New.
17634 (cache_integer_cst): Use wide-int interfaces.
17635 (build_low_bits_mask): Likewise.
17636 (cst_and_fits_in_hwi): Likewise.
17637 (real_value_from_int_cst): Likewise.
17638 (make_int_cst_stat): New.
17639 (integer_zerop): Use wide_int interfaces.
17640 (integer_onep): Likewise.
17641 (integer_all_onesp): Likewise.
17642 (integer_pow2p): Likewise.
17643 (integer_nonzerop): Likewise.
17644 (tree_log2): Likewise.
17645 (tree_floor_log2): Likewise.
17646 (tree_ctz): Likewise.
17647 (int_size_in_bytes): Likewise.
17648 (mem_ref_offset): Return an offset_int rather than a double_int.
17649 (build_type_attribute_qual_variant): Use wide_int interfaces.
17650 (type_hash_eq): Likewise
17651 (tree_int_cst_equal): Likewise.
17652 (tree_int_cst_lt): Delete.
17653 (tree_int_cst_compare): Likewise.
17654 (tree_fits_shwi_p): Use wide_int interfaces.
17655 (tree_fits_uhwi_p): Likewise.
17656 (tree_int_cst_sign_bit): Likewise.
17657 (tree_int_cst_sgn): Likewise.
17658 (tree_int_cst_min_precision): Take a signop rather than a bool.
17659 (simple_cst_equal): Use wide_int interfaces.
17660 (compare_tree_int): Likewise.
17661 (iterative_hash_expr): Likewise.
17662 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17663 INT_CST_LT.
17664 (get_type_static_bounds): Use wide_int interfaces.
17665 (tree_int_cst_elt_check_failed): New.
17666 (build_common_tree_nodes): Reordered to set prec before filling in
17667 value.
17668 (int_cst_value): Check cst_and_fits_in_hwi.
17669 (widest_int_cst_value): Use wide_int interfaces.
17670 (upper_bound_in_type): Likewise.
17671 (lower_bound_in_type): Likewise.
17672 (num_ending_zeros): Likewise.
17673 (drop_tree_overflow): Likewise.
17674 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17675 (gen_conditions_for_pow_cst_base): Likewise.
17676 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17677 (group_case_labels_stmt): Use wide-int interfaces.
17678 (verify_gimple_assign_binary): Likewise.
17679 (print_loop): Likewise.
17680 * tree-chrec.c (tree_fold_binomial): Likewise.
17681 * tree-core.h (struct tree_base): Add int_length.
17682 (struct tree_int_cst): Change rep of value.
17683 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17684 (dr_may_alias_p): Likewise.
17685 (max_stmt_executions_tree): Likewise.
17686 * tree.def (INTEGER_CST): Update comment.
17687 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17688 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17689 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17690 (dequeue_and_dump): Use wide-int interfaces.
17691 * tree.h: Include wide-int.h.
17692 (NULL_TREE): Moved to earlier loc in file.
17693 (TREE_INT_CST_ELT_CHECK): New.
17694 (tree_int_cst_elt_check_failed): New.
17695 (TYPE_SIGN): New.
17696 (TREE_INT_CST): Delete.
17697 (TREE_INT_CST_LOW): Use wide-int interfaces.
17698 (TREE_INT_CST_HIGH): Delete.
17699 (TREE_INT_CST_NUNITS): New.
17700 (TREE_INT_CST_EXT_NUNITS): Likewise.
17701 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17702 (TREE_INT_CST_ELT): Likewise.
17703 (INT_CST_LT): Delete.
17704 (tree_int_cst_elt_check): New (two forms).
17705 (type_code_size): Update comment.
17706 (make_int_cst_stat, make_int_cst): New.
17707 (tree_to_double_int): Delete.
17708 (double_int_fits_to_tree_p): Delete.
17709 (force_fit_type_double): Delete.
17710 (build_int_cstu): Replace with out-of-line function.
17711 (build_int_cst_wide): Delete.
17712 (tree_int_cst_lt): Define inline.
17713 (tree_int_cst_le): New.
17714 (tree_int_cst_compare): Define inline.
17715 (tree_int_cst_min_precision): Take a signop rather than a bool.
17716 (wi::int_traits <const_tree>): New.
17717 (wi::int_traits <tree>): New.
17718 (wi::extended_tree): New.
17719 (wi::int_traits <wi::extended_tree>): New.
17720 (wi::to_widest): New.
17721 (wi::to_offset): New.
17722 (wi::fits_to_tree_p): New.
17723 (wi::min_value): New.
17724 (wi::max_value): New.
17725 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17726 (copy_tree_body_r): Likewise.
17727 * tree-object-size.c (compute_object_offset): Likewise.
17728 (addr_object_size): Likewise.
17729 * tree-predcom.c: Include wide-int-print.h.
17730 (struct dref_d): Change type of offset to widest_int.
17731 (dump_dref): Call wide-int printer.
17732 (aff_combination_dr_offset): Use wide-int interfaces.
17733 (determine_offset): Take a widest_int pointer rather than a
17734 double_int pointer.
17735 (split_data_refs_to_components): Use wide-int interfaces.
17736 (suitable_component_p): Likewise.
17737 (order_drefs): Likewise.
17738 (add_ref_to_chain): Likewise.
17739 (valid_initializer_p): Likewise.
17740 (determine_roots_comp): Likewise.
17741 * tree-pretty-print.c: Include wide-int-print.h.
17742 (dump_generic_node): Use wide-int interfaces.
17743 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17744 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17745 (move_fixed_address_to_symbol): Likewise.
17746 (move_hint_to_base): Likewise.
17747 (move_pointer_to_base): Likewise.
17748 (move_variant_to_index): Likewise.
17749 (most_expensive_mult_to_index): Likewise.
17750 (addr_to_parts): Likewise.
17751 (copy_ref_info): Likewise.
17752 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17753 (indirect_refs_may_alias_p): Likewise.
17754 (stmt_kills_ref_p_1): Likewise.
17755 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17756 * tree-ssa-ccp.c: Update comment at top of file. Include
17757 wide-int-print.h.
17758 (struct prop_value_d): Change type of mask to widest_int.
17759 (extend_mask): New function.
17760 (dump_lattice_value): Use wide-int interfaces.
17761 (get_default_value): Likewise.
17762 (set_constant_value): Likewise.
17763 (set_value_varying): Likewise.
17764 (valid_lattice_transition): Likewise.
17765 (set_lattice_value): Likewise.
17766 (value_to_double_int): Delete.
17767 (value_to_wide_int): New.
17768 (get_value_from_alignment): Use wide-int interfaces.
17769 (get_value_for_expr): Likewise.
17770 (do_dbg_cnt): Likewise.
17771 (ccp_finalize): Likewise.
17772 (ccp_lattice_meet): Likewise.
17773 (bit_value_unop_1): Use widest_ints rather than double_ints.
17774 (bit_value_binop_1): Likewise.
17775 (bit_value_unop): Use wide-int interfaces.
17776 (bit_value_binop): Likewise.
17777 (bit_value_assume_aligned): Likewise.
17778 (evaluate_stmt): Likewise.
17779 (ccp_fold_stmt): Likewise.
17780 (visit_cond_stmt): Likewise.
17781 (ccp_visit_stmt): Likewise.
17782 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17783 (constant_pointer_difference): Likewise.
17784 (associate_pointerplus): Likewise.
17785 (combine_conversions): Likewise.
17786 * tree-ssa-loop.h: Include wide-int.h.
17787 (struct tree_niter_desc): Change type of max to widest_int.
17788 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17789 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17790 (remove_redundant_iv_tests): Likewise.
17791 (canonicalize_loop_induction_variables): Likewise.
17792 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17793 (constant_multiple_of): Take a widest_int pointer instead of
17794 a double_int pointer.
17795 (get_computation_aff): Use wide-int interfaces.
17796 (ptr_difference_cost): Likewise.
17797 (difference_cost): Likewise.
17798 (get_loop_invariant_expr_id): Likewise.
17799 (get_computation_cost_at): Likewise.
17800 (iv_elimination_compare_lt): Likewise.
17801 (may_eliminate_iv): Likewise.
17802 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17803 instead of double_int.
17804 (max_loop_iterations): Likewise.
17805 (max_stmt_executions): Likewise.
17806 (estimated_stmt_executions): Likewise.
17807 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17808 (split_to_var_and_offset): Use wide-int interfaces.
17809 (determine_value_range): Likewise.
17810 (bound_difference_of_offsetted_base): Likewise.
17811 (bounds_add): Take a widest_int instead of a double_int.
17812 (number_of_iterations_ne_max): Use wide-int interfaces.
17813 (number_of_iterations_ne): Likewise.
17814 (number_of_iterations_lt_to_ne): Likewise.
17815 (assert_loop_rolls_lt): Likewise.
17816 (number_of_iterations_lt): Likewise.
17817 (number_of_iterations_le): Likewise.
17818 (number_of_iterations_cond): Likewise.
17819 (number_of_iterations_exit): Likewise.
17820 (finite_loop_p): Likewise.
17821 (derive_constant_upper_bound_assign): Likewise.
17822 (derive_constant_upper_bound): Return a widest_int.
17823 (derive_constant_upper_bound_ops): Likewise.
17824 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17825 (record_estimate): Take a widest_int rather than a double_int.
17826 (record_nonwrapping_iv): Use wide-int interfaces.
17827 (double_int_cmp): Delete.
17828 (wide_int_cmp): New.
17829 (bound_index): Take a widest_int rather than a double_int.
17830 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17831 (maybe_lower_iteration_bound): Likewise.
17832 (estimate_numbers_of_iterations_loop): Likewise.
17833 (estimated_loop_iterations): Take a widest_int pointer than than
17834 a double_int pointer.
17835 (estimated_loop_iterations_int): Use wide-int interfaces.
17836 (max_loop_iterations): Take a widest_int pointer than than
17837 a double_int pointer.
17838 (max_loop_iterations_int): Use wide-int interfaces.
17839 (max_stmt_executions): Take a widest_int pointer than than
17840 a double_int pointer.
17841 (estimated_stmt_executions): Likewise.
17842 (n_of_executions_at_most): Use wide-int interfaces.
17843 (scev_probably_wraps_p): Likewise.
17844 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17845 to real_to_integer.
17846 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17847 interfaces.
17848 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17849 double_ints. Adjust for trailing_wide_ints <3> representation.
17850 (set_nonzero_bits): Likewise.
17851 (get_range_info): Return wide_ints rather than double_ints.
17852 Adjust for trailing_wide_ints <3> representation.
17853 (get_nonzero_bits): Likewise.
17854 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17855 representation.
17856 * tree-ssanames.h (struct range_info_def): Replace min, max and
17857 nonzero_bits with a trailing_wide_ints <3>.
17858 (set_range_info): Use wide_int_refs rather than double_ints.
17859 (set_nonzero_bits): Likewise.
17860 (get_range_info): Return wide_ints rather than double_ints.
17861 (get_nonzero_bits): Likewise.
17862 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17863 * tree-ssa-pre.c (phi_translate_1): Likewise.
17864 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17865 (acceptable_pow_call): Likewise.
17866 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17867 interfaces.
17868 (vn_reference_fold_indirect): Likewise.
17869 (vn_reference_maybe_forwprop_address): Likewise.
17870 (valueize_refs_1): Likewise.
17871 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17872 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17873 tree_int_cst_lt and tree_int_cst_le.
17874 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17875 interfaces.
17876 (streamer_alloc_tree): Likewise.
17877 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17878 (streamer_write_tree_header): Likewise.
17879 (streamer_write_integer_cst): Likewise.
17880 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17881 (build_constructors): Likewise.
17882 (array_value_type): Likewise.
17883 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17884 (vect_check_gather): Likewise.
17885 * tree-vect-generic.c (build_replicated_const): Likewise.
17886 (expand_vector_divmod): Likewise.
17887 * tree-vect-loop.c (vect_transform_loop): Likewise.
17888 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17889 (vect_do_peeling_for_alignment): Likewise.
17890 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17891 * tree-vrp.c: Include wide-int.h.
17892 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17893 (extract_range_from_assert): Use wide-int interfaces.
17894 (vrp_int_const_binop): Likewise.
17895 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17896 double_int pointers.
17897 (ranges_from_anti_range): Use wide-int interfaces.
17898 (quad_int_cmp): Delete.
17899 (quad_int_pair_sort): Likewise.
17900 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17901 (extract_range_from_unary_expr_1): Likewise.
17902 (adjust_range_with_scev): Likewise.
17903 (masked_increment): Take and return wide_ints rather than double_ints.
17904 (register_edge_assert_for_2): Use wide-int interfaces.
17905 (check_array_ref): Likewise.
17906 (search_for_addr_array): Likewise.
17907 (maybe_set_nonzero_bits): Likewise.
17908 (union_ranges): Pass an integer of the correct type instead of
17909 using integer_one_node.
17910 (intersect_ranges): Likewise.
17911 (simplify_truth_ops_using_ranges): Likewise.
17912 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17913 (range_fits_type_p): Likewise.
17914 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17915 a bool.
17916 (simplify_conversion_using_ranges): Use wide-int interfaces.
17917 (simplify_float_conversion_using_ranges): Likewise.
17918 (vrp_finalize): Likewise.
17919 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17920 (gimple_stringops_transform): Likewise.
17921 * varasm.c (decode_addr_const): Likewise.
17922 (const_hash_1): Likewise.
17923 (const_rtx_hash_1): Likewise
17924 (output_constant): Likewise.
17925 (array_size_for_constructor): Likewise.
17926 (output_constructor_regular_field): Likewise.
17927 (output_constructor_bitfield): Likewise.
17928 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17929 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17930 GENERATOR_FILEs.
17931 * gencheck.c: Define BITS_PER_UNIT.
17932 * wide-int.cc: New.
17933 * wide-int.h: New.
17934 * wide-int-print.cc: New.
17935 * wide-int-print.h: New.
17936
17937 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17938
17939 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17940
17941 2014-05-06 Richard Biener <rguenther@suse.de>
17942
17943 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17944 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17945 (TODO_verify_all): Adjust.
17946 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17947 TODO_verify_stmts and TODO_verify_rtl_sharing.
17948 * bb-reorder.c: Likewise.
17949 * cfgexpand.c: Likewise.
17950 * cprop.c: Likewise.
17951 * cse.c: Likewise.
17952 * function.c: Likewise.
17953 * fwprop.c: Likewise.
17954 * gcse.c: Likewise.
17955 * gimple-ssa-isolate-paths.c: Likewise.
17956 * gimple-ssa-strength-reduction.c: Likewise.
17957 * ipa-split.c: Likewise.
17958 * loop-init.c: Likewise.
17959 * loop-unroll.c: Likewise.
17960 * lower-subreg.c: Likewise.
17961 * modulo-sched.c: Likewise.
17962 * postreload-gcse.c: Likewise.
17963 * predict.c: Likewise.
17964 * recog.c: Likewise.
17965 * sched-rgn.c: Likewise.
17966 * store-motion.c: Likewise.
17967 * tracer.c: Likewise.
17968 * trans-mem.c: Likewise.
17969 * tree-call-cdce.c: Likewise.
17970 * tree-cfg.c: Likewise.
17971 * tree-cfgcleanup.c: Likewise.
17972 * tree-complex.c: Likewise.
17973 * tree-eh.c: Likewise.
17974 * tree-emutls.c: Likewise.
17975 * tree-if-conv.c: Likewise.
17976 * tree-into-ssa.c: Likewise.
17977 * tree-loop-distribution.c: Likewise.
17978 * tree-object-size.c: Likewise.
17979 * tree-parloops.c: Likewise.
17980 * tree-pass.h: Likewise.
17981 * tree-sra.c: Likewise.
17982 * tree-ssa-ccp.c: Likewise.
17983 * tree-ssa-copy.c: Likewise.
17984 * tree-ssa-copyrename.c: Likewise.
17985 * tree-ssa-dce.c: Likewise.
17986 * tree-ssa-dom.c: Likewise.
17987 * tree-ssa-dse.c: Likewise.
17988 * tree-ssa-forwprop.c: Likewise.
17989 * tree-ssa-ifcombine.c: Likewise.
17990 * tree-ssa-loop-ch.c: Likewise.
17991 * tree-ssa-loop-ivcanon.c: Likewise.
17992 * tree-ssa-loop.c: Likewise.
17993 * tree-ssa-math-opts.c: Likewise.
17994 * tree-ssa-phiopt.c: Likewise.
17995 * tree-ssa-phiprop.c: Likewise.
17996 * tree-ssa-pre.c: Likewise.
17997 * tree-ssa-reassoc.c: Likewise.
17998 * tree-ssa-sink.c: Likewise.
17999 * tree-ssa-strlen.c: Likewise.
18000 * tree-ssa-tail-merge.c: Likewise.
18001 * tree-ssa-uncprop.c: Likewise.
18002 * tree-switch-conversion.c: Likewise.
18003 * tree-tailcall.c: Likewise.
18004 * tree-vect-generic.c: Likewise.
18005 * tree-vectorizer.c: Likewise.
18006 * tree-vrp.c: Likewise.
18007 * tsan.c: Likewise.
18008 * var-tracking.c: Likewise.
18009 * bt-load.c: Likewise.
18010 * cfgcleanup.c: Likewise.
18011 * combine-stack-adj.c: Likewise.
18012 * combine.c: Likewise.
18013 * compare-elim.c: Likewise.
18014 * config/epiphany/resolve-sw-modes.c: Likewise.
18015 * config/i386/i386.c: Likewise.
18016 * config/mips/mips.c: Likewise.
18017 * config/s390/s390.c: Likewise.
18018 * config/sh/sh_treg_combine.cc: Likewise.
18019 * config/sparc/sparc.c: Likewise.
18020 * dce.c: Likewise.
18021 * dse.c: Likewise.
18022 * final.c: Likewise.
18023 * ifcvt.c: Likewise.
18024 * mode-switching.c: Likewise.
18025 * passes.c: Likewise.
18026 * postreload.c: Likewise.
18027 * ree.c: Likewise.
18028 * reg-stack.c: Likewise.
18029 * regcprop.c: Likewise.
18030 * regrename.c: Likewise.
18031 * web.c: Likewise.
18032
18033 2014-05-06 Richard Biener <rguenther@suse.de>
18034
18035 PR middle-end/61070
18036 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18037 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18038
18039 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18040
18041 PR ipa/60965
18042 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18043
18044 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18045 Tom de Vries <tom@codesourcery.com>
18046
18047 * target.def (call_fusage_contains_non_callee_clobbers): New
18048 DEFHOOKPOD.
18049 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18050 Hooks to @menu.
18051 (@node Miscellaneous Register Hooks): New node.
18052 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18053 * doc/tm.texi: Regenerate.
18054
18055 2014-05-05 Marek Polacek <polacek@redhat.com>
18056
18057 PR driver/61065
18058 * opts.c (common_handle_option): Call error_at instead of warning_at.
18059
18060 2014-05-05 Richard Biener <rguenther@suse.de>
18061
18062 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18063 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18064 under the TODO_verify_il umbrella.
18065
18066 2014-05-05 Richard Biener <rguenther@suse.de>
18067
18068 * passes.c (execute_function_todo): Move TODO_verify_flow under
18069 the TODO_verify_ul umbrella.
18070
18071 2014-05-05 Richard Biener <rguenther@suse.de>
18072
18073 PR middle-end/61010
18074 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18075 X & CST away from a CST that is the mask of a mode.
18076
18077 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18078
18079 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18080 int argument to enum machine_mode.
18081 (picochip_class_max_nregs): Ditto.
18082 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18083 (picochip_class_max_nregs): Ditto.
18084
18085 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18086
18087 * target.def: Add new target hook.
18088 * doc/tm.texi: Regenerate.
18089 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18090 * targhooks.c (default_keep_leaf_when_profiled): New function.
18091
18092 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18093 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18094
18095 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18096
18097 PR tree-optimization/60363
18098 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18099 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18100 (update_destination_phis): New parameter.
18101 (create_edge_and_update_destination_phis): Ditto.
18102 (ssa_fix_duplicate_block_edges): Pass new arguments.
18103 (thread_single_edge): Ditto.
18104
18105 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18106
18107 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18108 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18109 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18110 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18111 Use RS6000_BTM_HARD_FLOAT.
18112 (BU_MISC_2): Likewise.
18113 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18114 RS6000_BTM_HARD_FLOAT.
18115 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18116 is explicitly used.
18117 (rs6000_invalid_builtin): Add hard floating builtin support.
18118 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18119 hard float builtins.
18120 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18121
18122 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18123
18124 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18125 Add missing function* argument.
18126
18127 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18128
18129 * lra-constraints.c (valid_address_p): Move earlier in file.
18130 Add a constraint argument to the address_info version.
18131 (satisfies_memory_constraint_p): New function.
18132 (satisfies_address_constraint_p): Likewise.
18133 (process_alt_operands, curr_insn_transform): Use them.
18134 (process_address): Pass the constraint to valid_address_p when
18135 checking address operands.
18136
18137 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18138
18139 * config/mips/mips.c (mips_isa_rev): New variable.
18140 (mips_set_architecture): Set it.
18141 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18142 from mips_isa_rev.
18143 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18144 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18145 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18146 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18147 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18148 conditions in terms of mips_isa_rev.
18149 (mips_isa_rev): Declare.
18150
18151 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18152
18153 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18154 (prob_unlikely, prob_likely): Make variables const.
18155
18156 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18157
18158 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18159
18160 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18161
18162 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18163
18164 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18165
18166 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18167 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18168 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18169 functions.
18170 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18171 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18172 sh_pass_in_reg_p.
18173 Replace usage of ROUND_REG with sh_round_reg.
18174 Use CEIL instead of ROUND_ADVANCE.
18175
18176 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18177
18178 PR target/61026
18179 * config/sh/sh.c: Include stdlib headers before everything else.
18180
18181 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18182
18183 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18184 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18185 (gimplify_adjust_omp_clauses): Simd region is never
18186 directly nested in combined parallel. Instead, for linear
18187 with copyin/copyout, if in combined for simd loop, make decl
18188 firstprivate/lastprivate on OMP_FOR.
18189 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18190 expand_omp_for_static_chunk): When setting endvar, also set
18191 fd->loop.v to the same value.
18192
18193 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18194
18195 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18196
18197 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18198
18199 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18200 expression.
18201
18202 2014-05-02 Marek Polacek <polacek@redhat.com>
18203
18204 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18205
18206 2014-05-02 Kito Cheng <kito@0xlab.org>
18207
18208 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18209 to a C expression marco.
18210 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18211 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18212 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18213 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18214 HONOR_REG_ALLOC_ORDER.
18215 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18216
18217 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18218
18219 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18220
18221 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18222
18223 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18224
18225 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18226
18227 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18228 (convert_scalar_cond_reduction): Likewise.
18229 (predicate_scalar_phi): Add recognition and transformation
18230 of simple conditioanl reduction to be vectorizable.
18231
18232 2014-05-01 Marek Polacek <polacek@redhat.com>
18233
18234 PR c/43245
18235 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18236
18237 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18238
18239 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18240 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18241 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18242 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18243 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18244 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18245 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18246 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18247
18248 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18249
18250 * config/arc/arc.opt (mlra): Move comment above option name
18251 to avoid mis-parsing as language options.
18252
18253 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18254
18255 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18256 * config/sol2.h: ... here.
18257 * config/sol2-10.h: Remove.
18258
18259 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18260 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18261 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18262 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18263 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18264 * config/sol2.h: ... here.
18265 (SECTION_NAME_FORMAT): Don't redefine.
18266 (STARTFILE_ARCH32_SPEC): Rename to ...
18267 (STARTFILE_ARCH_SPEC): ... this.
18268 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18269 * config/sparc/sol2.h: ... here.
18270 (SECTION_NAME_FORMAT): Don't undef.
18271 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18272 (SUBTARGET_EXTRA_SPECS): Remove.
18273 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18274
18275 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18276 (MD_STARTFILE_PREFIX): Remove.
18277 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18278 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18279 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18280 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18281 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18282 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18283 * config/i386/sol2.h: ... here.
18284 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18285 * config/i386/sol2-bi.h: Remove.
18286 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18287 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18288
18289 * config/i386/t-sol2-64: Rename to ...
18290 * config/i386/t-sol2: ... this.
18291 * config/sparc/t-sol2-64: Rename to ...
18292 * config/sparc/t-sol2: ... this.
18293
18294 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18295 sol2_tm_file_head, sol2_tm_file_tail.
18296 Include ${cpu_type}/sol2.h before sol2.h.
18297 Remove sol2-10.h.
18298 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18299 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18300 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18301 Reflect i386/t-sol2-64 renaming.
18302 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18303 Reflect sparc/t-sol2-64 renaming.
18304
18305 2014-04-30 Richard Biener <rguenther@suse.de>
18306
18307 * passes.c (execute_function_todo): Move TODO_verify_stmts
18308 and TODO_verify_ssa under the TODO_verify_il umbrella.
18309 * tree-ssa.h (verify_ssa): Adjust prototype.
18310 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18311 we should verify SSA operands.
18312 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18313 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18314 whether we should verify whether not throwing stmts have EH info.
18315 * graphite-scop-detection.c (create_sese_edges): Adjust.
18316 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18317 * tree-eh.c (lower_try_finally_switch): Do not add the
18318 default case label twice.
18319
18320 2014-04-30 Marek Polacek <polacek@redhat.com>
18321
18322 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18323 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18324 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18325 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18326
18327 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18328
18329 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18330 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18331 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18332 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18333 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18334 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18335 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18336 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18337
18338 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18339
18340 * tree-cfg.c (dump_function_to_file): Dump the return type of
18341 functions, in a line to itself before the function body, mimicking
18342 the layout of a C function.
18343
18344 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18345
18346 PR tree-optimization/60971
18347 * tree-tailcall.c (process_assignment): Reject conversions which
18348 reduce precision.
18349
18350 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18351
18352 * calls.c (initialize_argument_information): Always treat
18353 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18354 (expand_call): Likewise.
18355 (emit_library_call_calue_1): Likewise.
18356 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18357 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18358 code accordingly.
18359
18360 2014-04-29 Nick Clifton <nickc@redhat.com>
18361
18362 * config/msp430/msp430.md (umulsidi): Fix typo.
18363 (mulhisi3): Enable even inside interrupt handlers.
18364 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18365 bigger return address pushed in large mode.
18366
18367 2014-04-29 Nick Clifton <nickc@redhat.com>
18368
18369 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18370 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18371 available modes.
18372 * config/m32r/m32r.c (init_reg_tables): Likewise.
18373 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18374 enum to hold the modes.
18375
18376 2014-04-29 Richard Biener <rguenther@suse.de>
18377
18378 * dominance.c (free_dominance_info): Add overload with
18379 function parameter.
18380 (dom_info_state): Likewise.
18381 (dom_info_available_p): Likewise.
18382 * basic-block.h (free_dominance_info, dom_info_state,
18383 dom_info_available_p): Declare overloads.
18384 * passes.c (execute_function_todo): Verify that verifiers
18385 don't change dominator info state. Drop dominator info
18386 for IPA pass invocations.
18387 * cgraph.c (release_function_body): Restore asserts that
18388 dominator information is released.
18389
18390 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18391
18392 * doc/invoke.texi: Fix typo.
18393 * tree-vrp.c: Fix typos.
18394 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18395
18396 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18397
18398 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18399
18400 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18401
18402 * config/aarch64/aarch64-builtins.c
18403 (aarch64_types_storestruct_lane_qualifiers): New.
18404 (TYPES_STORESTRUCT_LANE): Likewise.
18405 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18406 (st3_lane): Likewise.
18407 (st4_lane): Likewise.
18408 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18409 (vec_store_lanesci_lane<mode>): Likewise.
18410 (vec_store_lanesxi_lane<mode>): Likewise.
18411 (aarch64_st2_lane<VQ:mode>): Likewise.
18412 (aarch64_st3_lane<VQ:mode>): Likewise.
18413 (aarch64_st4_lane<VQ:mode>): Likewise.
18414 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18415 * config/aarch64/arm_neon.h
18416 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18417 use new macro arguments.
18418 (__ST3_LANE_FUNC): Likewise.
18419 (__ST4_LANE_FUNC): Likewise.
18420 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18421 (V_THREE_ELEM): Likewise.
18422 (V_FOUR_ELEM): Likewise.
18423
18424 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18425
18426 * doc/gimple.texi: Replace the description of the now-defunct
18427 union gimple_statement_d with a diagram showing the
18428 gimple_statement_base class hierarchy and its relationships to
18429 the GSS_ and GIMPLE_ enums.
18430
18431 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18432
18433 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18434 * config/aarch64/aarch64.c
18435 (aarch64_cannot_change_mode_class): Weaken conditions.
18436 (aarch64_modes_tieable_p): New.
18437 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18438
18439 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18440
18441 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18442 (loadsync_<mode>): Change mode.
18443 (load_quadpti, store_quadpti): New.
18444 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18445 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18446
18447 2014-04-28 Martin Jambor <mjambor@suse.cz>
18448
18449 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18450 same alias type as the original statement.
18451 (subreplacement_assignment_data): New type.
18452 (handle_unscalarized_data_in_subtree): New type of parameter,
18453 generate new memory accesses with same alias type as the original
18454 statement.
18455 (load_assign_lhs_subreplacements): Likewise.
18456 (sra_modify_constructor_assign): Generate new memory accesses with
18457 same alias type as the original statement.
18458
18459 2014-04-28 Richard Biener <rguenther@suse.de>
18460
18461 * tree-pass.h (TODO_verify_il): Define.
18462 (TODO_verify_all): Complete properly.
18463 * passes.c (execute_function_todo): Move existing loop-closed
18464 SSA verification under TODO_verify_il.
18465 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18466 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18467 Fix tree sharing issue.
18468
18469 2014-04-28 Richard Biener <rguenther@suse.de>
18470
18471 PR middle-end/60092
18472 * builtins.def (DEF_C11_BUILTIN): Add.
18473 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18474 * coretypes.h (enum function_class): Add function_c11_misc.
18475 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18476 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18477 (call_may_clobber_ref_p_1): Likewise.
18478 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18479 (mark_all_reaching_defs_necessary_1): Likewise.
18480 (propagate_necessity): Likewise.
18481 (eliminate_unnecessary_stmts): Likewise.
18482 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18483
18484 2014-04-28 Richard Biener <rguenther@suse.de>
18485
18486 * tree-vrp.c (vrp_var_may_overflow): Remove.
18487 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18488 with overflow immediately bump to one before that value and
18489 let iteration figure out overflow status.
18490
18491 2014-04-28 Richard Biener <rguenther@suse.de>
18492
18493 * configure.ac: Do valgrind header checks unconditionally.
18494 Add --enable-valgrind-annotations.
18495 * system.h: Guard valgrind header inclusion with
18496 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18497 * alloc-pool.c (pool_alloc, pool_free): Use
18498 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18499 to guard possibly dead code.
18500 * config.in: Regenerated.
18501 * configure: Likewise.
18502
18503 2014-04-28 Jeff Law <law@redhat.com>
18504
18505 PR tree-optimization/60902
18506 * tree-ssa-threadedge.c
18507 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18508 over real defs when invalidating outputs from statements that do not
18509 produce useful outputs for threading.
18510
18511 2014-04-28 Richard Biener <rguenther@suse.de>
18512
18513 PR tree-optimization/60979
18514 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18515 SCOPs that end in a block with a successor with abnormal
18516 predecessors.
18517
18518 2014-04-28 Richard Biener <rguenther@suse.de>
18519
18520 * tree-pass.h (execute_pass_list): Adjust prototype.
18521 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18522 (do_per_function): Change callback signature, push all actual
18523 work to the callbals.
18524 (do_per_function_toporder): Likewise.
18525 (execute_function_dump): Adjust.
18526 (execute_function_todo): Likewise.
18527 (clear_last_verified): Likewise.
18528 (verify_curr_properties): Likewise.
18529 (update_properties_after_pass): Likewise.
18530 (execute_pass_list_1): Split out from ...
18531 (execute_pass_list): ... here. Adjust.
18532 (execute_ipa_pass_list): Likewise.
18533 * cgraphunit.c (cgraph_add_new_function): Adjust.
18534 (analyze_function): Likewise.
18535 (expand_function): Likewise.
18536 * cgraph.c (release_function_body): Free dominance info
18537 here instead of asserting it was magically freed elsewhere.
18538
18539 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18540
18541 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18542 * configure: Regenerate.
18543 * config/sparc/sparc.opt (muser-mode): New option.
18544 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18545 for LEON3.
18546 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18547 * doc/invoke.texi (SPARC options): Document -muser-mode.
18548
18549 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18550
18551 * cselib.c (find_slot_memmode): Delete.
18552 (cselib_hasher): Change compare_type to a struct.
18553 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18554 constants.
18555 (preserve_constants_and_equivs): Adjust for new compare_type.
18556 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18557 (wrap_constant): Delete.
18558 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18559
18560 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18561
18562 * doc/install.texi (Building with profile feedback): Remove
18563 outdated sentence.
18564
18565 2014-04-26 Tom de Vries <tom@codesourcery.com>
18566
18567 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18568 array accesses.
18569
18570 2014-04-25 Cary Coutant <ccoutant@google.com>
18571
18572 PR debug/60929
18573 * dwarf2out.c (should_move_die_to_comdat): A type definition
18574 can contain a subprogram definition, but don't move it to a
18575 comdat unit.
18576 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18577 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18578 from original DIE.
18579 (clone_tree_hash): Rename to...
18580 (clone_tree_partial): ...this; change callers. Copy
18581 DW_TAG_subprogram DIEs as declarations.
18582 (copy_decls_walk): Don't copy children of a declaration into a
18583 type unit.
18584
18585 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18586
18587 PR target/60969
18588 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18589 alternative 12.
18590
18591 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18592
18593 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18594 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18595 reg for long_call.
18596 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18597 restriction.
18598
18599 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18600
18601 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18602
18603 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18604
18605 PR tree-optimization/60930
18606 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18607 creating a multiply candidate by folding two constant
18608 multiplicands when the result overflows.
18609
18610 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18611
18612 PR tree-optimization/60960
18613 * tree-vect-generic.c (expand_vector_operation): Only call
18614 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18615
18616 2014-04-25 Tom de Vries <tom@codesourcery.com>
18617
18618 * expr.c (clobber_reg_mode): New function.
18619 * expr.h (clobber_reg): New function.
18620
18621 2014-04-25 Tom de Vries <tom@codesourcery.com>
18622
18623 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18624 clobbers.
18625
18626 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18627 Tom de Vries <tom@codesourcery.com>
18628
18629 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18630 handle.
18631 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18632 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18633 new argument to find_all_hard_reg_sets call.
18634
18635 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18636
18637 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18638 Use HOST_WIDE_INT_C for mask literal.
18639 (aarch_rev16_shleft_mask_imm_p): Likewise.
18640
18641 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18642
18643 PR target/60941
18644 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18645
18646 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18647
18648 PR preprocessor/56540
18649 * config/i386/i386-c.c (ix86_target_macros): Define
18650 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18651
18652 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18653
18654 * configure.ac (tga_func): Remove.
18655 (LIB_TLS_SPEC): Remove.
18656 * configure: Regenerate.
18657 * config.in: Regenerate.
18658 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18659
18660 2014-04-25 Richard Biener <rguenther@suse.de>
18661
18662 PR ipa/60912
18663 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18664 call stmt use/clobber sets during stmt walk instead of
18665 walking the possibly incomplete set of caller edges.
18666
18667 2014-04-25 Richard Biener <rguenther@suse.de>
18668
18669 PR ipa/60911
18670 * passes.c (apply_ipa_transforms): Inline into only caller ...
18671 (execute_one_pass): ... here. Properly bring in function
18672 bodies for nodes we want to apply IPA transforms to.
18673
18674 2014-04-24 Cong Hou <congh@google.com>
18675
18676 PR tree-optimization/60896
18677 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18678 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18679 (vect_mark_pattern_stmts): Set the def type of all statements in
18680 PATTERN_DEF_SEQ as vect_internal_def.
18681
18682 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18683
18684 * doc/extend.texi (PowerPC Built-in Functions): Document new
18685 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18686 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18687
18688 * config/rs6000/predicates.md (const_0_to_3_operand): New
18689 predicate to match 0..3 integer constants.
18690
18691 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18692 to support adding miscellaneous builtin functions.
18693 (BU_DFP_MISC_2): Likewise.
18694 (BU_P7_MISC_1): Likewise.
18695 (BU_P7_MISC_2): Likewise.
18696 (BU_P8V_MISC_3): Likewise.
18697 (BU_MISC_1): Likewise.
18698 (BU_MISC_2): Likewise.
18699 (DIVWE): Add extended divide builtin functions.
18700 (DIVWEO): Likewise.
18701 (DIVWEU): Likewise.
18702 (DIVWEUO): Likewise.
18703 (DIVDE): Likewise.
18704 (DIVDEO): Likewise.
18705 (DIVDEU): Likewise.
18706 (DIVDEUO): Likewise.
18707 (DXEX): Add decimal floating-point builtin functions.
18708 (DXEXQ): Likewise.
18709 (DDEDPD): Likewise.
18710 (DDEDPDQ): Likewise.
18711 (DENBCD): Likewise.
18712 (DENBCDQ): Likewise.
18713 (DIEX): Likewise.
18714 (DIEXQ): Likewise.
18715 (DSCLI): Likewise.
18716 (DSCLIQ): Likewise.
18717 (DSCRI): Likewise.
18718 (DSCRIQ): Likewise.
18719 (CDTBCD): Add new BCD builtin functions.
18720 (CBCDTD): Likewise.
18721 (ADDG6S): Likewise.
18722 (BCDADD): Likewise.
18723 (BCDADD_LT): Likewise.
18724 (BCDADD_EQ): Likewise.
18725 (BCDADD_GT): Likewise.
18726 (BCDADD_OV): Likewise.
18727 (BCDSUB): Likewise.
18728 (BCDSUB_LT): Likewise.
18729 (BCDSUB_EQ): Likewise.
18730 (BCDSUB_GT): Likewise.
18731 (BCDSUB_OV): Likewise.
18732 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18733 (UNPACK_TD): Likewise.
18734 (PACK_TF): Likewise.
18735 (UNPACK_TF): Likewise.
18736 (UNPACK_TF_0): Likewise.
18737 (UNPACK_TF_1): Likewise.
18738 (PACK_V1TI): Likewise.
18739 (UNPACK_V1TI): Likewise.
18740
18741 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18742 support for decimal floating point builtin functions.
18743 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18744 functions that take constant arguments.
18745 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18746 (rs6000_init_builtins): Setup long double, _Decimal64, and
18747 _Decimal128 types for new builtin functions.
18748 (builtin_function_type): Set the unsigned flags appropriately for
18749 the new builtin functions.
18750 (rs6000_opt_masks): Add support for decimal floating point builtin
18751 functions.
18752
18753 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18754 floating point builtin functions.
18755 (RS6000_BTM_COMMON): Likewise.
18756 (RS6000_BTI_long_double): Likewise.
18757 (RS6000_BTI_dfloat64): Likewise.
18758 (RS6000_BTI_dfloat128): Likewise.
18759 (long_double_type_internal_node): Likewise.
18760 (dfloat64_type_internal_node): Likewise.
18761 (dfloat128_type_internal_node): Likewise.
18762
18763 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18764 2.07 bcd arithmetic instructions.
18765 (UNSPEC_BCDSUB): Likewise.
18766 (UNSPEC_BCD_OVERFLOW): Likewise.
18767 (UNSPEC_BCD_ADD_SUB): Likewise.
18768 (bcd_add_sub): Likewise.
18769 (BCD_TEST): Likewise.
18770 (bcd<bcd_add_sub>): Likewise.
18771 (bcd<bcd_add_sub>_test): Likewise.
18772 (bcd<bcd_add_sub>_test2): Likewise.
18773 (bcd<bcd_add_sub>_<code>): Likewise.
18774 (peephole2 for combined bcd ops): Likewise.
18775
18776 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18777 decimal floating point builtin functions.
18778 (UNSPEC_DENBCD): Likewise.
18779 (UNSPEC_DXEX): Likewise.
18780 (UNSPEC_DIEX): Likewise.
18781 (UNSPEC_DSCLI): Likewise.
18782 (UNSPEC_DSCRI): Likewise.
18783 (D64_D128): Likewise.
18784 (dfp_suffix): Likewise.
18785 (dfp_ddedpd_<mode>): Likewise.
18786 (dfp_denbcd_<mode>): Likewise.
18787 (dfp_dxex_<mode>): Likewise.
18788 (dfp_diex_<mode>): Likewise.
18789 (dfp_dscli_<mode>): Likewise.
18790 (dfp_dscri_<mode>): Likewise.
18791
18792 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18793 builtin functions.
18794 (UNSPEC_CDTBCD): Likewise.
18795 (UNSPEC_CBCDTD): Likewise.
18796 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18797 (UNSPEC_DIVEO): Likewise.
18798 (UNSPEC_DIVEU): Likewise.
18799 (UNSPEC_DIVEUO): Likewise.
18800 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18801 pack/unpack 128-bit types.
18802 (UNSPEC_PACK_128BIT): Likewise.
18803 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18804 (udiv<mode>3): Use idiv_ldiv mode attribute.
18805 (div<mode>3): Likewise.
18806 (addg6s): Add new BCD builtin functions.
18807 (cdtbcd): Likewise.
18808 (cbcdtd): Likewise.
18809 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18810 (div_extend): Likewise.
18811 (div<div_extend>_<mode>"): Likewise.
18812 (FP128_64): Add support for new builtin functions to pack/unpack
18813 128-bit types.
18814 (unpack<mode>): Likewise.
18815 (unpacktf_0): Likewise.
18816 (unpacktf_1): Likewise.
18817 (unpack<mode>_dm): Likewise.
18818 (unpack<mode>_nodm): Likewise.
18819 (pack<mode>): Likewise.
18820 (unpackv1ti): Likewise.
18821 (packv1ti): Likewise.
18822
18823 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18824
18825 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18826 is disabled.
18827
18828 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18829
18830 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18831 * gimplify.c (omp_is_private): Change last argument's type to int.
18832 Only diagnose lastprivate if the simd argument is 1, only diagnose
18833 linear if the simd argument is 2.
18834 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18835 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18836 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18837 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18838 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18839 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18840 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18841 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18842 * tree-nested.c (convert_nonlocal_omp_clauses,
18843 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18844
18845 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18846
18847 PR target/60822
18848 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18849 operand 1.
18850
18851 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18852
18853 * flag-types.h (enum ivar_visibility): Add.
18854
18855 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18856
18857 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18858 function * argument.
18859
18860 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18861
18862 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18863
18864 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18865 Tom de Vries <tom@codesourcery.com>
18866
18867 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18868 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18869 reg-note.
18870 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18871 * emit-rtl.c (try_split): Same.
18872
18873 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18874 Tom de Vries <tom@codesourcery.com>
18875
18876 * common.opt (fuse-caller-save): New option.
18877
18878 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18879
18880 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18881 elements for big-endian.
18882
18883 2014-04-24 Richard Biener <rguenther@suse.de>
18884
18885 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18886 during TER and instead use the sepops interface for expanding
18887 non-GIMPLE_SINGLE_RHS.
18888
18889 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18890
18891 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18892 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18893
18894 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18895
18896 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18897 assembler 64-bit option.
18898 * configure: Regenerate.
18899
18900 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18901
18902 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18903 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18904 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18905 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18906 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18907
18908 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18909
18910 * config/aarch64/aarch64-builtins.c
18911 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18912 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18913 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18914 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18915 builtins.
18916 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18917 (Vrevsuff): New mode attribute.
18918
18919 2014-04-24 Terry Guo <terry.guo@arm.com>
18920
18921 * config/arm/arm.h (machine_function): Define variable
18922 after_arm_reorg here.
18923 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18924 (arm_split_constant): Update the way to access variable
18925 after_arm_reorg.
18926 (arm_reorg): Ditto.
18927 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18928
18929 2014-04-23 Tom de Vries <tom@codesourcery.com>
18930
18931 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18932
18933 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18934
18935 * is-a.h: Update comments to reflect the following changes to the
18936 "pointerness" of the API, making the template parameter match the
18937 return type, allowing use of is-a.h with typedefs of pointers.
18938 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18939 that the return type matches the parameter to the is_a_helper.
18940 (as_a): Likewise.
18941 (dyn_cast): Likewise.
18942
18943 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18944 pointer from the is-a.h API.
18945
18946 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18947 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18948 is-a.h API.
18949 (is_a_helper <varpool_node>::test): Likewise, convert to...
18950 (is_a_helper <varpool_node *>::test): ...this.
18951
18952 (varpool_first_variable): Update for removal of implicit pointer
18953 from the is-a.h API.
18954 (varpool_next_variable): Likewise.
18955 (varpool_first_static_initializer): Likewise.
18956 (varpool_next_static_initializer): Likewise.
18957 (varpool_first_defined_variable): Likewise.
18958 (varpool_next_defined_variable): Likewise.
18959 (cgraph_first_defined_function): Likewise.
18960 (cgraph_next_defined_function): Likewise.
18961 (cgraph_first_function): Likewise.
18962 (cgraph_next_function): Likewise.
18963 (cgraph_first_function_with_gimple_body): Likewise.
18964 (cgraph_next_function_with_gimple_body): Likewise.
18965 (cgraph_alias_target): Likewise.
18966 (varpool_alias_target): Likewise.
18967 (cgraph_function_or_thunk_node): Likewise.
18968 (varpool_variable_node): Likewise.
18969 (symtab_real_symbol_p): Likewise.
18970 * cgraphunit.c (referred_to_p): Likewise.
18971 (analyze_functions): Likewise.
18972 (handle_alias_pairs): Likewise.
18973 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18974 * gimple-ssa.h (gimple_vuse_op): Likewise.
18975 (gimple_vdef_op): Likewise.
18976 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18977 * gimple.c (gimple_build_asm_1): Likewise.
18978 (gimple_build_try): Likewise.
18979 (gimple_build_resx): Likewise.
18980 (gimple_build_eh_dispatch): Likewise.
18981 (gimple_build_omp_for): Likewise.
18982 (gimple_omp_for_set_clauses): Likewise.
18983
18984 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18985 (is_a_helper <gimple_statement_asm *>::test): ...this.
18986 (is_a_helper <gimple_statement_bind>::test): Convert to...
18987 (is_a_helper <gimple_statement_bind *>::test): ...this.
18988 (is_a_helper <gimple_statement_call>::test): Convert to...
18989 (is_a_helper <gimple_statement_call *>::test): ...this.
18990 (is_a_helper <gimple_statement_catch>::test): Convert to...
18991 (is_a_helper <gimple_statement_catch *>::test): ...this.
18992 (is_a_helper <gimple_statement_resx>::test): Convert to...
18993 (is_a_helper <gimple_statement_resx *>::test): ...this.
18994 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18995 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18996 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18997 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18998 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18999 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19000 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19001 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19002 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19003 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19004 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19005 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19006 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19007 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19008 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19009 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19010 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19011 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19012 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19013 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19014 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19015 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19016 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19017 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19018 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19019 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19020 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19021 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19022 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19023 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19024 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19025 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19026 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19027 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19028 (is_a_helper <gimple_statement_phi>::test): Convert to...
19029 (is_a_helper <gimple_statement_phi *>::test): ...this.
19030 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19031 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19032 (is_a_helper <gimple_statement_try>::test): Convert to...
19033 (is_a_helper <gimple_statement_try *>::test): ...this.
19034 (is_a_helper <gimple_statement_wce>::test): Convert to...
19035 (is_a_helper <gimple_statement_wce *>::test): ...this.
19036 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19037 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19038 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19039 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19040 (is_a_helper <const gimple_statement_call>::test): Convert to...
19041 (is_a_helper <const gimple_statement_call *>::test): ...this.
19042 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19043 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19044 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19045 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19046 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19047 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19048 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19049 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19050 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19051 Convert to...
19052 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19053 ...this.
19054 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19055 Convert to...
19056 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19057 ...this.
19058 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19059 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19060 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19061 to...
19062 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19063 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19064 to...
19065 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19066 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19067 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19068 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19069 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19070 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19071 to...
19072 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19073 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19074 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19075 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19076 to...
19077 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19078 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19079 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19080 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19081 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19082 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19083 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19084 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19085 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19086 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19087 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19088 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19089 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19090 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19091 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19092 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19093 to...
19094 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19095 ...this.
19096 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19097 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19098
19099 (gimple_use_ops): Update for removal of implicit pointer from the
19100 is-a.h API.
19101 (gimple_set_use_ops): Likewise.
19102 (gimple_vuse): Likewise.
19103 (gimple_vdef): Likewise.
19104 (gimple_vuse_ptr): Likewise.
19105 (gimple_vdef_ptr): Likewise.
19106 (gimple_set_vuse): Likewise.
19107 (gimple_set_vdef): Likewise.
19108 (gimple_omp_return_set_lhs): Likewise.
19109 (gimple_omp_return_lhs): Likewise.
19110 (gimple_omp_return_lhs_ptr): Likewise.
19111 (gimple_call_fntype): Likewise.
19112 (gimple_call_set_fntype): Likewise.
19113 (gimple_call_set_internal_fn): Likewise.
19114 (gimple_call_use_set): Likewise.
19115 (gimple_call_clobber_set): Likewise.
19116 (gimple_bind_vars): Likewise.
19117 (gimple_bind_set_vars): Likewise.
19118 (gimple_bind_body_ptr): Likewise.
19119 (gimple_bind_set_body): Likewise.
19120 (gimple_bind_add_stmt): Likewise.
19121 (gimple_bind_block): Likewise.
19122 (gimple_bind_set_block): Likewise.
19123 (gimple_asm_ninputs): Likewise.
19124 (gimple_asm_noutputs): Likewise.
19125 (gimple_asm_nclobbers): Likewise.
19126 (gimple_asm_nlabels): Likewise.
19127 (gimple_asm_input_op): Likewise.
19128 (gimple_asm_input_op_ptr): Likewise.
19129 (gimple_asm_output_op): Likewise.
19130 (gimple_asm_output_op_ptr): Likewise.
19131 (gimple_asm_set_output_op): Likewise.
19132 (gimple_asm_clobber_op): Likewise.
19133 (gimple_asm_set_clobber_op): Likewise.
19134 (gimple_asm_label_op): Likewise.
19135 (gimple_asm_set_label_op): Likewise.
19136 (gimple_asm_string): Likewise.
19137 (gimple_catch_types): Likewise.
19138 (gimple_catch_types_ptr): Likewise.
19139 (gimple_catch_handler_ptr): Likewise.
19140 (gimple_catch_set_types): Likewise.
19141 (gimple_catch_set_handler): Likewise.
19142 (gimple_eh_filter_types): Likewise.
19143 (gimple_eh_filter_types_ptr): Likewise.
19144 (gimple_eh_filter_failure_ptr): Likewise.
19145 (gimple_eh_filter_set_types): Likewise.
19146 (gimple_eh_filter_set_failure): Likewise.
19147 (gimple_eh_must_not_throw_fndecl): Likewise.
19148 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19149 (gimple_eh_else_n_body_ptr): Likewise.
19150 (gimple_eh_else_e_body_ptr): Likewise.
19151 (gimple_eh_else_set_n_body): Likewise.
19152 (gimple_eh_else_set_e_body): Likewise.
19153 (gimple_try_eval_ptr): Likewise.
19154 (gimple_try_cleanup_ptr): Likewise.
19155 (gimple_try_set_eval): Likewise.
19156 (gimple_try_set_cleanup): Likewise.
19157 (gimple_wce_cleanup_ptr): Likewise.
19158 (gimple_wce_set_cleanup): Likewise.
19159 (gimple_phi_capacity): Likewise.
19160 (gimple_phi_num_args): Likewise.
19161 (gimple_phi_result): Likewise.
19162 (gimple_phi_result_ptr): Likewise.
19163 (gimple_phi_set_result): Likewise.
19164 (gimple_phi_arg): Likewise.
19165 (gimple_phi_set_arg): Likewise.
19166 (gimple_resx_region): Likewise.
19167 (gimple_resx_set_region): Likewise.
19168 (gimple_eh_dispatch_region): Likewise.
19169 (gimple_eh_dispatch_set_region): Likewise.
19170 (gimple_omp_critical_name): Likewise.
19171 (gimple_omp_critical_name_ptr): Likewise.
19172 (gimple_omp_critical_set_name): Likewise.
19173 (gimple_omp_for_clauses): Likewise.
19174 (gimple_omp_for_clauses_ptr): Likewise.
19175 (gimple_omp_for_set_clauses): Likewise.
19176 (gimple_omp_for_collapse): Likewise.
19177 (gimple_omp_for_index): Likewise.
19178 (gimple_omp_for_index_ptr): Likewise.
19179 (gimple_omp_for_set_index): Likewise.
19180 (gimple_omp_for_initial): Likewise.
19181 (gimple_omp_for_initial_ptr): Likewise.
19182 (gimple_omp_for_set_initial): Likewise.
19183 (gimple_omp_for_final): Likewise.
19184 (gimple_omp_for_final_ptr): Likewise.
19185 (gimple_omp_for_set_final): Likewise.
19186 (gimple_omp_for_incr): Likewise.
19187 (gimple_omp_for_incr_ptr): Likewise.
19188 (gimple_omp_for_set_incr): Likewise.
19189 (gimple_omp_for_pre_body_ptr): Likewise.
19190 (gimple_omp_for_set_pre_body): Likewise.
19191 (gimple_omp_parallel_clauses): Likewise.
19192 (gimple_omp_parallel_clauses_ptr): Likewise.
19193 (gimple_omp_parallel_set_clauses): Likewise.
19194 (gimple_omp_parallel_child_fn): Likewise.
19195 (gimple_omp_parallel_child_fn_ptr): Likewise.
19196 (gimple_omp_parallel_set_child_fn): Likewise.
19197 (gimple_omp_parallel_data_arg): Likewise.
19198 (gimple_omp_parallel_data_arg_ptr): Likewise.
19199 (gimple_omp_parallel_set_data_arg): Likewise.
19200 (gimple_omp_task_clauses): Likewise.
19201 (gimple_omp_task_clauses_ptr): Likewise.
19202 (gimple_omp_task_set_clauses): Likewise.
19203 (gimple_omp_task_child_fn): Likewise.
19204 (gimple_omp_task_child_fn_ptr): Likewise.
19205 (gimple_omp_task_set_child_fn): Likewise.
19206 (gimple_omp_task_data_arg): Likewise.
19207 (gimple_omp_task_data_arg_ptr): Likewise.
19208 (gimple_omp_task_set_data_arg): Likewise.
19209 (gimple_omp_taskreg_clauses): Likewise.
19210 (gimple_omp_taskreg_clauses_ptr): Likewise.
19211 (gimple_omp_taskreg_set_clauses): Likewise.
19212 (gimple_omp_taskreg_child_fn): Likewise.
19213 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19214 (gimple_omp_taskreg_set_child_fn): Likewise.
19215 (gimple_omp_taskreg_data_arg): Likewise.
19216 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19217 (gimple_omp_taskreg_set_data_arg): Likewise.
19218 (gimple_omp_task_copy_fn): Likewise.
19219 (gimple_omp_task_copy_fn_ptr): Likewise.
19220 (gimple_omp_task_set_copy_fn): Likewise.
19221 (gimple_omp_task_arg_size): Likewise.
19222 (gimple_omp_task_arg_size_ptr): Likewise.
19223 (gimple_omp_task_set_arg_size): Likewise.
19224 (gimple_omp_task_arg_align): Likewise.
19225 (gimple_omp_task_arg_align_ptr): Likewise.
19226 (gimple_omp_task_set_arg_align): Likewise.
19227 (gimple_omp_single_clauses): Likewise.
19228 (gimple_omp_single_clauses_ptr): Likewise.
19229 (gimple_omp_single_set_clauses): Likewise.
19230 (gimple_omp_target_clauses): Likewise.
19231 (gimple_omp_target_clauses_ptr): Likewise.
19232 (gimple_omp_target_set_clauses): Likewise.
19233 (gimple_omp_target_child_fn): Likewise.
19234 (gimple_omp_target_child_fn_ptr): Likewise.
19235 (gimple_omp_target_set_child_fn): Likewise.
19236 (gimple_omp_target_data_arg): Likewise.
19237 (gimple_omp_target_data_arg_ptr): Likewise.
19238 (gimple_omp_target_set_data_arg): Likewise.
19239 (gimple_omp_teams_clauses): Likewise.
19240 (gimple_omp_teams_clauses_ptr): Likewise.
19241 (gimple_omp_teams_set_clauses): Likewise.
19242 (gimple_omp_sections_clauses): Likewise.
19243 (gimple_omp_sections_clauses_ptr): Likewise.
19244 (gimple_omp_sections_set_clauses): Likewise.
19245 (gimple_omp_sections_control): Likewise.
19246 (gimple_omp_sections_control_ptr): Likewise.
19247 (gimple_omp_sections_set_control): Likewise.
19248 (gimple_omp_for_set_cond): Likewise.
19249 (gimple_omp_for_cond): Likewise.
19250 (gimple_omp_atomic_store_set_val): Likewise.
19251 (gimple_omp_atomic_store_val): Likewise.
19252 (gimple_omp_atomic_store_val_ptr): Likewise.
19253 (gimple_omp_atomic_load_set_lhs): Likewise.
19254 (gimple_omp_atomic_load_lhs): Likewise.
19255 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19256 (gimple_omp_atomic_load_set_rhs): Likewise.
19257 (gimple_omp_atomic_load_rhs): Likewise.
19258 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19259 (gimple_omp_continue_control_def): Likewise.
19260 (gimple_omp_continue_control_def_ptr): Likewise.
19261 (gimple_omp_continue_set_control_def): Likewise.
19262 (gimple_omp_continue_control_use): Likewise.
19263 (gimple_omp_continue_control_use_ptr): Likewise.
19264 (gimple_omp_continue_set_control_use): Likewise.
19265 (gimple_transaction_body_ptr): Likewise.
19266 (gimple_transaction_label): Likewise.
19267 (gimple_transaction_label_ptr): Likewise.
19268 (gimple_transaction_set_body): Likewise.
19269 (gimple_transaction_set_label): Likewise.
19270
19271 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19272 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19273 * ipa-ref.c (ipa_record_reference): Likewise.
19274 * ipa-reference.c (analyze_function): Likewise.
19275 (ipa_reference_write_optimization_summary): Likewise.
19276 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19277 (address_taken_from_non_vtable_p): Likewise.
19278 (comdat_can_be_unshared_p_1): Likewise.
19279 * lto-cgraph.c (lto_output_ref): Likewise.
19280 (add_references): Likewise.
19281 (compute_ltrans_boundary): Likewise.
19282 (output_symtab): Likewise.
19283 (input_ref): Likewise.
19284 (input_cgraph_1): Likewise.
19285 (output_cgraph_opt_summary): Likewise.
19286 * lto-streamer-out.c (lto_output): Likewise.
19287 (output_symbol_p): Likewise.
19288 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19289 (lsei_start_function_in_partition): Likewise.
19290 (lsei_next_variable_in_partition): Likewise.
19291 (lsei_start_variable_in_partition): Likewise.
19292 * symtab.c (insert_to_assembler_name_hash): Likewise.
19293 (unlink_from_assembler_name_hash): Likewise.
19294 (symtab_unregister_node): Likewise.
19295 (symtab_remove_node): Likewise.
19296 (dump_symtab_node): Likewise.
19297 (verify_symtab_base): Likewise.
19298 (verify_symtab_node): Likewise.
19299 (symtab_make_decl_local): Likewise.
19300 (symtab_alias_ultimate_target): Likewise.
19301 (symtab_resolve_alias): Likewise.
19302 (symtab_get_symbol_partitioning_class): Likewise.
19303 * tree-phinodes.c (allocate_phi_node): Likewise.
19304 (reserve_phi_args_for_new_edge): Likewise.
19305 (remove_phi_args): Likewise.
19306 * varpool.c (varpool_node_for_asm): Likewise.
19307 (varpool_remove_unreferenced_decls): Likewise.
19308
19309 2014-04-23 Jeff Law <law@redhat.com>
19310
19311 PR tree-optimization/60902
19312 * tree-ssa-threadedge.c
19313 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19314 invalidate outputs from statements that do not produce useful
19315 outputs for threading.
19316
19317 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19318
19319 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19320 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19321 machine descriptions for Stack Smashing Protector.
19322
19323 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19324
19325 * aarch64.md (<optab>_rol<mode>3): New pattern.
19326 (<optab>_rolsi3_uxtw): Likewise.
19327 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19328
19329 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19330
19331 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19332 (arm_cortex_a12_tune): Likewise.
19333
19334 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19335
19336 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19337
19338 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19339
19340 * config/arm/arm.md (arm_rev16si2): New pattern.
19341 (arm_rev16si2_alt): Likewise.
19342 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19343
19344 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19345
19346 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19347 (rev16<mode>2_alt): Likewise.
19348 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19349 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19350 (aarch_rev16_shleft_mask_imm_p): Likewise.
19351 (aarch_rev16_p_1): Likewise.
19352 (aarch_rev16_p): Likewise.
19353 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19354 (aarch_rev16_shright_mask_imm_p): Likewise.
19355 (aarch_rev16_shleft_mask_imm_p): Likewise.
19356
19357 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19358
19359 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19360 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19361 rev cost.
19362 (cortex_a53_extra_costs): Likewise.
19363 (cortex_a57_extra_costs): Likewise.
19364 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19365 (cortexa7_extra_costs): Likewise.
19366 (cortexa8_extra_costs): Likewise.
19367 (cortexa12_extra_costs): Likewise.
19368 (cortexa15_extra_costs): Likewise.
19369 (v7m_extra_costs): Likewise.
19370 (arm_new_rtx_costs): Handle BSWAP.
19371
19372 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19373
19374 * config/arm/arm.c (cortexa8_extra_costs): New table.
19375 (arm_cortex_a8_tune): New tuning struct.
19376 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19377
19378 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19379
19380 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19381
19382 2014-04-23 Richard Biener <rguenther@suse.de>
19383
19384 * Makefile.in (OBJS): Remove loop-unswitch.o.
19385 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19386 * passes.def (pass_rtl_unswitch): Likewise.
19387 * loop-init.c (gate_rtl_unswitch): Likewise.
19388 (rtl_unswitch): Likewise.
19389 (pass_data_rtl_unswitch): Likewise.
19390 (pass_rtl_unswitch): Likewise.
19391 (make_pass_rtl_unswitch): Likewise.
19392 * rtl.h (reversed_condition): Likewise.
19393 (compare_and_jump_seq): Likewise.
19394 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19395 and make static.
19396 * loop-unroll.c (compare_and_jump_seq): Likewise.
19397
19398 2014-04-23 Richard Biener <rguenther@suse.de>
19399
19400 PR tree-optimization/60903
19401 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19402 commented code block.
19403 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19404 loop flags to newly created BBs and edges.
19405
19406 2014-04-23 Nick Clifton <nickc@redhat.com>
19407
19408 * config/msp430/msp430.c (msp430_handle_option): Move function
19409 to msp430-common.c
19410 (msp430_option_override): Simplify mcu and mcpu option handling.
19411 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19412 support for -mhwmult command line option.
19413 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19414 -mhwmult command line option.
19415 (msp430_hwmult_enabled): Delete.
19416 (msp43o_output_labelref): Add support for -mhwmult command line option.
19417 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19418 (umulsidi3): Likewise.
19419 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19420 (mcpu, mlarge, msmall): Likewise.
19421 (mhwmult): New option.
19422 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19423 prototype.
19424 (msp430_is_f5_mcu): Remove prototype.
19425 (msp430_use_f5_series_hwmult): Add prototype.
19426 * config/msp430/msp430-opts.h: New file.
19427 * common/config/msp430: New directory.
19428 * common/config/msp430/msp430-common.c: New file.
19429 * config.gcc (msp430): Remove target_has_targetm_common.
19430 * doc/invoke.texi: Document -mhwmult command line option.
19431
19432 2014-04-23 Nick Clifton <nickc@redhat.com>
19433
19434 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19435 default-manifest.o if it can be found in the search path.
19436 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19437
19438 2014-04-23 Terry Guo <terry.guo@arm.com>
19439
19440 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19441
19442 2014-04-23 Richard Biener <rguenther@suse.de>
19443
19444 PR middle-end/60895
19445 * tree-inline.c (declare_return_variable): Use mark_addressable.
19446
19447 2014-04-23 Richard Biener <rguenther@suse.de>
19448
19449 PR middle-end/60891
19450 * loop-init.c (loop_optimizer_init): Make sure to apply
19451 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19452
19453 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19454
19455 PR sanitizer/60275
19456 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19457 New options.
19458 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19459 if flag_sanitize_undefined_trap_on_error.
19460 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19461 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19462 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19463 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19464 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19465 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19466 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19467 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19468 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19469 * ubsan.c (ubsan_instrument_unreachable): Return
19470 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19471 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19472 if flag_sanitize_undefined_trap_on_error and
19473 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19474 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19475 instrument_bool_enum_load): Emit __builtin_trap () if
19476 flag_sanitize_undefined_trap_on_error and
19477 __builtin_handle_*_abort () if !flag_sanitize_recover.
19478 * doc/invoke.texi (-fsanitize-recover,
19479 -fsanitize-undefined-trap-on-error): Document.
19480
19481 2014-04-22 Christian Bruel <christian.bruel@st.com>
19482
19483 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19484 Force immediates to SImode.
19485
19486 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19487
19488 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19489 (lroundsfsi2): New.
19490 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19491 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19492 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19493 (nios2_fpu_insn): Add entry for round.
19494 (N2FPU_NO_ERRNO_P): Define.
19495 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19496 flag_errno_math.
19497 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19498
19499 2014-04-22 Richard Henderson <rth@redhat.com>
19500
19501 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19502 (add<GPI>3_compare0): Remove leading * from name.
19503 (add<GPI>3_carryin): Likewise.
19504 (sub<GPI>3_compare0): Likewise.
19505 (sub<GPI>3_carryin): Likewise.
19506 (<su_optab>mulditi3): New expander.
19507 (multi3): New expander.
19508 (madd<GPI>): Remove leading * from name.
19509
19510 2014-04-22 Martin Jambor <mjambor@suse.cz>
19511
19512 * cgraphclones.c (cgraph_function_versioning): Copy
19513 ipa_transforms_to_apply instead of asserting it is empty.
19514
19515 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19516
19517 PR target/60868
19518 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19519 on count_exp to get mode.
19520
19521 2014-04-22 Andrew Pinski <apinski@cavium.com>
19522
19523 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19524 Handle TLS for ILP32.
19525 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19526 (tlsie_small_<mode>): this and handle PTR.
19527 (tlsie_small_sidi): New pattern.
19528 (tlsle_small): Change to an expand to handle ILP32.
19529 (tlsle_small_<mode>): New pattern.
19530 (tlsdesc_small): Rename to ...
19531 (tlsdesc_small_<mode>): this and handle PTR.
19532
19533 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19534
19535 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19536
19537 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19538
19539 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19540 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19541 (aarch64_types_signed_poly_qualifiers): Likewise.
19542 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19543 (aarch64_types_poly_signed_qualifiers): Likewise.
19544 (TYPES_REINTERP_SS): Type macro added.
19545 (TYPES_REINTERP_SU): Likewise.
19546 (TYPES_REINTERP_SP): Likewise.
19547 (TYPES_REINTERP_US): Likewise.
19548 (TYPES_REINTERP_PS): Likewise.
19549 (aarch64_fold_builtin): New expression folding added.
19550 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19551 Declarations removed.
19552 (REINTERP_SS): Declarations added.
19553 (REINTERP_US): Likewise.
19554 (REINTERP_PS): Likewise.
19555 (REINTERP_SU): Likewise.
19556 (REINTERP_SP): Likewise.
19557 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19558 (vreinterpretq_p8_f64): Likewise.
19559 (vreinterpret_p16_f64): Likewise.
19560 (vreinterpretq_p16_f64): Likewise.
19561 (vreinterpret_f32_f64): Likewise.
19562 (vreinterpretq_f32_f64): Likewise.
19563 (vreinterpret_f64_f32): Likewise.
19564 (vreinterpret_f64_p8): Likewise.
19565 (vreinterpret_f64_p16): Likewise.
19566 (vreinterpret_f64_s8): Likewise.
19567 (vreinterpret_f64_s16): Likewise.
19568 (vreinterpret_f64_s32): Likewise.
19569 (vreinterpret_f64_s64): Likewise.
19570 (vreinterpret_f64_u8): Likewise.
19571 (vreinterpret_f64_u16): Likewise.
19572 (vreinterpret_f64_u32): Likewise.
19573 (vreinterpret_f64_u64): Likewise.
19574 (vreinterpretq_f64_f32): Likewise.
19575 (vreinterpretq_f64_p8): Likewise.
19576 (vreinterpretq_f64_p16): Likewise.
19577 (vreinterpretq_f64_s8): Likewise.
19578 (vreinterpretq_f64_s16): Likewise.
19579 (vreinterpretq_f64_s32): Likewise.
19580 (vreinterpretq_f64_s64): Likewise.
19581 (vreinterpretq_f64_u8): Likewise.
19582 (vreinterpretq_f64_u16): Likewise.
19583 (vreinterpretq_f64_u32): Likewise.
19584 (vreinterpretq_f64_u64): Likewise.
19585 (vreinterpret_s64_f64): Likewise.
19586 (vreinterpretq_s64_f64): Likewise.
19587 (vreinterpret_u64_f64): Likewise.
19588 (vreinterpretq_u64_f64): Likewise.
19589 (vreinterpret_s8_f64): Likewise.
19590 (vreinterpretq_s8_f64): Likewise.
19591 (vreinterpret_s16_f64): Likewise.
19592 (vreinterpretq_s16_f64): Likewise.
19593 (vreinterpret_s32_f64): Likewise.
19594 (vreinterpretq_s32_f64): Likewise.
19595 (vreinterpret_u8_f64): Likewise.
19596 (vreinterpretq_u8_f64): Likewise.
19597 (vreinterpret_u16_f64): Likewise.
19598 (vreinterpretq_u16_f64): Likewise.
19599 (vreinterpret_u32_f64): Likewise.
19600 (vreinterpretq_u32_f64): Likewise.
19601
19602 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19603
19604 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19605 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19606 (vreinterpret_p8_s8): Likewise.
19607 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19608 (vreinterpret_p8_s16): Likewise.
19609 (vreinterpret_p8_s32): Likewise.
19610 (vreinterpret_p8_s64): Likewise.
19611 (vreinterpret_p8_f32): Likewise.
19612 (vreinterpret_p8_u8): Likewise.
19613 (vreinterpret_p8_u16): Likewise.
19614 (vreinterpret_p8_u32): Likewise.
19615 (vreinterpret_p8_u64): Likewise.
19616 (vreinterpret_p8_p16): Likewise.
19617 (vreinterpretq_p8_s8): Likewise.
19618 (vreinterpretq_p8_s16): Likewise.
19619 (vreinterpretq_p8_s32): Likewise.
19620 (vreinterpretq_p8_s64): Likewise.
19621 (vreinterpretq_p8_f32): Likewise.
19622 (vreinterpretq_p8_u8): Likewise.
19623 (vreinterpretq_p8_u16): Likewise.
19624 (vreinterpretq_p8_u32): Likewise.
19625 (vreinterpretq_p8_u64): Likewise.
19626 (vreinterpretq_p8_p16): Likewise.
19627 (vreinterpret_p16_s8): Likewise.
19628 (vreinterpret_p16_s16): Likewise.
19629 (vreinterpret_p16_s32): Likewise.
19630 (vreinterpret_p16_s64): Likewise.
19631 (vreinterpret_p16_f32): Likewise.
19632 (vreinterpret_p16_u8): Likewise.
19633 (vreinterpret_p16_u16): Likewise.
19634 (vreinterpret_p16_u32): Likewise.
19635 (vreinterpret_p16_u64): Likewise.
19636 (vreinterpret_p16_p8): Likewise.
19637 (vreinterpretq_p16_s8): Likewise.
19638 (vreinterpretq_p16_s16): Likewise.
19639 (vreinterpretq_p16_s32): Likewise.
19640 (vreinterpretq_p16_s64): Likewise.
19641 (vreinterpretq_p16_f32): Likewise.
19642 (vreinterpretq_p16_u8): Likewise.
19643 (vreinterpretq_p16_u16): Likewise.
19644 (vreinterpretq_p16_u32): Likewise.
19645 (vreinterpretq_p16_u64): Likewise.
19646 (vreinterpretq_p16_p8): Likewise.
19647 (vreinterpret_f32_s8): Likewise.
19648 (vreinterpret_f32_s16): Likewise.
19649 (vreinterpret_f32_s32): Likewise.
19650 (vreinterpret_f32_s64): Likewise.
19651 (vreinterpret_f32_u8): Likewise.
19652 (vreinterpret_f32_u16): Likewise.
19653 (vreinterpret_f32_u32): Likewise.
19654 (vreinterpret_f32_u64): Likewise.
19655 (vreinterpret_f32_p8): Likewise.
19656 (vreinterpret_f32_p16): Likewise.
19657 (vreinterpretq_f32_s8): Likewise.
19658 (vreinterpretq_f32_s16): Likewise.
19659 (vreinterpretq_f32_s32): Likewise.
19660 (vreinterpretq_f32_s64): Likewise.
19661 (vreinterpretq_f32_u8): Likewise.
19662 (vreinterpretq_f32_u16): Likewise.
19663 (vreinterpretq_f32_u32): Likewise.
19664 (vreinterpretq_f32_u64): Likewise.
19665 (vreinterpretq_f32_p8): Likewise.
19666 (vreinterpretq_f32_p16): Likewise.
19667 (vreinterpret_s64_s8): Likewise.
19668 (vreinterpret_s64_s16): Likewise.
19669 (vreinterpret_s64_s32): Likewise.
19670 (vreinterpret_s64_f32): Likewise.
19671 (vreinterpret_s64_u8): Likewise.
19672 (vreinterpret_s64_u16): Likewise.
19673 (vreinterpret_s64_u32): Likewise.
19674 (vreinterpret_s64_u64): Likewise.
19675 (vreinterpret_s64_p8): Likewise.
19676 (vreinterpret_s64_p16): Likewise.
19677 (vreinterpretq_s64_s8): Likewise.
19678 (vreinterpretq_s64_s16): Likewise.
19679 (vreinterpretq_s64_s32): Likewise.
19680 (vreinterpretq_s64_f32): Likewise.
19681 (vreinterpretq_s64_u8): Likewise.
19682 (vreinterpretq_s64_u16): Likewise.
19683 (vreinterpretq_s64_u32): Likewise.
19684 (vreinterpretq_s64_u64): Likewise.
19685 (vreinterpretq_s64_p8): Likewise.
19686 (vreinterpretq_s64_p16): Likewise.
19687 (vreinterpret_u64_s8): Likewise.
19688 (vreinterpret_u64_s16): Likewise.
19689 (vreinterpret_u64_s32): Likewise.
19690 (vreinterpret_u64_s64): Likewise.
19691 (vreinterpret_u64_f32): Likewise.
19692 (vreinterpret_u64_u8): Likewise.
19693 (vreinterpret_u64_u16): Likewise.
19694 (vreinterpret_u64_u32): Likewise.
19695 (vreinterpret_u64_p8): Likewise.
19696 (vreinterpret_u64_p16): Likewise.
19697 (vreinterpretq_u64_s8): Likewise.
19698 (vreinterpretq_u64_s16): Likewise.
19699 (vreinterpretq_u64_s32): Likewise.
19700 (vreinterpretq_u64_s64): Likewise.
19701 (vreinterpretq_u64_f32): Likewise.
19702 (vreinterpretq_u64_u8): Likewise.
19703 (vreinterpretq_u64_u16): Likewise.
19704 (vreinterpretq_u64_u32): Likewise.
19705 (vreinterpretq_u64_p8): Likewise.
19706 (vreinterpretq_u64_p16): Likewise.
19707 (vreinterpret_s8_s16): Likewise.
19708 (vreinterpret_s8_s32): Likewise.
19709 (vreinterpret_s8_s64): Likewise.
19710 (vreinterpret_s8_f32): Likewise.
19711 (vreinterpret_s8_u8): Likewise.
19712 (vreinterpret_s8_u16): Likewise.
19713 (vreinterpret_s8_u32): Likewise.
19714 (vreinterpret_s8_u64): Likewise.
19715 (vreinterpret_s8_p8): Likewise.
19716 (vreinterpret_s8_p16): Likewise.
19717 (vreinterpretq_s8_s16): Likewise.
19718 (vreinterpretq_s8_s32): Likewise.
19719 (vreinterpretq_s8_s64): Likewise.
19720 (vreinterpretq_s8_f32): Likewise.
19721 (vreinterpretq_s8_u8): Likewise.
19722 (vreinterpretq_s8_u16): Likewise.
19723 (vreinterpretq_s8_u32): Likewise.
19724 (vreinterpretq_s8_u64): Likewise.
19725 (vreinterpretq_s8_p8): Likewise.
19726 (vreinterpretq_s8_p16): Likewise.
19727 (vreinterpret_s16_s8): Likewise.
19728 (vreinterpret_s16_s32): Likewise.
19729 (vreinterpret_s16_s64): Likewise.
19730 (vreinterpret_s16_f32): Likewise.
19731 (vreinterpret_s16_u8): Likewise.
19732 (vreinterpret_s16_u16): Likewise.
19733 (vreinterpret_s16_u32): Likewise.
19734 (vreinterpret_s16_u64): Likewise.
19735 (vreinterpret_s16_p8): Likewise.
19736 (vreinterpret_s16_p16): Likewise.
19737 (vreinterpretq_s16_s8): Likewise.
19738 (vreinterpretq_s16_s32): Likewise.
19739 (vreinterpretq_s16_s64): Likewise.
19740 (vreinterpretq_s16_f32): Likewise.
19741 (vreinterpretq_s16_u8): Likewise.
19742 (vreinterpretq_s16_u16): Likewise.
19743 (vreinterpretq_s16_u32): Likewise.
19744 (vreinterpretq_s16_u64): Likewise.
19745 (vreinterpretq_s16_p8): Likewise.
19746 (vreinterpretq_s16_p16): Likewise.
19747 (vreinterpret_s32_s8): Likewise.
19748 (vreinterpret_s32_s16): Likewise.
19749 (vreinterpret_s32_s64): Likewise.
19750 (vreinterpret_s32_f32): Likewise.
19751 (vreinterpret_s32_u8): Likewise.
19752 (vreinterpret_s32_u16): Likewise.
19753 (vreinterpret_s32_u32): Likewise.
19754 (vreinterpret_s32_u64): Likewise.
19755 (vreinterpret_s32_p8): Likewise.
19756 (vreinterpret_s32_p16): Likewise.
19757 (vreinterpretq_s32_s8): Likewise.
19758 (vreinterpretq_s32_s16): Likewise.
19759 (vreinterpretq_s32_s64): Likewise.
19760 (vreinterpretq_s32_f32): Likewise.
19761 (vreinterpretq_s32_u8): Likewise.
19762 (vreinterpretq_s32_u16): Likewise.
19763 (vreinterpretq_s32_u32): Likewise.
19764 (vreinterpretq_s32_u64): Likewise.
19765 (vreinterpretq_s32_p8): Likewise.
19766 (vreinterpretq_s32_p16): Likewise.
19767 (vreinterpret_u8_s8): Likewise.
19768 (vreinterpret_u8_s16): Likewise.
19769 (vreinterpret_u8_s32): Likewise.
19770 (vreinterpret_u8_s64): Likewise.
19771 (vreinterpret_u8_f32): Likewise.
19772 (vreinterpret_u8_u16): Likewise.
19773 (vreinterpret_u8_u32): Likewise.
19774 (vreinterpret_u8_u64): Likewise.
19775 (vreinterpret_u8_p8): Likewise.
19776 (vreinterpret_u8_p16): Likewise.
19777 (vreinterpretq_u8_s8): Likewise.
19778 (vreinterpretq_u8_s16): Likewise.
19779 (vreinterpretq_u8_s32): Likewise.
19780 (vreinterpretq_u8_s64): Likewise.
19781 (vreinterpretq_u8_f32): Likewise.
19782 (vreinterpretq_u8_u16): Likewise.
19783 (vreinterpretq_u8_u32): Likewise.
19784 (vreinterpretq_u8_u64): Likewise.
19785 (vreinterpretq_u8_p8): Likewise.
19786 (vreinterpretq_u8_p16): Likewise.
19787 (vreinterpret_u16_s8): Likewise.
19788 (vreinterpret_u16_s16): Likewise.
19789 (vreinterpret_u16_s32): Likewise.
19790 (vreinterpret_u16_s64): Likewise.
19791 (vreinterpret_u16_f32): Likewise.
19792 (vreinterpret_u16_u8): Likewise.
19793 (vreinterpret_u16_u32): Likewise.
19794 (vreinterpret_u16_u64): Likewise.
19795 (vreinterpret_u16_p8): Likewise.
19796 (vreinterpret_u16_p16): Likewise.
19797 (vreinterpretq_u16_s8): Likewise.
19798 (vreinterpretq_u16_s16): Likewise.
19799 (vreinterpretq_u16_s32): Likewise.
19800 (vreinterpretq_u16_s64): Likewise.
19801 (vreinterpretq_u16_f32): Likewise.
19802 (vreinterpretq_u16_u8): Likewise.
19803 (vreinterpretq_u16_u32): Likewise.
19804 (vreinterpretq_u16_u64): Likewise.
19805 (vreinterpretq_u16_p8): Likewise.
19806 (vreinterpretq_u16_p16): Likewise.
19807 (vreinterpret_u32_s8): Likewise.
19808 (vreinterpret_u32_s16): Likewise.
19809 (vreinterpret_u32_s32): Likewise.
19810 (vreinterpret_u32_s64): Likewise.
19811 (vreinterpret_u32_f32): Likewise.
19812 (vreinterpret_u32_u8): Likewise.
19813 (vreinterpret_u32_u16): Likewise.
19814 (vreinterpret_u32_u64): Likewise.
19815 (vreinterpret_u32_p8): Likewise.
19816 (vreinterpret_u32_p16): Likewise.
19817 (vreinterpretq_u32_s8): Likewise.
19818 (vreinterpretq_u32_s16): Likewise.
19819 (vreinterpretq_u32_s32): Likewise.
19820 (vreinterpretq_u32_s64): Likewise.
19821 (vreinterpretq_u32_f32): Likewise.
19822 (vreinterpretq_u32_u8): Likewise.
19823 (vreinterpretq_u32_u16): Likewise.
19824 (vreinterpretq_u32_u64): Likewise.
19825 (vreinterpretq_u32_p8): Likewise.
19826 (vreinterpretq_u32_p16): Likewise.
19827
19828 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19829
19830 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19831 Pattern extended.
19832 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19833 (sqabs): Likewise.
19834 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19835 (vqnegd_s64): Likewise.
19836 (vqabs_s64): Likewise.
19837 (vqabsd_s64): Likewise.
19838
19839 2014-04-22 Richard Henderson <rth@redhat.com>
19840
19841 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19842 computation to the top of the loop.
19843
19844 2014-04-22 Renlin <renlin.li@arm.com>
19845 Jiong Wang <jiong.wang@arm.com>
19846
19847 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19848 * config/aarch64/aarch64.c (aarch64_layout_frame)
19849 (aarch64_initial_elimination_offset): Likewise.
19850
19851 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19852
19853 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19854 Fix indentation.
19855
19856 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19857
19858 * machmode.h (bitwise_mode_for_mode): Declare.
19859 * stor-layout.h (bitwise_type_for_mode): Likewise.
19860 * stor-layout.c (bitwise_mode_for_mode): New function.
19861 (bitwise_type_for_mode): Likewise.
19862 * builtins.c (fold_builtin_memory_op): Use it instead of
19863 int_mode_for_mode and build_nonstandard_integer_type.
19864
19865 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19866
19867 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19868 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19869 (*-*-solaris2*): Simplify.
19870 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19871 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19872 *-*-solaris2.9* handling.
19873
19874 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19875 as bug.
19876 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19877 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19878 handling, simplify.
19879 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19880 * configure: Regenerate.
19881
19882 * config/i386/sol2-9.h: Remove.
19883
19884 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19885 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19886 Remove Solaris 9 references.
19887
19888 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19889
19890 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19891 (floatuns<GPI:mode><GPF:mode>2): Remove.
19892 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19893 and floatuns conversions.
19894 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19895 and floatuns conversions.
19896 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19897 (w1,w2): New mode attributes for inequal width conversions.
19898
19899 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19900
19901 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19902 the output asm format.
19903
19904 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19905
19906 * config/aarch64/aarch64-simd.md
19907 (aarch64_cm<optab>di): Always split.
19908 (*aarch64_cm<optab>di): New.
19909 (aarch64_cmtstdi): Always split.
19910 (*aarch64_cmtstdi): New.
19911
19912 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19913
19914 PR tree-optimization/60823
19915 * omp-low.c (ipa_simd_modify_function_body): Go through
19916 all SSA_NAMEs and for those refering to vector arguments
19917 which are going to be replaced adjust SSA_NAME_VAR and,
19918 if it is a default definition, change it into a non-default
19919 definition assigned at the beginning of function from new_decl.
19920 (ipa_simd_modify_stmt_ops): Rewritten.
19921 * tree-dfa.c (set_ssa_default_def): When removing default def,
19922 check for NULL loc instead of NULL *loc.
19923
19924 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19925
19926 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19927 restrictions on core registers for DImode values in Thumb2.
19928
19929 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19930
19931 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19932 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19933
19934 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19935
19936 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19937 (*iordi_notzesidi_di): Likewise.
19938 (*iordi_notsesidi_di): Likewise.
19939
19940 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19941
19942 * config/arm/arm-protos.h (tune_params): New struct members.
19943 * config/arm/arm.c: Initialise tune_params per processor.
19944 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19945 for speed, based on new tune_params.
19946
19947 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19948
19949 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19950 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19951 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19952 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19953 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19954 (vrnda_f64): Likewise.
19955 (vrndi_f64): Likewise.
19956 (vrndm_f64): Likewise.
19957 (vrndn_f64): Likewise.
19958 (vrndp_f64): Likewise.
19959 (vrndx_f64): Likewise.
19960
19961 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19962
19963 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19964 GET_MODE_SIZE argument is enum machine_mode.
19965
19966 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19967
19968 PR target/60910
19969 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19970 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19971
19972 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19973
19974 PR middle-end/60281
19975 * asan.c (asan_emit_stack_protection): Force the base to align to
19976 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19977 appropriate bits if STRICT_ALIGNMENT.
19978 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19979 when asan is on.
19980 (expand_used_vars): Leave a space in the stack frame for alignment
19981 if STRICT_ALIGNMENT.
19982
19983 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19984
19985 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19986 than a gimple.
19987 (gimple_store_p): Likewise.
19988 (gimple_assign_load_p): Likewise.
19989 (gimple_assign_cast_p): Likewise.
19990 (gimple_clobber_p): Likewise.
19991
19992 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19993 rather than a gimple.
19994 (gimple_assign_cast_p): Likewise.
19995
19996 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19997
19998 PR target/60735
19999 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20000 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20001
20002 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20003 more debug information for E500 if -mdebug=reg.
20004
20005 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20006
20007 PR target/60909
20008 * config/i386/i386.c (ix86_expand_builtin)
20009 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20010 register for target RTX.
20011 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20012
20013 2014-04-18 Cong Hou <congh@google.com>
20014
20015 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20016 the widen-mult pattern by handling two operands with different sizes,
20017 and operands whose size is smaller than half of the result type.
20018
20019 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20020
20021 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20022 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20023 (do_estimate_edge_time): Compute it.
20024 * ipa-inline.c (want_inline_small_function_p): Bypass
20025 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20026
20027 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20028
20029 * ipa-inline.c (spec_rem): New static variable.
20030 (dump_overall_stats): New function.
20031 (dump_inline_stats): New function.
20032
20033 2014-04-18 Richard Henderson <rth@redhat.com>
20034
20035 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20036 to GET_MODE_SIZE, not a reg_class_t.
20037
20038 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20039
20040 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20041 (vsx_xxmrglw_<mode>): Likewise.
20042
20043 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20044
20045 PR target/60876
20046 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20047 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20048 (rs6000_init_hard_regno_mode_ok): Likewise.
20049
20050 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20051
20052 * ipa-inline.c (inline_small_functions): Account only non-cold
20053 functions.
20054 * doc/invoke.texi (inline-unit-growth): Update documentation.
20055
20056 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20057
20058 * config/rs6000/rs6000.md (addti3, subti3): New.
20059
20060 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20061
20062 PR target/60863
20063 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20064 comment. Check optimize_insn_for_size_p instead of
20065 optimize_insn_for_speed_p.
20066
20067 2014-04-17 Martin Jambor <mjambor@suse.cz>
20068
20069 * gimple-iterator.c (gsi_start_edge): New function.
20070 * gimple-iterator.h (gsi_start_edge): Declare.
20071 * tree-sra.c (single_non_eh_succ): New function.
20072 (disqualify_ops_if_throwing_stmt): Renamed to
20073 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20074 having one non-EH successor BB.
20075 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20076 generate loads into replacements.
20077 (sra_modify_assign): Likewise and and also use the simple path for
20078 such statements.
20079 (sra_modify_function_body): Commit statements on edges.
20080
20081 2014-04-17 Richard Biener <rguenther@suse.de>
20082
20083 PR middle-end/60849
20084 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20085 comparison results and add clarifying comment.
20086
20087 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20088
20089 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20090 (blank_mode): Initialize it.
20091 (emit_mode_size_inline, emit_mode_nunits_inline,
20092 emit_mode_inner_inline): New functions.
20093 (emit_insn_modes_h): Call them and surround their output with
20094 #if GCC_VERSION >= 4001 ... #endif.
20095 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20096 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20097 mode_* arrays if the argument is __builtin_constant_p.
20098 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20099 is enum machine_mode.
20100
20101 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20102
20103 * passes.c (opt_pass::execute): Adjust.
20104 (pass_manager::execute_pass_mode_switching): Likewise.
20105 (early_local_passes::execute): Likewise.
20106 (execute_one_pass): Pass cfun to the pass's execute method.
20107 * tree-pass.h (opt_pass::execute): Add function * argument.
20108 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20109 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20110 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20111 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20112 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20113 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20114 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20115 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20116 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20117 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20118 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20119 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20120 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20121 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20122 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20123 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20124 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20125 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20126 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20127 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20128 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20129 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20130 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20131 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20132 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20133 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20134 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20135 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20136 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20137 Adjust.
20138
20139 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20140
20141 * passes.c (opt_pass::gate): Take function * argument.
20142 (gate_all_early_local_passes): Merge into
20143 (early_local_passes::gate): this.
20144 (gate_all_early_optimizations): Merge into
20145 (all_early_optimizations::gate): this.
20146 (gate_all_optimizations): Mege into
20147 (all_optimizations::gate): this.
20148 (gate_all_optimizations_g): Merge into
20149 (all_optimizations_g::gate): this.
20150 (gate_rest_of_compilation): Mege into
20151 (rest_of_compilation::gate): this.
20152 (gate_postreload): Merge into
20153 (postreload::gate): this.
20154 (dump_one_pass): Pass cfun to the pass's gate method.
20155 (execute_ipa_summary_passes): Likewise.
20156 (execute_one_pass): Likewise.
20157 (ipa_write_summaries_2): Likewise.
20158 (ipa_write_optimization_summaries_1): Likewise.
20159 (ipa_read_summaries_1): Likewise.
20160 (ipa_read_optimization_summaries_1): Likewise.
20161 (execute_ipa_stmt_fixups): Likewise.
20162 * tree-pass.h (opt_pass::gate): Add function * argument.
20163 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20164 combine-stack-adj.c, combine.c, compare-elim.c,
20165 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20166 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20167 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20168 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20169 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20170 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20171 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20172 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20173 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20174 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20175 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20176 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20177 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20178 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20179 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20180 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20181 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20182 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20183 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20184 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20185 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20186 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20187 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20188 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20189 var-tracking.c, vtable-verify.c, web.c: Adjust.
20190
20191 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20192
20193 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20194 * configure: Regenerate.
20195
20196 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20197
20198 * passes.c (dump_one_pass): don't check pass->has_gate.
20199 (execute_ipa_summary_passes): Likewise.
20200 (execute_one_pass): Likewise.
20201 (ipa_write_summaries_2): Likewise.
20202 (ipa_write_optimization_summaries_1): Likewise.
20203 (ipa_read_optimization_summaries_1): Likewise.
20204 (execute_ipa_stmt_fixups): Likewise.
20205 * tree-pass.h (pass_data::has_gate): Remove.
20206 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20207 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20208 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20209 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20210 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20211 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20212 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20213 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20214 gimple-low.c, gimple-ssa-isolate-paths.c,
20215 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20216 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20217 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20218 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20219 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20220 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20221 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20222 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20223 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20224 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20225 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20226 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20227 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20228 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20229 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20230 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20231 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20232 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20233 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20234 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20235 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20236 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20237 Adjust.
20238
20239 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20240
20241 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20242 declaration.
20243 * passes.c (pass_manager::register_dump_files_1): Merge into
20244 (pass_manager::register_dump_files): this, and remove its handling of
20245 properties since the pass always has the properties anyway.
20246 (pass_manager::pass_manager): Adjust.
20247
20248 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20249
20250 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20251 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20252 dealing with properties.
20253 (pass_manager::register_dump_files): Adjust.
20254
20255 2014-03-20 Mark Wielaard <mjw@redhat.com>
20256
20257 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20258 then represent the bound as normal constant value.
20259
20260 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20261
20262 PR target/60847
20263 Forward port from 4.8 branch
20264 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20265
20266 * config/i386/bmiintrin.h (_blsi_u32): New.
20267 (_blsi_u64): Ditto.
20268 (_blsr_u32): Ditto.
20269 (_blsr_u64): Ditto.
20270 (_blsmsk_u32): Ditto.
20271 (_blsmsk_u64): Ditto.
20272 (_tzcnt_u32): Ditto.
20273 (_tzcnt_u64): Ditto.
20274
20275 2014-04-17 Kito Cheng <kito@0xlab.org>
20276
20277 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20278
20279 2014-04-17 Richard Biener <rguenther@suse.de>
20280
20281 PR middle-end/60849
20282 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20283 boolean results for comparisons.
20284
20285 2014-04-17 Richard Biener <rguenther@suse.de>
20286
20287 PR tree-optimization/60836
20288 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20289 initial PHI args to be gimple values.
20290
20291 2014-04-17 Richard Biener <rguenther@suse.de>
20292
20293 PR tree-optimization/60841
20294 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20295 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20296 of stmts to SLP build.
20297 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20298 (vect_analyze_slp): Likewise.
20299 (vect_analyze_slp_instance): Likewise.
20300 (vect_build_slp_tree): Limit overall SLP tree growth.
20301 * tree-vectorizer.h (vect_analyze_data_refs,
20302 vect_analyze_slp): Adjust prototypes.
20303
20304 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20305
20306 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20307 Silvermont.
20308
20309 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20310
20311 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20312 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20313 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20314 for TARGET_SLOW_PSHUFB
20315
20316 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20317
20318 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20319 * config/i386/i386.c (intel_cost): Ditto.
20320
20321 2014-04-17 Joey Ye <joey.ye@arm.com>
20322
20323 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20324
20325 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20326
20327 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20328 with -fuse-profile.
20329
20330 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20331
20332 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20333 (type_all_derivations_known_p): New predicate.
20334 (type_all_ctors_visible_p): New predicate.
20335 (type_possibly_instantiated_p): New predicate.
20336 (get_odr_type): Compute all_derivations_known.
20337 (dump_odr_type): Dump the flag.
20338 (maybe_record_type): Cleanup.
20339 (record_target_from_binfo): Add bases_to_consider array;
20340 record bases for types w/o instances and skip CXX destructor.
20341 (possible_polymorphic_call_targets_1): Add bases_to_consider
20342 and consider_construction parameters; check if type may have instance.
20343 (get_polymorphic_call_info): Set maybe_in_construction to true
20344 when we know nothing.
20345 (record_targets_from_bases): Skip CXX destructors; they are
20346 never called for types in construction.
20347 (possible_polymorphic_call_targets): Do not record target when
20348 type may not have instance.
20349
20350 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20351
20352 PR ipa/60854
20353 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20354 external aliases alive, too.
20355
20356 2014-04-16 Andrew Pinski <apinski@cavium.com>
20357
20358 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20359 definition.
20360
20361 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20362
20363 * final.c (compute_alignments): Do not apply loop alignment to a block
20364 falling through to the exit.
20365
20366 2014-04-16 Catherine Moore <clm@codesourcery.com>
20367
20368 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20369 Adjust constraints for microMIPS store patterns.
20370
20371 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20372
20373 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20374
20375 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20376
20377 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20378 (append_use): Run at -O0.
20379 (append_vdef): Likewise.
20380 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20381 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20382
20383 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20384
20385 PR tree-optimization/60844
20386 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20387 (propagate_op_to_single_use, remove_visited_stmt_chain,
20388 linearize_expr, repropagate_negates, reassociate_bb): Use it
20389 instead of gsi_remove.
20390
20391 2014-04-16 Martin Jambor <mjambor@suse.cz>
20392
20393 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20394 ipa_transforms_to_apply.
20395 (cgraph_function_versioning): Assert that old_node has empty
20396 ipa_transforms_to_apply.
20397 * trans-mem.c (ipa_tm_create_version): Likewise.
20398 * tree-inline.c (tree_function_versioning): Do not duplicate
20399 ipa_transforms_to_apply.
20400
20401 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20402
20403 PR target/60817
20404 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20405 x86_64-*-* cases.
20406 Pass necessary as flags on 64-bit Solaris/x86.
20407 Use lowercase relocs for x86_64-*-*.
20408 * configure: Regenerate.
20409
20410 2014-04-15 Jan Hubicka <jh@suse.cz>
20411
20412 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20413 (maybe_record_node, likely_target_p): Use it.
20414
20415 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20416
20417 PR target/60839
20418 Revert following patch
20419
20420 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20421
20422 PR target/60735
20423 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20424 software floating point or no floating point registers, do not
20425 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20426 in GPRs that occurs after we tested for GPRs that would never be
20427 true.
20428
20429 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20430 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20431 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20432 specifically allow DDmode, since that does not use the SPE SIMD
20433 instructions.
20434
20435 2014-03-21 Mark Wielaard <mjw@redhat.com>
20436
20437 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20438 as unsigned or int depending on type and value used.
20439
20440 2014-04-15 Richard Biener <rguenther@suse.de>
20441
20442 PR rtl-optimization/56965
20443 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20444 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20445 ... here.
20446 * alias.c (true_dependence_1): Do not call
20447 nonoverlapping_component_refs_p.
20448 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20449 nonoverlapping_component_refs_p.
20450 (indirect_refs_may_alias_p): Likewise.
20451
20452 2014-04-15 Teresa Johnson <tejohnson@google.com>
20453
20454 * cfg.c (dump_bb_info): Fix flags check.
20455 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20456
20457 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20458
20459 PR rtl-optimization/60663
20460 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20461 avoid 0 cost.
20462
20463 2014-04-15 Richard Biener <rguenther@suse.de>
20464
20465 * lto-streamer.h (LTO_major_version): Bump to 4.
20466
20467 2014-04-15 Richard Biener <rguenther@suse.de>
20468
20469 * common.opt (lto_partition_model): New enum.
20470 (flto-partition=): Merge separate options with a single with argument,
20471 add -flto-partition=one support.
20472 * flag-types.h (enum lto_partition_model): Declare.
20473 * opts.c (finish_options): Remove duplicate -flto-partition=
20474 option check.
20475 * lto-wrapper.c (run_gcc): Adjust.
20476
20477 2014-04-15 Richard Biener <rguenther@suse.de>
20478
20479 * alias.c (ncr_compar): New function.
20480 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20481
20482 2014-04-15 Richard Biener <rguenther@suse.de>
20483
20484 * alias.c (record_component_aliases): Do not walk BINFOs.
20485
20486 2014-04-15 Richard Biener <rguenther@suse.de>
20487
20488 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20489 Add struct function argument and adjust.
20490 (find_func_aliases_for_call): Likewise.
20491 (find_func_aliases): Likewise.
20492 (find_func_clobbers): Likewise.
20493 (intra_create_variable_infos): Likewise.
20494 (compute_points_to_sets): Likewise.
20495 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20496
20497 2014-04-15 Richard Biener <rguenther@suse.de>
20498
20499 * tree.c (iterative_hash_expr): Use enum tree_code_class
20500 to store TREE_CODE_CLASS.
20501 (tree_block): Likewise.
20502 (tree_set_block): Likewise.
20503 * tree.h (fold_build_pointer_plus_loc): Use
20504 convert_to_ptrofftype_loc.
20505
20506 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20507
20508 PR plugins/59335
20509 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20510 added in 4.9.
20511
20512 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20513
20514 * cfgloop.h (struct loop): Move force_vectorize down.
20515 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20516 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20517 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20518 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20519 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20520 * tree-core.h (enum annot_expr_kind): Add new kind values.
20521 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20522 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20523 kinds.
20524 * tree.def (ANNOTATE_EXPR): Tweak comment.
20525
20526 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20527
20528 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20529 cxa_pure_virtual).
20530
20531 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20532
20533 * tree.h (TYPE_IDENTIFIER): Declare.
20534 * tree.c (subrange_type_for_debug_p): Use it.
20535 * godump.c (go_format_type): Likewise.
20536 * dwarf2out.c (is_cxx_auto, modified_type_die,
20537 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20538 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20539
20540 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20541
20542 PR lto/60820
20543 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20544
20545 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20546
20547 * config/i386/i386.c (examine_argument): Return bool. Return true if
20548 parameter should be passed in memory.
20549 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20550 (construct_container): Update calls to examine_argument.
20551 (function_arg_advance_64): Ditto.
20552 (return_in_memory_32): Merge with ix86_return_in_memory.
20553 (return_in_memory_64): Ditto.
20554 (return_in_memory_ms_64): Ditto.
20555
20556 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20557
20558 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20559 * coverage.c (coverage_compute_profile_id): Handle externally visible
20560 symbols.
20561
20562 2014-04-14 Martin Jambor <mjambor@suse.cz>
20563
20564 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20565 DECL_DISREGARD_INLINE_LIMITS functions.
20566
20567 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20568
20569 PR target/60827
20570 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20571
20572 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20573
20574 PR target/60827
20575 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20576 optimize_insn_for_speed_p instead of
20577 optimize_function_for_speed_p.
20578
20579 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20580
20581 * doc/invoke.texi (free): Document AArch64.
20582
20583 2014-04-14 Richard Biener <rguenther@suse.de>
20584
20585 PR tree-optimization/60042
20586 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20587 (insert_into_preds_of_block): Do not prevent PHI insertion
20588 for REFERENCE exprs here ...
20589 (eliminate_dom_walker::before_dom_children): ... but prevent
20590 their use here under similar conditions when applied to the
20591 IL after PRE optimizations.
20592
20593 2014-04-14 Richard Biener <rguenther@suse.de>
20594
20595 * passes.def: Move early points-to after early SRA.
20596
20597 2014-04-14 Richard Biener <rguenther@suse.de>
20598
20599 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20600 check for which sign-changes we allow when forwarding
20601 a converted value into a switch.
20602
20603 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20604
20605 * stor-layout.c (place_field): Finalize non-constant offset for the
20606 field, if any.
20607
20608 2014-04-14 Richard Biener <rguenther@suse.de>
20609
20610 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20611 as argument.
20612 (expand_switch_using_bit_tests_p): Likewise.
20613 (process_switch): Compute and pass on speed_p based on the
20614 switch stmt.
20615 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20616 optimize_bb_for_speed_p.
20617
20618 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20619
20620 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20621 * function.h (struct function): Rename has_force_vect_loops into
20622 has_force_vectorize_loops.
20623 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20624 (input_struct_function_base): Likewise.
20625 * lto-streamer-out.c (output_cfg): Likewise.
20626 (output_struct_function_base): Likewise.
20627 * omp-low.c (expand_omp_simd): Likewise.
20628 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20629 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20630 (version_loop_for_if_conversion): Likewise.
20631 (tree_if_conversion): Likewise.
20632 (main_tree_if_conversion): Likewise.
20633 (gate_tree_if_conversion): Likewise.
20634 * tree-inline.c (copy_loops): Likewise.
20635 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20636 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20637 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20638 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20639 * tree-vectorizer.c (vectorize_loops): Likewise.
20640 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20641
20642 2014-04-14 Richard Biener <rguenther@suse.de>
20643
20644 PR lto/60720
20645 * lto-streamer-out.c (wrap_refs): New function.
20646 (lto_output): Wrap symbol references in global initializes in
20647 type-preserving MEM_REFs.
20648
20649 2014-04-14 Christian Bruel <christian.bruel@st.com>
20650
20651 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20652
20653 2014-04-14 Christian Bruel <christian.bruel@st.com>
20654
20655 * config/sh/sh.md (setmemqi): New expand pattern.
20656 * config/sh/sh.h (CLEAR_RATIO): Define.
20657 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20658 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20659
20660 2014-04-14 Richard Biener <rguenther@suse.de>
20661
20662 PR middle-end/55022
20663 * fold-const.c (negate_expr_p): Don't negate directional rounding
20664 division.
20665 (fold_negate_expr): Likewise.
20666
20667 2014-04-14 Richard Biener <rguenther@suse.de>
20668
20669 PR tree-optimization/59817
20670 PR tree-optimization/60453
20671 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20672 recursion to catch all CHRECs in the scalar evolution and restrict
20673 the predicate for the remains appropriately.
20674
20675 2014-04-12 Catherine Moore <clm@codesourcery.com>
20676
20677 * config/mips/constraints.md: Add new register constraint "kb".
20678 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20679 (*movhi_internal): Likewise.
20680 (*movqi_internal): Likewise.
20681 * config/mips/mips.h (M16_STORE_REGS): New register class.
20682 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20683 (REG_CLASS_CONTENTS): Likewise.
20684 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20685
20686 2014-04-11 Tobias Burnus <burnus@net-b.de>
20687
20688 PR c/60194
20689 * doc/invoke.texi (-Wformat-signedness): Document it.
20690 (Wformat=2): Mention that this enables -Wformat-signedness.
20691
20692 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20693
20694 * common/config/epiphany/epiphany-common.c
20695 (epiphany_option_optimization_table): Enable section anchors by
20696 default at -O1 or higher.
20697 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20698 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20699 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20700 carries no extra cost.
20701 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20702 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20703 * config/epiphany/predicates.md (memclob_operand): New predicate.
20704 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20705 Use memclob_operand predicate and X constraint for operand 3.
20706
20707 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20708
20709 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20710 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20711 its operands.
20712
20713 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20714
20715 PR rtl-optimization/60651
20716 * mode-switching.c (optimize_mode_switching): Make sure to emit
20717 sets of a lower numbered entity before sets of a higher numbered
20718 entity to a mode of the same or lower priority.
20719 When creating a seginfo for a basic block that starts with a code
20720 label, move the insertion point past the code label.
20721 (new_seginfo): Document and enforce requirement that
20722 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20723 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20724 * doc/tm.texi: Regenerate.
20725
20726 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20727
20728 PR target/60811
20729 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20730
20731 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20732
20733 * BASE-VER: Set to 4.10.0.
20734
20735 2014-04-11 Tobias Burnus <burnus@net-b.de>
20736
20737 PR other/59055
20738 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20739 * doc/gcc.texi (Service): Update description in the @menu
20740 * doc/invoke.texi (Option Summary): Remove misplaced and
20741 duplicated @menu.
20742
20743 2014-04-11 Steve Ellcey <sellcey@mips.com>
20744 Jakub Jelinek <jakub@redhat.com>
20745
20746 PR middle-end/60556
20747 * expr.c (convert_move): Use emit_store_flag_force instead of
20748 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20749 argument to it.
20750
20751 2014-04-11 Richard Biener <rguenther@suse.de>
20752
20753 PR middle-end/60797
20754 * varasm.c (assemble_alias): Avoid endless error reporting
20755 recursion by setting TREE_ASM_WRITTEN.
20756
20757 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20758
20759 * config/s390/s390.md: Add a splitter for NOT rtx.
20760
20761 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20762
20763 PR rtl-optimization/60663
20764 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20765
20766 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20767 Jakub Jelinek <jakub@redhat.com>
20768
20769 PR lto/60567
20770 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20771 flag from decl_node to node.
20772
20773 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20774
20775 PR debug/60655
20776 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20777 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20778 ameliorating the cases where it can be.
20779
20780 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20781
20782 Revert
20783 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20784
20785 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20786 (loadsync_<mode>): Change mode.
20787 (load_quadpti, store_quadpti): New.
20788 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20789 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20790 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20791
20792 2014-04-09 Cong Hou <congh@google.com>
20793
20794 PR testsuite/60773
20795 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20796 documentation.
20797
20798 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20799
20800 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20801 instead of vnor to exploit possible fusion opportunity in the
20802 future.
20803 (altivec_expand_vec_perm_const_le): Likewise.
20804
20805 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20806
20807 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20808 (loadsync_<mode>): Change mode.
20809 (load_quadpti, store_quadpti): New.
20810 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20811 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20812
20813 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20814
20815 PR target/60763
20816 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20817 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20818 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20819
20820 2014-04-08 Richard Biener <rguenther@suse.de>
20821
20822 PR middle-end/60706
20823 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20824 a 64bit widest int print double-int similar to on HWI64 hosts.
20825
20826 2014-04-08 Richard Biener <rguenther@suse.de>
20827
20828 PR tree-optimization/60785
20829 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20830 default defs properly.
20831
20832 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20833
20834 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20835 (Weffc++): Likewise.
20836
20837 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20838
20839 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20840 set completep to false rather than true.
20841
20842 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20843
20844 PR target/60504
20845 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20846 ARM_TARGET2_DWARF_FORMAT.
20847
20848 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20849
20850 PR target/60609
20851 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20852 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20853 ADDR_DIFF_VEC.
20854
20855 2014-04-07 Richard Biener <rguenther@suse.de>
20856
20857 PR tree-optimization/60766
20858 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20859 (may_eliminate_iv): Convert cand_value_at result to desired type.
20860
20861 2014-04-07 Jason Merrill <jason@redhat.com>
20862
20863 PR c++/60731
20864 * common.opt (-fno-gnu-unique): Add.
20865 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20866
20867 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20868
20869 * haifa-sched.c: Fix outdated function reference and minor
20870 grammar errors in introductory comment.
20871
20872 2014-04-07 Richard Biener <rguenther@suse.de>
20873
20874 PR middle-end/60750
20875 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20876 for noreturn calls.
20877 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20878
20879 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20880
20881 PR debug/55794
20882 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20883 size accounting for thunks.
20884 (pa_asm_output_mi_thunk): Use final_start_function() and
20885 final_end_function() to output function start and end directives.
20886
20887 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20888
20889 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20890 device specific ISA/ feature information. Remove short_sp and
20891 errata_skip ds. Add avr_device_specific_features enum to have device
20892 specific info.
20893 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20894 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20895 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20896 updated device specific info.
20897 * config/avr/avr-mcus.def: Merge device specific details to
20898 dev_attribute field.
20899 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20900 errata_skip.
20901 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20902 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20903 assembler if RMW isa supported by current device.
20904 * config/avr/genmultilib.awk: Update as device info structure changed.
20905 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20906
20907 2014-04-04 Cong Hou <congh@google.com>
20908
20909 PR tree-optimization/60656
20910 * tree-vect-stmts.c (supportable_widening_operation):
20911 Fix a bug that elements in a vector with vect_used_by_reduction
20912 property are incorrectly reordered when the operation on it is not
20913 consistant with the one in reduction operation.
20914
20915 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20916
20917 PR rtl-optimization/60155
20918 * gcse.c (record_set_data): New function.
20919 (single_set_gcse): New function.
20920 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20921 (hoist_code): Likewise.
20922 (get_pressure_class_and_nregs): Likewise.
20923
20924 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20925
20926 * explow.c (probe_stack_range): Emit a final optimization blockage.
20927
20928 2014-04-04 Anthony Green <green@moxielogic.com>
20929
20930 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20931 typos.
20932
20933 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20934
20935 PR ipa/59626
20936 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20937 flags are set only during streaming.
20938 * ipa.c (process_references, walk_polymorphic_call_targets,
20939 symtab_remove_unreachable_nodes): Drop bodies of always inline
20940 after early inlining.
20941 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20942
20943 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20944 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20945
20946 PR debug/60655
20947 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20948 containing a NOT.
20949
20950 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20951
20952 PR bootstrap/60743
20953 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20954 duration.
20955 (cortex_a53_fdivd): Likewise.
20956
20957 2014-04-04 Martin Jambor <mjambor@suse.cz>
20958
20959 PR ipa/60640
20960 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20961 Adjust all callers.
20962 * cgraph.c (clone_of_p): Also return true if thunks match.
20963 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20964 cgraph_function_or_thunk_node and an obsolete comment.
20965 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20966 file.
20967 (build_function_decl_skip_args): Likewise.
20968 (set_new_clone_decl_and_node_flags): New function.
20969 (duplicate_thunk_for_node): Likewise.
20970 (redirect_edge_duplicating_thunks): Likewise.
20971 (cgraph_clone_node): New parameter args_to_skip, pass it to
20972 redirect_edge_duplicating_thunks which is called instead of
20973 cgraph_redirect_edge_callee.
20974 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20975 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20976
20977 2014-04-04 Jeff Law <law@redhat.com>
20978
20979 PR target/60657
20980 * config/arm/predicates.md (const_int_I_operand): New predicate.
20981 (const_int_M_operand): Similarly.
20982 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20983 const_int_operand.
20984 (insv_t2, extv_reg, extzv_t2): Likewise.
20985 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20986 (pop_multiple_with_writeback_and_return): Likewise.
20987 (vfp_pop_multiple_with_writeback): Likewise
20988
20989 2014-04-04 Richard Biener <rguenther@suse.de>
20990
20991 PR ipa/60746
20992 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20993 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20994 non-GIMPLE_LABELs.
20995 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20996 * gimplify.c (gimple_add_tmp_var_fn): New function.
20997 * gimple-expr.h (create_tmp_reg_fn): Declare.
20998 * gimple-expr.c (create_tmp_reg_fn): New function.
20999 * gimple-low.c (record_vars_into): Don't change cfun.
21000 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21001 code generation without cfun.
21002
21003 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21004
21005 PR bootstrap/60719
21006 * Makefile.in (install-driver): Fix shell scripting.
21007
21008 2014-04-03 Cong Hou <congh@google.com>
21009
21010 PR tree-optimization/60505
21011 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21012 threshold of number of iterations below which no vectorization
21013 will be done.
21014 * tree-vect-loop.c (new_loop_vec_info):
21015 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21016 * tree-vect-loop.c (vect_analyze_loop_operations):
21017 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21018 * tree-vect-loop.c (vect_transform_loop):
21019 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21020 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21021 of iterations of the loop and see if we should build the epilogue.
21022
21023 2014-04-03 Richard Biener <rguenther@suse.de>
21024
21025 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21026 (streamer_tree_cache_create): Adjust.
21027 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21028 to allow optional nodes array.
21029 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21030 (streamer_tree_cache_append): Likewise.
21031 (streamer_tree_cache_create): Create nodes array optionally
21032 as specified by parameter.
21033 * lto-streamer-out.c (create_output_block): Avoid maintaining
21034 the node array in the writer cache.
21035 (DFS_write_tree): Remove assertion.
21036 (produce_asm_for_decls): Free the out decl state hash table early.
21037 * lto-streamer-in.c (lto_data_in_create): Adjust for
21038 streamer_tree_cache_create prototype change.
21039
21040 2014-04-03 Richard Biener <rguenther@suse.de>
21041
21042 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21043 set TREE_CHAIN to NULL_TREE.
21044
21045 2014-04-03 Richard Biener <rguenther@suse.de>
21046
21047 PR tree-optimization/60740
21048 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21049 over all GIMPLE_COND operands.
21050
21051 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21052
21053 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21054 (Weffc++): Remove Scott's numbering, merge lists and reference
21055 Wnon-virtual-dtor.
21056
21057 2014-04-03 Nick Clifton <nickc@redhat.com>
21058
21059 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21060 properly.
21061
21062 2014-04-03 Martin Jambor <mjambor@suse.cz>
21063
21064 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21065 mention gcc_unreachable before failing.
21066 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21067 removed symbols.
21068
21069 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21070
21071 PR ipa/60659
21072 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21073 inconsistent code and instead mark the context inconsistent.
21074 (possible_polymorphic_call_targets): For inconsistent contexts
21075 return empty complete list.
21076
21077 2014-04-02 Anthony Green <green@moxielogic.com>
21078
21079 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21080 (extendqisi2, extendhisi2): Define.
21081 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21082 (WCHAR_TYPE): Change to unsigned int.
21083
21084 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21085
21086 PR tree-optimization/60733
21087 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21088 insertion point for PHI candidates to be the end of the feeding
21089 block for the PHI argument.
21090
21091 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21092
21093 PR rtl-optimization/60650
21094 * lra-constraints.c (process_alt_operands): Decrease reject for
21095 earlyclobber matching.
21096
21097 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21098
21099 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21100
21101 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21102
21103 * config/spu/spu.c (pad_bb): Do not crash when the last
21104 insn is CODE_FOR_blockage.
21105
21106 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21107
21108 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21109 lies outside the target mode.
21110
21111 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21112
21113 PR target/60735
21114 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21115 software floating point or no floating point registers, do not
21116 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21117 in GPRs that occurs after we tested for GPRs that would never be
21118 true.
21119
21120 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21121 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21122 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21123 specifically allow DDmode, since that does not use the SPE SIMD
21124 instructions.
21125
21126 2014-04-02 Richard Biener <rguenther@suse.de>
21127
21128 PR middle-end/60729
21129 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21130 MODE_INTs. Properly use negv_optab.
21131 (expand_abs): Likewise.
21132
21133 2014-04-02 Richard Biener <rguenther@suse.de>
21134
21135 PR bootstrap/60719
21136 * Makefile.in (install-driver): Guard extra installs with special
21137 names properly.
21138
21139 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21140
21141 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21142 Document vec_vgbbd.
21143
21144 2014-04-01 Richard Henderson <rth@redhat.com>
21145
21146 PR target/60704
21147 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21148 alternative enabled before register allocation.
21149
21150 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21151
21152 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21153 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21154 typo.
21155 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21156 (nios2_got_address): Update nios2_large_got_address call site.
21157 (nios2_delegitimize_address): New function.
21158 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21159 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21160 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21161
21162 2014-04-01 Martin Husemann <martin@duskware.de>
21163
21164 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21165 for -mabi=32.
21166
21167 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21168
21169 PR rtl-optimization/60604
21170 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21171 check from register_operand.
21172 (register_operand): Redefine in terms of general_operand.
21173 (nonmemory_operand): Use register_operand for the non-constant cases.
21174
21175 2014-04-01 Richard Biener <rguenther@suse.de>
21176
21177 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21178
21179 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21180
21181 * doc/invoke.texi (mapp-regs): Clarify.
21182
21183 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21184
21185 * config/i386/avx512fintrin.h (__v32hi): Define type.
21186 (__v64qi): Likewise.
21187 (_mm512_set1_epi8): Define.
21188 (_mm512_set1_epi16): Define.
21189 (_mm512_set4_epi32): Define.
21190 (_mm512_set4_epi64): Define.
21191 (_mm512_set4_pd): Define.
21192 (_mm512_set4_ps): Define.
21193 (_mm512_setr4_epi64): Define.
21194 (_mm512_setr4_epi32): Define.
21195 (_mm512_setr4_pd): Define.
21196 (_mm512_setr4_ps): Define.
21197 (_mm512_setzero_epi32): Define.
21198
21199 2014-03-31 Martin Jambor <mjambor@suse.cz>
21200
21201 PR middle-end/60647
21202 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21203 callsite_arguments_match_p. Updated all callers. Also check types of
21204 corresponding formal parameters and actual arguments.
21205 (not_all_callers_have_enough_arguments_p) Renamed to
21206 some_callers_have_mismatched_arguments_p.
21207
21208 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21209
21210 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21211
21212 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21213
21214 PR target/60034
21215 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21216 section anchor.
21217
21218 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21219
21220 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21221 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21222 Split out
21223 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21224 Use FMAMODE_NOVF512 mode iterator.
21225 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21226 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21227 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21228 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21229 Split out
21230 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21231 Use VF_128_256 mode iterator.
21232 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21233 Ditto.
21234
21235 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21236
21237 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21238 static chain if needed.
21239
21240 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21241
21242 PR target/60697
21243 * lra-constraints.c (index_part_to_reg): New.
21244 (process_address): Use it.
21245
21246 2014-03-27 Jeff Law <law@redhat.com>
21247 Jakub Jelinek <jakub@redhat.com>
21248
21249 PR target/60648
21250 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21251 gen_rtx_{PLUS,MULT} to build up the address expression.
21252
21253 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21254 creating non-canonical RTL.
21255
21256 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21257
21258 PR ipa/60243
21259 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21260 functions; reorganize to make cheap checks first.
21261 (inline_small_functions): Do not estimate growth when dumping;
21262 it is expensive.
21263 * ipa-inline.h (inline_summary): Add min_size.
21264 (growth_likely_positive): New function.
21265 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21266 (set_cond_stmt_execution_predicate): Cleanup.
21267 (estimate_edge_size_and_time): Compute min_size.
21268 (estimate_calls_size_and_time): Likewise.
21269 (estimate_node_size_and_time): Likewise.
21270 (inline_update_overall_summary): Update min_size.
21271 (do_estimate_edge_time): Likewise.
21272 (do_estimate_edge_size): Update.
21273 (do_estimate_edge_hints): Update.
21274 (growth_likely_positive): New function.
21275
21276 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21277
21278 PR target/60693
21279 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21280 also if addr has VOIDmode.
21281
21282 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21283
21284 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21285 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21286 Declare extern.
21287 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21288 instructions as well as AdvancedSIMD loads.
21289
21290 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21291
21292 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21293 Use crypto_aese type.
21294 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21295 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21296 crypto_aese, crypto_aesmc. Move to types.md.
21297 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21298 crypto_aesmc.
21299 * config/arm/iterators.md (crypto_type): Likewise.
21300
21301 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21302
21303 * cgraph.c: Include expr.h and tree-dfa.h.
21304 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21305 remove LHS.
21306
21307 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21308
21309 PR target/60675
21310 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21311 regs from checking multi-reg pseudos.
21312
21313 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21314
21315 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21316
21317 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21318
21319 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21320 if it would clobber the stack pointer, even temporarily.
21321
21322 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21323
21324 * mode-switching.c: Make small adjustments to the top comment.
21325
21326 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21327
21328 * config/rs6000/constraints.md (wD constraint): New constraint to
21329 match the constant integer to get the top DImode/DFmode out of a
21330 vector in a VSX register.
21331
21332 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21333 match the constant integer to get the top DImode/DFmode out of a
21334 vector in a VSX register.
21335
21336 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21337 for ISA 2.07.
21338
21339 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21340 vbpermq builtins.
21341
21342 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21343 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21344
21345 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21346 Optimize vec_extract of 64-bit values, where the value being
21347 extracted is in the top word, where we can use scalar
21348 instructions. Add direct move and store support. Combine the big
21349 endian/little endian vector select load support into a single insn.
21350 (vsx_extract_<mode>_internal1): Likewise.
21351 (vsx_extract_<mode>_internal2): Likewise.
21352 (vsx_extract_<mode>_load): Likewise.
21353 (vsx_extract_<mode>_store): Likewise.
21354 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21355 combined into vsx_extract_<mode>_load.
21356 (vsx_extract_<mode>_one_le): Likewise.
21357
21358 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21359 define the top 64-bit vector element.
21360
21361 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21362 constraint.
21363
21364 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21365 Document vec_vbpermq builtin.
21366
21367 PR target/60672
21368 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21369 enable use of xxsldwi and xxpermdi builtin functions.
21370 (vec_xxpermdi): Likewise.
21371
21372 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21373 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21374
21375 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21376
21377 PR rtl-optimization/60650
21378 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21379 first_p. Use it.
21380 (find_spills_for): New.
21381 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21382 Spill all pseudos on the second iteration.
21383
21384 2014-03-27 Marek Polacek <polacek@redhat.com>
21385
21386 PR c/50347
21387 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21388 types.
21389
21390 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21391
21392 * config/s390/s390.c (s390_can_use_return_insn): Check for
21393 call-saved FPRs on 31 bit.
21394
21395 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21396
21397 PR middle-end/60682
21398 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21399 if they need regimplification, just drop them instead of
21400 calling gimple_regimplify_operands on them.
21401
21402 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21403
21404 PR target/60580
21405 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21406 (aarch64_frame_pointer_required): Adjust logic.
21407 (aarch64_can_eliminate): Adjust logic.
21408 (aarch64_override_options_after_change): Adjust logic.
21409
21410 2014-03-27 Dehao Chen <dehao@google.com>
21411
21412 * ipa-inline.c (early_inliner): Update node's inline info.
21413
21414 2014-03-26 Dehao Chen <dehao@google.com>
21415
21416 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21417 compiler inserted conditional jumps for NAN float check.
21418
21419 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21420
21421 * ubsan.h (ubsan_create_data): Change second argument's type
21422 to const location_t *.
21423 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21424 _("<unknown>").
21425 (ubsan_create_data): Change second argument to const location_t *PLOC.
21426 Create Loc field whenever PLOC is non-NULL.
21427 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21428 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21429 callers.
21430
21431 PR other/59545
21432 * real.c (real_to_integer2): Change type of low to UHWI.
21433
21434 2014-03-26 Tobias Burnus <burnus@net-b.de>
21435
21436 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21437 (CILK_SELF_SPECS): New define.
21438 (driver_self_specs): Use it.
21439
21440 2014-03-26 Richard Biener <rguenther@suse.de>
21441
21442 * tree-pretty-print.c (percent_K_format): Implement special
21443 case for LTO and its stripped down BLOCK tree.
21444
21445 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21446
21447 PR sanitizer/60636
21448 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21449
21450 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21451 one range is range_int_cst_p, but not both, at least optimize
21452 addition/subtraction of 0 and multiplication by 0 or 1.
21453 * gimple-fold.c (gimple_fold_call): Fold
21454 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21455 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21456 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21457
21458 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21459
21460 PR rtl-optimization/60452
21461 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21462 <case REG>: Return 1 for invalid offsets from the frame pointer.
21463
21464 2014-03-26 Marek Polacek <polacek@redhat.com>
21465
21466 PR c/37428
21467 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21468 a structure/union.
21469
21470 2014-03-26 Marek Polacek <polacek@redhat.com>
21471
21472 PR c/39525
21473 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21474 field members.
21475
21476 2014-03-26 Marek Polacek <polacek@redhat.com>
21477
21478 PR other/59545
21479 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21480 multiplication in unsigned type.
21481
21482 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21483
21484 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21485
21486 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21487
21488 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21489
21490 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21491
21492 PR ipa/60315
21493 * cif-code.def (UNREACHABLE) New code.
21494 * ipa-inline.c (inline_small_functions): Skip edges to
21495 __builtlin_unreachable.
21496 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21497 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21498 predicate to __bulitin_unreachable.
21499 (set_cond_stmt_execution_predicate): Fix issue when
21500 invert_tree_comparison returns ERROR_MARK.
21501 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21502 propagate to inline clones.
21503 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21504 to unreachable.
21505 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21506 * cgraphclones.c (cgraph_clone_node): If call destination is already
21507 ureachable, do not redirect it back.
21508 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21509 unreachable.
21510
21511 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21512
21513 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21514 Do not modify inline clones.
21515
21516 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21517
21518 * config/i386/i386.md (general_sext_operand): New mode attr.
21519 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21520 don't generate (sign_extend (const_int)).
21521 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21522 operands[2]. Use We constraint instead of <i> and
21523 <general_sext_operand> predicate instead of <general_operand>.
21524 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21525 * config/i386/constraints.md (We): New constraint.
21526 * config/i386/predicates.md (x86_64_sext_operand,
21527 sext_operand): New predicates.
21528
21529 2014-03-25 Martin Jambor <mjambor@suse.cz>
21530
21531 PR ipa/60600
21532 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21533 inconsistent devirtualizations to __builtin_unreachable.
21534
21535 2014-03-25 Marek Polacek <polacek@redhat.com>
21536
21537 PR c/35449
21538 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21539
21540 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21541
21542 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21543 order of elements for big-endian.
21544
21545 2014-03-25 Richard Biener <rguenther@suse.de>
21546
21547 PR middle-end/60635
21548 * gimplify-me.c (gimple_regimplify_operands): Update the
21549 re-gimplifed stmt.
21550
21551 2014-03-25 Martin Jambor <mjambor@suse.cz>
21552
21553 PR ipa/59176
21554 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21555 (lto_output_varpool_node): Likewise.
21556 (input_overwrite_node): Likewise.
21557 (input_varpool_node): Likewise.
21558
21559 2014-03-25 Richard Biener <rguenther@suse.de>
21560
21561 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21562 (run_gcc): Likewise.
21563
21564 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21565
21566 * combine.c (simplify_compare_const): Add MODE argument.
21567 Handle mode_width 0 as very large mode_width.
21568 (try_combine, simplify_comparison): Adjust callers.
21569
21570 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21571 type to avoid signed integer overflow.
21572 * explow.c (plus_constant): Likewise.
21573
21574 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21575
21576 * doc/generic.texi: Correct typos.
21577
21578 2014-03-24 Tobias Burnus <burnus@net-b.de>
21579
21580 * doc/invoke.texi (-flto): Expand section about
21581 using static libraries with LTO.
21582
21583 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21584
21585 PR rtl-optimization/60501
21586 * optabs.def (addptr3_optab): New optab.
21587 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21588 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21589 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21590
21591 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21592
21593 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21594
21595 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21596
21597 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21598 _mm512_set1_pd.
21599
21600 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21601 (_mm256_undefined_ps): Define.
21602 (_mm256_undefined_pd): Define.
21603 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21604 (_mm_undefined_pd): Define.
21605 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21606 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21607 (_mm512_undefined_ps): Define.
21608 (_mm512_undefined_pd): Define.
21609 Use _mm*_undefined_*.
21610 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21611
21612 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21613
21614 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21615 (lshr_simd): DI mode added.
21616 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21617 (aarch64_ushr_simddi): Likewise.
21618 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21619 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21620 (vshrd_n_u64): Likewise.
21621
21622 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21623
21624 * Makefile.in (s-macro_list): Depend on cc1.
21625
21626 2014-03-23 Teresa Johnson <tejohnson@google.com>
21627
21628 * ipa-utils.c (ipa_print_order): Use specified dump file.
21629
21630 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21631
21632 PR rtl-optimization/60601
21633 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21634
21635 * gcc.c (eval_spec_function): Initialize save_growing_value.
21636
21637 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21638
21639 PR sanitizer/60613
21640 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21641 code == MINUS_EXPR, never swap op0 with op1.
21642
21643 * toplev.c (init_local_tick): Avoid signed integer multiplication
21644 overflow.
21645 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21646 shift by first operand's bitsize.
21647
21648 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21649
21650 PR target/60610
21651 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21652 redefine to 1 or 0.
21653 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21654 TARGET_ISA_64BIT_P(x).
21655
21656 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21657
21658 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21659 pattern for vector nor instead of subtract from splat(-1).
21660 (altivec_expand_vec_perm_const_le): Likewise.
21661
21662 2014-03-21 Richard Henderson <rth@twiddle.net>
21663
21664 PR target/60598
21665 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21666 related insns after epilogue_completed.
21667
21668 2014-03-21 Martin Jambor <mjambor@suse.cz>
21669
21670 PR ipa/59176
21671 * cgraph.h (symtab_node): New flag body_removed.
21672 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21673 when removing bodies.
21674 * symtab.c (dump_symtab_base): Dump body_removed flag.
21675 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21676 had their bodies removed.
21677
21678 2014-03-21 Martin Jambor <mjambor@suse.cz>
21679
21680 PR ipa/60419
21681 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21682 in the border.
21683
21684 2014-03-21 Richard Biener <rguenther@suse.de>
21685
21686 PR tree-optimization/60577
21687 * tree-core.h (struct tree_base): Document nothrow_flag use
21688 in DECL_NONALIASED.
21689 * tree.h (DECL_NONALIASED): New.
21690 (may_be_aliased): Adjust.
21691 * coverage.c (build_var): Set DECL_NONALIASED.
21692
21693 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21694
21695 * expr.c (expand_expr_real_1): Remove outdated comment.
21696
21697 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21698
21699 PR middle-end/60597
21700 * ira.c (adjust_cleared_regs): Call copy_rtx on
21701 *reg_equiv[REGNO (loc)].src_p before passing it to
21702 simplify_replace_fn_rtx.
21703
21704 PR target/60568
21705 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21706 into CONST, put pic register as first operand of PLUS. Use
21707 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21708
21709 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21710
21711 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21712
21713 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21714
21715 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21716 around for store forwarding issue in the FPU on the UT699.
21717 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21718 loads and operations if -mfix-ut699 is specified.
21719 (divtf3_hq): Tweak attribute.
21720 (sqrttf2_hq): Likewise.
21721
21722 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21723
21724 * calls.c (store_one_arg): Remove incorrect const qualification on the
21725 type of the temporary.
21726 * cfgexpand.c (expand_return): Likewise.
21727 * expr.c (expand_constructor): Likewise.
21728 (expand_expr_real_1): Likewise.
21729
21730 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21731
21732 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21733 of parts.
21734
21735 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21736
21737 PR target/60039
21738 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21739
21740 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21741
21742 * config/arm/aarch-common-protos.h
21743 (alu_cost_table): Fix spelling of "extend".
21744 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21745
21746 2014-03-19 Richard Biener <rguenther@suse.de>
21747
21748 PR middle-end/60553
21749 * tree-core.h (tree_type_common): Re-order pointer members
21750 to reduce recursion depth during GC walks.
21751
21752 2014-03-19 Marek Polacek <polacek@redhat.com>
21753
21754 PR sanitizer/60569
21755 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21756 before accessing it.
21757
21758 2014-03-19 Richard Biener <rguenther@suse.de>
21759
21760 PR lto/59543
21761 * lto-streamer-in.c (input_function): In WPA stage do not drop
21762 debug stmts.
21763
21764 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21765
21766 PR tree-optimization/60559
21767 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21768 with build_zero_cst assignment.
21769
21770 2014-03-18 Kai Tietz <ktietz@redhat.com>
21771
21772 PR rtl-optimization/56356
21773 * sdbout.c (sdbout_parms): Verify that parms'
21774 incoming argument is valid.
21775 (sdbout_reg_parms): Likewise.
21776
21777 2014-03-18 Richard Henderson <rth@redhat.com>
21778
21779 PR target/60562
21780 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21781 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21782 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21783
21784 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21785
21786 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21787 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21788 Italicize plugin event names in description. Explain that
21789 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21790 Remind that no GCC functions should be called after PLUGIN_FINISH.
21791 Explain what pragmas with expansion are.
21792
21793 2014-03-18 Martin Liska <mliska@suse.cz>
21794
21795 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21796 gimple call statement is update.
21797 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21798 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21799
21800 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21801
21802 PR sanitizer/60557
21803 * ubsan.c (ubsan_instrument_unreachable): Call
21804 initialize_sanitizer_builtins.
21805 (ubsan_pass): Likewise.
21806
21807 PR sanitizer/60535
21808 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21809 varpool_finalize_decl instead of rest_of_decl_compilation.
21810
21811 2014-03-18 Richard Biener <rguenther@suse.de>
21812
21813 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21814 by using bitmap_and_compl instead of bitmap_and_compl_into.
21815 (df_rd_transfer_function): Likewise.
21816
21817 2014-03-18 Richard Biener <rguenther@suse.de>
21818
21819 * doc/lto.texi (fresolution): Fix typo.
21820
21821 2014-03-18 Richard Biener <rguenther@suse.de>
21822
21823 * doc/invoke.texi (flto): Update for changes in 4.9.
21824
21825 2014-03-18 Richard Biener <rguenther@suse.de>
21826
21827 * doc/loop.texi: Remove section on the removed lambda framework.
21828 Update loop docs with recent changes in preserving loop structure.
21829
21830 2014-03-18 Richard Biener <rguenther@suse.de>
21831
21832 * doc/lto.texi (-fresolution): Document.
21833
21834 2014-03-18 Richard Biener <rguenther@suse.de>
21835
21836 * doc/contrib.texi: Adjust my name.
21837
21838 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21839
21840 PR ipa/58721
21841 * internal-fn.c: Include diagnostic-core.h.
21842 (expand_BUILTIN_EXPECT): New function.
21843 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21844 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21845 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21846 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21847 IFN_BUILTIN_EXPECT.
21848 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21849 Revert 3 argument __builtin_expect code.
21850 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21851 * gimple-fold.c (gimple_fold_call): Likewise.
21852 * tree.h (fold_builtin_expect): New prototype.
21853 * builtins.c (build_builtin_expect_predicate): Add predictor
21854 argument, if non-NULL, create 3 argument __builtin_expect.
21855 (fold_builtin_expect): No longer static. Add ARG2 argument,
21856 pass it through to build_builtin_expect_predicate.
21857 (fold_builtin_2): Adjust caller.
21858 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21859 * internal-fn.def (BUILTIN_EXPECT): New.
21860
21861 2014-03-18 Tobias Burnus <burnus@net-b.de>
21862
21863 PR ipa/58721
21864 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21865 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21866 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21867
21868 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21869
21870 PR ipa/58721
21871 * predict.c (combine_predictions_for_bb): Fix up formatting.
21872 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21873 fill what it points to if non-NULL.
21874 (tree_predict_by_opcode): Adjust caller, use the predictor.
21875 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21876
21877 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21878
21879 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21880 proper constant for the store mode.
21881
21882 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21883
21884 * symtab.c (change_decl_assembler_name): Fix transparent alias
21885 chain construction.
21886
21887 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21888
21889 * config/aarch64/aarch64.c: Correct the comments about the
21890 aarch64 stack layout.
21891
21892 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21893
21894 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21895 check for GF_OMP_FOR_KIND_FOR.
21896
21897 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21898
21899 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21900 ymm and zmm register names.
21901
21902 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21903
21904 PR target/60516
21905 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21906 note creation for the 2010-08-31 changes.
21907
21908 2014-03-17 Marek Polacek <polacek@redhat.com>
21909
21910 PR middle-end/60534
21911 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21912 as -fno-tree-loop-vectorize.
21913 (expand_omp_simd): Likewise.
21914
21915 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21916
21917 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21918 (eligible_for_call_delay): New prototype.
21919 * config/sparc/sparc.c (tls_call_delay): Rename into...
21920 (eligible_for_call_delay): ...this. Return false if the instruction
21921 cannot be put in the delay slot of a branch.
21922 (eligible_for_restore_insn): Simplify.
21923 (eligible_for_return_delay): Return false if the instruction cannot be
21924 put in the delay slot of a branch and simplify.
21925 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21926 put in the delay slot of a branch.
21927 * config/sparc/sparc.md (fix_ut699): New attribute.
21928 (tls_call_delay): Delete.
21929 (in_call_delay): Reimplement.
21930 (eligible_for_sibcall_delay): Rename into...
21931 (in_sibcall_delay): ...this.
21932 (eligible_for_return_delay): Rename into...
21933 (in_return_delay): ...this.
21934 (in_branch_delay): Reimplement.
21935 (in_uncond_branch_delay): Delete.
21936 (in_annul_branch_delay): Delete.
21937
21938 2014-03-14 Richard Henderson <rth@redhat.com>
21939
21940 PR target/60525
21941 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21942 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21943 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21944 (floathi splitters): Remove.
21945 (float<SWI48x>xf2): New pattern.
21946 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21947 code that tried to handle DImode for 32-bit, but which was excluded
21948 by the pattern's condition. Drop allocation of stack temporary.
21949 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21950 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21951 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21952 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21953 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21954 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21955 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21956 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21957 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21958 (*float<SWI48x><X87MODEF>2_i387): Remove.
21959 (all float _with_temp splitters): Remove.
21960 (*float<SWI48x><MODEF>2_i387): New pattern.
21961 (*float<SWI48><MODEF>2_sse): New pattern.
21962 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21963 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21964
21965 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21966 Marek Polacek <polacek@redhat.com>
21967
21968 PR middle-end/60484
21969 * common.opt (dump_base_name_prefixed): New Variable.
21970 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21971 if x_dump_base_name_prefixed is already set, set it at the end.
21972
21973 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21974
21975 PR rtl-optimization/60508
21976 * lra-constraints.c (get_reload_reg): Add new parameter
21977 in_subreg_p.
21978 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21979 Pass the new parameter values.
21980
21981 2014-03-14 Richard Biener <rguenther@suse.de>
21982
21983 * common.opt: Revert unintented changes from r205065.
21984 * opts.c: Likewise.
21985
21986 2014-03-14 Richard Biener <rguenther@suse.de>
21987
21988 PR middle-end/60518
21989 * cfghooks.c (split_block): Properly adjust all loops the
21990 block was a latch of.
21991
21992 2014-03-14 Martin Jambor <mjambor@suse.cz>
21993
21994 PR lto/60461
21995 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21996 and simplify it.
21997
21998 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21999
22000 PR target/59396
22001 * config/avr/avr.c (avr_set_current_function): Pass function name
22002 through default_strip_name_encoding before sanity checking instead
22003 of skipping the first char of the assembler name.
22004
22005 2014-03-13 Richard Henderson <rth@redhat.com>
22006
22007 PR debug/60438
22008 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22009 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22010 * config/i386/i386-protos.h: Likewise.
22011 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22012 in the expander instead of a splitter.
22013 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22014 any possibility of requiring a memory.
22015 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22016 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22017 (fp branch splitters): Update for ix86_split_fp_branch.
22018 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22019 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22020 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22021 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22022 (*fop_<MODEF>_3_i387): Likewise.
22023 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22024 (splitters for the fop_* register patterns): Remove.
22025 (fscalexf4_i387): Rename from *fscalexf4_i387.
22026 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22027
22028 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22029
22030 PR tree-optimization/59779
22031 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22032 type for bitsize and maxsize instead of HOST_WIDE_INT.
22033
22034 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22035
22036 PR rtl-optimization/57320
22037 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22038 the CFG after thread_prologue_and_epilogue_insns.
22039
22040 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22041
22042 PR rtl-optimization/57189
22043 * lra-constraints.c (process_alt_operands): Disfavor spilling
22044 vector pseudos.
22045
22046 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22047
22048 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22049
22050 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22051
22052 PR tree-optimization/59025
22053 PR middle-end/60418
22054 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22055 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22056
22057 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22058
22059 PR target/60486
22060 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22061 calls of avr_out_plus_1.
22062
22063 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22064
22065 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22066 BB's single pred and update the father loop's latch info later.
22067
22068 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22069
22070 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22071 (VEC_M): Likewise.
22072 (VEC_N): Likewise.
22073 (VEC_R): Likewise.
22074 (VEC_base): Likewise.
22075 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22076 registers, we need to swap double words in little endian mode.
22077
22078 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22079 to be a container mode for 128-bit integer operations added in ISA
22080 2.07. Unlike TImode and PTImode, the preferred register set is
22081 the Altivec/VMX registers for the 128-bit operations.
22082
22083 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22084 declarations.
22085 (rs6000_split_128bit_ok_p): Likewise.
22086
22087 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22088 macros for creating ISA 2.07 normal and overloaded builtin
22089 functions with 3 arguments.
22090 (BU_P8V_OVERLOAD_3): Likewise.
22091 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22092 for use as overloaded functions.
22093 (VPERM_1TI_UNS): Likewise.
22094 (VSEL_1TI): Likewise.
22095 (VSEL_1TI_UNS): Likewise.
22096 (ST_INTERNAL_1ti): Likewise.
22097 (LD_INTERNAL_1ti): Likewise.
22098 (XXSEL_1TI): Likewise.
22099 (XXSEL_1TI_UNS): Likewise.
22100 (VPERM_1TI): Likewise.
22101 (VPERM_1TI_UNS): Likewise.
22102 (XXPERMDI_1TI): Likewise.
22103 (SET_1TI): Likewise.
22104 (LXVD2X_V1TI): Likewise.
22105 (STXVD2X_V1TI): Likewise.
22106 (VEC_INIT_V1TI): Likewise.
22107 (VEC_SET_V1TI): Likewise.
22108 (VEC_EXT_V1TI): Likewise.
22109 (EQV_V1TI): Likewise.
22110 (NAND_V1TI): Likewise.
22111 (ORC_V1TI): Likewise.
22112 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22113 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22114 overloaded builtin.
22115 (VADDUQM): Likewise.
22116 (VSUBCUQ): Likewise.
22117 (VADDEUQM): Likewise.
22118 (VADDECUQ): Likewise.
22119 (VSUBEUQM): Likewise.
22120 (VSUBECUQ): Likewise.
22121
22122 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22123 __int128_t and __uint128_t types.
22124 (__uint128_type): Likewise.
22125 (altivec_categorize_keyword): Add support for vector __int128_t,
22126 vector __uint128_t, vector __int128, and vector unsigned __int128
22127 as a container type for TImode operations that need to be done in
22128 VSX/Altivec registers.
22129 (rs6000_macro_to_expand): Likewise.
22130 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22131 to support 128-bit integer instructions vaddcuq, vadduqm,
22132 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22133 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22134
22135 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22136 for V1TImode, and set up preferences to use VSX/Altivec registers.
22137 Setup VSX reload handlers.
22138 (rs6000_debug_reg_global): Likewise.
22139 (rs6000_init_hard_regno_mode_ok): Likewise.
22140 (rs6000_preferred_simd_mode): Likewise.
22141 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22142 (easy_altivec_constant): Likewise.
22143 (output_vec_const_move): Likewise.
22144 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22145 simple move.
22146 (rs6000_expand_vector_extract): Likewise.
22147 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22148 addressing.
22149 (rs6000_const_vec): Add support for V1TImode.
22150 (rs6000_emit_le_vsx_load): Swap double words when loading or
22151 storing TImode/V1TImode.
22152 (rs6000_emit_le_vsx_store): Likewise.
22153 (rs6000_emit_le_vsx_move): Likewise.
22154 (rs6000_emit_move): Add support for V1TImode.
22155 (altivec_expand_ld_builtin): Likewise.
22156 (altivec_expand_st_builtin): Likewise.
22157 (altivec_expand_vec_init_builtin): Likewise.
22158 (altivec_expand_builtin): Likewise.
22159 (rs6000_init_builtins): Add support for V1TImode type. Add
22160 support for ISA 2.07 128-bit integer builtins. Define type names
22161 for the VSX/Altivec vector types.
22162 (altivec_init_builtins): Add support for overloaded vector
22163 functions with V1TImode type.
22164 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22165 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22166 external function.
22167 (rs6000_split_128bit_ok_p): Likewise.
22168 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22169 __int128_t and vector __uint128_t.
22170
22171 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22172 and mode attributes.
22173 (VSX_M): Likewise.
22174 (VSX_M2): Likewise.
22175 (VSm): Likewise.
22176 (VSs): Likewise.
22177 (VSr): Likewise.
22178 (VSv): Likewise.
22179 (VS_scalar): Likewise.
22180 (VS_double): Likewise.
22181 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22182
22183 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22184 we support the ISA 2.07 128-bit integer arithmetic instructions.
22185 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22186 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22187 and TImode types for use with the builtin functions.
22188 (V1TI_type_node): Likewise.
22189 (unsigned_V1TI_type_node): Likewise.
22190 (intTI_type_internal_node): Likewise.
22191 (uintTI_type_internal_node): Likewise.
22192
22193 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22194 128-bit builtin functions.
22195 (UNSPEC_VADDEUQM): Likewise.
22196 (UNSPEC_VADDECUQ): Likewise.
22197 (UNSPEC_VSUBCUQ): Likewise.
22198 (UNSPEC_VSUBEUQM): Likewise.
22199 (UNSPEC_VSUBECUQ): Likewise.
22200 (VM): Add V1TImode to vector mode iterators.
22201 (VM2): Likewise.
22202 (VI_unit): Likewise.
22203 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22204 (altivec_vaddcuq): Likewise.
22205 (altivec_vsubuqm): Likewise.
22206 (altivec_vsubcuq): Likewise.
22207 (altivec_vaddeuqm): Likewise.
22208 (altivec_vaddecuq): Likewise.
22209 (altivec_vsubeuqm): Likewise.
22210 (altivec_vsubecuq): Likewise.
22211
22212 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22213 mode iterators.
22214 (BOOL_128): Likewise.
22215 (BOOL_REGS_OUTPUT): Likewise.
22216 (BOOL_REGS_OP1): Likewise.
22217 (BOOL_REGS_OP2): Likewise.
22218 (BOOL_REGS_UNARY): Likewise.
22219 (BOOL_REGS_AND_CR0): Likewise.
22220
22221 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22222 128-bit integer builtin support.
22223 (vec_vadduqm): Likewise.
22224 (vec_vaddecuq): Likewise.
22225 (vec_vaddeuqm): Likewise.
22226 (vec_vsubecuq): Likewise.
22227 (vec_vsubeuqm): Likewise.
22228 (vec_vsubcuq): Likewise.
22229 (vec_vsubuqm): Likewise.
22230
22231 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22232 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22233 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22234 128-bit integer add/subtract to ISA 2.07.
22235
22236 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22237
22238 * config/arc/arc.c (arc_predicate_delay_insns):
22239 Fix third argument passed to conditionalize_nonjump.
22240
22241 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22242
22243 * config/aarch64/aarch64-builtins.c
22244 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22245 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22246 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22247 instead of __builtin_lfloor.
22248 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22249
22250 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22251
22252 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22253 (tree_ssa_ifcombine_bb_1): New function.
22254 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22255 is an empty forwarder block to then_bb or vice versa and then_bb
22256 and else_bb are effectively swapped.
22257
22258 2014-03-12 Christian Bruel <christian.bruel@st.com>
22259
22260 PR target/60264
22261 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22262 REG_CFA_DEF_CFA note.
22263 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22264 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22265
22266 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22267
22268 PR tree-optimization/60454
22269 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22270
22271 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22272
22273 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22274 Do not define target_cpu_default2 to generic.
22275 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22276 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22277 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22278
22279 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22280 Marc Glisse <marc.glisse@inria.fr>
22281
22282 PR tree-optimization/60502
22283 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22284 instead of build_low_bits_mask.
22285
22286 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22287
22288 PR middle-end/60482
22289 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22290 if there are multiple uses, but op doesn't live on E edge.
22291 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22292 clobber stmts before __builtin_unreachable.
22293
22294 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22295
22296 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22297 hard_frame_pointer_rtx.
22298 * cse.c (cse_insn): Remove volatile check.
22299 * cselib.c (cselib_process_insn): Likewise.
22300 * dse.c (scan_insn): Likewise.
22301
22302 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22303
22304 * config/arc/arc.c (conditionalize_nonjump): New function,
22305 broken out of ...
22306 (arc_ifcvt): ... this.
22307 (arc_predicate_delay_insns): Use it.
22308
22309 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22310
22311 * config/arc/predicates.md (extend_operand): During/after reload,
22312 allow const_int_operand.
22313 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22314 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22315 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22316 to "i".
22317 (umulsi3_highpart_i): Likewise.
22318
22319 2014-03-11 Richard Biener <rguenther@suse.de>
22320
22321 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22322 Add asserts to guard possible wrong-code bugs.
22323
22324 2014-03-11 Richard Biener <rguenther@suse.de>
22325
22326 PR tree-optimization/60429
22327 PR tree-optimization/60485
22328 * tree-ssa-structalias.c (set_union_with_increment): Properly
22329 take into account all fields that overlap the shifted vars.
22330 (do_sd_constraint): Likewise.
22331 (do_ds_constraint): Likewise.
22332 (get_constraint_for_ptr_offset): Likewise.
22333
22334 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22335
22336 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22337 (nios2_compute_frame_layout):
22338 Add calculation of cfun->machine->fp_save_offset.
22339 (nios2_expand_prologue): Correct setting of frame pointer register
22340 in prologue.
22341 (nios2_expand_epilogue): Update recovery of stack pointer from
22342 frame pointer accordingly.
22343 (nios2_initial_elimination_offset): Update calculation of offset
22344 for eliminating to HARD_FRAME_POINTER_REGNUM.
22345
22346 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22347
22348 PR ipa/60457
22349 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22350 cgraph_get_create_node on VAR_DECLs.
22351
22352 2014-03-10 Richard Biener <rguenther@suse.de>
22353
22354 PR middle-end/60474
22355 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22356
22357 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22358
22359 * config/vms/vms.opt (vms_float_format): New variable.
22360
22361 2014-03-08 Tobias Burnus <burnus@net-b.de>
22362
22363 * doc/invoke.texi (-fcilkplus): Update implementation status.
22364
22365 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22366 Richard Biener <rguenther@suse.de>
22367
22368 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22369 consistently accross all TUs.
22370 (run_gcc): Enable -fshort-double automatically at link at link-time
22371 and disallow override.
22372
22373 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22374
22375 PR target/58271
22376 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22377 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22378 if they can't be used.
22379
22380 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22381
22382 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22383 for Solaris 11/x86 ld.
22384 * configure: Regenerate.
22385
22386 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22387
22388 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22389 (LIB_TLS_SPEC): Save as ld_tls_libs.
22390 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22391 (HAVE_AS_IX86_TLSLDM): New test.
22392 * configure, config.in: Regenerate.
22393 * config/i386/i386.c (legitimize_tls_address): Fall back to
22394 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22395 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22396 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22397 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22398
22399 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22400
22401 * common.opt (fira-loop-pressure): Mark as optimization.
22402
22403 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22404
22405 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22406 an OpenMP mappable type.
22407
22408 2014-03-06 Matthias Klose <doko@ubuntu.com>
22409
22410 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22411 MULTILIB_OSDIRNAMES is not defined.
22412
22413 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22414 Meador Inge <meadori@codesourcery.com>
22415
22416 PR target/58595
22417 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22418 (arm_legitimize_address): Call legitimize_tls_address for any
22419 arm_tls_referenced_p expression, handle constant addend. Call it
22420 before testing for !TARGET_ARM.
22421 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22422
22423 2014-03-06 Richard Biener <rguenther@suse.de>
22424
22425 PR middle-end/60445
22426 PR lto/60424
22427 PR lto/60427
22428 Revert
22429 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22430
22431 * tree-streamer.c (record_common_node): Assert we don't record
22432 nodes with type double.
22433 (preload_common_node): Skip type double, complex double and double
22434 pointer since it is now frontend dependent due to fshort-double option.
22435
22436 2014-03-06 Richard Biener <rguenther@suse.de>
22437
22438 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22439 or -fno-lto is specified and the linker has full plugin support.
22440 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22441 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22442 * lto-wrapper.c (merge_and_complain): Merge compile-time
22443 optimization levels.
22444 (run_gcc): And pass it through to the link options.
22445
22446 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22447
22448 PR debug/60381
22449 Revert:
22450 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22451 PR debug/59992
22452 * cselib.c (remove_useless_values): Skip to avoid quadratic
22453 behavior if the condition moved from...
22454 (cselib_process_insn): ... here holds.
22455
22456 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22457
22458 PR plugins/59335
22459 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22460 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22461
22462 PR plugins/59335
22463 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22464 (TM_H): Add x86-tune.def.
22465
22466 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22467
22468 * config/aarch64/aarch64.c (generic_tunings):
22469 Use cortexa57_extra_costs.
22470
22471 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22472
22473 PR lto/60404
22474 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22475 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22476 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22477 cost for in_lto_p.
22478
22479 2014-03-04 Heiher <r@hev.cc>
22480
22481 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22482 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22483
22484 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22485
22486 * config/i386/predicates.md (const2356_operand): Change to ...
22487 (const2367_operand): ... this.
22488 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22489 const2367_operand.
22490 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22491 (*avx512pf_scatterpf<mode>sf): Ditto.
22492 (avx512pf_scatterpf<mode>df): Ditto.
22493 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22494 (*avx512pf_scatterpf<mode>df): Ditto.
22495 * config/i386/i386.c (ix86_expand_builtin): Update
22496 incorrect hint operand error message.
22497
22498 2014-03-04 Richard Biener <rguenther@suse.de>
22499
22500 * lto-section-in.c (lto_get_section_data): Fix const cast.
22501
22502 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22503
22504 * tree-streamer.c (record_common_node): Assert we don't record
22505 nodes with type double.
22506 (preload_common_node): Skip type double, complex double and double
22507 pointer since it is now frontend dependent due to fshort-double option.
22508
22509 2014-03-04 Richard Biener <rguenther@suse.de>
22510
22511 PR lto/60405
22512 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22513 (lto_input_toplevel_asms): Likewise.
22514 * lto-section-in.c (lto_get_section_data): Instead do it here
22515 for every section.
22516
22517 2014-03-04 Richard Biener <rguenther@suse.de>
22518
22519 PR tree-optimization/60382
22520 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22521 dead PHIs a reduction.
22522
22523 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22524
22525 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22526 hint value.
22527 (_mm_prefetch): Move out of GCC target("sse") pragma.
22528 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22529 GCC target("prfchw") pragma.
22530 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22531 for locality <= 2.
22532 * config/i386/i386.c (ix86_option_override_internal): Enable
22533 -mprfchw with -mprefetchwt1.
22534
22535 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22536
22537 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22538 Mark as varying.
22539
22540 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22541
22542 * opts.h (CL_PCH_IGNORE): Define.
22543 * targhooks.c (option_affects_pch_p):
22544 Return false for options that have CL_PCH_IGNORE set.
22545 * opt-functions.awk: Process PchIgnore.
22546 * doc/options.texi: Document PchIgnore.
22547
22548 * config/arc/arc.opt (misize): Add PchIgnore property.
22549
22550 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22551
22552 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22553 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22554 constraint on constants to permit them being loaded into
22555 GENERAL_REGS or BASE_REGS.
22556
22557 2014-03-03 Nick Clifton <nickc@redhat.com>
22558
22559 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22560 anti-cacnonical alternatives.
22561 (negandhi3_real): New pattern.
22562 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22563
22564 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22565
22566 * config/avr/avr-mcus.def: Remove atxmega16x1.
22567 * config/avr/avr-tables.opt: Regenerate.
22568 * config/avr/t-multilib: Regenerate.
22569 * doc/avr-mmcu.texi: Regenerate.
22570
22571 2014-03-03 Tobias Grosser <tobias@grosser.es>
22572 Mircea Namolaru <mircea.namolaru@inria.fr>
22573
22574 PR tree-optimization/58028
22575 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22576 scalar dimensions.
22577
22578 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22579
22580 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22581 not handled by recognizers.
22582
22583 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22584
22585 PR middle-end/60175
22586 * function.c (expand_function_end): Don't emit
22587 clobber_return_register sequence if clobber_after is a BARRIER.
22588 * cfgexpand.c (construct_exit_block): Append instructions before
22589 return_label to prev_bb.
22590
22591 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22592
22593 * config/rs6000/constraints.md: Document reserved use of "wc".
22594
22595 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22596
22597 PR ipa/60150
22598 * ipa.c (function_and_variable_visibility): When dissolving comdat
22599 group, also set all symbols to local.
22600
22601 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22602
22603 PR ipa/60306
22604
22605 Revert:
22606 2013-12-14 Jan Hubicka <jh@suse.cz>
22607 PR middle-end/58477
22608 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22609
22610 2014-03-02 Jon Beniston <jon@beniston.com>
22611
22612 PR bootstrap/48230
22613 PR bootstrap/50927
22614 PR bootstrap/52466
22615 PR target/46898
22616 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22617 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22618 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22619 (simple_return, *simple_return): New patterns
22620 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22621 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22622
22623 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22624
22625 * dwarf2out.c (gen_subprogram_die): Tidy.
22626
22627 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22628
22629 PR target/60071
22630 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22631 (*mov_t_msb_neg_negc): ... this new insn.
22632
22633 2014-02-28 Jason Merrill <jason@redhat.com>
22634
22635 PR c++/58678
22636 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22637 function.
22638
22639 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22640
22641 PR c++/60314
22642 * dwarf2out.c (decltype_auto_die): New static.
22643 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22644 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22645 (is_cxx_auto): Likewise.
22646
22647 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22648
22649 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22650 we are not using general regs only.
22651
22652 2014-02-28 Richard Biener <rguenther@suse.de>
22653
22654 PR target/60280
22655 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22656 previous fix and only allow to remove trivial pre-headers
22657 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22658 (remove_forwarder_block): Properly update the latch of a loop.
22659
22660 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22661
22662 PR debug/59992
22663 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22664 (cselib_preserved_hash_table): New.
22665 (preserve_constants_and_equivs): Move preserved vals to it.
22666 (cselib_find_slot): Look it up first.
22667 (cselib_init): Initialize it.
22668 (cselib_finish): Release it.
22669 (dump_cselib_table): Dump it.
22670
22671 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22672
22673 PR debug/59992
22674 * cselib.c (remove_useless_values): Skip to avoid quadratic
22675 behavior if the condition moved from...
22676 (cselib_process_insn): ... here holds.
22677
22678 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22679
22680 PR debug/57232
22681 * var-tracking.c (vt_initialize): Apply the same condition to
22682 preserve the CFA base value.
22683
22684 2014-02-28 Joey Ye <joey.ye@arm.com>
22685
22686 PR target/PR60169
22687 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22688 if reload in progress or completed.
22689
22690 2014-02-28 Tobias Burnus <burnus@net-b.de>
22691
22692 PR middle-end/60147
22693 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22694 NAMELIST_DECL.
22695
22696 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22697
22698 * doc/tm.texi.in (Condition Code Status): Update documention for
22699 relative locations of cc0-setter and cc0-user.
22700
22701 2014-02-27 Jeff Law <law@redhat.com>
22702
22703 PR rtl-optimization/52714
22704 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22705 into two independent simple sets, if I3 is a jump, ensure the
22706 pattern we place into I3 is a (set (pc) ...).
22707
22708 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22709 Jeff Law <law@redhat.com>
22710
22711 PR rtl-optimization/49847
22712 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22713 are in different blocks.
22714 * doc/tm.texi (Condition Code Status): Update documention for
22715 relative locations of cc0-setter and cc0-user.
22716
22717 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22718
22719 PR target/59222
22720 * lra.c (lra_emit_add): Check SUBREG too.
22721
22722 2014-02-27 Andreas Schwab <schwab@suse.de>
22723
22724 * config/m68k/m68k.c (m68k_option_override): Disable
22725 -flive-range-shrinkage for classic m68k.
22726 (m68k_override_options_after_change): Likewise.
22727
22728 2014-02-27 Marek Polacek <polacek@redhat.com>
22729
22730 PR middle-end/59223
22731 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22732 -Wmaybe-uninitialized.
22733
22734 2014-02-27 Alan Modra <amodra@gmail.com>
22735
22736 PR target/57936
22737 * reload1.c (emit_input_reload_insns): When reload_override_in,
22738 set old to rl->in_reg when rl->in_reg is a subreg.
22739
22740 2014-02-26 Richard Biener <rguenther@suse.de>
22741
22742 PR bootstrap/60343
22743 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22744
22745 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22746
22747 * common/config/i386/predicates.md (const1256_operand): Remove.
22748 (const2356_operand): New.
22749 (const_1_to_2_operand): Remove.
22750 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22751 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22752 (*avx512pf_gatherpf<mode>sf): Ditto.
22753 (avx512pf_gatherpf<mode>df): Ditto.
22754 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22755 (*avx512pf_gatherpf<mode>df): Ditto.
22756 (avx512pf_scatterpf<mode>sf): Ditto.
22757 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22758 (*avx512pf_scatterpf<mode>sf): Ditto.
22759 (avx512pf_scatterpf<mode>df): Ditto.
22760 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22761 (*avx512pf_scatterpf<mode>df): Ditto.
22762 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22763
22764 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22765
22766 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22767 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22768 (_mm512_mask_testn_epi64_mask): Move to ...
22769 * config/i386/avx512cdintrin.h: Here.
22770 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22771 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22772 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22773 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22774 TARGET_AVX512F from TARGET_AVX512CD.
22775
22776 2014-02-26 Richard Biener <rguenther@suse.de>
22777
22778 PR ipa/60327
22779 * ipa.c (walk_polymorphic_call_targets): Properly guard
22780 call to inline_update_overall_summary.
22781
22782 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22783
22784 PR target/60280
22785 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22786 and latches only if requested. Fix latch if it is removed.
22787 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22788 LOOPS_HAVE_PREHEADERS.
22789
22790 2014-02-25 Andrew Pinski <apinski@cavium.com>
22791
22792 * builtins.c (expand_builtin_thread_pointer): Create a new target
22793 when the target is NULL.
22794
22795 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22796
22797 PR rtl-optimization/60317
22798 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22799 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22800 * lra-assigns.c: Include params.h.
22801 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22802 other reload pseudos considerations.
22803
22804 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22805
22806 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22807 to use canonical form for nor<mode>3.
22808
22809 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22810
22811 PR target/55426
22812 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22813 conversions.
22814
22815 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22816
22817 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22818 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22819 (ix86_handle_option): Handle OPT_mprefetchwt1.
22820 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22821 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22822 PREFETCHWT1 CPUID.
22823 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22824 OPTION_MASK_ISA_PREFETCHWT1.
22825 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22826 (PTA_PREFETCHWT1): New.
22827 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22828 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22829 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22830 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22831 (*prefetch_avx512pf_<mode>_: Change into ...
22832 (*prefetch_prefetchwt1_<mode>: This.
22833 * config/i386/i386.opt (mprefetchwt1): New.
22834 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22835 (_mm_prefetch): Handle intent to write.
22836 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22837
22838 2014-02-25 Richard Biener <rguenther@suse.de>
22839
22840 PR middle-end/60291
22841 * emit-rtl.c (mem_attrs_htab): Remove.
22842 (mem_attrs_htab_hash): Likewise.
22843 (mem_attrs_htab_eq): Likewise.
22844 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22845 (init_emit_once): Do not allocate mem_attrs_htab.
22846
22847 2014-02-25 Richard Biener <rguenther@suse.de>
22848
22849 PR lto/60319
22850 * lto-opts.c (lto_write_options): Output non-explicit conservative
22851 -fwrapv, -fno-trapv and -fno-strict-overflow.
22852 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22853 (run_gcc): And pass them through.
22854
22855 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22856
22857 * sel-sched.c (calculate_new_fences): New parameter ptime.
22858 Calculate it as a maximum over all fence cycles.
22859 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22860 Print the final schedule timing when sched_verbose.
22861
22862 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22863
22864 PR rtl-optimization/60292
22865 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22866 bit fot the fence instruction.
22867
22868 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22869
22870 * calls.h: Fix typo in comment.
22871
22872 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22873
22874 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22875 adjusting offsetable addresses.
22876
22877 2014-02-24 Guozhi Wei <carrot@google.com>
22878
22879 * sparseset.h (sparseset_pop): Fix the wrong index.
22880
22881 2014-02-24 Walter Lee <walt@tilera.com>
22882
22883 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22884 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22885 triplet.
22886 * common/config/tilegx/tilegx-common.c
22887 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22888 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22889 (LINK_SPEC): Ditto.
22890 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22891 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22892 (tilegx_gimplify_va_arg_expr): Handle big endian.
22893 (tilegx_expand_unaligned_load): Ditto.
22894 (tilegx_expand_unaligned_store): Ditto.
22895 (TARGET_RETURN_IN_MSB): New.
22896 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22897 (TARGET_ENDIAN_DEFAULT): New.
22898 (TARGET_BIG_ENDIAN): Handle big endian.
22899 (BYTES_BIG_ENDIAN): Ditto.
22900 (WORDS_BIG_ENDIAN): Ditto.
22901 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22902 (ENDIAN_SPEC): New.
22903 (EXTRA_SPECS): New.
22904 * config/tilegx/tilegx.md (extv): Handle big endian.
22905 (extzv): Ditto.
22906 (insn_st<n>): Ditto.
22907 (insn_st<n>_add<bitsuffix>): Ditto.
22908 (insn_stnt<n>): Ditto.
22909 (insn_stnt<n>_add<bitsuffix>):Ditto.
22910 (vec_interleave_highv8qi): Handle big endian.
22911 (vec_interleave_highv8qi_be): New.
22912 (vec_interleave_highv8qi_le): New.
22913 (insn_v1int_h): Handle big endian.
22914 (vec_interleave_lowv8qi): Handle big endian.
22915 (vec_interleave_lowv8qi_be): New.
22916 (vec_interleave_lowv8qi_le): New.
22917 (insn_v1int_l): Handle big endian.
22918 (vec_interleave_highv4hi): Handle big endian.
22919 (vec_interleave_highv4hi_be): New.
22920 (vec_interleave_highv4hi_le): New.
22921 (insn_v2int_h): Handle big endian.
22922 (vec_interleave_lowv4hi): Handle big endian.
22923 (vec_interleave_lowv4hi_be): New.
22924 (vec_interleave_lowv4hi_le): New.
22925 (insn_v2int_l): Handle big endian.
22926 (vec_interleave_highv2si): Handle big endian.
22927 (vec_interleave_highv2si_be): New.
22928 (vec_interleave_highv2si_le): New.
22929 (insn_v4int_h): Handle big endian.
22930 (vec_interleave_lowv2si): Handle big endian.
22931 (vec_interleave_lowv2si_be): New.
22932 (vec_interleave_lowv2si_le): New.
22933 (insn_v4int_l): Handle big endian.
22934 * config/tilegx/tilegx.opt (mbig-endian): New option.
22935 (mlittle-endian): New option.
22936 * doc/install.texi: Document tilegxbe-linux.
22937 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22938
22939 2014-02-24 Martin Jambor <mjambor@suse.cz>
22940
22941 PR ipa/60266
22942 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22943 there are no parameter descriptors.
22944
22945 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22946
22947 PR rtl-optimization/60268
22948 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22949 initialization to ...
22950 (sched_rgn_init): ... here.
22951 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22952
22953 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22954
22955 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22956 names.
22957
22958 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22959
22960 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22961 definition.
22962
22963 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22964
22965 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22966 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22967
22968 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22969
22970 * config/microblaze/predicates.md: Add cmp_op predicate.
22971 * config/microblaze/microblaze.md: Add branch_compare instruction
22972 which uses cmp_op predicate and emits cmp insn before branch.
22973 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22974 to microblaze_expand_conditional_branch and consolidate logic.
22975 (microblaze_expand_conditional_branch): emit branch_compare
22976 insn instead of handling cmp op separate from branch insn.
22977
22978 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22979
22980 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22981 to permit subregs.
22982
22983 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22984
22985 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22986 define_insn with define_expand and new define_insn
22987 *altivec_lve<VI_char>x_internal.
22988 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22989 and new define_insn *altivec_stve<VI_char>x_internal.
22990 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22991 prototype.
22992 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22993 lve*x built-ins.
22994 (altivec_expand_stvex_be): New function.
22995
22996 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22997
22998 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22999 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23000 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23001 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23002
23003 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23004
23005 PR target/60298
23006 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23007 instead of emit_move_insn.
23008
23009 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23010
23011 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23012 vspltw with vsldoi.
23013 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23014 gen_altivec_vsumsws.
23015
23016 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23017
23018 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23019 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23020 (altivec_lvxl_<mode>): New define_expand incorporating
23021 -maltivec=be semantics where needed.
23022 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23023 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23024 semantics where needed.
23025 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23026 (altivec_stvx_<mode>): New define_expand incorporating
23027 -maltivec=be semantics where needed.
23028 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23029 VM2 iterator instead of V4SI.
23030 (altivec_stvxl_<mode>): New define_expand incorporating
23031 -maltivec=be semantics where needed.
23032 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23033 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23034 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23035 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23036 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23037 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23038 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23039 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23040 ALTIVEC_BUILTIN_STVXL.
23041 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23042 (altivec_expand_stvx_be): Likewise.
23043 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23044 (altivec_expand_lvx_be): Likewise.
23045 (altivec_expand_stvx_be): Likewise.
23046 (altivec_expand_builtin): Add cases for
23047 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23048 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23049 (altivec_init_builtins): Add definitions for
23050 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23051 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23052
23053 2014-02-21 Catherine Moore <clm@codesourcery.com>
23054
23055 * doc/invoke.texi (mvirt, mno-virt): Document.
23056 * config/mips/mips.opt (mvirt): New option.
23057 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23058
23059 2014-02-21 Richard Biener <rguenther@suse.de>
23060
23061 PR tree-optimization/60276
23062 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23063 (STMT_VINFO_MIN_NEG_DIST): New macro.
23064 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23065 STMT_VINFO_MIN_NEG_DIST.
23066 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23067 made for negative dependence distances still hold.
23068
23069 2014-02-21 Richard Biener <rguenther@suse.de>
23070
23071 PR middle-end/60291
23072 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23073 DECL_INITIAL for globals not in the current function context.
23074
23075 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23076
23077 PR tree-optimization/56490
23078 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23079 * tree-ssa-uninit.c: Include params.h.
23080 (compute_control_dep_chain): Add num_calls argument, return false
23081 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23082 num_calls to recursive call.
23083 (find_predicates): Change dep_chain into normal array,
23084 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23085 variable and adjust compute_control_dep_chain caller.
23086 (find_def_preds): Likewise.
23087
23088 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23089
23090 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23091 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23092
23093 2014-02-21 Nick Clifton <nickc@redhat.com>
23094
23095 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23096 (pushhi1): Likewise.
23097 (popqi1): Add mode to pre_dec.
23098 (pophi1): Likewise.
23099
23100 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23101
23102 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23103 mode for mask of V8SFmode permutation.
23104
23105 2014-02-20 Richard Henderson <rth@redhat.com>
23106
23107 PR c++/60272
23108 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23109 a new pseudo for OLDVAL.
23110
23111 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23112
23113 PR target/57896
23114 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23115 gen_reg_rtx if d->testing_p.
23116 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23117 if d->testing_p and we will certainly return true.
23118 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23119 if d->testing_p.
23120
23121 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23122
23123 * emit-rtl.c (gen_reg_rtx): Assert that
23124 crtl->emit.regno_pointer_align_length is non-zero.
23125
23126 2014-02-20 Richard Henderson <rth@redhat.com>
23127
23128 PR c++/60272
23129 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23130 on failure the store back into EXPECT.
23131
23132 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23133 Sandra Loosemore <sandra@codesourcery.com>
23134
23135 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23136 * config/nios2/nios2.c (nios2_function_profiler): Add
23137 -fPIC (flag_pic == 2) support.
23138 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23139 (nios2_large_offset_p): New function.
23140 (nios2_unspec_reloc_p): Move up position, update to use
23141 nios2_large_offset_p.
23142 (nios2_unspec_address): Remove function.
23143 (nios2_unspec_offset): New function.
23144 (nios2_large_got_address): New function.
23145 (nios2_got_address): Add large offset support.
23146 (nios2_legitimize_tls_address): Update usage of removed and new
23147 functions.
23148 (nios2_symbol_binds_local_p): New function.
23149 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23150 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23151 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23152 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23153 processing for (const (unspec ...)).
23154 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23155
23156 2014-02-20 Richard Biener <rguenther@suse.de>
23157
23158 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23159 doing the substitution.
23160 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23161
23162 2014-02-20 Martin Jambor <mjambor@suse.cz>
23163
23164 PR ipa/55260
23165 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23166 info when checking whether lattices are bottom.
23167
23168 2014-02-20 Richard Biener <rguenther@suse.de>
23169
23170 PR middle-end/60221
23171 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23172 regions at -O0.
23173
23174 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23175
23176 PR ipa/58555
23177 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23178 parameter specifying the scaling.
23179 (inline_call): Update.
23180 (want_inline_recursively): Guard division by zero.
23181 (recursive_inlining): Update.
23182 * ipa-inline.h (clone_inlined_nodes): Update.
23183
23184 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23185
23186 PR target/60204
23187 * config/i386/i386.c (classify_argument): Pass structures of size
23188 64 bytes or less in register.
23189
23190 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23191 Kirill Yukhin <kirill.yukhin@intel.com>
23192
23193 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23194 (_mm_rcp28_round_ss): Ditto.
23195 (_mm_rsqrt28_round_sd): Ditto.
23196 (_mm_rsqrt28_round_ss): Ditto.
23197 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23198 (_mm_rcp14_round_ss): Ditto.
23199 (_mm_rsqrt14_round_sd): Ditto.
23200 (_mm_rsqrt14_round_ss): Ditto.
23201 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23202 the first input operand, get rid of match_dup.
23203 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23204 attribute to sse.
23205 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23206 Ditto.
23207 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23208 operand as the first input operand, set type attribute.
23209 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23210 Set type attribute.
23211 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23212 operand as the first input operand, set type attribute.
23213
23214 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23215
23216 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23217 bit of zero.
23218
23219 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23220
23221 PR target/60207
23222 * config/i386/i386.c (construct_container): Remove TFmode check
23223 for X86_64_INTEGER_CLASS.
23224
23225 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23226
23227 PR target/59794
23228 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23229 only when -Wpsabi is enabled.
23230
23231 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23232
23233 PR target/59799
23234 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23235 passing arrays in registers are the same as for structs, so remove the
23236 special case for them.
23237
23238 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23239
23240 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23241 destination type, extract only the valid bits if the source type is not
23242 integral and has a different mode.
23243
23244 2014-02-19 Richard Biener <rguenther@suse.de>
23245
23246 PR ipa/60243
23247 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23248 for all calls.
23249
23250 2014-02-19 Richard Biener <rguenther@suse.de>
23251
23252 PR ipa/60243
23253 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23254 (ipa_modify_call_arguments): Emit an argument load explicitely and
23255 preserve virtual SSA form there and for the replacement call.
23256 Do not update SSA form nor free dominance info.
23257
23258 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23259
23260 * ipa.c (function_and_variable_visibility): Also clear WEAK
23261 flag when disolving COMDAT_GROUP.
23262
23263 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23264
23265 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23266 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23267 not devirtualizing.
23268 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23269 do more sanity checks.
23270 (detect_type_change): Return true when giving up early.
23271 (compute_complex_assign_jump_func): Fix type parameter of
23272 ipa_set_ancestor_jf.
23273 (compute_complex_ancestor_jump_func): Likewise.
23274 (update_jump_functions_after_inlining): Fix updating of
23275 ancestor function.
23276 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23277
23278 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23279
23280 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23281 inline clones when edge disappears.
23282
23283 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23284
23285 PR target/60203
23286 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23287 Split 64-bit moves into 2 patterns. Do not allow the use of
23288 direct move for TDmode in little endian, since the decimal value
23289 has little endian bytes within a word, but the 64-bit pieces are
23290 ordered in a big endian fashion, and normal subreg's of TDmode are
23291 not allowed.
23292 (mov<mode>_64bit_dm): Likewise.
23293 (movtd_64bit_nodm): Likewise.
23294
23295 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23296
23297 PR tree-optimization/60174
23298 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23299 statement of an SSA_NAME that occurs in an abnormal PHI node.
23300
23301 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23302
23303 PR sanitizer/60142
23304 * final.c (SEEN_BB): Remove.
23305 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23306 (final_scan_insn): Don't force_source_line on second
23307 NOTE_INSN_BASIC_BLOCK.
23308
23309 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23310
23311 PR target/60205
23312 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23313 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23314 (type_natural_mode): Warn ABI change when %zmm register is not
23315 available for AVX512F vector value passing.
23316
23317 2014-02-18 Kai Tietz <ktietz@redhat.com>
23318
23319 PR target/60193
23320 * config/i386/i386.c (ix86_expand_prologue): Use value in
23321 rax register as displacement when restoring %r10 or %rax.
23322 Fix wrong offset when restoring both registers.
23323
23324 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23325
23326 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23327 assertion with conditional return.
23328
23329 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23330 Uros Bizjak <ubizjak@gmail.com>
23331
23332 PR driver/60233
23333 * config/i386/driver-i386.c (host_detect_local_cpu): If
23334 YMM state is not saved by the OS, also clear has_f16c. Move
23335 CPUID 0x80000001 handling before YMM state saving checking.
23336
23337 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23338
23339 PR rtl-optimization/58960
23340 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23341 factored out from ...
23342 (sched_init): ... here.
23343 (free_global_sched_pressure_data): New, factored out from ...
23344 (sched_finish): ... here.
23345 * sched-int.h (free_global_sched_pressure_data): Declare.
23346 * sched-rgn.c (nr_regions_initial): New static global.
23347 (haifa_find_rgns): Initialize it.
23348 (schedule_region): Disable sched-pressure for the newly
23349 generated regions.
23350
23351 2014-02-17 Richard Biener <rguenther@suse.de>
23352
23353 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23354 release SSA defs of pattern stmts.
23355
23356 2014-02-17 Richard Biener <rguenther@suse.de>
23357
23358 * tree-inline.c (expand_call_inline): Release the virtual
23359 operand defined by the call we are about to inline.
23360
23361 2014-02-17 Richard Biener <rguenther@suse.de>
23362
23363 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23364
23365 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23366 Ilya Tocar <ilya.tocar@intel.com>
23367
23368 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23369 arguments order in builtin.
23370 (_mm512_permutexvar_epi64): Ditto.
23371 (_mm512_mask_permutexvar_epi64): Ditto
23372 (_mm512_maskz_permutexvar_epi32): Ditto
23373 (_mm512_permutexvar_epi32): Ditto
23374 (_mm512_mask_permutexvar_epi32): Ditto
23375
23376 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23377
23378 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23379 (p8_vmrgow): Likewise.
23380
23381 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23382
23383 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23384 endian targets.
23385
23386 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23387
23388 PR target/60203
23389 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23390 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23391 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23392 using direct move instructions on ISA 2.07. Also adjust
23393 instruction length for 64-bit.
23394 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23395 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23396
23397 2014-02-15 Alan Modra <amodra@gmail.com>
23398
23399 PR target/58675
23400 PR target/57935
23401 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23402 find_replacement on parts of insn rtl that might be reloaded.
23403
23404 2014-02-15 Richard Biener <rguenther@suse.de>
23405
23406 PR tree-optimization/60183
23407 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23408 (tree_ssa_phiprop): Calculate and free post-dominators.
23409
23410 2014-02-14 Jeff Law <law@redhat.com>
23411
23412 PR rtl-optimization/60131
23413 * ree.c (get_extended_src_reg): New function.
23414 (combine_reaching_defs): Use it rather than assuming location of REG.
23415 (find_and_remove_re): Verify first operand of extension is
23416 a REG before adding the insns to the copy list.
23417
23418 2014-02-14 Roland McGrath <mcgrathr@google.com>
23419
23420 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23421 * configure: Regenerated.
23422 * config.in: Regenerated.
23423 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23424 instead of ASM_SHORT.
23425
23426 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23427 Richard Earnshaw <rearnsha@arm.com>
23428
23429 PR rtl-optimization/59535
23430 * lra-constraints.c (process_alt_operands): Encourage alternative
23431 when unassigned pseudo class is superset of the alternative class.
23432 (inherit_reload_reg): Don't inherit when optimizing for code size.
23433 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23434 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23435 modes not less than 4 for Thumb1.
23436
23437 2014-02-14 Kyle McMartin <kyle@redhat.com>
23438
23439 PR pch/60010
23440 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23441
23442 2014-02-14 Richard Biener <rguenther@suse.de>
23443
23444 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23445 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23446 Do not strip INDIRECT_REFs.
23447
23448 2014-02-14 Richard Biener <rguenther@suse.de>
23449
23450 PR lto/60179
23451 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23452 DECL_FUNCTION_SPECIFIC_TARGET.
23453 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23454 * tree-streamer-out.c (pack_ts_target_option): Remove.
23455 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23456 (write_ts_function_decl_tree_pointers): Do not stream
23457 DECL_FUNCTION_SPECIFIC_TARGET.
23458 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23459 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23460 (lto_input_ts_function_decl_tree_pointers): Do not stream
23461 DECL_FUNCTION_SPECIFIC_TARGET.
23462
23463 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23464
23465 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23466 (get_initial_def_for_induction, vectorizable_induction): Ignore
23467 debug stmts when looking for exit_phi.
23468 (vectorizable_live_operation): Fix up condition.
23469
23470 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23471
23472 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23473 nreverse() because it changes the content of original tree list.
23474
23475 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23476
23477 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23478 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23479
23480 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23481
23482 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23483 GNU coding standards.
23484
23485 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23486
23487 PR debug/60152
23488 * dwarf2out.c (gen_subprogram_die): Don't call
23489 add_calling_convention_attribute if subr_die is old_die.
23490
23491 2014-02-13 Sharad Singhai <singhai@google.com>
23492
23493 * doc/optinfo.texi: Fix order of nodes.
23494
23495 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23496
23497 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23498 operands[2], not operands[3].
23499
23500 2014-02-13 Richard Biener <rguenther@suse.de>
23501
23502 PR bootstrap/59878
23503 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23504 mention the possibility of an in-tree build.
23505 (CLooG): Update recommended version to 0.18.1, mention the
23506 possibility of an in-tree build and clarify that the ISL
23507 bundled with CLooG does not work.
23508
23509 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23510
23511 PR target/43546
23512 * expr.c (compress_float_constant): If x is a hard register,
23513 extend into a pseudo and then move to x.
23514
23515 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23516
23517 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23518 caused by bad second argument to warning_at() with -mhotpatch and
23519 nested functions (e.g. with gfortran).
23520
23521 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23522
23523 * opts.c (option_name): Remove "enabled by default" rider.
23524
23525 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23526
23527 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23528
23529 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23530 Uros Bizjak <ubizjak@gmail.com>
23531
23532 PR target/60151
23533 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23534 * configure: Regenerated.
23535
23536 2014-02-12 Richard Biener <rguenther@suse.de>
23537
23538 * vec.c (vec_prefix::calculate_allocation): Move as
23539 inline variant to vec.h.
23540 (vec_prefix::calculate_allocation_1): New out-of-line version.
23541 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23542 (vec_prefix::m_has_auto_buf): Rename to ...
23543 (vec_prefix::m_using_auto_storage): ... this.
23544 (vec_prefix::calculate_allocation): Inline the easy cases
23545 and dispatch to calculate_allocation_1 which doesn't need the
23546 prefix address.
23547 (va_heap::reserve): Use gcc_checking_assert.
23548 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23549 m_using_auto_storage.
23550 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23551 member and adjust.
23552 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23553 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23554 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23555
23556 2014-02-12 Richard Biener <rguenther@suse.de>
23557
23558 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23559 when we found a dependence.
23560
23561 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23562
23563 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23564 common code...
23565 (maybe_fold_stmt): ... into this new function.
23566 * omp-low.c (lower_omp): Update comment.
23567
23568 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23569 last use.
23570
23571 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23572 dereference.
23573
23574 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23575
23576 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23577 identifiers in comments.
23578 (cortexa53_extra_costs): Likewise.
23579 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23580 (cortexa7_extra_costs): Likewise.
23581 (cortexa12_extra_costs): Likewise.
23582 (cortexa15_extra_costs): Likewise.
23583 (v7m_extra_costs): Likewise.
23584
23585 2014-02-12 Richard Biener <rguenther@suse.de>
23586
23587 PR middle-end/60092
23588 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23589 of posix_memalign being successful.
23590 (lower_stmt): Restrict lowering of posix_memalign to when
23591 -ftree-bit-ccp is enabled.
23592
23593 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23594
23595 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23596 arg_loc.
23597 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23598
23599 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23600
23601 PR rtl-optimization/60116
23602 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23603 other_insn once the combination has been validated.
23604
23605 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23606
23607 PR lto/59468
23608 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23609 and wrapper.
23610 * ipa-devirt.c: Include demangle.h
23611 (odr_violation_reported): New static variable.
23612 (add_type_duplicate): Update odr_violations.
23613 (maybe_record_node): Add completep parameter; update it.
23614 (record_target_from_binfo): Add COMPLETEP parameter;
23615 update it as needed.
23616 (possible_polymorphic_call_targets_1): Likewise.
23617 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23618 rename FINAL to COMPLETE.
23619 (record_targets_from_bases): Sanity check we found the binfo;
23620 fix COMPLETEP updating.
23621 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23622 parameter, fix computing of COMPLETEP.
23623 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23624 at LTO time do demangling.
23625 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23626 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23627 parameter.
23628 (gimple_get_virt_method_for_binfo): Likewise.
23629 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23630 gimple_get_virt_method_for_vtable): Update prototypes.
23631
23632 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23633
23634 PR target/49008
23635 * genautomata.c (add_presence_absence): Fix typo with
23636 {final_}presence_list.
23637
23638 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23639
23640 PR target/60137
23641 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23642 for VSX/Altivec vectors that land in GPR registers.
23643
23644 2014-02-11 Richard Henderson <rth@redhat.com>
23645 Jakub Jelinek <jakub@redhat.com>
23646
23647 PR debug/59776
23648 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23649 around drhs if type conversion to lacc->type is not useless.
23650
23651 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23652
23653 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23654 tuning struct.
23655 (cortex-a57.cortex-a53): Likewise.
23656 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23657
23658 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23659
23660 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23661 arm_restrict_it.
23662
23663 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23664
23665 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23666 add_options_for_arm_vfp3.
23667
23668 2014-02-11 Jeff Law <law@redhat.com>
23669
23670 PR middle-end/54041
23671 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23672 object with an undesirable mode.
23673
23674 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23675
23676 PR libgomp/60107
23677 * config/i386/sol2-9.h: New file.
23678 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23679 *-*-solaris2.9*): Use it.
23680
23681 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23682
23683 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23684 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23685
23686 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23687
23688 * config/microblaze/microblaze.c: Extend mcpu version format
23689
23690 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23691
23692 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23693
23694 2014-02-10 Richard Henderson <rth@redhat.com>
23695
23696 PR target/59927
23697 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23698 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23699 ms-abi vs -mno-accumulate-outgoing-args.
23700 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23701 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23702 respect to ms-abi.
23703
23704 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23705
23706 PR middle-end/60080
23707 * cfgexpand.c (expand_asm_operands): Attach source location to
23708 ASM_INPUT rtx objects.
23709 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23710
23711 2014-02-10 Nick Clifton <nickc@redhat.com>
23712
23713 * config/mn10300/mn10300.c (popcount): New function.
23714 (mn10300_expand_prologue): Include saved registers in stack usage
23715 count.
23716
23717 2014-02-10 Jeff Law <law@redhat.com>
23718
23719 PR middle-end/52306
23720 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23721 when changing the SET_DEST of a prior insn to avoid an input reload.
23722
23723 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23724
23725 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23726 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23727 -mcall-openbsd, or -mcall-linux.
23728 (CC1_ENDIAN_BIG_SPEC): Remove.
23729 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23730 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23731 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23732 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23733 and %cc1_endian_default.
23734 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23735
23736 2014-02-10 Richard Biener <rguenther@suse.de>
23737
23738 PR tree-optimization/60115
23739 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23740 MEM_REF handling. Properly verify that the accesses are not
23741 out of the objects bound.
23742
23743 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23744
23745 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23746 coretex to cortex.
23747
23748 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23749
23750 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23751 proper constants and fix formatting.
23752 (possible_polymorphic_call_targets): Fix formatting.
23753
23754 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23755 Ilya Tocar <ilya.tocar@intel.com>
23756
23757 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23758 (_mm512_loadu_epi32): Renamed into...
23759 (_mm512_loadu_si512): This.
23760 (_mm512_storeu_epi32): Renamed into...
23761 (_mm512_storeu_si512): This.
23762 (_mm512_maskz_ceil_ps): Removed.
23763 (_mm512_maskz_ceil_pd): Ditto.
23764 (_mm512_maskz_floor_ps): Ditto.
23765 (_mm512_maskz_floor_pd): Ditto.
23766 (_mm512_floor_round_ps): Ditto.
23767 (_mm512_floor_round_pd): Ditto.
23768 (_mm512_ceil_round_ps): Ditto.
23769 (_mm512_ceil_round_pd): Ditto.
23770 (_mm512_mask_floor_round_ps): Ditto.
23771 (_mm512_mask_floor_round_pd): Ditto.
23772 (_mm512_mask_ceil_round_ps): Ditto.
23773 (_mm512_mask_ceil_round_pd): Ditto.
23774 (_mm512_maskz_floor_round_ps): Ditto.
23775 (_mm512_maskz_floor_round_pd): Ditto.
23776 (_mm512_maskz_ceil_round_ps): Ditto.
23777 (_mm512_maskz_ceil_round_pd): Ditto.
23778 (_mm512_expand_pd): Ditto.
23779 (_mm512_expand_ps): Ditto.
23780 * config/i386/i386.c (ix86_builtins): Remove
23781 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23782 (bdesc_args): Ditto.
23783 * config/i386/predicates.md (const1256_operand): New.
23784 (const_1_to_2_operand): Ditto.
23785 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23786 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23787 (*avx512pf_gatherpf<mode>sf): Ditto.
23788 (avx512pf_gatherpf<mode>df): Ditto.
23789 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23790 (*avx512pf_gatherpf<mode>df): Ditto.
23791 (avx512pf_scatterpf<mode>sf): Ditto.
23792 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23793 (*avx512pf_scatterpf<mode>sf): Ditto.
23794 (avx512pf_scatterpf<mode>df): Ditto.
23795 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23796 (*avx512pf_scatterpf<mode>df): Ditto.
23797 (avx512f_expand<mode>): Removed.
23798 (<shift_insn><mode>3<mask_name>): Change predicate type.
23799
23800 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23801
23802 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23803 not at the end of datarefs vector use ordered_remove to avoid
23804 reordering datarefs vector.
23805
23806 PR c/59984
23807 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23808 mark local addressable non-static vars as GOVD_PRIVATE
23809 instead of GOVD_LOCAL.
23810 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23811 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23812 than copying them.
23813
23814 PR middle-end/60092
23815 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23816 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23817 assume_aligned or alloc_align attributes.
23818 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23819 arguments. Handle also assume_aligned and alloc_align attributes.
23820 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23821 calls to functions with assume_aligned or alloc_align attributes.
23822 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23823
23824 2014-02-08 Terry Guo <terry.guo@arm.com>
23825
23826 * doc/invoke.texi: Document ARM -march=armv7e-m.
23827
23828 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23829
23830 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23831 flag on __cilkrts_rethrow builtin.
23832
23833 PR ipa/60026
23834 * ipa-cp.c (determine_versionability): Fail at -O0
23835 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23836 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23837
23838 Revert:
23839 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23840
23841 PR ipa/60026
23842 * tree-inline.c (copy_forbidden): Fail for
23843 __attribute__((optimize (0))) functions.
23844
23845 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23846
23847 * varpool.c: Include pointer-set.h.
23848 (varpool_remove_unreferenced_decls): Variables in other partitions
23849 will not be output; be however careful to not lose information
23850 about partitioning.
23851
23852 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23853
23854 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23855 lookup in the vtable constructor.
23856
23857 2014-02-07 Jeff Law <law@redhat.com>
23858
23859 PR target/40977
23860 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23861 define_insn_and_split.
23862
23863 * ipa-inline.c (inline_small_functions): Fix typos.
23864
23865 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23866
23867 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23868 (s390_can_use_return_insn): Declare.
23869 * config/s390/s390.h (EPILOGUE_USES): Define.
23870 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23871 instructions.
23872 (s390_chunkify_start): Handle return JUMP_LABELs.
23873 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23874 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23875 (s390_can_use_return_insn): New functions.
23876 (s390_fix_long_loop_prediction): Handle conditional returns.
23877 (TARGET_SET_UP_BY_PROLOGUE): Define.
23878 * config/s390/s390.md (ANY_RETURN): New code iterator.
23879 (*creturn, *csimple_return, return, simple_return): New patterns.
23880
23881 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23882
23883 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23884 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23885 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23886 REG_CFA_RESTORE list when deciding not to restore a register.
23887
23888 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23889
23890 * config/s390/s390.c: Include tree-pass.h and context.h.
23891 (s390_early_mach): New function, split out from...
23892 (s390_emit_prologue): ...here.
23893 (pass_data_s390_early_mach): New pass structure.
23894 (pass_s390_early_mach): New class.
23895 (s390_option_override): Create and register early_mach pass.
23896 Move to end of file.
23897
23898 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23899
23900 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23901 to match for the exit block.
23902
23903 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23904
23905 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23906 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23907 Reject misaligned operands.
23908
23909 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23910
23911 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23912
23913 2014-02-07 Richard Biener <rguenther@suse.de>
23914
23915 PR middle-end/60092
23916 * gimple-low.c (lower_builtin_posix_memalign): New function.
23917 (lower_stmt): Call it to lower posix_memalign in a way
23918 to make alignment info accessible.
23919
23920 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23921
23922 PR c++/60082
23923 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23924 __builtin_setjmp_receiver.
23925
23926 2014-02-07 Richard Biener <rguenther@suse.de>
23927
23928 PR middle-end/60092
23929 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23930 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23931 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23932 Handle BUILT_IN_POSIX_MEMALIGN.
23933 (find_func_clobbers): Likewise.
23934 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23935 (call_may_clobber_ref_p_1): Likewise.
23936
23937 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23938
23939 PR ipa/59918
23940 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23941 sanity check.
23942
23943 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23944
23945 PR ipa/59469
23946 * lto-cgraph.c (lto_output_node): Use
23947 symtab_get_symbol_partitioning_class.
23948 (lto_output_varpool_node): likewise.
23949 (symtab_get_symbol_partitioning_class): Move here from
23950 lto/lto-partition.c
23951 * cgraph.h (symbol_partitioning_class): Likewise.
23952 (symtab_get_symbol_partitioning_class): Declare.
23953
23954 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23955
23956 * ggc.h (ggc_internal_cleared_alloc): New macro.
23957 * vec.h (vec_safe_copy): Handle memory stats.
23958 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23959 * target-globals.c (save_target_globals): Likewise.
23960
23961 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23962
23963 PR target/60077
23964 * expr.c (emit_move_resolve_push): Export; be bit more selective
23965 on when to clear alias set.
23966 * expr.h (emit_move_resolve_push): Declare.
23967 * function.h (struct function): Add tail_call_marked.
23968 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23969 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23970 * config/i386/i386.md (TImode move expander): De not call
23971 ix86_expand_push.
23972 (FP push expanders): Preserve memory attributes.
23973 * config/i386/sse.md (push<mode>1): Remove.
23974 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23975 (ix86_expand_push): Remove.
23976 * config/i386/mmx.md (push<mode>1): Remove.
23977
23978 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23979
23980 PR rtl-optimization/60030
23981 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23982 lopart with paradoxical subreg before shifting it up by hprec.
23983
23984 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23985
23986 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23987 Remove extra newline at end of file.
23988 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23989 (arm_issue_rate): Handle cortexa57.
23990 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23991 (cortex-a57.cortex-a53): Likewise.
23992
23993 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23994
23995 PR target/59575
23996 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23997 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23998 bitmask.
23999 (arm_expand_prologue): Adjust all callers.
24000 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24001 info, registers also at the lowest numbered registers side. Use
24002 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24003 XEXP.
24004
24005 PR debug/59992
24006 * var-tracking.c (adjust_mems): Before adding a SET to
24007 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24008
24009 2014-02-06 Alan Modra <amodra@gmail.com>
24010
24011 PR target/60032
24012 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24013 change SDmode to DDmode when lra_in_progress.
24014
24015 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24016
24017 PR middle-end/59150
24018 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24019 free_data_ref on the dr first, and before goto again also set dr
24020 to the next dr. For simd_lane_access, free old datarefs[i] before
24021 overwriting it. For get_vectype_for_scalar_type failure, don't
24022 free_data_ref if simd_lane_access.
24023
24024 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24025
24026 PR target/60062
24027 * tree.h (opts_for_fn): New inline function.
24028 (opt_for_fn): Define.
24029 * config/i386/i386.c (ix86_function_regparm): Use
24030 opt_for_fn (decl, optimize) instead of optimize.
24031
24032 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24033
24034 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24035 for SYMBOL_REF in large memory model.
24036
24037 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24038
24039 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24040 and crypto support.
24041 (cortex-a57): Likewise.
24042 (cortex-a57.cortex-a53): Likewise.
24043
24044 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24045 Kugan Vivekanandarajah <kuganv@linaro.org>
24046
24047 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24048 unaligned_access.
24049 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24050
24051 2014-02-06 Richard Biener <rguenther@suse.de>
24052
24053 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24054 set_loop_copy and initialize_original_copy_tables.
24055
24056 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24057
24058 * config/aarch64/aarch64-simd.md
24059 (aarch64_ashr_simddi): Change QI to SI.
24060
24061 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24062 Jakub Jelinek <jakub@redhat.com>
24063
24064 PR middle-end/60013
24065 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24066 of the dataflow.
24067
24068 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24069
24070 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24071 CODE_FOR_altivec_vpku[hw]um to
24072 CODE_FOR_altivec_vpku[hw]um_direct.
24073 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24074 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24075 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24076 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24077
24078 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24079
24080 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24081 generation for -maltivec=be.
24082 (altivec_vsumsws): Simplify redundant test.
24083
24084 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24085
24086 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24087 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24088 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24089 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24090 gen_altivec_vpkuwum.
24091 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24092 BYTES_BIG_ENDIAN.
24093 (altivec_vpks<VI_char>ss): Likewise.
24094 (altivec_vpks<VI_char>us): Likewise.
24095 (altivec_vpku<VI_char>us): Likewise.
24096 (altivec_vpku<VI_char>um): Likewise.
24097 (altivec_vpku<VI_char>um_direct): New (copy of
24098 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24099 internal use).
24100 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24101 target is little endian and -maltivec=be is not specified.
24102 (*altivec_vupkhs<VU_char>_direct): New (copy of
24103 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24104 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24105 target is little endian and -maltivec=be is not specified.
24106 (*altivec_vupkls<VU_char>_direct): New (copy of
24107 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24108 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24109 little endian and -maltivec=be is not specified.
24110 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24111 little endian and -maltivec=be is not specified.
24112
24113 2014-02-05 Richard Henderson <rth@redhat.com>
24114
24115 PR debug/52727
24116 * combine-stack-adj.c: Revert r206943.
24117 * sched-int.h (struct deps_desc): Add last_args_size.
24118 * sched-deps.c (init_deps): Initialize it.
24119 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24120 contain REG_ARGS_SIZE notes.
24121
24122 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24123
24124 * lto-cgraph.c (asm_nodes_output): Make global.
24125 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24126 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24127 (driver_handle_option): Handle OPT_fwpa.
24128
24129 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24130
24131 PR ipa/59947
24132 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24133 a comment typo and formatting issue. If odr_hash hasn't been
24134 created, return vNULL and set *completep to false.
24135
24136 PR middle-end/57499
24137 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24138 bb with no successors.
24139
24140 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24141
24142 PR target/59718
24143 * doc/invoke.texi (-march): Clarify documentation for ARM.
24144 (-mtune): Likewise.
24145 (-mcpu): Likewise.
24146
24147 2014-02-05 Richard Biener <rguenther@suse.de>
24148
24149 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24150 when not vectorizing because of too many alias checks.
24151 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24152 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24153
24154 2014-02-05 Nick Clifton <nickc@redhat.com>
24155
24156 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24157 accept extended registers in any mode when compiling for the MN10300.
24158
24159 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24160
24161 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24162 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24163 sanitization attributes.
24164 (can_inline_edge_p): Likewise.
24165 (sanitize_attrs_match_for_inline_p): New function.
24166
24167 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24168
24169 * ipa-prop.c (detect_type_change): Shor circuit testing of
24170 type changes on THIS pointer.
24171
24172 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24173
24174 PR target/59777
24175 * config/pa/pa.c (legitimize_tls_address): Return original address
24176 if not passed a SYMBOL_REF rtx.
24177 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24178 addresses.
24179 (pa_emit_move_sequence): Simplify TLS source operands.
24180 (pa_legitimate_constant_p): Reject all TLS constants.
24181 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24182 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24183
24184 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24185
24186 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24187 groups when we know they are controlled by LTO.
24188 * varasm.c (default_binds_local_p_1): If object is in other partition,
24189 it will be resolved locally.
24190
24191 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24192
24193 * config/host-linux.c (linux_gt_pch_use_address): Don't
24194 use SSIZE_MAX because it is not always defined.
24195
24196 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24197
24198 PR bootstrap/59913
24199 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24200 threshold for pseudo splitting.
24201 (update_ebb_live_info): Process call argument hard registers and
24202 hard registers from insn definition too.
24203 (max_small_class_regs_num): New constant.
24204 (inherit_in_ebb): Update live hard regs through EBBs. Update
24205 reloads_num only for small register classes. Don't split for
24206 outputs of jumps.
24207
24208 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24209
24210 PR ipa/60058
24211 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24212 is non-null.
24213
24214 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24215
24216 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24217 visibility is safe.
24218
24219 2014-02-04 Marek Polacek <polacek@redhat.com>
24220
24221 * gdbinit.in (pel): Define.
24222
24223 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24224
24225 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24226 behavior.
24227
24228 2014-02-04 Richard Biener <rguenther@suse.de>
24229
24230 PR lto/59723
24231 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24232 in function context local.
24233 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24234 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24235 similar to LTO_imported_decl_ref.
24236
24237 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24238
24239 PR tree-optimization/60002
24240 * cgraphclones.c (build_function_decl_skip_args): Clear
24241 DECL_LANG_SPECIFIC.
24242
24243 PR tree-optimization/60023
24244 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24245 false to gsi_replace.
24246 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24247 has been in some EH region and vec_stmt could throw, add
24248 vec_stmt into the same EH region.
24249 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24250 has no lhs, ignore it.
24251 * internal-fn.c (expand_MASK_LOAD): Likewise.
24252
24253 PR ipa/60026
24254 * tree-inline.c (copy_forbidden): Fail for
24255 __attribute__((optimize (0))) functions.
24256
24257 PR other/58712
24258 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24259 is set, copy one less argument.
24260 (expand_simd_clones): Don't subtract clone_info->inbranch
24261 from simd_clone_struct_alloc argument.
24262
24263 PR rtl-optimization/57915
24264 * recog.c (simplify_while_replacing): If all unary/binary/relational
24265 operation arguments are constant, attempt to simplify those.
24266
24267 PR middle-end/59261
24268 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24269 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24270
24271 2014-02-04 Richard Biener <rguenther@suse.de>
24272
24273 PR tree-optimization/60012
24274 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24275 TBAA disambiguation to all DDRs.
24276
24277 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24278
24279 PR target/59788
24280 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24281 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24282
24283 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24284
24285 PR ipa/59882
24286 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24287
24288 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24289
24290 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24291 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24292
24293 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24294
24295 PR ipa/59831
24296 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24297 to figure out targets of polymorphic calls with known decl.
24298 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24299 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24300 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24301 (get_polymorphic_call_info): ... here.
24302 (get_polymorphic_call_info_from_invariant): New function.
24303
24304 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24305
24306 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24307 lookup via vtable pointer; check for type consistency
24308 and turn inconsitent facts into UNREACHABLE.
24309 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24310 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24311 type inconsistent querries; return UNREACHABLE instead.
24312
24313 2014-02-03 Richard Henderson <rth@twiddle.net>
24314
24315 PR tree-opt/59924
24316 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24317 already processed this node.
24318 (normalize_one_pred_1): Pass along mark_set.
24319 (normalize_one_pred): Create and destroy a pointer_set_t.
24320 (normalize_one_pred_chain): Likewise.
24321
24322 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24323
24324 PR gcov-profile/58602
24325 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24326
24327 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24328
24329 PR ipa/59831
24330 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24331 -fno-devirtualize; try to devirtualize by the knowledge of
24332 virtual table pointer given by aggregate propagation.
24333 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24334 (ipa_print_node_jump_functions): Dump also offset that
24335 is relevant for polymorphic calls.
24336 (determine_known_aggregate_parts): Add arg_type parameter; use it
24337 instead of determining the type from pointer type.
24338 (ipa_compute_jump_functions_for_edge): Update call of
24339 determine_known_aggregate_parts.
24340 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24341 (gimple_get_virt_method_for_binfo): ... here; simplify using
24342 vtable_pointer_value_to_vtable.
24343 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24344 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24345 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24346 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24347 POINTER_PLUS_EXPR.
24348 (vtable_pointer_value_to_binfo): ... here.
24349 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24350
24351 2014-02-03 Teresa Johnson <tejohnson@google.com>
24352
24353 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24354 redef of outer loop index variable.
24355
24356 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24357
24358 PR c++/53017
24359 PR c++/59211
24360 * doc/extend.texi (Function Attributes): Typo.
24361
24362 2014-02-03 Cong Hou <congh@google.com>
24363
24364 PR tree-optimization/60000
24365 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24366 if the vectorized statement is a store. A store statement can only
24367 appear at the end of pattern statements.
24368
24369 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24370
24371 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24372 (ix86_option_override_internal): Default long double to 64-bit for
24373 32-bit Bionic and to 128-bit for 64-bit Bionic.
24374
24375 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24376 TARGET_LONG_DOUBLE_128 is true.
24377 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24378
24379 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24380 (mlong-double-64): Negate -mlong-double-128.
24381 (mlong-double-128): New option.
24382
24383 * config/i386/i386-c.c (ix86_target_macros): Define
24384 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24385
24386 * doc/invoke.texi: Document -mlong-double-128.
24387
24388 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24389
24390 PR rtl-optimization/60024
24391 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24392
24393 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24394
24395 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24396
24397 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24398
24399 PR rtl-optimization/57662
24400 * sel-sched.c (code_motion_path_driver): Do not mark already not
24401 existing blocks in the visiting bitmap.
24402
24403 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24404
24405 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24406 on the insn being emitted.
24407
24408 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24409 Will Deacon <will.deacon@arm.com>
24410
24411 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24412
24413 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24414
24415 * config/arm/arm-tables.opt: Regenerate.
24416
24417 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24418
24419 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24420 for vector types other than V16QImode.
24421 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24422 define_expand, and call altivec_expand_vec_perm_le when producing
24423 code with little endian element order.
24424 (*altivec_vperm_<mode>_internal): New insn having previous
24425 behavior of altivec_vperm_<mode>.
24426 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24427 altivec_expand_vec_perm_le when producing code with little endian
24428 element order.
24429 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24430 behavior of altivec_vperm_<mode>_uns.
24431
24432 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24433
24434 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24435 (altivec_vsumsws): Add handling for -maltivec=be with a little
24436 endian target.
24437 (altivec_vsumsws_direct): New.
24438 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24439 gen_altivec_vsumsws.
24440
24441 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24442
24443 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24444 vtable_pointer_value_to_binfo): New functions.
24445 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24446 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24447
24448 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24449
24450 * config/nios2/nios2.md (load_got_register): Initialize GOT
24451 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24452 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24453
24454 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24455
24456 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24457 preserverd by passthrough, do not propagate the type.
24458
24459 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24460
24461 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24462 (mips_atomic_assign_expand_fenv): New function.
24463 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24464
24465 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24466
24467 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24468 (__builtin_mips_set_fcsr): Likewise.
24469 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24470 MIPS_USI_FTYPE_VOID.
24471 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24472 (mips16_expand_set_fcsr): Likewise.
24473 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24474 (mips16_set_fcsr_stub): Likewise.
24475 (mips16_get_fcsr_one_only_stub): New class.
24476 (mips16_set_fcsr_one_only_stub): Likewise.
24477 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24478 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24479 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24480 (hard_float): New availability predicate.
24481 (mips_builtins): Add get_fcsr and set_fcsr.
24482 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24483 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24484 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24485 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24486 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24487 patterns.
24488
24489 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24490
24491 * config/mips/mips.c (mips_one_only_stub): New class.
24492 (mips_need_mips16_rdhwr_p): Replace with...
24493 (mips16_rdhwr_stub): ...this new variable.
24494 (mips16_stub_call_address): New function.
24495 (mips16_rdhwr_one_only_stub): New class.
24496 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24497 (mips_output_mips16_rdhwr): Delete.
24498 (mips_finish_stub): New function.
24499 (mips_code_end): Use it to handle rdhwr stubs.
24500
24501 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24502
24503 PR target/60017
24504 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24505 when calculating size of integer atomic types.
24506
24507 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24508
24509 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24510
24511 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24512
24513 PR tree-optimization/60003
24514 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24515 * profile.c (branch_prob): Use gimple_call_builtin_p
24516 to check for BUILT_IN_SETJMP_RECEIVER.
24517 * tree-inline.c (copy_bb): Call notice_special_calls.
24518
24519 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24520
24521 PR bootstrap/59985
24522 * lra-constraints.c (process_alt_operands): Update reload_sum only
24523 on the first pass.
24524
24525 2014-01-31 Richard Henderson <rth@redhat.com>
24526
24527 PR middle-end/60004
24528 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24529 until after else_eh is processed.
24530
24531 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24532
24533 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24534 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24535 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24536 in smmintrin.h, remove them.
24537 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24538 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24539 * config/i386/i386.md (ROUND_SAE): Fix value.
24540 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24541 (const48_operand): New.
24542 * config/i386/subst.md (round), (round_expand): Use
24543 const_4_or_8_to_11_operand.
24544 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24545
24546 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24547
24548 * config/i386/constraints.md (Yk): Swap meaning with k.
24549 * config/i386/i386.md (movhi_internal): Change Yk to k.
24550 (movqi_internal): Ditto.
24551 (*k<logic><mode>): Ditto.
24552 (*andhi_1): Ditto.
24553 (*andqi_1): Ditto.
24554 (kandn<mode>): Ditto.
24555 (*<code>hi_1): Ditto.
24556 (*<code>qi_1): Ditto.
24557 (kxnor<mode>): Ditto.
24558 (kortestzhi): Ditto.
24559 (kortestchi): Ditto.
24560 (kunpckhi): Ditto.
24561 (*one_cmplhi2_1): Ditto.
24562 (*one_cmplqi2_1): Ditto.
24563 * config/i386/sse.md (): Change k to Yk.
24564 (avx512f_load<mode>_mask): Ditto.
24565 (avx512f_blendm<mode>): Ditto.
24566 (avx512f_store<mode>_mask): Ditto.
24567 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24568 (avx512f_storedqu<mode>_mask): Ditto.
24569 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24570 Ditto.
24571 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24572 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24573 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24574 (avx512f_maskcmp<mode>3): Ditto.
24575 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24576 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24577 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24578 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24579 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24580 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24581 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24582 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24583 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24584 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24585 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24586 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24587 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24588 (vec_extract_lo_<mode>_maskm): Ditto.
24589 (vec_extract_hi_<mode>_maskm): Ditto.
24590 (avx512f_vternlog<mode>_mask): Ditto.
24591 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24592 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24593 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24594 (avx512f_<code>v8div16qi2_mask): Ditto.
24595 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24596 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24597 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24598 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24599 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24600 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24601 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24602 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24603 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24604 (avx512cd_maskb_vec_dupv8di): Ditto.
24605 (avx512cd_maskw_vec_dupv16si): Ditto.
24606 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24607 (avx512f_vpermi2var<mode>3_mask): Ditto.
24608 (avx512f_vpermi2var<mode>3_mask): Ditto.
24609 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24610 (*avx512f_gathersi<mode>): Ditto.
24611 (*avx512f_gathersi<mode>_2): Ditto.
24612 (*avx512f_gatherdi<mode>): Ditto.
24613 (*avx512f_gatherdi<mode>_2): Ditto.
24614 (*avx512f_scattersi<mode>): Ditto.
24615 (*avx512f_scatterdi<mode>): Ditto.
24616 (avx512f_compress<mode>_mask): Ditto.
24617 (avx512f_compressstore<mode>_mask): Ditto.
24618 (avx512f_expand<mode>_mask): Ditto.
24619 * config/i386/subst.md (mask): Change k to Yk.
24620 (mask_scalar_merge): Ditto.
24621 (sd): Ditto.
24622
24623 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24624
24625 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24626
24627 2014-01-31 Richard Biener <rguenther@suse.de>
24628
24629 PR middle-end/59990
24630 * builtins.c (fold_builtin_memory_op): Make sure to not
24631 use a floating-point mode or a boolean or enumeral type for
24632 the copy operation.
24633
24634 2014-01-30 DJ Delorie <dj@redhat.com>
24635
24636 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24637 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24638 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24639 whenever main() has an epilogue.
24640
24641 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24642
24643 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24644 unused variable "field".
24645 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24646 (vsx_mergeh_<mode>): Likewise.
24647 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24648 (altivec_vmrghh): Likewise.
24649 (altivec_vmrghw): Likewise.
24650 (altivec_vmrglb): Likewise.
24651 (altivec_vmrglh): Likewise.
24652 (altivec_vmrglw): Likewise.
24653 (altivec_vspltb): Add missing uses.
24654 (altivec_vsplth): Likewise.
24655 (altivec_vspltw): Likewise.
24656 (altivec_vspltsf): Likewise.
24657
24658 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24659
24660 PR target/59923
24661 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24662 frame related instructions.
24663
24664 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24665
24666 PR rtl-optimization/59959
24667 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24668 any reload of register whose subreg is invalid.
24669
24670 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24671
24672 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24673 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24674 Add missing return type - void.
24675
24676 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24677
24678 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24679 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24680 remove element index adjustment for endian (now handled in vsx.md
24681 and altivec.md).
24682 (altivec_expand_vec_perm_const): Use
24683 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24684 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24685 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24686 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24687 define_expand and a new define_insn *altivec_vspltb_internal;
24688 adjust for -maltivec=be on a little endian target.
24689 (altivec_vspltb_direct): New.
24690 (altivec_vsplth): Divide into a define_expand and a new
24691 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24692 little endian target.
24693 (altivec_vsplth_direct): New.
24694 (altivec_vspltw): Divide into a define_expand and a new
24695 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24696 little endian target.
24697 (altivec_vspltw_direct): New.
24698 (altivec_vspltsf): Divide into a define_expand and a new
24699 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24700 a little endian target.
24701
24702 2014-01-30 Richard Biener <rguenther@suse.de>
24703
24704 PR tree-optimization/59993
24705 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24706 can propagate form the earlier stmt and avoid the transform
24707 when the intermediate result is needed.
24708
24709 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24710
24711 * README.Portability: Fix typo.
24712
24713 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24714
24715 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24716 comparison_operator with ordered_comparison_operator.
24717
24718 2014-01-30 Nick Clifton <nickc@redhat.com>
24719
24720 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24721 Rename to mn10300_store_multiple_regs.
24722 * config/mn10300/mn10300.c: Likewise.
24723 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24724 store_multiple_regs.
24725 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24726 Call mn10300_store_multiple_regs.
24727
24728 2014-01-30 Nick Clifton <nickc@redhat.com>
24729 DJ Delorie <dj@redhat.com>
24730
24731 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24732 %fp 2 to keep registers after it properly word-aligned.
24733 (rl78_alloc_physical_registers_umul): Handle the case where both
24734 input operands are the same.
24735
24736 2014-01-30 Richard Biener <rguenther@suse.de>
24737
24738 PR tree-optimization/59903
24739 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24740 check properly.
24741
24742 2014-01-30 Jason Merrill <jason@redhat.com>
24743
24744 PR c++/59633
24745 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24746
24747 PR c++/59645
24748 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24749
24750 2014-01-30 Richard Biener <rguenther@suse.de>
24751
24752 PR tree-optimization/59951
24753 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24754
24755 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24756
24757 PR target/59784
24758 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24759 SFmode to DFmode case.
24760
24761 2014-01-29 DJ Delorie <dj@redhat.com>
24762
24763 * config/msp430/msp430.opt (-minrt): New.
24764 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24765 if -minrt given.
24766 (ENDFILE_SPEC): Likewise.
24767
24768 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24769
24770 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24771 (estimate_function_body_sizes): Use it.
24772
24773 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24774
24775 PR c++/58561
24776 * dwarf2out.c (is_cxx_auto): New.
24777 (is_base_type): Use it.
24778 (gen_type_die_with_usage): Likewise.
24779
24780 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24781
24782 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24783 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24784 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24785 -maltivec=be with LE targets.
24786 (vsx_mergeh_<mode>): Likewise.
24787 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24788 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24789 (altivec_vmrghb): Replace with define_expand and new
24790 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24791 (altivec_vmrghb_direct): New define_insn.
24792 (altivec_vmrghh): Replace with define_expand and new
24793 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24794 (altivec_vmrghh_direct): New define_insn.
24795 (altivec_vmrghw): Replace with define_expand and new
24796 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24797 (altivec_vmrghw_direct): New define_insn.
24798 (*altivec_vmrghsf): Adjust for endianness.
24799 (altivec_vmrglb): Replace with define_expand and new
24800 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24801 (altivec_vmrglb_direct): New define_insn.
24802 (altivec_vmrglh): Replace with define_expand and new
24803 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24804 (altivec_vmrglh_direct): New define_insn.
24805 (altivec_vmrglw): Replace with define_expand and new
24806 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24807 (altivec_vmrglw_direct): New define_insn.
24808 (*altivec_vmrglsf): Adjust for endianness.
24809 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24810 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24811 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24812 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24813 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24814 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24815 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24816 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24817
24818 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24819
24820 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24821 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24822 whitespace.
24823
24824 2014-01-29 Richard Biener <rguenther@suse.de>
24825
24826 PR tree-optimization/58742
24827 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24828 associate_pointerplus_align.
24829 (associate_pointerplus_diff): New function.
24830 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24831 and associate_pointerplus_diff.
24832
24833 2014-01-29 Richard Biener <rguenther@suse.de>
24834
24835 * lto-streamer.h (LTO_major_version): Bump to 3.
24836 (LTO_minor_version): Reset to 0.
24837
24838 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24839
24840 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24841 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24842 (arm_file_start): Generate correct asm header for armv7ve.
24843 * config/arm/bpabi.h: Add multilib support for armv7ve.
24844 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24845 and cortex-a15 to armv7ve.
24846 * config/arm/t-aprofile: Add multilib support for armv7ve.
24847 * doc/invoke.texi: Document -march=armv7ve.
24848
24849 2014-01-29 Richard Biener <rguenther@suse.de>
24850
24851 PR tree-optimization/58742
24852 * tree-ssa-forwprop.c (associate_plusminus): Return true
24853 if we changed sth, defer EH cleanup to ...
24854 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24855 (simplify_mult): New function.
24856
24857 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24858
24859 PR middle-end/59917
24860 PR tree-optimization/59920
24861 * tree.c (build_common_builtin_nodes): Remove
24862 __builtin_setjmp_dispatcher initialization.
24863 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24864 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24865 instead of gsi_after_labels + manually skipping debug stmts.
24866 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24867 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24868 * tree-inline.c (copy_edges_for_bb): Remove
24869 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24870 argument. Ignore computed_goto_p stmts. Don't call
24871 make_abnormal_goto_edges. If a call might need abnormal edges
24872 for non-local gotos, see if it already has an edge to
24873 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24874 with true argument, don't do anything then, otherwise add
24875 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24876 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24877 caller.
24878 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24879 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24880 (lower_stmt): Don't set data->calls_builtin_setjmp.
24881 (lower_builtin_setjmp): Adjust comment.
24882 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24883 * tree-cfg.c (found_computed_goto): Remove.
24884 (factor_computed_gotos): Remove.
24885 (make_goto_expr_edges): Return bool, true for computed gotos.
24886 Don't call make_abnormal_goto_edges.
24887 (build_gimple_cfg): Don't set found_computed_goto, don't call
24888 factor_computed_gotos.
24889 (computed_goto_p): No longer static.
24890 (make_blocks): Don't set found_computed_goto.
24891 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24892 (make_edges): If make_goto_expr_edges returns true, push bb
24893 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24894 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24895 vector. Record mapping between bbs and OpenMP regions if there
24896 are any, adjust make_gimple_omp_edges caller. Call
24897 handle_abnormal_edges.
24898 (make_abnormal_goto_edges): Remove.
24899 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24900 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24901 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24902 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24903 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24904 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24905 filling *region also set *region_idx to (*region)->entry->index.
24906
24907 PR other/58712
24908 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24909 For REGs set ORIGINAL_REGNO.
24910
24911 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24912
24913 * doc/md.texi: Mention that a target shouldn't implement
24914 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24915 than hi/lo pair.
24916
24917 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24918
24919 PR tree-optimization/59594
24920 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24921 a copy of the datarefs vector rather than the vector itself.
24922
24923 2014-01-28 Jason Merrill <jason@redhat.com>
24924
24925 PR c++/53756
24926 * dwarf2out.c (auto_die): New static.
24927 (gen_type_die_with_usage): Handle C++1y 'auto'.
24928 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24929 on definition.
24930
24931 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24932
24933 PR target/59672
24934 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24935 (SPEC_X32): Likewise.
24936 (SPEC_64): Likewise.
24937 * config/i386/i386.c (ix86_option_override_internal): Turn off
24938 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24939 for TARGET_16BIT.
24940 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24941 * config/i386/i386.h (TARGET_16BIT): New macro.
24942 (TARGET_16BIT_P): Likewise.
24943 * config/i386/i386.opt: Add m16.
24944 * doc/invoke.texi: Document -m16.
24945
24946 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24947
24948 PR preprocessor/59935
24949 * input.c (location_get_source_line): Bail out on when line number
24950 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24951
24952 2014-01-28 Richard Biener <rguenther@suse.de>
24953
24954 PR tree-optimization/58742
24955 * tree-ssa-forwprop.c (associate_plusminus): Handle
24956 pointer subtraction of the form (T)(P + A) - (T)P.
24957
24958 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24959
24960 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24961 at const_int_cost.
24962
24963 2014-01-28 Richard Biener <rguenther@suse.de>
24964
24965 Revert
24966 2014-01-28 Richard Biener <rguenther@suse.de>
24967
24968 PR rtl-optimization/45364
24969 PR rtl-optimization/59890
24970 * var-tracking.c (local_get_addr_clear_given_value): Handle
24971 already cleared slot.
24972 (val_reset): Handle not allocated local_get_addr_cache.
24973 (vt_find_locations): Use post-order on the inverted CFG.
24974
24975 2014-01-28 Richard Biener <rguenther@suse.de>
24976
24977 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24978
24979 2014-01-28 Richard Biener <rguenther@suse.de>
24980
24981 PR rtl-optimization/45364
24982 PR rtl-optimization/59890
24983 * var-tracking.c (local_get_addr_clear_given_value): Handle
24984 already cleared slot.
24985 (val_reset): Handle not allocated local_get_addr_cache.
24986 (vt_find_locations): Use post-order on the inverted CFG.
24987
24988 2014-01-28 Alan Modra <amodra@gmail.com>
24989
24990 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24991 * configure.ac <recursive call for build != host>: Define
24992 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24993 and LD_FOR_BUILD too.
24994 * configure: Regenerate.
24995
24996 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24997
24998 * config/i386/i386.c (get_builtin_code_for_version): Separate
24999 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25000 Broadwell from Haswell.
25001
25002 2014-01-27 Steve Ellcey <sellcey@mips.com>
25003
25004 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25005 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25006 * config/mips/mips.c (mips_option_override): Change setting
25007 of TARGET_DSP.
25008 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25009 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25010 Change from Mask to Var.
25011
25012 2014-01-27 Jeff Law <law@redhat.com>
25013
25014 * ipa-inline.c (inline_small_functions): Fix typo.
25015
25016 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25017
25018 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25019 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25020 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25021 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25022 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25023 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25024 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25025 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25026 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25027 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25028 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25029 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25030 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25031 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25032 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25033 (_mm512_storeu_epi64): Ditto.
25034 (_mm512_cmpge_epi32_mask): Ditto.
25035 (_mm512_cmpge_epu32_mask): Ditto.
25036 (_mm512_cmpge_epi64_mask): Ditto.
25037 (_mm512_cmpge_epu64_mask): Ditto.
25038 (_mm512_cmple_epi32_mask): Ditto.
25039 (_mm512_cmple_epu32_mask): Ditto.
25040 (_mm512_cmple_epi64_mask): Ditto.
25041 (_mm512_cmple_epu64_mask): Ditto.
25042 (_mm512_cmplt_epi32_mask): Ditto.
25043 (_mm512_cmplt_epu32_mask): Ditto.
25044 (_mm512_cmplt_epi64_mask): Ditto.
25045 (_mm512_cmplt_epu64_mask): Ditto.
25046 (_mm512_cmpneq_epi32_mask): Ditto.
25047 (_mm512_cmpneq_epu32_mask): Ditto.
25048 (_mm512_cmpneq_epi64_mask): Ditto.
25049 (_mm512_cmpneq_epu64_mask): Ditto.
25050 (_mm512_expand_pd): Ditto.
25051 (_mm512_expand_ps): Ditto.
25052 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25053 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25054 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25055 * config/i386/i386.c (ix86_builtins): Add
25056 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25057 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25058 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25059 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25060 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25061 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25062 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25063 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25064 IX86_BUILTIN_PMOVUSQW512_MEM.
25065 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25066 __builtin_ia32_pmovsqd512mem_mask,
25067 __builtin_ia32_pmovqd512mem_mask,
25068 __builtin_ia32_pmovusqw512mem_mask,
25069 __builtin_ia32_pmovsqw512mem_mask,
25070 __builtin_ia32_pmovqw512mem_mask,
25071 __builtin_ia32_pmovusdw512mem_mask,
25072 __builtin_ia32_pmovsdw512mem_mask,
25073 __builtin_ia32_pmovdw512mem_mask,
25074 __builtin_ia32_pmovqb512mem_mask,
25075 __builtin_ia32_pmovusqb512mem_mask,
25076 __builtin_ia32_pmovsqb512mem_mask,
25077 __builtin_ia32_pmovusdb512mem_mask,
25078 __builtin_ia32_pmovsdb512mem_mask,
25079 __builtin_ia32_pmovdb512mem_mask.
25080 (bdesc_args): Add __builtin_ia32_expanddf512,
25081 __builtin_ia32_expandsf512.
25082 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25083 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25084 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25085 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25086 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25087 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25088 (avx512f_<code>v8div16qi2_mask_store): This.
25089 (avx512f_expand<mode>): New.
25090
25091 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25092
25093 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25094 New.
25095 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25096 (_mm512_prefetch_i32scatter_pd): Ditto.
25097 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25098 (_mm512_prefetch_i64scatter_pd): Ditto.
25099 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25100 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25101 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25102 (_mm512_prefetch_i32scatter_ps): Ditto.
25103 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25104 (_mm512_prefetch_i64scatter_ps): Ditto.
25105 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25106 * config/i386/i386-builtin-types.def: Define
25107 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25108 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25109 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25110 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25111 IX86_BUILTIN_SCATTERPFQPD.
25112 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25113 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25114 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25115 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25116 __builtin_ia32_scatterpfqps.
25117 (ix86_expand_builtin): Expand new built-ins.
25118 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25119 fix memory access data type.
25120 (*avx512pf_gatherpf<mode>_mask): Ditto.
25121 (*avx512pf_gatherpf<mode>): Ditto.
25122 (avx512pf_scatterpf<mode>): Ditto.
25123 (*avx512pf_scatterpf<mode>_mask): Ditto.
25124 (*avx512pf_scatterpf<mode>): Ditto.
25125 (GATHER_SCATTER_SF_MEM_MODE): New.
25126 (avx512pf_gatherpf<mode>df): Ditto.
25127 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25128 (*avx512pf_scatterpf<mode>df): Ditto.
25129
25130 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25131
25132 PR bootstrap/59934
25133 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25134 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25135 reached.
25136
25137 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25138
25139 * common/config/arm/arm-common.c
25140 (arm_rewrite_mcpu): Handle multiple names.
25141 * config/arm/arm.h
25142 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25143
25144 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25145
25146 * gimple-builder.h (create_gimple_tmp): Delete.
25147
25148 2014-01-27 Christian Bruel <christian.bruel@st.com>
25149
25150 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25151 words comparisons.
25152
25153 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25154
25155 * config/pa/pa.md (call): Generate indirect long calls to non-local
25156 functions when outputing 32-bit code.
25157 (call_value): Likewise except for special call to buggy powf function.
25158
25159 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25160 portable runtime and PIC indirect calls.
25161 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25162 and PIC call sequences. Use ldo instead of blr to set return register
25163 in PIC call sequence.
25164
25165 2014-01-25 Walter Lee <walt@tilera.com>
25166
25167 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25168 avoid clobbering a live register.
25169
25170 2014-01-25 Walter Lee <walt@tilera.com>
25171
25172 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25173 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25174 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25175 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25176
25177 2014-01-25 Walter Lee <walt@tilera.com>
25178
25179 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25180 arguments on even registers.
25181 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25182 STACK_BOUNDARY.
25183 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25184 (BIGGEST_ALIGNMENT): Ditto.
25185 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25186
25187 2014-01-25 Walter Lee <walt@tilera.com>
25188
25189 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25190 insns before bundling.
25191 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25192
25193 2014-01-25 Walter Lee <walt@tilera.com>
25194
25195 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25196 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25197 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25198
25199 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25200
25201 * config/mips/constraints.md (kl): Delete.
25202 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25203 define expands, using...
25204 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25205 instructions for MIPS16.
25206 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25207 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25208
25209 2014-01-25 Walter Lee <walt@tilera.com>
25210
25211 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25212 (clzdi2): Ditto.
25213 (ffsdi2): Ditto.
25214
25215 2014-01-25 Walter Lee <walt@tilera.com>
25216
25217 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25218 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25219
25220 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25221
25222 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25223 Handle XOR.
25224
25225 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25226
25227 * print-rtl.c (in_call_function_usage): New var.
25228 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25229 EXPR_LIST mode as mode and not as reg note name.
25230
25231 PR middle-end/59561
25232 * cfgloopmanip.c (copy_loop_info): If
25233 loop->warned_aggressive_loop_optimizations, make sure
25234 the flag is set in target loop too.
25235
25236 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25237
25238 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25239 flag_cilkplus.
25240 * builtins.def: Likewise.
25241 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25242 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25243 * ira.c (ira_setup_eliminable_regset): Likewise.
25244 * omp-low.c (gate_expand_omp): Likewise.
25245 (execute_lower_omp): Likewise.
25246 (diagnose_sb_0): Likewise.
25247 (gate_diagnose_omp_blocks): Likewise.
25248 (simd_clone_clauses_extract): Likewise.
25249 (gate): Likewise.
25250
25251 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25252
25253 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25254 correction for little endian...
25255 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25256 here.
25257
25258 2014-01-24 Jeff Law <law@redhat.com>
25259
25260 PR tree-optimization/59919
25261 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25262 for non-returning calls.
25263
25264 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25265
25266 * common/config/aarch64/aarch64-common.c
25267 (aarch64_rewrite_mcpu): Handle multiple names.
25268 * config/aarch64/aarch64.h
25269 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25270
25271 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25272
25273 * input.c (add_file_to_cache_tab): Handle the case where fopen
25274 returns NULL.
25275
25276 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25277
25278 PR target/59929
25279 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25280 from push operand if code of push isn't PRE_DEC.
25281
25282 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25283
25284 PR target/59909
25285 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25286 -mquad-memory-atomic. Update -mquad-memory documentation to say
25287 it is only used for non-atomic loads/stores.
25288
25289 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25290 -mquad-memory or -mquad-memory-atomic switches.
25291
25292 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25293 -mquad-memory-atomic to ISA 2.07 support.
25294
25295 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25296 to separate support of normal quad word memory operations (ldq, stq)
25297 from the atomic quad word memory operations.
25298
25299 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25300 support to separate non-atomic quad word operations from atomic
25301 quad word operations. Disable non-atomic quad word operations in
25302 little endian mode so that we don't have to swap words after the
25303 load and before the store.
25304 (quad_load_store_p): Add comment about atomic quad word support.
25305 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25306 options printed with -mdebug=reg.
25307
25308 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25309 -mquad-memory-atomic as the test for whether we have quad word
25310 atomic instructions.
25311 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25312 or -mp8-vector are used, allow byte/half-word atomic operations.
25313
25314 * config/rs6000/sync.md (load_lockedti): Insure that the address
25315 is a proper indexed or indirect address for the lqarx instruction.
25316 On little endian systems, swap the hi/lo registers after the lqarx
25317 instruction.
25318 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25319 insure the address is valid for the lqarx instruction.
25320 (store_conditionalti): Insure that the address is a proper indexed
25321 or indirect address for the stqcrx. instruction. On little endian
25322 systems, swap the hi/lo registers before doing the stqcrx.
25323 instruction.
25324 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25325 insure the address is valid for the stqcrx. instruction.
25326
25327 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25328 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25329 type of quad memory support is available.
25330
25331 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25332
25333 PR regression/59915
25334 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25335 there is a danger of looping.
25336
25337 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25338
25339 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25340 force flag_ira_loop_pressure if set via command line.
25341
25342 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25343
25344 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25345 (ashr_simd): New builtin handling DI mode.
25346 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25347 (aarch64_sshr_simddi): New match pattern.
25348 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25349 (vshrd_n_s64): Likewise.
25350 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25351
25352 2014-01-23 Nick Clifton <nickc@redhat.com>
25353
25354 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25355 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25356 favour of mcu specific scripts.
25357 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25358 430x multilibs.
25359
25360 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25361 Alex Velenko <Alex.Velenko@arm.com>
25362
25363 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25364 (vaddv_s16): Likewise.
25365 (vaddv_s32): Likewise.
25366 (vaddv_u8): Likewise.
25367 (vaddv_u16): Likewise.
25368 (vaddv_u32): Likewise.
25369 (vaddvq_s8): Likewise.
25370 (vaddvq_s16): Likewise.
25371 (vaddvq_s32): Likewise.
25372 (vaddvq_s64): Likewise.
25373 (vaddvq_u8): Likewise.
25374 (vaddvq_u16): Likewise.
25375 (vaddvq_u32): Likewise.
25376 (vaddvq_u64): Likewise.
25377 (vaddv_f32): Likewise.
25378 (vaddvq_f32): Likewise.
25379 (vaddvq_f64): Likewise.
25380 (vmaxv_f32): Likewise.
25381 (vmaxv_s8): Likewise.
25382 (vmaxv_s16): Likewise.
25383 (vmaxv_s32): Likewise.
25384 (vmaxv_u8): Likewise.
25385 (vmaxv_u16): Likewise.
25386 (vmaxv_u32): Likewise.
25387 (vmaxvq_f32): Likewise.
25388 (vmaxvq_f64): Likewise.
25389 (vmaxvq_s8): Likewise.
25390 (vmaxvq_s16): Likewise.
25391 (vmaxvq_s32): Likewise.
25392 (vmaxvq_u8): Likewise.
25393 (vmaxvq_u16): Likewise.
25394 (vmaxvq_u32): Likewise.
25395 (vmaxnmv_f32): Likewise.
25396 (vmaxnmvq_f32): Likewise.
25397 (vmaxnmvq_f64): Likewise.
25398 (vminv_f32): Likewise.
25399 (vminv_s8): Likewise.
25400 (vminv_s16): Likewise.
25401 (vminv_s32): Likewise.
25402 (vminv_u8): Likewise.
25403 (vminv_u16): Likewise.
25404 (vminv_u32): Likewise.
25405 (vminvq_f32): Likewise.
25406 (vminvq_f64): Likewise.
25407 (vminvq_s8): Likewise.
25408 (vminvq_s16): Likewise.
25409 (vminvq_s32): Likewise.
25410 (vminvq_u8): Likewise.
25411 (vminvq_u16): Likewise.
25412 (vminvq_u32): Likewise.
25413 (vminnmv_f32): Likewise.
25414 (vminnmvq_f32): Likewise.
25415 (vminnmvq_f64): Likewise.
25416
25417 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25418
25419 * config/aarch64/aarch64-simd.md
25420 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25421 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25422 (*aarch64_mul3_elt<mode>): Likewise.
25423 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25424 (*aarch64_mul3_elt_to_64v2df): Likewise.
25425 (*aarch64_mla_elt<mode>): Likewise.
25426 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25427 (*aarch64_mls_elt<mode>): Likewise.
25428 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25429 (*aarch64_fma4_elt<mode>): Likewise.
25430 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25431 (*aarch64_fma4_elt_to_64v2df): Likewise.
25432 (*aarch64_fnma4_elt<mode>): Likewise.
25433 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25434 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25435 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25436 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25437 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25438 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25439 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25440 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25441 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25442
25443 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25444
25445 * config/aarch64/aarch64-simd.md
25446 (aarch64_be_checked_get_lane<mode>): New define_expand.
25447 * config/aarch64/aarch64-simd-builtins.def
25448 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25449 New builtin definition.
25450 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25451 Use new safe be builtin.
25452
25453 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25454
25455 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25456 New define_insn.
25457 (aarch64_be_st1<mode>): Likewise.
25458 (aarch_ld1<VALL:mode>): Define_expand modified.
25459 (aarch_st1<VALL:mode>): Likewise.
25460 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25461 (UNSPEC_ST1): Likewise.
25462
25463 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25464
25465 * config/microblaze/microblaze.md: Add trap insn and attribute
25466
25467 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25468
25469 PR preprocessor/58580
25470 * input.h (location_get_source_line): Take an additional line_size
25471 parameter.
25472 (void diagnostics_file_cache_fini): Declare new function.
25473 * input.c (struct fcache): New type.
25474 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25475 New static constants.
25476 (diagnostic_file_cache_init, total_lines_num)
25477 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25478 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25479 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25480 (get_next_line, read_next_line, goto_next_line, read_line_num):
25481 New static function definitions.
25482 (diagnostic_file_cache_fini): New function.
25483 (location_get_source_line): Take an additional output line_len
25484 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25485 read_line_num.
25486 * diagnostic.c (diagnostic_finish): Call
25487 diagnostic_file_cache_fini.
25488 (adjust_line): Take an additional input parameter for the length
25489 of the line, rather than calculating it with strlen.
25490 (diagnostic_show_locus): Adjust the use of
25491 location_get_source_line and adjust_line with respect to their new
25492 signature. While displaying a line now, do not stop at the first
25493 null byte. Rather, display the zero byte as a space and keep
25494 going until we reach the size of the line.
25495 * Makefile.in: Add vec.o to OBJS-libcommon
25496
25497 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25498 Ilya Tocar <ilya.tocar@intel.com>
25499
25500 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25501 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25502 (__builtin_ia32_kmov16): Ditto.
25503 * config/i386/i386.md (UNSPEC_KMOV): New.
25504 (kmovw): Ditto.
25505
25506 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25507
25508 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25509 (_mm512_storeu_si512): Ditto.
25510
25511 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25512
25513 PR target/52125
25514 * rtl.h (get_referenced_operands): Declare.
25515 * recog.c (get_referenced_operands): New function.
25516 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25517 operands have been referenced when recording LO_SUM references.
25518
25519 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25520
25521 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25522
25523 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25524
25525 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25526 Enable for generic and recent AMD targets.
25527
25528 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25529
25530 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25531 ARG_SIZE note when adjustment was eliminated.
25532
25533 2014-01-22 Jeff Law <law@redhat.com>
25534
25535 PR tree-optimization/59597
25536 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25537 in file. Accept new argument REGISTERING and use it to modify
25538 dump output appropriately.
25539 (register_jump_thread): Corresponding changes.
25540 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25541 thread paths involving joiner blocks. Add code to dump cancelled
25542 jump threading paths.
25543
25544 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25545
25546 PR rtl-optimization/59477
25547 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25548 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25549
25550 2014-01-22 Tom Tromey <tromey@redhat.com>
25551
25552 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25553 PARAMS.
25554 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25555
25556 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25557
25558 PR rtl-optimization/59896
25559 * lra-constraints.c (process_alt_operands): Check unused note for
25560 matched operands of insn with no output reloads.
25561
25562 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25563
25564 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25565 (mips_move_from_gpr_cost): Likewise.
25566
25567 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25568
25569 PR rtl-optimization/59858
25570 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25571 ira_class_hard_regs_num.
25572 (process_alt_operands): Increase reject for dying matched operand.
25573
25574 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25575
25576 PR target/59003
25577 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25578 smaller than size, perform several stores or loads and stores
25579 at dst + count - size to store or copy all of size bytes, rather
25580 than just last modesize bytes.
25581
25582 2014-01-20 DJ Delorie <dj@redhat.com>
25583
25584 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25585 that CLOBBERs are REGs before propogating their values.
25586
25587 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25588
25589 PR middle-end/59789
25590 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25591 (cgraph_inline_failed_type): New function.
25592 * cgraph.h (DEFCIFCODE): Add type.
25593 (cgraph_inline_failed_type_t): New enum.
25594 (cgraph_inline_failed_type): New prototype.
25595 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25596 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25597 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25598 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25599 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25600 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25601 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25602 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25603 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25604 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25605 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25606 OPTIMIZATION_MISMATCH.
25607 * tree-inline.c (expand_call_inline): Emit errors during
25608 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25609
25610 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25611
25612 PR target/59685
25613 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25614 mode attribute in insn output.
25615
25616 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25617
25618 * output.h (output_constant): Delete.
25619 * varasm.c (output_constant): Make private.
25620
25621 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25622
25623 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25624
25625 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25626
25627 PR middle-end/59860
25628 * tree.h (fold_builtin_strcat): New prototype.
25629 * builtins.c (fold_builtin_strcat): No longer static. Add len
25630 argument, if non-NULL, don't call c_strlen. Optimize
25631 directly into __builtin_memcpy instead of __builtin_strcpy.
25632 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25633 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25634
25635 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25636
25637 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25638 for SImode_address_operand operands, having only a REG argument.
25639
25640 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25641
25642 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25643 loader name using mbig-endian.
25644 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25645
25646 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25647
25648 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25649 (-mtune): Likewise.
25650 (-mcpu): Likewise.
25651
25652 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25653
25654 * config/aarch64/aarch64-protos.h
25655 (aarch64_cannot_change_mode_class_ptr): Declare.
25656 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25657 aarch64_cannot_change_mode_class_ptr): New.
25658 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25659 backend hook aarch64_cannot_change_mode_class.
25660
25661 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25662
25663 * common/config/aarch64/aarch64-common.c
25664 (aarch64_handle_option): Don't handle any option order logic here.
25665 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25666 selected_cpu, warn on architecture version mismatch.
25667 (aarch64_override_options): Fix parsing order for option strings.
25668
25669 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25670 Iain Sandoe <iain@codesourcery.com>
25671
25672 PR bootstrap/59496
25673 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25674 warning. Amend comment to reflect current functionality.
25675
25676 2014-01-20 Richard Biener <rguenther@suse.de>
25677
25678 PR middle-end/59860
25679 * builtins.c (fold_builtin_strcat): Remove case better handled
25680 by tree-ssa-strlen.c.
25681
25682 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25683
25684 * config/aarch64/aarch64.opt
25685 (mcpu, march, mtune): Make case-insensitive.
25686
25687 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25688
25689 PR target/59880
25690 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25691 if operands[1] is a REG or ZERO_EXTEND of a REG.
25692
25693 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25694
25695 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25696
25697 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25698
25699 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25700 long non-pic millicode calls.
25701
25702 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25703
25704 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25705
25706 2014-01-19 Kito Cheng <kito@0xlab.org>
25707
25708 * builtins.c (expand_movstr): Check movstr expand done or fail.
25709
25710 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25711 H.J. Lu <hongjiu.lu@intel.com>
25712
25713 PR target/59379
25714 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25715 to DImode for zero-extended addresses.
25716
25717 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25718
25719 PR rtl-optimization/57763
25720 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25721 on the new indirect jump_insn and increment LABEL_NUSES (label).
25722
25723 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25724
25725 PR bootstrap/59580
25726 PR bootstrap/59583
25727 * config.gcc (x86_archs): New variable.
25728 (x86_64_archs): Likewise.
25729 (x86_cpus): Likewise.
25730 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25731 --with-arch/--with-cpu= options.
25732 Support --with-arch=/--with-cpu={nehalem,westmere,
25733 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25734
25735 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25736
25737 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25738 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25739
25740 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25741
25742 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25743
25744 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25745
25746 PR target/58944
25747 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25748 clear cpp_get_options (parse_in)->warn_unused_macros for
25749 ix86_target_macros_internal with cpp_define.
25750
25751 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25752
25753 * jump.c (delete_related_insns): Keep (use (insn))s.
25754 * reorg.c (redundant_insn): Check for barriers too.
25755
25756 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25757
25758 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25759
25760 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25761
25762 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25763 call to $$dyncall when TARGET_LONG_CALLS is true.
25764
25765 2014-01-17 Jeff Law <law@redhat.com>
25766
25767 * ree.c (combine_set_extension): Temporarily disable test for
25768 changing number of hard registers.
25769
25770 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25771
25772 PR middle-end/58125
25773 * ipa-inline-analysis.c (inline_free_summary):
25774 Do not free summary of aliases.
25775
25776 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25777
25778 PR middle-end/59706
25779 * gimplify.c (gimplify_expr): Use create_tmp_var
25780 instead of create_tmp_var_raw. If cond doesn't have
25781 integral type, don't add the IFN_ANNOTATE builtin at all.
25782
25783 2014-01-17 Martin Jambor <mjambor@suse.cz>
25784
25785 PR ipa/59736
25786 * ipa-cp.c (prev_edge_clone): New variable.
25787 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25788 Also resize prev_edge_clone vector.
25789 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25790 (ipcp_edge_removal_hook): New function.
25791 (ipcp_driver): Register ipcp_edge_removal_hook.
25792
25793 2014-01-17 Andrew Pinski <apinski@cavium.com>
25794 Steve Ellcey <sellcey@mips.com>
25795
25796 PR target/59462
25797 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25798 of operator mode.
25799
25800 2014-01-17 Jeff Law <law@redhat.com>
25801
25802 PR middle-end/57904
25803 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25804 so that pass_ccp runs first.
25805
25806 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25807
25808 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25809 (ix86_adjust_cost): Use !TARGET_XXX.
25810 (do_reorder_for_imul): Likewise.
25811 (swap_top_of_ready_list): Likewise.
25812 (ix86_sched_reorder): Likewise.
25813
25814 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25815
25816 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25817 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25818 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25819 (intel_memset): New. Duplicate slm_memset.
25820 (intel_cost): New. Duplicate slm_cost.
25821 (m_INTEL): New macro.
25822 (processor_target_table): Add "intel".
25823 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25824 with PROCESSOR_INTEL for "intel".
25825 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25826 PROCESSOR_SILVERMONT.
25827 (ix86_issue_rate): Likewise.
25828 (ix86_adjust_cost): Likewise.
25829 (ia32_multipass_dfa_lookahead): Likewise.
25830 (swap_top_of_ready_list): Likewise.
25831 (ix86_sched_reorder): Likewise.
25832 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25833 instead of TARGET_OPT_AGU.
25834 * config/i386/i386.h (TARGET_INTEL): New.
25835 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25836 (processor_type): Add PROCESSOR_INTEL.
25837 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25838 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25839
25840 2014-01-17 Marek Polacek <polacek@redhat.com>
25841
25842 PR c/58346
25843 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25844 size is zero.
25845
25846 2014-01-17 Richard Biener <rguenther@suse.de>
25847
25848 PR tree-optimization/46590
25849 * opts.c (default_options_table): Add entries for
25850 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25851 all enabled at -O1 but not for -Og.
25852 * common.opt (fbranch-count-reg): Remove Init(1).
25853 (fmove-loop-invariants): Likewise.
25854 (ftree-pta): Likewise.
25855
25856 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25857
25858 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25859 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25860 decls to at least the GCC 4.8 used alignments.
25861
25862 PR fortran/59440
25863 * tree-nested.c (convert_nonlocal_reference_stmt,
25864 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25865 of GIMPLE_BIND stmts, adjust associated decls.
25866
25867 2014-01-17 Richard Biener <rguenther@suse.de>
25868
25869 PR tree-optimization/46590
25870 * vec.h (vec<>::bseach): New member function implementing
25871 binary search according to C89 bsearch.
25872 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25873 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25874 bitmap pointer again. Make accesses_in_loop a flat array.
25875 (mem_ref_obstack): New global.
25876 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25877 (mark_ref_stored): Likewise.
25878 (ref_indep_loop_p_2): Likewise.
25879 (set_ref_stored_in_loop): New helper function.
25880 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25881 (memref_free): Adjust.
25882 (record_mem_ref_loc): Simplify.
25883 (gather_mem_refs_stmt): Adjust.
25884 (sort_locs_in_loop_postorder_cmp): New function.
25885 (analyze_memory_references): Sort accesses_in_loop after
25886 loop postorder number.
25887 (find_ref_loc_in_loop_cmp): New function.
25888 (for_all_locs_in_loop): Find relevant cluster of locs in
25889 accesses_in_loop and iterate without recursion.
25890 (execute_sm): Avoid uninit warning.
25891 (struct ref_always_accessed): Simplify.
25892 (ref_always_accessed::operator ()): Likewise.
25893 (ref_always_accessed_p): Likewise.
25894 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25895 loop postorder numbers here.
25896 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25897 numbers.
25898
25899 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25900
25901 PR c++/57945
25902 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25903 on decls for which assemble_alias has been called.
25904
25905 2014-01-17 Nick Clifton <nickc@redhat.com>
25906
25907 * config/msp430/msp430.opt: (mcpu): New option.
25908 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25909 (msp430_option_override): Parse target_cpu. If the MCU name
25910 matches a generic string, clear target_mcu.
25911 (msp430_attr): Allow numeric interrupt values up to 63.
25912 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25913 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25914 option.
25915 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25916 Add mcpu matches.
25917 * config/msp430/msp430.md (popm): Use %J rather than %I.
25918 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25919 (addhi_cy_i): Use immediate_operand for operand 2.
25920 * doc/invoke.texi: Document -mcpu option.
25921
25922 2014-01-17 Richard Biener <rguenther@suse.de>
25923
25924 PR rtl-optimization/38518
25925 * df.h (df_analyze_loop): Declare.
25926 * df-core.c: Include cfgloop.h.
25927 (df_analyze_1): Split out main part of df_analyze.
25928 (df_analyze): Adjust.
25929 (loop_inverted_post_order_compute): New function.
25930 (loop_post_order_compute): Likewise.
25931 (df_analyze_loop): New function avoiding whole-function
25932 postorder computes.
25933 * loop-invariant.c (find_defs): Use df_analyze_loop.
25934 (find_invariants): Adjust.
25935 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25936
25937 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25938
25939 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25940 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25941
25942 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25943
25944 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25945 traversal when removing references.
25946
25947 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25948
25949 PR ipa/59775
25950 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25951
25952 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25953
25954 PR middle-end/56791
25955 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25956 pushing a reload for an autoinc when we had previously reloaded an
25957 inner part of the address.
25958
25959 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25960
25961 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25962 field.
25963 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25964 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25965 when not giving up or versioning for alias only because of
25966 loop->safelen.
25967 (vect_analyze_data_ref_dependences): Set to true.
25968 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25969 is a GIMPLE_PHI.
25970 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25971 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25972 to the condition.
25973
25974 PR middle-end/58344
25975 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25976
25977 PR target/59839
25978 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25979 operand 0 predicate for gathers, use a new pseudo as subtarget.
25980
25981 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25982
25983 PR middle-end/59609
25984 * lra-constraints.c (process_alt_operands): Add printing debug info.
25985 Check absence of input/output reloads for matched operands too.
25986
25987 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25988
25989 PR rtl-optimization/59835
25990 * ira.c (ira_init_register_move_cost): Increase cost for
25991 impossible modes.
25992
25993 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25994
25995 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25996
25997 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25998
25999 PR target/59780
26000 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26001 non-register objects. Use gen_(high/low)part more consistently.
26002 Fix assertions.
26003
26004 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26005
26006 PR target/59844
26007 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26008 endian support, remove tests for WORDS_BIG_ENDIAN.
26009 (p8_mfvsrd_3_<mode>): Likewise.
26010 (reload_gpr_from_vsx<mode>): Likewise.
26011 (reload_gpr_from_vsxsf): Likewise.
26012 (p8_mfvsrd_4_disf): Likewise.
26013
26014 2014-01-16 Richard Biener <rguenther@suse.de>
26015
26016 PR rtl-optimization/46590
26017 * lcm.c (compute_antinout_edge): Use postorder iteration.
26018 (compute_laterin): Use inverted postorder iteration.
26019
26020 2014-01-16 Nick Clifton <nickc@redhat.com>
26021
26022 PR middle-end/28865
26023 * varasm.c (output_constant): Return the number of bytes actually
26024 emitted.
26025 (output_constructor_array_range): Update the field size with the
26026 number of bytes emitted by output_constant.
26027 (output_constructor_regular_field): Likewise. Also do not
26028 complain if the total number of bytes emitted is now greater
26029 than the expected fieldpos.
26030 * output.h (output_constant): Update prototype and descriptive comment.
26031
26032 2014-01-16 Marek Polacek <polacek@redhat.com>
26033
26034 PR middle-end/59827
26035 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26036 it is error_mark_node.
26037
26038 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26039
26040 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26041 VALID_AVX256_REG_OR_OI_MODE.
26042
26043 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26044
26045 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26046 current procedure should be profiled.
26047
26048 2014-01-15 Andrew Pinski <apinski@cavium.com>
26049
26050 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26051 of moving from/to the STACK_REG register class.
26052
26053 2014-01-15 Richard Henderson <rth@redhat.com>
26054
26055 PR debug/54694
26056 * reginfo.c (global_regs_decl): Globalize.
26057 * rtl.h (global_regs_decl): Declare.
26058 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26059 reserved via global_regs.
26060
26061 2014-01-15 Teresa Johnson <tejohnson@google.com>
26062
26063 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26064
26065 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26066
26067 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26068 and vmulosh rather than call gen_vec_widen_smult_*.
26069 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26070 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26071 (vec_widen_smult_even_v16qi): Likewise.
26072 (vec_widen_umult_even_v8hi): Likewise.
26073 (vec_widen_smult_even_v8hi): Likewise.
26074 (vec_widen_umult_odd_v16qi): Likewise.
26075 (vec_widen_smult_odd_v16qi): Likewise.
26076 (vec_widen_umult_odd_v8hi): Likewise.
26077 (vec_widen_smult_odd_v8hi): Likewise.
26078 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26079 vmuloub rather than call gen_vec_widen_umult_*.
26080 (vec_widen_umult_lo_v16qi): Likewise.
26081 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26082 vmulosb rather than call gen_vec_widen_smult_*.
26083 (vec_widen_smult_lo_v16qi): Likewise.
26084 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26085 rather than call gen_vec_widen_umult_*.
26086 (vec_widen_umult_lo_v8hi): Likewise.
26087 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26088 rather than call gen_vec_widen_smult_*.
26089 (vec_widen_smult_lo_v8hi): Likewise.
26090
26091 2014-01-15 Jeff Law <law@redhat.com>
26092
26093 PR tree-optimization/59747
26094 * ree.c (find_and_remove_re): Properly handle case where a second
26095 eliminated extension requires widening a copy created for elimination
26096 of a prior extension.
26097 (combine_set_extension): Ensure that the number of hard regs needed
26098 for a destination register does not change when we widen it.
26099
26100 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26101
26102 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26103 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26104 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26105 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26106 (avr-*-rtems*): Likewise.
26107 (bfin*-rtems*): Likewise.
26108 (moxie-*-rtems*): Likewise.
26109 (h8300-*-rtems*): Likewise.
26110 (i[34567]86-*-rtems*): Likewise.
26111 (lm32-*-rtems*): Likewise.
26112 (m32r-*-rtems*): Likewise.
26113 (m68k-*-rtems*): Likewise.
26114 (microblaze*-*-rtems*): Likewise.
26115 (mips*-*-rtems*): Likewise.
26116 (powerpc-*-rtems*): Likewise.
26117 (sh-*-rtems*): Likewise.
26118 (sparc-*-rtems*): Likewise.
26119 (sparc64-*-rtems*): Likewise.
26120 (v850-*-rtems*): Likewise.
26121 (m32c-*-rtems*): Likewise.
26122
26123 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26124
26125 PR rtl-optimization/59511
26126 * ira.c (ira_init_register_move_cost): Use memory costs for some
26127 cases of register move cost calculations.
26128 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26129 instead of BB frequency.
26130 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26131 * lra-assigns.c (find_hard_regno_for): Ditto.
26132
26133 2014-01-15 Richard Biener <rguenther@suse.de>
26134
26135 PR tree-optimization/59822
26136 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26137 (vectorizable_load): Use it to hoist defs of uses of invariant
26138 loads out of the loop.
26139
26140 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26141 Kugan Vivekanandarajah <kuganv@linaro.org>
26142
26143 PR target/59695
26144 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26145 truncation.
26146
26147 2014-01-15 Richard Biener <rguenther@suse.de>
26148
26149 PR rtl-optimization/59802
26150 * lcm.c (compute_available): Use inverted postorder to seed
26151 the initial worklist.
26152
26153 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26154
26155 PR target/59803
26156 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26157 ADDR_REGS for invalid symrefs in non-PIC code.
26158
26159 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26160
26161 PR other/58712
26162 * builtins.c (determine_block_size): Initialize *probable_max_size
26163 even if len_rtx is CONST_INT.
26164
26165 2014-01-14 Andrew Pinski <apinski@cavium.com>
26166
26167 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26168 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26169 (cortexa53_tunings): Likewise.
26170 (aarch64_sched_issue_rate): New function.
26171 (TARGET_SCHED_ISSUE_RATE): Define.
26172
26173 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26174
26175 * ira-costs.c (find_costs_and_classes): Add missed
26176 ira_init_register_move_cost_if_necessary.
26177
26178 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26179
26180 PR target/59787
26181 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26182
26183 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26184
26185 PR target/59794
26186 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26187 to indicate if type is used for function return value. Warn ABI
26188 change if the vector mode isn't available for function return value.
26189 (ix86_function_arg_advance): Pass false to type_natural_mode.
26190 (ix86_function_arg): Likewise.
26191 (ix86_gimplify_va_arg): Likewise.
26192 (function_arg_32): Don't warn ABI change.
26193 (ix86_function_value): Pass true to type_natural_mode.
26194 (ix86_return_in_memory): Likewise.
26195 (ix86_struct_value_rtx): Removed.
26196 (TARGET_STRUCT_VALUE_RTX): Likewise.
26197
26198 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26199
26200 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26201 converting a conditional jump into a conditional return.
26202
26203 2014-01-14 Richard Biener <rguenther@suse.de>
26204
26205 PR tree-optimization/58921
26206 PR tree-optimization/59006
26207 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26208 hoisting invariant stmts.
26209 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26210 invariant loads on the preheader edge if possible.
26211
26212 2014-01-14 Joey Ye <joey.ye@arm.com>
26213
26214 * doc/plugin.texi (Building GCC plugins): Update to C++.
26215
26216 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26217
26218 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26219 (_mm_rcp28_round_ss): Ditto.
26220 (_mm_rsqrt28_round_sd): Ditto.
26221 (_mm_rsqrt28_round_ss): Ditto.
26222 (_mm_rcp28_sd): Ditto.
26223 (_mm_rcp28_ss): Ditto.
26224 (_mm_rsqrt28_sd): Ditto.
26225 (_mm_rsqrt28_ss): Ditto.
26226 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26227 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26228 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26229 (IX86_BUILTIN_RCP28SD): Ditto.
26230 (IX86_BUILTIN_RCP28SS): Ditto.
26231 (IX86_BUILTIN_RSQRT28SD): Ditto.
26232 (IX86_BUILTIN_RSQRT28SS): Ditto.
26233 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26234 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26235 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26236 (ix86_expand_special_args_builtin): Expand new FTYPE.
26237 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26238 (srcp14<mode>): Make insn unary.
26239 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26240 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26241 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26242 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26243 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26244 Fix rounding: make it SAE only.
26245 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26246 Ditto.
26247 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26248 Ditto.
26249 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26250 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26251 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26252 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26253 (round_saeonly_mask_scalar_operand4): Ditto.
26254 (round_saeonly_mask_scalar_op3): Ditto.
26255 (round_saeonly_mask_scalar_op4): Ditto.
26256
26257 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26258
26259 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26260 Implement -maltivec=be for vec_insert and vec_extract.
26261
26262 2014-01-10 DJ Delorie <dj@redhat.com>
26263
26264 * config/msp430/msp430.md (call_internal): Don't allow memory
26265 references with SP as the base register.
26266 (call_value_internal): Likewise.
26267 * config/msp430/constraints.md (Yc): New. For memory references
26268 that don't use SP as a base register.
26269
26270 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26271 "an integer without a # prefix"
26272 * config/msp430/msp430.md (epilogue_helper): Use it.
26273
26274 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26275
26276 PR target/59617
26277 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26278 AVX512F gather builtins.
26279 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26280 on gather decls with INTEGER_TYPE masktype.
26281 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26282 directly into the builtin rather than hoisting it before loop.
26283
26284 PR tree-optimization/59387
26285 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26286 (scev_const_prop): If folded_casts and type has undefined overflow,
26287 use force_gimple_operand instead of force_gimple_operand_gsi and
26288 for each added stmt if it is assign with
26289 arith_code_with_undefined_signed_overflow, call
26290 rewrite_to_defined_overflow.
26291 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26292 gimple-fold.h instead.
26293 (arith_code_with_undefined_signed_overflow,
26294 rewrite_to_defined_overflow): Moved to ...
26295 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26296 rewrite_to_defined_overflow): ... here. No longer static.
26297 Include gimplify-me.h.
26298 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26299 rewrite_to_defined_overflow): New prototypes.
26300
26301 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26302
26303 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26304
26305 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26306
26307 * builtins.c (get_object_alignment_2): Minor tweak.
26308 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26309
26310 2014-01-13 Christian Bruel <christian.bruel@st.com>
26311
26312 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26313 optimized non constant lengths.
26314
26315 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26316
26317 PR libgomp/59194
26318 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26319 load as __atomic_load_N if possible.
26320
26321 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26322
26323 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26324 target parameter.
26325 (rs6000_expand_builtin): Adjust call.
26326
26327 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26328
26329 PR target/58115
26330 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26331 * config/rs6000/rs6000.c: Include target-globals.h.
26332 (rs6000_set_current_function): Instead of doing target_reinit
26333 unconditionally, use save_target_globals_default_opts and
26334 restore_target_globals.
26335
26336 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26337 FPSCR.
26338 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26339 (rs6000_expand_builtin): Handle mffs and mtfsf.
26340 (rs6000_init_builtins): Define mffs and mtfsf.
26341 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26342 (rs6000_mffs): New pattern.
26343 (rs6000_mtfsf): New pattern.
26344
26345 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26346
26347 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26348 Start narrowing with START. Apply candidate-use pair
26349 and check overall cost in narrowing.
26350 (iv_ca_prune): Pass new argument.
26351
26352 2014-01-10 Jeff Law <law@redhat.com>
26353
26354 PR middle-end/59743
26355 * ree.c (combine_reaching_defs): Ensure the defining statement
26356 occurs before the extension when optimizing extensions with
26357 different source and destination hard registers.
26358
26359 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26360
26361 PR ipa/58585
26362 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26363 vtables into the type inheritance graph.
26364
26365 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26366
26367 PR rtl-optimization/59754
26368 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26369 modes in the REGNO != REGNO case.
26370
26371 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26372
26373 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26374
26375 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26376
26377 PR tree-optimization/59745
26378 * tree-predcom.c (tree_predictive_commoning_loop): Call
26379 free_affine_expand_cache if giving up because components is NULL.
26380
26381 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26382 GC in payload of target_globals struct instead of allocating them on
26383 the heap and the larger structs separately using GC.
26384 * target-globals.h (struct target_globals): Make regs, hard_regs,
26385 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26386 of GTY((skip)) and change type to void *.
26387 (reset_target_globals): Cast loads from those fields to corresponding
26388 types.
26389
26390 2014-01-10 Steve Ellcey <sellcey@mips.com>
26391
26392 PR plugins/59335
26393 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26394 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26395 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26396
26397 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26398
26399 PR target/59744
26400 * aarch64-modes.def (CC_Zmode): New flags mode.
26401 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26402 represents an equality.
26403 (aarch64_get_condition_code): Handle CC_Zmode.
26404 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26405
26406 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26407
26408 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26409 extraction in good case.
26410
26411 2014-01-10 Richard Biener <rguenther@suse.de>
26412
26413 PR tree-optimization/59374
26414 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26415 checking after SLP discovery. Mark stmts not participating
26416 in any SLP instance properly.
26417
26418 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26419
26420 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26421 when handling a SET rtx.
26422
26423 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26424
26425 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26426 (cortex-a57): Likewise.
26427 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26428
26429 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26430
26431 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26432 non-iwmmxt builtins.
26433
26434 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26435
26436 PR ipa/58252
26437 PR ipa/59226
26438 * ipa-devirt.c record_target_from_binfo): Take as argument
26439 stack of binfos and lookup matching one for virtual inheritance.
26440 (possible_polymorphic_call_targets_1): Update.
26441
26442 2014-01-10 Huacai Chen <chenhc@lemote.com>
26443
26444 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26445 kernel strings for Loongson-2E/2F/3A.
26446
26447 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26448
26449 PR middle-end/59670
26450 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26451 is_gimple_call before calling gimple_call_internal_p.
26452
26453 2014-01-09 Steve Ellcey <sellcey@mips.com>
26454
26455 * Makefile.in (TREE_FLOW_H): Remove.
26456 (TREE_SSA_H): Add file names from tree-flow.h.
26457 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26458 * tree.h: Remove tree-flow.h reference.
26459 * hash-table.h: Remove tree-flow.h reference.
26460 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26461 reference with tree-ssa-loop.h.
26462
26463 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26464
26465 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26466 default element-order behavior for -maltivec.
26467 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26468 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26469 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26470 when targeting big endian, at least for now.
26471 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26472
26473 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26474
26475 PR middle-end/47735
26476 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26477 var satisfies use_register_for_decl, just take into account type
26478 alignment, rather than decl alignment.
26479
26480 PR tree-optimization/59622
26481 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26482 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26483 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26484 Don't devirtualize for inplace at all. For targets.length () == 1,
26485 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26486
26487 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26488
26489 * config/i386/i386.md (cpu): Remove the unused btver1.
26490
26491 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26492
26493 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26494
26495 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26496
26497 PR target/58115
26498 * tree-core.h (struct target_globals): New forward declaration.
26499 (struct tree_target_option): Add globals field.
26500 * tree.h (TREE_TARGET_GLOBALS): Define.
26501 (prepare_target_option_nodes_for_pch): New prototype.
26502 * target-globals.h (struct target_globals): Define even if
26503 !SWITCHABLE_TARGET.
26504 * tree.c (prepare_target_option_node_for_pch,
26505 prepare_target_option_nodes_for_pch): New functions.
26506 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26507 * config/i386/i386.c: Include target-globals.h.
26508 (ix86_set_current_function): Instead of doing target_reinit
26509 unconditionally, use save_target_globals_default_opts and
26510 restore_target_globals.
26511
26512 2014-01-09 Richard Biener <rguenther@suse.de>
26513
26514 PR tree-optimization/59715
26515 * tree-cfg.h (split_critical_edges): Declare.
26516 * tree-cfg.c (split_critical_edges): Export.
26517 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26518
26519 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26520
26521 * cfgexpand.c (expand_stack_vars): Optionally disable
26522 asan stack protection.
26523 (expand_used_vars): Likewise.
26524 (partition_stack_vars): Likewise.
26525 * asan.c (asan_emit_stack_protection): Optionally disable
26526 after return stack usage.
26527 (instrument_derefs): Optionally disable memory access instrumentation.
26528 (instrument_builtin_call): Likewise.
26529 (instrument_strlen_call): Likewise.
26530 (asan_protect_global): Optionally disable global variables protection.
26531 * doc/invoke.texi: Added doc for new options.
26532 * params.def: Added new options.
26533 * params.h: Likewise.
26534
26535 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26536
26537 PR rtl-optimization/59724
26538 * ifcvt.c (cond_exec_process_if_block): Don't call
26539 flow_find_head_matching_sequence with 0 longest_match.
26540 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26541 non-active insns if !stop_after.
26542 (try_head_merge_bb): Revert 2014-01-07 changes.
26543
26544 2014-01-08 Jeff Law <law@redhat.com>
26545
26546 * ree.c (get_sub_rtx): New function, extracted from...
26547 (merge_def_and_ext): Here.
26548 (combine_reaching_defs): Use get_sub_rtx.
26549
26550 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26551
26552 * cgraph.h (varpool_variable_node): Do not choke on null node.
26553
26554 2014-01-08 Catherine Moore <clm@codesourcery.com>
26555
26556 * config/mips/mips.md (simple_return): Attempt to use JRC
26557 for microMIPS.
26558 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26559
26560 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26561
26562 PR rtl-optimization/59137
26563 * reorg.c (steal_delay_list_from_target): Call update_block for
26564 elided insns.
26565 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26566
26567 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26568
26569 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26570 two duplicate entries.
26571
26572 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26573
26574 Revert:
26575 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26576
26577 * config/mips/mips.c (mips_truncated_op_cost): New function.
26578 (mips_rtx_costs): Adjust test for BADDU.
26579 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26580
26581 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26582
26583 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26584 (*baddu_si): ...this new pattern.
26585
26586 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26587
26588 PR ipa/59722
26589 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26590
26591 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26592
26593 PR middle-end/57748
26594 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26595 inner_reference_p.
26596 (expand_expr, expand_normal): Adjust.
26597 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26598 inner_reference_p. Use inner_reference_p to expand inner references.
26599 (store_expr): Adjust.
26600 * cfgexpand.c (expand_call_stmt): Adjust.
26601
26602 2014-01-08 Rong Xu <xur@google.com>
26603
26604 * gcov-io.c (gcov_var): Move from gcov-io.h.
26605 (gcov_position): Ditto.
26606 (gcov_is_error): Ditto.
26607 (gcov_rewrite): Ditto.
26608 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26609 only part to libgcc/libgcov.h.
26610
26611 2014-01-08 Marek Polacek <polacek@redhat.com>
26612
26613 PR middle-end/59669
26614 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26615
26616 2014-01-08 Marek Polacek <polacek@redhat.com>
26617
26618 PR sanitizer/59667
26619 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26620
26621 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26622
26623 PR rtl-optimization/59649
26624 * stor-layout.c (get_mode_bounds): For BImode return
26625 0 and STORE_FLAG_VALUE.
26626
26627 2014-01-08 Richard Biener <rguenther@suse.de>
26628
26629 PR middle-end/59630
26630 * gimple.h (is_gimple_builtin_call): Remove.
26631 (gimple_builtin_call_types_compatible_p): New.
26632 (gimple_call_builtin_p): New overload.
26633 * gimple.c (is_gimple_builtin_call): Remove.
26634 (validate_call): Rename to ...
26635 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26636 check return types.
26637 (validate_type): New static function.
26638 (gimple_call_builtin_p): New overload and adjust.
26639 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26640 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26641 (gimple_fold_stmt_to_constant_1): Likewise.
26642 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26643
26644 2014-01-08 Richard Biener <rguenther@suse.de>
26645
26646 PR middle-end/59471
26647 * gimplify.c (gimplify_expr): Gimplify register-register type
26648 VIEW_CONVERT_EXPRs to separate stmts.
26649
26650 2014-01-07 Jeff Law <law@redhat.com>
26651
26652 PR middle-end/53623
26653 * ree.c (combine_set_extension): Handle case where source
26654 and destination registers in an extension insn are different.
26655 (combine_reaching_defs): Allow source and destination registers
26656 in extension to be different under limited circumstances.
26657 (add_removable_extension): Remove restriction that the
26658 source and destination registers in the extension are the same.
26659 (find_and_remove_re): Emit a copy from the extension's
26660 destination to its source after the defining insn if
26661 the source and destination registers are different.
26662
26663 PR middle-end/59285
26664 * ifcvt.c (merge_if_block): If we are merging a block with more than
26665 one successor with a block with no successors, remove any BARRIER
26666 after the second block.
26667
26668 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26669
26670 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26671
26672 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26673
26674 PR target/59652
26675 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26676 for 14-bit register offsets when INT14_OK_STRICT is false.
26677
26678 2014-01-07 Roland Stigge <stigge@antcom.de>
26679 Michael Meissner <meissner@linux.vnet.ibm.com>
26680
26681 PR 57386/target
26682 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26683 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26684
26685 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26686
26687 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26688 -mcpu.
26689
26690 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26691
26692 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26693 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26694 rtx is const0_rtx or not.
26695
26696 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26697
26698 PR target/58115
26699 * target-globals.c (save_target_globals): Remove this_fn_optab
26700 handling.
26701 * toplev.c: Include optabs.h.
26702 (target_reinit): Temporarily restore the global options if another
26703 set of options are in force.
26704
26705 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26706
26707 PR rtl-optimization/58668
26708 * cfgcleanup.c (flow_find_cross_jump): Don't count
26709 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26710 to determine what is counted.
26711 (flow_find_head_matching_sequence): Use active_insn_p to determine
26712 what is counted.
26713 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26714 counting change.
26715 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26716 determine what is counted.
26717
26718 PR tree-optimization/59643
26719 * tree-predcom.c (split_data_refs_to_components): If one dr is
26720 read and one write, determine_offset fails and the write isn't
26721 in the bad component, just put the read into the bad component.
26722
26723 2014-01-07 Mike Stump <mikestump@comcast.net>
26724 Jakub Jelinek <jakub@redhat.com>
26725
26726 PR pch/59436
26727 * tree-core.h (struct tree_optimization_option): Change optabs
26728 type from unsigned char * to void *.
26729 * optabs.c (init_tree_optimization_optabs): Adjust
26730 TREE_OPTIMIZATION_OPTABS initialization.
26731
26732 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26733
26734 PR target/59644
26735 * config/i386/i386.h (struct machine_function): Add
26736 no_drap_save_restore field.
26737 * config/i386/i386.c (ix86_save_reg): Use
26738 !cfun->machine->no_drap_save_restore instead of
26739 crtl->stack_realign_needed.
26740 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26741 this function clears frame_pointer_needed. Set
26742 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26743 and DRAP reg is needed.
26744
26745 2014-01-06 Marek Polacek <polacek@redhat.com>
26746
26747 PR c/57773
26748 * doc/implement-c.texi: Mention that other integer types are
26749 permitted as bit-field types in strictly conforming mode.
26750
26751 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26752
26753 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26754 is newly allocated.
26755
26756 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26757
26758 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26759
26760 2014-01-06 Martin Jambor <mjambor@suse.cz>
26761
26762 PR ipa/59008
26763 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26764 to int.
26765 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26766
26767 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26768
26769 PR debug/59350
26770 PR debug/59510
26771 * var-tracking.c (add_stores): Preserve the value of the source even if
26772 we don't record the store.
26773
26774 2014-01-06 Terry Guo <terry.guo@arm.com>
26775
26776 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26777
26778 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26779
26780 PR bootstrap/59541
26781 * config/darwin.c (darwin_function_section): Adjust return values to
26782 correspond to optimisation changes made in r206070.
26783
26784 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26785
26786 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26787 from prefetch_block tune setting.
26788 (nocona_cost): Correct size of prefetch block to 64.
26789
26790 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26791
26792 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26793 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26794 used to save the static chain register in the computation of the offset
26795 from which the FP registers need to be restored.
26796
26797 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26798
26799 PR tree-optimization/59519
26800 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26801 ICE if get_current_def (current_new_name) is already non-NULL, as long
26802 as it is a phi result of some other phi in *new_exit_bb that has
26803 the same argument.
26804
26805 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26806 or vmovdqu* for misaligned_operand.
26807 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26808 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26809 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26810 aligned_mem for AVX512F masked aligned load and store builtins and for
26811 non-temporal moves.
26812
26813 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26814
26815 PR tree-optimization/59651
26816 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26817 Address range for negative step should be added by TYPE_SIZE_UNIT.
26818
26819 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26820
26821 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26822 overlapping registers also for registers other than the stack pointer.
26823
26824 2014-01-03 Marek Polacek <polacek@redhat.com>
26825
26826 PR other/59661
26827 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26828 __builtin_FILE.
26829
26830 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26831
26832 PR target/59625
26833 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26834 asm goto as jump.
26835
26836 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26837 (push splitter): Use <P:MODE_SIZE> instead of
26838 GET_MODE_SIZE (<P:MODE>mode).
26839 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26840 (mov -1, reg peephole2): Likewise.
26841 * config/i386/sse.md (*mov<mode>_internal,
26842 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26843 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26844 *<code><mode>3, *andnot<mode>3<mask_name>,
26845 <mask_codefor><code><mode>3<mask_name>): Likewise.
26846 * config/i386/subst.md (mask_mode512bit_condition,
26847 sd_mask_mode512bit_condition): Likewise.
26848
26849 2014-01-02 Xinliang David Li <davidxl@google.com>
26850
26851 PR tree-optimization/59303
26852 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26853 (dump_predicates): Better output format.
26854 (pred_equal_p): New function.
26855 (is_neq_relop_p): Ditto.
26856 (is_neq_zero_form_p): Ditto.
26857 (pred_expr_equal_p): Ditto.
26858 (pred_neg_p): Ditto.
26859 (simplify_pred): Ditto.
26860 (simplify_preds_2): Ditto.
26861 (simplify_preds_3): Ditto.
26862 (simplify_preds_4): Ditto.
26863 (simplify_preds): Ditto.
26864 (push_pred): Ditto.
26865 (push_to_worklist): Ditto.
26866 (get_pred_info_from_cmp): Ditto.
26867 (is_degenerated_phi): Ditto.
26868 (normalize_one_pred_1): Ditto.
26869 (normalize_one_pred): Ditto.
26870 (normalize_one_pred_chain): Ditto.
26871 (normalize_preds): Ditto.
26872 (normalize_cond_1): Remove function.
26873 (normalize_cond): Ditto.
26874 (is_gcond_subset_of): Ditto.
26875 (is_subset_of_any): Ditto.
26876 (is_or_set_subset_of): Ditto.
26877 (is_and_set_subset_of): Ditto.
26878 (is_norm_cond_subset_of): Ditto.
26879 (pred_chain_length_cmp): Ditto.
26880 (convert_control_dep_chain_into_preds): Type change.
26881 (find_predicates): Ditto.
26882 (find_def_preds): Ditto.
26883 (destroy_predicates_vecs): Ditto.
26884 (find_matching_predicates_in_rest_chains): Ditto.
26885 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26886 (is_pred_expr_subset): Ditto.
26887 (is_pred_chain_subset_of): Ditto.
26888 (is_included_in): Ditto.
26889 (is_superset_of): Ditto.
26890
26891 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26892
26893 Update copyright years.
26894
26895 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26896
26897 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26898 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26899 config/arc/arc.md, config/arc/arc.opt,
26900 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26901 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26902 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26903 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26904 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26905 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26906 vtable-verify.c, vtable-verify.h: Use the standard form for the
26907 copyright notice.
26908
26909 2014-01-02 Tobias Burnus <burnus@net-b.de>
26910
26911 * gcc.c (process_command): Update copyright notice dates.
26912 * gcov-dump.c: Ditto.
26913 * gcov.c: Ditto.
26914 * doc/cpp.texi: Bump @copying's copyright year.
26915 * doc/cppinternals.texi: Ditto.
26916 * doc/gcc.texi: Ditto.
26917 * doc/gccint.texi: Ditto.
26918 * doc/gcov.texi: Ditto.
26919 * doc/install.texi: Ditto.
26920 * doc/invoke.texi: Ditto.
26921
26922 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26923
26924 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26925
26926 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26927
26928 * config/i386/sse.md (*mov<mode>_internal): Guard
26929 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26930
26931 PR rtl-optimization/59647
26932 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26933 new_rtx into UNSIGNED_FLOAT rtxes.
26934 \f
26935 Copyright (C) 2014 Free Software Foundation, Inc.
26936
26937 Copying and distribution of this file, with or without modification,
26938 are permitted in any medium without royalty provided the copyright
26939 notice and this notice are preserved.