reload1.c: Include rtl-iter.h.
[gcc.git] / gcc / ChangeLog
1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * reload1.c: Include rtl-iter.h.
4 (note_reg_elim_costly): Turn from being a for_each_rtx callback
5 to being a function that examines each subrtx itself.
6 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
7
8 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9
10 * regcprop.c (cprop_find_used_regs_1): Delete.
11 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
12
13 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14
15 * regcprop.c: Include rtl-iter.h.
16 (kill_value): Take a const_rtx.
17 (kill_autoinc_value): Turn from being a for_each_rtx callback
18 to being a function that examines each subrtx itself.
19 (copyprop_hardreg_forward_1): Update accordingly.
20
21 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22
23 * reg-stack.c: Include rtl-iter.h.
24 (subst_stack_regs_in_debug_insn): Delete.
25 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
26 instead of for_each_rtx.
27
28 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
29
30 * lower-subreg.c (find_decomposable_subregs): Turn from being
31 a for_each_rtx callback to being a function that examines each
32 subrtx itself. Remove handling of null rtxes.
33 (decompose_multiword_subregs): Update accordingly.
34
35 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
36
37 * lower-subreg.c (adjust_decomposed_uses): Delete.
38 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
39 Remove handling of null rtxes.
40
41 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
42
43 * lower-subreg.c: Include rtl-iter.h.
44 (resolve_subreg_use): Turn from being a for_each_rtx callback
45 to being a function that examines each subrtx itself. Remove
46 handling of null rtxes.
47 (resolve_reg_notes, resolve_simple_move): Update accordingly.
48 (decompose_multiword_subregs): Likewise.
49
50 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
51
52 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
53 to being a function that examines each subrtx itself.
54 (simplify_using_condition, simplify_using_initial_values): Update
55 accordingly.
56
57 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
58
59 * loop-iv.c: Include rtl-iter.h.
60 (find_single_def_src): New function.
61 (replace_single_def_regs): Turn from being a for_each_rtx callback
62 to being a function that examines each subrtx itself.
63 (replace_in_expr, simplify_using_initial_values): Update accordingly.
64
65 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
66
67 * jump.c (eh_returnjump_p_1): Delete.
68 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
69 Remove handling of null rtxes.
70
71 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
72
73 * jump.c: Include rtl-iter.h.
74 (returnjump_p_1): Delete.
75 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
76 Remove handling of null rtxes.
77
78 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
79
80 * ira.c: Include rtl-iter.h.
81 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
82 to being a function that examines each subrtx itself. Remove
83 handling of null rtxes.
84 (update_equiv_regs): Update call accordingly.
85
86 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
87
88 * fwprop.c: Include rtl-iter.h.
89 (varying_mem_p): Turn from being a for_each_rtx callback to being
90 a function that examines each subrtx itself.
91 (propagate_rtx): Update accordingly.
92
93 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
94
95 * function.c: Include rtl-iter.h
96 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
97 callback to being a function that examines each subrtx itself.
98 Return the changed flag.
99 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
100 (instantiate_virtual_regs): Update calls accordingly.
101
102 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
103
104 * final.c: Include rtl-iter.h.
105 (mark_symbol_ref_as_used): Delete.
106 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
107 for_each_rtx.
108
109 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
110
111 * emit-rtl.c: Include rtl-iter.h.
112 (find_auto_inc): Turn from being a for_each_rtx callback to being
113 a function that examines each subrtx itself. Assume the first operand
114 to an RTX_AUTOINC is the automodified register.
115 (try_split): Update call accordingly.
116
117 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
118
119 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
120 Return a bool, inverting the result so that 0/false means "not ok".
121 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
122 subrtxes of a CONST.
123 (mem_loc_descriptor, add_const_value_attribute)
124 (resolve_addr_in_expr): Update calls accordingly.
125
126 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
127
128 * dwarf2out.c: Include rtl-iter.h.
129 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
130 Remove unused data parameter. Return a bool, inverting the result
131 so that 0/false means "not ok".
132 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
133 instead of for_each_rtx.
134
135 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
136
137 * dse.c: Include rtl-iter.h.
138 (check_mem_read_rtx): Change void * parameter to real type.
139 Remove return value.
140 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
141 for_each_rtx. Don't handle null rtxes.
142
143 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
144
145 * df-problems.c: Include rtl-iter.h.
146 (find_memory): Turn from being a for_each_rtx callback to being
147 a function that examines each subrtx itself. Continue to look for
148 volatile references even after a nonvolatile one has been found.
149 (can_move_insns_across): Update calls accordingly.
150
151 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
152
153 * ddg.c (walk_mems_2, walk_mems_1): Delete.
154 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
155 to iterate over subrtxes. Return a bool rather than an int.
156
157 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
158
159 * ddg.c: Include rtl-iter.h.
160 (mark_mem_use_1): Rename to...
161 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
162 instead of for_each_rtx.
163 (mem_read_insn_p): Update accordingly.
164
165 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
166
167 * cse.c (change_cc_mode_args): Delete.
168 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
169 a function that examines each subrtx itself. Take the fields of
170 change_cc_mode_args as argument and return void.
171 (cse_change_cc_mode_insn): Update calls accordingly.
172
173 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
174
175 * cse.c (is_dead_reg): Change argument to const_rtx.
176 (dead_debug_insn_data): Delete.
177 (is_dead_debug_insn): Expand commentary. Turn from being a
178 for_each_rtx callback to being a function that examines
179 each subrtx itself. Take the fields of dead_debug_insn_data
180 as argument.
181 (delete_trivially_dead_insns): Update call accordingly.
182
183 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
184
185 * cse.c (check_for_label_ref): Move earlier in file. Turn from
186 being a for_each_rtx callback to being a function that examines
187 each subrtx itself.
188 (cse_extended_basic_block): Update call accordingly.
189
190 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
191
192 * cse.c (check_dependence_data): Delete.
193 (check_dependence): Change from being a for_each_rtx callback to being
194 a function that examines all subrtxes itself. Don't handle null rtxes.
195 (invalidate): Update call accordingly.
196
197 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
198
199 * cse.c: Include rtl-iter.h.
200 (approx_reg_cost_1): Delete.
201 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
202 Don't handle null rtxes.
203
204 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
205
206 * cfgcleanup.c: Include rtl-iter.h.
207 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
208 to being a function that examines each subrtx itself.
209 (thread_jump): Update accordingly.
210
211 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
212
213 * combine-stack-adj.c: Include rtl-iter.h.
214 (record_stack_refs_data): Delete.
215 (record_stack_refs): Turn from being a for_each_rtx callback
216 to being a function that examines each subrtx itself.
217 Take a pointer to the reflist. Invert sense of return value
218 so that true means success and false means failure. Don't
219 handle null rtxes.
220 (combine_stack_adjustments_for_block): Update accordingly.
221
222 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
223
224 * combine.c (record_truncated_value): Turn from being a for_each_rtx
225 callback to a function that takes an rtx and returns a bool
226 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
227 for_each_rtx.
228
229 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
230
231 * combine.c: Include rtl-iter.h.
232 (unmentioned_reg_p_1): Delete.
233 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
234 Don't handle null rtxes.
235
236 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
237
238 * calls.c: Include rtl-iter.h.
239 (internal_arg_pointer_based_exp_1): Delete.
240 (internal_arg_pointer_based_exp): Take a const_rtx.
241 Use FOR_EACH_SUBRTX to iterate over subrtxes.
242
243 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
244
245 * caller-save.c: Include rtl-iter.h.
246 (add_used_regs_1): Delete.
247 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
248 to iterate over subrtxes. Assert that any remaining pseudos
249 have been spilled.
250
251 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
252
253 * bt-load.c: Include rtl-iter.h.
254 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
255 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
256 to iterate over subrtxes.
257 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
258 find_btr_use rather than btr_referenced_p.
259
260 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
261
262 * alias.c: Include rtl-iter.h.
263 (refs_newer_value_cb): Delete.
264 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
265
266 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
267
268 * rtl-iter.h: New file.
269 * rtlanal.c: Include it.
270 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
271 (generic_subrtx_iterator <T>::add_single_to_queue)
272 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
273 (generic_subrtx_iterator <T>::free_array): New functions.
274 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
275 (generic_subrtx_iterator <const_rtx_accessor>)
276 (generic_subrtx_iterator <rtx_var_accessor>
277 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
278 (setup_reg_subrtx_bounds): New function.
279 (init_rtlanal): Call it.
280
281 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
282
283 PR target/62261
284 * config/sh/sh.md (ashlsi3): Handle negative shift count for
285 TARGET_SHMEDIA.
286 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
287
288 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
289
290 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
291
292 2014-08-27 David Malcolm <dmalcolm@redhat.com>
293
294 * rtl.h (JUMP_LABEL_AS_INSN): New.
295
296 2014-08-27 David Malcolm <dmalcolm@redhat.com>
297
298 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
299 rtx_expr_list **.
300 (alloc_EXPR_LIST): Strengthen return type from rtx to
301 rtx_expr_list *.
302 (remove_free_EXPR_LIST_node): Likewise for param.
303 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
304 from rtx to rtx_expr_list *.
305 * sched-int.h (struct deps_desc): Strengthen fields
306 "pending_read_mems" and "pending_write_mems" from rtx to
307 rtx_expr_list *.
308
309 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
310 rtx to rtx_expr_list *.
311 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
312 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
313 rtx_expr_list **.
314 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
315 from rtx to rtx_expr_list *.
316 * loop-iv.c (simplify_using_initial_values): Strengthen local
317 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
318 "pnote_next" from rtx * to rtx_expr_list **.
319 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
320 param "exprp" from rtx * to rtx_expr_list **.
321 (add_insn_mem_dependence): Strengthen local "mem_list" from
322 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
323 to rtx_expr_list *.
324 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
325 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
326 param "old_mems_p" from rtx * to rtx_expr_list **.
327 * var-tracking.c (struct adjust_mem_data): Strengthen field
328 "side_effects" from rtx to rtx_expr_list *.
329 (adjust_insn): Replace NULL_RTX with NULL when assigning to
330 rtx_expr_list *.
331 (prepare_call_arguments): Likewise.
332
333 2014-08-27 David Malcolm <dmalcolm@redhat.com>
334
335 * function.h (struct rtl_data): Strengthen field
336 "x_stack_slot_list" from rtx to rtx_expr_list *.
337
338 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
339 when assigning to stack_slot_list.
340
341 2014-08-27 David Malcolm <dmalcolm@redhat.com>
342
343 * function.h (struct rtl_data): Strengthen field
344 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
345 * rtl.h (remove_node_from_expr_list): Strengthen second param from
346 rtx * to rtx_expr_list **.
347
348 * cfgbuild.c (make_edges): In loop over
349 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
350 rtx_expr_list *, and use methods of the latter class to clarify
351 the code.
352 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
353 rtx_expr_list *, and use methods of the latter class to clarify
354 the code.
355 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
356 * reload1.c (set_initial_label_offsets): Likewise for local "x".
357 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
358 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
359 to rtx_expr_list *. Use methods of the latter class to clarify
360 the code.
361
362 2014-08-27 David Malcolm <dmalcolm@redhat.com>
363
364 * function.h (struct expr_status): Strengthen field
365 "x_forced_labels" from rtx to rtx_expr_list *.
366
367 * cfgbuild.c (make_edges): Split local "x" into two locals,
368 strengthening one from rtx to rtx_expr_list *, and using methods
369 of said class.
370 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
371 loop over forced_labels, introduce strengthen it from rtx to
372 rtx_expr_list *, using methods to clarify the code.
373 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
374 to rtx_expr_list *, using methods of said class to clarify the
375 code.
376 * reload1.c (set_initial_label_offsets): Split local "x" into two
377 per-loop variables, strengthening the first from rtx to
378 rtx_expr_list * and using methods.
379
380 2014-08-27 David Malcolm <dmalcolm@redhat.com>
381
382 * coretypes.h (class rtx_expr_list): Add forward declaration.
383 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
384 * gengenrtl.c (special_rtx): Add EXPR_LIST.
385 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
386 invariant: GET_CODE (X) == EXPR_LIST.
387 (is_a_helper <rtx_expr_list *>::test): New.
388 (rtx_expr_list::next): New.
389 (rtx_expr_list::element): New.
390 (gen_rtx_EXPR_LIST): New.
391
392 2014-08-27 David Malcolm <dmalcolm@redhat.com>
393
394 * varasm.c (mark_constants): Convert a GET_CODE check into a
395 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
396 Use methods of rtx_sequence to clarify the code.
397
398 2014-08-27 David Malcolm <dmalcolm@redhat.com>
399
400 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
401 local "seq" via a checked cast, and use methods of rtx_sequence
402 to simplify the code.
403
404 2014-08-27 David Malcolm <dmalcolm@redhat.com>
405
406 * resource.c (mark_referenced_resources): Strengthen local
407 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
408 using methods of rtx_sequence to clarify the code.
409 (find_dead_or_set_registers): Within the switch statement, convert
410 a GET_CODE check to a dyn_cast, introducing local "seq". Within
411 the JUMP_P handling, introduce another local "seq", adding a
412 checked cast to rtx_sequence *. In both cases, use methods of
413 rtx_sequence to clarify the code.
414 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
415 via a checked cast, and use methods of rtx_sequence to simplify
416 the code.
417
418 2014-08-27 David Malcolm <dmalcolm@redhat.com>
419
420 * reorg.c (redundant_insn): In two places in the function, replace
421 a check of GET_CODE with a dyn_cast, introducing local "seq", and
422 usings methods of rtx_sequence to clarify the code.
423
424 2014-08-27 David Malcolm <dmalcolm@redhat.com>
425
426 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
427 local "seq" with a checked cast, and use methods of rtx_sequence
428 to clarify the code.
429
430 2014-08-27 David Malcolm <dmalcolm@redhat.com>
431
432 * function.c (contains): Introduce local "seq" for PATTERN (insn),
433 with a checked cast, in the region for where we know it's a
434 SEQUENCE. Use methods of rtx_sequence.
435
436 2014-08-27 David Malcolm <dmalcolm@redhat.com>
437
438 * final.c (get_attr_length_1): Replace GET_CODE check with a
439 dyn_cast, introducing local "seq" and the use of methods of
440 rtx_sequence.
441 (shorten_branches): Likewise, introducing local "body_seq".
442 Strengthen local "inner_insn" from rtx to rtx_insn *.
443 (reemit_insn_block_notes): Replace GET_CODE check with a
444 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
445 Use methods of rtx_sequence.
446 (final_scan_insn): Likewise, introducing local "seq" for when
447 "body" is known to be a SEQUENCE, using its methods.
448
449 2014-08-27 David Malcolm <dmalcolm@redhat.com>
450
451 * except.c (can_throw_external): Strengthen local "seq" from rtx
452 to rtx_sequence *. Use methods of rtx_sequence.
453 (insn_nothrow_p): Likewise.
454
455 2014-08-27 David Malcolm <dmalcolm@redhat.com>
456
457 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
458 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
459 Use methods of rtx_sequence.
460 (scan_trace): Likewise for local "pat".
461
462 2014-08-27 David Malcolm <dmalcolm@redhat.com>
463
464 * coretypes.h (class rtx_sequence): Add forward declaration.
465 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
466 invariant: GET_CODE (X) == SEQUENCE.
467 (is_a_helper <rtx_sequence *>::test): New.
468 (is_a_helper <const rtx_sequence *>::test): New.
469 (rtx_sequence::len): New.
470 (rtx_sequence::element): New.
471 (rtx_sequence::insn): New.
472
473 2014-08-27 David Malcolm <dmalcolm@redhat.com>
474
475 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
476 rtx_insn_list **.
477 (alloc_INSN_LIST): Strengthen return type from rtx to
478 rtx_insn_list *.
479 (copy_INSN_LIST): Likewise for return type and param.
480 (concat_INSN_LIST): Likewise for both params and return type.
481 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
482 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
483 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
484 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
485
486 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
487 "implicit_sets", "control_uses", "clobbers" from rtx to
488 rtx_insn_list *.
489 (struct deps_desc): Likewise for fields "pending_read_insns",
490 "pending_write_insns", "pending_jump_insns",
491 "last_pending_memory_flush", "last_function_call",
492 "last_function_call_may_noreturn", "sched_before_next_call",
493 "sched_before_next_jump".
494 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
495 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
496
497 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
498 from rtx to rtx_insn_list *.
499 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
500 rtx_insn_list *.
501
502 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
503 to rtx_insn_list **.
504 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
505 rtx_insn_list *.
506 (queue_insn): Likewise for local "link".
507 (struct haifa_saved_data): Strengthen field "insn_queue" from
508 rtx * to rtx_insn_list **.
509 (save_backtrack_point): Update allocation of save->insn_queue to
510 reflect the strengthening of elements from rtx to rtx_insn_list *.
511 (queue_to_ready): Strengthen local "link" from rtx to
512 rtx_insn_list *; use methods "next" and "insn" when traversing the
513 list.
514 (early_queue_to_ready): Likewise for locals "link", "next_link",
515 "prev_link".
516 (schedule_block): Update allocation of insn_queue to reflect the
517 strengthening of elements from rtx to rtx_insn_list *. Strengthen
518 local "link" from rtx to rtx_insn_list *, and use methods when
519 working it.
520 (add_to_speculative_block): Strengthen locals "twins" and
521 "next_node" from rtx to rtx_insn_list *, and use methods when
522 working with them. Strengthen local "twin" from rtx to
523 rtx_insn *, eliminating a checked cast.
524 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
525 from rtx to rtx_insn_list *, and use methods when working with
526 them.
527
528 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
529 from rtx to rtx_insn_list *, adding a checked cast.
530 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
531 rtx_insn_list **.
532 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
533 "newlink" from rtx to rtx_insn_list *. Strengthen local
534 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
535 from rtx to rtx_insn *.
536 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
537 from rtx to rtx_insn_list *. Use methods of the latter class.
538 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
539 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
540 (remove_free_INSN_LIST_node): Strengthen return type and local
541 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
542 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
543 rtx_insn_list *, using "insn" method.
544
545 * sched-deps.c (add_dependence_list): Strengthen param "list"
546 from rtx to rtx_insn_list *, and use methods when working with it.
547 (add_dependence_list_and_free): Strengthen param "listp" from
548 rtx * to rtx_insn_list **.
549 (remove_from_dependence_list): Strenghten param "listp" from rtx *
550 to rtx_insn_list **, and use methods when working with *listp.
551 (remove_from_both_dependence_lists): Strengthen param "listp" from
552 rtx * to rtx_insn_list **
553 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
554 to rtx_insn_list **. Eliminate local "link", in favor of two new
555 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
556 respectively.
557 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
558 by introducing local "cond_deps".
559 (remove_from_deps): Strengthen param "insn" from rtx to
560 rtx_insn *.
561
562 * sched-rgn.c (concat_insn_mem_list): Strengthen param
563 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
564 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
565 Use methods of rtx_insn_list.
566
567 * store-motion.c (struct st_expr): Strengthen fields
568 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
569 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
570 rtx_insn_list *.
571 (find_moveable_store): Split out "tmp" into multiple more-tightly
572 scoped locals. Use methods of rtx_insn_list *.
573 (compute_store_table): Strengthen local "tmp" from rtx to
574 rtx_insn *. Use methods of rtx_insn_list *.
575
576 2014-08-27 David Malcolm <dmalcolm@redhat.com>
577
578 * coretypes.h (class rtx_insn_list): Add forward declaration.
579 * rtl.h (class rtx_insn_list): New subclass of rtx_def
580 (is_a_helper <rtx_insn_list *>::test): New.
581 (rtx_insn_list::next): New.
582 (rtx_insn_list::insn): New.
583 (gen_rtx_INSN_LIST): Add prototype.
584 * emit-rtl.c (gen_rtx_INSN_LIST): New.
585 * gengenrtl.c (special_rtx): Add INSN_LIST.
586
587 2014-08-27 David Malcolm <dmalcolm@redhat.com>
588
589 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
590 "prev" from rtx to rtx_insn *.
591
592 2014-08-27 David Malcolm <dmalcolm@redhat.com>
593
594 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
595 functions. Require merely an rtx for now, not an rtx_insn *.
596 (BLOCK_FOR_INSN): Likewise.
597 (INSN_LOCATION): Likewise.
598 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
599
600 2014-08-27 David Malcolm <dmalcolm@redhat.com>
601
602 * rtl.h (PATTERN): Convert this macro into a pair of inline
603 functions, for now, requiring const_rtx and rtx.
604
605 2014-08-27 David Malcolm <dmalcolm@redhat.com>
606
607 * target.def (unwind_emit): Strengthen param "insn" from rtx to
608 rtx_insn *.
609 (final_postscan_insn): Likewise.
610 (adjust_cost): Likewise.
611 (adjust_priority): Likewise.
612 (variable_issue): Likewise.
613 (macro_fusion_pair_p): Likewise.
614 (dfa_post_cycle_insn): Likewise.
615 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
616 (first_cycle_multipass_issue): Likewise.
617 (dfa_new_cycle): Likewise.
618 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
619 (speculate_insn): Likewise for param "insn".
620 (gen_spec_check): Likewise for params "insn" and "label".
621 (get_insn_spec_ds): Likewise for param "insn".
622 (get_insn_checked_ds): Likewise.
623 (dispatch_do): Likewise.
624 (dispatch): Likewise.
625 (cannot_copy_insn_p): Likewise.
626 (invalid_within_doloop): Likewise.
627 (legitimate_combined_insn): Likewise.
628 (needed): Likewise.
629 (after): Likewise.
630
631 * doc/tm.texi: Automatically updated to reflect changes to
632 target.def.
633
634 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
635 working with insn.
636 (schedule_block): Likewise.
637 (sched_init): Likewise.
638 (sched_speculate_insn): Strengthen param "insn" from rtx to
639 rtx_insn *.
640 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
641 working with insn.
642 * hooks.c (hook_bool_rtx_true): Rename to...
643 hook_bool_rtx_insn_true): ...this, and strengthen first param from
644 rtx to rtx_insn *.
645 (hook_constcharptr_const_rtx_null): Rename to...
646 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
647 first param from const_rtx to const rtx_insn *.
648 (hook_bool_rtx_int_false): Rename to...
649 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
650 param from rtx to rtx_insn *.
651 (hook_void_rtx_int): Rename to...
652 (hook_void_rtx_insn_int): ...this, and strengthen first param from
653 rtx to rtx_insn *.
654
655 * hooks.h (hook_bool_rtx_true): Rename to...
656 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
657 rtx to rtx_insn *.
658 (hook_bool_rtx_int_false): Rename to...
659 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
660 param from rtx to rtx_insn *.
661 (hook_void_rtx_int): Rename to...
662 (hook_void_rtx_insn_int): ...this, and strengthen first param from
663 rtx to rtx_insn *.
664 (hook_constcharptr_const_rtx_null): Rename to...
665 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
666 first param from const_rtx to const rtx_insn *.
667
668 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
669 and local "prev" from rtx to rtx_insn *.
670
671 * sched-int.h (sched_speculate_insn): Strengthen first param from
672 rtx to rtx_insn *.
673
674 * sel-sched.c (create_speculation_check): Likewise for local "label".
675 * targhooks.c (default_invalid_within_doloop): Strengthen param
676 "insn" from const_rtx to const rtx_insn *.
677 * targhooks.h (default_invalid_within_doloop): Strengthen param
678 from const_rtx to const rtx_insn *.
679
680 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
681 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
682
683 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
684 "insn".
685 (arc_invalid_within_doloop): Likewise, with const.
686
687 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
688 (arm_cannot_copy_insn_p): Likewise for param "insn".
689 (arm_unwind_emit): Likewise.
690
691 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
692 "dep_insn".
693
694 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
695 (c6x_variable_issue): Likewise. Removed now-redundant checked
696 cast.
697 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
698
699 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
700 Likewise for param "insn".
701 (epiphany_mode_after): Likewise.
702 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
703 params "insn", "dep_insn".
704 (epiphany_mode_needed): Likewise for param "insn".
705 (epiphany_mode_after): Likewise.
706
707 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
708 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
709 (ix86_avx_u128_mode_needed): Likewise.
710 (ix86_i387_mode_needed): Likewise.
711 (ix86_mode_needed): Likewise.
712 (ix86_avx_u128_mode_after): Likewise.
713 (ix86_mode_after): Likewise.
714 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
715 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
716 (ix86_adjust_priority): Likewise for param "insn".
717 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
718 (do_dispatch): Likewise.
719 (has_dispatch): Likewise.
720 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
721
722 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
723 reflect renaming of default hook implementation from
724 hook_constcharptr_const_rtx_null to
725 hook_constcharptr_const_rtx_insn_null.
726 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
727 rtx to rtx_insn *.
728 (ia64_variable_issue): Likewise for param "insn".
729 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
730 (ia64_dfa_new_cycle): Likewise.
731 (ia64_get_insn_spec_ds): Likewise.
732 (ia64_get_insn_checked_ds): Likewise.
733 (ia64_speculate_insn): Likewise.
734 (ia64_gen_spec_check): Likewise for params "insn", "label".
735 (ia64_asm_unwind_emit): Likewise for param "insn".
736
737 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
738
739 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
740 "insn", "def_insn".
741 (m68k_sched_variable_issue): Likewise for param "insn".
742
743 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
744 "def_insn".
745
746 * config/microblaze/microblaze.c (microblaze_adjust_cost):
747 Likewise for params "insn", "dep".
748
749 * config/mips/mips.c (mips_adjust_cost): Likewise.
750 (mips_variable_issue): Likewise for param "insn".
751 (mips_final_postscan_insn): Likewise.
752
753 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
754 for params "insn", "dep".
755
756 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
757 "dep_insn".
758 (pa_adjust_priority): Likewise for param "insn".
759
760 * config/picochip/picochip.c (picochip_sched_adjust_cost):
761 Likewise for params "insn", "dep_insn".
762
763 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
764 param "insn".
765 (rs6000_variable_issue): Likewise.
766 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
767 (rs6000_debug_adjust_cost): Likewise.
768 (rs6000_adjust_priority): Likewise for param "insn".
769 (rs6000_use_sched_lookahead_guard): Likewise.
770 (get_next_active_insn): Likewise for return type and both params.
771 (redefine_groups): Likewise for params "prev_head_insn", "tail"
772 and locals "insn", "next_insn".
773 (pad_groups): Likewise.
774
775 * config/s390/s390.c (s390_adjust_priority): Likewise for param
776 "insn".
777 (s390_cannot_copy_insn_p): Likewise.
778 (s390_sched_variable_issue): Likewise for third param, eliminating
779 checked cast.
780 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
781 default hook implementation from hook_constcharptr_const_rtx_null
782 to hook_constcharptr_const_rtx_insn_null.
783
784 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
785 from rtx to rtx_insn *.
786 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
787 (sh_variable_issue): Likewise for param "insn".
788 (sh_dfa_new_cycle): Likewise.
789 (sh_mode_needed): Likewise.
790 (sh_mode_after): Likewise.
791
792 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
793 params "insn", "dep_insn".
794 (hypersparc_adjust_cost): Likewise.
795 (sparc_adjust_cost): Likewise.
796
797 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
798 param, eliminated checked cast.
799 (spu_sched_adjust_cost): Likewise for first and third params.
800
801 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
802 params "insn" and "dep_insn" from rtx to rtx_insn *.
803
804 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
805
806 2014-08-27 David Malcolm <dmalcolm@redhat.com>
807
808 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
809 (set_is_load_p): ...this, updating to work on a SET pattern rather
810 than an insn.
811 (is_store_insn): Rename to...
812 (set_is_store_p): ...this, updating to work on a SET pattern
813 rather than an insn.
814 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
815 top of function to where it is needed. Rewrite the bogus
816 condition that checks for "insn" and "dep" being PARALLEL to
817 instead use single_set, introducing locals "insn_set" and
818 "dep_set". Given that we only ever returned "cost" for a non-pair
819 of SETs, bail out early if we don't have a pair of SET.
820 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
821 use the new locals "insn_set" and "dep_set", and update calls to
822 is_load_insn and is_store_insn to be calls to set_is_load_p and
823 set_is_store_p.
824
825 2014-08-27 Guozhi Wei <carrot@google.com>
826
827 PR target/62262
828 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
829 amount before using it.
830
831 2014-08-27 Richard Biener <rguenther@suse.de>
832
833 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
834 get_maxval_strlen inside a more useful API.
835 (gimple_fold_builtin_with_strlen): Remove and fold into ...
836 (gimple_fold_builtin): ... caller.
837 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
838 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
839 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
840 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
841 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
842 gimple_fold_builtin_sprintf): Adjust to compute maxval
843 themselves.
844
845 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
846
847 PR other/62248
848 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
849
850 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
851 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
852 Anna Tikhonova <anna.tikhonova@intel.com>
853 Ilya Tocar <ilya.tocar@intel.com>
854 Andrey Turetskiy <andrey.turetskiy@intel.com>
855 Ilya Verbin <ilya.verbin@intel.com>
856 Kirill Yukhin <kirill.yukhin@intel.com>
857 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
858
859 * config/i386/sse.md
860 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
861 Use `concat_tg_mode' attribute to determine asm register size.
862
863 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
864 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
865 Anna Tikhonova <anna.tikhonova@intel.com>
866 Ilya Tocar <ilya.tocar@intel.com>
867 Andrey Turetskiy <andrey.turetskiy@intel.com>
868 Ilya Verbin <ilya.verbin@intel.com>
869 Kirill Yukhin <kirill.yukhin@intel.com>
870 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
871
872 * config/i386/sse.md
873 (define_mode_iterator VI48_AVX512VL): New.
874 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
875 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
876 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
877 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
878 with VI1): Change mode iterator.
879 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
880 with VI_ULOADSTORE_BW_AVX512VL): New.
881 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
882 with VI_ULOADSTORE_F_AVX512VL): Ditto.
883 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
884 with VI1): Change mode iterator.
885 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
886 with VI_ULOADSTORE_BW_AVX512VL): New.
887 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
888 with VI_ULOADSTORE_F_AVX512VL): Ditto.
889 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
890 with VI1): Change mode iterator.
891 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
892 with VI_ULOADSTORE_BW_AVX512VL): New.
893 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
894 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
895 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
896 (define_insn "<avx512>_storedqu<mode>_mask" with
897 VI48_AVX512VL): New.
898 (define_insn "<avx512>_storedqu<mode>_mask" with
899 VI12_AVX512VL): Ditto.
900
901 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
902 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
903 Anna Tikhonova <anna.tikhonova@intel.com>
904 Ilya Tocar <ilya.tocar@intel.com>
905 Andrey Turetskiy <andrey.turetskiy@intel.com>
906 Ilya Verbin <ilya.verbin@intel.com>
907 Kirill Yukhin <kirill.yukhin@intel.com>
908 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
909
910 * config/i386/sse.md
911 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
912 (define_mode_iterator VI48_AVX512BW): New.
913 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
914 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
915 with VI48_AVX2_48_AVX512F): New.
916 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
917 with VI2_AVX512VL): Ditto.
918
919 2014-08-27 Richard Biener <rguenther@suse.de>
920
921 PR middle-end/62239
922 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
923 (fold_builtin_3): Do not fold strcat_chk here.
924 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
925 from builtins.c.
926 (gimple_fold_builtin): Fold strcat_chk here.
927
928 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
929
930 * dwarf2out.h (dwarf2out_decl): Remove prototype.
931 * dwarf2out.c (dwarf2out_decl): Make static.
932
933 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
934
935 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
936
937 2014-08-26 David Malcolm <dmalcolm@redhat.com>
938
939 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
940 from rtx to rtx_insn *.
941 (cselib_lookup_from_insn): Likewise for final param.
942 (cselib_subst_to_values_from_insn): Likewise.
943 (cselib_add_permanent_equiv): Likewise.
944
945 * cselib.c (cselib_current_insn): Likewise for this variable.
946 (cselib_subst_to_values_from_insn): Likewise for param "insn".
947 (cselib_lookup_from_insn): Likewise.
948 (cselib_add_permanent_equiv): Likewise for param "insn" and local
949 "save_cselib_current_insn".
950 (cselib_process_insn): Replace use of NULL_RTX with NULL.
951
952 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
953 from rtx to rtx_insn *.
954
955 2014-08-26 David Malcolm <dmalcolm@redhat.com>
956
957 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
958 rtx_insn *.
959
960 2014-08-26 David Malcolm <dmalcolm@redhat.com>
961
962 * df.h (df_dump_insn_problem_function): Strengthen first param of
963 this callback from const_rtx to const rtx_insn *.
964 (struct df_insn_info): Strengthen field "insn" from rtx to
965 rtx_insn *.
966 (DF_REF_INSN): Eliminate this function, reinstating the older
967 macro definition.
968 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
969 (df_reg_defined): Likewise.
970 (df_find_use): Likewise.
971 (df_reg_used): Likewise.
972 (df_dump_insn_top): Strengthen param 1 from const_rtx to
973 const rtx_insn *.
974 (df_dump_insn_bottom): Likewise.
975 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
976 (df_insn_debug_regno): Likewise.
977 (debug_df_insn): Likewise.
978 (df_rd_simulate_one_insn): Likewise for param 2.
979 (df_word_lr_simulate_defs): Likewise for param 1.
980 (df_word_lr_simulate_uses): Likewise.
981 (df_md_simulate_one_insn): Likewise for param 2.
982 (df_simulate_find_noclobber_defs): Likewise for param 1.
983 (df_simulate_find_defs): Likewise.
984 (df_simulate_defs): Likewise.
985 (df_simulate_uses): Likewise.
986 (df_simulate_one_insn_backwards): Likewise for param 2.
987 (df_simulate_one_insn_forwards): Likewise.
988 (df_uses_create): Likewise for param 2.
989 (df_insn_create_insn_record): Likewise for param 1.
990 (df_insn_delete): Likewise.
991 (df_insn_rescan): Likewise.
992 (df_insn_rescan_debug_internal): Likewise.
993 (df_insn_change_bb): Likewise.
994 (df_notes_rescan): Likewise.
995 * rtl.h (remove_death): Likewise for param 2.
996 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
997 const rtx_insn *.
998 * sched-int.h (reemit_notes): Strengthen param from rtx to
999 rtx_insn *.
1000 * valtrack.h (propagate_for_debug): Likewise for param 1.
1001
1002 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
1003 local "tmp_rtx" from const_rtx to const rtx_insn *.
1004 * combine.c (remove_death): Strengthen param "insn" from rtx to
1005 rtx_insn *.
1006 (move_deaths): Likewise for local "where_dead".
1007 * cse.c (delete_trivially_dead_insns): Introduce local
1008 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
1009 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
1010 rtx_insn *.
1011 (df_reg_defined): Likewise.
1012 (df_find_use): Likewise.
1013 (df_reg_used): Likewise.
1014 (df_dump_insn_problem_data): Strengthen param "insn" from
1015 const_rtx to const rtx_insn *.
1016 (df_dump_insn_top): Likewise.
1017 (df_dump_insn_bottom): Likewise.
1018 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
1019 (df_insn_debug_regno): Likewise.
1020 (debug_df_insn): Likewise.
1021 (DF_REF_INSN): Delete.
1022 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
1023 from rtx to rtx_insn *.
1024 (df_chain_insn_top_dump): Strengthen param "insn" from
1025 const_rtx to const rtx_insn *.
1026 (df_chain_insn_bottom_dump): Likewise.
1027 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
1028 rtx_insn *.
1029 (df_word_lr_simulate_uses): Likewise.
1030 (df_print_note): Likewise.
1031 (df_remove_dead_and_unused_notes): Likewise.
1032 (df_set_unused_notes_for_mw): Likewise.
1033 (df_set_dead_notes_for_mw): Likewise.
1034 (df_create_unused_note): Likewise.
1035 (df_simulate_find_defs): Likewise.
1036 (df_simulate_find_uses): Likewise.
1037 (df_simulate_find_noclobber_defs): Likewise.
1038 (df_simulate_defs): Likewise.
1039 (df_simulate_uses): Likewise.
1040 (df_simulate_one_insn_backwards): Likewise.
1041 (df_simulate_one_insn_forwards): Likewise.
1042 (df_md_simulate_one_insn): Likewise.
1043 * df-scan.c (df_uses_create): Likewise.
1044 (df_insn_create_insn_record): Likewise.
1045 (df_insn_delete): Likewise.
1046 (df_insn_rescan): Likewise.
1047 (df_insn_rescan_debug_internal): Likewise.
1048 (df_insn_change_bb): Likewise.
1049 (df_notes_rescan): Likewise.
1050 (df_refs_add_to_chains): Likewise.
1051 (df_insn_refs_verify): Likewise.
1052 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
1053 when invoking df_insn_delete.
1054 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
1055 (set_unique_reg_note): Add checked cast.
1056 * final.c (cleanup_subreg_operands): Likewise.
1057 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
1058 "insn" from rtx to rtx_insn *.
1059 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
1060 "last" from rtx to rtx_insn *.
1061 * ira-emit.c (change_regs_in_insn): New function.
1062 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
1063 Invoke change_regs_in_insn rather than change_regs.
1064 * ira.c (update_equiv_regs): Strengthen locals "insn",
1065 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
1066 for_each_rtx_in_insn rather than for_each_rtx.
1067 * recog.c (confirm_change_group): Add checked casts.
1068 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
1069 Add checked cast.
1070 (peep2_fill_buffer): Add checked cast.
1071 * rtlanal.c (remove_note): Likewise.
1072 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
1073 locals "next" "end" from rtx to rtx_insn *.
1074
1075 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1076
1077 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
1078 to rtx_insn *.
1079 (struct reg_use_data): Likewise for field "insn".
1080 (insn_cost): Likewise for param.
1081 (real_insn_for_shadow): Likewise for return type and param.
1082 (increase_insn_priority): Likewise for param 1.
1083 (debug_dependencies): Likewise for both params.
1084
1085 * haifa-sched.c (insn_delay): Likewise for param "insn".
1086 (real_insn_for_shadow): Likewise for return type and param "insn".
1087 (update_insn_after_change): Likewise for param "insn".
1088 (recompute_todo_spec): Likewise for param "next" and locals "pro",
1089 "other".
1090 (insn_cost): Likewise for param "insn".
1091 (increase_insn_priority): Likewise.
1092 (calculate_reg_deaths): Likewise.
1093 (setup_insn_reg_pressure_info): Likewise.
1094 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1095 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1096 (model_recompute): Likewise.
1097 (must_restore_pattern_p): Likewise for param "next".
1098 (model_excess_cost): Likewise for param "insn".
1099 (queue_remove): Likewise.
1100 (adjust_priority): Likewise for param "prev".
1101 (update_register_pressure): Likewise for param "insn".
1102 (setup_insn_max_reg_pressure): Likewise for local "insn".
1103 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1104 (model_add_to_schedule): Likewise.
1105 (model_reset_queue_indices): Likewise for local "insn".
1106 (unschedule_insns_until): Strengthen local "recompute_vec" from
1107 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1108 "con" from rtx to rtx_insn *.
1109 (restore_last_backtrack_point): Likewise for both locals "x". Add
1110 checked casts.
1111 (estimate_insn_tick): Likewise for param "insn".
1112 (commit_schedule): Likewise for params "prev_head", "tail" and
1113 local "x".
1114 (verify_shadows): Likewise for locals "i1", "i2".
1115 (dump_insn_stream): Likewise for params "head", "tail" and locals
1116 "next_tail", "insn".
1117 (schedule_block): Likewise for locals "insn", "x". Add a checked
1118 cast.
1119 (fix_inter_tick): Likewise for params "head", "tail".
1120 (create_check_block_twin): Likewise for local "jump".
1121 (haifa_change_pattern): Likewise for param "insn".
1122 (haifa_speculate_insn): Likewise.
1123 (dump_new_block_header): Likewise for params "head", "tail".
1124 (fix_jump_move): Likewise for param "jump".
1125 (move_block_after_check): Likewise.
1126 (sched_init_insn_luid): Likewise for param "insn".
1127 (sched_init_luids): Likewise for local "insn".
1128 (insn_luid): Likewise for param "insn".
1129 (init_h_i_d): Likewise.
1130 (haifa_init_h_i_d): Likewise for local "insn".
1131 (haifa_init_insn): Likewise for param "insn".
1132 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1133 "other".
1134 (create_insn_reg_use): Likewise for param "insn".
1135 (setup_insn_reg_uses): Likewise. Add a checked cast.
1136 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1137 "tail" from rtx to rtx_insn *.
1138 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1139 "insn", "next_tail".
1140
1141 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1142
1143 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1144 from rtx to rtx_insn *.
1145 (model_add_to_schedule): Likewise for locals "start", "end",
1146 "iter".
1147
1148 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1149
1150 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1151 rtx_insn *.
1152 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1153 "to" and locals "insn", "next", "copy". Remove now-redundant
1154 checked cast.
1155
1156 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1157
1158 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1159 rtx_insn * and param 4 from rtx * to rtx_insn **.
1160 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1161 param 2 from rtx * to rtx_insn **.
1162
1163 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1164 rtx_insn * and final param from rtx * to rtx_insn **.
1165
1166 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1167 from rtx to rtx_insn *.
1168 (try_head_merge_bb): Likewise for both locals named "move_upto".
1169 * df-problems.c (can_move_insns_across): Likewise for params
1170 "from", "to", "across_from", "across_to" and locals "insn",
1171 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1172 rtx_insn **.
1173 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1174 from rtx to rtx_insn *.
1175 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1176 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1177 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1178 rtx_insn *.
1179 (noce_try_abs): Likewise.
1180 (noce_get_condition): Likewise for param "jump". Strengthen param
1181 "earliest" from rtx * to rtx_insn **.
1182 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1183 rtx_insn *.
1184 (find_cond_trap): Likewise.
1185 (dead_or_predicable): Likewise for local "earliest".
1186 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1187 checked cast.
1188 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1189 and local "prev". Strengthen param "earliest" from rtx * to
1190 rtx_insn **.
1191 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1192 Strengthen param "earliest" from rtx * to rtx_insn **.
1193
1194 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1195
1196 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1197 "to" and local "insn" from rtx to rtx_insn *.
1198
1199 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1200
1201 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1202 from rtx to rtx_insn *.
1203 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1204 (code_motion_path_driver): Likewise for local "last_insn".
1205 (simplify_changed_insns): Likewise for local "insn".
1206
1207 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1208
1209 * rtl.h (push_to_sequence): Strengthen param from rtx to
1210 rtx_insn *.
1211 (push_to_sequence2): Likewise for both params.
1212 (delete_insns_since): Likewise for param.
1213 (reorder_insns_nobb): Likewise for all three params.
1214 (set_new_first_and_last_insn): Likewise for both params.
1215
1216 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1217 rtx_insn *. Remove now-redundant cast.
1218 (set_last_insn): Likewise.
1219
1220 * builtins.c (expand_builtin_return): Strengthen local
1221 "call_fusage" from rtx to rtx_insn *.
1222 * cfgrtl.c (create_basic_block_structure): Likewise for local
1223 "after".
1224 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1225 "first", "last" and local "insn".
1226 (delete_insns_since): Likewise for param "from".
1227 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1228 and local "x".
1229 (push_to_sequence): Likewise for param "first" and local "last".
1230 (push_to_sequence2): Likewise for params "first" and "last".
1231 * lra.c (emit_add3_insn): Likewise for local "last".
1232 (lra_emit_add): Likewise.
1233 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1234 "last_insn".
1235 (process_address_1): Likewise for locals "insn", last".
1236 * modulo-sched.c (ps_first_note): Likewise for return type.
1237 * optabs.c (expand_binop_directly): Likewise for param "last".
1238
1239 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1240
1241 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1242 to rtx_insn*.
1243 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1244
1245 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1246
1247 * function.h (struct sequence_stack): Strengthen fields "first"
1248 and "last" from rtx to rtx_insn *.
1249 (struct emit_status): Likewise for fields "x_first_insn" and
1250 "x_last_insn".
1251
1252 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1253 (set_first_insn): Add checked cast.
1254 (get_last_insn): Remove now-redundant checked cast.
1255 (set_last_insn): Add checked cast.
1256
1257 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1258 "saved_first" and "saved_last" from rtx to rtx_insn *.
1259
1260 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1261
1262 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1263 (unlink_insn_chain): Strengthen both params from rtx to
1264 rtx_insn *.
1265
1266 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1267 variable.
1268 (unlink_insn_chain): Likewise for params "first" and "last".
1269 Remove now-redundant checked cast.
1270 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1271 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1272 rtx_insn *.
1273 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1274 params.
1275 (add_insn): Likewise for param "insn" and local "prev".
1276 (add_insn_after_nobb): Likewise for both params and local "next".
1277 (add_insn_before_nobb): Likewise for both params and local "prev".
1278 (add_insn_after): Rename param "after" to "uncast_after",
1279 introducing local "after" with another checked cast.
1280 (add_insn_before): Rename params "insn" and "before", giving them
1281 "uncast_" prefixes, adding the old names back using checked casts.
1282 (emit_note_after): Likewise for param "after".
1283 (emit_note_before): Likewise for param "before".
1284 (emit_label): Add a checked cast.
1285
1286 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1287
1288 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1289 "insn" from rtx to rtx_insn *.
1290
1291 * cselib.c (cselib_record_sets_hook): Likewise.
1292
1293 * var-tracking.c (add_with_sets): Likewise, renaming back from
1294 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1295 to rtx_insn *.
1296
1297 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1298
1299 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1300 and "header_" from rtx to rtx_insn *.
1301 (struct basic_block_d): Likewise for field "head_" within "x"
1302 field of union basic_block_il_dependent.
1303 (BB_HEAD): Drop function...
1304 (SET_BB_HEAD): ...and this function in favor of...
1305 (BB_HEAD): ...reinstate macro.
1306 (BB_END): Drop function...
1307 (SET_BB_END): ...and this function in favor of...
1308 (BB_END): ...reinstate macro.
1309 (BB_HEADER): Drop function...
1310 (SET_BB_HEADER): ...and this function in favor of...
1311 (BB_HEADER): ...reinstate macro.
1312
1313 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1314 (fix_crossing_unconditional_branches): Likewise.
1315 * caller-save.c (save_call_clobbered_regs): Likewise.
1316 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1317 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1318 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1319 (merge_blocks_move_successor_nojumps): Likewise.
1320 (outgoing_edges_match): Update use of for_each_rtx to
1321 for_each_rtx_in_insn.
1322 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1323 (expand_gimple_cond): Likewise.
1324 (expand_gimple_tailcall): Likewise.
1325 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1326 SET_BB_END.
1327 (construct_exit_block): Drop use of SET_BB_END.
1328 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1329 rtx_insn *.
1330 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1331 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1332 SET_BB_HEAD and SET_BB_END.
1333 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1334 SET_BB_END.
1335 (rtl_delete_block): Drop use of SET_BB_HEAD.
1336 (rtl_split_block): Drop use of SET_BB_END.
1337 (emit_nop_for_unique_locus_between): Likewise.
1338 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1339 (block_label): Drop use of SET_BB_HEAD.
1340 (fixup_abnormal_edges): Drop use of SET_BB_END.
1341 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1342 (relink_block_chain): Likewise.
1343 (fixup_reorder_chain): Drop use of SET_BB_END.
1344 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1345 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1346 rtx_insn **. Drop use of SET_BB_HEADER.
1347 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1348 SET_BB_HEAD.
1349 (BB_HEAD): Delete this function.
1350 (SET_BB_HEAD): Likewise.
1351 (BB_END): Likewise.
1352 (SET_BB_END): Likewise.
1353 (BB_HEADER): Likewise.
1354 (SET_BB_HEADER): Likewise.
1355 * emit-rtl.c (add_insn_after): Rename param "insn" to
1356 "uncast_insn", adding a new local "insn" and a checked cast to
1357 rtx_insn *. Drop use of SET_BB_END.
1358 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1359 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1360 (reorder_insns): Drop use of SET_BB_END.
1361 (emit_insn_after_1): Strengthen param "first" and locals "last",
1362 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1363 (emit_pattern_after_noloc): Add checked cast.
1364 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1365 (restore_other_notes): Likewise.
1366 (move_insn): Likewise.
1367 (sched_extend_bb): Likewise.
1368 (fix_jump_move): Likewise.
1369 * ifcvt.c (noce_process_if_block): Likewise.
1370 (dead_or_predicable): Likewise.
1371 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1372 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1373 * sel-sched-ir.c (sel_move_insn): Likewise.
1374 * sel-sched.c (move_nop_to_previous_block): Likewise.
1375
1376 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1377 SET_BB_END.
1378 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1379
1380 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1381
1382 * basic-block.h (create_basic_block_structure): Strengthen params
1383 1 "head" and 2 "end" from rtx to rtx_insn *.
1384 * cfgrtl.c (create_basic_block_structure): Likewise.
1385 (rtl_create_basic_block): Update casts from void * to rtx to
1386 rtx_insn *, so that we can pass them as rtx_insn * to
1387 create_basic_block_structure.
1388 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1389
1390 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1391
1392 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1393 rtx_insn **.
1394 (check_for_inc_dec): Strengthen param "insn" from rtx to
1395 rtx_insn *.
1396
1397 * cselib.h (cselib_process_insn): Likewise.
1398
1399 * cselib.c (cselib_record_sets): Likewise.
1400 (cselib_process_insn): Likewise.
1401
1402 * dse.c (struct insn_info): Likewise for field "insn".
1403 (check_for_inc_dec_1): Likewise for local "insn".
1404 (check_for_inc_dec): Likewise for param "insn".
1405 (scan_insn): Likewise.
1406 (dse_step1): Likewise for local "insn".
1407
1408 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1409 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1410
1411 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1412
1413 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1414 from rtx to rtx_insn *.
1415 (DEP_PRO): Delete this function and...
1416 (SET_DEP_PRO): ...this function in favor of...
1417 (DEP_PRO): ...reinstate this macro.
1418 (DEP_CON): Delete this function and...
1419 (SET_DEP_CON): ...this function in favor of...
1420 (DEP_CON): ...reinstate this old macro.
1421 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1422 (init_dep): Likewise.
1423 (set_priorities): Likewise for both params.
1424 (sd_copy_back_deps): Likewise for params 1 and 2.
1425
1426 * haifa-sched.c (priority): Likewise for param "insn" and local
1427 "next".
1428 (set_priorities): Likewise for params "head" and "tail" and local
1429 "insn".
1430 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1431 local "consumer".
1432 (add_to_speculative_block): Add a checked cast.
1433 (create_check_block_twin): Drop use of SET_DEP_CON.
1434 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1435 rtx to rtx_insn *.
1436
1437 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1438 Drop use of SET_DEP_PRO
1439 (init_dep): Strengthen params "pro" and "con" from rtx to
1440 rtx_insn *.
1441 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1442 use of SET_DEP_CON.
1443 (DEP_PRO): Delete.
1444 (DEP_CON): Delete.
1445 (SET_DEP_PRO): Delete.
1446 (SET_DEP_CON): Delete.
1447
1448 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1449
1450 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1451 from rtx to rtx_insn *.
1452 (VINSN_INSN_RTX): Eliminate rvalue function and...
1453 (SET_VINSN_INSN): ...lvalue function in favor of...
1454 (VINSN_INSN_RTX): reinstate this old macro.
1455
1456 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1457 in favor of VINSN_INSN_RTX.
1458 (VINSN_INSN_RTX): Delete this function.
1459 (SET_VINSN_INSN_RTX): Likewise.
1460
1461 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1462
1463 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1464 (BND_TO): Delete this function and...
1465 (SET_BND_TO): ...this functions in favor of...
1466 (BND_TO): ...reinstating this macro.
1467 (struct _fence): Strengthen field "executing_insns" from
1468 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1469 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1470 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1471 and param "insn" from rtx to insn_t.
1472 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1473 rtx_insn *.
1474
1475 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1476 vec<rtx_insn *> .
1477 (rtx_vec_t): Likewise.
1478 (struct sched_deps_info_def): Strengthen param of "start_insn"
1479 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1480 "note_mem_dep" callback and first param of "note_dep" callback.
1481
1482 * haifa-sched.c (add_to_speculative_block): Strengthen param
1483 "insn" from rtx to rtx_insn *.
1484 (clear_priorities): Likewise.
1485 (calc_priorities): Likewise for local "insn".
1486
1487 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1488 Remove redundant checked cast.
1489 (haifa_note_mem_dep): Likewise for param "pending_insn".
1490 (haifa_note_dep): Likewise for param "elem".
1491 (note_mem_dep): Likewise for param "e".
1492 (sched_analyze_1): Add checked casts.
1493 (sched_analyze_2): Likewise.
1494
1495 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1496 from rtx to rtx_insn *.
1497 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1498 from vec<rtx> * to vec<rtx_insn *> *.
1499
1500 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1501 scaffolding.
1502 (flist_add): Strengthen param "executing_insns" from
1503 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1504 (advance_deps_context): Remove now-redundant checked cast.
1505 (init_fences): Replace uses of NULL_RTX with NULL.
1506 (merge_fences): Strengthen params "last_scheduled_insn" and
1507 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1508 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1509 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1510 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1511 an instruction, rather than doing double-duty as a pattern.
1512 (return_nop_to_pool): Update for change of insn_t.
1513 (deps_init_id): Remove now-redundant checked cast.
1514 (struct sched_scan_info_def): Strengthen param of "init_insn"
1515 callback from rtx to insn_t.
1516 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1517 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1518 NULL.
1519 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1520 "end" from rtx to rtx_insn *.
1521 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1522 (rtx insn_rtx, bool force_unique_p)
1523 (BND_TO): Delete function.
1524 (SET_BND_TO): Delete function.
1525
1526 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1527 rtx to rtx_insn *.
1528 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1529 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1530 rtx to rtx_insn *.
1531 (undo_transformations): Likewise for param "insn".
1532 (update_liveness_on_insn): Likewise.
1533 (compute_live_below_insn): Likewise for param "insn" and local
1534 "succ".
1535 (update_data_sets): Likewise for param "insn".
1536 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1537 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1538 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1539 rtx_insn *.
1540 (move_cond_jump): Likewise for param "insn".
1541 (move_cond_jump): Drop use of SET_BND_TO.
1542 (compute_av_set_on_boundaries): Likewise.
1543 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1544 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1545 from rtx to rtx_insn *.
1546 (maybe_emit_renaming_copy): Likewise for param "insn".
1547 (maybe_emit_speculative_check): Likewise.
1548 (handle_emitting_transformations): Likewise.
1549 (remove_insn_from_stream): Likewise.
1550 (code_motion_process_successors): Strengthen local "succ" from rtx
1551 to insn_t.
1552
1553 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1554
1555 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1556 ilist_t, not _xlist_t;
1557 (ILIST_INSN): Define in terms of new union field "insn".
1558 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1559 _XLIST_NEXT.
1560 (struct _list_node): Add new field "insn" to the union, of type
1561 insn_t.
1562 (ilist_add): Replace macro with an inline function, requiring an
1563 insn_t.
1564 (ilist_remove): Define this macro directly in terms of
1565 _list_remove, rather than indirectly via _xlist_remove.
1566 (ilist_clear): Likewise, in terms of _list_clear rather than
1567 _xlist_clear.
1568 (ilist_is_in_p): Replace macro with an inline function, requiring
1569 an insn_t.
1570 (_list_iter_cond_insn): New function.
1571 (ilist_iter_remove): Define this macro directly in terms of
1572 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1573 (ilist_iterator): Define directly in terms of _list_iterator
1574 rather than indirectly through _xlist_iterator.
1575 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1576 than in terms of _FOR_EACH_X.
1577 (FOR_EACH_INSN_1): Likewise.
1578
1579 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1580
1581 PR target/60606
1582 PR target/61330
1583 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1584 DECL_HARD_REGISTER and return for invalid register specifications.
1585 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1586 DECL_HARD_REGISTER, call expand_one_error_var.
1587 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1588 CC_REGNUM with non-MODE_CC modes.
1589 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1590
1591 2014-08-26 Marek Polacek <polacek@redhat.com>
1592
1593 PR c/61271
1594 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1595
1596 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1597
1598 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1599 qi cost; add di cost.
1600 (cortexa57_addrcost_table): Likewise.
1601
1602 2014-08-26 Marek Polacek <polacek@redhat.com>
1603
1604 PR c/61271
1605 * expr.c (is_aligning_offset): Remove logical not.
1606
1607 2014-08-26 Marek Polacek <polacek@redhat.com>
1608
1609 PR c/61271
1610 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1611 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1612
1613 2014-08-26 Richard Biener <rguenther@suse.de>
1614
1615 PR tree-optimization/62175
1616 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1617 expand possibly trapping operations.
1618
1619 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1620
1621 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1622 "insn" from rtx to rtx_insn *.
1623 (permute_load): Likewise for param "insn".
1624 (permute_store): Likewise.
1625 (handle_special_swappables): Likewise for local "insn".
1626 (replace_swap_with_copy): Likewise for locals "insn" and
1627 "new_insn".
1628 (rs6000_analyze_swaps): Likewise for local "insn".
1629
1630 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1631
1632 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1633 to rtx_insn *.
1634
1635 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1636
1637 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1638 "note_list" from rtx to rtx_insn *.
1639 (BB_NOTE_LIST): Replace this function and...
1640 (SET_BB_NOTE_LIST): ...this function with...
1641 (BB_NOTE_LIST): ...the former macro implementation.
1642
1643 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1644 local "from_start" from rtx to rtx_insn *. Strengthen param
1645 "to_endp" from rtx * to rtx_insn **.
1646
1647 * haifa-sched.c (concat_note_lists): Likewise.
1648 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1649 BB_NOTE_LIST.
1650 (sel_restore_notes): Likewise.
1651 (move_bb_info): Likewise.
1652 (BB_NOTE_LIST): Delete this function.
1653 (SET_BB_NOTE_LIST): Delete this function.
1654 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1655 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1656
1657 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1658
1659 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1660 from rtx * to rtx_insn **.
1661 (reorder2): Likewise.
1662 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1663 from rtx to rtx_insn *.
1664
1665 * doc/tm.texi: Update mechanically for above change to target.def.
1666
1667 * sched-int.h (note_list): Strengthen this variable from rtx to
1668 rtx_insn *.
1669 (remove_notes): Likewise for both params.
1670 (restore_other_notes): Likewise for return type and first param.
1671 (struct ready_list): Strengthen field "vec" from rtx * to
1672 rtx_insn **.
1673 (struct dep_replacement): Strenghten field "insn" from rtx to
1674 rtx_insn *.
1675 (struct deps_desc): Likewise for fields "last_debug_insn",
1676 "last_args_size".
1677 (struct haifa_sched_info): Likewise for callback field
1678 "can_schedule_ready_p"'s param, for first param of "new_ready"
1679 callback field, for both params of "rank" callback field, for
1680 first field of "print_insn" callback field (with a const), for
1681 both params of "contributes_to_priority" callback, for param
1682 of "insn_finishes_block_p" callback, for fields "prev_head",
1683 "next_tail", "head", "tail", for first param of "add_remove_insn"
1684 callback, for first param of "begin_schedule_ready" callback, for
1685 both params of "begin_move_insn" callback, and for second param
1686 of "advance_target_bb" callback.
1687 (add_dependence): Likewise for params 1 and 2.
1688 (sched_analyze): Likewise for params 2 and 3.
1689 (deps_analyze_insn): Likewise for param 2.
1690 (ready_element): Likewise for return type.
1691 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1692 (try_ready): Strenghten param from rtx to rtx_insn *.
1693 (sched_emit_insn): Likewise for return type.
1694 (record_delay_slot_pair): Likewise for params 1 and 2.
1695 (add_delay_dependencies): Likewise for param.
1696 (contributes_to_priority): Likewise for both params.
1697 (find_modifiable_mems): Likewise.
1698
1699 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1700 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1701 "first_older_only_insn" from rtx to rtx_insn *.
1702 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1703 rtx_insn **.
1704
1705 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1706 "last_scheduled_iter0" from rtx to rtx_insn *.
1707 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1708 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1709 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1710 "insn" from rtx to rtx_insn *.
1711 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1712 rtx_insn **.
1713 (c6x_sched_reorder2): Strengthen param "ready" and locals
1714 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1715 "insn" from rtx to rtx_insn *.
1716 (c6x_variable_issue): Add a checked cast when assigning from insn
1717 to ss.last_scheduled_iter0.
1718 (split_delayed_branch): Strengthen param "insn" and local "i1"
1719 from rtx to rtx_insn *.
1720 (split_delayed_nonbranch): Likewise.
1721 (undo_split_delayed_nonbranch): Likewise for local "insn".
1722 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1723 "entry_after", "end_packet", "head_insn", "tail_insn",
1724 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1725 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1726 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1727 but add a checked cast on loop->start_label. Consolidate calls to
1728 avoid assigning result of gen_spkernel to "insn", now an
1729 rtx_insn *.
1730
1731 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1732 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1733 rtx to rtx_insn *.
1734 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1735 rtx_insn **. Strengthen locals "top", "next" from rtx to
1736 rtx_insn *.
1737 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1738 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1739 (add_parameter_dependencies): Strengthen params "call", "head" and
1740 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1741 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1742 (add_dependee_for_func_arg): Likewise for param "arg" and local
1743 "insn".
1744 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1745 "tail" and locals "insn", "first_arg".
1746
1747 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1748 for params "head", "tail" and locals "insn", "next", "next_tail".
1749 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1750 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1751 "insn", "lowest", "highest" from rtx to rtx_insn *.
1752 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1753 rtx_insn **.
1754 (ia64_sched_reorder2): Likewise.
1755
1756 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1757 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1758 from rtx * to rtx_insn **.
1759 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1760 rtx_insn **.
1761 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1762 rtx_insn *.
1763 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1764 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1765 to rtx_insn *.
1766
1767 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1768 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1769 to rtx_insn *.
1770 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1771 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1772 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1773 rtx_insn **.
1774 (vr4130_reorder): Likewise.
1775 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1776 rtx to rtx_insn *.
1777 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1778 rtx_insn **.
1779 (mips_sched_reorder): Likewise.
1780 (mips_sched_reorder2): Likewise.
1781
1782 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1783
1784 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1785 Strengthen local "tmp" from rtx to rtx_insn *.
1786 (rs6000_sched_reorder2): Likewise.
1787
1788 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1789 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1790 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1791 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1792
1793 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1794 "tmp2" from rtx to rtx_insn *.
1795 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1796 Strengthen local "insn" from rtx to rtx_insn *.
1797 (ready_reorder): Strengthen param "ready" from rtx * to
1798 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1799 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1800 (sh_reorder2): Likewise.
1801
1802 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1803 local "insn" from rtx to rtx_insn *.
1804
1805 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1806 rtx_insn *.
1807 (scheduled_insns): Strengthen this variable from vec<rtx> to
1808 vec<rtx_insn *>.
1809 (set_modulo_params): Likewise for locals "i1", "i2".
1810 (record_delay_slot_pair): Likewise for params "i1", "i2".
1811 (add_delay_dependencies): Likewise for param "insn".
1812 (cond_clobbered_p): Likewise.
1813 (recompute_todo_spec): Likewise for local "prev".
1814 (last_scheduled_insn): Likewise for this variable.
1815 (nonscheduled_insns_begin): Likewise.
1816 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1817 rtx_insn **.
1818 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1819 rtx_insn *.
1820 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1821 Strengthen local "insn" from rtx to rtx_insn *.
1822 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1823 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1824 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1825 (ready_remove_first): Likewise for return type and local "t".
1826 (ready_element): Likewise for return type.
1827 (ready_remove): Likewise for return type and local "t".
1828 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1829 (check_clobbered_conditions): Strengthen local "x" from rtx to
1830 rtx_insn *, adding a checked cast.
1831 (schedule_insn): Likewise for param "insn".
1832 (remove_notes): Likewise for params "head", "tail" and locals
1833 "next_tail", "insn", "next".
1834 (struct haifa_saved_data): Likewise for fields
1835 "last_scheduled_insn", "nonscheduled_insns_begin".
1836 (save_backtrack_point): Update for change to field "vec" of
1837 struct ready_list.
1838 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1839 rtx_insn **.
1840 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1841 from rtx to rtx_insn *
1842 (resolve_dependencies): Strengthen param "insn" from rtx to
1843 rtx_insn *
1844 (restore_other_notes): Likewise for return type, for param "head"
1845 and local "note_head".
1846 (undo_all_replacements): Likewise for local "insn".
1847 (first_nonscheduled_insn): Likewise for return type and local "insn".
1848 (queue_to_ready): Likewise for local "insn", adding checked casts.
1849 (early_queue_to_ready): Likewise for local "insn".
1850 (debug_ready_list_1): Strengthen local "p" from rtx * to
1851 rtx_insn **.
1852 (move_insn): Strengthen param "insn" and local "note" from rtx to
1853 rtx_insn *
1854 (insn_finishes_cycle_p): Likewise for param "insn".
1855 (max_issue): Likewise for local "insn".
1856 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1857 to rtx_insn **.
1858 (commit_schedule): Strengthen param "prev_head" and local "insn"
1859 from rtx to rtx_insn *
1860 (prune_ready_list): Likewise for local "insn".
1861 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1862 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1863 (set_priorities): Likewise for local "prev_head".
1864 (try_ready): Likewise for param "next".
1865 (fix_tick_ready): Likewise.
1866 (change_queue_index): Likewise.
1867 (sched_extend_ready_list): Update for change to field "vec" of
1868 struct ready_list.
1869 (generate_recovery_code): Strengthen param "insn" from rtx to
1870 rtx_insn *.
1871 (begin_speculative_block): Likewise.
1872 (create_check_block_twin): Likewise for param "insn" and locals
1873 "label", "check", "twin". Introduce local "check_pat" to avoid
1874 "check" being used as a plain rtx before being used as an insn.
1875 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1876 extracting elements from ready_list.
1877 (sched_remove_insn): Strengthen param "insn" from rtx to
1878 rtx_insn *.
1879 (sched_emit_insn): Likewise for return type.
1880 (ready_remove_first_dispatch): Likewise for return type and local
1881 "insn".
1882
1883 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1884
1885 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1886 const rtx_insn *.
1887
1888 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1889 from rtx to rtx_insn *.
1890 (add_dependence_list): Likewise for param "insn". Add a checked
1891 cast.
1892 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1893 to rtx_insn *. Strengthen param "list_p" from rtx * to
1894 rtx_insn **.
1895 (chain_to_prev_insn): Strengthen param "insn" and locals
1896 "prec_nonnote", "i" from rtx to rtx_insn *.
1897 (flush_pending_lists): Likewise for param "insn".
1898 (cur_insn): Likewise for this variable.
1899 (haifa_start_insn): Add a checked cast.
1900 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1901 (sched_analyze_reg): Likewise for param "insn".
1902 (sched_analyze_1): Likewise.
1903 (sched_analyze_2): Likewise. Add checked casts.
1904 (sched_analyze_insn): Likewise. Also for local "prev".
1905 (deps_analyze_insn): Likewise for param "insn".
1906 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1907 (add_dependence_1): Likewise for params "insn", "elem".
1908 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1909 (parse_add_or_inc): Likewise for param "insn".
1910 (find_inc): Likewise for local "inc_cand".
1911 (find_modifiable_mems): Likewise for params "head", "tail" and
1912 locals "insn", "next_tail".
1913
1914 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1915 (begin_schedule_ready): Likewise for param "insn".
1916 (begin_move_insn): Likewise for params "insn" and "last".
1917 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1918 const rtx_insn *.
1919 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1920 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1921 (ebb_add_remove_insn): Likewise for param "insn".
1922 (advance_target_bb): Likewise.
1923
1924 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1925 "insn".
1926 (check_live): Likewise for param "insn".
1927 (init_ready_list): Likewise for local "insn".
1928 (can_schedule_ready_p): Likewise for param "insn".
1929 (begin_schedule_ready): Likewise.
1930 (new_ready): Likewise for param "next".
1931 (rgn_print_insn): Likewise for param "insn".
1932 (rgn_rank): Likewise for params "insn1", "insn2".
1933 (contributes_to_priority): Likewise for params "next", "insn".
1934 (rgn_insn_finishes_block_p): Likewise for param "insn".
1935 (add_branch_dependences): Likewise for params "head", "tail" and
1936 locals "insn", "last".
1937 (rgn_add_remove_insn): Likewise for param "insn".
1938 (advance_target_bb): Likewise.
1939
1940 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1941 const_rtx to const rtx_insn *.
1942
1943 * sel-sched-dump.h (sel_print_insn): Likewise.
1944
1945 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1946 (deps_init_id): Likewise.
1947
1948 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1949 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1950 rtx_insn **.
1951
1952 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1953
1954 * output.h (final_start_function): Strengthen param 1 from rtx to
1955 rtx_insn *.
1956
1957 * final.c (final_start_function): Likewise, renaming back from
1958 "uncast_first" to "first", and dropping the checked cast from rtx
1959 to rtx_insn *.
1960
1961 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1962
1963 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1964 * final.c (final): Likewise. Rename param back from
1965 "uncast_first" to "first" and eliminate the checked cast from rtx
1966 to rtx_insn *.
1967
1968 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1969
1970 * output.h (shorten_branches): Strengthen param from rtx to
1971 rtx_insn *.
1972
1973 * final.c (shorten_branches): Likewise, renaming param back from
1974 "uncast_first" to "first", and dropping the checked cast from rtx
1975 to rtx_insn *.
1976
1977 * genattr.c (gen_attr): Likewise when writing out the prototype of
1978 shorten_branches.
1979
1980 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1981
1982 * sched-int.h (struct haifa_sched_info): Strengthen fields
1983 "prev_head" and "next_tail" from rtx to rtx_insn *.
1984
1985 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1986
1987 * rtl.h (rtx_jump_table_data::get_labels): New method.
1988 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1989 with use of the new rtx_jump_table_data::get_labels method.
1990 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1991 to rtx_jump_table_data *. Simplify by using get_labels method.
1992 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1993 a dyn_cast, introducing local "table", using it to replace
1994 label-lookup logic with a get_labels method call.
1995 (patch_jump_insn): Simplify using get_labels method.
1996 * dwarf2cfi.c (create_trace_edges): Likewise.
1997 * rtlanal.c (label_is_jump_target_p): Likewise.
1998
1999 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2000
2001 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
2002 to rtx_insn *.
2003
2004 * emit-rtl.c (unshare_all_rtl_1): Likewise.
2005 (unshare_all_rtl_again): Likewise, also for local "p".
2006
2007 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2008
2009 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
2010 to rtx_insn *.
2011 * cfgrtl.c (delete_insn_and_edges): Likewise.
2012
2013 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2014
2015 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
2016 from rtx to rtx_insn *.
2017
2018 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
2019
2020 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2021
2022 * function.c (thread_prologue_and_epilogue_insns): Likewise for
2023 locals "returnjump", "epilogue_end", "insn", "next".
2024
2025 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
2026 "returnjump" from rtx * to rtx_insn **.
2027 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
2028
2029 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2030
2031 * basic-block.h (struct edge_def). Strengthen "r" within
2032 union edge_def_insns from rtx to rtx_insn *.
2033
2034 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
2035 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
2036 rtx_insn *.
2037 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
2038 from rtx to rtx_insn *.
2039 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
2040 rtx_insn *.
2041 * postreload-gcse.c (reg_killed_on_edge): Likewise.
2042 (reg_used_on_edge): Likewise.
2043 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
2044 (gt_pch_nx): New overload for rtx_insn *&.
2045 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
2046 from rtx to rtx_insn *.
2047
2048 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2049
2050 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
2051 from rtx to rtx_insn *.
2052 (BB_FOOTER): Replace function with access macro.
2053 (SET_BB_FOOTER): Delete.
2054
2055 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
2056 with BB_FOOTER.
2057 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2058 (emit_barrier_after_bb): Likewise.
2059 (record_effective_endpoints): Likewise.
2060 (relink_block_chain): Likewise.
2061 (fixup_fallthru_exit_predecessor): Likewise.
2062 (cfg_layout_duplicate_bb): Likewise.
2063 (cfg_layout_split_block): Likewise.
2064 (cfg_layout_delete_block): Likewise.
2065 (cfg_layout_merge_blocks): Likewise.
2066 (BB_FOOTER): Delete function.
2067 (SET_BB_FOOTER): Delete function.
2068 * combine.c (update_cfg_for_uncondjump): Replace uses of
2069 SET_BB_FOOTER with BB_FOOTER.
2070
2071 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2072
2073 * except.h (struct eh_landing_pad_d): Strengthen field
2074 "landing_pad" from rtx to rtx_code_label *.
2075
2076 * except.c (sjlj_emit_dispatch_table): Likewise for param
2077 "dispatch_label"
2078 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
2079
2080 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2081
2082 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
2083 first param from rtx to rtx_insn *.
2084 * config/xtensa/xtensa.c (struct machine_function): Likewise for
2085 field "set_frame_ptr_insn".
2086 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
2087 "csend" from rtx to rtx_code_label *.
2088 (xtensa_expand_atomic): Likewise for local "csloop".
2089 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
2090 rtx_insn *.
2091 (xtensa_call_tls_desc): Likewise for return type and locals
2092 "call_insn", "insns".
2093 (xtensa_legitimize_tls_address): Likewise for local "insns".
2094 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2095
2096 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2097
2098 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2099 first param from rtx to rtx_insn *.
2100 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2101 "insn".
2102
2103 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2104
2105 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2106 Strengthen param 1 from rtx to rtx_insn *.
2107 (tilepro_output_cbranch): Likewise.
2108 (tilepro_adjust_insn_length): Likewise.
2109 (tilepro_final_prescan_insn): Likewise for sole param.
2110
2111 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2112 Likewise for local "last".
2113 (cbranch_predicted_p): Likewise for param "insn".
2114 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2115 (tilepro_output_cbranch_with_opcode): Likewise.
2116 (tilepro_output_cbranch): Likewise.
2117 (frame_emit_load): Likewise for return type and locals "seq",
2118 "insn".
2119 (emit_sp_adjust): Likewise for return type and local "insn".
2120 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2121 "insn".
2122 (tilepro_adjust_insn_length): Likewise for param "insn".
2123 (next_insn_to_bundle): Likewise for return type and params
2124 "r", "end".
2125 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2126 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2127 local "new_insns".
2128 (match_addli_pcrel): Likewise for param "insn".
2129 (replace_addli_pcrel): Likewise.
2130 (match_auli_pcrel): Likewise.
2131 (replace_auli_pcrel): Likewise.
2132 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2133 "next_insn".
2134 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2135 "queue", "next_queue", "prev".
2136 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2137 (tilepro_final_prescan_insn): Likewise for param "insn".
2138
2139 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2140
2141 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2142 Strengthen param 1 from rtx to rtx_insn *.
2143 (tilegx_output_cbranch): Likewise.
2144 (tilegx_adjust_insn_length): Likewise.
2145 (tilegx_final_prescan_insn): Likewise for sole param.
2146
2147 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2148 or local "last".
2149 (cbranch_predicted_p): Likewise for param "insn".
2150 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2151 (tilegx_output_cbranch_with_opcode): Likewise.
2152 (tilegx_output_cbranch): Likewise.
2153 (frame_emit_load): Likewise for return type.
2154 (set_frame_related_p): Likewise for locals "seq", "insn".
2155 (emit_sp_adjust): Likewise for return type, and for local "insn".
2156 Introduce local "pat" for use in place of "insn" where the latter
2157 isn't an instruction.
2158 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2159 from rtx to rtx_insn *.
2160 (tilegx_adjust_insn_length): Likewise for param "insn".
2161 (next_insn_to_bundle): Likewise for return type and params "r" and
2162 "end".
2163 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2164 "end".
2165 (replace_insns): Likewise for params "old_insn", "new_insns".
2166 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2167 "new_insns".
2168 (replace_mov_pcrel_step2): Likewise.
2169 (replace_mov_pcrel_step3): Likewise.
2170 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2171 "next_insn".
2172 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2173 "queue", "next_queue", "prev".
2174 (tilegx_output_mi_thunk): Likewise for local "insn".
2175 (tilegx_final_prescan_insn): Likewise for param "insn".
2176
2177 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2178
2179 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2180 rtx to rtx_insn *.
2181 (frame_emit_load): Likewise.
2182 (frame_emit_add_imm): Likewise, also for local "insn".
2183 (spu_expand_prologue): Likewise for local "insn".
2184 (struct spu_bb_info): Likewise for field "prop_jump".
2185 (emit_nop_for_insn): Likewise for param "insn" and local
2186 "new_insn".
2187 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2188 "hbr_insn".
2189 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2190 locals "hint", "insn".
2191 (get_branch_target): Likewise for param "branch".
2192 (insn_clobbers_hbr): Likewise for param "insn".
2193 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2194 locals "insn", "before_4", "before_16".
2195 (insert_hbrp): Likewise for local "insn".
2196 (spu_machine_dependent_reorg): Likewise for locals "branch",
2197 "insn", "next", "bbend".
2198 (uses_ls_unit): Likewise for param "insn".
2199 (get_pipe): Likewise.
2200 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2201 introducing a checked cast.
2202 (spu_sched_adjust_cost): Likewise for params "insn" and
2203 "dep_insn".
2204 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2205 (spu_sms_res_mii): Likewise.
2206
2207 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2208
2209 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2210 from rtx to rtx_insn *.
2211 (output_cbranch): Likewise for param 6.
2212 (output_return): Likewise for param 1.
2213 (output_sibcall): Likewise.
2214 (output_v8plus_shift): Likewise.
2215 (output_v8plus_mult): Likewise.
2216 (output_v9branch): Likewise for param 7.
2217 (output_cbcond): Likewise for param 3.
2218
2219 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2220 for local "insn".
2221 (sparc_legitimize_pic_address): Likewise.
2222 (sparc_emit_call_insn): Likewise.
2223 (emit_save_or_restore_regs): Likewise.
2224 (emit_window_save): Likewise for return type and local "insn".
2225 (sparc_expand_prologue): Likewise for local "insn".
2226 (sparc_flat_expand_prologue): Likewise.
2227 (output_return): Likewise for param "insn".
2228 (output_sibcall): Likewise for param "insn" and local "delay".
2229 (output_ubranch): Likewise for param "insn".
2230 (output_cbranch): Likewise.
2231 (output_cbcond): Likewise.
2232 (output_v9branch): Likewise.
2233 (output_v8plus_shift): Likewise.
2234 (sparc_output_mi_thunk): Likewise for local "insn".
2235 (get_some_local_dynamic_name): Likewise.
2236 (output_v8plus_mult): Likewise for param "insn".
2237
2238 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2239
2240 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2241 from rtx to rtx_insn *.
2242 (output_branchy_insn): Likewise for param 3.
2243 (output_far_jump): Likewise for param 1.
2244 (final_prescan_insn): Likewise.
2245 (sh_insn_length_adjustment): Likewise for sole param.
2246
2247 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2248 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2249 rtx_code_label *.
2250 (sh_emit_compare_and_set): Likewise for local "lab".
2251 (output_far_jump): Strengthen param "insn" and local "prev" from
2252 rtx to rtx_insn *.
2253 (output_branchy_insn): Likewise for param "insn" and local
2254 "next_insn".
2255 (output_ieee_ccmpeq): Likewise for param "insn".
2256 (struct label_ref_list_d): Strengthen field "label" from rtx to
2257 rtx_code_label *.
2258 (pool_node): Likewise.
2259 (pool_window_label): Likewise for this global.
2260 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2261 (dump_table): Strengthen params "start", "barrier" and local
2262 "scan" from rtx to rtx_insn *.
2263 (broken_move): Likewise for param "insn".
2264 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2265 Strengthen param "first_mova" from rtx * to rtx_insn **.
2266 (mova_p): Likewise for param "insn".
2267 (fixup_mova): Likewise for param "mova".
2268 (find_barrier): Likewise for return type, params "mova" and
2269 "from", and locals "barrier_before_mova", "found_barrier",
2270 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2271 "label" from rtx to rtx_code_label *.
2272 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2273 rtx to rtx_insn *.
2274 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2275 (split_branches): Likewise for param "first" and local "insn".
2276 (final_prescan_insn): Likewise for param "insn".
2277 (sequence_insn_p): Likewise for locals "prev", "next".
2278 (sh_insn_length_adjustment): Likewise for param "insn".
2279 (sh_can_redirect_branch): Likewise for local "insn".
2280 (find_r0_life_regions): Likewise for locals "end", "insn".
2281 (sh_output_mi_thunk): Likewise for local "insns".
2282
2283 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2284
2285 * config/score/score.c (score_output_mi_thunk): Strengthen local
2286 "insn" from rtx to rtx_insn *.
2287 (score_prologue): Likewise.
2288
2289 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2290
2291 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2292 1 from rtx to rtx_insn *.
2293 (s390_emit_jump): Likewise for return type.
2294 (s390_emit_call): Likewise.
2295 (s390_load_got): Likewise.
2296
2297 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2298 variable.
2299 (s390_match_ccmode): Likewise for param "insn".
2300 (s390_emit_jump): Likewise for return type.
2301 (s390_split_branches): Likewise for local "label".
2302 (struct constant): Strengthen field "label" from rtx to
2303 rtx_code_label *.
2304 (struct constant_pool): Likewise for field "label". Strengthen
2305 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2306 rtx_insn *.
2307 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2308 insns.
2309 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2310 (s390_end_pool): Likewise.
2311 (s390_dump_pool): Likewise for local "insn".
2312 (s390_mainpool_start): Likewise.
2313 (s390_chunkify_start): Likewise.
2314 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2315 with insns. Strengthen locals "label", "jump", "barrier", "next",
2316 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2317 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2318 rtx_insn *.
2319 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2320 "jump", "label", "next_insn".
2321 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2322 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2323 "tbegin_insn".
2324 (s390_load_got): Likewise for return type and local "insns".
2325 (s390_save_gprs_to_fprs): Likewise for local "insn".
2326 (s390_restore_gprs_from_fprs): Likewise.
2327 (pass_s390_early_mach::execute): Likewise.
2328 (s390_emit_prologue): Likewise for local "insns".
2329 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2330 rtx_code_label *.
2331 (s390_emit_call): Strengthen return type and local "insn" from
2332 rtx to rtx_insn *.
2333 (s390_emit_tpf_eh_return): Likewise for local "insn".
2334 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2335 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2336 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2337 local "cur_insn".
2338 (s390_non_addr_reg_read_p): Likewise for param "insn".
2339 (find_cond_jump): Likewise for return type and param "insn".
2340 (s390_swap_cmp): Likewise for param "insn".
2341 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2342 "prev_insn", "next_insn".
2343 (s390_reorg): Likewise for locals "insn", "target".
2344 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2345 (s390_sched_variable_issue): For now, rename param "insn" to
2346 "uncast_insn", introducing a checked cast.
2347 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2348 insn.
2349 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2350 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2351
2352 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2353
2354 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2355 param from rtx to rtx_insn *.
2356 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2357
2358 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2359
2360 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2361 4 from rtx to rtx_insn *.
2362 (rs6000_final_prescan_insn): Likewise for first param.
2363 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2364 local "insn".
2365 (rs6000_get_some_local_dynamic_name): Likewise.
2366 (output_cbranch): Likewise for param "insn".
2367 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2368 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2369 (rs6000_emit_allocate_stack): Likewise for local "insn".
2370 (load_cr_save): Likewise.
2371 (restore_saved_cr): Likewise.
2372 (restore_saved_lr): Likewise.
2373 (emit_cfa_restores): Likewise.
2374 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2375 "deleted_debug_label".
2376 (rs6000_output_mi_thunk): Likewise for local "insn".
2377 (rs6000_final_prescan_insn): Likewise for param "insn".
2378
2379 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2380
2381 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2382 Strengthen param "insn" from rtx to rtx_insn *.
2383 * config/picochip/picochip.c (picochip_current_prescan_insn):
2384 Likewise for this variable.
2385 (picochip_final_prescan_insn): Likewise for param "insn".
2386
2387 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2388
2389 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2390 from rtx to rtx_insn *.
2391 (pa_output_indirect_call): Likewise.
2392 (pa_adjust_insn_length): Likewise.
2393 (pa_attr_length_millicode_call): Likewise.
2394 (pa_attr_length_call): Likewise.
2395 (pa_attr_length_indirect_call): Likewise.
2396
2397 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2398 "insn".
2399 (pa_attr_length_millicode_call): Likewise.
2400 (pa_attr_length_call): Likewise.
2401 (pa_output_call): Likewise.
2402 (pa_attr_length_indirect_call): Likewise.
2403 (pa_output_indirect_call): Likewise.
2404
2405 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2406
2407 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2408 Strengthen first param from rtx to rtx_insn *.
2409 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2410 param "insn".
2411
2412 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2413
2414 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2415 type from rtx to rtx_insn *.
2416 (mips_expand_call): Likewise.
2417 (mips_adjust_insn_length): Likewise for first param.
2418 (mips_output_conditional_branch): Likewise.
2419 (mips_output_order_conditional_branch): Likewise.
2420 (mips_final_prescan_insn): Likewise.
2421
2422 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2423 rtx_insn * for the SEQUENCE case.
2424 (SEQ_END): Likewise.
2425 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2426 (mips_emit_call_insn): Likewise, also for local "insn".
2427 (mips16_gp_pseudo_reg): Likewise for local "scan".
2428 (mips16_build_call_stub): Likewise for return type and for local
2429 "insn". Introduce a new local "pattern" so that "insn" can indeed
2430 be an insn.
2431 (mips_expand_call): Strengthen return type and local "insn" from
2432 rtx to rtx_insn *.
2433 (mips_block_move_loop): Strengthen local "label" from rtx to
2434 rtx_code_label *.
2435 (mips_expand_synci_loop): Likewise for locals "label",
2436 "end_label".
2437 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2438 rtx_insn *.
2439 (mips16e_collect_argument_saves): Likewise for locals "insn",
2440 "next".
2441 (mips_find_gp_ref): Likewise for param of callback for "pred"
2442 param, and for local "insn".
2443 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2444 (mips_insn_has_flexible_gp_ref_p): Likewise.
2445 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2446 local "insn".
2447 (mips_epilogue_set_cfa): Likewise for local "insn".
2448 (mips_expand_epilogue): Likewise.
2449 (mips_adjust_insn_length): Likewise for param "insn".
2450 (mips_output_conditional_branch): Likewise.
2451 (mips_output_order_conditional_branch): Likewise.
2452 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2453 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2454 "falu2_turn_enabled_insn".
2455 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2456 "done_label" from rtx to rtx_code_label *.
2457 (struct mips16_constant): Likewise for field "label".
2458 (mips16_add_constant): Likewise for return type.
2459 (mips16_emit_constants_1): Strengthen return type and param "insn"
2460 from rtx to rtx_insn *.
2461 (mips16_emit_constants): Likewise for param "insn".
2462 (mips16_insn_length): Likewise.
2463 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2464 to rtx_code_label *.
2465 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2466 from rtx to rtx_insn *.
2467 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2468 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2469 (r10k_simplify_address): Strengthen param "insn" and local
2470 "def_insn" from rtx to rtx_insn *.
2471 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2472 rtx_insn *.
2473 (r10k_needs_protection_p_1): Update target type of cast of data
2474 from to rtx to rtx_insn *.
2475 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2476 rtx * to rtx_insn **.
2477 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2478 rtx_insn *.
2479 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2480 (mips_call_expr_from_insn): Likewise for param "insn".
2481 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2482 (mips_find_pic_call_symbol): Likewise for param "insn".
2483 (mips_annotate_pic_calls): Likewise for local "insn".
2484 (mips_sim_insn): Likewise for this variable.
2485 (struct mips_sim): Likewise for field "insn" within elements of
2486 last_set array.
2487 (mips_sim_wait_reg): Likewise for param "insn".
2488 (mips_sim_wait_regs): Likewise.
2489 (mips_sim_wait_units): Likewise.
2490 (mips_sim_wait_insn): Likewise.
2491 (mips_sim_issue_insn): Likewise.
2492 (mips_sim_finish_insn): Likewise.
2493 (mips_seq_time): Likewise for param "seq" and local "insn".
2494 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2495 locals "first", "second".
2496 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2497 "last", "last2", "next".
2498 (mips_avoid_hazard): Likewise for params "after", "insn".
2499 (mips_reorg_process_insns): Likewise for locals "insn",
2500 "last_insn", "subinsn", "next_insn".
2501 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2502 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2503 "jump_sequence".
2504 (mips_output_mi_thunk): Likewise for local "insn".
2505 (mips_final_prescan_insn): Likewise for param "insn".
2506
2507 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2508
2509 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2510 Strengthen return type and local "insns" from rtx to rtx_insn *.
2511 (microblaze_legitimize_tls_address): Likewise for local "insns".
2512 (microblaze_block_move_loop): Strengthen local "label" from rtx
2513 to rtx_code_label *.
2514 (microblaze_expand_prologue): Strengthen two locals named "insn"
2515 from rtx to rtx_insn *.
2516 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2517 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2518 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2519 to rtx_code_label *.
2520
2521 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2522
2523 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2524 param from rtx to rtx_insn *.
2525 (mep_reuse_lo): Likewise for third param.
2526 (mep_use_post_modify_p): Likewise for first param.
2527 (mep_core_address_length): Likewise.
2528 (mep_cop_address_length): Likewise.
2529 (mep_final_prescan_insn): Likewise.
2530 (mep_store_data_bypass_p): Likewise for both params.
2531 (mep_mul_hilo_bypass_p): Likewise.
2532 (mep_ipipe_ldc_p): Likewise for param.
2533
2534 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2535 (mep_rewrite_mult): Likewise.
2536 (mep_rewrite_mulsi3): Likewise.
2537 (mep_rewrite_maddsi3): Likewise.
2538 (mep_reuse_lo_p_1): Likewise.
2539 (mep_reuse_lo_p): Likewise.
2540 (mep_frame_expr): Likewise.
2541 (mep_make_parallel): Likewise for both params.
2542 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2543 local "insn".
2544 (mep_use_post_modify_p): Likewise for param "insn".
2545 (mep_core_address_length): Likewise.
2546 (mep_cop_address_length): Likewise.
2547 (mep_reg_set_in_function): Likewise for local "insn".
2548 (mep_asm_without_operands_p): Likewise.
2549 (F): Likewise for return type and param "x".
2550 (add_constant): Likewise for local "insn".
2551 (maybe_dead_move): Likewise for return type and local "insn".
2552 (mep_expand_prologue): Likewise for local "insn".
2553 (mep_final_prescan_insn): Likewise for param "insn".
2554 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2555 "next", "follow", "x".
2556 (mep_insert_repeat_label_last): Likewise for return type, param
2557 "last_insn", and locals "next", "prev". Strengthen param "label"
2558 from rtx to rtx_code_label *.
2559 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2560 rtx_insn *.
2561 (struct mep_doloop_end): Likewise for fields "insn" and
2562 "fallthrough".
2563 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2564 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2565 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2566 rtx_insn *.
2567 (mep_invert_branch): Likewise for params "insn" and "after".
2568 (mep_reorg_erepeat): Likewise for param "insns" and locals
2569 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2570 "l" from rtx to rtx_code_label *.
2571 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2572 from rtx to rtx_insn *.
2573 (mep_reorg_addcombine): Likewise for param "insns" and locals
2574 "i", "n".
2575 (add_sp_insn_p): Likewise for param "insn".
2576 (mep_reorg_noframe): Likewise for param "insns" and locals
2577 "start_frame_insn", "end_frame_insn", "next".
2578 (mep_reorg): Likewise for local "insns".
2579 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2580 cast.
2581 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2582 (mep_mul_hilo_bypass_p): Likewise.
2583 (mep_ipipe_ldc_p): Likewise for param "insn".
2584 (mep_make_bundle): Likewise for return type, param "cop" and local
2585 "insn", splitting out the latter into a new local "seq" for when it
2586 is a SEQUENCE rather than an insn.
2587 (core_insn_p): Likewise for param "insn".
2588 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2589 "last", "first", "note", "prev", "core_insn".
2590
2591 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2592
2593 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2594 rtx to rtx_insn *.
2595 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2596 (m68k_final_prescan_insn): Likewise for first param.
2597
2598 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2599 (m68k_set_frame_related): Likewise for param "insn".
2600 (output_btst): Likewise for param "insn".
2601 (m68k_final_prescan_insn): Likewise.
2602 (m68k_move_to_reg): Likewise for local "insn".
2603 (m68k_call_tls_get_addr): Likewise for local "insns".
2604 (m68k_call_m68k_read_tp): Likewise.
2605 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2606 (m68k_output_mi_thunk): Likewise for local "insn".
2607
2608 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2609
2610 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2611 first param from rtx to rtx_insn *.
2612 (iq2000_adjust_insn_length): Likewise.
2613 (iq2000_output_conditional_branch): Likewise.
2614 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2615 "insn" and local "nop_insn".
2616 (iq2000_annotate_frame_insn): Likewise for param "insn".
2617 (iq2000_expand_prologue): Likewise for both locals "insn".
2618 (iq2000_adjust_insn_length): Likewise for param "insn".
2619 (iq2000_output_conditional_branch): Likewise.
2620
2621 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2622
2623 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2624 "insns" from rtx to rtx_insn *.
2625 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2626 (struct spill_fill_data): Likewise for field "init_after" and for
2627 elements of array field "prev_insn".
2628 (spill_restore_mem): Likewise for locals "insn", "first".
2629 (do_spill): Likewise for local "insn".
2630 (do_restore): Likewise.
2631 (ia64_expand_prologue): Likewise.
2632 (ia64_expand_epilogue): Likewise.
2633 (emit_insn_group_barriers): Likewise for locals "insn",
2634 "last_label".
2635 (emit_all_insn_group_barriers): Likewise for locals "insn",
2636 "last".
2637 (dfa_stop_insn): Likewise for this global.
2638 (dfa_pre_cycle_insn): Likewise.
2639 (ia64_nop): Likewise.
2640 (final_emit_insn_group_barriers): Likewise for locals "insn",
2641 "last".
2642 (emit_predicate_relation_info): Likewise for locals "head", "n",
2643 "insn", "b", "a".
2644 (ia64_reorg): Likewise for local "insn".
2645 (ia64_output_mi_thunk): Likewise.
2646 (expand_vec_perm_interleave_2): Likewise for local "seq".
2647
2648 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2649
2650 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2651 param 1 "insn" from rtx to rtx_insn *.
2652 (ix86_use_lea_for_mov): Likewise.
2653 (ix86_avoid_lea_for_addr): Likewise.
2654 (ix86_split_lea_for_addr): Likewise.
2655 (ix86_lea_for_add_ok): Likewise.
2656 (ix86_output_call_insn): Likewise.
2657
2658 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2659 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2660 (ix86_output_function_epilogue): Likewise for locals "insn",
2661 "deleted_debug_label".
2662 (legitimize_tls_address): Likewise for local "insn".
2663 (get_some_local_dynamic_name): Likewise.
2664 (increase_distance): Likewise for params "prev", "next".
2665 (distance_non_agu_define_in_bb): Likewise for params "insn",
2666 "start" and locals "prev", "next".
2667 (distance_non_agu_define): Likewise for param "insn".
2668 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2669 locals "next", "prev".
2670 (distance_agu_use): Likewise for param "insn".
2671 (ix86_lea_outperforms): Likewise.
2672 (ix86_ok_to_clobber_flags): Likewise.
2673 (ix86_avoid_lea_for_add): Likewise.
2674 (ix86_use_lea_for_mov): Likewise.
2675 (ix86_avoid_lea_for_addr): Likewise.
2676 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2677 (ix86_split_lea_for_addr): Likewise for param "insn".
2678 (ix86_lea_for_add_ok): Likewise for param "insn".
2679 (ix86_expand_carry_flag_compare): Likewise for local
2680 "compare_seq".
2681 (ix86_expand_int_movcc): Likewise.
2682 (ix86_output_call_insn): Likewise for param "insn".
2683 (ix86_output_call_insn): Likewise for local "i".
2684 (x86_output_mi_thunk): Introduce local "insn", using it in place
2685 of "tmp" when dealing with insns.
2686 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2687 "start".
2688 (ix86_pad_returns): Likewise for locals "ret", "prev".
2689 (ix86_count_insn_bb): Likewise for local "insn".
2690 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2691 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2692 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2693 (expand_vec_perm_interleave2): Likewise for local "seq".
2694 (expand_vec_perm_vperm2f128_vblend): Likewise.
2695 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2696 call to for_each_rtx with for_each_rtx_in_insn.
2697
2698 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2699
2700 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2701 "label" from rtx to rtx_code_label *.
2702 (ix86_expand_prologue): Likewise.
2703 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2704 "varargs_label".
2705 (ix86_split_idivmod): Likewise for locals "end_label" and
2706 "qimode_label".
2707 (ix86_expand_branch): Likewise for local "label2".
2708 (ix86_expand_aligntest): Likewise for return type and local "label".
2709 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2710 "top_label".
2711 (expand_movmem_epilogue): Likewise for the various locals named
2712 "label".
2713 (expand_setmem_epilogue): Likewise.
2714 (expand_small_movmem_or_setmem): Likewise for local "label".
2715 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2716 Strengthen param "done_label" from rtx * to rtx_code_label **.
2717 Strengthen locals "loop_label" and "label" from rtx to
2718 rtx_code_label *.
2719 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2720 Likewise for locals "loop_label", "label".
2721 (ix86_expand_set_or_movmem): Likewise for locals "label",
2722 "jump_around_label", "hot_label".
2723 (ix86_expand_strlensi_unroll_1): Likewise for locals
2724 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2725 "end_2_label".
2726 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2727 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2728 "label2", "jump_label".
2729 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2730 local "label".
2731 (ix86_expand_lfloorceil): Likewise for local "label".
2732 (ix86_expand_rint): Likewise.
2733 (ix86_expand_floorceildf_32): Likewise.
2734 (ix86_expand_floorceil): Likewise.
2735 (ix86_expand_rounddf_32): Likewise.
2736 (ix86_expand_trunc): Likewise.
2737 (ix86_expand_truncdf_32): Likewise.
2738 (ix86_expand_round): Likewise.
2739
2740 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2741
2742 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2743 first param from rtx to rtx_insn *.
2744 (h8300_insn_length_from_table): Likewise.
2745 * config/h8300/h8300.c (F): Likewise for return type and param
2746 "x".
2747 (Fpa): Add a checked cast to rtx_insn *.
2748 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2749 rtx_insn *.
2750 (final_prescan_insn): Likewise for param "insn".
2751 (h8300_binary_length): Likewise.
2752 (h8300_insn_length_from_table): Likewise.
2753
2754 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2755
2756 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2757 Strengthen first param "insn" from rtx to rtx_insn *.
2758
2759 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2760 Likewise.
2761 (frame_insn): Likewise for return type. Introduce local "insn"
2762 for use in place of local "x" for use as an rtx_insn *.
2763 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2764 (epiphany_expand_prologue): Likewise for local "insn".
2765 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2766 * config/epiphany/resolve-sw-modes.c
2767 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2768 "seq".
2769
2770 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2771
2772 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2773 param from rtx to rtx_insn *.
2774 (c6x_final_prescan_insn): Likewise for first param.
2775
2776 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2777 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2778 (c6x_expand_compare): Strengthen local "insns" from rtx to
2779 rtx_insn *.
2780 (c6x_get_unit_specifier): Likewise for param "insn".
2781 (c6x_print_unit_specifier_field): Likewise.
2782 (c6x_final_prescan_insn): Likewise.
2783 (emit_add_sp_const): Likewise for local "insn".
2784 (c6x_expand_prologue): Likewise.
2785
2786 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2787
2788 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2789 param 1 from rtx to rtx_insn *.
2790 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2791 the various locals named "insn".
2792 (expand_epilogue_reg_restore): Likewise.
2793 (frame_related_constant_load): Likewise.
2794 (add_to_reg): Likewise.
2795 (emit_link_insn): Likewise.
2796 (do_link): Likewise.
2797 (expand_interrupt_handler_prologue): Likewise.
2798 (branch_dest): Likewise for param "branch".
2799 (asm_conditional_branch): Likewise for param "insn".
2800 (gen_one_bundle): Likewise for elements of param "slot" and local
2801 "t".
2802 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2803 elements of local "slot".
2804 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2805 "queue", "next_queue", "prev".
2806 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2807 (add_sched_insns_for_speculation): Likewise for local "insn".
2808
2809 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2810
2811 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2812 from rtx to rtx_insn *.
2813 (output_movhi): Likewise.
2814 (output_movsisf): Likewise.
2815 (avr_out_tstsi): Likewise.
2816 (avr_out_tsthi): Likewise.
2817 (avr_out_tstpsi): Likewise.
2818 (avr_out_compare): Likewise.
2819 (avr_out_compare64): Likewise.
2820 (avr_out_movpsi): Likewise.
2821 (ashlqi3_out): Likewise.
2822 (ashlhi3_out): Likewise.
2823 (ashlsi3_out): Likewise.
2824 (ashrqi3_out): Likewise.
2825 (ashrhi3_out): Likewise.
2826 (ashrsi3_out): Likewise.
2827 (lshrqi3_out): Likewise.
2828 (lshrhi3_out): Likewise.
2829 (lshrsi3_out): Likewise.
2830 (avr_out_ashlpsi3): Likewise.
2831 (avr_out_ashrpsi3): Likewise.
2832 (avr_out_lshrpsi3): Likewise.
2833 (avr_out_fract): Likewise.
2834 (avr_out_sbxx_branch): Likewise.
2835 (avr_out_round): Likewise.
2836 (avr_out_xload): Likewise.
2837 (avr_out_movmem): Likewise.
2838 (adjust_insn_length): Likewise.
2839 (avr_out_lpm): Likewise.
2840 (reg_unused_after): Likewise.
2841 (_reg_unused_after): Likewise.
2842 (avr_jump_mode): Likewise for second param.
2843 (jump_over_one_insn): Likewise for first param.
2844 (avr_final_prescan_insn): Likewise.
2845 (out_shift_with_cnt): Likewise for second param.
2846
2847 * config/avr/avr.c (get_sequence_length): Likewise for param
2848 "insns" and local "insn".
2849 (emit_push_byte): Likewise for local "insn".
2850 (emit_push_sfr): Likewise.
2851 (avr_prologue_setup_frame): Likewise for locals "insn",
2852 "fp_plus_insns", "sp_plus_insns".
2853 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2854 "sp_plus_insns".
2855 (avr_jump_mode): Likewise for param "insn".
2856 (avr_final_prescan_insn): Likewise.
2857 (avr_find_unused_d_reg): Likewise.
2858 (avr_out_lpm_no_lpmx): Likewise.
2859 (avr_out_lpm): Likewise.
2860 (avr_out_xload): Likewise.
2861 (output_movqi): Likewise.
2862 (output_movhi): Likewise.
2863 (out_movqi_r_mr): Likewise.
2864 (out_movhi_r_mr): Likewise.
2865 (out_movsi_r_mr): Likewise.
2866 (out_movsi_mr_r): Likewise.
2867 (output_movsisf): Likewise.
2868 (avr_out_load_psi): Likewise.
2869 (avr_out_store_psi): Likewise.
2870 (avr_out_movpsi): Likewise.
2871 (out_movqi_mr_r): Likewise.
2872 (avr_out_movhi_mr_r_xmega): Likewise.
2873 (out_movhi_mr_r): Likewise.
2874 (compare_condition): Likewise for param "insn" and local "next".
2875 (compare_sign_p): Likewise for param "insn".
2876 (compare_diff_p): Likewise.
2877 (compare_eq_p): Likewise.
2878 (avr_out_compare): Likewise.
2879 (avr_out_compare64): Likewise.
2880 (avr_out_tsthi): Likewise.
2881 (avr_out_tstpsi): Likewise.
2882 (avr_out_tstsi): Likewise.
2883 (out_shift_with_cnt): Likewise.
2884 (ashlqi3_out): Likewise.
2885 (ashlhi3_out): Likewise.
2886 (avr_out_ashlpsi3): Likewise.
2887 (ashlsi3_out): Likewise.
2888 (ashrqi3_out): Likewise.
2889 (ashrhi3_out): Likewise.
2890 (avr_out_ashrpsi3): Likewise.
2891 (ashrsi3_out): Likewise.
2892 (lshrqi3_out): Likewise.
2893 (lshrhi3_out): Likewise.
2894 (avr_out_lshrpsi3): Likewise.
2895 (lshrsi3_out): Likewise.
2896 (avr_out_fract): Likewise.
2897 (avr_out_round): Likewise.
2898 (avr_adjust_insn_length): Likewise.
2899 (reg_unused_after): Likewise.
2900 (_reg_unused_after): Likewise.
2901 (avr_compare_pattern): Likewise.
2902 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2903 and locals "branch1", "branch2", "insn2", "jump".
2904 (avr_reorg): Likewise for local "insn".
2905 (avr_2word_insn_p): Likewise for param "insn".
2906 (jump_over_one_insn_p): Likewise.
2907 (avr_out_sbxx_branch): Likewise.
2908 (avr_out_movmem): Likewise.
2909
2910 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2911
2912 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2913 param from rtx to rtx_insn *.
2914 (thumb1_final_prescan_insn): Likewise.
2915 (thumb2_final_prescan_insn): Likewise.
2916
2917 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2918 rtx to rtx_insn *.
2919 (struct minipool_node): Likewise for field "insn".
2920 (dump_minipool): Likewise for param "scan".
2921 (create_fix_barrier): Likewise for local "from". Strengthen local
2922 "label" from rtx to rtx_code_label *.
2923 (push_minipool_barrier): Strengthen param "insn" from rtx to
2924 rtx_insn *.
2925 (push_minipool_fix): Likewise.
2926 (note_invalid_constants): Likewise.
2927 (thumb2_reorg): Likewise for local "insn".
2928 (arm_reorg): Likewise.
2929 (thumb2_final_prescan_insn): Likewise for param
2930 "insn" and local "first_insn".
2931 (arm_final_prescan_insn): Likewise for param "insn" and locals
2932 "start_insn", "this_insn".
2933 (arm_debugger_arg_offset): Likewise for param "insn".
2934 (thumb1_emit_multi_reg_push): Likewise for return type and local
2935 "insn".
2936 (thumb1_final_prescan_insn): Likewise for param "insn".
2937 (thumb_far_jump_used_p): Likewise for local "insn".
2938 (thumb1_expand_prologue): Likewise.
2939 (arm_expand_epilogue_apcs_frame): Likewise.
2940 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2941 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2942 from rtx to rtx_code_label *.
2943 (arm_split_atomic_op): Likewise for local "label".
2944 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2945
2946 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2947
2948 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2949 first param from rtx to rtx_insn *.
2950 (arc_verify_short): Likewise.
2951 (arc_short_long): Likewise.
2952 (arc_need_delay): Likewise.
2953
2954 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2955 "target_insn".
2956 (arc_ccfsm_advance): Likewise for param "insn" and locals
2957 "start_insn", "this_insn".
2958 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2959 (arc_ccfsm_post_advance): Likewise for param "insn".
2960 (arc_next_active_insn): Likewise for return type and param "insn".
2961 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2962 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2963 (output_short_suffix): Likewise for local "insn".
2964 (arc_final_prescan_insn): Likewise for param "insn". Remove
2965 now-redundant checked cast.
2966 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2967 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2968 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2969 for use where lc_set became an insn.
2970 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2971 rtx to rtx_insn *.
2972 (arc_get_insn_variants): Likewise for local "prev".
2973 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2974 "next".
2975 (arc_predicate_delay_insns): Likewise for local "insn".
2976 (arc_pad_return): Likewise for local "prev". For now, add a
2977 checked cast when extracting the insn from "final_sequence".
2978 (arc_short_long): Likewise for param "insn".
2979 (arc_need_delay): Likewise for param "insn" and local "next".
2980 (arc_label_align): Likewise for locals "prev", "next".
2981
2982 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2983
2984 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2985 "insn" from rtx to rtx_insn *.
2986 (alpha_gp_save_rtx): Likewise for local "seq".
2987 (alpha_instantiate_decls): Likewise for local "top".
2988 (get_some_local_dynamic_name): Likewise for local "insn".
2989 (alpha_does_function_need_gp): Likewise.
2990 (set_frame_related_p): Likewise for return type and for locals
2991 "seq" and "insn".
2992 (emit_frame_store_1): Likewise for local "insn".
2993 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2994 (alpha_end_function): Likewise for local "insn".
2995 (alpha_output_mi_thunk_osf): Likewise.
2996 (alphaev4_insn_pipe): Likewise for param "insn".
2997 (alphaev5_insn_pipe): Likewise.
2998 (alphaev4_next_group): Likewise for return type and param 1
2999 "insn".
3000 (alphaev5_next_group): Likewise.
3001 (alpha_align_insns_1): Likewise for return type and param 1 of
3002 callback param "next_group", and for locals "i", "next", "prev",
3003 "where", "where2", "insn".
3004
3005 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
3006
3007 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
3008 rather than modifying the stmt.
3009
3010 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3011
3012 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
3013 cgraph_state conversion.
3014
3015 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3016
3017 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3018 Strengthen local "insns" from rtx to rtx_insn *.
3019 (aarch64_set_frame_expr): Likewise for local "insn".
3020 (aarch64_save_or_restore_fprs): Likewise.
3021 (aarch64_save_or_restore_callee_save_registers): Likewise.
3022 (aarch64_expand_prologue): Likewise.
3023 (aarch64_expand_epilogue): Likewise.
3024 (aarch64_output_mi_thunk): Likewise.
3025 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
3026 "label2" from rtx to rtx_code_label *.
3027 (aarch64_split_atomic_op): Likewise for local "label".
3028
3029 2014-08-25 Martin Liska <mliska@suse.cz>
3030
3031 * cgraph.h (symtab_node):
3032 (bool needed_p (void)): created from decide_is_symbol_needed
3033 (bool referred_to_p (void)): created from referred_to_p
3034 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
3035 * cgraph.h (cgraph_node):
3036 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
3037 (void expand (void)): created from expand_function
3038 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
3039 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
3040 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
3041 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
3042 * cgraph.h (varpool_node):
3043 (static void add (tree decl): created from varpool_add_new_variable
3044 * cgraph.h (cgraph_edge):
3045 void remove (void);
3046 (void remove_caller (void)): created from cgraph_edge_remove_caller
3047 (void remove_callee (void)): created from cgraph_edge_remove_callee
3048 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
3049 created from cgraph_set_call_stmt
3050 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
3051 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
3052 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
3053 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
3054 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
3055 created from cgraph_speculative_call_info
3056 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
3057 int freq_scale, bool update_original)): created from cgraph_clone_edge
3058 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
3059 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
3060 (bool recursive_p (void)): created from cgraph_edge_recursive_p
3061 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
3062 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
3063 (static void rebuild_references (void)): created from cgraph_rebuild_references
3064 * cgraph.h (symbol_table):
3065 (create_reference): renamed from add_reference
3066 (maybe_create_reference): renamed from maybe_add_reference
3067 (void register_symbol (symtab_node *node)): new function
3068 (void clear_asm_symbols (void)): new function
3069 (void unregister (symtab_node *node)): new function
3070 (void release_symbol (cgraph_node *node, int uid)): new function
3071 (cgraph_node * allocate_cgraph_symbol (void)): new function
3072 (void initialize (void)): created from cgraph_init
3073 (symtab_node *first_symbol (void)):new function
3074 (asm_node *first_asm_symbol (void)):new function
3075 (symtab_node *first_defined_symbol (void)):new function
3076 (varpool_node *first_variable (void)):new function
3077 (varpool_node *next_variable (varpool_node *node)):new function
3078 (varpool_node *first_static_initializer (void)):new function
3079 (varpool_node *next_static_initializer (varpool_node *node)):new function
3080 (varpool_node *first_defined_variable (void)):new function
3081 (varpool_node *next_defined_variable (varpool_node *node)):new function
3082 (cgraph_node *first_defined_function (void)):new function
3083 (cgraph_node *next_defined_function (cgraph_node *node)):new function
3084 (cgraph_node *first_function (void)):new function
3085 (cgraph_node *next_function (cgraph_node *node)):new function
3086 (cgraph_node *first_function_with_gimple_body (void)):new function
3087 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
3088 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
3089 created from symtab_remove_unreachable_nodes
3090 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
3091 (void process_new_functions (void)): created from cgraph_process_new_functions
3092 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3093 (bool output_variables (void)): created from varpool_node::output_variables
3094 (void output_asm_statements (void)): created from output_asm_statements
3095 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3096 (void compile (void)): created from compile
3097 (void output_weakrefs (void)): created from output_weakrefs
3098 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3099 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3100 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3101 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3102 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3103 created from cgraph_next_function_with_gimple_body
3104 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3105 created from cgraph_remove_edge_removal_hook
3106 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3107 created from cgraph_add_node_removal_hook
3108 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3109 created from cgraph_remove_node_removal_hook
3110 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3111 created from varpool_add_node_removal_hook
3112 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3113 created from varpool_remove_node_removal_hook
3114 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3115 created from cgraph_add_function_insertion_hook
3116 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3117 created from cgraph_remove_function_insertion_hook
3118 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3119 created from varpool_add_variable_insertion_hook
3120 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3121 created from varpool_remove_variable_insertion_hook
3122 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3123 created from cgraph_add_edge_duplication_hook
3124 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3125 created from cgraph_remove_edge_duplication_hook
3126 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3127 created from cgraph_add_node_duplication_hook
3128 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3129 created from cgraph_remove_node_duplication_hook
3130 (void call_edge_removal_hooks (cgraph_edge *e)):
3131 created from cgraph_call_edge_removal_hooks
3132 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3133 created from call_function_insertion_hooks
3134 (void call_cgraph_removal_hooks (cgraph_node *node)):
3135 created from cgraph_call_node_removal_hooks
3136 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3137 created from cgraph_node::call_duplication_hooks
3138 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3139 created from cgraph_call_edge_duplication_hooks
3140 (void call_varpool_removal_hooks (varpool_node *node)):
3141 created from varpool_call_node_removal_hooks
3142 (void call_varpool_insertion_hooks (varpool_node *node)):
3143 created from varpool_call_variable_insertion_hooks
3144 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3145 created from insert_to_assembler_name_hash
3146 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3147 created from unlink_from_assembler_name_hash
3148 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3149 created from symtab_prevail_in_asm_name_hash
3150 (void symtab_initialize_asm_name_hash (void)):
3151 created from symtab_initialize_asm_name_hash
3152 (void change_decl_assembler_name (tree decl, tree name)):
3153 created from change_decl_assembler_name
3154 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3155 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3156 created from decl_assembler_name_hash
3157 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3158 created from decl_assembler_name_equal
3159 (static hashval_t hash_node_by_assembler_name (const void *p)):
3160 created from hash_node_by_assembler_name
3161 (static int eq_assembler_name (const void *p1, const void *p2)):
3162 created from eq_assembler_name
3163
3164 2014-08-25 Marek Polacek <polacek@redhat.com>
3165
3166 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3167
3168 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3169
3170 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3171 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3172 SWI1248_AVX512BW mode iterator.
3173
3174 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3175
3176 PR target/62111
3177 * config/sh/predicates.md (general_extend_operand): Disable
3178 TRUNCATE before reload completes.
3179
3180 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3181
3182 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3183
3184 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3185
3186 PR target/61996
3187 * config/sh/sh.opt (musermode): Allow negative form.
3188 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3189 targets that don't support it.
3190 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3191 Document -mno-usermode option.
3192
3193 2014-08-24 Kito Cheng <kito@0xlab.org>
3194
3195 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3196 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3197 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3198 * doc/tm.texi: Regenerate.
3199
3200 2014-08-24 Kito Cheng <kito@0xlab.org>
3201
3202 * ira.c: Fix typo in comment.
3203
3204 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3205
3206 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3207 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3208
3209 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3210
3211 PR target/62038
3212 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3213 last_address when the current function is a thunk.
3214 (pa_asm_output_mi_thunk): When we don't have named sections or they
3215 are not being used, check that thunk can reach the stub table with a
3216 short branch.
3217
3218 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3219
3220 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3221 rtx_insn *.
3222 (pass_web::execute): Likewise for local "insn".
3223
3224 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3225
3226 * var-tracking.c (struct micro_operation_def): Strengthen field
3227 "insn" from rtx to rtx_insn *.
3228 (struct emit_note_data_def): Likewise.
3229 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3230 (vt_stack_adjustments): Likewise for local "insn".
3231 (adjust_insn): Likewise for param "insn".
3232 (val_store): Likewise.
3233 (val_resolve): Likewise.
3234 (struct count_use_info): Likewise for field "insn".
3235 (log_op_type): Likewise for param "insn".
3236 (reverse_op): Likewise.
3237 (prepare_call_arguments): Likewise.
3238 (add_with_sets): The initial param takes an insn, but we can't
3239 yet strengthen it from rtx to rtx_insn * since it's used as a
3240 cselib_record_sets_hook callback. For now rename initial param
3241 from "insn" to "uncast_insn", and introduce a local "insn" of
3242 the stronger rtx_insn * type, with a checked cast.
3243 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3244 rtx_insn *.
3245 (emit_note_insn_var_location): Likewise.
3246 (emit_notes_for_changes): Likewise.
3247 (emit_notes_for_differences): Likewise.
3248 (next_non_note_insn_var_location): Likewise for return type and
3249 for param "insn".
3250 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3251 (vt_initialize): Likewise for local "insn".
3252 (delete_debug_insns): Likewise for locals "insn" and "next".
3253
3254 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3255
3256 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3257 rtx_insn *.
3258 (mark_constant_pool): Likewise for local "insn".
3259
3260 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3261
3262 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3263 rtx to rtx_insn *.
3264 (dead_debug_promote_uses): Likewise.
3265 (dead_debug_insert_temp): Likewise.
3266
3267 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3268
3269 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3270 from const_rtx to const rtx_insn *.
3271 (store_killed_after): Likewise. Strengthen locals "last", "act"
3272 from rtx to rtx_insn *.
3273 (store_killed_before): Strengthen param "insn" from const_rtx to
3274 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3275 (find_moveable_store): Strengthen param "insn" from rtx to
3276 rtx_insn *.
3277 (compute_store_table): Likewise for local "insn".
3278 (insert_insn_start_basic_block): Likewise for param "insn" and
3279 locals "prev", "before", "insn".
3280 (insert_store): For now, add a checked cast to rtx_insn * on the
3281 result of gen_move_insn.
3282 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3283 to rtx_insn *.
3284 (replace_store_insn): Likewise. For now, add a checked cast to
3285 rtx_insn * on the result of gen_move_insn.
3286
3287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3288
3289 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3290 rtx_insn *.
3291 (expand_sjlj_dispatch_table): Likewise.
3292
3293 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3294
3295 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3296 "insn" from rtx to rtx_insn *.
3297
3298 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3299
3300 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3301 "insn" from rtx to rtx_insn *.
3302 (dup_block_and_redirect): Likewise for param 3 "before".
3303
3304 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3305 from rtx to rtx_insn *.
3306 (move_insn_for_shrink_wrap): Likewise.
3307 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3308 (dup_block_and_redirect): Likewise for param "before" and local
3309 "insn".
3310 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3311 "end".
3312 (convert_to_simple_return): Likewise for local "start".
3313
3314 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3315 Strengthen local "insn" from rtx to rtx_insn *, for use when
3316 invoking requires_stack_frame_p.
3317
3318 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3319
3320 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3321 rtx_insn *.
3322 (speculate_expr): Likewise for locals "orig_insn_rtx",
3323 "spec_insn_rtx".
3324 (eq_transformed_insns): Likewise for locals "i1", "i2".
3325 (check_for_new_jump): Likewise for return type and local "end".
3326 (find_new_jump): Likewise for return type and local "jump".
3327 (sel_split_edge): Likewise for local "jump".
3328 (sel_create_recovery_block): Likewise.
3329 (sel_redirect_edge_and_branch_force): Likewise.
3330 (sel_redirect_edge_and_branch): Likewise.
3331
3332 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3333
3334 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3335 "new_insn" from rtx to rtx_insn *.
3336 (create_insn_rtx_with_rhs): Likewise for return type and for local
3337 "insn_rtx".
3338 (create_insn_rtx_with_lhs): Likewise.
3339 (create_speculation_check): Likewise for local "insn_rtx".
3340 (implicit_clobber_conflict_p): Likewise for local "insn".
3341 (get_expr_cost): Likewise.
3342 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3343 (move_cond_jump): Likewise for locals "next", "prev", "link",
3344 "head", "from", "to".
3345
3346 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3347
3348 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3349 "next" from rtx to rtx_insn *.
3350 (find_conditional_protection): Likewise for local "next".
3351 (is_conditionally_protected): Likewise for local "insn1".
3352 (is_pfree): Likewise for locals "insn1", "insn2".
3353
3354 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3355
3356 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3357 from rtx to rtx_insn *.
3358
3359 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3360 locals "insn1", "insn2" from rtx to rtx_insn *.
3361 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3362 locals "insn", "prev", "last_jump", "next_tail".
3363 (schedule_ebb): Likewise for params "head", "tail".
3364 (schedule_ebbs): Likewise for locals "tail", "head".
3365
3366 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3367 to rtx_insn on "last_insn" in one of the invocations of
3368 schedule_ebb.
3369
3370 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3371
3372 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3373 "elem", "insn" from rtx to rtx_insn *.
3374 (change_spec_dep_to_hard): Likewise.
3375 (get_back_and_forw_lists): Likewise for local "con".
3376 (sd_add_dep): Likewise for locals "elem", "insn".
3377 (sd_resolve_dep): Likewise for locals "pro", "con".
3378 (sd_unresolve_dep): Likewise.
3379 (sd_delete_dep): Likewise.
3380 (chain_to_prev_insn): Likewise for local "pro".
3381 (find_inc): Likewise for locals "pro", "con".
3382
3383 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3384
3385 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3386 to rtx_insn *.
3387 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3388 const rtx_insn *.
3389 (modified_between_p): Strengthen local "insn" from rtx to
3390 rtx_insn *.
3391 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3392 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3393 const rtx_insn *.
3394
3395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3396
3397 * resource.c (next_insn_no_annul): Strengthen local "next" from
3398 rtx to rtx_insn *.
3399 (mark_referenced_resources): Likewise for local "insn".
3400
3401 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3402
3403 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3404 to rtx_insn *.
3405 (find_reloads): Likewise for param 1.
3406 (subst_reloads): Likewise for sole param.
3407 (find_equiv_reg): Likwise for param 2.
3408 (regno_clobbered_p): Likwise for param 2.
3409 (reload): Likewise for param 1.
3410
3411 * caller-save.c (save_call_clobbered_regs): Strengthen local
3412 "insn" from rtx to rtx_insn *.
3413 (insert_one_insn): Likewise for local "insn".
3414
3415 * reload.c (this_insn): Likewise for this global.
3416 (find_reloads): Likewise for param "insn".
3417 (find_reloads_toplev): Likewise.
3418 (find_reloads_address): Likewise.
3419 (subst_reg_equivs): Likewise.
3420 (update_auto_inc_notes): Likewise.
3421 (find_reloads_address_1): Likewise.
3422 (find_reloads_subreg_address): Likewise.
3423 (subst_reloads): Likewise.
3424 (find_equiv_reg): Likewise, also for local "p".
3425 (regno_clobbered_p): Likewise for param "insn".
3426
3427 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3428 array.
3429 (spill_reg_store): Likewise for the elements of this array.
3430 (remove_init_insns): Likewise for local "equiv_insn".
3431 (will_delete_init_insn_p): Likewise for param "insn".
3432 (reload): Likewise for param ""first" and local "insn".
3433 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3434 rtx_insn *.
3435 (calculate_elim_costs_all_insns): Likewise.
3436 (delete_caller_save_insns): Likewise.
3437 (spill_failure): Likewise for param "insn".
3438 (delete_dead_insn): Likewise.
3439 (set_label_offsets): Likewise.
3440 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3441 "prev_insn".
3442 (elimination_costs_in_insn): Likewise for param "insn".
3443 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3444 when referring to an insn.
3445 (set_initial_label_offsets): Likewise.
3446 (set_offsets_for_label): Strengthen param "insn" from rtx to
3447 rtx_insn *.
3448 (init_eliminable_invariants): Likewise for param "first" and local
3449 "insn".
3450 (fixup_eh_region_note): Likewise for param "insn".
3451 (reload_as_needed): Likewise for locals "prev", "insn",
3452 "old_next", "old_prev", "next".
3453 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3454 "last".
3455 (reload_inheritance_insn): Strengthen elements of this array from
3456 rtx to rtx_insn *.
3457 (failed_reload): Likewise for param "insn".
3458 (choose_reload_regs): Likewise for local "insn". Replace use of
3459 NULL_RTX with NULL when referring to an insn.
3460 (input_reload_insns): Strengthen elements of this array from rtx
3461 to rtx_insn *.
3462 (other_input_address_reload_insns): Likewise for this global.
3463 (other_input_reload_insns): Likewise for this global.
3464 (input_address_reload_insns): Likwise for the elements of this
3465 array.
3466 (inpaddr_address_reload_insns): Likwise for the elements of this
3467 array.
3468 (output_reload_insns): Likewise for the elements of this array.
3469 (output_address_reload_insns): Likewise for the elements of this
3470 array.
3471 (outaddr_address_reload_insns): Likewise for the elements of this
3472 array.
3473 (operand_reload_insns): Likewise for this global.
3474 (other_operand_reload_insns): Likewise for this global.
3475 (other_output_reload_insns): Likewise for the elements of this
3476 array.
3477 (new_spill_reg_store): Likewise for the elements of this
3478 array.
3479 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3480 Strengthen local "where" from rtx * to rtx_insn **.
3481 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3482 from rtx to rtx_insn *.
3483 (do_input_reload): Likewise for local "insn".
3484 (do_output_reload): Likewise for local "insn".
3485 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3486 (emit_insn_if_valid_for_reload): Likewise for return type and local
3487 "last". Add checked cast to rtx_insn when returning "insn" since
3488 this has been through emit_insn.
3489 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3490 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3491 returning "insn" since it's been through
3492 emit_insn_if_valid_for_reload at this point.
3493 (delete_output_reload): Strengthen param "insn" and locals
3494 "output_reload_insn", "i2" from rtx to rtx_insn *.
3495 (delete_address_reloads): Likewise for params "dead_insn",
3496 "current_insn" and locals "prev", "next".
3497 (delete_address_reloads_1): Likewise for params "dead_insn",
3498 "current_insn" and locals "prev", "i2".
3499 (inc_for_reload): Likewise for locals "last", "add_insn".
3500 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3501 rtx_insn *.
3502
3503 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3504 param of this duplicate of the prototype from reload.h
3505
3506 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3507
3508 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3509 rtx to rtx_insn *.
3510 (regstat_bb_compute_calls_crossed): Likewise.
3511
3512 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3513
3514 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3515 to rtx_insn *.
3516 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3517 with an insn.
3518 (regrename_analyze): Strengthen local "insn" from rtx to
3519 rtx_insn *.
3520 (scan_rtx_reg): Likewise for param "insn".
3521 (scan_rtx_address): Likewise.
3522 (scan_rtx): Likewise.
3523 (restore_operands): Likewise.
3524 (record_out_operands): Likewise.
3525 (build_def_use): Likewise for local "insn". Replace use of
3526 NULL_RTX with NULL when dealing with an insn.
3527
3528 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3529
3530 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3531 * reginfo.c (reg_scan): Likewise, also for local "insn".
3532 (reg_scan_mark_refs): Likewise for param "insn".
3533 (init_subregs_of_mode): Likewise for local "insn".
3534
3535 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3536
3537 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3538 "insn" from rtx to rtx_insn *.
3539 (replace_oldest_value_reg): Likewise for param "insn".
3540 (replace_oldest_value_addr): Likewise.
3541 (replace_oldest_value_mem): Likewise.
3542 (apply_debug_insn_changes): Likewise for local "last_insn".
3543 (copyprop_hardreg_forward_1): Likewise for local "insn".
3544
3545 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3546
3547 * reg-stack.c (next_flags_user): Strengthen return type and param
3548 "insn" from rtx to rtx_insn *.
3549 (straighten_stack): Likewise for param "insn".
3550 (check_asm_stack_operands): Likewise.
3551 (remove_regno_note): Likewise.
3552 (emit_pop_insn): Likewise for return type, param "insn", local
3553 "pop_insn".
3554 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3555 "limit" from rtx to rtx_insn *.
3556 (swap_to_top): Likewise for param "insn".
3557 (move_for_stack_reg): Likewise.
3558 (move_nan_for_stack_reg): Likewise.
3559 (swap_rtx_condition): Likewise.
3560 (compare_for_stack_reg): Likewise.
3561 (subst_all_stack_regs_in_debug_insn): Likewise.
3562 (subst_stack_regs_pat): Likewise, and local "insn2".
3563 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3564 rtx_insn *.
3565 (subst_stack_regs): Likewise.
3566 (change_stack): Likewise.
3567 (convert_regs_1): Likewise for locals "insn", "next".
3568
3569 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3570
3571 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3572 rtx_insn *.
3573 (combine_set_extension): Likewise for param "curr_insn".
3574 (transform_ifelse): Likewise for param "def_insn".
3575 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3576 from vec<rtx> * to vec<rtx_insn *> *.
3577 (is_cond_copy_insn): Likewise for param "insn".
3578 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3579 to vec<rtx_insn *>.
3580 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3581 local "def_insn" from rtx to rtx_insn *.
3582 (get_sub_rtx): Likewise for param "def_insn".
3583 (merge_def_and_ext): Likewise.
3584 (combine_reaching_defs): Likewise.
3585 (add_removable_extension): Likewise for param "insn".
3586 (find_removable_extensions): Likewise for local "insn".
3587 (find_and_remove_re): Likewise for locals "curr_insn" and
3588 "def_insn". Strengthen locals "reinsn_del_list" and
3589 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3590
3591 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3592
3593 * recog.c (split_insn): Strengthen param "insn" and locals
3594 "first", "last" from rtx to rtx_insn *.
3595 (split_all_insns): Likewise for locals "insn", "next".
3596 (split_all_insns_noflow): Likewise.
3597
3598 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3599
3600 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3601 const rtx_insn *.
3602 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3603 (debug_rtx_find): Likewise for param 1 "x".
3604
3605 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3606 const_rtx to const rtx_insn *. Likewise for local "insn".
3607 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3608 (debug_rtx_find): Likewise for param 1 "x".
3609 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3610 from const_rtx to const rtx_insn * within the appropriate cases of
3611 the switch statement.
3612
3613 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3614 Strengthen local "insns" from rtx to rtx_insn * since this is
3615 passed to a call to debug_rtx_list.
3616
3617 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3618
3619 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3620 to rtx_insn *.
3621
3622 * function.c (stack_protect_epilogue): Add checked cast to
3623 rtx_insn for now when invoking predict_insn_def.
3624
3625 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3626 rtx_insn *.
3627 (predict_insn_def): Likewise.
3628 (rtl_predict_edge): Likewise for local "last_insn".
3629 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3630 const rtx_insn *.
3631 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3632 to rtx_insn *.
3633 (bb_estimate_probability_locally): Likewise for local "last_insn".
3634 (expensive_function_p): Likewise for local "insn".
3635
3636 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3637 local "jmp", since this is used when invoking predict_insn_def.
3638
3639 2014-08-22 Marek Polacek <polacek@redhat.com>
3640
3641 PR c++/62199
3642 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3643
3644 2014-08-22 Marek Polacek <polacek@redhat.com>
3645
3646 PR c/61271
3647 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3648 a comparison in parens.
3649 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3650 in parens.
3651
3652 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3653
3654 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3655 rtx_insn *.
3656
3657 * cprop.c (fis_get_condition): Likewise.
3658
3659 * postreload.c (reload_cse_regs): Likewise for param "first".
3660 (reload_cse_simplify): Likewise for param "insn".
3661 (reload_cse_regs_1): Likewise for local "insn".
3662 (reload_cse_simplify_set): Likewise for param "insn".
3663 (reload_cse_simplify_operands): Likewise.
3664 (struct reg_use): Likewise for field "insn".
3665 (reload_combine_purge_insn_uses): Likewise for param "insn".
3666 (fixup_debug_insns): Likewise for params "from", "to" and local
3667 "insn".
3668 (try_replace_in_use): Likewise for local "use_insn".
3669 (reload_combine_recognize_const_pattern): Likewise for param
3670 "insn" and locals "add_moved_after_insn", "use_insn".
3671 (reload_combine_recognize_pattern): Likewise for param "insn" and
3672 local "prev".
3673 (reload_combine): Likewise for locals "insn", "prev".
3674 (reload_combine_note_use): Likewise for param "insn".
3675 (move2add_use_add2_insn): Likewise.
3676 (move2add_use_add3_insn): Likewise.
3677 (reload_cse_move2add): Likewise, also for local "next".
3678 (move2add_note_store): Likewise for local "insn".
3679
3680 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3681
3682 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3683 rtx to rtx_insn *.
3684 (struct unoccr): Likewise.
3685 (struct modifies_mem): Likewise.
3686 (alloc_mem): Likewise for local "insn".
3687 (insert_expr_in_table): Likewise for param "insn".
3688 (dump_expr_hash_table_entry): Likewise for local "insn".
3689 (oprs_unchanged_p): Likewise for param "insn".
3690 (load_killed_in_block_p): Likewise for local "setter".
3691 (record_last_reg_set_info): Likewise for param "insn".
3692 (record_last_reg_set_info_regno): Likewise.
3693 (record_last_mem_set_info): Likewise.
3694 (record_last_set_info): Likewise for local "last_set_insn".
3695 (record_opr_changes): Likewise for param "insn".
3696 (hash_scan_set): Likewise.
3697 (compute_hash_table): Likewise for local "insn".
3698 (get_avail_load_store_reg): Likewise for param "insn".
3699 (eliminate_partially_redundant_load): Likewise, also for locals
3700 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3701 RTX for insns.
3702 (eliminate_partially_redundant_loads): Likewise for local "insn".
3703
3704 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3705
3706 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3707 rtx to rtx_insn *.
3708 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3709 (expand_twoval_unop): Likewise for locals entry_last", "last".
3710 (expand_twoval_binop): Likewise.
3711 (expand_twoval_binop_libfunc): Likewise for local "insns".
3712 (widen_leading): Likewise for local "last".
3713 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3714 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3715 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3716 (expand_parity): Likewise for locals "last" and "seq".
3717 (expand_ffs): Likewise for local "seq". Strengthen local
3718 "nonzero_label" from rtx to rtx_code_label *.
3719 (expand_absneg_bit): Strengthen local "insns" from rtx to
3720 rtx_insn *.
3721 (expand_unop_direct): Likewise for local "last".
3722 (expand_unop): Likewise for locals "last", "insns".
3723 (expand_abs_nojump): Likewise for local "last".
3724 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3725 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3726 rtx_insn *.
3727 (expand_copysign_absneg): Strengthen local "label" from rtx to
3728 rtx_code_label *.
3729 (expand_copysign_bit): Strengthen local "insns" from rtx to
3730 rtx_insn *.
3731 (struct no_conflict_data): Likewise for fields "first", "insn".
3732 (emit_libcall_block_1): Likewise for param "insns" and locals
3733 "next", "last", "insn".
3734 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3735 on "insns" when invoking emit_libcall_block_1. Ultimately we
3736 want to strengthen insns itself.
3737 (prepare_cmp_insn): Strengthen local "last" from rtx to
3738 rtx_insn *.
3739 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3740 (prepare_float_lib_cmp): Likewise for local "insns".
3741 (emit_conditional_move): Likewise for local "last".
3742 (emit_conditional_add): Likewise.
3743 (have_sub2_insn): Likewise for local "seq".
3744 (expand_float): Likewise for local "insns". Strengthen locals
3745 "label", "neglabel" from rtx to rtx_code_label *.
3746 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3747 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3748 (expand_fixed_convert): Likewise for local "insns" (to
3749 rtx_insn *).
3750 (expand_sfix_optab): Likewise for local "last".
3751 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3752 to rtx_code_label *.
3753 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3754 from rtx to rtx_insn *.
3755 (expand_atomic_fetch_op): Likewise for local "insn".
3756 (maybe_legitimize_operand_same_code): Likewise for local "last".
3757 (maybe_legitimize_operands): Likewise.
3758
3759 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3760
3761 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3762 "insn" from rtx to rtx_insn *.
3763 (ps_rtl_insn): Likewise for return type.
3764 (doloop_register_get): Likewise for params "head", "tail" and
3765 locals "insn", "first_insn_not_to_check".
3766 (schedule_reg_move): Likewise for local "this_insn".
3767 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3768 of gen_move_insn for now.
3769 (reset_sched_times): Strengthen local "insn" from rtx to
3770 rtx_insn *.
3771 (permute_partial_schedule): Likewise.
3772 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3773 (dump_insn_location): Likewise for param "insn".
3774 (loop_canon_p): Likewise for local "insn".
3775 (sms_schedule): Likewise.
3776 (print_partial_schedule): Likewise.
3777 (ps_has_conflicts): Likewise.
3778
3779 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3780
3781 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3782 "tailp" from rtx * to rtx_insn **.
3783
3784 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3785 from rtx to rtx_insn *.
3786 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3787 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3788 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3789 rtx to rtx_insn *.
3790 * modulo-sched.c (const_iteration_count): Strengthen return type
3791 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3792 use of NULL_RTX with NULL when working with insns.
3793 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3794 to rtx_insn *.
3795 (sms_schedule): Likewise.
3796 * sched-rgn.c (init_ready_list): Likewise, also for locals
3797 "src_head" and "src_next_tail".
3798 (compute_block_dependences): Likewise.
3799 (free_block_dependencies): Likewise.
3800 (debug_rgn_dependencies): Likewise.
3801 (free_rgn_deps): Likewise.
3802 (compute_priorities): Likewise.
3803 (schedule_region): Likewise.
3804 * sel-sched.c (find_ebb_boundaries): Likewise.
3805
3806 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3807 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3808
3809 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3810
3811 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3812 from rtx to rtx_insn *.
3813 (new_seginfo): Likewise for param "insn".
3814 (create_pre_exit): Likewise for locals "last_insn",
3815 "before_return_copy", "return_copy".
3816 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3817 "mode_set".
3818
3819 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3820
3821 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3822 from rtx to rtx_insn *.
3823 (lra_push_insn): Likewise for 1st param.
3824 (lra_push_insn_and_update_insn_regno_info): Likewise.
3825 (lra_pop_insn): Likewise for return type.
3826 (lra_invalidate_insn_data): Likewise for 1st param.
3827 (lra_set_insn_deleted): Likewise.
3828 (lra_delete_dead_insn): Likewise.
3829 (lra_process_new_insns): Likewise for first 3 params.
3830 (lra_set_insn_recog_data): Likewise for 1st param.
3831 (lra_update_insn_recog_data): Likewise.
3832 (lra_set_used_insn_alternative): Likewise.
3833 (lra_invalidate_insn_regno_info): Likewise.
3834 (lra_update_insn_regno_info): Likewise.
3835 (lra_former_scratch_operand_p): Likewise.
3836 (lra_eliminate_regs_1): Likewise.
3837 (lra_get_insn_recog_data): Likewise.
3838
3839 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3840 rtx to rtx_insn *.
3841
3842 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3843 "mv1" and "mv2".
3844 (substitute_within_insn): New.
3845 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3846 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3847 Replace call to "substitute" with call to substitute_within_insn.
3848
3849 * lra-constraints.c (curr_insn): Strengthen from rtx to
3850 rtx_insn *.
3851 (get_equiv_with_elimination): Likewise for param "insn".
3852 (match_reload): Strengthen params "before" and "after" from rtx *
3853 to rtx_insn **.
3854 (emit_spill_move): Likewise for return type. Add a checked cast
3855 to rtx_insn * on result of gen_move_insn for now.
3856 (check_and_process_move): Likewise for local "before". Replace
3857 NULL_RTX with NULL when referring to insns.
3858 (process_addr_reg): Strengthen params "before" and "after" from
3859 rtx * to rtx_insn **.
3860 (insert_move_for_subreg): Likewise.
3861 (simplify_operand_subreg): Strengthen locals "before" and "after"
3862 from rtx to rtx_insn *.
3863 (process_address_1): Strengthen params "before" and "after" from
3864 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3865 rtx to rtx_insn *.
3866 (process_address): Strengthen params "before" and "after" from
3867 rtx * to rtx_insn **.
3868 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3869 (curr_insn_transform): Strengthen locals "before" and "after"
3870 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3871 to insns.
3872 (loc_equivalence_callback): Update cast of "data", changing
3873 resulting type from rtx to rtx_insn *.
3874 (substitute_pseudo_within_insn): New.
3875 (inherit_reload_reg): Strengthen param "insn" from rtx to
3876 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3877 NULL when referring to insns. Add a checked cast to rtx_insn *
3878 when using usage_insn to invoke lra_update_insn_regno_info.
3879 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3880 likewise for locals "restore", "save". Add checked casts to
3881 rtx_insn * when using usage_insn to invoke
3882 lra_update_insn_regno_info and lra_process_new_insns. Replace
3883 NULL_RTX with NULL when referring to insns.
3884 (split_if_necessary): Strengthen param "insn" from rtx to
3885 rtx_insn *.
3886 (update_ebb_live_info): Likewise for params "head", "tail" and local
3887 "prev_insn".
3888 (get_last_insertion_point): Likewise for return type and local "insn".
3889 (get_live_on_other_edges): Likewise for local "last".
3890 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3891 "prev_insn", "next_insn", "restore".
3892 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3893 (undo_optional_reloads): Likewise for local "insn".
3894
3895 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3896 "insn".
3897 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3898 insns.
3899 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3900 rtx_insn *.
3901 (spill_pseudos): Likewise for local "insn".
3902 (init_elimination): Likewise.
3903 (process_insn_for_elimination): Likewise for param "insn".
3904
3905 * lra-lives.c (curr_insn): Likewise.;
3906
3907 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3908 (remove_pseudos): Likewise for param "insn".
3909 (spill_pseudos): Likewise for local "insn".
3910 (lra_final_code_change): Likewise for locals "insn", "curr".
3911
3912 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3913 (lra_set_insn_deleted): Likewise.
3914 (lra_delete_dead_insn): Likewise, and for local "prev".
3915 (new_insn_reg): Likewise for param "insn".
3916 (lra_set_insn_recog_data): Likewise.
3917 (lra_update_insn_recog_data): Likewise.
3918 (lra_set_used_insn_alternative): Likewise.
3919 (get_insn_freq): Likewise.
3920 (invalidate_insn_data_regno_info): Likewise.
3921 (lra_invalidate_insn_regno_info): Likewise.
3922 (lra_update_insn_regno_info): Likewise.
3923 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3924 vec<rtx_insn *>.
3925 (lra_push_insn_1): Strengthen param "insn" from rtx to
3926 rtx_insn *.
3927 (lra_push_insn): Likewise.
3928 (lra_push_insn_and_update_insn_regno_info): Likewise.
3929 (lra_pop_insn): Likewise for return type and local "insn".
3930 (push_insns): Likewise for params "from", "to", and local "insn".
3931 (setup_sp_offset): Likewise for params "from", "last" and locals
3932 "before", "insn".
3933 (lra_process_new_insns): Likewise for params "insn", "before",
3934 "after" and local "last".
3935 (struct sloc): Likewise for field "insn".
3936 (lra_former_scratch_operand_p): Likewise for param "insn".
3937 (remove_scratches): Likewise for locals "insn", "last".
3938 (check_rtl): Likewise for local "insn".
3939 (add_auto_inc_notes): Likewise for param "insn".
3940 (update_inc_notes): Likewise for local "insn".
3941 (lra): Replace NULL_RTX with NULL when referring to insn.
3942
3943 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3944
3945 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3946 to rtx_insn *.
3947 (resolve_reg_notes): Likewise.
3948 (resolve_simple_move): Likewise for return type, param "insn", and
3949 locals "insns", "minsn".
3950 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3951 (resolve_use): Likewise.
3952 (resolve_debug): Likewise.
3953 (find_decomposable_shift_zext): Likewise.
3954 (resolve_shift_zext): Likewise for return type, param "insn", and
3955 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3956 (decompose_multiword_subregs): Likewise for local "insn",
3957 "orig_insn", "decomposed_shift", "end".
3958
3959 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3960
3961 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3962 param "insns" from rtx to rtx_insn *.
3963
3964 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3965 rtx to rtx_insn *.
3966 (struct iv_to_split): Likewise.
3967 (loop_exit_at_end_p): Likewise for local "insn".
3968 (split_edge_and_insert): Likewise for param "insns".
3969 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3970 and locals "seq", "jump".
3971 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3972 "branch_code"; update invocations of compare_and_jump_seq to
3973 eliminate NULL_RTX in favor of NULL.
3974 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3975 rtx to rtx_insn *.
3976 (reset_debug_uses_in_loop): Likewise.
3977 (analyze_insn_to_expand_var): Likewise for param "insn".
3978 (analyze_iv_to_split_insn): Likewise.
3979 (analyze_insns_in_loop): Likewise for local "insn".
3980 (insert_base_initialization): Likewise for param
3981 "insn" and local "seq".
3982 (split_iv): Likewise for param "insn" and local "seq".
3983 (expand_var_during_unrolling): Likewise for param "insn".
3984 (insert_var_expansion_initialization): Likewise for local "seq".
3985 (combine_var_copies_in_loop_exit): Likewise.
3986 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3987 "insn".
3988 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3989 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3990 "next".
3991
3992 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3993
3994 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3995 rtx_insn *.
3996 (iv_analyze_result): Likewise.
3997 (iv_analyze_expr): Likewise.
3998 (biv_p): Likewise.
3999
4000 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
4001 local "def_insn" from rtx to rtx_insn *.
4002 (get_biv_step_1): Likewise for local "insn".
4003 (iv_analyze_expr): Likewise for param "insn".
4004 (iv_analyze_def): Likewise for local "insn".
4005 (iv_analyze_op): Likewise for param "insn".
4006 (iv_analyze): Likewise.
4007 (iv_analyze_result): Likewise.
4008 (biv_p): Likewise.
4009 (suitable_set_for_replacement): Likewise.
4010 (simplify_using_initial_values): Likewise for local "insn".
4011 (iv_number_of_iterations): Likewise for param "insn".
4012 (check_simple_exit): Add checked cast to rtx_insn when invoking
4013 iv_number_of_iterations for now (until get_condition is
4014 strengthened).
4015
4016 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
4017 "insn" from rtx to rtx_insn *.
4018 (analyze_insns_in_loop): Likewise for local "insn".
4019
4020 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4021
4022 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
4023 to rtx_insn *.
4024 (struct invariant): Likewise.
4025 (hash_invariant_expr_1): Likewise for param "insn".
4026 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
4027 (find_exits): Likewise for local "insn".
4028 (create_new_invariant): Likewise for param "insn".
4029 (check_dependencies): Likewise.
4030 (find_invariant_insn): Likewise.
4031 (record_uses): Likewise.
4032 (find_invariants_insn): Likewise.
4033 (find_invariants_bb): Likewise for local "insn".
4034 (get_pressure_class_and_nregs): Likewise for param "insn".
4035 (calculate_loop_reg_pressure): Likewise for local "insn".
4036
4037 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4038
4039 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
4040 to rtx_insn *.
4041 (add_test): Likewise for locals "seq", "jump".
4042 (doloop_modify): Likewise for locals "sequence", "jump_insn".
4043
4044 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4045
4046 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
4047 rtx_insn *.
4048 (rebuild_jump_labels_chain): Likewise for param "chain".
4049
4050 * cfgexpand.c (pass_expand::execute): Add checked cast to
4051 rtx_insn * when calling rebuild_jump_labels_chain in region where
4052 we know e->insns.r is non-NULL.
4053
4054 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
4055 rtx_insn *.
4056 (rebuild_jump_labels): Likewise.
4057 (rebuild_jump_labels_chain): Likewise for param "chain".
4058 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
4059 (init_label_info): Likewise for param "f".
4060 (maybe_propagate_label_ref): Likewise for params "jump_insn",
4061 "prev_nonjump_insn".
4062 (mark_all_labels): Likewise for param "f" and locals "insn",
4063 "prev_nonjump_insn".
4064
4065 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4066
4067 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
4068 from rtx to rtx_insn *insn.
4069 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
4070 (ira_add_allocno_copy): Likewise.
4071 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
4072 rtx to rtx_insn *.
4073 (ira_create_copy): Likewise.
4074 (ira_add_allocno_copy): Likewise.
4075 (create_bb_allocnos): Likewise for local "insn".
4076 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
4077 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
4078 process_regs_for_copy for rtx_insn * param.
4079 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
4080 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
4081 process_regs_for_copy for rtx_insn * param.
4082 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
4083 * ira-costs.c (record_reg_classes): Likewise for param "insn".
4084 (record_operand_costs): Likewise.
4085 (scan_one_insn): Likewise for return type, and for param "insn".
4086 (process_bb_for_costs): Likewise for local "insn".
4087 (process_bb_node_for_hard_reg_moves): Likewise.
4088 * ira-emit.c (struct move): Likewise for field "insn".
4089 (create_move): Eliminate use of NULL_RTX when dealing with an
4090 rtx_insn *.
4091 (emit_move_list): Strengthen return type and locals "result",
4092 "insn" from rtx to rtx_insn *insn.
4093 (emit_moves): Likewise for locals "insns", "tmp".
4094 (ira_emit): Likewise for local "insn".
4095 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4096 "insn".
4097 (find_call_crossed_cheap_reg): Likewise.
4098 (process_bb_node_lives): Likewise for local "insn".
4099 * ira.c (decrease_live_ranges_number): Likewise.
4100 (compute_regs_asm_clobbered): Likewise.
4101 (build_insn_chain): Likewise.
4102 (find_moveable_pseudos): Likewise, also locals "def_insn",
4103 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4104 to rtx_insn **. Add a checked cast when assigning from
4105 "closest_use" into closest_uses array in a region where we know
4106 it's a non-NULL insn.
4107 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4108 to rtx_insn *.
4109 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4110 "last_interesting_insn", "uin".
4111 (move_unallocated_pseudos): Likewise for locals "def_insn",
4112 "move_insn", "newinsn".
4113
4114 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4115
4116 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4117 Strengthen locals "done_label", "do_error" from rtx to
4118 rtx_code_label *.
4119 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4120 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4121 rtx_code_label *.
4122 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4123 "done_label", "do_error" to rtx_code_label * and local "last" to
4124 rtx_insn *.
4125 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4126 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4127 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4128 "after_lopart_neg", "do_overflow", "hipart_different" to
4129 rtx_code_label * and local "last" to rtx_insn *.
4130
4131 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4132
4133 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4134 "insn" and "move_insn" from rtx to rtx_insn *.
4135
4136 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4137
4138 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4139 rtx_insn *.
4140 (cheap_bb_rtx_cost_p): Likewise.
4141 (first_active_insn): Likewise for return type and local "insn".
4142 (last_active_insn): Likewise for return type and locals "insn",
4143 "head".
4144 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4145 "insn_b".
4146 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4147 "seq".
4148 (noce_try_move): Likewise for local "seq".
4149 (noce_try_store_flag): Likewise.
4150 (noce_try_store_flag_constants): Likewise.
4151 (noce_try_addcc): Likewise.
4152 (noce_try_store_flag_mask): Likewise.
4153 (noce_try_cmove): Likewise.
4154 (noce_try_minmax): Likewise.
4155 (noce_try_abs): Likewise.
4156 (noce_try_sign_mask): Likewise.
4157 (noce_try_bitop): Likewise.
4158 (noce_can_store_speculate_p): Likewise for local "insn".
4159 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4160 seq".
4161 (check_cond_move_block): Likewise for local "insn".
4162 (cond_move_convert_if_block): Likewise.
4163 (cond_move_process_if_block): Likewise for locals "seq",
4164 "loc_insn".
4165 (noce_find_if_block): Likewise for local "jump".
4166 (merge_if_block): Likewise for local "last".
4167 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4168 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4169 (block_has_only_trap): Likewise for return type and local "trap".
4170 (find_if_case_1): Likewise for local "jump".
4171 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4172 "insn".
4173
4174 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4175
4176 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4177 "last_insn", "loop_end" from rtx to rtx_insn *.
4178
4179 * hw-doloop.c (scan_loop): Likewise for local "insn".
4180 (discover_loop): Likewise for param "tail_insn".
4181 (discover_loops): Likewise for local "tail".
4182
4183 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4184 cast to rtx_insn * when assigning from an rtx local to a
4185 hwloop_info's "last_insn" field.
4186
4187 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4188
4189 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4190 (add_delay_dependencies): Strengthen local "pro" from rtx to
4191 rtx_insn *.
4192 (recompute_todo_spec): Likewise.
4193 (dep_cost_1): Likewise for locals "insn", "used".
4194 (schedule_insn): Likewise for local "dbg".
4195 (schedule_insn): Likewise for locals "pro", "next".
4196 (unschedule_insns_until): Likewise for local "con".
4197 (restore_pattern): Likewise for local "next".
4198 (estimate_insn_tick): Likewise for local "pro".
4199 (resolve_dependencies): Likewise for local "next".
4200 (fix_inter_tick): Likewise.
4201 (fix_tick_ready): Likewise for local "pro".
4202 (add_to_speculative_block): Likewise for locals "check", "twin",
4203 "pro".
4204 (sched_extend_bb): Likewise for locals "end", "insn".
4205 (init_before_recovery): Likewise for local "x".
4206 (sched_create_recovery_block): Likewise for local "barrier".
4207 (create_check_block_twin): Likewise for local "pro".
4208 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4209 "consumer".
4210 (unlink_bb_notes): Update for change to type of bb_header.
4211 Strengthen locals "prev", "label", "note", "next" from rtx to
4212 rtx_insn *.
4213 (clear_priorities): Likewise for local "pro".
4214
4215 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4216
4217 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4218 rtx_insn *.
4219 (test_insn): Likewise for this global.
4220 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4221 const rtx_insn *.
4222 (oprs_anticipatable_p): Likewise.
4223 (oprs_available_p): Likewise.
4224 (insert_expr_in_table): Strengthen param "insn" from rtx to
4225 rtx_insn *.
4226 (hash_scan_set): Likewise.
4227 (hash_scan_clobber): Likewise.
4228 (hash_scan_call): Likewise.
4229 (hash_scan_insn): Likewise.
4230 (compute_hash_table_work): Likewise for local "insn".
4231 (process_insert_insn): Likewise for return type and local "pat".
4232 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4233 "pat", "pat_end", "maybe_cc0_setter".
4234 (pre_edge_insert): Likewise for local "insn".
4235 (pre_insert_copy_insn): Likewise for param "insn".
4236 (pre_insert_copies): Likewise for local "insn".
4237 (struct set_data): Likewise for field "insn".
4238 (single_set_gcse): Likewise for param "insn".
4239 (gcse_emit_move_after): Likewise.
4240 (pre_delete): Likewise for local "insn".
4241 (update_bb_reg_pressure): Likewise for param "from" and local
4242 "insn".
4243 (should_hoist_expr_to_dom): Likewise for param "from".
4244 (hoist_code): Likewise for local "insn".
4245 (get_pressure_class_and_nregs): Likewise for param "insn".
4246 (calculate_bb_reg_pressure): Likewise for local "insn".
4247 (compute_ld_motion_mems): Likewise.
4248
4249 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4250
4251 * genpeep.c (main): Rename param back from "uncast_ins1" to
4252 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4253 checked cast.
4254
4255 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4256
4257 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4258
4259 PR target/62195
4260 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4261 documentation to state it is only for VSX operations.
4262
4263 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4264 constraint only active if VSX.
4265
4266 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4267 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4268 (lfiwzx): Likewise.
4269
4270 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4271
4272 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4273 Strengthen local "insn" from rtx to rtx_insn *.
4274 (use_killed_between): Likewise for param "target_insn".
4275 (all_uses_available_at): Likewise for param "target_insn" and
4276 local "next".
4277 (update_df_init): Likewise for params "def_insn", "insn".
4278 (update_df): Likewise for param "insn".
4279 (try_fwprop_subst): Likewise for param "def_insn" and local
4280 "insn".
4281 (free_load_extend): Likewise for param "insn".
4282 (forward_propagate_subreg): Likewise for param "def_insn" and
4283 local "use_insn".
4284 (forward_propagate_asm): Likewise for param "def_insn" and local
4285 "use_insn".
4286 (forward_propagate_and_simplify): Likewise for param "def_insn"
4287 and local "use_insn".
4288 (forward_propagate_into): Likewise for locals "def_insn" and
4289 "use_insn".
4290
4291 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4292
4293 * function.c (emit_initial_value_sets): Strengthen local "seq"
4294 from rtx to rtx_insn *.
4295 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4296 local "seq".
4297 (instantiate_virtual_regs): Likewise for local "insn".
4298 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4299 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4300 (expand_function_end): Likewise for locals "insn" and "seq".
4301 (epilogue_done): Likewise for local "insn".
4302 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4303 "last", "trial".
4304 (reposition_prologue_and_epilogue_notes): Likewise for locals
4305 "insn", "last", "note", "first".
4306 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4307 (pass_match_asm_constraints::execute): Likewise for local "insn".
4308
4309 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4310
4311 * output.h (final_scan_insn): Strengthen return type from rtx to
4312 rtx_insn *.
4313 (final_forward_branch_p): Likewise for param.
4314 (current_output_insn): Likewise for this global.
4315
4316 * final.c (rtx debug_insn): Likewise for this variable.
4317 (current_output_insn): Likewise.
4318 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4319 adding "insn" back in as an rtx_insn * with a checked cast, so
4320 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4321 first param.
4322 (compute_alignments): Strengthen local "label" from rtx to
4323 rtx_insn *.
4324 (shorten_branches): Rename param from "first" to "uncast_first",
4325 introducing a new local rtx_insn * "first" using a checked cast to
4326 effectively strengthen "first" from rtx to rtx_insn * without
4327 affecting the type signature. Strengthen locals "insn", "seq",
4328 "next", "label" from rtx to rtx_insn *.
4329 (change_scope): Strengthen param "orig_insn" and local "insn" from
4330 rtx to rtx_insn *.
4331 (final_start_function): Rename param from "first" to "uncast_first",
4332 introducing a new local rtx_insn * "first" using a checked cast to
4333 effectively strengthen "first" from rtx to rtx_insn * without
4334 affecting the type signature. Strengthen local "insn" from rtx to
4335 rtx_insn *.
4336 (dump_basic_block_info): Strengthen param "insn" from rtx to
4337 rtx_insn *.
4338 (final): Rename param from "first" to "uncast_first",
4339 introducing a new local rtx_insn * "first" using a checked cast to
4340 effectively strengthen "first" from rtx to rtx_insn * without
4341 affecting the type signature. Strengthen locals "insn", "next"
4342 from rtx to rtx_insn *.
4343 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4344 rtx_insn *.
4345 (call_from_call_insn): Strengthen param "insn" from rtx to
4346 rtx_call_insn *.
4347 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4348 introducing a new local rtx_insn * "insn" using a checked cast to
4349 effectively strengthen "insn" from rtx to rtx_insn * without
4350 affecting the type signature. Strengthen return type and locals
4351 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4352 now-redundant checked cast to rtx_insn * from both invocations of
4353 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4354 introducing a local "call_insn" for use when invoking
4355 call_from_call_insn.
4356 (notice_source_line): Strengthen param "insn" from rtx to
4357 rtx_insn *.
4358 (leaf_function_p): Likewise for local "insn".
4359 (final_forward_branch_p): Likewise.
4360 (leaf_renumber_regs): Likewise for param "first".
4361 (rest_of_clean_state): Likewise for locals "insn" and "next".
4362 (self_recursive_call_p): Likewise for param "insn".
4363 (collect_fn_hard_reg_usage): Likewise for local "insn".
4364 (get_call_fndecl): Likewise for param "insn".
4365 (get_call_cgraph_rtl_info): Likewise.
4366 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4367 introducing a new local rtx_insn * "insn" using a checked cast to
4368 effectively strengthen "insn" from rtx to rtx_insn * without
4369 affecting the type signature.
4370
4371 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4372 cast when assigning from param "insn" to current_output_insn.
4373 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4374 so that we can assign it back to current_output_insn.
4375
4376 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4377
4378 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4379 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4380 atmxt540s and atmxt540sreva devices.
4381 * config/avr/avr-tables.opt: Regenerate.
4382 * config/avr/t-multilib: Regenerate.
4383 * doc/avr-mmcu.texi: Regenerate.
4384
4385 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4386
4387 * expr.c (convert_move): Strengthen local "insns" from rtx to
4388 rtx_insn *.
4389 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4390 "top_label" from rtx to rtx_code_label *.
4391 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4392 rtx_insn *.
4393 (emit_single_push_insn): Likewise for locals "prev", "last".
4394 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4395 to rtx_code_label *.
4396 (store_constructor): Likewise for locals "loop_start", "loop_end".
4397 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4398 rtx_insn *.
4399 (expand_expr_real_2): Likewise.
4400 (expand_expr_real_1): Strengthen local "label" from rtx to
4401 rtx_code_label *.
4402
4403 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4404
4405 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4406 from rtx to rtx_insn *.
4407 (store_bit_field_1): Likewise.
4408 (extract_bit_field_1): Likewise.
4409 (expand_mult_const): Likewise for local "insns".
4410 (expmed_mult_highpart): Strengthen local "label" from rtx to
4411 rtx_code_label *.
4412 (expand_smod_pow2): Likewise.
4413 (expand_sdiv_pow2): Likewise.
4414 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4415 rtx_insn *. Strengthen locals "label", "label1", "label2",
4416 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4417 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4418 (emit_store_flag): Likewise.
4419 (emit_store_flag_force): Strengthen local "label" from rtx to
4420 rtx_code_label *.
4421 (do_cmp_and_jump): Likewise for param "label".
4422
4423 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4424
4425 * explow.c (force_reg): Strengthen local "insn" from rtx to
4426 rtx_insn *.
4427 (adjust_stack_1): Likewise.
4428 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4429 "final_label", "available_label", "space_available" from rtx to
4430 rtx_code_label *.
4431 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4432 (anti_adjust_stack_and_probe): Likewise.
4433
4434 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4435
4436 * except.h (sjlj_emit_function_exit_after): Strengthen param
4437 "after" from rtx to rtx_insn *. This is only called with
4438 result of get_last_insn (in function.c) so type-change should be
4439 self-contained.
4440
4441 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4442 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4443 to rtx_insn *. These fields are only used from except.c so this
4444 type-change should be self-contained to this patch.
4445
4446 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4447 local "last" from rtx to rtx_insn *.
4448 (dw2_build_landing_pads): Likewise for local "seq".
4449 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4450 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4451 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4452 rtx to rtx_insn *.
4453 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4454 to rtx_insn *.
4455 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4456 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4457 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4458 referring to an insn. Strengthen local "dispatch_label" from
4459 rtx to rtx_code_label *.
4460 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4461 rtx_insn *.
4462 (expand_eh_return): Strengthen local "around_label" from
4463 rtx to rtx_code_label *.
4464 (convert_to_eh_region_ranges): Strengthen locals "iter",
4465 "last_action_insn", "first_no_action_insn",
4466 "first_no_action_insn_before_switch",
4467 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4468
4469 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4470
4471 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4472 from rtx to rtx_insn *.
4473 (cached_next_real_insn): Likewise.
4474 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4475 working with insns.
4476 (dwarf2out_var_location): Strengthen locals "next_real",
4477 "next_note", "expected_next_loc_note", "last_start", "insn" from
4478 rtx to rtx_insn *.
4479
4480 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4481
4482 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4483 from rtx to rtx_insn *.
4484 (create_pseudo_cfg): Likewise for local "insn".
4485
4486 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4487
4488 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4489 from rtx to rtx_insn *.
4490 (df_bb_regno_last_def_find): Likewise.
4491
4492 * df-problems.c (df_rd_bb_local_compute): Likewise.
4493 (df_lr_bb_local_compute): Likewise.
4494 (df_live_bb_local_compute): Likewise.
4495 (df_chain_remove_problem): Likewise.
4496 (df_chain_create_bb): Likewise.
4497 (df_word_lr_bb_local_compute): Likewise.
4498 (df_remove_dead_eq_notes): Likewise for param "insn".
4499 (df_note_bb_compute): Likewise for local "insn".
4500 (simulate_backwards_to_point): Likewise.
4501 (df_md_bb_local_compute): Likewise.
4502
4503 * df-scan.c (df_scan_free_bb_info): Likewise.
4504 (df_scan_start_dump): Likewise.
4505 (df_scan_start_block): Likewise.
4506 (df_install_ref_incremental): Likewise for local "insn".
4507 (df_insn_rescan_all): Likewise.
4508 (df_reorganize_refs_by_reg_by_insn): Likewise.
4509 (df_reorganize_refs_by_insn_bb): Likewise.
4510 (df_recompute_luids): Likewise.
4511 (df_bb_refs_record): Likewise.
4512 (df_update_entry_exit_and_calls): Likewise.
4513 (df_bb_verify): Likewise.
4514
4515 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4516
4517 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4518 "first_note" from rtx to rtx_insn *.
4519 (get_node_of_insn): Likewise for param 2 "insn".
4520 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4521
4522 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4523 rtx_insn *.
4524 (mem_write_insn_p): Likewise.
4525 (mem_access_insn_p): Likewise.
4526 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4527 (def_has_ccmode_p): Likewise for param "insn".
4528 (add_cross_iteration_register_deps): Likewise for locals
4529 "def_insn" and "use_insn".
4530 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4531 (build_intra_loop_deps): Likewise for local "src_insn".
4532 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4533 to rtx_insn *.
4534 (get_node_of_insn): Likewise for param "insn".
4535
4536 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4537
4538 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4539 (deletable_insn_p): Strengthen param "insn" from rtx to
4540 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4541 find_call_stack_args, since this is guarded by CALL_P (insn).
4542 (marked_insn_p): Strengthen param "insn" from rtx to
4543 rtx_insn *.
4544 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4545 invoking find_call_stack_args, since this is guarded by
4546 CALL_P (insn).
4547 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4548 rtx_insn *; we know this is an insn since this was called by
4549 mark_nonreg_stores.
4550 (mark_nonreg_stores_2): Likewise.
4551 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4552 rtx_insn *.
4553 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4554 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4555 to rtx_insn *.
4556 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4557 from rtx to rtx_insn *.
4558 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4559 "next", "ref_insn".
4560 (delete_unmarked_insns): Likewise for locals "insn", "next".
4561 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4562 (mark_reg_dependencies): Likewise for param "insn".
4563 (rest_of_handle_ud_dce): Likewise for local "insn".
4564 (word_dce_process_block): Likewise.
4565 (dce_process_block): Likewise.
4566
4567 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4568
4569 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4570 from rtx to rtx_insn *.
4571 (struct change_cc_mode_args): Likewise for field "insn".
4572 (this_insn): Strengthen from rtx to rtx_insn *.
4573 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4574 with insn.
4575 (validate_canon_reg): Strengthen param "insn" from rtx to
4576 rtx_insn *.
4577 (canon_reg): Likewise.
4578 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4579 dealing with insn.
4580 (record_jump_equiv): Strengthen param "insn" from rtx to
4581 rtx_insn *.
4582 (try_back_substitute_reg): Likewise, also for locals "prev",
4583 "bb_head".
4584 (find_sets_in_insn): Likewise for param "insn".
4585 (canonicalize_insn): Likewise.
4586 (cse_insn): Likewise. Add a checked cast.
4587 (invalidate_from_clobbers): Likewise for param "insn".
4588 (invalidate_from_sets_and_clobbers): Likewise.
4589 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4590 dealing with insn.
4591 (cse_prescan_path): Strengthen local "insn" from rtx to
4592 rtx_insn *.
4593 (cse_extended_basic_block): Likewise for locals "insn" and
4594 "prev_insn".
4595 (cse_main): Likewise for param "f".
4596 (check_for_label_ref): Likewise for local "insn".
4597 (set_live_p): Likewise for second param ("insn").
4598 (insn_live_p): Likewise for first param ("insn") and for local
4599 "next".
4600 (cse_change_cc_mode_insn): Likewise for first param "insn".
4601 (cse_change_cc_mode_insns): Likewise for first and second params
4602 "start" and "end".
4603 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4604 and "end".
4605 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4606 "cc_src_insn".
4607
4608 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4609 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4610 Anna Tikhonova <anna.tikhonova@intel.com>
4611 Ilya Tocar <ilya.tocar@intel.com>
4612 Andrey Turetskiy <andrey.turetskiy@intel.com>
4613 Ilya Verbin <ilya.verbin@intel.com>
4614 Kirill Yukhin <kirill.yukhin@intel.com>
4615 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4616
4617 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4618 New.
4619 * config/i386/sse.md
4620 (define_mode_iterator VI248_AVX2): Delete.
4621 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4622 (define_mode_iterator VI48_AVX2): Ditto.
4623 (define_insn <shift_insn><mode>3): Delete.
4624 (define_insn "<shift_insn><mode>3<mask_name>" with
4625 VI2_AVX2_AVX512BW): New.
4626 (define_insn "<shift_insn><mode>3<mask_name>" with
4627 VI48_AVX2): Ditto.
4628
4629 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4630 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4631 Anna Tikhonova <anna.tikhonova@intel.com>
4632 Ilya Tocar <ilya.tocar@intel.com>
4633 Andrey Turetskiy <andrey.turetskiy@intel.com>
4634 Ilya Verbin <ilya.verbin@intel.com>
4635 Kirill Yukhin <kirill.yukhin@intel.com>
4636 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4637
4638 * config/i386/sse.md
4639 (define_mode_iterator VI4F_BRCST32x2): New.
4640 (define_mode_attr 64x2_mode): Ditto.
4641 (define_mode_attr 32x2mode): Ditto.
4642 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4643 with VI4F_BRCST32x2): Ditto.
4644 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4645 with V16FI mode iterator): Ditto.
4646 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4647 with V16FI): Ditto.
4648 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4649 with VI8F_BRCST64x2): Ditto.
4650
4651 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4652 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4653 Anna Tikhonova <anna.tikhonova@intel.com>
4654 Ilya Tocar <ilya.tocar@intel.com>
4655 Andrey Turetskiy <andrey.turetskiy@intel.com>
4656 Ilya Verbin <ilya.verbin@intel.com>
4657 Kirill Yukhin <kirill.yukhin@intel.com>
4658 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4659
4660 * config/i386/sse.md
4661 (define_mode_iterator VI8_AVX512VL): New.
4662 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4663
4664 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4665
4666 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4667 (define_mode_iterator V48_AVX512VL): New.
4668 (define_mode_iterator V12_AVX512VL): Ditto.
4669 (define_insn <avx512>_load<mode>_mask): Split into two similar
4670 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4671 Refactor output template.
4672 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4673
4674 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4675
4676 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4677 rtx_insn *.
4678 (reg_available_p): Likewise for param "insn".
4679 (insert_set_in_table): Likewise.
4680 (hash_scan_set): Likewise.
4681 (hash_scan_insn): Likewise.
4682 (make_set_regs_unavailable): Likewise.
4683 (compute_hash_table_work): Likewise for local "insn".
4684 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4685 const rtx_insn *.
4686 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4687 (try_replace_reg): Likewise.
4688 (find_avail_set): Likewise.
4689 (cprop_jump): Likewise for params "setcc", "jump".
4690 (constprop_register): Likewise for param "insn".
4691 (cprop_insn): Likewise.
4692 (do_local_cprop): Likewise.
4693 (local_cprop_pass): Likewise for local "insn".
4694 (bypass_block): Likewise for params "setcc" and "jump".
4695 (bypass_conditional_jumps): Likewise for locals "setcc" and
4696 "insn".
4697 (one_cprop_pass): Likewise for local "insn".
4698
4699 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4700
4701 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4702 from rtx to rtx_insn *.
4703 (struct comparison): Likewise, also for field "prev_clobber".
4704 (conforming_compare): Likewise for param "insn".
4705 (arithmetic_flags_clobber_p): Likewise.
4706 (find_flags_uses_in_insn): Likewise.
4707 (find_comparison_dom_walker::before_dom_children): Likewise for
4708 locals "insn", "next", "last_clobber".
4709 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4710
4711 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4712
4713 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4714 "insn" from rtx to rtx_insn *.
4715 (single_set_for_csa): Likewise for param "insn".
4716 (record_one_stack_ref): Likewise.
4717 (try_apply_stack_adjustment): Likewise.
4718 (struct record_stack_refs_data): Likewise for field "insn".
4719 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4720 (prev_active_insn_bb): Likewise for return type and param "insn".
4721 (next_active_insn_bb): Likewise.
4722 (force_move_args_size_note): Likewise for params "prev" and "last"
4723 and locals "test", "next_candidate", "prev_candidate".
4724 (combine_stack_adjustments_for_block): Strengthen locals
4725 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4726 rtx_insn *.
4727
4728 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4729
4730 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4731 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4732 (subst_insn): Likewise for this variable.
4733 (added_links_insn): Likewise.
4734 (struct insn_link): Likewise for field "insn".
4735 (alloc_insn_link): Likewise for param "insn".
4736 (struct undobuf): Likewise for field "other_insn".
4737 (find_single_use): Likewise for param "insn" and local "next".
4738 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4739 (delete_noop_moves): Likewise for locals "insn", "next".
4740 (create_log_links): Likewise for locals "insn", "use_insn".
4741 Strengthen local "next_use" from rtx * to rtx_insn **.
4742 (insn_a_feeds_b): Likewise for params "a", "b".
4743 (combine_instructions): Likewise for param "f" and locals "insn",
4744 "next", "prev", "first", "last_combined_insn", "link", "link1",
4745 "temp". Replace use of NULL_RTX with NULL when referring to
4746 insns.
4747 (setup_incoming_promotions): Likewise for param "first"
4748 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4749 (can_combine_p): Likewise for params "insn", "i3", "pred",
4750 "pred2", "succ", "succ2" and for local "p".
4751 (combinable_i3pat): Likewise for param "i3".
4752 (cant_combine_insn_p): Likewise for param "insn".
4753 (likely_spilled_retval_p): Likewise.
4754 (adjust_for_new_dest): Likewise.
4755 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4756 (try_combine): Likewise for return type and for params "i3", "i2",
4757 "i1", "i0", "last_combined_insn", and for locals "insn",
4758 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4759 "i0_insn". Eliminate local "tem" in favor of new locals
4760 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4761 checked cast for now to rtx_insn * on the return type of
4762 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4763 insns.
4764 (find_split_point): Strengthen param "insn" from rtx to
4765 rtx_insn *.
4766 (simplify_set): Likewise for local "other_insn".
4767 (recog_for_combine): Likewise for param "insn".
4768 (record_value_for_reg): Likewise.
4769 (record_dead_and_set_regs_1): Likewise for local
4770 "record_dead_insn".
4771 (record_dead_and_set_regs): Likewise for param "insn".
4772 (record_promoted_value): Likewise.
4773 (check_promoted_subreg): Likewise.
4774 (get_last_value_validate): Likewise.
4775 (reg_dead_at_p): Likewise.
4776 (move_deaths): Likewise for param "to_insn".
4777 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4778 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4779 in favor of new locals "tem_note" and "tem_insn", the latter being
4780 an rtx_insn *.
4781 (distribute_links): Strengthen locals "place", "insn" from rtx to
4782 rtx_insn *.
4783
4784 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4785
4786 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4787 than a const_rtx.
4788 (can_delete_label_p): Require a const rtx_code_label * rather than
4789 a const_rtx.
4790 (delete_insn): Add checked cast to rtx_code_label * when we know
4791 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4792 rtx to rtx_insn *.
4793 (delete_insn_chain): Strengthen locals "prev" and "current" from
4794 rtx to rtx_insn *. Add a checked cast when assigning from
4795 "finish" (strengthening the params will come later). Add a
4796 checked cast to rtx_note * in region where we know
4797 NOTE_P (current).
4798 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4799 rtx_insn *.
4800 (compute_bb_for_insn): Likewise.
4801 (free_bb_for_insn): Likewise for local "insn".
4802 (compute_bb_for_insn): Likewise.
4803 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4804 local "insn" from rtx to rtx_insn *
4805 (flow_active_insn_p): Require a const rtx_insn * rather than a
4806 const_rtx.
4807 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4808 rtx_insn *.
4809 (can_fallthru): Likewise for locals "insn" and "insn2".
4810 (bb_note): Likewise for local "note".
4811 (first_insn_after_basic_block_note): Likewise for local "note" and
4812 for return type.
4813 (rtl_split_block): Likewise for locals "insn" and "next".
4814 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4815 "end".
4816 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4817 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4818 "prev", "tmp".
4819 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4820 them), "kill_from", "barrier", "new_insn".
4821 (patch_jump_insn): Likewise for params "insn", "old_label".
4822 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4823 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4824 "old_label", "new_label".
4825 (rtl_tidy_fallthru_edge): Likewise for local "q".
4826 (rtl_split_edge): Likewise for locals "before", "last".
4827 (commit_one_edge_insertion): Likewise for locals "before",
4828 "after", "insns", "tmp", "last", adding a checked cast where
4829 currently necessary.
4830 (commit_edge_insertions): Likewise.
4831 (rtl_dump_bb): Likewise for locals "insn", "last".
4832 (print_rtl_with_bb): Likewise for local "x".
4833 (rtl_verify_bb_insns): Likewise for local "x".
4834 (rtl_verify_bb_pointers): Likewise for local "insn".
4835 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4836 "head", "end".
4837 (rtl_verify_fallthru): Likewise for local "insn".
4838 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4839 (purge_dead_edges): Likewise for local "insn".
4840 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4841 (skip_insns_after_block): Likewise for return type and for locals
4842 "insn", "last_insn", "next_head", "prev".
4843 (record_effective_endpoints): Likewise for locals "next_insn",
4844 "insn", "end".
4845 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4846 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4847 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4848 (duplicate_insn_chain): For now, add checked cast from rtx to
4849 rtx_insn * when returning insn.
4850 (cfg_layout_duplicate_bb): Likewise for local "insn".
4851 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4852 "prev", "remaints".
4853 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4854 (rtl_block_empty_p): Likewise.
4855 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4856 "split_point", "last".
4857 (rtl_block_ends_with_call_p): Likewise for local "insn".
4858 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4859 const rtx_insn *.
4860 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4861 "split_at_insn" from rtx to rtx_insn *.
4862 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4863 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4864 to const rtx_insn *.
4865 (rtl_account_profile_record): Likewise.
4866
4867 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4868
4869 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4870 rtx to rtx_insn *.
4871 (average_num_loop_insns): Likewise.
4872 (init_set_costs): Likewise for local "seq".
4873 (seq_cost): Likewise for param "seq", from const_rtx to const
4874 rtx_insn *.
4875
4876 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4877
4878 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4879 rtx to rtx_insn *.
4880
4881 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4882
4883 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4884 "f1" and "f2" from rtx * to rtx_insn **.
4885 (flow_find_head_matching_sequence): Likewise.
4886
4887 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4888 "cbranch_insn" from rtx to rtx_insn *.
4889 (thread_jump): Likewise for local "insn".
4890 (try_forward_edges): Likewise for local "last".
4891 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4892 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4893 "real_b_end".
4894 (can_replace_by): Likewise for params "i1", "i2".
4895 (old_insns_match_p): Likewise.
4896 (merge_notes): Likewise.
4897 (walk_to_nondebug_insn): Likewise for param "i1".
4898 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4899 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4900 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4901 (flow_find_head_matching_sequence): Strengthen params "f1" and
4902 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4903 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4904 rtx_insn *.
4905 (outgoing_edges_match): Likewise for locals "last1", "last2".
4906 (try_crossjump_to_edge): Likewise for local "insn".
4907 Replace call to for_each_rtx with for_each_rtx_in_insn.
4908
4909 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4910 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4911 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4912 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4913 (try_optimize_cfg): Strengthen local "last" from rtx to
4914 rtx_insn *.
4915 (delete_dead_jumptables): Likewise for locals "insn", "next",
4916 "label".
4917
4918 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4919 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4920 "rtx else_first_tail", to reflect the basic-block.h changes above.
4921
4922 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4923
4924 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4925 rtx_insn *.
4926 (purge_dead_tablejump_edges): Likewise.
4927 (find_bb_boundaries): Likewise for locals "insn", "end",
4928 "flow_transfer_insn".
4929
4930 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4931
4932 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4933 "ins" and "prev" from rtx to rtx_insn *.
4934
4935 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4936
4937 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4938 rtx_insn *.
4939 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4940 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4941 "scan_start".
4942 (load_register_parameters): Likewise for local "before_arg".
4943 (check_sibcall_argument_overlap): Likewise for param "insn".
4944 (expand_call): Likewise for locals "normal_call_insns",
4945 "tail_call_insns", "insns", "before_call", "after_args",
4946 "before_arg", "last", "prev". Strengthen one of the "last" from
4947 rtx to rtx_call_insn *.
4948 (fixup_tail_calls): Strengthen local "insn" from rtx to
4949 rtx_insn *.
4950 (emit_library_call_value_1): Likewise for locals "before_call" and
4951 "last".
4952
4953 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4954
4955 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4956 and "last" from rtx to rtx_insn *.
4957 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4958 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4959 rtx_call_insn *.
4960 (expand_errno_check): Strengthen local "lab" from rtx to
4961 rtx_code_label *.
4962 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4963 rtx_insn *.
4964 (expand_builtin_mathfn_2): Likewise.
4965 (expand_builtin_mathfn_ternary): Likewise.
4966 (expand_builtin_mathfn_3): Likewise.
4967 (expand_builtin_interclass_mathfn): Likewise for local "last".
4968 (expand_builtin_int_roundingfn): Likewise for local "insns".
4969 (expand_builtin_int_roundingfn_2): Likewise.
4970 (expand_builtin_strlen): Likewise for local "before_strlen".
4971 (expand_builtin_strncmp): Likewise for local "seq".
4972 (expand_builtin_signbit): Likewise for local "last".
4973 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4974 from rtx to rtx_code_label *.
4975 (expand_stack_restore): Strengthen local "prev" from rtx to
4976 rtx_insn *.
4977
4978 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4979
4980 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4981 to rtx_insn *.
4982 (struct btr_def_s): Likewise.
4983 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4984 const rtx_insn *.
4985 (add_btr_def): Likewise.
4986 (new_btr_user): Likewise.
4987 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4988 rtx to rtx_insn *.
4989 (link_btr_uses): Likewise.
4990 (move_btr_def): Likewise for locals "insp", "old_insn",
4991 "new_insn". Add checked cast to rtx_insn * for now on result of
4992 gen_move_insn.
4993 (can_move_up): Strengthen param "insn" from const_rtx to
4994 const rtx_insn *.
4995
4996 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4997
4998 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4999 rtx_insn *.
5000 (get_uncond_jump_length): Likewise for locals "label", "jump".
5001 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
5002 "jump", "insn".
5003 (add_labels_and_missing_jumps): Likewise for local "new_jump".
5004 (fix_up_fall_thru_edges): Likewise for local "old_jump".
5005 (find_jump_block): Likewise for local "insn".
5006 (fix_crossing_conditional_branches): Likewise for locals
5007 "old_jump", "new_jump".
5008 (fix_crossing_unconditional_branches): Likewise for locals
5009 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
5010 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
5011
5012 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5013
5014 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
5015 rtx to rtx_insn *.
5016 (struct mem_insn): Likewise for field "insn".
5017 (reg_next_use): Strengthen from rtx * to rtx_insn **.
5018 (reg_next_inc_use): Likewise.
5019 (reg_next_def): Likewise.
5020 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
5021 from rtx to rtx_insn *.
5022 (move_insn_before): Likewise for param "next_insn" and local "insns".
5023 (attempt_change): Likewise for local "mov_insn".
5024 (try_merge): Likewise for param "last_insn".
5025 (get_next_ref): Likewise for return type and local "insn".
5026 Strengthen param "next_array" from rtx * to rtx_insn **.
5027 (parse_add_or_inc): Strengthen param "insn" from rtx to
5028 rtx_insn *.
5029 (find_inc): Likewise for locals "insn" and "other_insn" (three of
5030 the latter).
5031 (merge_in_block): Likewise for locals "insn", "curr",
5032 "other_insn".
5033 (pass_inc_dec::execute): Update allocations of the arrays to
5034 reflect the stronger types.
5035
5036 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5037
5038 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
5039 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
5040 from rtx to rtx_code_label *.
5041
5042 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5043
5044 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
5045 to rtx_insn *.
5046
5047 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5048
5049 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
5050 generated a warning and prevented bootstrapping the compiler.
5051
5052 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5053
5054 * rtl.h (delete_related_insns): Strengthen return type from rtx to
5055 rtx_insn *.
5056
5057 * jump.c (delete_related_insns): Likewise, also for locals "next"
5058 and "prev".
5059
5060 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5061
5062 * genautomata.c (output_internal_insn_latency_func): When writing
5063 the function "internal_insn_latency" to insn-automata.c,
5064 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
5065 allowing the optional guard function of (define_bypass) clauses to
5066 expect a pair of rtx_insn *, rather than a pair of rtx.
5067 (output_insn_latency_func): When writing the function
5068 "insn_latency", add an "uncast_" prefix to params "insn" and
5069 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
5070 using checked casts from the params, thus enabling the above
5071 change to the generated "internal_insn_latency" function.
5072
5073 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
5074
5075 PR tree-optimization/62091
5076 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
5077 handle correctly arrays.
5078 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
5079 inheritance binfos.
5080 (record_known_type): Walk into inner type.
5081 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
5082 condition on no type changes.
5083
5084 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5085
5086 * genattrtab.c (write_attr_get): Within the generated get_attr_
5087 functions, rename param "insn" to "uncast_insn" and reintroduce
5088 "insn" as an local rtx_insn * using a checked cast, so that "insn"
5089 is an rtx_insn * within insn-attrtab.c
5090
5091 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5092
5093 * output.h (peephole): Strengthen return type from rtx to
5094 rtx_insn *.
5095 * rtl.h (delete_for_peephole): Likewise for both params.
5096 * genpeep.c (main): In generated "peephole" function, strengthen
5097 return type and local "insn" from rtx to rtx_insn *. For now,
5098 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5099 rtx_insn *, with a checked cast.
5100 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5101 locals "insn", "next", "prev" from rtx to rtx_insn *.
5102
5103 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5104
5105 PR tree-optimization/62112
5106 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5107 * gimple-iterator.h (gsi_replace): Return bool.
5108 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5109 moved from ref_may_alias_global_p.
5110 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5111 New overloads.
5112 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5113 (stmt_kills_ref_p_1): Rename...
5114 (stmt_kills_ref_p): ... to this.
5115 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5116 stmt_kills_ref_p): Declare.
5117 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5118 Move the self-assignment case...
5119 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5120
5121 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5122
5123 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5124
5125 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5126 "after". For now, don't strengthen param "trial", which requires
5127 adding checked casts when returning it.
5128
5129 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5130
5131 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5132 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5133 "var_location" hook from rtx to rtx_insn *.
5134 (debug_nothing_rtx): Delete in favor of...
5135 (debug_nothing_rtx_code_label): New prototype.
5136 (debug_nothing_rtx_rtx): Delete unused prototype.
5137 (debug_nothing_rtx_insn): New prototype.
5138
5139 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5140 invoking debug_hooks->var_location (in two places, one in a NOTE
5141 case of a switch statement, the other guarded by a CALL_P
5142 conditional. Add checked cast to rtx_code_label * when invoking
5143 debug_hooks->label (within CODE_LABEL case of switch statement).
5144
5145 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5146 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5147 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5148 (xcoff_debug_hooks): Likewise.
5149 * debug.c (do_nothing_debug_hooks): Likewise.
5150 (debug_nothing_rtx): Delete in favor of...
5151 (debug_nothing_rtx_insn): New function.
5152 (debug_nothing_rtx_rtx): Delete unused function.
5153 (debug_nothing_rtx_code_label): New function.
5154 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5155 debug_nothing_rtx to debug_nothing_rtx_code_label.
5156 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5157 to rtx_insn *.
5158 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5159 debug_nothing_rtx to debug_nothing_rtx_insn.
5160 (sdbout_label): Strengthen param "insn" from rtx to
5161 rtx_code_label *.
5162 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5163 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5164 "var_location" hook from debug_nothing_rtx to
5165 debug_nothing_rtx_insn.
5166
5167 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5168
5169 * recog.h (insn_output_fn): Update this function typedef to match
5170 the changes below to the generated output functions, strengthening
5171 the 2nd param from rtx to rtx_insn *.
5172
5173 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5174 insn when invoking an output function, to match the new signature
5175 of insn_output_fn with a stronger second param.
5176
5177 * genconditions.c (write_header): In the generated code for
5178 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5179 to match the other changes in this patch.
5180
5181 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5182 the generated "gen_" functions from rtx to rtx_insn * within their
5183 implementations.
5184
5185 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5186 the subfunctions within the generated "recog_", "split", "peephole2"
5187 function trees from rtx to rtx_insn *. For now, the top-level
5188 generated functions ("recog", "split", "peephole2") continue to
5189 take a plain rtx for "insn", to avoid introducing dependencies on
5190 other patches. Rename this 2nd param from "insn" to
5191 "uncast_insn", and reintroduce "insn" as a local variable of type
5192 rtx_insn *, initialized at the top of the generated function with
5193 a checked cast on "uncast_insn".
5194 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5195 the generated "gen_" functions from rtx to rtx_insn * within their
5196 prototypes.
5197
5198 * genoutput.c (process_template): Strengthen the 2nd param within
5199 the generated "output_" functions "insn" from rtx to rtx_insn *.
5200
5201 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5202
5203 * tree-profile.c (tree_profiling): Skip external functions
5204 when doing coverage instrumentation.
5205 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5206
5207 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5208
5209 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5210 (vec_mergee): Likewise.
5211 (vec_mergeo): Likewise.
5212 (vec_cntlz): Likewise.
5213 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5214 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5215 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5216 VMRGEW, and VMRGOW.
5217 * doc/extend.texi: Document various forms of vec_cpsgn,
5218 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5219 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5220 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5221 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5222 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5223
5224 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5225
5226 * config/rs6000/rs6000.c (context.h): New include.
5227 (tree-pass.h): Likewise.
5228 (make_pass_analyze_swaps): New decl.
5229 (rs6000_option_override): Register pass_analyze_swaps.
5230 (swap_web_entry): New subsclass of web_entry_base (df.h).
5231 (special_handling_values): New enum.
5232 (union_defs): New function.
5233 (union_uses): Likewise.
5234 (insn_is_load_p): Likewise.
5235 (insn_is_store_p): Likewise.
5236 (insn_is_swap_p): Likewise.
5237 (rtx_is_swappable_p): Likewise.
5238 (insn_is_swappable_p): Likewise.
5239 (chain_purpose): New enum.
5240 (chain_contains_only_swaps): New function.
5241 (mark_swaps_for_removal): Likewise.
5242 (swap_const_vector_halves): Likewise.
5243 (adjust_subreg_index): Likewise.
5244 (permute_load): Likewise.
5245 (permute_store): Likewise.
5246 (handle_special_swappables): Likewise.
5247 (replace_swap_with_copy): Likewise.
5248 (dump_swap_insn_table): Likewise.
5249 (rs6000_analyze_swaps): Likewise.
5250 (pass_data_analyze_swaps): New pass_data.
5251 (pass_analyze_swaps): New rtl_opt_pass.
5252 (make_pass_analyze_swaps): New function.
5253 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5254
5255 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5256
5257 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5258 type from rtx to rtx_insn *.
5259 (create_copy_of_insn_rtx): Likewise.
5260 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5261 (create_copy_of_insn_rtx): Likewise, also for local "res".
5262
5263 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5264
5265 * rtl.h (find_first_parameter_load): Strengthen return type from
5266 rtx to rtx_insn *.
5267 * rtlanal.c (find_first_parameter_load): Strengthen return type
5268 from rtx to rtx_insn *. Add checked cast for now, to postpone
5269 strengthening the params.
5270
5271 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5272
5273 PR fortran/44054
5274 * diagnostic.c: Set default caret.
5275 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5276 line is needed.
5277 * diagnostic.h (struct diagnostic_context):
5278
5279 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5280
5281 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5282 (sel_bb_head): Strengthen return type insn_t (currently just an
5283 rtx) to rtx_insn *.
5284 (sel_bb_end): Likewise.
5285
5286 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5287 (sel_bb_head): Strengthen return type and local "head" from
5288 insn_t (currently just an rtx) to rtx_insn *.
5289 (sel_bb_end): Likewise for return type.
5290 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5291 working with insn.
5292
5293 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5294
5295 * basic-block.h (get_last_bb_insn): Strengthen return type from
5296 rtx to rtx_insn *.
5297 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5298 end".
5299
5300 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5301
5302 PR fortran/44054
5303 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5304 to here ...
5305 (diagnostic_report_diagnostic): ... from here.
5306 * toplev.c (general_init): Move code to c-family.
5307
5308 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5309
5310 * df.h (web_entry_base): Replace existing struct web_entry with a
5311 new class web_entry_base with only the predecessor member.
5312 (unionfind_root): Remove declaration and move to class member.
5313 (unionfind_union): Remove declaration and move to friend
5314 function.
5315 (union_defs): Remove declaration.
5316 * web.c (web_entry_base::unionfind_root): Modify to be member
5317 function and adjust accessors.
5318 (unionfind_union): Modify to be friend function and adjust
5319 accessors.
5320 (web_entry): New subclass of web_entry_base containing the reg
5321 member.
5322 (union_match_dups): Modify for struct -> class changes.
5323 (union_defs): Likewise.
5324 (entry_register): Likewise.
5325 (pass_web::execute): Likewise.
5326
5327 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5328
5329 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5330 builtin define __VEC_ELEMENT_REG_ORDER__.
5331
5332 2014-08-20 Martin Jambor <mjambor@suse.cz>
5333 Wei Mi <wmi@google.com>
5334
5335 PR ipa/60449
5336 PR middle-end/61776
5337 * tree-ssa-operands.c (update_stmt_operands): Remove
5338 MODIFIED_NORETURN_CALLS.
5339 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5340 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5341 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5342 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5343 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5344 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5345 (gimple_call_set_ctrl_altering): New func.
5346 (gimple_call_ctrl_altering_p): Ditto.
5347 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5348 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5349 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5350 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5351 remove MODIFIED_NORETURN_CALLS.
5352
5353 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5354
5355 * coverage.c (coverage_compute_profile_id): Return non-0;
5356 also handle symbols with unique name.
5357 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5358
5359 2014-08-20 Steve Ellcey <sellcey@mips.com>
5360
5361 PR middle-end/49191
5362 * doc/sourcebuild.texi (non_strict_align): New.
5363
5364 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5365
5366 * cgraphunit.c (ipa_passes, compile): Reshedule
5367 symtab_remove_unreachable_nodes passes; update comments.
5368 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5369 TODO_remove_functions before the pass; the functions ought to be
5370 already removed.
5371 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5372 TODO_remove_functions.
5373 * passes.c (pass_data_early_local_passes): Do not schedule function
5374 removal.
5375 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5376
5377 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5378
5379 PR c/59304
5380 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5381 before setting the option.
5382 * diagnostic.c (diagnostic_classify_diagnostic): Record
5383 command-line status.
5384
5385 2014-08-20 Richard Biener <rguenther@suse.de>
5386
5387 PR lto/62190
5388 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5389 to build uint{16,32,64}_type_node.
5390
5391 2014-08-20 Terry Guo <terry.guo@arm.com>
5392
5393 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5394 with immediate_operand.
5395
5396 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5397
5398 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5399 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5400 NULL.
5401
5402 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5403
5404 PR preprocessor/51303
5405 * incpath.c (remove_duplicates): Use cpp_warning.
5406
5407 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5408
5409 PR c/60975
5410 PR c/53063
5411 * doc/options.texi (CPP): Document it.
5412 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5413 * optc-gen.awk: Handle CPP.
5414 * opth-gen.awk: Likewise.
5415
5416 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5417
5418 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5419 rtx_insn *.
5420 (duplicate_insn_chain): Likewise.
5421 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5422 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5423 checked cast for now (until we can strengthen the params in the
5424 same way).
5425 (duplicate_insn_chain): Likewise.
5426
5427 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5428
5429 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5430 rtx_insn *.
5431 (prev_cc0_setter): Likewise.
5432
5433 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5434 rtx_insn *, adding checked casts for now as necessary.
5435 (prev_cc0_setter): Likewise.
5436
5437 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5438
5439 * expr.h (emit_move_insn): Strengthen return type from rtx to
5440 rtx_insn *.
5441 (emit_move_insn_1): Likewise.
5442 (emit_move_complex_push): Likewise.
5443 (emit_move_complex_parts): Likewise.
5444
5445 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5446 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5447 with insns.
5448 (emit_move_complex_push): Strengthen return type from rtx to
5449 rtx_insn *.
5450 (emit_move_complex): Likewise, also for local "ret".
5451 (emit_move_ccmode): Likewise.
5452 (emit_move_multi_word): Likewise for return type and locals
5453 "last_insn", "seq".
5454 (emit_move_insn_1): Likewise for return type and locals "result",
5455 "ret".
5456 (emit_move_insn): Likewise for return type and local "last_insn".
5457 (compress_float_constant): Likewise.
5458
5459 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5460
5461 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5462 from rtx to rtx_insn *.
5463
5464 * rtl.h (emit_insn_before): Likewise.
5465 (emit_insn_before_noloc): Likewise.
5466 (emit_insn_before_setloc): Likewise.
5467 (emit_jump_insn_before): Likewise.
5468 (emit_jump_insn_before_noloc): Likewise.
5469 (emit_jump_insn_before_setloc): Likewise.
5470 (emit_call_insn_before): Likewise.
5471 (emit_call_insn_before_noloc): Likewise.
5472 (emit_call_insn_before_setloc): Likewise.
5473 (emit_debug_insn_before): Likewise.
5474 (emit_debug_insn_before_noloc): Likewise.
5475 (emit_debug_insn_before_setloc): Likewise.
5476 (emit_label_before): Likewise.
5477 (emit_insn_after): Likewise.
5478 (emit_insn_after_noloc): Likewise.
5479 (emit_insn_after_setloc): Likewise.
5480 (emit_jump_insn_after): Likewise.
5481 (emit_jump_insn_after_noloc): Likewise.
5482 (emit_jump_insn_after_setloc): Likewise.
5483 (emit_call_insn_after): Likewise.
5484 (emit_call_insn_after_noloc): Likewise.
5485 (emit_call_insn_after_setloc): Likewise.
5486 (emit_debug_insn_after): Likewise.
5487 (emit_debug_insn_after_noloc): Likewise.
5488 (emit_debug_insn_after_setloc): Likewise.
5489 (emit_label_after): Likewise.
5490 (emit_insn): Likewise.
5491 (emit_debug_insn): Likewise.
5492 (emit_jump_insn): Likewise.
5493 (emit_call_insn): Likewise.
5494 (emit_label): Likewise.
5495 (gen_clobber): Likewise.
5496 (emit_clobber): Likewise.
5497 (gen_use): Likewise.
5498 (emit_use): Likewise.
5499 (emit): Likewise.
5500
5501 (emit_barrier_before): Strengthen return type from rtx to
5502 rtx_barrier *.
5503 (emit_barrier_after): Likewise.
5504 (emit_barrier): Likewise.
5505
5506 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5507 from rtx to rtx_insn *. Add checked casts for now when converting
5508 "last" from rtx to rtx_insn *.
5509 (emit_insn_before_noloc): Likewise for return type.
5510 (emit_jump_insn_before_noloc): Likewise.
5511 (emit_call_insn_before_noloc): Likewise.
5512 (emit_debug_insn_before_noloc): Likewise.
5513 (emit_barrier_before): Strengthen return type and local "insn"
5514 from rtx to rtx_barrier *.
5515 (emit_label_before): Strengthen return type from rtx to
5516 rtx_insn *. Add checked cast for now when returning param
5517 (emit_pattern_after_noloc): Strengthen return type from rtx to
5518 rtx_insn *. Add checked casts for now when converting "last" from
5519 rtx to rtx_insn *.
5520 (emit_insn_after_noloc): Strengthen return type from rtx to
5521 rtx_insn *.
5522 (emit_jump_insn_after_noloc): Likewise.
5523 (emit_call_insn_after_noloc): Likewise.
5524 (emit_debug_insn_after_noloc): Likewise.
5525 (emit_barrier_after): Strengthen return type from rtx to
5526 rtx_barrier *.
5527 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5528 Add checked cast for now when converting "label" from rtx to
5529 rtx_insn *.
5530 (emit_pattern_after_setloc): Strengthen return type from rtx to
5531 rtx_insn *. Add checked casts for now when converting "last" from
5532 rtx to rtx_insn *.
5533 (emit_pattern_after): Strengthen return type from rtx to
5534 rtx_insn *.
5535 (emit_insn_after_setloc): Likewise.
5536 (emit_insn_after): Likewise.
5537 (emit_jump_insn_after_setloc): Likewise.
5538 (emit_jump_insn_after): Likewise.
5539 (emit_call_insn_after_setloc): Likewise.
5540 (emit_call_insn_after): Likewise.
5541 (emit_debug_insn_after_setloc): Likewise.
5542 (emit_debug_insn_after): Likewise.
5543 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5544 when converting "last" from rtx to rtx_insn *.
5545 (emit_pattern_before): Strengthen return type from rtx to
5546 rtx_insn *.
5547 (emit_insn_before_setloc): Likewise.
5548 (emit_insn_before): Likewise.
5549 (emit_jump_insn_before_setloc): Likewise.
5550 (emit_jump_insn_before): Likewise.
5551 (emit_call_insn_before_setloc): Likewise.
5552 (emit_call_insn_before): Likewise.
5553 (emit_debug_insn_before_setloc): Likewise.
5554 (emit_debug_insn_before): Likewise.
5555 (emit_insn): Strengthen return type and locals "last", "insn",
5556 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5557 within cases where we know we have an insn.
5558 (emit_debug_insn): Likewise.
5559 (emit_jump_insn): Likewise.
5560 (emit_call_insn): Strengthen return type and local "insn" from rtx
5561 to rtx_insn *.
5562 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5563 a checked cast to rtx_insn * for now on "label".
5564 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5565 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5566 (emit_use): Likewise.
5567 (gen_use): Likewise, also for local "seq".
5568 (emit): Likewise for return type and local "insn".
5569 (rtx_insn): Likewise for return type and local "new_rtx".
5570
5571 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5572 from rtx to rtx_barrier *.
5573
5574 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5575 changed return type from rtx to rtx_insn *, we must update
5576 "emit_fn" type, and this in turn means updating...
5577 (frame_insn): ...this. Strengthen return type from rtx to
5578 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5579
5580 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5581
5582 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5583 rtx to rtx_jump_table_data *. Also for local.
5584 * rtl.h (emit_jump_table_data): Likewise.
5585
5586 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5587
5588 * basic-block.h (create_basic_block_structure): Strengthen third
5589 param "bb_note" from rtx to rtx_note *.
5590 * rtl.h (emit_note_before): Strengthen return type from rtx to
5591 rtx_note *.
5592 (emit_note_after): Likewise.
5593 (emit_note): Likewise.
5594 (emit_note_copy): Likewise. Also, strengthen param similarly.
5595 * function.h (struct rtl_data): Strengthen field
5596 "x_stack_check_probe_note" from rtx to rtx_note *.
5597
5598 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5599 from rtx to rtx_note *.
5600 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5601 "bb_note" from rtx to rtx_note *.
5602 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5603 when calling emit_note_copy.
5604 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5605 rtx_note *.
5606 (emit_note_after): Likewise.
5607 (emit_note_before): Likewise.
5608 (emit_note_copy): Likewise. Also, strengthen param similarly.
5609 (emit_note): Likewise.
5610 * except.c (emit_note_eh_region_end): Likewise for return type.
5611 Strengthen local "next" from rtx to rtx_insn *.
5612 (convert_to_eh_region_ranges): Strengthen local "note"
5613 from rtx to rtx_note *.
5614 * final.c (change_scope): Likewise.
5615 (reemit_insn_block_notes): Likewise, for both locals named "note".
5616 Also, strengthen local "insn" from rtx to rtx_insn *.
5617 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5618 rtx to rtx_note *.
5619 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5620 strengthen local "seq" from rtx to rtx_insn *.
5621 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5622 to rtx_note *.
5623 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5624 vec<rtx_note *>.
5625 (get_bb_note_from_pool): Strengthen return type from rtx to
5626 rtx_note *.
5627 (sel_create_basic_block): Strengthen local "new_bb_note" from
5628 insn_t to rtx_note *.
5629 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5630 "note" from rtx to rtx_note *.
5631 (emit_notes_in_bb): Likewise.
5632
5633 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5634
5635 * function.h (struct rtl_data): Strengthen field
5636 "x_parm_birth_insn" from rtx to rtx_insn *.
5637 * function.c (struct assign_parm_data_all): Strengthen fields
5638 "first_conversion_insn" and "last_conversion_insn" from rtx to
5639 rtx_insn *.
5640
5641 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5642
5643 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5644 to rtx_insn *; also for local "var_end_seq".
5645 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5646 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5647 "insn".
5648 (expand_gimple_cond): Likewise for locals "last2" and "last".
5649 (mark_transaction_restart_calls): Likewise for local "insn".
5650 (expand_gimple_stmt): Likewise for return type and locals "last"
5651 and "insn".
5652 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5653 (avoid_complex_debug_insns): Likewise for param "insn".
5654 (expand_debug_locations): Likewise for locals "insn", "last",
5655 "prev_insn" and "insn2".
5656 (expand_gimple_basic_block): Likewise for local "last".
5657 (construct_exit_block): Likewise for locals "head", "end",
5658 "orig_end".
5659 (pass_expand::execute): Likewise for locals "var_seq",
5660 "var_ret_seq", "next".
5661
5662 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5663
5664 * asan.h (asan_emit_stack_protection): Strengthen return type from
5665 rtx to rtx_insn *.
5666 * asan.c (asan_emit_stack_protection): Likewise. Add local
5667 "insns" to hold the return value.
5668
5669 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5670
5671 * basic-block.h (bb_note): Strengthen return type from rtx to
5672 rtx_note *.
5673 * sched-int.h (bb_note): Likewise.
5674 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5675
5676 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5677
5678 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5679 rtx_insn *.
5680
5681 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5682 "insn" from rtx to rtx_insn *.
5683 (make_debug_insn_raw): Strengthen return type from rtx to
5684 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5685 (make_jump_insn_raw): Strengthen return type from rtx to
5686 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5687 (make_call_insn_raw): Strengthen return type from rtx to
5688 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5689 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5690 callback from rtx to rtx_insn *; likewise for local "insn" and
5691 "next", adding a checked cast to rtx_insn in the relevant cases of
5692 the switch statement.
5693 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5694 callback from rtx to rtx_insn *.
5695 (emit_pattern_after_setloc): Likewise.
5696 (emit_pattern_after): Likewise.
5697 (emit_pattern_before_setloc): Likewise.
5698 (emit_pattern_before): Likewise.
5699
5700 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5701
5702 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5703 rtx_call_insn *.
5704 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5705 accepting an rtx_insn *.
5706 (last_call_insn): Strengthen return type from rtx to
5707 rtx_call_insn *.
5708
5709 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5710
5711 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5712 "insns" from rtx to rtx_insn *.
5713 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5714 locals "insn" and "prev".
5715
5716 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5717
5718 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5719 rtx_jump_table_data **.
5720
5721 * cfgbuild.c (make_edges): Introduce local "table", using it in
5722 place of "tmp" for jump table data.
5723 (find_bb_boundaries): Strengthen local "table" from rtx to
5724 rtx_jump_table_data *.
5725 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5726 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5727 (try_crossjump_to_edge): Likewise.
5728 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5729 "table".
5730 (patch_jump_insn): Introduce local "table", using it in place of
5731 "tmp" for jump table data.
5732 (force_nonfallthru_and_redirect): Introduce local "table", so that
5733 call to tablejump_p can receive an rtx_jump_table_data **. Update
5734 logic around the call to overwrite "note" appropriately if
5735 tablejump_p returns non-zero.
5736 (get_last_bb_insn): Introduce local "table", using it in place of
5737 "tmp" for jump table data.
5738 * dwarf2cfi.c (create_trace_edges): Likewise.
5739
5740 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5741 from rtx to rtx_jump_table_data *.
5742 (create_fix_barrier): Strengthen local "tmp" from rtx to
5743 rtx_jump_table_data *.
5744 (arm_reorg): Likewise for local "table".
5745
5746 * config/s390/s390.c (s390_chunkify_start): Likewise.
5747
5748 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5749
5750 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5751 rtx to rtx_jump_table_data *.
5752
5753 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5754 rtx_jump_table_data **. Add a checked cast when writing through
5755 the pointer: we know there that local "table" is non-NULL and that
5756 JUMP_TABLE_DATA_P (table) holds.
5757 (label_is_jump_target_p): Introduce local "table", using it in
5758 place of "tmp" for jump table data.
5759
5760 2014-08-19 Marek Polacek <polacek@redhat.com>
5761
5762 PR c++/62153
5763 * doc/invoke.texi: Document -Wbool-compare.
5764
5765 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5766
5767 * rtl.h (entry_of_function): Strengthen return type from rtx to
5768 rtx_insn *.
5769 * cfgrtl.c (entry_of_function): Likewise.
5770
5771 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5772
5773 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5774 rtx_insn *, adding a checked cast for now.
5775 (get_last_insn): Likewise.
5776
5777 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5778
5779 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5780 rtx_code_label *.
5781
5782 * emit-rtl.c (gen_label_rtx): Likewise.
5783
5784 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5785
5786 * rtl.h (previous_insn): Strengthen return type from rtx to
5787 rtx_insn *.
5788 (next_insn): Likewise.
5789 (prev_nonnote_insn): Likewise.
5790 (prev_nonnote_insn_bb): Likewise.
5791 (next_nonnote_insn): Likewise.
5792 (next_nonnote_insn_bb): Likewise.
5793 (prev_nondebug_insn): Likewise.
5794 (next_nondebug_insn): Likewise.
5795 (prev_nonnote_nondebug_insn): Likewise.
5796 (next_nonnote_nondebug_insn): Likewise.
5797 (prev_real_insn): Likewise.
5798 (next_real_insn): Likewise.
5799 (prev_active_insn): Likewise.
5800 (next_active_insn): Likewise.
5801
5802 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5803 rtx_insn *, adding a checked cast.
5804 (previous_insn): Likewise.
5805 (next_nonnote_insn): Likewise.
5806 (next_nonnote_insn_bb): Likewise.
5807 (prev_nonnote_insn): Likewise.
5808 (prev_nonnote_insn_bb): Likewise.
5809 (next_nondebug_insn): Likewise.
5810 (prev_nondebug_insn): Likewise.
5811 (next_nonnote_nondebug_insn): Likewise.
5812 (prev_nonnote_nondebug_insn): Likewise.
5813 (next_real_insn): Likewise.
5814 (prev_real_insn): Likewise.
5815 (next_active_insn): Likewise.
5816 (prev_active_insn): Likewise.
5817
5818 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5819 param "stepfunc" so that it returns an rtx_insn * rather than an
5820 rtx, to track the change to prev_nonnote_insn_bb, which is the
5821 only function this is called with.
5822 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5823
5824 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5825
5826 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5827 assert.
5828
5829 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5830
5831 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5832 (class rtx_nonjump_insn): Likewise.
5833 (class rtx_jump_insn): Likewise.
5834 (class rtx_call_insn): Likewise.
5835 (class rtx_jump_table_data): Likewise.
5836 (class rtx_barrier): Likewise.
5837 (class rtx_code_label): Likewise.
5838 (class rtx_note): Likewise.
5839
5840 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5841 adding the invariant DEBUG_INSN_P (X).
5842 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5843 the invariant NONJUMP_INSN_P (X).
5844 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5845 the invariant JUMP_P (X).
5846 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5847 the invariant CALL_P (X).
5848 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5849 invariant JUMP_TABLE_DATA_P (X).
5850 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5851 invariant BARRIER_P (X).
5852 (class rtx_code_label): New, a subclass of rtx_insn, adding
5853 the invariant LABEL_P (X).
5854 (class rtx_note): New, a subclass of rtx_insn, adding
5855 the invariant NOTE_P(X).
5856 (is_a_helper <rtx_debug_insn *>::test): New.
5857 (is_a_helper <rtx_nonjump_insn *>::test): New.
5858 (is_a_helper <rtx_jump_insn *>::test): New.
5859 (is_a_helper <rtx_call_insn *>::test): New.
5860 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5861 overloaded for both rtx and rtx_insn *.
5862 (is_a_helper <rtx_barrier *>::test): New.
5863 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5864 for both rtx and rtx_insn *.
5865 (is_a_helper <rtx_note *>::test): New.
5866
5867 2014-08-19 Marek Polacek <polacek@redhat.com>
5868
5869 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5870 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5871 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5872 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5873
5874 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5875
5876 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5877 rtx_insn *. To help with transition, for now, convert from an
5878 access macro into a pair of functions: BND_TO, returning an
5879 rtx_insn *, and...
5880 (SET_BND_TO): New function, for use where BND_TO is used as an
5881 lvalue.
5882
5883 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5884 SET_BND_TO.
5885 (BND_TO): New function, adding a checked cast.
5886 (SET_BND_TO): New function.
5887
5888 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5889 SET_BND_TO.
5890 (compute_av_set_on_boundaries): Likewise.
5891
5892 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5893
5894 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5895 destination if it is used in source.
5896 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5897 (*popcount<mode>2_falsedep_1): Likewise.
5898
5899 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5900
5901 PR other/62168
5902 * configure.ac: Set install_gold_as_default to no first.
5903 * configure: Regenerated.
5904
5905 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5906
5907 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5908 "note_list" field will eventually be an rtx_insn *. To help with
5909 transition, for now, convert from an access macro into a pair of
5910 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5911 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5912 used as an lvalue.
5913
5914 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5915 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5916
5917 * sel-sched-ir.c (init_bb): Likewise.
5918 (sel_restore_notes): Likewise.
5919 (move_bb_info): Likewise.
5920 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5921 (SET_BB_NOTE_LIST): New function.
5922
5923 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5924
5925 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5926 field will eventually be an rtx_insn *. To help with transition,
5927 for now, convert from an access macro into a pair of functions:
5928 VINSN_INSN_RTX, returning an rtx_insn *, and...
5929 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5930 is used as an lvalue.
5931
5932 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5933 SET_VINSN_INSN_RTX where it's used as an lvalue.
5934 (VINSN_INSN_RTX): New function.
5935 (SET_VINSN_INSN_RTX): New function.
5936
5937 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5938
5939 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5940 eventually be rtx_insn *, but to help with transition, for now,
5941 convert from an access macro into a pair of functions: DEP_PRO
5942 returning an rtx_insn * and...
5943 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5944 lvalue, returning an rtx&.
5945 (DEP_CON): Analogous changes to DEP_PRO above.
5946 (SET_DEP_CON): Likewise.
5947
5948 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5949 an lvalue to SET_DEP_CON.
5950 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5951 (sd_copy_back_deps): Likewise for DEP_CON.
5952 (DEP_PRO): New function, adding a checked cast for now.
5953 (DEP_CON): Likewise.
5954 (SET_DEP_PRO): New function.
5955 (SET_DEP_CON): Likewise.
5956
5957 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5958
5959 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5960 (extra_options): Add i386/cygwin.opt.
5961 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5962 (CPP_SPEC): Accept -pthread.
5963 (LINK_SPEC): Ditto.
5964 (GOMP_SELF_SPECS): Update comment.
5965 * config/i386/cygwin.opt: New file for -pthread flag.
5966
5967 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5968
5969 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5970 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5971 that we can return an rtx_insn *.
5972
5973 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5974
5975 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5976 when building executables, not DLLs. Add --large-address-aware
5977 under the same conditions.
5978 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5979 when building executables, not DLLs. Add --large-address-aware
5980 under the same conditions when using -m32.
5981
5982 * config/i386/cygwin-stdint.h: Throughout, make type
5983 definitions dependent on target architecture, not host.
5984
5985 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5986
5987 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5988 the return type from rtx to rtx_insn *, which will enable various
5989 conversions in followup patches. For now this is is done by a
5990 checked cast.
5991 (NEXT_INSN): Likewise.
5992 (SET_PREV_INSN): Convert to an inline function. This is intended
5993 for use as an lvalue, and so returns an rtx& to allow in-place
5994 modification.
5995 (SET_NEXT_INSN): Likewise.
5996
5997 2014-07-08 Mark Wielaard <mjw@redhat.com>
5998
5999 PR debug/59051
6000 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
6001
6002 2014-08-19 Marek Polacek <polacek@redhat.com>
6003
6004 PR c/61271
6005 * cgraphunit.c (handle_alias_pairs): Fix condition.
6006
6007 2014-08-19 Richard Biener <rguenther@suse.de>
6008
6009 * gimple-fold.c (fold_gimple_assign): Properly build a
6010 null-pointer constant when devirtualizing addresses.
6011
6012 2014-07-07 Mark Wielaard <mjw@redhat.com>
6013
6014 * dwarf2out.c (decl_quals): New function.
6015 (modified_type_die): Take one cv_quals argument instead of two,
6016 one for const and one for volatile.
6017 (add_type_attribute): Likewise.
6018 (generic_parameter_die): Call add_type_attribute with one modifier
6019 argument.
6020 (base_type_for_mode): Likewise.
6021 (add_bounds_info): Likewise.
6022 (add_subscript_info): Likewise.
6023 (gen_array_type_die): Likewise.
6024 (gen_descr_array_type_die): Likewise.
6025 (gen_entry_point_die): Likewise.
6026 (gen_enumeration_type_die): Likewise.
6027 (gen_formal_parameter_die): Likewise.
6028 (gen_subprogram_die): Likewise.
6029 (gen_variable_die): Likewise.
6030 (gen_const_die): Likewise.
6031 (gen_field_die): Likewise.
6032 (gen_pointer_type_die): Likewise.
6033 (gen_reference_type_die): Likewise.
6034 (gen_ptr_to_mbr_type_die): Likewise.
6035 (gen_inheritance_die): Likewise.
6036 (gen_subroutine_type_die): Likewise.
6037 (gen_typedef_die): Likewise.
6038 (force_type_die): Likewise.
6039
6040 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6041
6042 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
6043 if unset.
6044 * configure: Regenerate.
6045
6046 2014-08-19 Richard Biener <rguenther@suse.de>
6047
6048 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
6049 DECL_EXTERNALs in BLOCKs as non-references.
6050 * tree-streamer-out.c (streamer_write_chain): Likewise.
6051
6052 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
6053 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6054 Anna Tikhonova <anna.tikhonova@intel.com>
6055 Ilya Tocar <ilya.tocar@intel.com>
6056 Andrey Turetskiy <andrey.turetskiy@intel.com>
6057 Ilya Verbin <ilya.verbin@intel.com>
6058 Kirill Yukhin <kirill.yukhin@intel.com>
6059 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6060
6061 * config/i386/sse.md
6062 (define_mode_iterator VI48_AVX512F): Delete.
6063 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
6064 (define_mode_iterator VI2_AVX512VL): Ditto.
6065 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
6066 Delete.
6067 (define_insn
6068 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
6069 New.
6070 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
6071 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
6072 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6073 with VI48_AVX512F_AVX512VL): New.
6074 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6075 with VI2_AVX512VL): Ditto.
6076
6077 2014-08-19 Marek Polacek <polacek@redhat.com>
6078
6079 * doc/invoke.texi: Document -Wc99-c11-compat.
6080
6081 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6082
6083 * rtl.h (PREV_INSN): Split macro in two: the existing one,
6084 for rvalues, and...
6085 (SET_PREV_INSN): New macro, for use as an lvalue.
6086 (NEXT_INSN, SET_NEXT_INSN): Likewise.
6087
6088 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
6089 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
6090 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6091 (fixup_abnormal_edges): Likewise.
6092 (unlink_insn_chain): Likewise.
6093 (fixup_reorder_chain): Likewise.
6094 (cfg_layout_delete_block): Likewise.
6095 (cfg_layout_merge_blocks): Likewise.
6096 * combine.c (update_cfg_for_uncondjump): Likewise.
6097 * emit-rtl.c (link_insn_into_chain): Likewise.
6098 (remove_insn): Likewise.
6099 (delete_insns_since): Likewise.
6100 (reorder_insns_nobb): Likewise.
6101 (emit_insn_after_1): Likewise.
6102 * final.c (rest_of_clean_state): Likewise.
6103 (final_scan_insn): Likewise.
6104 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6105 * haifa-sched.c (concat_note_lists): Likewise.
6106 (remove_notes): Likewise.
6107 (restore_other_notes): Likewise.
6108 (move_insn): Likewise.
6109 (unlink_bb_notes): Likewise.
6110 (restore_bb_notes): Likewise.
6111 * jump.c (delete_for_peephole): Likewise.
6112 * optabs.c (emit_libcall_block_1): Likewise.
6113 * reorg.c (emit_delay_sequence): Likewise.
6114 (fill_simple_delay_slots): Likewise.
6115 * sel-sched-ir.c (sel_move_insn): Likewise.
6116 (sel_remove_insn): Likewise.
6117 (get_bb_note_from_pool): Likewise.
6118 * sel-sched.c (move_nop_to_previous_block): Likewise.
6119
6120 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6121 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6122 (c6x_gen_bundles): Likewise.
6123 (hwloop_optimize): Likewise.
6124 * config/frv/frv.c (frv_function_prologue): Likewise.
6125 (frv_register_nop): Likewise.
6126 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6127 (ia64_reorg): Likewise.
6128 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6129 (mep_make_bundle): Likewise.
6130 (mep_bundle_insns): Likewise.
6131 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6132 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6133 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6134
6135 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6136
6137 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6138 return type from rtx to rtx_insn *.
6139 (BB_END): Likewise.
6140 (BB_HEADER): Likewise.
6141 (BB_FOOTER): Likewise.
6142 (SET_BB_HEAD): Convert to a function.
6143 (SET_BB_END): Likewise.
6144 (SET_BB_HEADER): Likewise.
6145 (SET_BB_FOOTER): Likewise.
6146
6147 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6148 Strengthen the return type from rtx to rtx_insn *. For now, this
6149 is done by adding a checked cast, but this will eventually
6150 become a field lookup.
6151 (BB_END): Likewise.
6152 (BB_HEADER): Likewise.
6153 (BB_FOOTER): Likewise.
6154 (SET_BB_HEAD): New function, from macro of same name. This is
6155 intended for use as an lvalue, and so returns an rtx& to allow
6156 in-place modification.
6157 (SET_BB_END): Likewise.
6158 (SET_BB_HEADER): Likewise.
6159 (SET_BB_FOOTER): Likewise.
6160
6161 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6162
6163 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6164 for rvalues, and...
6165 (SET_BB_HEAD): New macro, for use as a lvalue.
6166 (BB_END, SET_BB_END): Likewise.
6167 (BB_HEADER, SET_BB_HEADER): Likewise.
6168 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6169
6170 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6171 of BB_* macros into SET_BB_* macros.
6172 (fix_crossing_unconditional_branches): Likewise.
6173 * caller-save.c (save_call_clobbered_regs): Likewise.
6174 (insert_one_insn): Likewise.
6175 * cfgbuild.c (find_bb_boundaries): Likewise.
6176 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6177 (outgoing_edges_match): Likewise.
6178 (try_optimize_cfg): Likewise.
6179 * cfgexpand.c (expand_gimple_cond): Likewise.
6180 (expand_gimple_tailcall): Likewise.
6181 (expand_gimple_basic_block): Likewise.
6182 (construct_exit_block): Likewise.
6183 * cfgrtl.c (delete_insn): Likewise.
6184 (create_basic_block_structure): Likewise.
6185 (rtl_delete_block): Likewise.
6186 (rtl_split_block): Likewise.
6187 (emit_nop_for_unique_locus_between): Likewise.
6188 (rtl_merge_blocks): Likewise.
6189 (block_label): Likewise.
6190 (try_redirect_by_replacing_jump): Likewise.
6191 (emit_barrier_after_bb): Likewise.
6192 (fixup_abnormal_edges): Likewise.
6193 (record_effective_endpoints): Likewise.
6194 (relink_block_chain): Likewise.
6195 (fixup_reorder_chain): Likewise.
6196 (fixup_fallthru_exit_predecessor): Likewise.
6197 (cfg_layout_duplicate_bb): Likewise.
6198 (cfg_layout_split_block): Likewise.
6199 (cfg_layout_delete_block): Likewise.
6200 (cfg_layout_merge_blocks): Likewise.
6201 * combine.c (update_cfg_for_uncondjump): Likewise.
6202 * emit-rtl.c (add_insn_after): Likewise.
6203 (remove_insn): Likewise.
6204 (reorder_insns): Likewise.
6205 (emit_insn_after_1): Likewise.
6206 * haifa-sched.c (get_ebb_head_tail): Likewise.
6207 (restore_other_notes): Likewise.
6208 (move_insn): Likewise.
6209 (sched_extend_bb): Likewise.
6210 (fix_jump_move): Likewise.
6211 * ifcvt.c (noce_process_if_block): Likewise.
6212 (dead_or_predicable): Likewise.
6213 * ira.c (update_equiv_regs): Likewise.
6214 * reg-stack.c (change_stack): Likewise.
6215 * sel-sched-ir.c (sel_move_insn): Likewise.
6216 * sel-sched.c (move_nop_to_previous_block): Likewise.
6217
6218 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6219 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6220
6221 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6222
6223 * rtl.h (for_each_rtx_in_insn): New function.
6224 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6225
6226 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6227
6228 * coretypes.h (class rtx_insn): Add forward declaration.
6229
6230 * rtl.h: Include is-a.h.
6231 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6232 workaround to ensure gengtype knows inheritance is occurring,
6233 whilst continuing to use the pre-existing special-casing for
6234 rtx_def.
6235 (class rtx_insn): New subclass of rtx_def, adding the
6236 invariant that we're dealing with something we can sanely use
6237 INSN_UID, NEXT_INSN, PREV_INSN on.
6238 (is_a_helper <rtx_insn *>::test): New.
6239 (is_a_helper <const rtx_insn *>::test): New.
6240
6241 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6242
6243 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6244
6245 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6246
6247 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6248 comdats as extern.
6249
6250 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6251
6252 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6253 to BUILT_IN_UNREACHABLE.
6254
6255 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6256
6257 PR target/62011
6258 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6259 New tune flag.
6260 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6261 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6262 (ffs<mode>2): Do not expand with tzcnt for
6263 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6264 (ffssi2_no_cmove): Ditto.
6265 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6266 (ctz<mode>2): New expander.
6267 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6268 (*ctz<mode>2_falsedep): New insn.
6269 (*ctz<mode>2): Rename from ctz<mode>2.
6270 (clz<mode>2_lzcnt): New expander.
6271 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6272 (*clz<mode>2_lzcnt_falsedep): New insn.
6273 (*clz<mode>2): Rename from ctz<mode>2.
6274 (popcount<mode>2): New expander.
6275 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6276 (*popcount<mode>2_falsedep): New insn.
6277 (*popcount<mode>2): Rename from ctz<mode>2.
6278 (*popcount<mode>2_cmp): Remove.
6279 (*popcountsi2_cmp_zext): Ditto.
6280
6281 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6282
6283 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6284 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6285 * config/microblaze/microblaze.h
6286 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6287
6288 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6289
6290 PR other/62168
6291 * configure.ac: Set install_gold_as_default to no for
6292 --enable-gold=no.
6293 * configure: Regenerated.
6294
6295 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6296
6297 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6298 * config.in: Add undef of HAVE_isl.
6299 * configure: Regenerate.
6300 * configure.ac: Add definition of HAVE_isl.
6301 * graphite-blocking.c: Add checking of HAVE_isl.
6302 * graphite-dependences.c: Likewise.
6303 * graphite-interchange.c: Likewise.
6304 * graphite-isl-ast-to-gimple.c: Likewise.
6305 * graphite-optimize-isl.c: Likewise.
6306 * graphite-poly.c: Likewise.
6307 * graphite-scop-detection.c: Likewise.
6308 * graphite-sese-to-poly.c: Likewise.
6309 * graphite.c: Likewise.
6310 * toplev.c: Replace the checking of HAVE_cloog with the checking
6311 of HAVE_isl.
6312
6313 2014-08-18 Richard Biener <rguenther@suse.de>
6314
6315 PR tree-optimization/62090
6316 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6317 (fold_builtin_3): Do not fold snprintf.
6318 (fold_builtin_4): Likewise.
6319 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6320 moved from builtins.c.
6321 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6322 (gimple_fold_builtin): Do not fold sprintf here.
6323
6324 2014-08-18 Richard Biener <rguenther@suse.de>
6325
6326 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6327 code to ...
6328 (maybe_canonicalize_mem_ref_addr): ... this function.
6329 (fold_stmt_1): Apply it here before all simplification.
6330
6331 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6332
6333 PR ipa/61800
6334 * cgraph.h (cgraph_node::create_indirect_edge): Add
6335 compute_indirect_info param.
6336 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6337 indirect_info only when it is required.
6338 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6339 indirect_info fore cloned indirect edge.
6340
6341 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6342 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6343 Anna Tikhonova <anna.tikhonova@intel.com>
6344 Ilya Tocar <ilya.tocar@intel.com>
6345 Andrey Turetskiy <andrey.turetskiy@intel.com>
6346 Ilya Verbin <ilya.verbin@intel.com>
6347 Kirill Yukhin <kirill.yukhin@intel.com>
6348 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6349
6350 * config/i386/sse.md
6351 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6352 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6353
6354 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6355 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6356 Anna Tikhonova <anna.tikhonova@intel.com>
6357 Ilya Tocar <ilya.tocar@intel.com>
6358 Andrey Turetskiy <andrey.turetskiy@intel.com>
6359 Ilya Verbin <ilya.verbin@intel.com>
6360 Kirill Yukhin <kirill.yukhin@intel.com>
6361 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6362
6363 * config/i386/sse.md
6364 (define_mode_iterator VF1_AVX512VL): New.
6365 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6366 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6367 New.
6368
6369 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6370 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6371 Anna Tikhonova <anna.tikhonova@intel.com>
6372 Ilya Tocar <ilya.tocar@intel.com>
6373 Andrey Turetskiy <andrey.turetskiy@intel.com>
6374 Ilya Verbin <ilya.verbin@intel.com>
6375 Kirill Yukhin <kirill.yukhin@intel.com>
6376 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6377
6378 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6379 * config/i386/i386.md
6380 (define_code_iterator any_float): New.
6381 (define_code_attr floatsuffix): New.
6382 * config/i386/sse.md
6383 (define_mode_iterator VF1_128_256VL): New.
6384 (define_mode_iterator VF2_512_256VL): New.
6385 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6386 TARGET check.
6387 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6388 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6389 New.
6390 (define_mode_attr qq2pssuff): New.
6391 (define_mode_attr sselongvecmode): New.
6392 (define_mode_attr sselongvecmodelower): New.
6393 (define_mode_attr sseintvecmode3): New.
6394 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6395 New.
6396 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6397 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6398 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6399 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6400
6401 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6402 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6403 Anna Tikhonova <anna.tikhonova@intel.com>
6404 Ilya Tocar <ilya.tocar@intel.com>
6405 Andrey Turetskiy <andrey.turetskiy@intel.com>
6406 Ilya Verbin <ilya.verbin@intel.com>
6407 Kirill Yukhin <kirill.yukhin@intel.com>
6408 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6409
6410 * config/i386/sse.md
6411 (define_mode_iterator VF2_AVX512VL): New.
6412 (define_mode_attr sseintvecmode2): New.
6413 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6414 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6415 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6416 (define_insn
6417 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6418 Ditto.
6419 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6420 Ditto.
6421 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6422 Ditto.
6423
6424 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6425 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6426 Anna Tikhonova <anna.tikhonova@intel.com>
6427 Ilya Tocar <ilya.tocar@intel.com>
6428 Andrey Turetskiy <andrey.turetskiy@intel.com>
6429 Ilya Verbin <ilya.verbin@intel.com>
6430 Kirill Yukhin <kirill.yukhin@intel.com>
6431 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6432
6433 * config/i386/i386.md
6434 (define_insn "*movoi_internal_avx"): Add evex version.
6435 (define_insn "*movti_internal"): Ditto.
6436
6437 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6438 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6439 Anna Tikhonova <anna.tikhonova@intel.com>
6440 Ilya Tocar <ilya.tocar@intel.com>
6441 Andrey Turetskiy <andrey.turetskiy@intel.com>
6442 Ilya Verbin <ilya.verbin@intel.com>
6443 Kirill Yukhin <kirill.yukhin@intel.com>
6444 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6445
6446 * config/i386/i386.md
6447 (define_attr "isa"): Add avx512dq, noavx512dq.
6448 (define_attr "enabled"): Ditto.
6449 * config/i386/sse.md
6450 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6451
6452 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6453 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6454 Anna Tikhonova <anna.tikhonova@intel.com>
6455 Ilya Tocar <ilya.tocar@intel.com>
6456 Andrey Turetskiy <andrey.turetskiy@intel.com>
6457 Ilya Verbin <ilya.verbin@intel.com>
6458 Kirill Yukhin <kirill.yukhin@intel.com>
6459 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6460
6461 * config/i386/i386.c
6462 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6463 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6464 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6465 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6466 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6467 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6468 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6469 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6470 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6471 * config/i386/sse.md
6472 (define_mode_iterator VMOVE): Allow V4TI mode.
6473 (define_mode_iterator V_AVX512VL): New.
6474 (define_mode_iterator V): New handling for AVX512VL.
6475 (define_insn "avx512f_load<mode>_mask"): Delete.
6476 (define_insn "<avx512>_load<mode>_mask"): New.
6477 (define_insn "avx512f_store<mode>_mask"): Delete.
6478 (define_insn "<avx512>_store<mode>_mask"): New.
6479
6480
6481 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6482
6483 PR sanitizer/62089
6484 * asan.c (instrument_derefs): Fix bitfield check.
6485
6486 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6487
6488 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6489 * config/rs6000/htm.md (ttest): Remove clobber.
6490 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6491 (and_operand): Reformat.
6492 (and_2rld_operand): New predicate.
6493 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6494 parameter.
6495 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6496 parameter. Handle AND directly.
6497 (rs6000_split_logical_di): Remove last parameter.
6498 (rs6000_split_logical): Remove last parameter. Remove obsolete
6499 comment.
6500 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6501 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6502 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6503 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6504 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6505 and 5 anonymous splitters): Delete.
6506 (and<mode>3): New expander.
6507 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6508 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6509 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6510 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6511 (floatdisf2_internal1): Remove clobbers.
6512 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6513 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6514 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6515 (and<mode>3 for BOOL_128): Remove clobber.
6516 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6517 rs6000_split_logical.
6518 (*bool<mode>3_internal for BOOL_128): Adjust call of
6519 rs6000_split_logical.
6520 (*boolc<mode>3_internal1 for BOOL_128,
6521 *boolc<mode>3_internal2 for BOOL_128,
6522 *boolcc<mode>3_internal1 for BOOL_128,
6523 *boolcc<mode>3_internal2 for BOOL_128,
6524 *eqv<mode>3_internal1 for BOOL_128,
6525 *eqv<mode>3_internal2 for BOOL_128,
6526 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6527 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6528 clobber.
6529 (*vec_reload_and_reg_<mptrsize>): Delete.
6530
6531 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6532
6533 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6534 and split, *boolccsi3_internal3 and split): Delete.
6535 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6536 *boolccdi3_internal3 and split): Delete.
6537 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6538 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6539
6540 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6541
6542 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6543 and split, *boolcsi3_internal3 and split): Delete.
6544 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6545 *boolcdi3_internal3 and split): Delete.
6546 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6547
6548 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6549
6550 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6551 <'u'>: Also support printing the low-order 16 bits.
6552 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6553 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6554 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6555 *booldi3_internal3 and split): Delete.
6556 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6557 *bool<mode>3_dot2): New.
6558 (two anonymous define_splits for non_logical_cint_operand): Merge.
6559
6560 2014-08-17 Marek Polacek <polacek@redhat.com>
6561 Manuel López-Ibáñez <manu@gcc.gnu.org>
6562
6563 PR c/62059
6564 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6565 (diagnostic_show_locus): Don't print caret diagnostic
6566 if a column is larger than the line_width.
6567
6568 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6569
6570 * common.opt: Make the ISL AST generator to be the main code generator
6571 of Graphite.
6572
6573 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6574
6575 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6576
6577 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6578
6579 PR target/61641
6580 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6581 Declare.
6582 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6583 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6584 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6585 Define.
6586 * config/pa/pa.md (begin_brtab): Delete insn.
6587 (end_brtab): Likewise.
6588
6589 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6590
6591 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6592
6593 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6594
6595 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6596 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6597 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6598 (get_dynamic_type): Remove.
6599 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6600 (clear_speculation): Bring to ipa-deivrt.h
6601 (get_class_context): Rename to ...
6602 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6603 (contains_type_p): Update.
6604 (get_dynamic_type): Rename to ...
6605 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6606 (possible_polymorphic_call_targets): UPdate.
6607 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6608 * ipa-prop.c (ipa_analyze_call_uses): Update.
6609
6610 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6611
6612 * doc/invoke.texi (SH options): Document missing processor variant
6613 options. Remove references to Hitachi. Undocument deprecated mspace
6614 option.
6615
6616 2014-08-15 Jason Merrill <jason@redhat.com>
6617
6618 * tree.c (type_hash_canon): Uncomment assert.
6619
6620 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6621
6622 * input.h (in_system_header_at): Add comment.
6623
6624 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6625
6626 PR fortran/44054
6627 * diagnostic.c (build_message_string): Make it extern.
6628 * diagnostic.h (build_message_string): Make it extern.
6629
6630 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6631
6632 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6633 load/store from/to non-floating class pseudo.
6634
6635 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6636
6637 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6638
6639 2014-08-15 Richard Biener <rguenther@suse.de>
6640
6641 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6642 (get_constraint_for_ssa_var): Remove dead code.
6643 (get_constraint_for_1): Adjust.
6644 (find_what_var_points_to): Likewise.
6645 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6646
6647 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6648
6649 PR target/61878
6650 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6651 (_mm512_mask_cmpge_epu32_mask): Ditto.
6652 (_mm512_cmpge_epu32_mask): Ditto.
6653 (_mm512_mask_cmpge_epi64_mask): Ditto.
6654 (_mm512_cmpge_epi64_mask): Ditto.
6655 (_mm512_mask_cmpge_epu64_mask): Ditto.
6656 (_mm512_cmpge_epu64_mask): Ditto.
6657 (_mm512_mask_cmple_epi32_mask): Ditto.
6658 (_mm512_cmple_epi32_mask): Ditto.
6659 (_mm512_mask_cmple_epu32_mask): Ditto.
6660 (_mm512_cmple_epu32_mask): Ditto.
6661 (_mm512_mask_cmple_epi64_mask): Ditto.
6662 (_mm512_cmple_epi64_mask): Ditto.
6663 (_mm512_mask_cmple_epu64_mask): Ditto.
6664 (_mm512_cmple_epu64_mask): Ditto.
6665 (_mm512_mask_cmplt_epi32_mask): Ditto.
6666 (_mm512_cmplt_epi32_mask): Ditto.
6667 (_mm512_mask_cmplt_epu32_mask): Ditto.
6668 (_mm512_cmplt_epu32_mask): Ditto.
6669 (_mm512_mask_cmplt_epi64_mask): Ditto.
6670 (_mm512_cmplt_epi64_mask): Ditto.
6671 (_mm512_mask_cmplt_epu64_mask): Ditto.
6672 (_mm512_cmplt_epu64_mask): Ditto.
6673 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6674 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6675 (_mm512_cmpneq_epu32_mask): Ditto.
6676 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6677 (_mm512_cmpneq_epi64_mask): Ditto.
6678 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6679 (_mm512_cmpneq_epu64_mask): Ditto.
6680 (_mm512_castpd_ps): Ditto.
6681 (_mm512_castpd_si512): Ditto.
6682 (_mm512_castps_pd): Ditto.
6683 (_mm512_castps_si512): Ditto.
6684 (_mm512_castsi512_ps): Ditto.
6685 (_mm512_castsi512_pd): Ditto.
6686 (_mm512_castpd512_pd128): Ditto.
6687 (_mm512_castps512_ps128): Ditto.
6688 (_mm512_castsi512_si128): Ditto.
6689 (_mm512_castpd512_pd256): Ditto.
6690 (_mm512_castps512_ps256): Ditto.
6691 (_mm512_castsi512_si256): Ditto.
6692 (_mm512_castpd128_pd512): Ditto.
6693 (_mm512_castps128_ps512): Ditto.
6694 (_mm512_castsi128_si512): Ditto.
6695 (_mm512_castpd256_pd512): Ditto.
6696 (_mm512_castps256_ps512): Ditto.
6697 (_mm512_castsi256_si512): Ditto.
6698 (_mm512_cmpeq_epu32_mask): Ditto.
6699 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6700 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6701 (_mm512_cmpeq_epu64_mask): Ditto.
6702 (_mm512_cmpgt_epu32_mask): Ditto.
6703 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6704 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6705 (_mm512_cmpgt_epu64_mask): Ditto.
6706 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6707 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6708 * config/i386/i386.c (enum ix86_builtins): Add
6709 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6710 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6711 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6712 (bdesc_args): Add __builtin_ia32_si512_256si,
6713 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6714 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6715 __builtin_ia32_pd512_pd.
6716 (ix86_expand_args_builtin): Handle new FTYPEs.
6717 * config/i386/sse.md (castmode): Add 512-bit modes.
6718 (AVX512MODE2P): New.
6719 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6720 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6721
6722 2014-08-15 Richard Biener <rguenther@suse.de>
6723
6724 * fold-const.c (tree_swap_operands_p): Put all constants
6725 last, also strip sign-changing NOPs when considering further
6726 canonicalization. Canonicalize also when optimizing for size.
6727
6728 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6729
6730 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6731 one_match > zero_match case to just before simple_sequence.
6732
6733 2014-08-15 Richard Biener <rguenther@suse.de>
6734
6735 * data-streamer.h (streamer_string_index, string_for_index):
6736 Remove.
6737 * data-streamer-out.c (streamer_string_index): Make static.
6738 * data-streamer-in.c (string_for_index): Likewise.
6739 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6740 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6741
6742 2014-08-15 Richard Biener <rguenther@suse.de>
6743
6744 PR tree-optimization/62031
6745 * tree-data-ref.c (dr_analyze_indices): Do not set
6746 DR_UNCONSTRAINED_BASE.
6747 (dr_may_alias_p): All indirect accesses have to go the
6748 formerly DR_UNCONSTRAINED_BASE path.
6749 * tree-data-ref.h (struct indices): Remove
6750 unconstrained_base member.
6751 (DR_UNCONSTRAINED_BASE): Remove.
6752
6753 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6754
6755 PR middle-end/62092
6756 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6757 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6758 in OMP_CLAUSE_MAP in some outer target region.
6759
6760 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6761
6762 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6763 name_expansion_cache.
6764 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6765 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6766 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6767 (difference_cannot_overflow_p): New parameter. Use affine
6768 expansion for equality check.
6769 (iv_elimination_compare_lt): Pass new argument.
6770
6771 2014-08-14 DJ Delorie <dj@redhat.com>
6772
6773 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6774 variables to the accumulator.
6775
6776 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6777 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6778 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6779 with far-far moves.
6780
6781 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6782 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6783 (umulqihi3_virt): Likewise.
6784 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6785 (umulqihi3_real): Likewise.
6786
6787 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6788
6789 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6790
6791 PR tree-optimization/62091
6792 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6793 function_entry_reached.
6794 (walk_aliased_vdefs): Clear it here.
6795 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6796
6797 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6798
6799 * ipa-utils.h (compare_virtual_tables): Declare.
6800 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6801
6802 2014-08-14 Marek Polacek <polacek@redhat.com>
6803
6804 DR 458
6805 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6806 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6807
6808 2014-08-14 Tom de Vries <tom@codesourcery.com>
6809
6810 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6811
6812 2014-08-14 Tom de Vries <tom@codesourcery.com>
6813
6814 PR rtl-optimization/62004
6815 PR rtl-optimization/62030
6816 * ifcvt.c (rtx_interchangeable_p): New function.
6817 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6818 * emit-rtl.h (mem_attrs_eq_p): Declare.
6819
6820 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6821
6822 * graphite-scop-detection.c:
6823 Add inclusion of cp-tree.h.
6824 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6825 in case they are pointers to object types
6826
6827 2014-08-14 Richard Biener <rguenther@suse.de>
6828
6829 * BASE-VER: Change to 5.0.0
6830
6831 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6832 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6833 Anna Tikhonova <anna.tikhonova@intel.com>
6834 Ilya Tocar <ilya.tocar@intel.com>
6835 Andrey Turetskiy <andrey.turetskiy@intel.com>
6836 Ilya Verbin <ilya.verbin@intel.com>
6837 Kirill Yukhin <kirill.yukhin@intel.com>
6838 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6839
6840 * config/i386/sse.md (define_mode_attr avx512): New.
6841 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6842 V4DI modes.
6843 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6844 (define_mode_attr ssse3_avx2): Ditto.
6845 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6846 (define_mode_attr avx2_avx512bw): New.
6847 (define_mode_attr ssedoublemodelower): New.
6848 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6849 V32HI, V64QI modes.
6850 (define_mode_attr ssebytemode): Allow V8DI modes.
6851 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6852 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6853 (define_mode_attr ssePSmode2): New.
6854 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6855 V16HI, V32HI modes.
6856 (define_mode_attr dbpsadbwmode): New.
6857 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6858 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6859 (vi8_sse4_1_avx2_avx512): New.
6860 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6861 mode attribute.
6862 (define_mode_attr blendbits): Move before its immediate use.
6863
6864 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6865 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6866 Anna Tikhonova <anna.tikhonova@intel.com>
6867 Ilya Tocar <ilya.tocar@intel.com>
6868 Andrey Turetskiy <andrey.turetskiy@intel.com>
6869 Ilya Verbin <ilya.verbin@intel.com>
6870 Kirill Yukhin <kirill.yukhin@intel.com>
6871 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6872
6873 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6874 * config/i386/subst.md
6875 (define_mode_iterator SUBST_V): Update.
6876 (define_mode_iterator SUBST_A): Ditto.
6877 (define_subst_attr "mask_operand7"): New.
6878 (define_subst_attr "mask_operand10"): New.
6879 (define_subst_attr "mask_operand_arg34") : New.
6880 (define_subst_attr "mask_expand_op3"): New.
6881 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6882 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6883 (define_subst_attr "mask_avx512vl_condition"): New.
6884 (define_subst_attr "round_mask_operand4"): Ditto.
6885 (define_subst_attr "round_mask_scalar_op3"): Delete.
6886 (define_subst_attr "round_mask_op4"): New.
6887 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6888 V16SImode.
6889 (define_subst_attr "round_modev8sf_condition"): New.
6890 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6891 <MODE>mode.
6892 (define_subst_attr "round_saeonly_mask_operand4"): New.
6893 (define_subst_attr "round_saeonly_mask_op4"): New.
6894 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6895 V8DImode, V16SImode.
6896 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6897 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6898 (define_subst_attr "mask_expand4_args"): New.
6899 (define_subst "mask_expand4"): New.
6900
6901 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6902 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6903 Anna Tikhonova <anna.tikhonova@intel.com>
6904 Ilya Tocar <ilya.tocar@intel.com>
6905 Andrey Turetskiy <andrey.turetskiy@intel.com>
6906 Ilya Verbin <ilya.verbin@intel.com>
6907 Kirill Yukhin <kirill.yukhin@intel.com>
6908 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6909
6910 * config/i386/i386.md
6911 (define_attr "isa"): Add avx512bw,noavx512bw.
6912 (define_attr "enabled"): Ditto.
6913 (define_split): Add 32/64-bit mask logic.
6914 (define_insn "*k<logic>qi"): New.
6915 (define_insn "*k<logic>hi"): New.
6916 (define_insn "*anddi_1"): Add mask version.
6917 (define_insn "*andsi_1"): Ditto.
6918 (define_insn "*<code><mode>_1"): Ditto.
6919 (define_insn "*<code>hi_1"): Ditto.
6920 (define_insn "kxnor<mode>"): New.
6921 (define_insn "kunpcksi"): New.
6922 (define_insn "kunpckdi"): New.
6923 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6924 (define_insn "*one_cmplhi2_1"): Ditto.
6925
6926 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6927 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6928 Anna Tikhonova <anna.tikhonova@intel.com>
6929 Ilya Tocar <ilya.tocar@intel.com>
6930 Andrey Turetskiy <andrey.turetskiy@intel.com>
6931 Ilya Verbin <ilya.verbin@intel.com>
6932 Kirill Yukhin <kirill.yukhin@intel.com>
6933 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6934
6935 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6936 V32HImode.
6937
6938 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6939 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6940 Anna Tikhonova <anna.tikhonova@intel.com>
6941 Ilya Tocar <ilya.tocar@intel.com>
6942 Andrey Turetskiy <andrey.turetskiy@intel.com>
6943 Ilya Verbin <ilya.verbin@intel.com>
6944 Kirill Yukhin <kirill.yukhin@intel.com>
6945 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6946
6947 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6948 registers.
6949 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6950 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6951 xmm/ymm16+ when availble.
6952 * config/i386/i386.h
6953 (HARD_REGNO_NREGS): Add mask regs.
6954 (VALID_AVX512F_REG_MODE): Ditto.
6955 (VALID_AVX512F_REG_MODE) : Define.
6956 (VALID_MASK_AVX512BW_MODE): Ditto.
6957 (reg_class) (MASK_REG_P(X)): Define.
6958 * config/i386/i386.md: Do not split long moves with mask register,
6959 use kmovb if avx512bw is availible.
6960 (movdi_internal): Handle mask registers.
6961
6962 2014-08-14 Richard Biener <rguenther@suse.de>
6963
6964 PR tree-optimization/62081
6965 * tree-ssa-loop.c (pass_fix_loops): New pass.
6966 (pass_tree_loop::gate): Do not fixup loops here.
6967 * tree-pass.h (make_pass_fix_loops): Declare.
6968 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6969
6970 2014-08-14 Richard Biener <rguenther@suse.de>
6971
6972 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6973 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6974
6975 2014-08-14 Richard Biener <rguenther@suse.de>
6976
6977 PR tree-optimization/62090
6978 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6979 (fold_builtin_2): Do not fold sprintf.
6980 (fold_builtin_3): Likewise.
6981 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6982 moved from builtins.c.
6983 (gimple_fold_builtin): Fold sprintf.
6984
6985 2014-08-14 Richard Biener <rguenther@suse.de>
6986
6987 PR rtl-optimization/62079
6988 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6989 run cleanup_cfg.
6990
6991 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6992
6993 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6994 current_function_decl.
6995
6996 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6997
6998 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6999 cgraph_function_node to cgraph_node::function_symbol
7000 refactoring.
7001
7002 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
7003
7004 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
7005 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
7006
7007 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
7008
7009 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
7010 warning.
7011
7012 2014-08-13 Roman Gareev <gareevroman@gmail.com>
7013
7014 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
7015 generator.
7016
7017 2014-08-12 Jakub Jelinek <jakub@redhat.com>
7018
7019 PR target/62025
7020 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
7021 any registers that are used in mem_insn.
7022
7023 2014-08-12 Steve Ellcey <sellcey@mips.com>
7024
7025 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
7026
7027 2014-08-12 Steve Ellcey <sellcey@mips.com>
7028
7029 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
7030 (MULTILIB_DIRNAMES): Ditto.
7031 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
7032 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
7033 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
7034 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
7035 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
7036 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
7037
7038 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7039
7040 PR target/61413
7041 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
7042 of __ARM_SIZEOF_WCHAR_T.
7043
7044 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7045
7046 PR target/62098
7047 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
7048 Remove unnecessary attributes.
7049
7050 2014-08-12 Yury Gribov <y.gribov@samsung.com>
7051
7052 * internal-fn.c (init_internal_fns): Fix off-by-one.
7053
7054 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
7055 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7056 Anna Tikhonova <anna.tikhonova@intel.com>
7057 Ilya Tocar <ilya.tocar@intel.com>
7058 Andrey Turetskiy <andrey.turetskiy@intel.com>
7059 Ilya Verbin <ilya.verbin@intel.com>
7060 Kirill Yukhin <kirill.yukhin@intel.com>
7061 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7062
7063 * config/i386/i386.c (standard_sse_constant_opcode): Use
7064 vpxord/vpternlog if avx512 is availible.
7065
7066 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7067
7068 PR middle-end/62103
7069 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
7070 bitfields, that is when size doesn't match the size of type or the
7071 size of the constructor.
7072
7073 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7074
7075 * config/rs6000/constraints.md (wh constraint): New constraint,
7076 for FP registers if direct move is available.
7077 (wi constraint): New constraint, for VSX/FP registers that can
7078 handle 64-bit integers.
7079 (wj constraint): New constraint for VSX/FP registers that can
7080 handle 64-bit integers for direct moves.
7081 (wk constraint): New constraint for VSX/FP registers that can
7082 handle 64-bit doubles for direct moves.
7083 (wy constraint): Make documentation match implementation.
7084
7085 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
7086 scalar_in_vmx_p field to simplify tests of whether SFmode or
7087 DFmode can go in the Altivec registers.
7088 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
7089 (rs6000_setup_reg_addr_masks): Likewise.
7090 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
7091 field, and wh/wi/wj/wk constraints.
7092 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7093 the wh/wi/wj/wk constraints.
7094 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7095 upper registers, prefer VSX registers unless the operation is a
7096 memory operation with REG+OFFSET addressing.
7097
7098 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7099 DImode. Change SFmode to use ww constraint instead of d to allow
7100 SF registers in the upper registers.
7101 (VSr2): Likewise.
7102 (VSr3): Likewise.
7103 (VSr5): Fix thinko in comment.
7104 (VSa): New mode attribute that is an alternative to wa, that
7105 returns the VSX register class that a mode can go in, but may not
7106 be the preferred register class.
7107 (VS_64dm): New mode attribute for appropriate register classes for
7108 referencing 64-bit elements of vectors for direct moves and normal
7109 moves.
7110 (VS_64reg): Likewise.
7111 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7112 register allocator to only registers the data type can handle.
7113 (vsx_le_perm_load_<mode>): Likewise.
7114 (vsx_le_perm_store_<mode>): Likewise.
7115 (vsx_xxpermdi2_le_<mode>): Likewise.
7116 (vsx_xxpermdi4_le_<mode>): Likewise.
7117 (vsx_lxvd2x2_le_<mode>): Likewise.
7118 (vsx_lxvd2x4_le_<mode>): Likewise.
7119 (vsx_stxvd2x2_le_<mode>): Likewise.
7120 (vsx_add<mode>3): Likewise.
7121 (vsx_sub<mode>3): Likewise.
7122 (vsx_mul<mode>3): Likewise.
7123 (vsx_div<mode>3): Likewise.
7124 (vsx_tdiv<mode>3_internal): Likewise.
7125 (vsx_fre<mode>2): Likewise.
7126 (vsx_neg<mode>2): Likewise.
7127 (vsx_abs<mode>2): Likewise.
7128 (vsx_nabs<mode>2): Likewise.
7129 (vsx_smax<mode>3): Likewise.
7130 (vsx_smin<mode>3): Likewise.
7131 (vsx_sqrt<mode>2): Likewise.
7132 (vsx_rsqrte<mode>2): Likewise.
7133 (vsx_tsqrt<mode>2_internal): Likewise.
7134 (vsx_fms<mode>4): Likewise.
7135 (vsx_nfma<mode>4): Likewise.
7136 (vsx_eq<mode>): Likewise.
7137 (vsx_gt<mode>): Likewise.
7138 (vsx_ge<mode>): Likewise.
7139 (vsx_eq<mode>_p): Likewise.
7140 (vsx_gt<mode>_p): Likewise.
7141 (vsx_ge<mode>_p): Likewise.
7142 (vsx_xxsel<mode>): Likewise.
7143 (vsx_xxsel<mode>_uns): Likewise.
7144 (vsx_copysign<mode>3): Likewise.
7145 (vsx_float<VSi><mode>2): Likewise.
7146 (vsx_floatuns<VSi><mode>2): Likewise.
7147 (vsx_fix_trunc<mode><VSi>2): Likewise.
7148 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7149 (vsx_x<VSv>r<VSs>i): Likewise.
7150 (vsx_x<VSv>r<VSs>ic): Likewise.
7151 (vsx_btrunc<mode>2): Likewise.
7152 (vsx_b2trunc<mode>2): Likewise.
7153 (vsx_floor<mode>2): Likewise.
7154 (vsx_ceil<mode>2): Likewise.
7155 (vsx_<VS_spdp_insn>): Likewise.
7156 (vsx_xscvspdp): Likewise.
7157 (vsx_xvcvspuxds): Likewise.
7158 (vsx_float_fix_<mode>2): Likewise.
7159 (vsx_set_<mode>): Likewise.
7160 (vsx_extract_<mode>_internal1): Likewise.
7161 (vsx_extract_<mode>_internal2): Likewise.
7162 (vsx_extract_<mode>_load): Likewise.
7163 (vsx_extract_<mode>_store): Likewise.
7164 (vsx_splat_<mode>): Likewise.
7165 (vsx_xxspltw_<mode>): Likewise.
7166 (vsx_xxspltw_<mode>_direct): Likewise.
7167 (vsx_xxmrghw_<mode>): Likewise.
7168 (vsx_xxmrglw_<mode>): Likewise.
7169 (vsx_xxsldwi_<mode>): Likewise.
7170 (vsx_xscvdpspn): Tighten constraints to only use register classes
7171 the types use.
7172 (vsx_xscvspdpn): Likewise.
7173 (vsx_xscvdpspn_scalar): Likewise.
7174
7175 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7176 wj, and wk constraints.
7177 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7178 general purpose registers.
7179
7180 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7181 direct moves.
7182 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7183 DImode instead of wm. Use wk constraint for direct move of DFmode
7184 instead of wm.
7185 (extendsidi2_lfiwax): Likewise.
7186 (lfiwax): Likewise.
7187 (lfiwzx): Likewise.
7188 (movdi_internal64): Likewise.
7189
7190 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7191 wk constraints. Make the wy constraint documentation match them
7192 implementation.
7193
7194 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7195
7196 Replacement of isl_int by isl_val
7197 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7198 (compute_bounds_for_param): use isl_val instead of isl_int
7199 (compute_bounds_for_loop): likewise
7200 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7201 (build_linearized_memory_access): use isl_val instead of isl_int
7202 (pdr_stride_in_loop): likewise
7203 * graphite-optimize-isl.c:
7204 (getPrevectorMap): use isl_val instead of isl_int
7205 * graphite-poly.c:
7206 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7207 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7208 (extern the_isl_ctx): declare
7209 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7210 (extract_affine_gmp): likewise
7211 (wrap): likewise
7212 (build_loop_iteration_domains): likewise
7213 (add_param_constraints): likewise
7214
7215 2014-08-11 Richard Biener <rguenther@suse.de>
7216
7217 PR tree-optimization/62075
7218 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7219 handle uses in patterns.
7220
7221 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7222 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7223 Anna Tikhonova <anna.tikhonova@intel.com>
7224 Ilya Tocar <ilya.tocar@intel.com>
7225 Andrey Turetskiy <andrey.turetskiy@intel.com>
7226 Ilya Verbin <ilya.verbin@intel.com>
7227 Kirill Yukhin <kirill.yukhin@intel.com>
7228 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7229
7230 * common/config/i386/i386-common.c
7231 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7232 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7233 (ix86_handle_option): Handle OPT_mavx512vl.
7234 * config/i386/cpuid.h (bit_AVX512VL): Define.
7235 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7236 set -mavx512vl accordingly.
7237 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7238 OPTION_MASK_ISA_AVX512VL.
7239 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7240 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7241 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7242 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7243 * config/i386/i386.h (TARGET_AVX512VL): Define.
7244 (TARGET_AVX512VL_P(x)): Ditto.
7245 * config/i386/i386.opt: Add mavx512vl.
7246
7247 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7248
7249 PR tree-optimization/62073
7250 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7251 a basic block.
7252
7253 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7254 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7255 Anna Tikhonova <anna.tikhonova@intel.com>
7256 Ilya Tocar <ilya.tocar@intel.com>
7257 Andrey Turetskiy <andrey.turetskiy@intel.com>
7258 Ilya Verbin <ilya.verbin@intel.com>
7259 Kirill Yukhin <kirill.yukhin@intel.com>
7260 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7261
7262 * common/config/i386/i386-common.c
7263 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7264 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7265 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7266 (ix86_handle_option): Handle OPT_mavx512bw.
7267 * config/i386/cpuid.h (bit_AVX512BW): Define.
7268 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7269 set -mavx512bw accordingly.
7270 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7271 OPTION_MASK_ISA_AVX512BW.
7272 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7273 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7274 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7275 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7276 * config/i386/i386.h (TARGET_AVX512BW): Define.
7277 (TARGET_AVX512BW_P(x)): Ditto.
7278 * config/i386/i386.opt: Add mavx512bw.
7279
7280 2014-08-11 Richard Biener <rguenther@suse.de>
7281
7282 PR tree-optimization/62070
7283 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7284 Remove SSA checking.
7285
7286 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7287
7288 * asan.c (asan_check_flags): New enum.
7289 (build_check_stmt_with_calls): Removed function.
7290 (build_check_stmt): Split inlining logic to
7291 asan_expand_check_ifn.
7292 (instrument_derefs): Rename parameter.
7293 (instrument_mem_region_access): Rename parameter.
7294 (instrument_strlen_call): Likewise.
7295 (asan_expand_check_ifn): New function.
7296 (asan_instrument): Remove old code.
7297 (pass_sanopt::execute): Change handling of
7298 asan-instrumentation-with-call-threshold.
7299 (asan_clear_shadow): Fix formatting.
7300 (asan_function_start): Likewise.
7301 (asan_emit_stack_protection): Likewise.
7302 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7303 Update description.
7304 * internal-fn.c (expand_ASAN_CHECK): New function.
7305 * internal-fn.def (ASAN_CHECK): New internal function.
7306 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7307 Update description.
7308 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7309 * tree.c: Small comment fix.
7310
7311 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7312
7313 * gimple.c (gimple_call_fnspec): Support internal functions.
7314 (gimple_call_return_flags): Use const.
7315 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7316 * internal-fn.def: Add fnspec information.
7317 * internal-fn.h (internal_fn_fnspec): New function.
7318 (init_internal_fns): Declare new function.
7319 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7320 (init_internal_fns): New function.
7321 * tree-core.h: Update macro call.
7322 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7323
7324 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7325
7326 * lto-streamer.h (struct output_block::symbol): Change from
7327 struct symtab_node to plain symtab_node.
7328 (referenced_from_this_partition_p): Change first parameter
7329 from struct symtab_node to plain symtab_node.
7330
7331 2014-08-10 Marek Polacek <polacek@redhat.com>
7332
7333 PR c/51849
7334 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7335
7336 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7337
7338 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7339 DECL correctly; do not give up on types in static storage.
7340
7341 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7342
7343 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7344
7345 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7346
7347 * graphite-isl-ast-to-gimple.c:
7348 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7349
7350 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7351
7352 2014-08-08 Guozhi Wei <carrot@google.com>
7353
7354 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7355
7356 2014-08-08 Cary Coutant <ccoutant@google.com>
7357
7358 * dwarf2out.c (get_skeleton_type_unit): Remove.
7359 (output_skeleton_debug_sections): Remove skeleton type units.
7360 (output_comdat_type_unit): Likewise.
7361 (dwarf2out_finish): Likewise.
7362
7363 2014-08-07 Yi Yang <ahyangyi@google.com>
7364
7365 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7366
7367 2014-08-08 Richard Biener <rguenther@suse.de>
7368
7369 * lto-streamer.h (struct lto_input_block): Make it a class
7370 with a constructor.
7371 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7372 (struct lto_function_header, struct lto_simple_header,
7373 struct lto_simple_header_with_strings,
7374 struct lto_decl_header, struct lto_function_header): Make
7375 a simple inheritance hieararchy. Remove unused fields.
7376 (struct lto_asm_header): Remove.
7377 * lto-streamer-out.c (produce_asm): Adjust.
7378 (lto_output_toplevel_asms): Likewise.
7379 (produce_asm_for_decls): Likewise.
7380 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7381 * data-streamer-in.c (string_for_index): Likewise.
7382 * ipa-inline-analysis.c (inline_read_section): Likewise.
7383 * ipa-prop.c (ipa_prop_read_section): Likewise.
7384 (read_replacements_section): Likewise.
7385 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7386 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7387 (lto_destroy_simple_input_block): Likewise.
7388 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7389 (lto_input_toplevel_asms): Likewise.
7390
7391 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7392 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7393 Anna Tikhonova <anna.tikhonova@intel.com>
7394 Ilya Tocar <ilya.tocar@intel.com>
7395 Andrey Turetskiy <andrey.turetskiy@intel.com>
7396 Ilya Verbin <ilya.verbin@intel.com>
7397 Kirill Yukhin <kirill.yukhin@intel.com>
7398 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7399
7400 * common/config/i386/i386-common.c
7401 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7402 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7403 (ix86_handle_option): Handle OPT_mavx512dq.
7404 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7405 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7406 set -mavx512dq accordingly.
7407 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7408 OPTION_MASK_ISA_AVX512DQ.
7409 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7410 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7411 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7412 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7413 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7414 (TARGET_AVX512DQ_P(x)): Ditto.
7415 * config/i386/i386.opt: Add mavx512dq.
7416
7417 2014-08-08 Richard Biener <rguenther@suse.de>
7418
7419 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7420 target_percent, target_percent_s): Export.
7421 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7422 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7423 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7424 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7425 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7426 Move to gimple-fold.c.
7427 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7428 strcat and strcpy.
7429 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7430 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7431 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7432 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7433 (rewrite_call_expr_array): Remove.
7434 (fold_builtin_sprintf_chk): Likewise.
7435 (fold_builtin_snprintf_chk): Likewise.
7436 (fold_builtin_varargs): Remove handling of sprintf_chk,
7437 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7438 (gimple_fold_builtin_sprintf_chk): Remove.
7439 (gimple_fold_builtin_snprintf_chk): Likewise.
7440 (gimple_fold_builtin_varargs): Likewise.
7441 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7442 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7443 * gimple.c (gimple_seq_add_seq_without_update): New function.
7444 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7445 * gimple-fold.c: Include output.h.
7446 (gsi_replace_with_seq_vops): New function, split out from ...
7447 (gimplify_and_update_call_from_tree): ... here.
7448 (replace_call_with_value): New function.
7449 (replace_call_with_call_and_fold): Likewise.
7450 (var_decl_component_p): Moved from builtins.c.
7451 (gimple_fold_builtin_memory_op): Moved from builtins.c
7452 fold_builtin_memory_op and rewritten to GIMPLE.
7453 (gimple_fold_builtin_memset): Likewise.
7454 (gimple_fold_builtin_strcpy): Likewise.
7455 (gimple_fold_builtin_strncpy): Likewise.
7456 (gimple_fold_builtin_strcat): Likewise.
7457 (gimple_fold_builtin_fputs): Likewise.
7458 (gimple_fold_builtin_memory_chk): Likewise.
7459 (gimple_fold_builtin_stxcpy_chk): Likewise.
7460 (gimple_fold_builtin_stxncpy_chk): Likewise.
7461 (gimple_fold_builtin_snprintf_chk): Likewise.
7462 (gimple_fold_builtin_sprintf_chk): Likewise.
7463 (gimple_fold_builtin_strlen): New function.
7464 (gimple_fold_builtin_with_strlen): New function split out from
7465 gimple_fold_builtin.
7466 (gimple_fold_builtin): Change signature and handle
7467 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7468 here. Call gimple_fold_builtin_with_strlen.
7469 (gimple_fold_call): Adjust.
7470
7471 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7472
7473 * calls.c (precompute_arguments): Check
7474 promoted_for_signed_and_unsigned_p and set the promoted mode.
7475 (promoted_for_signed_and_unsigned_p): New function.
7476 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7477 and set the promoted mode.
7478 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7479 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7480 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7481
7482
7483 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7484
7485 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7486 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7487 (expand_call): Likewise.
7488 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7489 to get promoted mode.
7490 * combine.c (record_promoted_value): Skip > 0 comparison with
7491 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7492 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7493 of SUBREG_PROMOTED_UNSIGNED_P.
7494 (convert_modes): Likewise.
7495 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7496 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7497 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7498 SUBREG_PROMOTED_UNSIGNED_SET.
7499 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7500 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7501 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7502 SUBREG_PROMOTED_SET.
7503 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7504 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7505 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7506 of SUBREG_PROMOTED_UNSIGNED_P.
7507 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7508 (SUBREG_PROMOTED_SET): New define.
7509 (SUBREG_PROMOTED_GET): Likewise.
7510 (SUBREG_PROMOTED_SIGN): Likewise.
7511 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7512 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7513 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7514 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7515 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7516 (nonzero_bits1): Skip > 0 comparison with the results as
7517 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7518 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7519 of !SUBREG_PROMOTED_UNSIGNED_P.
7520 * simplify-rtx.c (simplify_unary_operation_1): Use new
7521 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7522 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7523 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7524 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7525
7526 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7527
7528 * ipa-devirt.c: Include gimple-pretty-print.h
7529 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7530 further tests.
7531 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7532 (get_polymorphic_call_info): Fix return value
7533 (type_change_info): New sturcture based on ipa-prop
7534 variant.
7535 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7536 based on ipa-prop variant.
7537 (extr_type_from_vtbl_ptr_store): New function
7538 based on ipa-prop variant.
7539 (record_known_type): New function.
7540 (check_stmt_for_type_change): New function.
7541 (get_dynamic_type): New function.
7542 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7543 * tree-ssa-pre.c: ipa-utils.h
7544 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7545 machinery; sanity check with ipa-prop devirtualization.
7546 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7547 polymorphic flag.
7548
7549 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7550
7551 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7552 * alias.c, cfgexpand.c, cgraphbuild.c,
7553 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7554 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7555 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7556 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7557 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7558 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7559 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7560 dse.c, except.c, gengtype.c, gimple-expr.c,
7561 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7562 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7563 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7564 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7565 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7566 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7567 pointer-set.h.
7568 * pointer-set.c: Remove file.
7569 * pointer-set.h: Remove file.
7570
7571 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7572
7573 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7574 * config/arm/types.md (f_sels, f_seld): Delete.
7575
7576 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7577
7578 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7579 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7580 (aarch64_movdi_<mode>high): Likewise.
7581 (aarch64_mov<mode>high_di): Likewise.
7582 (aarch64_movdi_<mode>low): Likewise.
7583 (aarch64_mov<mode>low_di): Likewise.
7584 (aarch64_movtilow_tilow): Likewise.
7585 Add comment explaining usage of fp,simd attributes and of
7586 TARGET_FLOAT and TARGET_SIMD.
7587
7588 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7589 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7590
7591 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7592 Use MOVN when one of the half-words is 0xffff.
7593
7594 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7595
7596 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7597
7598 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7599
7600 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7601 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7602 (rfs_str): String corresponding to RFS_* constants.
7603 (rank_for_schedule_stats_t): New typedef.
7604 (rank_for_schedule_stats): New static variable.
7605 (rfs_result): New static function.
7606 (rank_for_schedule): Track statistics for deciding heuristics.
7607 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7608 static functions.
7609 (ready_sort): Use them for debug printouts.
7610 (schedule_block): Init statistics state. Print statistics on
7611 rank_for_schedule decisions.
7612
7613 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7614
7615 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7616
7617 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7618
7619 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7620 constraint.
7621
7622 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7623
7624 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7625 function to not conflict.
7626 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7627 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7628 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7629 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7630 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7631 of pointer_map.
7632
7633 2014-08-07 Marek Polacek <polacek@redhat.com>
7634
7635 * fold-const.c (fold_binary_loc): Add folding of
7636 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7637
7638 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7639
7640 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7641 instead of type size.
7642 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7643
7644 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7645
7646 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7647 (*thumb1_movqi_insn): Likewise.
7648 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7649
7650 2014-08-07 Tom de Vries <tom@codesourcery.com>
7651
7652 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7653 (glibc_2_11_or_earlier): Remove effective-target keywords.
7654
7655 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7656
7657 * config/arm/arm.c (bdesc_2arg): Fix typo.
7658 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7659
7660 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7661
7662 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7663
7664 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7665
7666 PR debug/61923
7667 * haifa-sched.c (advance_one_cycle): Fix dump.
7668 (schedule_block): Don't advance cycle if we are already at the
7669 beginning of the cycle.
7670
7671 2014-08-06 Martin Jambor <mjambor@suse.cz>
7672
7673 PR ipa/61393
7674 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7675
7676 2014-08-06 Richard Biener <rguenther@suse.de>
7677
7678 PR lto/62034
7679 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7680 SCCs here.
7681 (lto_input_tree): Pop SCCs here.
7682
7683 2014-08-06 Richard Biener <rguenther@suse.de>
7684
7685 PR tree-optimization/61320
7686 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7687 handle misaligned loads.
7688
7689 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7690
7691 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7692 (aarch64_expand_vec_perm_const): Check for dup before zip.
7693
7694 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7695
7696 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7697 CONST_INT_P instead of GET_CODE and compare.
7698 (aarch64_select_cc_mode): Likewise.
7699 (aarch64_print_operand): Likewise.
7700 (aarch64_rtx_costs): Likewise.
7701 (aarch64_simd_valid_immediate): Likewise.
7702 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7703 (aarch64_simd_emit_pair_result_insn): Likewise.
7704
7705 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7706
7707 * gdbhooks.py (find_gcc_source_dir): New helper function.
7708 (class PassNames): New class, locating and parsing passes.def.
7709 (class BreakOnPass): New command "break-on-pass".
7710
7711 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7712
7713 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7714 getting olde.
7715
7716 2014-08-05 Richard Biener <rguenther@suse.de>
7717
7718 PR rtl-optimization/61672
7719 * emit-rtl.h (mem_attrs_eq_p): Declare.
7720 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7721 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7722 * cfgcleanup.c (merge_memattrs): Likewise.
7723 Include emit-rtl.h.
7724
7725 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7726
7727 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7728 rather than singleton vectors.
7729 (vqdmlsls_lane_s32): Likewise.
7730
7731 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7732
7733 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7734 Use VSDQ_HSI mode iterator.
7735 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7736 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7737 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7738 Use BUILTIN_VDQHS macro.
7739 (sqrdmulh_laneq): Likewise.
7740 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7741 (vqdmlals_laneq_s32): Likewise.
7742 (vqdmlslh_laneq_s16): Likewise.
7743 (vqdmlsls_laneq_s32): Likewise.
7744 (vqdmulhh_laneq_s16): Likewise.
7745 (vqdmulhs_laneq_s32): Likewise.
7746 (vqrdmulhh_laneq_s16): Likewise.
7747 (vqrdmulhs_laneq_s32): Likewise.
7748
7749 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7750
7751 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7752 (vmuld_laneq_f64): Likewise.
7753 (vmuls_laneq_f32): Likewise.
7754 (vmul_n_f64): Likewise.
7755 (vmuld_lane_f64): Reimplement in C.
7756 (vmuls_lane_f32): Likewise.
7757
7758 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7759
7760 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7761 to reservation.
7762 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7763
7764 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7765
7766 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7767 (rbitsi2): Likewise.
7768 (*arm_rev): Set predicable and predicable_short_it attributes.
7769
7770 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7771
7772 * convert.c (convert_to_integer): Guard transformation to lrint by
7773 -fno-math-errno.
7774
7775 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7776
7777 * config/aarch64/aarch64-builtins.c
7778 (aarch64_simd_builtin_type_mode): Delete.
7779 (v8qi_UP): Remap to V8QImode.
7780 (v4hi_UP): Remap to V4HImode.
7781 (v2si_UP): Remap to V2SImode.
7782 (v2sf_UP): Remap to V2SFmode.
7783 (v1df_UP): Remap to V1DFmode.
7784 (di_UP): Remap to DImode.
7785 (df_UP): Remap to DFmode.
7786 (v16qi_UP):V16QImode.
7787 (v8hi_UP): Remap to V8HImode.
7788 (v4si_UP): Remap to V4SImode.
7789 (v4sf_UP): Remap to V4SFmode.
7790 (v2di_UP): Remap to V2DImode.
7791 (v2df_UP): Remap to V2DFmode.
7792 (ti_UP): Remap to TImode.
7793 (ei_UP): Remap to EImode.
7794 (oi_UP): Remap to OImode.
7795 (ci_UP): Map to CImode.
7796 (xi_UP): Remap to XImode.
7797 (si_UP): Remap to SImode.
7798 (sf_UP): Remap to SFmode.
7799 (hi_UP): Remap to HImode.
7800 (qi_UP): Remap to QImode.
7801 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7802 (VAR1): Build builtin name.
7803 (aarch64_init_simd_builtins): Remove dead code.
7804
7805 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7806
7807 * graphite-isl-ast-to-gimple.c:
7808 (set_options): New function.
7809 (scop_to_isl_ast): Add calling of set_options.
7810
7811 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7812
7813 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7814 (analyze_iv_to_split_insn): Don't initialize them.
7815 (get_ivts_expr): Removed.
7816 (allocate_basic_variable, insert_base_initialization): Use
7817 SET_SRC instead of *get_ivts_expr.
7818 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7819
7820 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7821
7822 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7823 (translate_isl_ast_for_loop): Add checking of the
7824 flag_loop_parallelize_all.
7825 (ast_build_before_for): New function.
7826 (scop_to_isl_ast): Add checking of the
7827 flag_loop_parallelize_all.
7828 * graphite-dependences.c: Move the defenition of the
7829 scop_get_dependences from graphite-optimize-isl.c to this file.
7830 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7831 (carries_deps): Add checking of the x's value.
7832 * graphite-optimize-isl.c: Move the defenition of the
7833 scop_get_dependences to graphite-dependences.c.
7834 * graphite-poly.h: Add declarations of scop_get_dependences
7835 and carries_deps.
7836
7837 2014-08-04 Rohit <rohitarulraj@freescale.com>
7838
7839 PR target/60102
7840 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7841 names.
7842 (alt_reg_names): Likewise.
7843 (rs6000_dwarf_register_span): For SPE high registers, replace
7844 dwarf register numbers with GCC hard register numbers.
7845 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7846 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7847 register number for the corresponding GCC hard register number.
7848 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7849 newly added GCC hard register numbers for SPE high registers.
7850 (DWARF_FRAME_REGISTERS): Likewise.
7851 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7852 (DWARF_FRAME_REGNUM): Likewise.
7853 (FIXED_REGISTERS): Likewise.
7854 (CALL_USED_REGISTERS): Likewise.
7855 (CALL_REALLY_USED_REGISTERS): Likewise.
7856 (REG_ALLOC_ORDER): Likewise.
7857 (enum reg_class): Likewise.
7858 (REG_CLASS_NAMES): Likewise.
7859 (REG_CLASS_CONTENTS): Likewise.
7860 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7861
7862 2014-08-04 Richard Biener <rguenther@suse.de>
7863
7864 * gimple-fold.h (gimple_fold_builtin): Remove.
7865 * gimple-fold.c (gimple_fold_builtin): Make static.
7866 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7867 fold_stmt, not gimple_fold_builtin.
7868
7869 2014-08-04 Martin Liska <mliska@suse.cz>
7870
7871 * cgraph.h (csi_end_p): Removed.
7872 (csi_next): Likewise.
7873 (csi_node): Likewise.
7874 (csi_start): Likewise.
7875 (cgraph_node_in_set_p): Likewise.
7876 (cgraph_node_set_size): Likewise.
7877 (vsi_end_p): Likewise.
7878 (vsi_next): Likewise.
7879 (vsi_node): Likewise.
7880 (vsi_start): Likewise.
7881 (varpool_node_set_size): Likewise.
7882 (cgraph_node_set_nonempty_p): Likewise.
7883 (varpool_node_set_nonempty_p): Likewise.
7884 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7885 cgraph_node_set.
7886 * ipa-inline-transform.c: Likewise.
7887 * ipa-utils.c (cgraph_node_set_new): Removed.
7888 (cgraph_node_set_add): Likewise.
7889 (cgraph_node_set_remove): Likewise.
7890 (cgraph_node_set_find): Likewise.
7891 (dump_cgraph_node_set): Likewise.
7892 (debug_cgraph_node_set): Likewise.
7893 (free_cgraph_node_set): Likewise.
7894 (varpool_node_set_new): Likewise.
7895 (varpool_node_set_add): Likewise.
7896 (varpool_node_set_remove): Likewise.
7897 (varpool_node_set_find): Likewise.
7898 (dump_varpool_node_set): Likewise.
7899 (free_varpool_node_set): Likewise.
7900 (debug_varpool_node_set): Likewise.
7901 * tree-emutls.c (struct tls_var_data):
7902 (emutls_index): Removed.
7903 (emutls_decl): Likewise.
7904 (gen_emutls_addr): Function implementation uses newly added
7905 hash_map<varpool_node *, tls_var_data>.
7906 (clear_access_vars): Likewise.
7907 (create_emultls_var): Likewise.
7908 (ipa_lower_emutls): Likewise.
7909 (reset_access): New function.
7910
7911 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7912
7913 * config/i386/i386.c (ix86_option_override_internal): Add
7914 PTA_RDRND and PTA_MOVBE for bdver4.
7915
7916 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7917 James Greenhalgh <james.greenhalgh@arm.com>
7918
7919 * doc/md.texi (clrsb): Document.
7920 (clz): Change reference to x into operand 1.
7921 (ctz): Likewise.
7922 (popcount): Likewise.
7923
7924 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7925
7926 PR target/61713
7927 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7928 move to subtarget in serial version if result is ignored.
7929
7930 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7931 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7932
7933 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7934 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7935 (sched_analyze_insn): Update use of try_group_insn to
7936 sched_macro_fuse_insns.
7937 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7938 arguments that are not conditional jumps.
7939
7940 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7941
7942 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7943 family information. Handle BTVER2 cpu with cpuid family value.
7944
7945 2014-08-04 Tom de Vries <tom@codesourcery.com>
7946
7947 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7948 (glibc_2_11_or_earlier): Document effective-target keywords.
7949
7950 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7951
7952 * ipa-devirt.c (odr_type_warn_count): Add type.
7953 (possible_polymorphic_call_targets): Set it.
7954 (ipa_devirt): Use it.
7955
7956 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7957
7958 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7959 Document.
7960 * ipa-devirt.c: Include hash-map.h
7961 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7962 (clear_speculation): Break out of ...
7963 (get_class_context): ... here; speed up handling obviously useless
7964 speculations.
7965 (odr_type_warn_count, decl_warn_count): New structures.
7966 (final_warning_record): New structure.
7967 (final_warning_records): New static variable.
7968 (possible_polymorphic_call_targets): Cleanup handling of
7969 speculative info; do not build speculation when user do not care;
7970 record info about warnings when asked for.
7971 (add_decl_warning): New function.
7972 (type_warning_cmp): New function.
7973 (decl_warning_cmp): New function.
7974 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7975 (gate): Enable pass when warnings are requested.
7976 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7977 options.
7978
7979 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7980
7981 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7982 Fix cast.
7983 (hash_map::remove): New method.
7984 (hash_map::traverse): New method.
7985 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7986 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7987 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7988 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7989 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7990 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7991 pointer_map.
7992
7993 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7994
7995 * hash-set.h: new File.
7996 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7997 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7998 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7999 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
8000 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
8001 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
8002 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
8003 varpool.c: Use hash_set instead of pointer_set.
8004
8005 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
8006
8007 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
8008
8009 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8010
8011 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
8012 for frame access when strict_p is false.
8013
8014 2014-08-01 Renlin Li <renlin.li@arm.com>
8015 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8016
8017 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
8018 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
8019 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
8020 Declaration.
8021 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
8022 predicate.
8023 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
8024 aarch64_mem_pair_offset.
8025
8026 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8027
8028 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
8029 offset.
8030 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
8031 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
8032
8033 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
8034
8035 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
8036
8037 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
8038
8039 PR regression/61510
8040 * cgraphunit.c (analyze_functions): Use get_create rather than get
8041 for decls which are clones of abstract functions.
8042
8043 2014-08-01 Martin Liska <mliska@suse.cz>
8044
8045 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
8046 * ipa-prop.h (count_formal_params): Global function created from static.
8047 * ipa-prop.c (count_formal_params): Likewise.
8048 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
8049 profiles for semantically equivalent functions.
8050 * passes.c (do_per_function): If we load body of a function
8051 during WPA, this condition should behave same.
8052 * varpool.c (ctor_for_folding): More tolerant assert for variable
8053 aliases created during WPA.
8054
8055 2014-08-01 Martin Liska <mliska@suse.cz>
8056
8057 * doc/invoke.texi (Options That Control Optimization): Documentation
8058 for -foptimize-strlen introduced. Optimization levels default options
8059 fixed.
8060
8061 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8062
8063 * opts.c (common_handle_option): Handle -fsanitize=alignment.
8064 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
8065 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
8066 type to bool.
8067 * stor-layout.h (min_align_of_type): New prototype.
8068 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
8069 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
8070 check.
8071 * ubsan.c: Include builtins.h.
8072 (ubsan_expand_bounds_ifn): Change return type to bool,
8073 always return true.
8074 (ubsan_expand_null_ifn): Change return type to bool, change
8075 argument to gimple_stmt_iterator *. Handle both null and alignment
8076 sanitization, take type from ckind argument's type rather than
8077 first argument.
8078 (instrument_member_call): Removed.
8079 (instrument_mem_ref): Remove t argument, add mem and base arguments.
8080 Handle both null and alignment sanitization, don't say whole
8081 struct access is member access. Build 3 argument IFN_UBSAN_NULL
8082 call instead of 2 argument.
8083 (instrument_null): Adjust instrument_mem_ref caller. Don't
8084 instrument calls here.
8085 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
8086 like SANITIZE_NULL.
8087 * stor-layout.c (min_align_of_type): New function.
8088 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
8089 Or it into SANITIZE_UNDEFINED.
8090 * doc/invoke.texi (-fsanitize=alignment): Document.
8091
8092 2014-07-31 Andi Kleen <ak@linux.intel.com>
8093
8094 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8095
8096 2014-07-31 Andi Kleen <ak@linux.intel.com>
8097
8098 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8099 inchash.
8100 (vn_reference_compute_hash): Dito.
8101 (vn_nary_op_compute_hash): Dito.
8102 (vn_phi_compute_hash): Dito.
8103 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8104
8105 2014-07-31 Andi Kleen <ak@linux.intel.com>
8106
8107 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8108 Rename to inchash:add_expr_commutative. Convert to inchash.
8109 (iterative_hash_hashable_expr): Rename to
8110 inchash:add_hashable_expr. Convert to inchash.
8111 (avail_expr_hash): Dito.
8112
8113 2014-07-31 Andi Kleen <ak@linux.intel.com>
8114
8115 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8116 Convert to inchash.
8117
8118 2014-07-31 Andi Kleen <ak@linux.intel.com>
8119
8120 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8121
8122 2014-07-31 Andi Kleen <ak@linux.intel.com>
8123
8124 * Makefile.in (OBJS): Add rtlhash.o
8125 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8126 (loc_checksum): Dito.
8127 (loc_checksum_ordered): Dito.
8128 (hash_loc_operands): Dito.
8129 (hash_locs): Dito.
8130 (hash_loc_list): Dito.
8131 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8132 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8133 * rtlhash.c: New file.
8134 * rtlhash.h: New file.
8135
8136 2014-07-31 Andi Kleen <ak@linux.intel.com>
8137
8138 * inchash.h (inchash): Change inchash class to namespace.
8139 (class hash): ... Rename from inchash.
8140 (add_object): Move from macro to class template.
8141 * lto-streamer-out.c (hash_tree): Change inchash
8142 to inchash::hash.
8143 * tree.c (build_type_attribute_qual_variant): Dito.
8144 (type_hash_list): Dito.
8145 (attribute_hash_list): Dito.
8146 (iterative_hstate_expr): Rename to inchash::add_expr
8147 (build_range_type_1): Change inchash to inchash::hash
8148 and use hash::add_expr.
8149 (build_array_type_1): Dito.
8150 (build_function_type): Dito
8151 (build_method_type_directly): Dito.
8152 (build_offset_type): Dito.
8153 (build_complex_type): Dito.
8154 (make_vector_type): Dito.
8155 * tree.h (iterative_hash_expr): Dito.
8156
8157 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8158
8159 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8160
8161 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8162
8163 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8164 correct alphabetical position.
8165 (vpaddd_f64): Rewrite using builtins.
8166 (vpaddd_s64): Move to correct alphabetical position.
8167 (vpaddd_u64): New.
8168
8169 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8170
8171 PR target/61844
8172 * config/sh/sh.c (sh_legitimate_address_p,
8173 sh_legitimize_reload_address): Handle reg+reg address modes when
8174 ALLOW_INDEXED_ADDRESS is false.
8175 * config/sh/predicates.md (general_movsrc_operand,
8176 general_movdst_operand): Likewise.
8177
8178 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8179
8180 * config/aarch64/aarch64-builtins.c
8181 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8182 BYTES_BIG_ENDIAN.
8183
8184 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8185
8186 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8187 the generated mask based on BYTES_BIG_ENDIAN.
8188 (aarch64_simd_check_vect_par_cnst_half): New.
8189 * config/aarch64/aarch64-protos.h
8190 (aarch64_simd_check_vect_par_cnst_half): New.
8191 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8192 the check out to aarch64_simd_check_vect_par_cnst_half.
8193 (vect_par_cnst_lo_half): Likewise.
8194 * config/aarch64/aarch64-simd.md
8195 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8196 (move_hi_quad_<mode>): Always generate a low mask.
8197
8198 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8199
8200 * doc/invoke.texi (AVR Options): Add documentation about
8201 __AVR_DEVICE_NAME__ built-in macro.
8202
8203 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8204
8205 PR target/61948
8206 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8207 constraints are satisfied.
8208 (<shift>di3_neon): Likewise.
8209
8210 2014-07-31 Richard Biener <rguenther@suse.de>
8211
8212 PR tree-optimization/61964
8213 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8214 by structural equality.
8215
8216 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8217
8218 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8219 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8220 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8221 New enums.
8222 * gcc.c (sanitize_spec_function): Support new option.
8223 (SANITIZER_SPEC): Remove now redundant check.
8224 * opts.c (common_handle_option): Support new option.
8225 (finish_options): Check for incompatibilities.
8226 * toplev.c (process_options): Split userspace-specific checks.
8227
8228 2014-07-31 Richard Biener <rguenther@suse.de>
8229
8230 * lto-streamer.h (struct output_block): Remove global.
8231 (struct data_in): Remove labels, num_named_labels and
8232 num_unnamed_labels.
8233 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8234 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8235
8236 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8237
8238 PR c++/60517
8239 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8240 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8241 (isolate_path): New argument to avoid inserting a trap.
8242 (find_implicit_erroneous_behaviour): Handle returning the address
8243 of a local variable.
8244 (find_explicit_erroneous_behaviour): Likewise.
8245
8246 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8247
8248 PR lto/61868
8249 * toplev.c (init_random_seed): Move piece of code never called to
8250 set_random_seed.
8251 (set_random_seed): see above.
8252
8253 2014-07-31 Tom de Vries <tom@codesourcery.com>
8254
8255 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8256
8257 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8258
8259 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8260 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8261
8262 2014-07-31 Richard Biener <rguenther@suse.de>
8263
8264 * data-streamer.h (streamer_write_data_stream): Declare here,
8265 renamed from ...
8266 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8267 * lto-cgraph.c (lto_output_node): Adjust.
8268 (lto_output_varpool_node): Likewise.
8269 * data-streamer-out.c (streamer_string_index): Likewise.
8270 (streamer_write_data_stream, lto_append_block): Move from ...
8271 * lto-section-out.c (lto_output_data_stream,
8272 lto_append_block): ... here.
8273
8274 2014-07-30 Mike Stump <mikestump@comcast.net>
8275
8276 * configure.ac: Also check for popen.
8277 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8278 * configure: Regenerate.
8279 * config.in: Regenerate.
8280
8281 2014-07-30 Martin Jambor <mjambor@suse.cz>
8282
8283 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8284 parameter to gimple.
8285
8286 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8287
8288 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8289 address as second parameter to __tpf_eh_return routine.
8290
8291 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8292
8293 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8294 Thumb2.
8295
8296 2014-07-30 Tom Tromey <tromey@redhat.com>
8297
8298 PR c/59855
8299 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8300 * doc/extend.texi (Type Attributes): Document designated_init
8301 attribute.
8302
8303 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8304
8305 * graphite-isl-ast-to-gimple.c:
8306 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8307 (gcc_expression_from_isl_expression): Pass type to
8308 gcc_expression_from_isl_ast_expr_id.
8309
8310 2014-07-30 Richard Biener <rguenther@suse.de>
8311
8312 * lto-streamer.h (lto_write_data): New function.
8313 * langhooks.c (lhd_append_data): Do not free block.
8314 * lto-section-out.c (lto_write_data): New function writing
8315 raw data to the current section.
8316 (lto_write_stream): Adjust for langhook semantic change.
8317 (lto_destroy_simple_output_block): Write header directly.
8318 * lto-opts.c (lto_write_options): Write options directly.
8319 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8320 (lto_output_toplevel_asms): Likewise.
8321 (copy_function_or_variable): Copy data directly.
8322 (write_global_references): Output index table directly.
8323 (lto_output_decl_state_refs): Likewise.
8324 (write_symbol): Write data directly.
8325 (produce_symtab): Adjust.
8326 (produce_asm_for_decls): Output header and refs directly.
8327
8328 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8329
8330 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8331 to speculative_targets
8332 (get_class_context): Fix handling of contextes without outer type;
8333 avoid matching non-polymorphic types in LTO.
8334 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8335 parameter to speculative_targetsp; handle speculation.
8336 (dump_possible_polymorphic_call_targets): Update dumping.
8337
8338 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8339
8340 * common.opt (Wodr): Enable by default.
8341
8342 2014-07-29 Olivier Hainque <hainque@adacore.com>
8343
8344 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8345
8346 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8347
8348 PR bootstrap/61914
8349 * gengtype.c (strtoken): New function.
8350 (create_user_defined_type): Replace strtok with strtoken.
8351
8352 2014-07-29 Nathan Sidwell <nathan@acm.org>
8353
8354 * gcov-io.c (gcov_var): Make hidden.
8355 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8356 (gcov_do_dump): Declare.
8357 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8358
8359 2014-07-29 Martin Jambor <mjambor@suse.cz>
8360
8361 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8362 parameter to gimple.
8363 (sra_modify_assign): Likewise.
8364
8365 2014-07-29 Richard Biener <rguenther@suse.de>
8366
8367 PR middle-end/52478
8368 * expr.c (expand_expr_real_2): Revert last change.
8369
8370 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8371
8372 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8373 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8374 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8375 call.
8376 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8377 (contains_type_p): Forward declare.
8378 (polymorphic_call_target_hasher::hash): Hash speculative info.
8379 (polymorphic_call_target_hasher::equal): Compare speculative info.
8380 (get_class_context): Handle speuclation.
8381 (contains_type_p): Update.
8382 (get_polymorphic_call_info_for_decl): Update.
8383 (walk_ssa_copies): Break out from ...
8384 (get_polymorphic_call_info): ... here; set speculative context
8385 before giving up.
8386 * ipa-prop.c (ipa_write_indirect_edge_info,
8387 ipa_read_indirect_edge_info): Stream speculative context.
8388 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8389 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8390 SPECULATIVE_MAYBE_DERIVED_TYPE).
8391 (possible_polymorphic_call_targets overriders): Update.
8392 (dump_possible_polymorphic_call_targets overriders): Update.
8393 (dump_possible_polymorphic_call_target_p overriders): Update.
8394
8395 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8396
8397 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8398 ipa-devirt path; fix thinko there.
8399
8400 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8401
8402 * config/i386/i386.c (ix86_return_in_memory): Replace one
8403 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8404
8405 2014-07-28 Marek Polacek <polacek@redhat.com>
8406
8407 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8408
8409 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8410
8411 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8412 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8413 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8414 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8415 (USE_LD_AS_NEEDED): Likewise.
8416 (ASM_APP_ON): Likewise.
8417 (ASM_APP_OFF): Likewise.
8418 (TARGET_POSIX_IO): Likewise.
8419 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8420 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8421 (USE_LD_AS_NEEDED): Likewise.
8422 (ASM_APP_ON): Likewise.
8423 (ASM_APP_OFF): Likewise.
8424 (TARGET_POSIX_IO): Likewise.
8425
8426 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8427
8428 PR middle-end/61734
8429 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8430 operators other than the equality operators.
8431
8432 2014-07-28 Richard Biener <rguenther@suse.de>
8433
8434 PR middle-end/52478
8435 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8436 sure to register SImode ones, not only >= word_mode ones.
8437 * expr.c (expand_expr_real_2): When expanding -ftrapv
8438 binops do not use OPTAB_LIB_WIDEN.
8439
8440 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8441
8442 PR middle-end/61919
8443 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8444 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8445 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8446 inserting them in the insn stream.
8447
8448 2014-07-28 Marek Polacek <polacek@redhat.com>
8449
8450 PR middle-end/61913
8451 * common.opt (Wodr): Add Var.
8452
8453 2014-07-28 Richard Biener <rguenther@suse.de>
8454
8455 PR tree-optimization/61921
8456 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8457 if there is a varpool node before dereferencing it.
8458
8459 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8460
8461 * graphite-sese-to-poly.c:
8462 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8463 id of the pbb), which contains pointer to the pbb1.
8464
8465 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8466
8467 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8468
8469 * graphite-isl-ast-to-gimple.c:
8470 (graphite_create_new_guard): New function.
8471 (translate_isl_ast_node_if): New function.
8472 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8473
8474 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8475
8476 2014-07-27 Anthony Green <green@moxielogic.com>
8477
8478 * config.gcc: Add moxie-*-moxiebox* configuration.
8479 * config/moxie/moxiebox.h: New file.
8480
8481 2014-07-26 Andrew Pinski <apinski@cavium.com>
8482
8483 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8484 from the read only register.
8485
8486 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8487
8488 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8489 as the allocation class if it isn't likely to be spilled.
8490
8491 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8492
8493 * rtl.h (tls_referenced_p): Declare.
8494 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8495 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8496 (mips_cannot_force_const_mem): Use tls_referenced_p.
8497 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8498 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8499 instead of pa_tls_referenced_p.
8500 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8501 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8502 (pa_legitimate_constant_p): Likewise.
8503 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8504 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8505 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8506 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8507 rs6000_tls_referenced_p.
8508 (rs6000_tls_symbol_ref_1): Delete.
8509
8510 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8511
8512 PR target/44551
8513 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8514 Optimize inverse of a VEC_CONCAT.
8515
8516 2014-07-25 Xinliang David Li <davidxl@google.com>
8517
8518 * params.def: New parameter.
8519 * coverage.c (get_coverage_counts): Check new flag.
8520 (coverage_compute_profile_id): Check new flag.
8521 (coverage_begin_function): Check new flag.
8522 (coverage_end_function): Check new flag.
8523 * value-prof.c (coverage_node_map_initialized_p): New function.
8524 (init_node_map): Populate map with all functions.
8525 * doc/invoke.texi: Document new parameter.
8526
8527 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8528 Richard Biener <rguenther@suse.de>
8529
8530 * lto-streamer-out.c (struct sccs): Turn to ...
8531 (class DFS): ... this one; refactor the DFS walk so it can
8532 be re-done on per-SCC basis.
8533 (DFS::DFS): New constructor.
8534 (DFS::~DFS): New destructor.
8535 (hash_tree): Add new MAP argument holding in-SCC hash values;
8536 remove POINTER_TYPE hashing hack.
8537 (scc_entry_compare): Rename to ...
8538 (DFS::scc_entry_compare): ... this one.
8539 (hash_scc): Rename to ...
8540 (DFS::hash_scc): ... this one; pass output_block instead
8541 of streamer_cache; work harder to get unique and stable SCC
8542 hashes.
8543 (DFS_write_tree): Rename to ...
8544 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8545 (lto_output_tree): Update.
8546
8547 2014-07-25 Andi Kleen <ak@linux.intel.com>
8548
8549 * lto-streamer-out.c (hash_tree): Convert to inchash.
8550
8551 2014-07-25 Andi Kleen <ak@linux.intel.com>
8552
8553 * tree.c (build_type_attribute_qual_variant): Use inchash.
8554 (type_hash_list): Dito.
8555 (attribute_hash_list): Dito
8556 (iterative_hstate_expr): Dito.
8557 (iterative_hash_expr): Dito.
8558 (build_range_type_1): Dito.
8559 (build_array_type_1): Dito.
8560 (build_function_type): Dito.
8561 (build_method_type_directly): Dito.
8562 (build_offset_type): Dito.
8563 (build_complex_type): Dito.
8564 (make_vector_type): Dito.
8565 * tree.h (iterative_hash_expr): Add compat wrapper.
8566 (iterative_hstate_expr): Add.
8567
8568 2014-07-25 Andi Kleen <ak@linux.intel.com>
8569
8570 * Makefile.in (OBJS): Add inchash.o.
8571 (PLUGIN_HEADERS): Add inchash.h.
8572 * ipa-devirt.c: Include inchash.h.
8573 * lto-streamer-out.c: Dito.
8574 * tree-ssa-dom.c: Dito.
8575 * tree-ssa-pre.c: Dito.
8576 * tree-ssa-sccvn.c: Dito.
8577 * tree-ssa-tail-merge.c: Dito.
8578 * asan.c: Dito.
8579 * tree.c (iterative_hash_hashval_t): Move to ...
8580 (iterative_hash_host_wide_int): Move to ...
8581 * inchash.c: Here. New file.
8582 * tree.h (iterative_hash_hashval_t): Move to ...
8583 (iterative_hash_host_wide_int): Move to ...
8584 * inchash.h: Here. New file.
8585
8586 2014-07-25 Richard Biener <rguenther@suse.de>
8587
8588 PR middle-end/61762
8589 PR middle-end/61894
8590 * fold-const.c (native_encode_int): Add and handle offset
8591 parameter to do partial encodings of expr.
8592 (native_encode_fixed): Likewise.
8593 (native_encode_real): Likewise.
8594 (native_encode_complex): Likewise.
8595 (native_encode_vector): Likewise.
8596 (native_encode_string): Likewise.
8597 (native_encode_expr): Likewise.
8598 * fold-const.c (native_encode_expr): Add offset parameter
8599 defaulting to -1.
8600 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8601 (fold_ctor_reference): Handle all reads from tcc_constant
8602 ctors.
8603
8604 2014-07-25 Richard Biener <rguenther@suse.de>
8605
8606 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8607 as possibly unused.
8608
8609 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8610
8611 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8612
8613 2014-07-24 Kyle McMartin <kyle@redhat.com>
8614
8615 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8616
8617 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8618
8619 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8620 Add prototype.
8621 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8622 function.
8623 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8624 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8625 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8626
8627 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8628
8629 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8630 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8631 aggregate types. Instead, *all* aggregate types, except for single-
8632 element or homogeneous float/vector aggregates, are quadword-aligned
8633 if required by their type alignment. Issue -Wpsabi note when a type
8634 is now treated differently than before.
8635
8636 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8637
8638 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8639 does not fit fully into floating-point registers, and there is still
8640 space in the register parameter area, use GPRs to pass those parts
8641 of the argument. Issue -Wpsabi note if any parameter is now treated
8642 differently than before.
8643 (rs6000_arg_partial_bytes): Update.
8644
8645 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8646
8647 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8648
8649 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8650
8651 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8652 * toplev.c (initialize_rtl): Don't use it. Move previously
8653 "language-dependent" calls to...
8654 (backend_init): ...here.
8655 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8656 Assert that RTL initialization hasn't happend yet.
8657
8658 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8659
8660 PR rtl-optimization/61629
8661 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8662 they have already been initialized.
8663
8664 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8665
8666 PR middle-end/61268
8667 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8668 DECL_INCOMING_RTL and entry_parm.
8669 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8670 * calls.c (load_register_parameters): Likewise argument values.
8671 (emit_library_call_value_1, store_one_arg): Likewise argument
8672 save areas.
8673 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8674 stack slot.
8675 * explow.c (validize_mem): Modify the argument in-place.
8676
8677 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8678
8679 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8680 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8681
8682 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8683
8684 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8685 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8686
8687 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8688
8689 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8690 (aarch64_save_callee_saves): New parameter "skip_wb".
8691 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8692
8693 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8694
8695 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8696 "wb_candidate2".
8697 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8698
8699 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8700
8701 * graphite-isl-ast-to-gimple.c:
8702 (graphite_create_new_loop): Add calling of isl_id_free to properly
8703 decrement reference counts.
8704
8705 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8706
8707 2014-07-24 Martin Liska <mliska@suse.cz>
8708 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8709 function used.
8710 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8711 (rs6000_code_end): Likewise.
8712
8713 2014-07-24 Martin Liska <mliska@suse.cz>
8714
8715 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8716 symtab_node funtion used.
8717 (rs6000_xcoff_declare_object_name): Likewise.
8718
8719 2014-07-24 Martin Liska <mliska@suse.cz>
8720
8721 * cgraphunit.c (compile): Correct function used.
8722
8723 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8724
8725 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8726 as non-indexable.
8727
8728 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8729
8730 PR lto/61802
8731 * varasm.c (bss_initializer_p): Handle offlined ctors.
8732 (align_variable, get_variable_align): Likewise.
8733 (make_decl_one_only): Likewise.
8734 (default_binds_local_p_1): Likewise.
8735 (decl_binds_to_current_def_p): Likewise.
8736 (get_variable_section): Get constructor if it is offlined.
8737 (assemble_variable_contents): Sanity check that the caller
8738 streamed in the ctor in LTO.
8739
8740 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8741
8742 * graphite-isl-ast-to-gimple.c:
8743 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8744 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8745 isl_ast_op_pdiv_r to the different case.
8746
8747 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8748
8749 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8750
8751 PR middle-end/61876
8752 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8753 when flag_errno_math is on.
8754
8755 2014-07-24 Martin Liska <mliska@suse.cz>
8756
8757 * cgraph.h (varpool_node):
8758 (availability get_availability (void)):
8759 created from cgraph_variable_initializer_availability
8760 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8761 created from: cgraph_variable_initializer_availability
8762 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8763 (void finalize_named_section_flags (void)):
8764 created from varpool_finalize_named_section_flags
8765 (bool assemble_decl (void)): created from varpool_assemble_decl
8766 (void analyze (void)): created from varpool_analyze_node
8767 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8768 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8769 (void remove_initializer (void)): created from varpool_remove_initializer
8770 (tree get_constructor (void)): created from varpool_get_constructor
8771 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8772 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8773 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8774 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8775 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8776 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8777 (static bool output_variables (void)): created from varpool_output_variables
8778 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8779 created from varpool_extra_name_alias
8780 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8781 (static void dump_varpool (FILE *f)): created from dump_varpool
8782 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8783 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8784 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8785 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8786 (void assemble_aliases (void)): created from assemble_aliases
8787
8788 2014-07-24 Martin Liska <mliska@suse.cz>
8789
8790 * cgraph.h (symtab_node):
8791 (void register_symbol (void)): created from symtab_register_node
8792 (void remove (void)): created from symtab_remove_node
8793 (void dump (FILE *f)): created from dump_symtab_node
8794 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8795 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8796 (struct ipa_ref *add_reference (symtab_node *referred_node,
8797 enum ipa_ref_use use_type)): created from add_reference
8798 (struct ipa_ref *add_reference (symtab_node *referred_node,
8799 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8800 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8801 gimple stmt)): created from maybe_add_reference
8802 (bool semantically_equivalent_p (symtab_node *target)): created from
8803 symtab_semantically_equivalent_p
8804 (void remove_from_same_comdat_group (void)): created from
8805 remove_from_same_comdat_group
8806 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8807 symtab_add_to_same_comdat_group
8808 (void dissolve_same_comdat_group_list (void)): created from
8809 symtab_dissolve_same_comdat_group_list
8810 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8811 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8812 created from symtab_alias_ultimate_target
8813 (inline symtab_node *next_defined_symbol (void)): created from
8814 symtab_next_defined_symbol
8815 (bool resolve_alias (symtab_node *target)): created from
8816 symtab_resolve_alias
8817 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8818 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8819 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8820 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8821 (void set_section (const char *section)): created from set_section_1
8822 (enum availability get_availability (void)): created from symtab_node_availability
8823 (void make_decl_local (void)): created from symtab_make_decl_local
8824 (bool real_symbol_p (void)): created from symtab_read_node
8825 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8826 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8827 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8828 symtab_in_same_comdat_p;
8829 (bool address_taken_from_non_vtable_p (void)): created from
8830 address_taken_from_non_vtable_p
8831 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8832 (static void dump_table (FILE *)): created from dump_symtab
8833 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8834 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8835 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8836 symtab_used_from_object_file_p
8837 (void dump_base (FILE *)): created from dump_symtab_base
8838 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8839 (void unregister (void)): created from symtab_unregister_node
8840 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8841 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8842 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8843 symtab_nonoverwritable_alias_1
8844 * cgraph.h (cgraph_node):
8845 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8846 created from cgraph_remove_node_and_inline_clones
8847 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8848 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8849 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8850 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8851 created from cgraph_function_node
8852 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8853 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8854 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8855 created from cgraph_create_clone
8856 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8857 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8858 created from cgraph_create_virtual_clone
8859 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8860 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8861 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8862 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8863 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8864 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8865 created from cgraph_function_version_info
8866 (struct cgraph_function_version_info *insert_new_function_version (void)):
8867 created from insert_new_cgraph_node_version
8868 (struct cgraph_function_version_info *function_version (void)): created from
8869 get_cgraph_node_version
8870 (void analyze (void)): created from analyze_function
8871 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8872 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8873 tree real_alias) cgraph_add_thunk
8874 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8875 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8876 created from cgraph_function_or_thunk_node
8877 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8878 created from expand_thunk
8879 (void reset (void)): created from cgraph_reset_node
8880 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8881 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8882 (void remove (void)): created from cgraph_remove_node
8883 (void dump (FILE *f)): created from dump_cgraph_node
8884 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8885 (bool get_body (void)): created from cgraph_get_body
8886 (void release_body (void)): created from cgraph_release_function_body
8887 (void unnest (void)): created from cgraph_unnest_node
8888 (void make_local (void)): created from cgraph_make_node_local
8889 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8890 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8891 gcov_type count, int freq)): created from cgraph_create_edge
8892 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8893 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8894 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8895 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8896 created from cgraph_create_edge_including_clones
8897 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8898 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8899 (void remove_callers (void)): created from cgraph_node_remove_callers
8900 (void remove_callees (void)): created from cgraph_node_remove_callees
8901 (enum availability get_availability (void)): created from cgraph_function_body_availability
8902 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8903 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8904 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8905 (void call_duplication_hooks (cgraph_node *node2)): created from
8906 cgraph_call_node_duplication_hooks
8907 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8908 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8909 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8910 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8911 (void call_function_insertion_hooks (void)):
8912 created from cgraph_call_function_insertion_hooks
8913 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8914 (bool local_p (void)): created from cgraph_local_node
8915 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8916 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8917 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8918 (inline bool only_called_directly_or_aliased_p (void)):
8919 created from cgraph_only_called_directly_or_aliased_p
8920 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8921 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8922 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8923 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8924 (bool can_remove_if_no_direct_calls_p (void)):
8925 created from cgraph_can_remove_if_no_direct_calls_p
8926 (inline bool has_gimple_body_p (void)):
8927 created from cgraph_function_with_gimple_body_p
8928 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8929 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8930 (static inline void debug_cgraph (void)): created from debug_cgraph
8931 (static void record_function_versions (tree decl1, tree decl2)):
8932 created from record_function_versions
8933 (static void delete_function_version (tree decl)):
8934 created from delete_function_version
8935 (static void add_new_function (tree fndecl, bool lowered)):
8936 created from cgraph_add_new_function
8937 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8938 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8939 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8940 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8941 (static cgraph_node *get_for_asmname (tree asmname)):
8942 created from cgraph_node_for_asm
8943 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8944 created from cgraph_same_body_alias
8945 (static bool used_from_object_file_p_worker (cgraph_node *node,
8946 void *): new function
8947 (static bool non_local_p (cgraph_node *node, void *)):
8948 created from cgraph_non_local_node_p_1
8949 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8950 created from verify_cgraph
8951 (static bool make_local (cgraph_node *node, void *)):
8952 created from cgraph_make_node_local
8953 (static cgraph_node *create_alias (tree alias, tree target)):
8954 created from cgraph_create_function_alias
8955 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8956 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8957 created from cgraph_create_edge_1
8958 * cgraph.h (varpool_node):
8959 (void remove (void)): created from varpool_remove_node
8960 (void dump (FILE *f)): created from dump_varpool_node
8961
8962 2014-07-24 Richard Biener <rguenther@suse.de>
8963
8964 PR ipa/61823
8965 * tree-ssa-structalias.c (create_variable_info_for_1):
8966 Use varpool_get_constructor.
8967 (create_variable_info_for): Likewise.
8968
8969 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8970
8971 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8972 subtract outgoing area size when restoring stack_pointer_rtx.
8973
8974 2014-07-24 Nick Clifton <nickc@redhat.com>
8975
8976 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8977 that operations are taking place in parallel.
8978 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8979
8980 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8981
8982 * omp-low.c (extract_omp_for_data): Add missing break statement.
8983
8984 2014-07-24 Richard Biener <rguenther@suse.de>
8985
8986 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8987 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8988 and adjust MOVE_RATIO query accordingly.
8989 (estimate_num_insns): Adjust callers.
8990 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8991 * ipa-cp.c (gather_context_independent_values,
8992 estimate_local_effects): Likewise.
8993 * ipa-split.c (consider_split): Likewise.
8994
8995 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8996
8997 * config/i386/driver-i386.c: Remove names of unused arguments and
8998 unnecessary unused attributes.
8999 * config/i386/host-mingw32.c: Likewise.
9000 * config/i386/i386.c: Likewise.
9001 * config/i386/winnt-stubs.c: Likewise.
9002 * config/i386/winnt.c: Likewise.
9003
9004 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9005
9006 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
9007 (aarch64_gen_loadwb_pair): New helper function.
9008 (aarch64_expand_epilogue): Simplify code using new helper functions.
9009 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
9010
9011 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9012
9013 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
9014 (aarch64_gen_storewb_pair): New helper function.
9015 (aarch64_expand_prologue): Simplify code using new helper functions.
9016 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
9017
9018 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9019
9020 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
9021 Rename to aarch64_save_callee_saves, remove restore code.
9022 (aarch64_restore_callee_saves): New function.
9023
9024 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9025
9026 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
9027 (aarch64_save_callee_saves): New function to handle reg save
9028 for both core and vectore regs.
9029
9030 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9031
9032 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
9033 (aarch64_gen_store_pair): New helper function.
9034 (aarch64_save_or_restore_callee_save_registers)
9035 (aarch64_save_or_restore_fprs): Use new helper functions.
9036
9037 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9038
9039 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
9040 (aarch64_save_or_restore_callee_save_registers)
9041 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
9042
9043 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9044
9045 * config/aarch64/aarch64.c
9046 (aarch64_save_or_restore_callee_save_registers)
9047 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
9048
9049 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9050
9051 * config/aarch64/aarch64.c
9052 (aarch64_save_or_restore_callee_save_registers)
9053 (aarch64_save_or_restore_fprs): Remove 'increment'.
9054
9055 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9056
9057 * config/aarch64/aarch64.c
9058 (aarch64_save_or_restore_callee_save_registers)
9059 (aarch64_save_or_restore_fprs): Use register offset in
9060 cfun->machine->frame.reg_offset.
9061
9062 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9063
9064 * config/aarch64/aarch64.c
9065 (aarch64_save_or_restore_callee_save_registers)
9066 (aarch64_save_or_restore_fprs): Remove base_rtx.
9067
9068 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9069
9070 * config/aarch64/aarch64.c
9071 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
9072 to 'start_offset'. Remove local variable 'start_offset'.
9073
9074 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9075
9076 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
9077 type to HOST_WIDE_INT.
9078
9079 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9080
9081 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9082 (aarch64_save_or_restore_fprs)
9083 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
9084
9085 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9086
9087 * config/arm/t-rtems-eabi: Add
9088 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
9089 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
9090 mbig-endian/mthumb/march=armv7-r, and
9091 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9092 multilibs.
9093
9094 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9095 Chris Johns <chrisj@rtems.org>
9096 Joel Sherrill <joel.sherrill@oarcorp.com>
9097
9098 * config.gcc: Add nios2-*-rtems*.
9099 * config/nios2/rtems.h: New file.
9100 * gcc/config/nios2/t-rtems: New file.
9101
9102 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9103
9104 PR target/61396
9105 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9106 constant numbers, not general constants.
9107 (rs6000_expand_vector_init): Ditto.
9108
9109 2014-07-23 Nathan Sidwell <nathan@acm.org>
9110
9111 * gcov-tool.c (gcov_list): Declare here.
9112 (set_gcov_list): Remove.
9113 (gcov_output_files): Set gcov_list directly.
9114
9115 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9116
9117 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9118
9119 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9120
9121 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9122 callee-saved registers are available for padding purpose
9123 and r3 is not mandatory, then prefer use those callee-saved
9124 instead of r3.
9125
9126 2014-07-23 Richard Biener <rguenther@suse.de>
9127
9128 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9129 * combine.c: Include statistics.h and params.h.
9130 (combine_instructions): Guard three and four insn combines
9131 with max-combine-insns value. Record statistics for combines
9132 performed.
9133 * doc/invoke.texi (max-combine-insns): Document new param.
9134
9135 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9136
9137 * graphite-isl-ast-to-gimple.c:
9138 (translate_isl_ast_node_block): New function.
9139 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9140
9141 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9142 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9143
9144 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9145
9146 * graphite-isl-ast-to-gimple.c:
9147 (get_max_schedule_dimensions): New function.
9148 (extend_schedule): Likewise.
9149 (generate_isl_schedule): Add calling of extend_schedule and
9150 get_max_schedule_dimensions.
9151
9152 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9153
9154 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9155 (case UNSPEC): Handle UNSPEC_RBIT.
9156
9157 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9158
9159 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9160 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9161
9162 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9163
9164 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9165
9166 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9167
9168 * graphite-isl-ast-to-gimple.c:
9169 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9170 (ivs_params_clear):
9171 (build_iv_mapping): New function.
9172 (translate_isl_ast_node_user): Likewise.
9173 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9174
9175 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9176 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9177 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9178
9179 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9180
9181 PR target/55701
9182 * config/arm/arm.md (setmem): New pattern.
9183 * config/arm/arm-protos.h (struct tune_params): New fields.
9184 (arm_gen_setmem): New prototype.
9185 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9186 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9187 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9188 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9189 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9190 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9191 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9192 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9193 (arm_const_inline_cost): New function.
9194 (arm_block_set_max_insns): New function.
9195 (arm_block_set_non_vect_profit_p): New function.
9196 (arm_block_set_vect_profit_p): New function.
9197 (arm_block_set_unaligned_vect): New function.
9198 (arm_block_set_aligned_vect): New function.
9199 (arm_block_set_unaligned_non_vect): New function.
9200 (arm_block_set_aligned_non_vect): New function.
9201 (arm_block_set_vect, arm_gen_setmem): New functions.
9202
9203 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9204
9205 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9206
9207 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9208
9209 PR target/61855
9210 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9211 out of #ifdef __OPTIMIZE__.
9212
9213 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9214
9215 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9216 different trapping status if -fnon-call-exceptions is enabled.
9217
9218 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9219
9220 * expr.c (store_field): Handle VOIDmode for calls that return values
9221 in multiple locations.
9222
9223 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9224
9225 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9226 (altivec_vsldoi_<mode>): Likewise.
9227
9228 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9229
9230 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9231 to the number of characters in the line.
9232
9233 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9234
9235 * graphite-isl-ast-to-gimple.c: Add using of
9236 build_nonstandard_integer_type instead of int128_integer_type_node.
9237
9238 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9239
9240 * toplev.c (output_stack_usage): Adjust the location of the warning.
9241
9242 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9243
9244 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9245 (*membar_storeload): Disable for LEON3.
9246
9247 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9248
9249 PR rtl-optimization/61461
9250 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9251
9252 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9253
9254 PR target/61794
9255 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9256 Fix instruction constraint.
9257 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9258
9259 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9260
9261 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9262
9263 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9264
9265 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9266 GNU coding standards.
9267 (nds32_register_move_cost): Likewise.
9268 (nds32_memory_move_cost): Likewise.
9269 (nds32_address_cost): Likewise.
9270
9271 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9272
9273 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9274
9275 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9276
9277 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9278 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9279 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9280 (HAVE_sync_compare_and_swapqi): Define.
9281 (HAVE_sync_compare_and_swaphi): Likewise.
9282 (HAVE_sync_compare_and_swapsi): Likewise.
9283
9284 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9285
9286 * config/mips/p5600.md: Add missing cpu tests.
9287
9288 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9289
9290 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9291 (vmla_f64): Likewise.
9292 (vfms_f64): Likewise.
9293 (vmls_f64): Likewise.
9294
9295 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9296
9297 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9298 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9299
9300 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9301
9302 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9303 (vmlal_high_lane_s32): Likewise.
9304 (vmlal_high_lane_u16): Likewise.
9305 (vmlal_high_lane_u32): Likewise.
9306 (vmlsl_high_lane_s16): Likewise.
9307 (vmlsl_high_lane_s32): Likewise.
9308 (vmlsl_high_lane_u16): Likewise.
9309 (vmlsl_high_lane_u32): Likewise.
9310
9311 2014-07-17 Terry Guo <terry.guo@arm.com>
9312
9313 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9314 (alus_reg): Renamed to alus_sreg.
9315 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9316 from alu_reg to alu_sreg. Change type of dsp instructions from
9317 alu_reg to alu_dsp_reg.
9318 * config/arm/thumb1.md: Likewise.
9319 * config/arm/thumb2.md: Likewise.
9320 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9321 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9322 with alu_sreg and alus_sreg.
9323 * config/arm/arm1026ejs.md (alu_op): Likewise.
9324 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9325 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9326 * config/arm/fa526.md (526_alu_op): Likewise.
9327 * config/arm/fa606te.md (606te_alu_op): Likewise.
9328 * config/arm/fa626te.md (626te_alu_op): Likewise.
9329 * config/arm/fa726te.md (726te_alu_op): Likewise.
9330 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9331 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9332 alu_sreg, alu_dsp_reg and alus_sreg.
9333 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9334 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9335 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9336 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9337 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9338 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9339 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9340 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9341 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9342 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9343 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9344 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9345 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9346 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9347 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9348 alus_reg to alus_sreg.
9349
9350 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9351
9352 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9353 infinity format.
9354
9355 2014-07-17 Richard Biener <rguenther@suse.de>
9356
9357 PR rtl-optimization/61801
9358 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9359 don't set reg_pending_barrier if it appears in a debug-insn.
9360
9361 2014-07-16 DJ Delorie <dj@redhat.com>
9362
9363 * config/rx/rx.c (rx_option_override): Fix alignment values.
9364 (rx_align_for_label): Likewise.
9365
9366 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9367
9368 PR target/61737.
9369 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9370 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9371 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9372 functions.
9373 (cris_print_index, cris_print_operand, cris_constant_index_p)
9374 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9375 (cris_address_cost): Ditto last CONSTANT_P.
9376 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9377 callers changed. Yield cris_offsettable_symbol for non-PIC
9378 constant symbolic expressions including labels. Yield cris_unspec
9379 for all unspecs.
9380 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9381 target to pic_offset_table_rtx for calls that will likely go
9382 through PLT, const0_rtx when they can't. All callers changed.
9383 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9384 symbolic expressions to be PICified. Remove second, redundant,
9385 assert on can_create_pseudo_p returning non-zero. Use
9386 replace_equiv_address_nv, not replace_equiv_address, for final
9387 operand update.
9388 * config/cris/cris.md ("movsi"): Move variable t to pattern
9389 toplevel. Adjust assert for new cris_symbol_type member. Use
9390 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9391 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9392 for lapc stricter.
9393 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9394 ("call", "call_value"): Use second incoming operand as a marker
9395 for pic-offset-table-register being used.
9396 ("*expanded_call_non_v32", "*expanded_call_v32")
9397 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9398 second incoming operand to CALL, match cris_call_type_marker.
9399 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9400 ("*expanded_call_side"): Ditto. Fix typo in comment.
9401 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9402 CONSTANT_P.
9403 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9404 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9405 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9406 users changed. Add members cris_offsettable_symbol and cris_unspec.
9407 (cris_symbol_type): Rename from cris_pic_symbol_type.
9408 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9409 just CONSTANT_P.
9410 * config/cris/cris-protos.h (cris_symbol_type_of,
9411 cris_expand_pic_call_address): Adjust prototypes.
9412 (cris_legitimate_constant_p): New prototype.
9413
9414 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9415 an existing tmake_file. Don't add t-slibgcc and t-linux.
9416
9417 2014-07-17 Jason Merrill <jason@redhat.com>
9418
9419 PR c++/61623
9420 * symtab.c (symtab_remove_from_same_comdat_group): Also
9421 set_comdat_group to NULL_TREE.
9422 (verify_symtab): Fix diagnostic.
9423
9424 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9425
9426 PR target/61662
9427 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9428
9429 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9430
9431 Support location tracking for built-in macro tokens
9432 * input.h (is_location_from_builtin_token): New function declaration.
9433 * input.c (is_location_from_builtin_token): New function definition.
9434 * toplev.c (general_init): Tell libcpp what the pre-defined
9435 spelling location for built-in tokens is.
9436
9437 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9438
9439 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9440 on the FUNCTION_DECL.
9441
9442 2014-07-16 Richard Biener <rguenther@suse.de>
9443
9444 PR other/61782
9445 * doc/extend.texi (always_inline): Clarify.
9446
9447 2014-07-15 Eric Christopher <echristo@gmail.com>
9448
9449 * doc/invoke.texi (Link Options): Document -z option.
9450
9451 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9452
9453 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9454 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9455
9456 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9457
9458 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9459
9460 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9461
9462 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9463 varpool_assemble_decl.
9464 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9465 true.
9466
9467 2014-07-15 Michael Matz <matz@suse.de>
9468
9469 PR rtl-optimization/61772
9470 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9471
9472 2014-07-15 Richard Biener <rguenther@suse.de>
9473
9474 * opts.c (default_options_table): Disable bit-ccp at -Og.
9475
9476 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9477
9478 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9479
9480 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9481
9482 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9483 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9484 call langhook for unknown declaration.
9485 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9486 * tree.h (DECL_ARGUMENTS): Update.
9487 * print-tree.c (print_node): Update.
9488 * tree-core.h (tree_decl_non_common): Remove arguments.
9489 (tree_function_decl): Add arguments.
9490
9491 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9492
9493 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9494
9495 2014-07-14 Richard Biener <rguenther@suse.de>
9496
9497 PR tree-optimization/61779
9498 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9499 simplifying a condition.
9500
9501 2014-07-14 Richard Biener <rguenther@suse.de>
9502
9503 * builtins.c (c_strlen): Make only_value == 2 really only
9504 affect warning generation.
9505
9506 2014-07-14 Richard Biener <rguenther@suse.de>
9507
9508 PR tree-optimization/61757
9509 PR tree-optimization/61783
9510 PR tree-optimization/61787
9511 * tree-ssa-dom.c (record_equality): Revert canonicalization
9512 change and add comment.
9513 (propagate_rhs_into_lhs): Revert previous fix, removing
9514 loop depth restriction again.
9515
9516 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9517
9518 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9519 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9520 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9521 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9522 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9523 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9524 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9525
9526 2014-07-14 Richard Biener <rguenther@suse.de>
9527
9528 * cgraph.h (decl_in_symtab_p): Make inline.
9529
9530 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9531
9532 PR middle-end/61294
9533 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9534
9535 PR target/61656
9536 * config/i386/i386.c (classify_argument): Don't merge classes above
9537 number of words.
9538
9539 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9540
9541 * cgraph.h (symtab_node): Add nonzero_address.
9542 (decl_in_symtab_p): Break out from ...
9543 (symtab_get_node): ... here.
9544 * fold-const.c: Include cgraph.h
9545 (tree_single_nonzero_warnv_p): Use symtab to determine
9546 if symbol is non-zero.
9547 * symtab.c (symtab_node::nonzero_address): New method.
9548
9549 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9550
9551 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9552 forgotten in previous commit.
9553
9554 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9555
9556 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9557 on builtin types.
9558 * ipa-devirt.c: Include stor-layout.h and intl.h
9559 (odr_subtypes_equivalent_p): New function.
9560 (warn_odr): New function.
9561 (warn_type_mismatch): New function.
9562 (odr_types_equivalent_p): New function.
9563 (add_type_duplicate): Use it.
9564 * common.opt (Wodr): New flag.
9565 * doc/invoke.texi (Wodr): Document new warning.
9566
9567 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9568
9569 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9570 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9571 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9572 (varpool_get_constructor): Push CTORS_IN timevar.
9573 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9574
9575 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9576
9577 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9578 Remove VOID_FTYPE_PUSHORT.
9579 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9580 Change code to USHORT_FTYPE_VOID.
9581 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9582 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9583 (ix86_atomic_assign_expand_fenv): Update for
9584 __builtin_ia32_fnstsw changes.
9585 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9586 (fnstsw): Change operand 0 to nonimmediate operand.
9587
9588 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9589
9590 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9591 (varpool_get_constructor): New function.
9592 (varpool_ctor_useable_for_folding_p): Break out from ...
9593 (ctor_for_folding): ... here; use varpool_get_constructor.
9594 (varpool_assemble_decl): Likewise.
9595 * lto-streamer.h (struct output_block): Turn cgraph_node
9596 to symbol filed.
9597 (lto_input_variable_constructor): Declare.
9598 * ipa-visibility.c (function_and_variable_visibility): Use
9599 varpool_get_constructor.
9600 * cgraph.h (varpool_get_constructor): Declare.
9601 (varpool_ctor_useable_for_folding_p): New function.
9602 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9603 parameter; return error_mark_node for non-trivial constructors.
9604 (lto_write_tree_1, DFS_write_tree): Update use of
9605 get_symbol_initial_value.
9606 (output_function): Update initialization of symbol.
9607 (output_constructor): New function.
9608 (copy_function): Rename to ..
9609 (copy_function_or_variable): ... this one; handle vars too.
9610 (lto_output): Output variable sections.
9611 * lto-streamer-in.c (input_constructor): New function.
9612 (lto_read_body): Rename from ...
9613 (lto_read_body_or_constructor): ... this one; handle vars too.
9614 (lto_input_variable_constructor): New function.
9615 * ipa-prop.c (ipa_prop_write_jump_functions,
9616 ipa_prop_write_all_agg_replacement): Update.
9617 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9618 (output_cgraph_opt_summary): Set symbol to NULL.
9619
9620 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9621
9622 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9623 non-polymorphic types.
9624 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9625 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9626 of types is not polymorphic.
9627
9628 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9629
9630 * lra-constraints.c (remove_inheritance_pseudos): Process
9631 destination pseudo too.
9632
9633 2014-07-11 Rong Xu <xur@google.com>
9634
9635 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9636 commit r212448.
9637
9638 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9639
9640 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9641 * config/avr/avr-devices.c (AVR_MCU): Same.
9642 (avr_mcu_types): add text start value to end of device list.
9643 * config/avr/avr-mcus.def: Add text section start for all devices.
9644 (ata5782): Add new avr5 device.
9645 (ata5831): Same.
9646 * config/avr/avr-tables.opt: Regenerate.
9647 * config/avr/avr.h: Add declaration for text section start handler.
9648 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9649 SPEC functions.
9650 (LINK_SPEC): Include text section start handler to linker spec.
9651 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9652 pass -Ttext option to linker if the text section start for the device
9653 is not zero.
9654 * config/avr/t-multilib: Regenerate.
9655 * doc/avr-mmcu.texi: Regenerate.
9656
9657 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9658
9659 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9660 * config/rs6000/aix52.h (LINK_SPEC): Same.
9661 * config/rs6000/aix53.h (LINK_SPEC): Same.
9662 * config/rs6000/aix61.h (LINK_SPEC): Same.
9663 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9664
9665 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9666
9667 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9668 (graphite_verify): New function.
9669 (ivs_params_clear): New function.
9670 (gcc_expression_from_isl_ast_expr_id): New function.
9671 (gcc_expression_from_isl_expr_int): New function.
9672 (binary_op_to_tree): New function.
9673 (ternary_op_to_tree): New function.
9674 (unary_op_to_tree): New function.
9675 (nary_op_to_tree): New function.
9676 (gcc_expression_from_isl_expr_op): New function.
9677 (gcc_expression_from_isl_expression): New function.
9678 (graphite_create_new_loop): New function.
9679 (translate_isl_ast_for_loop): New function.
9680 (get_upper_bound): New function.
9681 (graphite_create_new_loop_guard): New function.
9682 (translate_isl_ast_node_for): New function.
9683 (translate_isl_ast): New function.
9684 (add_parameters_to_ivs_params): New function.
9685 (scop_to_isl_ast): New parameter ip.
9686 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9687
9688 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9689
9690 * config/xtensa/predicates.md (call expander): Update for
9691 DECL_SECTION_NAME being string.
9692
9693 2014-07-11 Richard Biener <rguenther@suse.de>
9694
9695 PR middle-end/61473
9696 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9697 can be implemented with a single load followed by a single store.
9698 (c_strlen): Only warn when only_value is not 2.
9699
9700 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9701
9702 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9703
9704 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9705
9706 PR target/61561
9707 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9708 (*movhi_bytes): Likewise.
9709 (*arm_movqi_insn): Likewise.
9710
9711 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9712
9713 PR target/56858
9714 * config/alpha/alpha.c: Include tree-pass.h, context.h
9715 and pass_manager.h.
9716 (pass_data_handle_trap_shadows): New pass.
9717 (pass_handle_trap_shadows::gate): New pass gate function.
9718 (make_pass_handle_trap_shadows): New function.
9719 (rest_of_handle_trap_shadows): Ditto.
9720
9721 (alpha_align_insns_1): Rename from alpha_align_insns.
9722 (pass_data_align_insns): New pass.
9723 (pass_align_insns::gate): New pass gate function.
9724 (make_pass_aling_insns): New function.
9725 (rest_of_align_insns): Ditto.
9726 (alpha_align_insns): Ditto.
9727
9728 (alpha_option_override): Declare handle_trap_shadows info
9729 and align_insns_info. Register handle_trap_shadows and align_insns
9730 passes here.
9731 (alpha_reorg): Do not call alpha_trap_shadows and
9732 alpha_align_insn from here.
9733
9734 (alpha_pad_function_end): Do not skip BARRIERs.
9735
9736 2014-07-10 Rong Xu <xur@google.com>
9737
9738 Add gcov-tool: an offline gcda profile processing tool support.
9739 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9740 (gcov_is_error): Ditto.
9741 (gcov_read_string): Ditto.
9742 (gcov_read_sync): Ditto.
9743 * gcov-io.h: Move counter defines to gcov-counter.def.
9744 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9745 * coverage.c: Ditto.
9746 * gcov-tool.c: Offline gcda profile processing tool.
9747 (unlink_gcda_file): Remove one gcda file.
9748 (unlink_profile_dir): Remove gcda files from the profile path.
9749 (gcov_output_files): Output gcda files to an output dir.
9750 (profile_merge): Merge two profiles in directory.
9751 (print_merge_usage_message): Print merge usage.
9752 (merge_usage): Print merge usage and exit.
9753 (do_merge): Driver for profile merge sub-command.
9754 (profile_rewrite): Rewrite profile.
9755 (print_rewrite_usage_message): Print rewrite usage.
9756 (rewrite_usage): Print rewrite usage and exit.
9757 (do_rewrite): Driver for profile rewrite sub-command.
9758 (print_usage): Print gcov-info usage and exit.
9759 (print_version): Print gcov-info version.
9760 (process_args): Process arguments.
9761 (main): Main routine for gcov-tool.
9762 * Makefile.in: Build and install gcov-tool.
9763 * gcov-counter.def: New file split from gcov-io.h.
9764 * doc/gcc.texi: Include gcov-tool.texi.
9765 * doc/gcov-tool.texi: Document for gcov-tool.
9766
9767 2014-07-10 Richard Biener <rguenther@suse.de>
9768
9769 PR tree-optimization/61757
9770 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9771 (propagate_rhs_into_lhs): Revert part of last change.
9772
9773 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9774
9775 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9776 FUNCTION_DECLs.
9777
9778 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9779
9780 PR middle-end/53590
9781 * function.c (allocate_struct_function): Revert r188667 change.
9782
9783 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9784
9785 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9786
9787 * doc/install.texi: Remove links to defunct package providers for
9788 Solaris.
9789
9790 2014-07-09 Tom de Vries <tom@codesourcery.com>
9791
9792 * final.c (get_call_fndecl): Declare.
9793 (self_recursive_call_p): New function.
9794 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9795
9796 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9797
9798 * ipa-devirt.c (record_node): Walk through aliases.
9799
9800 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9801
9802 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9803
9804 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9805
9806 Revert:
9807 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9808
9809 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9810
9811 * ipa-visibility.c (function_and_variable_visibility): Remove
9812 temporary hack disabling local aliases on AIX.
9813
9814 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9815
9816 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9817 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9818
9819 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9820
9821 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9822 * rs6000/rs6000.c: Inline output of .set instruction.
9823 (declare_alias_data): New struct.
9824 (rs6000_declare_alias): New function.
9825 (rs6000_xcoff_declare_function_name): Use it.
9826 (rs6000_xcoff_declare_object_name): New function.
9827 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9828 (ASM_OUTPUT_DEF): Turn to empty definition.
9829
9830 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9831
9832 PR bootstrap/61679
9833 * hash-table.h: use hash_table::value_type instead of
9834 Descriptor::value_type in the return types of several methods.
9835
9836 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9837
9838 * tree-pass.h (pass_data): Remove has_execute member.
9839 * passes.c (execute_one_pass): Don't check pass->has_execute.
9840 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9841 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9842 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9843 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9844 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9845 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9846 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9847 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9848 gimple-low.c, gimple-ssa-isolate-paths.c,
9849 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9850 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9851 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9852 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9853 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9854 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9855 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9856 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9857 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9858 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9859 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9860 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9861 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9862 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9863 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9864 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9865 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9866 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9867 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9868 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9869 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9870 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9871 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9872 web.c: Remove initializer for pass_data::has_execute.
9873
9874 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9875
9876 * graphite-htab.h: Use hash_map instead of hash_table.
9877 * graphite-clast-to-gimple.c: Adjust.
9878 * passes.c: Use hash_map instead of hash_table.
9879 * sese.c: Likewise.
9880 * sese.h: Remove now unused code.
9881
9882 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9883
9884 PR target/61599
9885 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9886 than zero.
9887
9888 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9889
9890 PR rtl-optimization/61673
9891 * combine.c (simplify_comparison): Test just mode's sign bit
9892 in tmode rather than the sign bit and any bits above it.
9893
9894 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9895
9896 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9897 Add __isl_give to the declaration.
9898 (generate_isl_schedule): Likewise.
9899 (scop_to_isl_ast): Likewise.
9900
9901 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9902
9903 * config/arm/arm.c (cortexa5_extra_costs): New table.
9904 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9905
9906 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9907
9908 PR tree-optimization/61725
9909 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9910 range, use range_includes_zerop_p instead of integer_zerop on
9911 vr0->min, only use log2 of max if min is not negative.
9912
9913 2014-07-08 Richard Biener <rguenther@suse.de>
9914
9915 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9916 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9917 restriction on loop depth difference.
9918 (record_equality): Likewise.
9919 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9920 (loop_depth_of_name): Remove.
9921 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9922 restriction on loop depth difference.
9923 (init_copy_prop): Likewise.
9924
9925 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9926
9927 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9928 parameter.
9929 (walk_aliased_vdefs): Likewise.
9930 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9931 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9932 (detect_type_change_from_memory_writes): Check if entry was reached.
9933
9934 2014-07-08 Richard Biener <rguenther@suse.de>
9935
9936 PR tree-optimization/61681
9937 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9938 NONLOCAL inside ESCAPED.
9939
9940 2014-07-08 Richard Biener <rguenther@suse.de>
9941
9942 PR tree-optimization/61680
9943 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9944 Handle properly all read-write dependences with group accesses.
9945
9946 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9947
9948 PR tree-optimization/61576
9949 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9950 block containing reduction statement is predecessor of phi basi block.
9951
9952 2014-07-08 Marek Polacek <polacek@redhat.com>
9953
9954 PR c/60226
9955 * fold-const.c (round_up_loc): Change the parameter type.
9956 Remove assert.
9957 * fold-const.h (round_up_loc): Adjust declaration.
9958 * stor-layout.c (finalize_record_size): Check for too large types.
9959
9960 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9961
9962 * symtab.c: Include calls.h.
9963 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9964
9965 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9966
9967 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9968 little-endian code generation.
9969 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9970 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9971 (spe_evmergehilo): Rename to...
9972 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9973 (spe_evmergelo): Rename to...
9974 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9975 (spe_evmergelohi): Rename to...
9976 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9977 (spe_evmergehi, spe_evmergehilo): New expanders.
9978 (spe_evmergelo, spe_evmergelohi): Likewise.
9979 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9980 (*frob_tf_ti): Likewise.
9981 (*frob_<mode>_di_2): Likewise.
9982 (*frob_tf_di_8_2): Likewise.
9983 (*frob_di_<mode>): Likewise.
9984 (*frob_ti_tf): Likewise.
9985 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9986 (*frob_ti_<mode>_8_2): Likewise.
9987 (*frob_ti_tf_2): Likewise.
9988 (mov_si<mode>_e500_subreg0): Rename to...
9989 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9990 endianness only.
9991 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9992 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9993 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9994 the big endianness only.
9995 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9996 (*mov_si<mode>_e500_subreg0_2): Rename to...
9997 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9998 big big endianness only.
9999 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
10000 (*mov_si<mode>_e500_subreg4): Rename to...
10001 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
10002 endianness only.
10003 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
10004 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
10005 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
10006 the big endianness only.
10007 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
10008 pattern.
10009 (*mov_si<mode>_e500_subreg4_2): Rename to...
10010 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
10011 endianness only.
10012 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
10013 (*mov_sitf_e500_subreg8): Rename to...
10014 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
10015 endianness only.
10016 (*mov_sitf_e500_subreg8_le): New instruction pattern.
10017 (*mov_sitf_e500_subreg8_2): Rename to...
10018 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
10019 endianness only.
10020 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
10021 (*mov_sitf_e500_subreg12): Rename to...
10022 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
10023 endianness only.
10024 (*mov_sitf_e500_subreg12_le): New instruction pattern.
10025 (*mov_sitf_e500_subreg12_2): Rename to...
10026 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
10027 endianness only.
10028 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
10029
10030 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
10031
10032 * asan.c (instrument_strlen_call): Do not instrument first byte
10033 in strlen if already instrumented.
10034
10035 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10036
10037 * config/arm/arm.opt (mwords-little-endian): Delete.
10038 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
10039 of TARGET_LITTLE_WORDS.
10040 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
10041 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
10042 warning.
10043 * doc/invoke.texi: Remove references to -mwords-little-endian.
10044
10045 2014-07-07 Jakub Jelinek <jakub@redhat.com>
10046
10047 * expmed.c (struct init_expmed_rtl): Change all fields but
10048 pow2 and cint from struct rtx_def to rtx.
10049 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
10050 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
10051 at the end again.
10052
10053 2014-07-06 Marek Polacek <polacek@redhat.com>
10054
10055 PR c/6940
10056 * doc/invoke.texi: Document -Wsizeof-array-argument.
10057
10058 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10059
10060 * wide-int.h (wide_int_storage): Change declaration from struct
10061 to class.
10062
10063 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
10064
10065 * cgraph.c (cgraph_create_indirect_edge): Update call of
10066 get_polymorphic_call_info.
10067 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
10068 (possible_polymorphic_call_targets): Add parameter call.
10069 (decl_maybe_in_construction_p): New predicate.
10070 (get_polymorphic_call_info): Add parameter call;
10071 use decl_maybe_in_construction_p.
10072 * gimple-fold.c (fold_gimple_assign): Update use of
10073 possible_polymorphic_call_targets.
10074 (gimple_fold_call): Likewise.
10075 * ipa-prop.c: Inlcude calls.h
10076 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
10077 (param_type_may_change_p): New predicate.
10078 (detect_type_change_from_memory_writes): Break out from ...
10079 (detect_type_change): ... this one; use param_type_may_change_p.
10080 (detect_type_change_ssa): Use param_type_may_change_p.
10081 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
10082
10083 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
10084
10085 PR target/49423
10086 * config/arm/arm-protos.h (arm_legitimate_address_p,
10087 arm_is_constant_pool_ref): Add prototypes.
10088 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
10089 (arm_is_constant_pool_ref) New function.
10090 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
10091 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10092 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10093 operand. Remove pool_range and neg_pool_range attributes.
10094 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10095 pool_range and neg_pool_range attributes.
10096 * config/arm/constraints.md (Uh): New constraint.
10097 (Uq): Don't allow constant pool references.
10098
10099 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10100
10101 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10102 (move_lo_quad_internal_be_<mode>): Likewise.
10103 (move_lo_quad_<mode>): Convert to define_expand.
10104 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10105 (aarch64_simd_move_hi_quad_be_<mode>): New.
10106 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10107 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10108 (aarch64_combinez_be<mode>): New.
10109 (aarch64_combine<mode>): Convert to define_expand.
10110 (aarch64_combine_internal<mode>): New.
10111 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10112
10113 2014-07-04 Tom de Vries <tom@codesourcery.com>
10114
10115 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10116 combination of earlyclobber and read/write modifiers.
10117
10118 2014-07-04 Tom de Vries <tom@codesourcery.com>
10119
10120 * config/aarch64/aarch64-simd.md
10121 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10122
10123 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10124
10125 PR target/61714
10126 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10127
10128 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10129
10130 PR middle-end/61654
10131 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10132
10133 PR tree-optimization/61684
10134 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10135 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10136
10137 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10138 Kito Cheng <kito@0xlab.org>
10139 Monk Chiang <sh.chiang04@gmail.com>
10140
10141 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10142 (nds32_symbol_load_store_p): Move to ...
10143 (nds32_fp_as_gp_check_available): Move to ...
10144 * config/nds32/nds32-fp-as-gp.c: ... here.
10145 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10146 extern declaration.
10147
10148 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10149 Kito Cheng <kito@0xlab.org>
10150 Monk Chiang <sh.chiang04@gmail.com>
10151
10152 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10153 (nds32_expand_store_multiple): Move to ...
10154 (nds32_expand_movmemqi): Move to ...
10155 * config/nds32/nds32-memory-manipulation.c: ... here.
10156
10157 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10158 Kito Cheng <kito@0xlab.org>
10159 Monk Chiang <sh.chiang04@gmail.com>
10160
10161 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10162 (nds32_output_casesi_pc_relative): Move to ...
10163 (nds32_output_casesi): Move to ...
10164 (nds32_mem_format): Move to ...
10165 (nds32_output_16bit_store): Move to ...
10166 (nds32_output_16bit_load): Move to ...
10167 (nds32_output_32bit_store): Move to ...
10168 (nds32_output_32bit_load): Move to ...
10169 (nds32_output_32bit_load_s): Move to ...
10170 (nds32_output_stack_push): Move to ...
10171 (nds32_output_stack_pop): Move to ...
10172 * config/nds32/nds32-md-auxiliary.c: ... here.
10173
10174 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10175 Ling-Hua Tseng <uranus@tinlans.org>
10176
10177 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10178 the purpose of this file.
10179
10180 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10181 Kito Cheng <kito@0xlab.org>
10182 Monk Chiang <sh.chiang04@gmail.com>
10183
10184 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10185 (nds32_address_cost): Move implementation to ...
10186 * config/nds32/nds32-cost.c: ... here.
10187 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10188 (nds32_address_cost_impl): Declare.
10189
10190 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10191 Kito Cheng <kito@0xlab.org>
10192 Monk Chiang <sh.chiang04@gmail.com>
10193
10194 * config/nds32/nds32.c
10195 (nds32_consecutive_registers_load_store_p): Move to ...
10196 (nds32_valid_multiple_load_store): Move to ...
10197 (nds32_valid_stack_push_pop): Move to ...
10198 (nds32_can_use_bclr_p): Move to ...
10199 (nds32_can_use_bset_p): Move to ...
10200 (nds32_can_use_btgl_p): Move to ...
10201 (nds32_can_use_bitci_p): Move to ...
10202 * config/nds32/nds32-predicates.c: ... here.
10203
10204 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10205 Kito Cheng <kito@0xlab.org>
10206 Monk Chiang <sh.chiang04@gmail.com>
10207
10208 * config/nds32/nds32.c
10209 (nds32_expand_builtin_null_ftype_reg): Move to ...
10210 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10211 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10212 (nds32_init_builtins): Move implementation to ...
10213 (nds32_expand_builtin): Move implementation to ...
10214 * config/nds32/nds32-intrinsic.c: ... here.
10215 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10216 (nds32_expand_builtin_impl): Declare.
10217
10218 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10219 Kito Cheng <kito@0xlab.org>
10220 Monk Chiang <sh.chiang04@gmail.com>
10221
10222 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10223 (nds32_emit_section_tail_template): Move to ...
10224 (nds32_emit_isr_jmptbl_section): Move to ...
10225 (nds32_emit_isr_vector_section): Move to ...
10226 (nds32_emit_isr_reset_conten): Move to ...
10227 (nds32_check_isr_attrs_conflict): Move to ...
10228 (nds32_construct_isr_vectors_information): Move to ...
10229 (nds32_asm_file_start): Move implementation to ...
10230 (nds32_asm_file_end): Move implementation to ...
10231 * config/nds32/nds32-isr.c: ... here.
10232 * config/nds32/nds32-protos.h
10233 (nds32_check_isr_attrs_conflict): Declare.
10234 (nds32_construct_isr_vectors_information): Declare.
10235 (nds32_asm_file_start_for_isr): Declare.
10236 (nds32_asm_file_end_for_isr): Declare.
10237
10238 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10239 Kito Cheng <kito@0xlab.org>
10240 Monk Chiang <sh.chiang04@gmail.com>
10241
10242 * config.gcc (nds32*): Add new modules to extra_objs.
10243 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10244 (nds32be-*-*): Likewise.
10245 * config/nds32/nds32-cost.c: New file.
10246 * config/nds32/nds32-fp-as-gp.c: New file.
10247 * config/nds32/nds32-intrinsic.c: New file.
10248 * config/nds32/nds32-isr.c: New file.
10249 * config/nds32/nds32-md-auxiliary.c: New file.
10250 * config/nds32/nds32-memory-manipulation.c: New file.
10251 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10252 * config/nds32/nds32-predicates.c: New file.
10253 * config/nds32/t-nds32: New file.
10254
10255 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10256
10257 PR tree-optimization/61682
10258 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10259 using cases and when one of the operands is equal to 1.
10260
10261 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10262
10263 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10264 ashr<mode>3): Correct mode of operands[2].
10265 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10266 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10267 Correct mode of operands[2]. Fix split condition.
10268
10269 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10270
10271 * arm.md (arch): Add armv6_or_vfpv3.
10272 (arch_enabled): Add test for the above.
10273 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10274 on VFP9.
10275 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10276
10277 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10278
10279 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10280 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10281 HWI 1 and negate the unsigned value.
10282 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10283 use AND instead of shift.
10284 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10285
10286 2014-07-03 Marek Polacek <polacek@redhat.com>
10287
10288 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10289 (-fsanitize=float-divide-by-zero): Move to the table with
10290 -fsanitize=undefined suboptions.
10291 (-fsanitize=float-cast-overflow): Likewise.
10292
10293 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10294
10295 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10296 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10297 endianness.
10298
10299 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10300
10301 * loop-invariant.c (struct invariant): Add a new member: eqno;
10302 (find_identical_invariants): Update eqno;
10303 (create_new_invariant): Init eqno;
10304 (get_inv_cost): Compute comp_cost with eqno;
10305
10306 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10307
10308 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10309 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10310 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10311 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10312 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10313
10314 2014-07-02 Christian Bruel <christian.bruel@st.com>
10315
10316 PR target/29349
10317 PR target/53513
10318 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10319 (make_preds_opaque): Delete.
10320 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10321 (commit_mode_sets): New function.
10322 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10323 Process all modes at once.
10324 * basic-block.h (pre_edge_lcm_avs): Declare.
10325 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10326 Call clear_aux_for_edges. Fix comments.
10327 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10328 (pre_edge_rev_lcm): Idem.
10329 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10330 parameter.
10331 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10332 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10333 Idem.
10334 * config/i386/i386.c (x96_emit_mode_set): Idem.
10335 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10336 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10337 (fpscr_toggle) Disallow from delay slot.
10338 * target.def (emit_mode_set): Add prev_mode parameter.
10339 * doc/tm.texi: Regenerate.
10340
10341 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10342
10343 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10344 variable i.
10345
10346 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10347
10348 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10349 vtable_pointer_value_to_vtable): Constify.
10350 (contains_polymorphic_type_p): Declare.
10351 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10352 vtable_pointer_value_to_vtable): Constify.
10353 (contains_polymorphic_type_p): New predicate.
10354 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10355 polymorphic types.
10356 (ipa_set_ancestor_jf): Likewise.
10357 (detect_type_change): Return false in easy cases.
10358 (compute_complex_assign_jump_func): Require type to contain
10359 polymorphic type.
10360 (compute_known_type_jump_func): Likewise.
10361
10362 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10363
10364 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10365 Remove.
10366 (type_in_anonymous_namespace_p): Constify argument.
10367 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10368 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10369 (main_odr_variant): New function.
10370 (hash_type_name): Make static; update assert; do not ICE on
10371 non-records.
10372 (types_same_for_odr): Bring here from tree.c; simplify and remove
10373 old structural comparing code that doesn't work for templates.
10374 (odr_hasher::equal): Update assert.
10375 (add_type_duplicate): Return true when bases should be computed;
10376 replace incomplete loader by complete; do not output duplicated
10377 warnings; do not ICE on non-records; set odr_violated flag.
10378 (get_odr_type): Be ready to replace incomplete type by complete
10379 one; work on ODR variants instead of main variants; reorder item
10380 in array so bases have still smaller indexes.
10381 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10382 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10383
10384 2014-07-01 Cary Coutant <ccoutant@google.com>
10385
10386 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10387 lookup.
10388 (resolve_addr_in_expr): When replacing the rtx in a location list
10389 entry, get a new address table entry.
10390 (dwarf2out_finish): Call index_location_lists even if there are no
10391 addr_index_table entries yet.
10392
10393 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10394
10395 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10396 change for not being obvious.
10397
10398 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10399
10400 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10401 unused argument.
10402
10403 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10404
10405 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10406 (vcagt_f64): Likewise.
10407 (vcale_f64): Likewise.
10408 (vcaled_f64): Likewise.
10409 (vcales_f32): Likewise.
10410 (vcalt_f64): Likewise.
10411 (vcaltd_f64): Likewise.
10412 (vcalts_f32): Likewise.
10413
10414 2014-07-01 Marek Polacek <polacek@redhat.com>
10415
10416 * doc/invoke.texi: Document -Wint-conversion.
10417
10418 2014-07-01 Marek Polacek <polacek@redhat.com>
10419
10420 PR c/58286
10421 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10422
10423 2014-07-01 Martin Liska <mliska@suse.cz>
10424
10425 IPA REF alias refactoring
10426 * cgraph.h (iterate_direct_aliases): New function.
10427 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10428 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10429 FOR_EACH_ALIAS added.
10430 (cgraph_for_node_and_aliases): Likewise.
10431 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10432 * ipa-inline.c (reset_edge_caches): Likewise.
10433 (update_caller_keys): Likewise.
10434 * trans-mem.c (ipa_tm_execute): Likewise.
10435 *varpool.c (varpool_analyze_node): Likewise.
10436 (varpool_for_node_and_aliases): Likewise.
10437 * ipa-ref.h (first_alias): New function.
10438 (last_alias): Likewise.
10439 (has_aliases_p): Likewise.
10440 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10441 is sensitive to IPA_REF_ALIASes.
10442 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10443 are put at the beginning of the list.
10444 (symtab_node::iterate_direct_aliases): New function.
10445
10446 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10447
10448 Revert:
10449 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10450 type is complete.
10451 (write_ts_type_common_tree_pointers): Do not stream fields not set
10452 for incomplete types; do not stream duplicated fields for variants;
10453 sanity check that variant and type match.
10454 (write_ts_type_non_common_tree_pointers): Likewise.
10455 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10456 TYPE_SIZE whether type is complete.
10457 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10458 write_ts_type_common_tree_pointers
10459 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10460
10461 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10462
10463 * var-tracking.c (add_stores): Return instead of asserting if old
10464 and new values for conditional store are the same.
10465
10466 2014-06-30 Richard Henderson <rth@redhat.com>
10467
10468 PR rtl-opt/61608
10469 PR target/39284
10470 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10471 the cfg if there were any changes.
10472 * passes.def: Revert move of peephole2 after reorder_blocks;
10473 move duplicate_computed_gotos before peephole2.
10474
10475 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10476
10477 * except.c (emit_note_eh_region_end): New helper function.
10478 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10479 emit EH_REGION_END note.
10480 * jump.c (cleanup_barriers): Do not split a call and its
10481 corresponding CALL_ARG_LOCATION note.
10482
10483 2014-06-30 Jeff Law <law@redhat.com>
10484
10485 PR tree-optimization/61607
10486 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10487 deeper into the SSA_NAME_VALUE chain.
10488
10489 2014-06-30 Marek Polacek <polacek@redhat.com>
10490
10491 * convert.c (convert_to_integer): Don't instrument conversions if the
10492 function has no_sanitize_undefined attribute.
10493 * ubsan.c: Don't run the ubsan pass if the function has
10494 no_sanitize_undefined attribute.
10495
10496 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10497
10498 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10499 -fsanitize=undefined suboptions.
10500
10501 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10502
10503 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10504 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10505 against bigendian and adjust indices.
10506
10507 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10508
10509 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10510
10511 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10512
10513 PR target/61633
10514 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10515 Add alternative; make early clobber. Adjust both split patterns
10516 to use operand 0 as the working register.
10517
10518 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10519
10520 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10521 as ira_object_id_map might be NULL, or 1.
10522
10523 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10524
10525 * loop-invariant.c (get_inv_cost): Handle register class.
10526 (gain_for_invariant): Check the register pressure of the inv
10527 and its overlapped register class, other than all.
10528
10529 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10530
10531 * doc/invoke.texi (Optimize Options): Fix descriptions of
10532 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10533
10534 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10535
10536 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10537 documentation.
10538
10539 2014-06-29 Tobias Grosser <tobias@grosser.es>
10540
10541 PR bootstrap/61650
10542 * graphite-isl-ast-to-gimple.c: Add missing guards.
10543
10544 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10545
10546 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10547 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10548 * flag-types.h: Add new enum fgraphite_generator.
10549 * graphite-isl-ast-to-gimple.c: New.
10550 * graphite-isl-ast-to-gimple.h: New.
10551 * graphite.c (graphite_transform_loops): Add choice of Graphite
10552 code generator, which depends on flag_graphite_code_gen.
10553
10554 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10555
10556 * graphite-dependences.c (subtract_commutative_associative_deps):
10557 Add NULL checking of the following variables: must_raw_no_source,
10558 may_raw_no_source, must_war_no_source, may_war_no_source,
10559 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10560 must_war, may_war, must_waw, may_waw.
10561
10562 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10563
10564 * graphite-clast-to-gimple.c: gloog is renamed to
10565 graphite_regenerate_ast_cloog. gloog_error is renamed to
10566 graphite_regenerate_error.
10567 * graphite-clast-to-gimple.h: The definition of the struct
10568 bb_pbb_def is moved to graphite-htab.h.
10569 Add inclusion of the hash-table.h.
10570 * graphite-htab.h: The declaration of the function gloog is moved
10571 to graphite-clast-to-gimple.h and renamed to
10572 graphite_regenerate_ast_cloog.
10573 * graphite.c (graphite_transform_loops): gloog is renamed
10574 to graphite_regenerate_ast_cloog.
10575
10576 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10577
10578 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10579 type is complete.
10580 (write_ts_type_common_tree_pointers): Do not stream fields not set
10581 for incomplete types; do not stream duplicated fields for variants;
10582 sanity check that variant and type match.
10583 (write_ts_type_non_common_tree_pointers): Likewise.
10584 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10585 TYPE_SIZE whether type is complete.
10586 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10587 write_ts_type_common_tree_pointers
10588 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10589
10590 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10591
10592 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10593
10594 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10595
10596 * tree-inline.c (remap_type_1): Do not duplicate fields
10597 that are shared in between type and its main variant.
10598
10599 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10600
10601 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10602 of the type.
10603 (ipa_set_ancestor_jf) Likewise.
10604 (check_stmt_for_type_change): Check that we work on main variant.
10605 (detect_type_change): Look into main variant.
10606 (compute_known_type_jump_func): Check that main variant has BINFO.
10607
10608 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10609
10610 * ipa-devirt.c (set_type_binfo): New function.
10611 (add_type_duplicate): Use it.
10612 (get_odr_type): Sanity check that binfos points to main variants.
10613 (get_class_context): Be sure the context's outer_type is main variant.
10614 (contains_type_p): Walk main variant.
10615 (get_polymorphic_call_info_for_decl): Set outer_type to be
10616 main variant.
10617 (get_polymorphic_call_info): Likewise.
10618 (possible_polymorphic_call_targets): Sanity check that we operate
10619 on main variant.
10620
10621 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10622
10623 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10624
10625 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10626
10627 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10628 accidental change due to wide-int branch merge.
10629
10630 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10631
10632 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10633 compressed debug support.
10634 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10635 * configure: Regenerate.
10636 * config.in: Regenerate.
10637 * common.opt (compressed_debug_sections): New enum.
10638 (gz, gz=): New options.
10639 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10640 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10641 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10642 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10643 LINK_COMPRESS_DEBUG_SPEC.
10644 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10645 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10646 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10647 (Debugging Options): Document -gz[=type].
10648
10649 2014-06-27 Martin Jambor <mjambor@suse.cz>
10650
10651 PR ipa/61160
10652 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10653 args_to_skip, use those from node instead. Copy args_to_skip and
10654 combined_args_to_skip from node to the new thunk.
10655 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10656 (cgraph_create_virtual_clone): Moved computation of
10657 combined_args_to_skip...
10658 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10659
10660 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10661
10662 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10663 redundant diagnostic machinary.
10664
10665 2014-06-27 Richard Biener <rguenther@suse.de>
10666
10667 * tree-ssa-math-opts.c (bswap_replace): Fix
10668 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10669
10670 2014-06-27 Martin Liska <mliska@suse.cz>
10671
10672 * gimple.h (gimple_location_safe): New function introduced.
10673 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10674 of gimple_location_safe replaces gimple_location.
10675 (gimple_fold_call): Likewise.
10676 * ipa-devirt.c (ipa_devirt): Likewise.
10677 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10678 * ipa.c (walk_polymorphic_call_targets): Likewise.
10679 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10680
10681 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10682
10683 PR tree-optimization/57233
10684 PR tree-optimization/61299
10685 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10686 functions.
10687 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10688 would be lowered to scalar shifts, check if corresponding
10689 shifts and vector BIT_IOR_EXPR are supported and don't lower
10690 or lower just to narrower vector type in that case.
10691 * expmed.c (expand_shift_1): Fix up handling of vector
10692 shifts and rotates.
10693
10694 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10695
10696 PR target/61586
10697 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10698
10699 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10700
10701 * doc/invoke.texi (-fsemantic-interposition): Document.
10702 * common.opt (fsemantic-interposition): New flag.
10703 * varasm.c (decl_replaceable_p): Use it.
10704
10705 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10706
10707 PR target/61542
10708 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10709 extraction other than index 3.
10710
10711 2014-06-26 Teresa Johnson <tejohnson@google.com>
10712
10713 * doc/invoke.texi: Fix typo.
10714 * dumpfile.c: Add support for documented -fdump-* options
10715 optimized/missed/note/optall.
10716
10717 2014-06-26 Martin Jambor <mjambor@suse.cz>
10718
10719 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10720 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10721 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10722 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10723 * opts.c (default_options_optimization): Set
10724 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10725 * doc/invoke.texi (allow-load-data-races)
10726 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10727 (allow-store-data-races): Document the new default.
10728
10729 2014-06-26 Martin Jambor <mjambor@suse.cz>
10730
10731 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10732 renamed to ipa_impossible_devirt_target. Fix typo.
10733 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10734 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10735 ipa_impossible_devirt_target.
10736
10737 2014-06-26 Richard Biener <rguenther@suse.de>
10738
10739 PR tree-optimization/61607
10740 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10741 explaining why we restrict copies on loop depth.
10742 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10743 on loop depth.
10744 (record_equivalences_from_phis): Instead add it here.
10745
10746 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10747
10748 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10749 (LTO_WRAPPER_OBJS): New variable.
10750 (lto-wrapper$(exeext)): Use it.
10751 * collect2.c: Include "collect-utils.h".
10752 (verbose, debug): Remove variables.
10753 (at_file_supplied): No longer static.
10754 (tool_name): New variable.
10755 (do_wait, fork_execute, maybe_unlink): Don't declare.
10756 (tool_cleanup): No longer static.
10757 (notice): Remove function.
10758 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10759 fork_execute calls.
10760 (collect_wait, do_wait, collect_execute): Remove functions.
10761 (maybe_unlink): No longer static.
10762 * collect2.h (verbose, debug): Don't declare.
10763 (at_file_supplied): Declare.
10764 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10765 changed.
10766 (collect_execute): Replace with implementation from collect2, plus a
10767 new arg use_atfile. All callers changed.
10768 (collect_wait): Replace with implementation from collect2.
10769 (maybe_unlink_file): Remove function.
10770 (fork_execute): Replace with implementation from collect2, plus a
10771 new arg use_atfile. All callers changed.
10772 (do_wait): Add call to utils_cleanup to the error path.
10773 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10774 (tool_cleanup): Adjust declarations.
10775 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10776 * tlink.c: Include "collect-utils.h".
10777 (tlink_execute): New arg use_atfile. All callers changed.
10778 (tlink_init, tlink_execute): Remove declarations.
10779
10780 * collect-utils.c (save_temps): New variable.
10781 (do_wait): Use it instead of debug. Use fatal_error.
10782 * collect-utils.h (save_temps): Declare.
10783 * collect2.c (verbose): Rename from vflag. All uses changed.
10784 (tool_cleanup): New function, copied from collect_atexit.
10785 (collect_atexit, handler): Just call it.
10786 * collect2.h (verbose): Declaration renamed from vflag.
10787 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10788 debug.
10789
10790 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10791 (lto-wrapper$(exeext)): Link with collect-utils.o.
10792 * collect-utils.c: New file.
10793 * collect-utils.h: New file.
10794 * lto-wrapper.c: Include "collect-utils.h".
10795 (args_name): Delete variable.
10796 (tool_name): New variable.
10797 (tool_cleanup): New function.
10798 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10799 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10800 (fork_execute): Remove functions.
10801
10802 2014-06-26 Nick Clifton <nickc@redhat.com>
10803
10804 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10805
10806 * doc/extend.texi (Function Attributes): Fix typo in description
10807 of RX vector attribute.
10808
10809 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10810
10811 * config.gcc (supported_defaults): Error when passing either
10812 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10813
10814 2014-06-26 Richard Biener <rguenther@suse.de>
10815
10816 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10817 propagating volatile pointers.
10818
10819 2014-06-26 Richard Biener <rguenther@suse.de>
10820
10821 PR tree-optimization/61607
10822 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10823 loop if we redirected its latch edge.
10824 (thread_block_1): Do not cancel loops prematurely.
10825
10826 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10827
10828 * toplev.c (backend_init_target): Move init_emit_regs and
10829 init_regs to...
10830 (backend_init) ... here; skip ira_init_once and backend_init_target.
10831 (target_reinit) ... and here; clear
10832 this_target_rtl->lang_dependent_initialized.
10833 (lang_dependent_init_target): Clear
10834 this_target_rtl->lang_dependent_initialized;
10835 break out rtl initialization to ...
10836 (initialize_rtl): ... here; call also backend_init_target
10837 and ira_init_once.
10838 * toplev.h (initialize_rtl): New function.
10839 * function.c: Include toplev.h
10840 (init_function_start): Call initialize_rtl.
10841 * rtl.h (target_rtl): Add target_specific_initialized,
10842 lang_dependent_initialized.
10843
10844 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10845 Jakub Jelinek <jakub@redhat.com>
10846
10847 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10848
10849 2014-06-25 Tom de Vries <tom@codesourcery.com>
10850
10851 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10852
10853 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10854
10855 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10856 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10857 Issue a strict overflow warning if appropriate.
10858
10859 2014-06-25 Martin Liska <mliska@suse.cz>
10860
10861 IPA REF refactoring
10862 * Makefile.in: Removed header file (ipa-ref-inline.h).
10863 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10864 called.
10865 (cgraph_speculative_call_info): Likewise.
10866 (cgraph_for_node_thunks_and_aliases): Likewise.
10867 (cgraph_for_node_and_aliases): Likewise.
10868 (verify_cgraph_node): Likewise.
10869 * cgraph.h: Batch of IPA REF functions become member functions of
10870 symtab_node: add_reference, maybe_add_reference, clone_references,
10871 clone_referring, clone_reference, find_reference,
10872 remove_stmt_references, remove_all_references,
10873 remove_all_referring, dump_references, dump_referring,
10874 has_alias_p, iterate_reference, iterate_referring.
10875 * cgraphbuild.c (record_reference): New IPA REF function used.
10876 (record_type_list): Likewise.
10877 (record_eh_tables): Likewise.
10878 (mark_address): Likewise.
10879 (mark_load): Likewise.
10880 (mark_store): Likewise.
10881 (pass_build_cgraph_edges): Likewise.
10882 (rebuild_cgraph_edge): Likewise.
10883 (cgraph_rebuild_references): Likewise.
10884 (pass_remove_cgraph_callee_edges): Likewise.
10885 * cgraphclones.c (cgraph_clone_node): Likewise.
10886 (cgraph_create_virtual_clone): Likewise.
10887 (cgraph_materialize_clone): Likewise.
10888 (cgraph_materialize_all_clones): Likewise.
10889 * cgraphunit.c (cgraph_reset_node): Likewise.
10890 (cgraph_reset_node): Likewise.
10891 (analyze_function): Likewise.
10892 (assemble_thunks_and_aliases): Likewise.
10893 (expand_function): Likewise.
10894 * ipa-comdats.c (propagate_comdat_group): Likewise.
10895 (enqueue_references): Likewise.
10896 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10897 (create_specialized_node): Likewise.
10898 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10899 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10900 * ipa-inline.c (reset_edge_caches): Likewise.
10901 (update_caller_keys): Likewise.
10902 (execute): Likewise.
10903 * ipa-prop.c (remove_described_reference): Likewise.
10904 (propagate_controlled_uses): Likewise.
10905 (ipa_edge_duplication_hook): Likewise.
10906 (ipa_modify_call_arguments): Likewise.
10907 * ipa-pure-const.c (propagate_pure_const): Likewise.
10908 * ipa-ref-inline.h: Header file removed, functions moved
10909 to symtab_node class.
10910 * ipa-ref.c (remove_reference): New class member function.
10911 (cannot_lead_to_return): New class member function.
10912 (referring_ref_list): Likewise.
10913 (referred_ref_list): Likewise.
10914 Rest of functions moved to symtab_node class.
10915 * ipa-ref.h: New member functions remove_reference,
10916 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10917 to ipa_ref class.
10918 ipa_ref_list class has new member functions: first_reference,
10919 first_referring, clear, nreferences.
10920 * ipa-reference.c (analyze_function): New IPA REF function used.
10921 (write_node_summary_p): Likewise.
10922 (ipa_reference_write_optimization_summary): Likewise.
10923 * ipa-split.c (split_function): Likewise.
10924 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10925 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10926 (function_and_variable_visibility): Likewise.
10927 * ipa.c (has_addr_references_p): Likewise.
10928 (process_references): Argument type changed.
10929 (symtab_remove_unreachable_nodes): New IPA REF function used.
10930 (process_references): Likewise.
10931 (set_writeonly_bit): Likewise.
10932 * lto-cgraph.c: Implementation of new symtab_node member functions
10933 that uses new IPA REF functions.
10934 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10935 function used.
10936 * lto-streamer-out.c (output_symbol_p): Likewise.
10937 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10938 changed.
10939 * symtab.c: Implementation of new IPA REF API.
10940 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10941 (ipa_tm_create_version): Likewise.
10942 (ipa_tm_execute): Likewise.
10943 * tree-emutls.c (gen_emutls_addr): Likewise.
10944 * tree-inline.c (copy_bb): Likewise.
10945 (delete_unreachable_blocks_update_callgraph): Likewise.
10946 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10947 (varpool_for_node_and_aliases): Likewise.
10948
10949 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10950
10951 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10952
10953 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10954
10955 PR bootstrap/61598
10956 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10957 tree_node * instead of tree_node *.
10958 (fold): Adjust.
10959 (print_fold_checksum): Likewise.
10960 (fold_check_failed): Likewise.
10961 (debug_fold_checksum): Likewise.
10962 (fold_build1_stat_loc): Likewise.
10963 (fold_build2_stat_loc): Likewise.
10964 (fold_build3_stat_loc): Likewise.
10965 (fold_build_call_array_loc): Likewise.
10966
10967 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10968
10969 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10970 implementation with call to...
10971 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10972 function.
10973 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10974 Declare.
10975
10976 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10977
10978 PR tree-optimization/57742
10979 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10980 after replacing the statement.
10981
10982 2014-06-25 Nick Clifton <nickc@redhat.com>
10983
10984 * config/v850/v850.c (GHS_default_section_names): Change to const
10985 char * type.
10986 (GHS_current_section_names): Likewise.
10987 (v850_insert_attributes): Do not build strings, just assign the
10988 names directly. Change the type of 'chosen_section' to const
10989 char*.
10990 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10991 directly to the array entry.
10992 * config/v850/v850.h (GHS_default_section_names): Change to const
10993 char * type.
10994 (GHS_current_section_names): Likewise.
10995
10996 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10997
10998 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10999 (LANG_HOOKS_DECLS): Add it.
11000 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
11001 has correct type.
11002 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
11003 * langhooks.h (struct lang_hooks_for_decls): Add
11004 omp_clause_linear_ctor hook.
11005 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
11006 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
11007 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
11008 combined simd loop use omp_clause_linear_ctor hook.
11009
11010 2014-06-24 Cong Hou <congh@google.com>
11011
11012 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
11013 pattern recognition.
11014 (type_conversion_p): PROMOTION is true if it's a type promotion
11015 conversion, and false otherwise. Return true if the given expression
11016 is a type conversion one.
11017 * tree-vectorizer.h: Adjust the number of patterns.
11018 * tree.def: Add SAD_EXPR.
11019 * optabs.def: Add sad_optab.
11020 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
11021 * expr.c (expand_expr_real_2): Likewise.
11022 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
11023 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11024 * optabs.c (optab_for_tree_code): Likewise.
11025 * tree-cfg.c (estimate_operator_cost): Likewise.
11026 * tree-ssa-operands.c (get_expr_operands): Likewise.
11027 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
11028 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
11029 * doc/generic.texi: Add document for SAD_EXPR.
11030 * doc/md.texi: Add document for ssad and usad.
11031
11032 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11033
11034 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
11035 qualification in cast.
11036
11037 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
11038
11039 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
11040 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
11041 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
11042 (tree_function_decl): ... here.
11043 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
11044 streaming of vindex to ...
11045 (write_ts_function_decl_tree_pointers): ... here.
11046 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
11047 Do not stream DECL_VINDEX.
11048 (lto_input_ts_function_decl_tree_pointers): Stream it here.
11049
11050 2014-06-24 Catherine Moore <clm@codesourcery.com>
11051 Sandra Loosemore <sandra@codesourcery.com>
11052
11053 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
11054 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
11055 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
11056
11057 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11058
11059 * doc/invoke.texi (Warning Options): Remove duplicated
11060 -Wmaybe-uninitialized.
11061
11062 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11063
11064 PR tree-optimization/57742
11065 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
11066 (handle_builtin_malloc, handle_builtin_memset): New functions.
11067 (strlen_optimize_stmt): Call them.
11068 * passes.def: Move strlen after loop+dom but before vrp.
11069
11070 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11071
11072 PR target/61570
11073 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
11074 model family 6 CPU with has_longmode never use a CPU without
11075 64-bit support.
11076
11077 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
11078
11079 PR target/61570
11080 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
11081 the last change.
11082
11083 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11084
11085 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
11086 * dominance.c (iterate_fix_dominators): Use hash_map instead of
11087 pointer_map.
11088 * hash-map.h: New file.
11089 * ipa-comdats.c: Use hash_map instead of pointer_map.
11090 * ipa.c: Likewise.
11091 * lto-section-out.c: Adjust.
11092 * lto-streamer.h: Replace pointer_map with hash_map.
11093 * symtab.c (verify_symtab): Likewise.
11094 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11095 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11096 * tree-streamer.h: Likewise.
11097 * tree-streamer.c: Adjust.
11098 * pointer-set.h: Remove pointer_map.
11099
11100 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11101
11102 * hash-table.h: Add a template arg to choose between storing values
11103 and storing pointers to values, and then provide partial
11104 specializations for both.
11105 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11106 should store, not the type values should point to.
11107 * tree-into-ssa.c (var_info_hasher): Likewise.
11108 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11109 * tree-complex.c: Adjust.
11110 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11111 table instead of int_tree_map *.
11112 * tree-parloops.c: Adjust.
11113 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11114 type is being stored.
11115 * tree-vectorizer.c: Adjust.
11116
11117 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11118
11119 * hash-table.h: Remove a layer of indirection from hash_table so that
11120 it contains the hash table's data instead of a pointer to the data.
11121 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11122 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11123 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11124 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11125 fold-const.c, gcse.c, ggc-common.c,
11126 gimple-ssa-strength-reduction.c, gimplify.c,
11127 graphite-clast-to-gimple.c, graphite-dependences.c,
11128 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11129 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11130 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11131 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11132 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11133 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11134 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11135 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11136 tree-ssa-live.c, tree-ssa-loop-im.c,
11137 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11138 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11139 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11140 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11141 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11142 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11143 vtable-verify.c, vtable-verify.h: Adjust.
11144
11145 2014-06-24 Richard Biener <rguenther@suse.de>
11146
11147 PR tree-optimization/61572
11148 * tree-ssa-sink.c (statement_sink_location): Do not sink
11149 loads from hard registers.
11150
11151 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11152
11153 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11154 not mentioned in clauses use private clause if the iterator is
11155 declared in #pragma omp for simd, and when adding lastprivate
11156 instead, add it to the outer #pragma omp for too. Diagnose
11157 if the variable is private in outer context. For simd collapse > 1
11158 loops, replace all iterators with temporaries.
11159 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11160 same even in collapse > 1 loops.
11161
11162 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11163 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11164 non-NULL.
11165 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11166 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11167 non-NULL.
11168 (gimplify_adjust_omp_clauses): Likewise.
11169 * omp-low.c (lower_rec_simd_input_clauses,
11170 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11171 safelen the same as safelen(1).
11172 * tree-nested.c (convert_nonlocal_omp_clauses,
11173 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11174 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11175 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11176 Fixup handling of GIMPLE_OMP_TARGET.
11177 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11178 GIMPLE_OMP_TARGET.
11179
11180 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11181
11182 PR tree-optimization/61554
11183 * tree-ssa-propagate.c: Include "bitmap.h".
11184 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11185 properly update constructor/destructor.
11186 (substitute_and_fold_dom_walker::before_dom_children):
11187 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11188 need_eh_cleaup instead.
11189 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11190 need_eh_cleanup.
11191
11192 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11193
11194 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11195 * tree-pass.h (make_pass_ipa_single_use): New pass.
11196 * cgraph.h (used_by_single_function): New flag.
11197 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11198 Stream it.
11199 * passes.def (pass_ipa_single_use): Scedule.
11200 * ipa.c (BOTTOM): New macro.
11201 (meet): New function
11202 (propagate_single_user): New function.
11203 (ipa_single_use): New function.
11204 (pass_data_ipa_single_use): New pass.
11205 (pass_ipa_single_use): New pass.
11206 (pass_ipa_single_use::gate): New gate.
11207 (make_pass_ipa_single_use): New function.
11208
11209 2014-06-23 Kai Tietz <ktietz@redhat.com>
11210
11211 PR target/39284
11212 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11213 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11214
11215 2014-06-23 Richard Biener <rguenther@suse.de>
11216
11217 * tree-ssa-loop.c (gate_loop): New function.
11218 (pass_tree_loop::gate): Call it.
11219 (pass_data_tree_no_loop, pass_tree_no_loop,
11220 make_pass_tree_no_loop): New.
11221 * tree-vectorizer.c: Include tree-scalar-evolution.c
11222 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11223 required.
11224 (pass_slp_vectorize::clone): New method.
11225 * timevar.def (TV_TREE_NOLOOP): New.
11226 * tree-pass.h (make_pass_tree_no_loop): Declare.
11227 * passes.def (pass_tree_no_loop): New pass group with
11228 SLP vectorizer.
11229
11230 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11231
11232 PR target/61570
11233 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11234 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11235
11236 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11237
11238 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11239 "yes" where needed.
11240
11241 2014-06-23 Alan Modra <amodra@gmail.com>
11242
11243 PR bootstrap/61583
11244 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11245 to zero on debug statements.
11246
11247 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11248
11249 PR target/60825
11250 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11251 Ignore third operand if present by marking qualifier_internal.
11252
11253 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11254
11255 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11256 vector extension.
11257 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11258 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11259 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11260 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11261 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11262 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11263 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11264 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11265 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11266 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11267 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11268 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11269 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11270 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11271 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11272 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11273 logic in GCC vector extensions
11274
11275 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11276 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11277 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11278 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11279 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11280 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11281 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11282 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11283 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11284 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11285
11286 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11287
11288 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11289 extensions.
11290
11291 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11292 (vget_low_s64): Use __GET_LOW macro.
11293 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11294 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11295 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11296 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11297 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11298
11299 (vcombine_s64): Use GCC vector extensions; remove cast.
11300 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11301 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11302 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11303 Fix type signature; remove cast.
11304
11305 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11306
11307 PR target/60825
11308 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11309 V1DFmode.
11310 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11311 add V1DFmode
11312 (BUILTIN_VD1): New.
11313 (BUILTIN_VD_RE): Remove.
11314 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11315 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11316 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11317 variant but not df.
11318 (vreinterpretv1df*, vreinterpret*v1df): New.
11319 (vreinterpretdf*, vreinterpret*df): Remove.
11320 * config/aarch64/aarch64-simd.md (aarch64_create,
11321 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11322 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11323 (VD1): New.
11324 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11325 (vcreate_f64): Remove cast, use v1df builtin.
11326 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11327 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11328 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11329 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11330 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11331 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11332 add range check using __builtin_aarch64_im_lane_boundsi.
11333 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11334 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11335 type signature, use gcc vector extensions.
11336 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11337 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11338 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11339 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11340 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11341 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11342 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11343 vreinterpret_u64_f64): Use v1df builtin not df.
11344
11345 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11346
11347 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11348 vector registers.
11349
11350 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11351
11352 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11353 priority directly.
11354
11355 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11356
11357 * loop-invariant.c (pre_check_invariant_p): New function.
11358 (find_invariant_insn): Call pre_check_invariant_p.
11359
11360 2014-06-22 Richard Henderson <rth@redhat.com>
11361
11362 PR target/61565
11363 * compare-elim.c (struct comparison): Add eh_note.
11364 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11365 a redundant comparison in a different EH region. Purge EH edges if
11366 necessary.
11367
11368 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11369
11370 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11371 (var_shift): Use it.
11372 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11373 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11374 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11375 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11376 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11377 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11378 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11379 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11380 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11381 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11382 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11383 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11384 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11385 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11386 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11387 *rotldi3_internal15be): Use the new attribute. Merge register and
11388 integer alternatives.
11389
11390 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11391
11392 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11393 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11394 split, *ashrdi3_internal3 and split): Delete, merge into...
11395 (ashr<mode>3): New expander.
11396 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11397 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11398
11399 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11400
11401 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11402 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11403 *rotldi3_internal3 and split): Delete, merge into...
11404 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11405 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11406 Use "rotlw" extended mnemonic.
11407
11408 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11409
11410 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11411 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11412 and split, *ashldi3_internal3 and split): Delete, merge into...
11413 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11414 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11415
11416 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11417
11418 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11419 (lshrsi3, two anonymous define_insns and define_splits,
11420 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11421 *lshrdi3_internal3 and split): Delete, merge into...
11422 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11423 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11424
11425 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11426
11427 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11428 Remove "O" alternative.
11429
11430 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11431
11432 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11433 (mips_move_from_gpr_cost): Likewise.
11434 (mips_register_move_cost): Update accordingly.
11435 (mips_secondary_reload_class): Remove name of in_p.
11436
11437 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11438
11439 PR target/61503
11440 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11441 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11442
11443 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11444
11445 * config/nios2/nios2.c: Include "builtins.h".
11446
11447 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11448
11449 * cgraph.h (tls_model_names): New variable.
11450 * print-tree.c (print_node): Simplify.
11451 * varpool.c (tls_model_names): New variable.
11452 (dump_varpool_node): Output tls model.
11453
11454 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11455
11456 * ipa-visibility.c (function_and_variable_visibility): Disable
11457 temporarily local aliases for some targets.
11458
11459 2014-06-20 Marek Polacek <polacek@redhat.com>
11460
11461 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11462 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11463 into SANITIZE_UNDEFINED.
11464 * doc/invoke.texi: Describe -fsanitize=bounds.
11465 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11466 functions created in the FEs.
11467 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11468 (expand_UBSAN_BOUNDS): New function.
11469 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11470 * internal-fn.h: Don't define internal functions here.
11471 * opts.c (common_handle_option): Add -fsanitize=bounds.
11472 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11473 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11474 * tree-core.h: Define internal functions here.
11475 (struct tree_base): Add ifn field.
11476 * tree-pretty-print.c: Include "internal-fn.h".
11477 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11478 * tree.c (get_callee_fndecl): Likewise.
11479 (build_call_expr_internal_loc): New function.
11480 * tree.def (CALL_EXPR): Update description.
11481 * tree.h (CALL_EXPR_IFN): Define.
11482 (build_call_expr_internal_loc): Declare.
11483 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11484 types.
11485 (ubsan_type_descriptor): Change bool parameter to enum
11486 ubsan_print_style. Adjust the code. Add handling of
11487 UBSAN_PRINT_ARRAY.
11488 (ubsan_expand_bounds_ifn): New function.
11489 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11490 (ubsan_build_overflow_builtin): Likewise.
11491 (instrument_bool_enum_load): Likewise.
11492 (ubsan_instrument_float_cast): Likewise.
11493 * ubsan.h (enum ubsan_print_style): New enum.
11494 (ubsan_expand_bounds_ifn): Declare.
11495 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11496
11497 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11498
11499 * config/rs6000/rs6000.md: Append `DONE' to preparation
11500 statements of `bswap' pattern splitters.
11501
11502 2014-06-20 Tom de Vries <tom@codesourcery.com>
11503
11504 * target.def (call_fusage_contains_non_callee_clobbers): Update
11505 definition.
11506 * doc/tm.texi: Regenerate.
11507
11508 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11509 Max Ostapenko <m.ostapenko@partner.samsung.com>
11510
11511 PR sanitizer/61547
11512 * asan.c (instrument_strlen_call): Fixed instrumentation of
11513 trailing byte.
11514
11515 2014-06-20 Martin Jambor <mjambor@suse.cz>
11516
11517 PR ipa/61540
11518 * ipa-prop.c (impossible_devirt_target): New function.
11519 (try_make_edge_direct_virtual_call): Use it, also instead of
11520 asserting.
11521
11522 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11523 Max Ostapenko <m.ostapenko@partner.samsung.com>
11524
11525 PR sanitizer/61530
11526 * asan.c (build_check_stmt): Add condition.
11527
11528 2014-06-20 Martin Jambor <mjambor@suse.cz>
11529
11530 PR ipa/61211
11531 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11532 expanded clones.
11533
11534 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11535
11536 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11537 Update comments.
11538 (VCONQ): Make comment more helpful.
11539 (VCON): Delete.
11540 * config/aarch64/aarch64-simd.md
11541 (aarch64_sqdmulh_lane<mode>):
11542 Use VCOND for operands 2. Update lane checking and flipping logic.
11543 (aarch64_sqrdmulh_lane<mode>): Likewise.
11544 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11545 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11546 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11547 attribute of operand 3 to VCOND.
11548 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11549 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11550 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11551 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11552 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11553 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11554 define_insn.
11555 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11556 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11557 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11558 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11559 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11560 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11561 operand to VCOND. Update lane flipping and bounds checking logic.
11562 (aarch64_sqdmlal2_lane<mode>): Likewise.
11563 (aarch64_sqdmlsl_lane<mode>): Likewise.
11564 (aarch64_sqdmull_lane<mode>): Likewise.
11565 (aarch64_sqdmull2_lane<mode>): Likewise.
11566 (aarch64_sqdmlal_laneq<mode>):
11567 Replace VCON usage with VCONQ.
11568 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11569 (aarch64_sqdmlal2_laneq<mode>): Emit
11570 aarch64_sqdmlal2_laneq<mode>_internal insn.
11571 Replace VCON with VCONQ.
11572 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11573 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11574 (aarch64_sqdmull_laneq<mode>): Emit
11575 aarch64_sqdmull_laneq<mode>_internal insn.
11576 Replace VCON with VCONQ.
11577 (aarch64_sqdmull2_laneq<mode>): Emit
11578 aarch64_sqdmull2_laneq<mode>_internal insn.
11579 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11580 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11581 of 3rd argument to int16x4_t.
11582 (vqdmlalh_lane_s16): Likewise.
11583 (vqdmlslh_lane_s16): Likewise.
11584 (vqdmull_high_lane_s16): Likewise.
11585 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11586 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11587 (vqdmlsl_lane_s16): Likewise.
11588 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11589 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11590 (vqdmlals_lane_s32): Likewise.
11591 (vqdmlsls_lane_s32): Likewise.
11592 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11593 (vqdmulls_lane_s32): Likewise.
11594 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11595 (vqdmlsl_lane_s32): Likewise.
11596 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11597 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11598 (vqrdmulhh_lane_s16): Likewise.
11599 (vqdmlsl_high_lane_s16): Likewise.
11600 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11601 (vqdmlsl_high_lane_s32): Likewise.
11602 (vqrdmulhs_lane_s32): Likewise.
11603
11604 2014-06-20 Tom de Vries <tom@codesourcery.com>
11605
11606 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11607 get_call_reg_set_usage.
11608
11609 2014-06-20 Tom de Vries <tom@codesourcery.com>
11610
11611 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11612 it contains all call_used_regs.
11613
11614 2014-06-20 Tom de Vries <tom@codesourcery.com>
11615
11616 * final.c (collect_fn_hard_reg_usage): Add and use variable
11617 function_used_regs.
11618
11619 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11620
11621 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11622 (set_init_priority, get_init_priority, set_fini_priority,
11623 get_fini_priority): New methods.
11624 * tree.c (init_priority_for_decl): Remove.
11625 (init_ttree): Do not initialize init priority.
11626 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11627 (decl_priority_info): Remove.
11628 (decl_init_priority_insert): Rewrite.
11629 (decl_fini_priority_insert): Rewrite.
11630 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11631 tree_priority_map_marked_p): Remove.
11632 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11633 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11634 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11635 not output priorities.
11636 (pack_ts_function_decl_value_fields): Likewise.
11637 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11638 not input priorities.
11639 (unpack_ts_function_decl_value_fields): Likewise.
11640 * symtab.c (symbol_priority_map): Declare.
11641 (init_priority_hash): Declare.
11642 (symtab_unregister_node): Unregister from priority hash, too.
11643 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11644 New methods.
11645 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11646 (symbol_priority_info): New function.
11647 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11648 New methods.
11649 * tree-core.h (tree_priority_map): Remove.
11650
11651 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11652
11653 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11654 0xff to uint64_t before shifting it up.
11655
11656 2014-06-20 Julian Brown <julian@codesourcery.com>
11657 Chung-Lin Tang <cltang@codesourcery.com>
11658
11659 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11660 TARGET_THUMB1_ONLY. Add comments.
11661
11662 2014-06-19 Tom de Vries <tom@codesourcery.com>
11663
11664 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11665 return type to void.
11666 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11667
11668 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11669
11670 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11671 as "move", from depends_on.
11672
11673 2014-06-19 Terry Guo <terry.guo@arm.com>
11674
11675 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11676 stage.
11677
11678 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11679
11680 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11681 Remove cr5.
11682 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11683
11684 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11685
11686 PR target/61550
11687 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11688 addresses here if reload in progress or completed.
11689
11690 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11691
11692 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11693 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11694 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11695 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11696 (mips_register_priority): New function that implements the target
11697 hook TARGET_REGISTER_PRIORITY.
11698 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11699 (mips_lra_p): Likewise for TARGET_LRA_P.
11700 (TARGET_REGISTER_PRIORITY): Define macro.
11701 (TARGET_SPILL_CLASS): Likewise.
11702 (TARGET_LRA_P): Likewise.
11703 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11704 classes.
11705 (REG_CLASS_NAMES): Likewise.
11706 (REG_CLASS_CONTENTS): Likewise.
11707 (BASE_REG_CLASS): Use M16_SP_REGS.
11708 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11709 New set attribute to enable alternatives depending on the register
11710 allocator used.
11711 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11712 (*lea64): Disable pattern for MIPS16.
11713 * config/mips/mips.opt (mlra): New option.
11714
11715 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11716
11717 * lra-constraints.c (base_to_reg): New function.
11718 (process_address): Use new function.
11719
11720 2014-06-18 Tom de Vries <tom@codesourcery.com>
11721
11722 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11723 * config/aarch64/aarch64.c
11724 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11725 (aarch64_emit_call_insn): New function.
11726 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11727 of emit_call_insn.
11728 * config/aarch64/aarch64.md (define_expand "call_internal")
11729 (define_expand "call_value_internal", define_expand "sibcall_internal")
11730 (define_expand "sibcall_value_internal"): New.
11731 (define_expand "call", define_expand "call_value")
11732 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11733 expand variant and aarch64_emit_call_insn.
11734
11735 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11736 Tom de Vries <tom@codesourcery.com>
11737
11738 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11739 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11740 Redefine to true.
11741 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11742 clobbers to CALL_INSN_FUNCTION_USAGE.
11743 (define_expand "sibcall_internal")
11744 (define_expand "sibcall_value_internal"): New.
11745 (define_expand "call", define_expand "call_value"): Add argument to
11746 arm_emit_call_insn.
11747 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11748 (define_expand "sibcall_value"): Use sibcall_value_internal and
11749 arm_emit_call_insn.
11750
11751 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11752
11753 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11754
11755 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11756
11757 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11758 __udivmoddi4.
11759
11760 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11761
11762 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11763 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11764 annotations. Fix DWARF information.
11765
11766 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11767
11768 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11769 __udivmoddi4, and fixups for negative operands.
11770
11771 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11772
11773 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11774
11775 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11776
11777 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11778 to __udivmoddi4.
11779
11780 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11781
11782 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11783 manipulation.
11784
11785 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11786
11787 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11788 describing register usage on function entry and exit.
11789
11790 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11791
11792 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11793 (__aeabi_ldivmod): Fix whitespace.
11794
11795 2014-06-18 Andreas Schwab <schwab@suse.de>
11796
11797 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11798 Remove blank line after @item.
11799
11800 2014-06-18 Richard Henderson <rth@redhat.com>
11801
11802 PR target/61545
11803 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11804
11805 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11806
11807 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11808 POST_MODIFY for neon loads and stores.
11809 (arm_print_operand): Output post-index register for neon loads and
11810 stores.
11811
11812 2014-06-18 Richard Biener <rguenther@suse.de>
11813
11814 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11815
11816 2014-06-18 Richard Biener <rguenther@suse.de>
11817
11818 * tree-pass.h (make_pass_dce_loop): Remove.
11819 * passes.def: Replace pass_dce_loop with pass_dce.
11820 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11821 changed free niter estimates and reset the scev cache.
11822 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11823 make_pass_dce_loop): Remove.
11824 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11825 (fini_copy_prop): Return whether something changed. Always
11826 let substitute_and_fold perform DCE and free niter estimates
11827 and reset the scev cache if so.
11828 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11829 (pass_data_copy_prop): Do not unconditionally schedule
11830 cleanup-cfg or update-ssa.
11831
11832 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11833
11834 PR tree-optimization/61518
11835 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11836 reduction var is used in reduction stmt or phi-function only.
11837
11838 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11839
11840 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11841
11842 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11843
11844 PR tree-optimization/61517
11845 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11846 whose rhs's first tree is the source expression instead of the
11847 expression itself.
11848 (find_bswap_or_nop): Likewise.
11849 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11850 gimple stmt whose rhs's first tree is the source. In the memory source
11851 case, move the stmt to be replaced close to one of the original load to
11852 avoid the problem of a store between the load and the stmt's original
11853 location.
11854 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11855 signature.
11856
11857 2014-06-18 Andreas Schwab <schwab@suse.de>
11858
11859 PR rtl-optimization/54555
11860 * postreload.c (move2add_use_add2_insn): Substitute
11861 STRICT_LOW_PART only if it is cheaper.
11862
11863 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11864
11865 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11866 Do not use unspec as call operand. Use memory_operand instead of
11867 memory_nox32_operand and add "m" operand constraint. Disable
11868 pattern for TARGET_X32.
11869 (*sibcall_pop_memory): Ditto.
11870 (*sibcall_value_memory): Ditto.
11871 (*sibcall_value_pop_memory): Ditto.
11872 (sibcall peepholes): Merge SImode and DImode patterns using
11873 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11874 Disable pattern for TARGET_X32. Check if eliminated register is
11875 really dead after call insn. Generate call RTX without unspec operand.
11876 (sibcall_value peepholes): Ditto.
11877 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11878 instead of memory_nox32_operand. Check if eliminated register is
11879 really dead after call insn. Generate call RTX without unspec operand.
11880 (sibcall_value_pop peepholes): Ditto.
11881 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11882
11883 2014-06-18 Terry Guo <terry.guo@arm.com>
11884
11885 PR target/61544
11886 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11887 reach the head.
11888
11889 2014-06-18 Olivier Hainque <hainque@adacore.com>
11890
11891 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11892 memorization of the end of block source location.
11893 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11894 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11895 end source location info we have on the block entry/exit code we
11896 generate.
11897
11898 2014-06-18 Richard Biener <rguenther@suse.de>
11899
11900 * common.opt (fssa-phiopt): New option.
11901 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11902 but not with -Og.
11903 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11904 * doc/invoke.texi (-fssa-phiopt): Document.
11905
11906 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11907
11908 * genattrtab.c (n_bypassed): New variable.
11909 (process_bypasses): Initialise n_bypassed.
11910 Count number of bypassed reservations.
11911 (make_automaton_attrs): Allocate space for bypassed reservations
11912 rather than number of bypasses.
11913
11914 2014-06-18 Richard Biener <rguenther@suse.de>
11915
11916 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11917 we propagated anything.
11918 (substitute_and_fold_dom_walker::before_dom_children): Something
11919 changed if we propagated into PHI arguments.
11920 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11921 we removed a stmt.
11922
11923 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11924
11925 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11926 vector case.
11927 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11928 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11929 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11930 Introduces alternative way of loads group permutaions.
11931 (vect_transform_grouped_load): Try alternative way of permutations.
11932
11933 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11934
11935 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11936 changed in ORT_TARGET region, don't jump to do_outer.
11937 (struct gimplify_adjust_omp_clauses_data): New type.
11938 (gimplify_adjust_omp_clauses_1): Adjust for data being
11939 a struct gimplify_adjust_omp_clauses_data pointer instead
11940 of tree *. Pass pre_p as a new argument to
11941 lang_hooks.decls.omp_finish_clause hook.
11942 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11943 splay_tree_foreach to pass both list_p and pre_p.
11944 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11945 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11946 gimplify_adjust_omp_clauses callers.
11947 * langhooks.c (lhd_omp_finish_clause): New function.
11948 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11949 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11950 * langhooks.h (struct lang_hooks_for_decls): Add a new
11951 gimple_seq * argument to omp_finish_clause hook.
11952 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11953 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11954 (scan_omp_parallel, lower_omp_for): When adding
11955 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11956 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11957 * tree-nested.c (convert_nonlocal_omp_clauses,
11958 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11959 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11960
11961 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11962
11963 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11964 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11965
11966 2014-06-17 Xinliang David Li <davidxl@google.com>
11967
11968 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11969 * passes.c (pass_init_dump_file): Do not set initialize
11970 flag to false unconditionally.
11971
11972 2014-06-17 Richard Biener <rguenther@suse.de>
11973
11974 * genopinit.c (main): Use vec<>::qsort method.
11975 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11976 Likewise.
11977 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11978
11979 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11980
11981 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11982 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11983 (mips_move_to_gpr_cost): Remove ST_REGS case.
11984 (mips_move_from_gpr_cost): Likewise.
11985 (mips_register_move_cost): Likewise.
11986 (mips_secondary_reload_class): Likewise.
11987
11988 2014-06-17 Richard Biener <rguenther@suse.de>
11989
11990 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11991 (pass_all_optimizations): Move 3rd copy-prop pass from after
11992 fre to before ifcombine/phiopt.
11993
11994 2014-06-17 Richard Biener <rguenther@suse.de>
11995
11996 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11997 and allow all blocks to be forwarders.
11998
11999 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
12000
12001 PR target/61483
12002 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
12003 variable 'size'; calculate 'size' right in the front; use
12004 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
12005 pcum->aapcs_stack_words.
12006
12007 2014-06-17 Nick Clifton <nickc@redhat.com>
12008
12009 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
12010 (umulhi3, mulsidi3, umulsidi3): Likewise.
12011
12012 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
12013
12014 PR middle-end/61508
12015 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
12016 check for section name.
12017
12018 2014-06-17 Richard Biener <rguenther@suse.de>
12019
12020 * tree-ssa-propagate.c: Include domwalk.h.
12021 (substitute_and_fold): Outline main worker into a domwalker ...
12022 (substitute_and_fold_dom_walker::before_dom_children): ... here.
12023 Schedule stmts we can fully propagate for removal. Remove
12024 poor-mans DCE.
12025 (substitute_and_fold): Apply a dominator walk to perform
12026 substitution. Process stmts scheduled for removal here.
12027
12028 2014-06-17 Richard Biener <rguenther@suse.de>
12029
12030 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
12031 of PHI node moving.
12032
12033 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12034
12035 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
12036 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
12037 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12038 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
12039 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
12040 TARGET_HARD_FLOAT.
12041 (get_fpscr) : Likewise.
12042
12043 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12044
12045 PR rtl-optimization/61325
12046 * lra-constraints.c (valid_address_p): Add forward declaration.
12047 (simplify_operand_subreg): Check address validity before and after
12048 alter_reg of memory subreg.
12049
12050 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
12051
12052 * config/i386/i386.c (decide_alg): Correctly handle
12053 maximum size of stringop algorithm.
12054
12055 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12056
12057 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
12058
12059 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12060
12061 PR rtl-optimization/61522
12062 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
12063
12064 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
12065
12066 Revert:
12067 * symtab.c (symtab_node::reset_section): New method.
12068 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12069 for localization.
12070 * cgraph.h (reset_section): Declare.
12071 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12072 do not consider comdat locals.
12073 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12074 for new symbol.
12075 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12076 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12077 reset sections of symbols dragged out of the comdats.
12078 (function_and_variable_visibility): Reset sections of
12079 localized symbols.
12080
12081 2014-06-16 Richard Biener <rguenther@suse.de>
12082
12083 PR tree-optimization/61482
12084 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
12085 [-INF(OVF), +INF(OVF)] range.
12086
12087 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12088
12089 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
12090 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
12091 handling 32-bit multiplication.
12092
12093 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12094
12095 PR middle-end/61430
12096 * lra-lives.c (process_bb_lives): Skip creating copy during
12097 insn scan when src/dest has constrained to same regno.
12098
12099 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12100
12101 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12102 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12103
12104 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12105
12106 * asan.c (check_func): New function.
12107 (maybe_create_ssa_name): Likewise.
12108 (build_check_stmt_with_calls): Likewise.
12109 (use_calls_p): Likewise.
12110 (report_error_func): Change interface.
12111 (build_check_stmt): Allow non-integer lengths; add support
12112 for new parameter.
12113 (asan_instrument): Likewise.
12114 (instrument_mem_region_access): Moved code to build_check_stmt.
12115 (instrument_derefs): Likewise.
12116 (instrument_strlen_call): Likewise.
12117 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12118 * doc/invoke.texi: Describe new parameter.
12119 * params.def: Define new parameter.
12120 * params.h: Likewise.
12121 * sanitizer.def: Describe new builtins.
12122
12123 2014-06-16 Richard Biener <rguenther@suse.de>
12124
12125 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12126 Make all defs available at the end.
12127 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12128
12129 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12130
12131 PR plugins/45078
12132 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12133
12134 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12135
12136 PR bootstrap/61516
12137 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12138 initialization. Replace remaining use of uid.
12139
12140 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12141
12142 * c-family/c-common.c (handle_tls_model_attribute): Use
12143 set_decl_tls_model.
12144 * c-family/c-common.c (handle_tls_model_attribute): Use
12145 set_decl_tls_model.
12146 * cgraph.h (struct varpool_node): Add tls_model.
12147 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12148 * tree.h (DECL_TLS_MODEL): Update.
12149 (DECL_THREAD_LOCAL_P): Check that variable is static.
12150 (decl_tls_model): Declare.
12151 (set_decl_tls_model): Declare.
12152 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12153 set symbol prorperties.
12154 (get_emutls_init_templ_addr): Cleanup.
12155 (new_emutls_decl): Update.
12156 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12157 (lto_input_varpool_node): Likewise.
12158 * lto-streamer-out.c (hash_tree): Likewise.
12159 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12160 not stream DECL_TLS_MODEL.
12161 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12162 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12163
12164 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12165
12166 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12167
12168 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12169
12170 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12171 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12172 lists.
12173 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12174 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12175 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12176 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12177 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12178 (df_get_artificial_defs, df_get_artificial_uses)
12179 (df_single_def, df_single_use): Update accordingly.
12180 (df_refs_chain_dump): Take the first element in a linked list as
12181 parameter, rather than a pointer to an array of pointers.
12182 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12183 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12184 (df_chain_create_bb_process_use): Likewise.
12185 (df_md_bb_local_compute_process_def): Likewise.
12186 * fwprop.c (process_defs, process_uses): Likewise.
12187 (register_active_defs, update_uses): Likewise.
12188 (forward_propagate_asm): Update for new df_ref linking.
12189 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12190 (df_null_ref_rec, df_null_mw_rec): Likewise.
12191 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12192 explicitly.
12193 (df_scan_free_bb_info): Remove check for null artificial_defs.
12194 (df_install_ref_incremental): Adjust for new df_ref linking.
12195 Use a single-element insertion rather than a full sort.
12196 (df_ref_chain_delete_du_chain): Take the first element
12197 in a linked list as parameter, rather than a pointer to an array of
12198 pointers.
12199 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12200 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12201 (df_insn_info_delete): Remove check for null defs and call to
12202 df_scan_free_mws_vec.
12203 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12204 null rather than df_null_*_rec.
12205 (df_insn_rescan_debug_internal): Likewise, and update null
12206 checks in the same way. Remove check for null defs.
12207 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12208 Move a single element rather doing a full sort.
12209 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12210 linking.
12211 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12212 Initialize df_ref and df_mw_hardreg lists to null rather than
12213 df_null_*_rec.
12214 (df_ref_compare): Take df_refs as parameter, transferring the
12215 old interface to...
12216 (df_ref_ptr_compare): ...this new function.
12217 (df_sort_and_compress_refs): Update accordingly.
12218 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12219 old interface to...
12220 (df_mw_ptr_compare): ...this new function.
12221 (df_sort_and_compress_mws): Update accordingly.
12222 (df_install_refs, df_install_mws): Return a linked list rather than
12223 an array of pointers.
12224 (df_refs_add_to_chains): Assert that old lists are empty rather
12225 than freeing them.
12226 (df_insn_refs_verify): Don't handle null defs speciailly.
12227 * web.c (union_match_dups): Update for new df_ref linking.
12228
12229 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12230
12231 * df.h (df_ref_create, df_ref_remove): Delete.
12232 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12233 (df_ref_remove): Likewise.
12234
12235 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12236
12237 * df.h (df_single_def, df_single_use): New functions.
12238 * ira.c (find_moveable_pseudos): Use them.
12239
12240 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12241
12242 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12243 * df-problems.c (df_note_bb_compute): Use it.
12244 * regstat.c (regstat_bb_compute_ri): Likewise.
12245
12246 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12247
12248 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12249 * cse.c (cse_extended_basic_block): Use them.
12250 * dce.c (mark_artificial_use): Likewise.
12251 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12252 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12253 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12254 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12255 (df_simulate_initialize_backwards): Likewise.
12256 (df_simulate_finalize_backwards): Likewise.
12257 (df_simulate_initialize_forwards): Likewise.
12258 (df_md_simulate_artificial_defs_at_top): Likewise.
12259 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12260 * regrename.c (init_rename_info): Likewise.
12261 * regstat.c (regstat_bb_compute_ri): Likewise.
12262 (regstat_bb_compute_calls_crossed): Likewise.
12263
12264 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12265
12266 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12267 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12268 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12269 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12270 * combine.c (create_log_links): Likewise.
12271 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12272 (try_eliminate_compare): Likewise.
12273 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12274 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12275 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12276 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12277 (word_dce_process_block, dce_process_block): Likewise.
12278 * ddg.c (def_has_ccmode_p): Likewise.
12279 * df-core.c (df_bb_regno_first_def_find): Likewise.
12280 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12281 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12282 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12283 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12284 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12285 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12286 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12287 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12288 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12289 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12290 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12291 * fwprop.c (local_ref_killed_between_p): Likewise.
12292 (all_uses_available_at, free_load_extend): Likewise.
12293 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12294 * hw-doloop.c (scan_loop): Likewise.
12295 * ifcvt.c (dead_or_predicable): Likewise.
12296 * init-regs.c (initialize_uninitialized_regs): Likewise.
12297 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12298 (process_bb_node_lives): Likewise.
12299 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12300 (find_moveable_pseudos): Likewise.
12301 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12302 * recog.c (peep2_find_free_register): Likewise.
12303 * ree.c (get_defs): Likewise.
12304 * regstat.c (regstat_bb_compute_ri): Likewise.
12305 (regstat_bb_compute_calls_crossed): Likewise.
12306 * sched-deps.c (find_inc, find_mem): Likewise.
12307 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12308 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12309 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12310 (prepare_shrink_wrap): Likewise.
12311 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12312 * web.c (union_defs, pass_web::execute): Likewise.
12313 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12314 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12315
12316 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12317
12318 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12319 to inheritance pseudos.
12320 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12321
12322 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12323
12324 PR target/61415
12325 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12326 (BU_MISC_2): Rename to ...
12327 (BU_LDBL128_2): ... this.
12328 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12329 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12330 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12331 RS6000_BTM_LDBL128.
12332 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12333 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12334 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12335 (unpacktf_1): Likewise.
12336 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12337 (__builtin_longdouble_dw1): Likewise.
12338 * doc/sourcebuild.texi (longdouble128): Document.
12339
12340 2014-06-13 Jeff Law <law@redhat.com>
12341
12342 PR rtl-optimization/61094
12343 PR rtl-optimization/61446
12344 * ree.c (combine_reaching_defs): Get the mode for the copy from
12345 the extension insn rather than the defining insn.
12346
12347 2014-06-13 Dehao Chen <dehao@google.com>
12348
12349 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12350
12351 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12352
12353 * doc/install.texi (--enable-linker-plugin-configure-flags)
12354 (--enable-linker-plugin-flags): Document new flags.
12355
12356 2014-06-13 Martin Jambor <mjambor@suse.cz>
12357
12358 PR ipa/61186
12359 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12360 cache_token if returning early.
12361
12362 2014-06-13 Nick Clifton <nickc@redhat.com>
12363
12364 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12365 requested alignment is active.
12366 (LABEL_ALIGN): Likewise.
12367 (LOOP_ALIGN): Likewise.
12368
12369 2014-06-13 Richard Biener <rguenther@suse.de>
12370
12371 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12372 Rewrite to propagate the VN result into all uses where
12373 possible and to remove stmts becoming dead because of that.
12374 (eliminate): Generalize stmt removal handling, remove in
12375 reverse dominator order to support proper debug stmt
12376 generation. Update stmts before removing stmts.
12377 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12378
12379 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12380
12381 PR tree-optimization/61375
12382 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12383 symbolic number cannot be represented in an uint64_t.
12384 (find_bswap_or_nop_1): Likewise.
12385
12386 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12387
12388 * symtab.c (symtab_node::reset_section): New method.
12389 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12390 for localization.
12391 * cgraph.h (reset_section): Declare.
12392 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12393 do not consider comdat locals.
12394 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12395 for new symbol.
12396 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12397 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12398 reset sections of symbols dragged out of the comdats.
12399 (function_and_variable_visibility): Reset sections of
12400 localized symbols.
12401
12402 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12403
12404 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12405 to use symtab and decl_binds_to_current_def_p
12406 * tree-vectorizer.c (increase_alignment): Increase alignment
12407 of alias target, too.
12408
12409 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12410
12411 PR middle-end/61486
12412 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12413 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12414 if outer combined construct is distribute.
12415 (gimplify_omp_for): For OMP_DISTRIBUTE set
12416 gimplify_omp_ctxp->distribute.
12417 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12418 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12419 mapping into decl map.
12420
12421 2014-06-12 Jason Merrill <jason@redhat.com>
12422
12423 * common.opt (fabi-version): Change default to 0.
12424
12425 2014-06-12 Jason Merrill <jason@redhat.com>
12426
12427 * toplev.c (process_options): Reject -fabi-version=1.
12428
12429 2014-06-12 Jeff Law <law@redhat.com>
12430
12431 PR tree-optimization/61009
12432 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12433 value when we stop processing a block due to problematic PHIs.
12434
12435 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12436
12437 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12438 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12439 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12440 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12441 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12442 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12443 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12444 are not in the spec.
12445
12446 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12447
12448 PR target/59843
12449 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12450 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12451 Support V1DFmode.
12452
12453 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12454
12455 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12456
12457 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12458
12459 PR target/61443
12460 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12461 loading from address spaces.
12462
12463 2014-06-12 Martin Liska <mliska@suse.cz>
12464
12465 PR ipa/61462
12466 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12467 statement is reachable.
12468
12469 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12470
12471 * symtab.c (section_hash): New hash.
12472 (symtab_unregister_node): Clear section before freeing.
12473 (hash_section_hash_entry): New haser.
12474 (eq_sections): New function.
12475 (symtab_node::set_section_for_node): New method.
12476 (set_section_1): Update.
12477 (symtab_node::set_section): Take string instead of tree as parameter.
12478 (symtab_resolve_alias): Update.
12479 * cgraph.h (section_hash_entry_d): New structure.
12480 (section_hash_entry): New typedef.
12481 (cgraph_node): Change comdat_group_ to x_comdat_group,
12482 change section_ to x_section and turn into section_hash_entry;
12483 update accestors; put set_section_for_node offline.
12484 * tree.c (decl_section_name): Turn into string.
12485 (set_decl_section_name): Change parameter to be string.
12486 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12487 * sdbout.c (sdbout_one_type): Update.
12488 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12489 * varasm.c (IN_NAMED_SECTION, get_named_section,
12490 resolve_unique_section, hot_function_section, get_named_text_section,
12491 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12492 make_decl_rtl, default_unique_section): Update.
12493 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12494 (c6x_elf_unique_section): Update.
12495 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12496 * config/pa/pa.c (pa_function_section): Update.
12497 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12498 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12499 * config/arc/arc.c (arc_in_small_data_p): Update.
12500 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12501 * config/mcore/mcore.c (mcore_unique_section): Update.
12502 * config/mips/mips.c (mips16_build_function_stub): Update.
12503 (mips16_build_call_stub): Update.
12504 (mips_function_rodata_section): Update.
12505 (mips_in_small_data_p): Update.
12506 * config/score/score.c (score_in_small_data_p): Update.
12507 * config/rx/rx.c (rx_in_small_data): Update.
12508 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12509 (rs6000_xcoff_asm_named_section): Update.
12510 (rs6000_xcoff_unique_section): Update.
12511 * config/frv/frv.c (frv_string_begins_with): Update.
12512 (frv_in_small_data_p): Update.
12513 * config/v850/v850.c (v850_encode_data_area): Update.
12514 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12515 (bfin_handle_l1_data_attribute): Update.
12516 (bfin_handle_l2_attribute): Update.
12517 * config/mep/mep.c (mep_unique_section): Update.
12518 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12519 Update.
12520 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12521 (h8300_handle_tiny_data_attribute): Update.
12522 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12523 (m32r_in_small_data_p): Update.
12524 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12525 * config/i386/i386.c (ix86_in_large_data_p): Update.
12526 * config/i386/winnt.c (i386_pe_unique_section): Update.
12527 * config/darwin.c (darwin_function_section): Update.
12528 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12529 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12530 (new_emutls_decl): Update.
12531 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12532 input_varpool_node): Update.
12533 (ead_string_cst): Turn to ...
12534 (read_string): ... this one.
12535 * dwarf2out.c (secname_for_decl): Update.
12536 * asan.c (asan_protect_global): Update.
12537
12538 2014-06-11 DJ Delorie <dj@redhat.com>
12539
12540 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12541 cache lines.
12542 * config/rx/rx.c (rx_option_override): Likewise.
12543 (rx_align_for_label): Likewise.
12544
12545 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12546
12547 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12548
12549 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12550 prototype.
12551
12552 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12553
12554 * common.md: New file.
12555 * doc/md.texi: Update description of generic, machine-independent
12556 constraints.
12557 * config/s390/constraints.md (e): Delete.
12558 * Makefile.in (md_file): Include common.md.
12559 * config/m32c/t-m32c (md_file): Likewise.
12560 * genpreds.c (general_mem): New array.
12561 (generic_constraint_letters): Remove constraints now defined by
12562 common.md.
12563 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12564 Allow the first character to be '<' or '>' as well.
12565 * genoutput.c (general_mem): New array.
12566 (indep_constraints): Remove constraints now defined by common.md.
12567 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12568 Remove special handling of 'm'.
12569 * ira-costs.c (record_reg_classes): Remove special handling of
12570 constraints now defined by common.md.
12571 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12572 * ira-lives.c (single_reg_class): Likewise.
12573 (ira_implicitly_set_insn_hard_regs): Likewise.
12574 * lra-constraints.c (reg_class_from_constraints): Likewise.
12575 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12576 * postreload.c (reload_cse_simplify_operands): Likewise.
12577 * reload.c (push_secondary_reload, scratch_reload_class)
12578 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12579 * reload1.c (maybe_fix_stack_asms): Likewise.
12580 * targhooks.c (default_secondary_reload): Likewise.
12581 * stmt.c (parse_output_constraint): Likewise.
12582 * recog.c (preprocess_constraints): Likewise.
12583 (constrain_operands, peep2_find_free_register): Likewise.
12584 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12585 must be handled specially.
12586
12587 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12588
12589 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12590 * genpreds.c (have_const_dbl_constraints): Delete.
12591 (add_constraint): Don't set it.
12592 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12593 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12594 constraints using the lookup_constraint logic.
12595 * ira-lives.c (single_reg_class): Likewise.
12596 * ira.c (ira_setup_alts): Likewise.
12597 * lra-constraints.c (process_alt_operands): Likewise.
12598 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12599 * reload.c (find_reloads): Likewise.
12600
12601 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12602
12603 * genpreds.c (const_int_start, const_int_end): New variables.
12604 (choose_enum_order): Output CONST_INT constraints before memory
12605 constraints.
12606 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12607 Add CT_CONST_INT.
12608 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12609 * ira.c (ira_setup_alts): Likewise.
12610 * lra-constraints.c (process_alt_operands): Likewise.
12611 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12612 * reload.c (find_reloads): Likewise.
12613
12614 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12615
12616 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12617 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12618 * recog.c (preprocess_constraints): Update accordingly.
12619
12620 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12621
12622 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12623 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12624 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12625 * genpreds.c (print_type_tree): New function.
12626 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12627 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12628 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12629 Write out enum constraint_type and get_constraint_type.
12630 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12631 constraint_num rather than a constraint string.
12632 (satisfies_address_constraint_p): Likewise.
12633 (reg_class_from_constraints): Avoid old constraint macros.
12634 (process_alt_operands, process_address_1): Likewise.
12635 (curr_insn_transform): Likewise.
12636 * ira-costs.c (record_reg_classes): Likewise.
12637 (record_operand_costs): Likewise.
12638 * ira-lives.c (single_reg_class): Likewise.
12639 (ira_implicitly_set_insn_hard_regs): Likewise.
12640 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12641 * postreload.c (reload_cse_simplify_operands): Likewise.
12642 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12643 (constrain_operands, peep2_find_free_register): Likewise.
12644 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12645 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12646 * reload1.c (maybe_fix_stack_asms): Likewise.
12647 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12648 * targhooks.c (default_secondary_reload): Likewise.
12649 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12650 to EXTRA_CONSTRAINT_STR.
12651 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12652
12653 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12654
12655 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12656 (write_constraint_satisfied_p_array): ...this new function.
12657 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12658 an array.
12659 (write_insn_preds_c): Update accordingly.
12660
12661 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12662
12663 * genpreds.c (write_lookup_constraint): Rename to...
12664 (write_lookup_constraint_1): ...this.
12665 (write_lookup_constraint_array): New function.
12666 (write_tm_preds_h): Define lookup_constraint as an inline function
12667 that uses write_lookup_constraint_array where possible.
12668 (write_insn_preds_c): Update for the changes above.
12669
12670 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12671
12672 * doc/md.texi (regclass_for_constraint): Rename to...
12673 (reg_class_for_constraint): ...this.
12674 * genpreds.c (num_constraints, enum_order, register_start)
12675 (register_end, satisfied_start, memory_start, memory_end)
12676 (address_start, address_end): New variables.
12677 (add_constraint): Count the number of constraints.
12678 (choose_enum_order): New function.
12679 (write_enum_constraint_num): Iterate over enum_order.
12680 (write_regclass_for_constraint): Rename to...
12681 (write_reg_class_for_constraint_1): ...this and update output
12682 accordingly.
12683 (write_constraint_satisfied_p): Rename to...
12684 (write_constraint_satisfied_p_1): ...this and update output
12685 accordingly. Do nothing if all extra constraints are register
12686 constraints.
12687 (write_insn_extra_memory_constraint): Delete.
12688 (write_insn_extra_address_constraint): Delete.
12689 (write_range_function): New function.
12690 (write_tm_preds_h): Define constraint_satisfied_p and
12691 reg_class_for_constraint as inline functions that do a range check
12692 before calling the out-of-line function. Use write_range_function
12693 to implement insn_extra_{register,memory,address}_constraint,
12694 the first of which is new.
12695 (write_insn_preds_c): Update after above changes to write_* functions.
12696 (main): Call choose_enum_order.
12697
12698 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12699
12700 PR tree-optimization/61306
12701 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12702 expression instead of its size.
12703 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12704 false to prevent optimization when the result is unpredictable due to
12705 arithmetic right shift of signed type with highest byte is set.
12706 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12707 (init_symbolic_number): Likewise.
12708 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12709 when the result is unpredictable due to sign extension.
12710
12711 2014-06-11 Terry Guo <terry.guo@arm.com>
12712
12713 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12714 (*thumb1_addsi3): Ditto.
12715 (*thumb_subdi3): Ditto.
12716 (thumb1_subsi3_insn): Ditto.
12717 (*thumb_mulsi3): Ditto.
12718 (*thumb_mulsi3_v6): Ditto.
12719 (*thumb1_andsi3_insn): Ditto.
12720 (thumb1_bicsi3): Ditto.
12721 (*thumb1_iorsi3_insn): Ditto.
12722 (*thumb1_xorsi3_insn): Ditto.
12723 (*thumb1_ashlsi3): Ditto.
12724 (*thumb1_ashrsi3): Ditto.
12725 (*thumb1_lshrsi3): Ditto.
12726 (*thumb1_rotrsi3): Ditto.
12727 (*thumb1_negdi2): Ditto.
12728 (*thumb1_negsi2): Ditto.
12729 (*thumb1_abssi2): Ditto.
12730 (*thumb1_neg_abssi2): Ditto.
12731 (*thumb1_one_cmplsi2): Ditto.
12732 (*thumb1_zero_extendhisi2): Ditto.
12733 (*thumb1_zero_extendqisi2): Ditto.
12734 (*thumb1_zero_extendqisi2_v6): Ditto.
12735 (thumb1_extendhisi2): Ditto.
12736 (thumb1_extendqisi2): Ditto.
12737 (*thumb1_movdi_insn): Ditto.
12738 (*thumb1_movsi_insn): Ditto.
12739 (*thumb1_movhi_insn): Ditto.
12740 (thumb_movhi_clobber): Ditto.
12741 (*thumb1_movqi_insn): Ditto.
12742 (*thumb1_movhf): Ditto.
12743 (*thumb1_movsf_insn): Ditto.
12744 (*thumb_movdf_insn): Ditto.
12745 (movmem12b): Ditto.
12746 (movmem8b): Ditto.
12747 (cbranchqi4): Ditto.
12748 (cbranchsi4_insn): Ditto.
12749 (cbranchsi4_scratch): Ditto.
12750 (*negated_cbranchsi4): Ditto.
12751 (*tbit_cbranch): Ditto.
12752 (*tlobits_cbranch): Ditto.
12753 (*tstsi3_cbranch): Ditto.
12754 (*cbranchne_decr1): Ditto.
12755 (*addsi3_cbranch): Ditto.
12756 (*addsi3_cbranch_scratch): Ditto.
12757 (*thumb_cmpdi_zero): Ditto.
12758 (cstoresi_eq0_thumb1): Ditto.
12759 (cstoresi_ne0_thumb1): Ditto.
12760 (*cstoresi_eq0_thumb1_insn): Ditto.
12761 (*cstoresi_ne0_thumb1_insn): Ditto.
12762 (cstoresi_nltu_thumb1): Ditto.
12763 (cstoresi_ltu_thumb1): Ditto.
12764 (thumb1_addsi3_addgeu): Ditto.
12765 (*thumb_jump): Ditto.
12766 (*call_reg_thumb1_v5): Ditto.
12767 (*call_reg_thumb1): Ditto.
12768 (*call_value_reg_thumb1_v5): Ditto.
12769 (*call_value_reg_thumb1): Ditto.
12770 (*call_insn): Ditto.
12771 (*call_value_insn): Ditto.
12772 (thumb1_casesi_internal_pic): Ditto.
12773 (thumb1_casesi_dispatch): Ditto.
12774 (*thumb1_indirect_jump): Ditto.
12775 (prologue_thumb1_interwork): Ditto.
12776 (*epilogue_insns): Ditto.
12777 (consttable_1): Ditto.
12778 (consttable_2): Ditto.
12779 (tablejump): Ditto.
12780 (*thumb1_tablejump): Ditto.
12781 (thumb_eh_return): Ditto.
12782 (define_peephole2): Two of them are thumb1 only and got moved into
12783 new file thumb1.md.
12784 (define_split): Six of them are thumb1 only and got moved into new
12785 file thumb1.md.
12786 * config/arm/thumb1.md: New file comprised of above thumb1 only
12787 patterns.
12788
12789 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12790
12791 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12792 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12793 dependencies.
12794 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12795 (aarch64_crc_builtin_datum): New struct.
12796 (aarch64_crc_builtin_data): New.
12797 (aarch64_init_crc32_builtins): New function.
12798 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12799 (aarch64_crc32_expand_builtin): New.
12800 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12801 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12802 __ARM_FEATURE_CRC32 when appropriate.
12803 (TARGET_CRC32): Define.
12804 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12805 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12806 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12807 (aarch64_<crc_variant>): New pattern.
12808 * config/aarch64/arm_acle.h: New file.
12809 * config/aarch64/iterators.md (CRC): New int iterator.
12810 (crc_variant, crc_mode): New int attributes.
12811 * doc/aarch64-acle-intrinsics.texi: New file.
12812 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12813 Include aarch64-acle-intrinsics.texi.
12814
12815 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12816
12817 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12818 check for stores group of length 3.
12819 (vect_permute_store_chain): New permutations for stores group of
12820 length 3.
12821 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12822 of vec_perm_shuffle for the new permutations.
12823
12824 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12825
12826 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12827 table rewriting temporarily on targets not supporting ONE_ONLY.
12828
12829 2014-06-11 Richard Biener <rguenther@suse.de>
12830
12831 PR middle-end/61437
12832 Revert
12833 2014-06-04 Richard Biener <rguenther@suse.de>
12834
12835 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12836 TREE_PUBLIC and DECL_EXTERNAL decls.
12837
12838 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12839
12840 * varasm.c (set_implicit_section): New function.
12841 (resolve_unique_section): Use it to set implicit section
12842 for aliases, too.
12843 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12844 (default_function_section): Likewise.
12845 (decl_binds_to_current_def_p): Constify argument.
12846 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12847 * asan.c (asan_protect_global): Use
12848 symtab_get_node (decl)->implicit_section.
12849 * symtab.c (dump_symtab_base): Dump implicit sections.
12850 (verify_symtab_base): Verify sanity of sectoins and comdats.
12851 (symtab_resolve_alias): Alias share the section of its target.
12852 (set_section_1): New function.
12853 (symtab_node::set_section): Move here, recurse to aliases.
12854 (verify_symtab): Check for duplicated symtab lists.
12855 * tree-core.h (implicit_section_name_p): Remove.
12856 * tree-vect-data-refs.c: Include varasm.h.
12857 (vect_can_force_dr_alignment_p): Fix conditional on when
12858 decl bints to current definition; use
12859 symtab_get_node (decl)->implicit_section.
12860 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12861 * cgraph.h (struct symtab_node): Add implicit_section.
12862 (set_section): Rename to ...
12863 (set_section_for_node): ... this one.
12864 (set_section): Declare.
12865 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12866 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12867 input_overwrite_node, input_varpool_node): Stream implicit_section.
12868 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12869 removal; it will fail in LTO.
12870
12871 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12872
12873 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12874 Change second alternative type to f_mcr.
12875 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12876 and 12th alternatives' types to f_mcr and f_mrc.
12877 (*movdi_aarch64): Same for 12th and 13th alternatives.
12878 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12879 (aarch64_movtilow_tilow): Change type to fmov.
12880
12881 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12882
12883 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12884 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12885
12886 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12887
12888 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12889 New expander.
12890 (aarch64_sqrdmulh_lane<mode>): Likewise.
12891 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12892 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12893 (aarch64_sqdmulh_laneq<mode>): New expander.
12894 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12895 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12896 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12897 (aarch64_sqdmulh_lane<mode>): New expander.
12898 (aarch64_sqrdmulh_lane<mode>): Likewise.
12899 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12900 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12901 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12902 (aarch64_sqdmlal_laneq<mode>): Likewise.
12903 (aarch64_sqdmlsl_lane<mode>): Likewise.
12904 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12905 (aarch64_sqdmlal2_lane<mode>): Likewise.
12906 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12907 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12908 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12909 (aarch64_sqdmull_lane<mode>): Likewise.
12910 (aarch64_sqdmull_laneq<mode>): Likewise.
12911 (aarch64_sqdmull2_lane<mode>): Likewise.
12912 (aarch64_sqdmull2_laneq<mode>): Likewise.
12913
12914 2014-06-10 Richard Biener <rguenther@suse.de>
12915
12916 PR tree-optimization/61438
12917 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12918 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12919 insertion of IVs if running PRE.
12920 (eliminate): Adjust.
12921 (pass_pre::execute): Likewise.
12922 (pass_fre::execute): Likewise.
12923
12924 2014-06-10 Richard Biener <rguenther@suse.de>
12925
12926 PR middle-end/61456
12927 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12928 Do not use the main variant for the type comparison.
12929 (ncr_compar): Likewise.
12930 (nonoverlapping_component_refs_p): Likewise.
12931
12932 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12933
12934 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12935 REG_CFA_RESTORE mode.
12936
12937 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12938
12939 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12940 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12941 expand_vec_perm_pblendv.
12942
12943 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12944
12945 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12946 available.
12947 Simplify description of __crc32d and __crc32cd intrinsics.
12948 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12949 availability.
12950
12951 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12952
12953 PR lto/61334
12954 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12955 * config.in: Regenerate.
12956 * configure: Likewise.
12957
12958 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12959
12960 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12961 and public vars.
12962 (intersect_static_var_sets): Remove.
12963 (propagate): Do not prune local statics.
12964
12965 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12966
12967 PR fortran/60928
12968 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12969 Set lastprivate_firstprivate even if omp_private_outer_ref
12970 langhook returns true.
12971 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12972 langhook, call unshare_expr on new_var and call
12973 build_outer_var_ref to get the last argument.
12974
12975 2014-06-10 Marek Polacek <polacek@redhat.com>
12976
12977 PR c/60988
12978 * doc/extend.texi: Add cindex for transparent_union.
12979
12980 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12981
12982 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12983 init_symbolic_number ().
12984
12985 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12986
12987 PR middle-end/61141
12988 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12989 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12990 (verify_rtl_sharing): Likewise.
12991
12992 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12993
12994 PR c++/54442
12995 * tree.c (build_qualified_type): Use a canonical type for
12996 TYPE_CANONICAL.
12997
12998 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12999
13000 * config/arm/arm-modes.def: Remove XFmode.
13001
13002 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
13003
13004 PR target/61062
13005 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
13006 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
13007 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
13008 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
13009 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
13010 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
13011 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
13012 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
13013 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
13014
13015 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
13016
13017 * tree-core.h (tree_decl_with_vis): Remove section_name.
13018
13019 2014-06-09 Kito Cheng <kito@0xlab.org>
13020
13021 * ira.c (ira): Don't call init_caller_save if LRA enabled
13022 since LRA use its own infrastructure to handle that.
13023
13024 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13025
13026 * symtab.c (dump_symtab_base): Update dumping.
13027 (symtab_make_decl_local): Clear only DECL_COMDAT.
13028 * tree-vect-data-refs.c (Check that variable is static before
13029 tampering with sections.
13030 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
13031 (cgraph_create_virtual_clone): Likewise.
13032 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
13033 (decl_section_name, set_decl_section_name): New accessors.
13034 (find_decls_types_r): Do not walk section name
13035 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
13036 (decl_comdat_group, decl_comdat_group_id): Constify.
13037 (decl_section_name, set_decl_section_name): Update.
13038 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
13039 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
13040 (cgraph_make_node_local_1): Clear section and comdat group.
13041 * cgraph.h (set_comdat_group): Sanity check.
13042 (get_section, set_section): New.
13043 * ipa-comdats.c (ipa_comdats): Use get_section.
13044 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
13045 * lto-streamer-out.c: Do not follow section names.
13046 * c-family/c-common.c (handle_section_attribute): Update.
13047 * lto-cgraph.c (lto_output_node): Output section.
13048 (lto_output_varpool_node): Likewise.
13049 (read_comdat_group): Rename to ...
13050 (read_identifier): ... this one.
13051 (read_string_cst): New function.
13052 (input_node, input_varpool_node): Input section names.
13053 * tree-emutls.c (get_emutls_init_templ_addr): Update.
13054 (new_emutls_decl): Update.
13055 (secname_for_decl): Check section names only of static vars.
13056 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
13057 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
13058 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
13059 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
13060 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
13061 * config/mcore/mcore.c (mcore_unique_section): Likewise.
13062 * config/mips/mips.c (mips16_build_function_stub): Likewise.
13063 * config/v850/v850.c (v850_insert_attributes): Likewise.
13064 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
13065 Likewise.
13066 (h8300_handle_tiny_data_attribute): Likewise.
13067 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
13068 (bfin_handle_l2_attribute): Likewise.
13069
13070 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13071
13072 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
13073 remove static initializer.
13074
13075 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13076
13077 * varasm.c (use_blocks_for_decl_p): Check symbol table
13078 instead of alias attribute.
13079 (place_block_symbol): Recurse on aliases.
13080
13081 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13082
13083 * ipa-visibility.c: Include varasm.h
13084 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
13085
13086 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13087
13088 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
13089 outputting aliases.
13090
13091 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13092
13093 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13094 from test_insn into GGC space escape via SET_SRC.
13095
13096 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13097
13098 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13099 call statement, if any.
13100 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13101 statements, if any. Tidy up.
13102
13103 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13104
13105 PR target/61431
13106 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13107 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13108 handles swapping the two 64-bit double words on little endian
13109 systems. Include V1TImode and optionally TImode in VSX_LE so that
13110 these types are properly swapped. Change all of the insns and
13111 splits that do the 64-bit swaps to use VSX_LE.
13112 (vsx_le_perm_load_<mode>): Likewise.
13113 (vsx_le_perm_store_<mode>): Likewise.
13114 (splitters for little endian memory operations): Likewise.
13115 (vsx_xxpermdi2_le_<mode>): Likewise.
13116 (vsx_lxvd2x2_le_<mode>): Likewise.
13117 (vsx_stxvd2x2_le_<mode>): Likewise.
13118
13119 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13120
13121 PR target/61423
13122 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13123 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13124 and corresponding splitters. Zero extend general register
13125 or memory input operand to XMM temporary. Enable for
13126 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13127 (floatunssi<mode>2): Update expander predicate.
13128
13129 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13130
13131 PR rtl-optimization/61325
13132 * lra-constraints.c (process_address_1): Check scale equal to one
13133 to prevent transformation: base + scale * index => base + new_reg.
13134
13135 2014-06-06 Richard Biener <rguenther@suse.de>
13136
13137 PR tree-optimization/59299
13138 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13139 a def operand.
13140 (nearest_common_dominator_of_uses): Likewise.
13141 (statement_sink_location): Adjust. Support sinking loads.
13142
13143 2014-06-06 Martin Jambor <mjambor@suse.cz>
13144
13145 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13146 (build_agg_jump_func_from_list): Likewise.
13147 (determine_known_aggregate_parts): Renamed to
13148 determine_locally_known_aggregate_parts. Moved some functionality
13149 to the two functions above, removed bound checks.
13150
13151 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13152
13153 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13154 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13155 (aarch64_progress_pointer): Likewise.
13156 (aarch64_copy_one_part_and_move_pointers): Likewise.
13157 (aarch64_expand_movmen): Likewise.
13158 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13159 * config/aarch64/aarch64.md (movmem<mode>): New.
13160
13161 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13162
13163 * targhooks.c (default_add_stmt_cost): Call target specific
13164 hook instead of default one.
13165
13166 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13167
13168 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13169 endianness instead of host endianness.
13170 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13171 comments.
13172
13173 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13174
13175 PR debug/53927
13176 * function.c (instantiate_decls): Process the saved static chain.
13177 (expand_function_start): If not optimizing, save the static chain
13178 onto the stack.
13179 * tree-nested.c (convert_all_function_calls): Always create the static
13180 chain for nested functions if not optimizing.
13181
13182 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13183
13184 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13185
13186 2014-06-06 Richard Biener <rguenther@suse.de>
13187
13188 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13189 (construct_init_block): Likewise.
13190 (construct_exit_block): Likewise.
13191 (pass_expand::execute): Likewise.
13192 * graphite.c (graphite_transforms): Replace check for current_loops
13193 with a check for > 1 loops.
13194 (pass_graphite_transforms::execute): Adjust.
13195 * ipa-split.c (split_function): Remove check for current_loops.
13196 * omp-low.c (expand_parallel_call): Likewise.
13197 (expand_omp_for_init_counts): Likewise.
13198 (extract_omp_for_update_vars): Likewise.
13199 (expand_omp_for_generic): Likewise.
13200 (expand_omp_sections): Likewise.
13201 (expand_omp_target): Likewise.
13202 * tracer.c (tail_duplicate): Likewise.
13203 (pass_tracer::execute): Likewise.
13204 * trans-mem.c (expand_transaction): Likewise.
13205 * tree-complex.c (expand_complex_div_wide): Likewise.
13206 * tree-eh.c (lower_resx): Likewise.
13207 (cleanup_empty_eh_merge_phis): Likewise.
13208 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13209 current_loops with a check for > 1 loops.
13210 (pass_predcom::execute): Adjust.
13211 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13212 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13213 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13214 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13215 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13216 * tree-switch-conversion.c (process_switch): Likewise.
13217 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13218 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13219 (execute_vrp): Likewise.
13220 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13221
13222 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13223
13224 * rtl.h (insn_location): Declare.
13225 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13226 with UNKNOWN_LOCATION.
13227 * emit-rtl.c (insn_location): New function.
13228 * final.c (notice_source_line): Check that the instruction has a
13229 location before retrieving it and use insn_location.
13230 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13231 * print-rtl.c (print_rtx): Likewise.
13232
13233 2014-06-06 Richard Biener <rguenther@suse.de>
13234
13235 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13236
13237 2014-06-06 Christian Bruel <christian.bruel@st.com>
13238
13239 PR tree-optimization/43934
13240 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13241 cost.
13242
13243 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13244
13245 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13246 return NO_REGS for extra address and memory constraints. Handle
13247 operands that match (or are equivalent to something that matches)
13248 extra constant constraints. Ignore other non-register operands.
13249
13250 2014-06-06 Alan Modra <amodra@gmail.com>
13251
13252 PR target/61300
13253 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13254 * doc/tm.texi: Regenerate.
13255 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13256 Use throughout in place of REG_PARM_STACK_SPACE.
13257 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13258 "incoming" param. Pass to rs6000_function_parms_need_stack.
13259 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13260 prototype_p when incoming. Use function decl when incoming
13261 to handle K&R style functions.
13262 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13263 (INCOMING_REG_PARM_STACK_SPACE): Define.
13264
13265 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13266
13267 PR target/52472
13268 * cfgexpand.c (expand_debug_expr): Use address space of nested
13269 TREE_TYPE for ADDR_EXPR and MEM_REF.
13270
13271 2014-06-05 Jeff Law <law@redhat.com>
13272
13273 PR tree-optimization/61289
13274 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13275 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13276 looking for those which match LHS. All callers changed.
13277 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13278 parameters and code which manipulated them. All callers changed.
13279 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13280 and DST_MAP parameters. Simplify invalidation code by just calling
13281 invalidate_equivalences. All callers changed.
13282 (thread_across_edge): Simplify now that we don't need to maintain
13283 the map of equivalences to invalidate.
13284
13285 2014-06-05 Kai Tietz <ktietz@redhat.com>
13286 Richard Henderson <rth@redhat.com>
13287
13288 PR target/46219
13289 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13290 checking for !TARGET_X32.
13291 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13292 (sibcall_intern): New define_insn, plus required peepholes.
13293 (sibcall_pop_intern): Likewise.
13294 (sibcall_value_intern): Likewise.
13295 (sibcall_value_pop_intern): Likewise.
13296
13297 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13298
13299 * tree-inline.c (tree_function_versioning): Check DF info existence
13300 before accessing it.
13301
13302 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13303
13304 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13305 frame_size.
13306 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13307 aarch64_frame hard_fp_offset and frame_size.
13308 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13309 frame_size; remove original_frame_size.
13310 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13311 (aarch64_initial_elimination_offset): Remove frame_size and
13312 offset. Use aarch64_frame frame_size.
13313
13314 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13315 Jiong Wang <jiong.wang@arm.com>
13316 Renlin <renlin.li@arm.com>
13317
13318 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13319 initialization of R30 offset. Update offset. Iterate core
13320 regisers upto X30. Remove X29, X30 specific code.
13321
13322 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13323 Jiong Wang <jiong.wang@arm.com>
13324
13325 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13326 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13327 (aarch64_register_saved_on_entry): Adjust test.
13328
13329 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13330
13331 * config/aarch64/aarch64.h (machine_function): Move
13332 saved_varargs_size from here...
13333 (aarch64_frame): ... to here.
13334
13335 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13336 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13337 (aarch64_initial_elimination_offset)
13338 (aarch64_setup_incoming_varargs): Adjust location of
13339 saved_varargs_size.
13340
13341 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13342
13343 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13344 layout comment.
13345
13346 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13347 Prachi Godbole <Prachi.Godbole@imgtec.com>
13348
13349 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13350 mips32r5 entry to use PROCESSOR_P5600.
13351 * config/mips/mips-tables.opt: Regenerate.
13352 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13353 * config/mips/mips.c (mips_fmadd_bypass): New function.
13354 (mips_rtx_cost_data): Add costs for p5600.
13355 (mips_issue_rate): Add support for p5600.
13356 (mips_multipass_dfa_lookahead): Likewise.
13357 * config/mips/mips.h (TUNE_P5600): New define.
13358 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13359 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13360 * config/mips/mips.md: Include p5600.md.
13361 (processor): Add p5600.
13362 * config/mips/p5600.md: New file.
13363
13364 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13365
13366 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13367 * config/i386/predicates.md (palignr_operand): New.
13368 Indicates if permutation is suitable for palignr instruction.
13369
13370 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13371
13372 PR tree-optimization/61319
13373 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13374 stmt belongs to loop.
13375
13376 2014-06-05 Richard Biener <rguenther@suse.de>
13377
13378 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13379 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13380 (lookup_tmp_var): Adjust.
13381 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13382
13383 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13384
13385 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13386
13387 2014-06-05 Marek Polacek <polacek@redhat.com>
13388
13389 PR c/49706
13390 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13391
13392 2014-06-04 Tom de Vries <tom@codesourcery.com>
13393
13394 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13395 CONST_INT.
13396
13397 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13398
13399 PR tree-optimization/61385
13400 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13401
13402 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13403
13404 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13405 changed to use fatal_error.
13406 (main): Ensure lto_wrapper_cleanup is run atexit.
13407
13408 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13409
13410 * lra-constraints.c (valid_address_p): Move earlier in file.
13411 (address_eliminator): New structure.
13412 (satisfies_memory_constraint_p): New function.
13413 (satisfies_address_constraint_p): Likewise.
13414 (process_alt_operands, process_address, curr_insn_transform): Use them.
13415
13416 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13417
13418 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13419 const pointer.
13420 (target_lra_int, default_target_lra_int, this_target_lra_int)
13421 (op_alt_data): Delete.
13422 * lra.h (lra_init): Delete.
13423 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13424 (init_insn_code_data_once): Remove op_alt_data handling.
13425 (finish_insn_code_data_once): Likewise.
13426 (init_op_alt_data): Delete.
13427 (get_static_insn_data): Initialize operand_alternative to null.
13428 (free_insn_recog_data): Cast operand_alternative before freeing it.
13429 (setup_operand_alternative): Take the operand_alternative as
13430 parameter and assume it isn't already cached in the static
13431 insn data.
13432 (lra_set_insn_recog_data): Update accordingly.
13433 (lra_init): Delete.
13434 * ira.c (ira_init): Don't call lra_init.
13435 * target-globals.h (this_target_lra_int): Declare.
13436 (target_globals): Remove lra_int.
13437 (restore_target_globals): Update accordingly.
13438 * target-globals.c: Don't include lra-int.h.
13439 (default_target_globals, save_target_globals): Remove lra_int.
13440
13441 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13442
13443 * recog.h (operand_alternative): Convert reg_class, reject,
13444 matched and matches into bitfields.
13445 (preprocess_constraints): New overload.
13446 (preprocess_insn_constraints): New function.
13447 (preprocess_constraints): Take the insn as parameter.
13448 (recog_op_alt): Change into a pointer.
13449 (target_recog): Add x_op_alt.
13450 * recog.c (asm_op_alt): New variable.
13451 (recog_op_alt): Change into a pointer.
13452 (preprocess_constraints): New overload, replacing the old function
13453 definition with one that doesn't use global state.
13454 (preprocess_insn_constraints): New function.
13455 (preprocess_constraints): Use them. Take the insn as parameter.
13456 Use asm_op_alt for asms.
13457 (recog_init): Free existing x_op_alt entries.
13458 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13459 pointer const.
13460 (make_early_clobber_and_input_conflicts): Likewise.
13461 (process_bb_node_lives): Pass the insn to process_constraints.
13462 * reg-stack.c (check_asm_stack_operands): Likewise.
13463 (subst_asm_stack_regs): Likewise.
13464 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13465 * regrename.c (build_def_use): Likewise.
13466 * sched-deps.c (sched_analyze_insn): Likewise.
13467 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13468 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13469 (note_invalid_constants): Likewise.
13470 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13471 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13472 const.
13473
13474 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13475
13476 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13477 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13478 alternatives.
13479 (make_early_clobber_and_input_conflicts): Likewise.
13480 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13481
13482 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13483
13484 * recog.h (alternative_class): New function.
13485 (which_op_alt): Return a const recog_op_alt.
13486 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13487 (subst_asm_stack_regs): Likewise.
13488 * config/arm/arm.c (note_invalid_constants): Likewise.
13489 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13490 the operand_alternative; use alternative class instead.
13491 * sel-sched.c (get_reg_class): Likewise.
13492 * regrename.c (build_def_use): Likewise.
13493 (hide_operands, restore_operands, record_out_operands): Update type
13494 accordingly.
13495
13496 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13497
13498 * recog.h (recog_op_alt): Convert to a flat array.
13499 (which_op_alt): New function.
13500 * recog.c (recog_op_alt): Convert to a flat array.
13501 (preprocess_constraints): Update accordingly, grouping all
13502 operands of the same alternative together, rather than the
13503 other way around.
13504 * ira-lives.c (check_and_make_def_conflict): Likewise.
13505 (make_early_clobber_and_input_conflicts): Likewise.
13506 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13507 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13508 (subst_asm_stack_regs): Likewise.
13509 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13510 * regrename.c (hide_operands, record_out_operands): Likewise.
13511 (build_def_use): Likewise.
13512 * sel-sched.c (get_reg_class): Likewise.
13513 * config/arm/arm.c (note_invalid_constants): Likewise.
13514
13515 2014-06-04 Jason Merrill <jason@redhat.com>
13516
13517 PR c++/51253
13518 PR c++/61382
13519 * gimplify.c (gimplify_arg): Non-static.
13520 * gimplify.h: Declare it.
13521
13522 2014-06-04 Richard Biener <rguenther@suse.de>
13523
13524 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13525 TREE_PUBLIC and DECL_EXTERNAL decls.
13526
13527 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13528
13529 * regcprop.c (copyprop_hardreg_forward_1): Account for
13530 HARD_REGNO_CALL_PART_CLOBBERED.
13531
13532 2014-06-04 Richard Biener <rguenther@suse.de>
13533
13534 * configure.ac: Check whether the underlying type of int64_t
13535 is long or long long.
13536 * configure: Regenerate.
13537 * config.in: Likewise.
13538 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13539 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13540
13541 2014-06-04 Richard Biener <rguenther@suse.de>
13542
13543 PR tree-optimization/60098
13544 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13545 we hit a kill.
13546 (dse_optimize_stmt): Simplify, now that we found a kill
13547 earlier.
13548
13549 2014-06-04 Richard Biener <rguenther@suse.de>
13550
13551 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13552 of accesses with non-invariant address.
13553
13554 2014-06-04 Martin Liska <mliska@suse.cz>
13555
13556 * cgraph.h (cgraph_make_wrapper): New function introduced.
13557 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13558 * ipa-inline.h (inline_analyze_function): The function is global.
13559 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13560
13561 2014-06-04 Martin Liska <mliska@suse.cz>
13562
13563 * tree.h (private_lookup_attribute_starting): New function.
13564 (lookup_attribute_starting): Likewise.
13565 * tree.c (private_lookup_attribute_starting): Likewise.
13566
13567 2014-06-04 Martin Liska <mliska@suse.cz>
13568
13569 * cgraph.h (expand_thunk): New argument added.
13570 (address_taken_from_non_vtable_p): New global function.
13571 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13572 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13573 * cgraphunit.c (analyze_function): Likewise.
13574 (assemble_thunks_and_aliases): Argument added to call.
13575 (expand_thunk): New argument forces to produce GIMPLE thunk.
13576
13577 2014-06-04 Martin Liska <mliska@suse.cz>
13578
13579 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13580 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13581 * profile.c (branch_prob): Likewise.
13582
13583 2014-06-04 Martin Jambor <mjambor@suse.cz>
13584
13585 PR ipa/61340
13586 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13587 handler for switch on an ipa_ref_use enum.
13588 * ipa-reference.c (analyze_function): Likewise.
13589
13590 2014-06-04 Kai Tietz <ktietz@redhat.com>
13591
13592 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13593 from old call-instruction.
13594
13595 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13596
13597 * config/aarch64/aarch64.c (aarch64_classify_address)
13598 (aarch64_legitimize_reload_address): Support full addressing modes
13599 for vector modes.
13600 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13601 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13602
13603 2014-06-03 Andrew Pinski <apinski@cavium.com>
13604
13605 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13606 for OP0.
13607
13608 2014-06-03 Andrew Pinski <apinski@cavium.com>
13609
13610 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13611 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13612
13613 2014-06-03 Kai Tietz <ktietz@redhat.com>
13614
13615 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13616 for 64-bit ms-abi.
13617
13618 2014-06-03 Dehao Chen <dehao@google.com>
13619
13620 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13621 the same loop.
13622
13623 2014-06-03 Marek Polacek <polacek@redhat.com>
13624
13625 PR c/60439
13626 * doc/invoke.texi: Document -Wswitch-bool.
13627 * function.c (stack_protect_epilogue): Cast controlling expression of
13628 the switch to int.
13629 * gengtype.c (walk_type): Generate switch expression with its
13630 controlling expression cast to int.
13631
13632 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13633
13634 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13635 and attiny841.
13636 * config/avr/avr-tables.opt: Regenerate.
13637 * config/avr/t-multilib: Regenerate.
13638 * doc/avr-mmcu.texi: Regenerate.
13639
13640 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13641 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13642
13643 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13644 (ata6617c, ata664251): Add new avr35 devices.
13645 (ata6612c): Add new avr4 device.
13646 (ata6613c, ata6614q): Add new avr5 devices.
13647 * config/avr/avr-tables.opt: Regenerate.
13648 * config/avr/t-multilib: Regenerate.
13649 * doc/avr-mmcu.texi: Regenerate.
13650
13651 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13652
13653 * gcc/config/aarch64/aarch64-builtins.c
13654 (aarch64_types_binop_ssu_qualifiers): New static data.
13655 (TYPES_BINOP_SSU): Define.
13656 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13657 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13658 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13659 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13660 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13661 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13662 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13663 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13664 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13665 suffix to builtin function name, remove cast.
13666 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13667 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13668 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13669
13670 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13671
13672 * gcc/config/aarch64/aarch64-builtins.c
13673 (aarch64_types_binop_uus_qualifiers,
13674 aarch64_types_shift_to_unsigned_qualifiers,
13675 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13676 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13677 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13678 sqshlu_n, uqshl_n): Update qualifiers.
13679 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13680 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13681 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13682 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13683 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13684 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13685 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13686 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13687 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13688 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13689 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13690 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13691 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13692 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13693 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13694 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13695 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13696 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13697 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13698 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13699 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13700 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13701 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13702 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13703 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13704 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13705 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13706
13707 2014-06-03 Teresa Johnson <tejohnson@google.com>
13708
13709 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13710
13711 2014-06-02 Jason Merrill <jason@redhat.com>
13712
13713 PR c++/61020
13714 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13715
13716 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13717
13718 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13719 location == 0.
13720
13721 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13722
13723 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13724 New pattern.
13725 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13726 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13727 * config/aarch64/iterators.md (REVERSE): New iterator.
13728 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13729 (rev_op): New int_attribute.
13730 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13731 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13732 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13733 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13734 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13735 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13736 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13737 Replace temporary __asm__ with __builtin_shuffle.
13738
13739 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13740
13741 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13742 mips64r5.
13743 * config/mips/mips-tables.opt: Regenerate.
13744 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13745 to use mips_isa_rev rather than ISA_MIPS32R2.
13746 * config/mips/mips.h (ISA_MIPS32R3): New define.
13747 (ISA_MIPS32R5): New define.
13748 (ISA_MIPS64R3): New define.
13749 (ISA_MIPS64R5): New define.
13750 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13751 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13752 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13753 and mips64r5.
13754 (MIPS_ISA_SYNCI_SPEC): Likewise.
13755 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13756 (LINK_SPEC): Added mips32r3 and mips32r5.
13757 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13758 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13759 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13760 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13761 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13762 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13763 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13764
13765 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13766
13767 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13768 options.
13769 * config/mips/mips.opt (mxpa): New option.
13770 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13771 assembler.
13772
13773 2014-06-03 Martin Jambor <mjambor@suse.cz>
13774
13775 PR ipa/61160
13776 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13777 thunks.
13778
13779 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13780
13781 PR tree-optimization/61328
13782 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13783 initialization from find_bswap_or_nop_1.
13784 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13785 in source_expr2 before using the size value the function sets. Also
13786 make use of init_symbolic_number () in both the old place and
13787 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13788 doing recursion in the GIMPLE_BINARY_RHS case.
13789
13790 2014-06-03 Richard Biener <rguenther@suse.de>
13791
13792 PR tree-optimization/61383
13793 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13794 stmts can't trap.
13795
13796 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13797
13798 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13799 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13800 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13801 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13802 in this file.
13803 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13804 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13805 * system.h: ...here and make it unconditional.
13806 * target.def (conditional_register_usage): Mention
13807 define_register_constraint instead of old-style constraint macros.
13808 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13809 * doc/tm.texi: Regenerate.
13810 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13811 protected by !USE_MD_CONSTRAINTS.
13812 * config/frv/frv.md: Remove quote from old version of documentation.
13813 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13814 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13815 CONST_DOUBLE_OK_FOR_LETTER.
13816 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13817
13818 2014-06-02 Andrew Pinski <apinski@cavium.com>
13819
13820 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13821 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13822 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13823 file whose name depends on -mabi= and -mbig-endian.
13824 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13825 Handle LP64 better and handle ilp32 too.
13826 (MULTILIB_OPTIONS): Delete.
13827 (MULTILIB_DIRNAMES): Delete.
13828
13829 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13830
13831 * expr.h: Remove prototypes of functions defined in builtins.c.
13832 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13833 Remove prototypes of functions defined in builtins.c.
13834 * builtins.h: Update prototype list to include all exported functions.
13835 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13836 no_c99_libc_has_function): Move to targhooks.c
13837 (build_string_literal, build_call_expr_loc_array,
13838 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13839 to tree.c.
13840 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13841 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13842 no_c99_libc_has_function): Relocate from builtins.c.
13843 * tree.c: Include builtins.h.
13844 (build_call_expr_loc_array, build_call_expr_loc_vec,
13845 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13846 from builtins.c.
13847 * fold-const.h (fold_fma): Move prototype to builtins.h.
13848 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13849 * asan.c: Include builtins.h.
13850 * cfgexpand.c: Likewise.
13851 * convert.c: Likewise.
13852 * emit-rtl.c: Likewise.
13853 * except.c: Likewise.
13854 * expr.c: Likewise.
13855 * fold-const.c: Likewise.
13856 * gimple-fold.c: Likewise.
13857 * gimple-ssa-strength-reduction.c: Likewise.
13858 * gimplify.c: Likewise.
13859 * ipa-inline.c: Likewise.
13860 * ipa-prop.c: Likewise.
13861 * lto-streamer-out.c: Likewise.
13862 * stmt.c: Likewise.
13863 * tree-inline.c: Likewise.
13864 * tree-object-size.c: Likewise.
13865 * tree-sra.c: Likewise.
13866 * tree-ssa-ccp.c: Likewise.
13867 * tree-ssa-forwprop.c: Likewise.
13868 * tree-ssa-loop-ivcanon.c: Likewise.
13869 * tree-ssa-loop-ivopts.c: Likewise.
13870 * tree-ssa-math-opts.c: Likewise.
13871 * tree-ssa-reassoc.c: Likewise.
13872 * tree-ssa-threadedge.c: Likewise.
13873 * tree-streamer-in.c: Likewise.
13874 * tree-vect-data-refs.c: Likewise.
13875 * tree-vect-patterns.c: Likewise.
13876 * tree-vect-stmts.c: Likewise.
13877 * config/aarch64/aarch64.c: Likewise.
13878 * config/alpha/alpha.c: Likewise.
13879 * config/arc/arc.c: Likewise.
13880 * config/arm/arm.c: Likewise.
13881 * config/avr/avr.c: Likewise.
13882 * config/bfin/bfin.c: Likewise.
13883 * config/c6x/c6x.c: Likewise.
13884 * config/cr16/cr16.c: Likewise.
13885 * config/cris/cris.c: Likewise.
13886 * config/epiphany/epiphany.c: Likewise.
13887 * config/fr30/fr30.c: Likewise.
13888 * config/frv/frv.c: Likewise.
13889 * config/h8300/h8300.c: Likewise.
13890 * config/i386/i386.c: Likewise.
13891 * config/i386/winnt.c: Likewise.
13892 * config/ia64/ia64.c: Likewise.
13893 * config/iq2000/iq2000.c: Likewise.
13894 * config/lm32/lm32.c: Likewise.
13895 * config/m32c/m32c.c: Likewise.
13896 * config/m32r/m32r.c: Likewise.
13897 * config/m68k/m68k.c: Likewise.
13898 * config/mcore/mcore.c: Likewise.
13899 * config/mep/mep.c: Likewise.
13900 * config/microblaze/microblaze.c: Likewise.
13901 * config/mips/mips.c: Likewise.
13902 * config/mmix/mmix.c: Likewise.
13903 * config/mn10300/mn10300.c: Likewise.
13904 * config/moxie/moxie.c: Likewise.
13905 * config/msp430/msp430.c: Likewise.
13906 * config/nds32/nds32.c: Likewise.
13907 * config/pa/pa.c: Likewise.
13908 * config/pdp11/pdp11.c: Likewise.
13909 * config/picochip/picochip.c: Likewise.
13910 * config/rl78/rl78.c: Likewise.
13911 * config/rs6000/rs6000.c: Likewise.
13912 * config/rx/rx.c: Likewise.
13913 * config/s390/s390.c: Likewise.
13914 * config/score/score.c: Likewise.
13915 * config/sh/sh.c: Likewise.
13916 * config/sparc/sparc.c: Likewise.
13917 * config/spu/spu.c: Likewise.
13918 * config/stormy16/stormy16.c: Likewise.
13919 * config/tilegx/tilegx.c: Likewise.
13920 * config/tilepro/tilepro.c: Likewise.
13921 * config/v850/v850.c: Likewise.
13922 * config/vax/vax.c: Likewise.
13923 * config/xtensa/xtensa.c: Likewise.
13924
13925 2014-06-02 Jeff Law <law@redhat.com>
13926
13927 PR rtl-optimization/61094
13928 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13929 was marked as do_no_reextend. If a copy is needed to eliminate
13930 an extension, then mark it as do_not_reextend.
13931
13932 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13933
13934 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13935
13936 2014-06-02 Richard Henderson <rth@redhat.com>
13937
13938 PR target/61336
13939 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13940 addresses inside asms. Use output_operand_lossage instead of
13941 gcc_unreachable.
13942
13943 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13944
13945 PR target/61239
13946 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13947 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13948
13949 2014-06-02 Tom de Vries <tom@codesourcery.com>
13950
13951 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13952 case that x has VOIDmode.
13953
13954 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13955
13956 * varasm.c (copy_constant): Delete function.
13957 (build_constant_desc): Don't call it.
13958
13959 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13960
13961 PR target/61154
13962 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13963 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13964 with immediate_operand.
13965
13966 2014-06-02 Andreas Schwab <schwab@suse.de>
13967
13968 * config/ia64/ia64.c
13969 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13970 pending_data_specs first.
13971
13972 2014-06-02 Richard Biener <rguenther@suse.de>
13973
13974 PR tree-optimization/61378
13975 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13976 valueized_anything.
13977
13978 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13979
13980 * config/i386/constraints.md (Bw): Rename from 'w'.
13981 (Bz): Rename from 'z'.
13982 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13983
13984 2014-06-01 Kai Tietz <ktietz@redhat.com>
13985
13986 PR target/61377
13987 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13988 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13989 instead of m constraint.
13990
13991 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13992
13993 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13994 a separate alternative where the scratch operand 2 is marked as
13995 early clobber.
13996
13997 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13998
13999 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
14000 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
14001 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
14002 and __builtins_arm_get_fpscr.
14003 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14004 __builtins_arm_get_fpscr.
14005 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
14006 __builtins_arm_ldfpscr.
14007 (arm_atomic_assign_expand_fenv): New function.
14008 * config/arm/vfp.md (set_fpscr): New pattern.
14009 (get_fpscr) : Likewise.
14010 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
14011 VUNSPEC_SET_FPSCR.
14012 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14013 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
14014
14015 2014-05-30 Jakub Jelinek <jakub@redhat.com>
14016
14017 * asan.c (report_error_func): Add SLOW_P argument, use
14018 BUILT_IN_ASAN_*_N if set.
14019 (build_check_stmt): Likewise.
14020 (instrument_derefs): If T has insufficient alignment,
14021 force same handling as for odd sizes.
14022
14023 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
14024 BUILT_IN_ASAN_REPORT_STORE_N): New.
14025 * asan.c (struct asan_mem_ref): Change access_size type to
14026 HOST_WIDE_INT.
14027 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
14028 update_mem_ref_hash_table): Likewise.
14029 (asan_mem_ref_hasher::hash): Hash in a HWI.
14030 (report_error_func): Change size_in_bytes argument to HWI.
14031 Use *_N builtins if size_in_bytes is larger than 16 or not power of
14032 two.
14033 (build_shadow_mem_access): New function.
14034 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
14035 Handle size_in_bytes not power of two or larger than 16.
14036 (instrument_derefs): Don't give up if size_in_bytes is not
14037 power of two or is larger than 16.
14038
14039 2014-05-30 Kai Tietz <ktietz@redhat.com>
14040
14041 PR target/60104
14042 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
14043 for sibling-tail-calls.
14044 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
14045 to its use.
14046 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
14047 (sibcall_insn_operand): Add check for sibcall_memory_operand.
14048
14049 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14050
14051 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
14052 * config/avr/avr-tables.opt: Regenerate.
14053 * config/avr/t-multilib: Regenerate.
14054 * doc/avr-mmcu.texi: Regenerate.
14055
14056 2014-05-30 Ian Lance Taylor <iant@google.com>
14057
14058 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
14059 target("sse").
14060
14061 2014-05-30 Tom de Vries <tom@codesourcery.com>
14062
14063 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14064 Redefine as true.
14065
14066 2014-05-30 Tom de Vries <tom@codesourcery.com>
14067
14068 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14069 * lra.c (initialize_lra_reg_info_element): Add init of
14070 actual_call_used_reg_set field.
14071 (lra): Call lra_create_live_ranges before lra_inheritance for
14072 -fuse-caller-save.
14073 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14074 -fuse-caller-save.
14075 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
14076 instead of call_used_reg_set for -fuse-caller-save.
14077 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14078
14079 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14080
14081 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
14082 to mov_imm.
14083 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
14084
14085 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14086
14087 * ira.c (ira_get_dup_out_num): Check for output operands at
14088 the start of the loop. Handle cases where an included alternative
14089 follows an excluded one.
14090
14091 2014-05-29 Mike Stump <mikestump@comcast.net>
14092
14093 PR debug/61352
14094 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14095 post ld passes when lto is used.
14096
14097 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14098
14099 PR rtl-optimization/61325
14100 * lra-constraints.c (process_address): Rename to process_address_1.
14101 (process_address): New function.
14102
14103 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14104
14105 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14106 TYPES_BINOPV): New static data.
14107 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14108 New builtin.
14109 * config/aarch64/aarch64-simd.md (aarch64_ext,
14110 aarch64_im_lane_boundsi): New patterns.
14111 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14112 patterns for EXT.
14113 (aarch64_evpc_ext): New function.
14114
14115 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14116
14117 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14118 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14119 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14120 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14121 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14122
14123 2014-05-29 Tom de Vries <tom@codesourcery.com>
14124
14125 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14126
14127 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14128 Richard Sandiford <rdsandiford@googlemail.com>
14129
14130 * arm/iterators.md (shiftable_ops): New code iterator.
14131 (t2_binop0, arith_shift_insn): New code attributes.
14132 * arm/predicates.md (shift_nomul_operator): New predicate.
14133 * arm/arm.md (insn_enabled): Delete.
14134 (enabled): Remove insn_enabled test.
14135 (*arith_shiftsi): Delete. Replace with ...
14136 (*<arith_shift_insn>_multsi): ... new pattern.
14137 (*<arith_shift_insn>_shiftsi): ... new pattern.
14138 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14139
14140 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14141 Tom de Vries <tom@codesourcery.com>
14142
14143 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14144 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14145 clobber.
14146 (mips_split_call): Use POST_CALL_TMP_REG.
14147 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14148
14149 2014-05-29 Tom de Vries <tom@codesourcery.com>
14150
14151 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14152 with #ifdef STACK_REGS.
14153
14154 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14155
14156 * varasm.c (get_variable_section): Walk aliases.
14157 (place_block_symbol): Walk aliases.
14158
14159 2014-05-28 Tom de Vries <tom@codesourcery.com>
14160
14161 Revert:
14162 2014-05-28 Tom de Vries <tom@codesourcery.com>
14163
14164 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14165 * lra.c (initialize_lra_reg_info_element): Add init of
14166 actual_call_used_reg_set field.
14167 (lra): Call lra_create_live_ranges before lra_inheritance for
14168 -fuse-caller-save.
14169 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14170 -fuse-caller-save.
14171 * lra-constraints.c (need_for_call_save_p): Use
14172 actual_call_used_reg_set instead of call_used_reg_set for
14173 -fuse-caller-save.
14174 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14175
14176 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14177
14178 * doc/md.texi: Document that the % constraint character must
14179 be at the beginning of the string.
14180 * genoutput.c (validate_insn_alternatives): Check that '=',
14181 '+' and '%' only appear at the beginning of a constraint.
14182 * ira.c (commutative_constraint_p): Delete.
14183 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14184 at the start of the string.
14185 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14186 duplicate '='s.
14187 * config/arm/neon.md (bicdi3_neon): Likewise.
14188 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14189 (slt_si, sltu_si): Likewise.
14190 * config/vax/vax.md (sbcdi3): Likewise.
14191 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14192 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14193 (mul64): Move '%' to beginning of constraint.
14194 * config/arm/arm.md (*xordi3_insn): Likewise.
14195 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14196 (xorsi3): Likewise.
14197
14198 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14199
14200 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14201
14202 2014-05-28 Jason Merrill <jason@redhat.com>
14203
14204 PR c++/47202
14205 * cgraph.h (symtab_node::get_comdat_group_id): New.
14206 * cgraphunit.c (analyze_functions): Call it.
14207 * symtab.c (dump_symtab_node): Likewise.
14208 * tree.c (decl_comdat_group_id): New.
14209 * tree.h: Declare it.
14210 * lto-streamer-out.c (write_symbol): Use it.
14211 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14212
14213 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14214
14215 PR bootstrap/PR61146
14216 * wide-int.cc: Do not include longlong.h when compiling with clang.
14217
14218 2014-05-28 Richard Biener <rguenther@suse.de>
14219
14220 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14221 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14222 (vrp_visit_assignment_or_call): Print less vertical space.
14223 (vrp_visit_stmt): Likewise.
14224 (vrp_visit_phi_node): Likewise. For a PHI argument with
14225 VR_VARYING range consider recording it as copy.
14226
14227 2014-05-28 Richard Biener <rguenther@suse.de>
14228
14229 Revert
14230 2014-05-28 Richard Biener <rguenther@suse.de>
14231
14232 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14233
14234 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14235
14236 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14237 sufficiently aligned and an offset is used at the same time.
14238 (expand_expr_real_1): Likewise.
14239
14240 2014-05-28 Richard Biener <rguenther@suse.de>
14241
14242 PR middle-end/61045
14243 * fold-const.c (fold_comparison): When folding
14244 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14245 the sign of the remaining constant operand stays the same.
14246
14247 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14248
14249 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14250 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14251 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14252 to the assembler.
14253 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14254 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14255 (m32bit-doubles) Likewise.
14256 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14257 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14258 option for RL78.
14259
14260 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14261
14262 * configure.ac ($gcc_cv_ld_clearcap): New test.
14263 * configure: Regenerate.
14264 * config.in: Regenerate.
14265 * config/sol2.opt (mclear-hwcap): New option.
14266 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14267 * config/sol2-clearcap.map: Moved here from
14268 testsuite/gcc.target/i386/clearcap.map.
14269 * config/sol2-clearcapv2.map: Move here from
14270 gcc.target/i386/clearcapv2.map.
14271 * config/t-sol2 (install): Depend on install-clearcap-map.
14272 (install-clearcap-map): New target.
14273 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14274 -mclear-hwcap.
14275
14276 2014-05-28 Richard Biener <rguenther@suse.de>
14277
14278 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14279 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14280 ... here and remove the rest.
14281 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14282
14283 2014-05-28 Richard Biener <rguenther@suse.de>
14284
14285 PR tree-optimization/61335
14286 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14287 new range fails, drop to varying.
14288
14289 2014-05-28 Olivier Hainque <hainque@adacore.com>
14290
14291 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14292 (CPP_SPEC): Add entry for -mcpu=8548.
14293 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14294 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14295
14296 2014-05-28 Tom de Vries <tom@codesourcery.com>
14297
14298 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14299 * lra.c (initialize_lra_reg_info_element): Add init of
14300 actual_call_used_reg_set field.
14301 (lra): Call lra_create_live_ranges before lra_inheritance for
14302 -fuse-caller-save.
14303 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14304 -fuse-caller-save.
14305 * lra-constraints.c (need_for_call_save_p): Use
14306 actual_call_used_reg_set instead of call_used_reg_set for
14307 -fuse-caller-save.
14308 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14309
14310 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14311 Tom de Vries <tom@codesourcery.com>
14312
14313 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14314 to gccoptlist.
14315 (@item -fuse-caller-save): New item.
14316
14317 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14318 Tom de Vries <tom@codesourcery.com>
14319
14320 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14321 OPT_fuse_caller_save.
14322
14323 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14324 Tom de Vries <tom@codesourcery.com>
14325
14326 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14327 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14328 get_call_reg_set_usage.
14329 * resource.c (mark_set_resources, mark_target_live_regs): Use
14330 get_call_reg_set_usage.
14331 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14332 field.
14333 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14334 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14335 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14336 * ira-build.c (ira_create_allocno): Init
14337 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14338 (create_cap_allocno, propagate_allocno_info)
14339 (propagate_some_info_from_allocno)
14340 (copy_info_to_removed_store_destinations): Handle
14341 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14342 * ira-costs.c (ira_tune_allocno_costs): Use
14343 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14344
14345 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14346 Tom de Vries <tom@codesourcery.com>
14347
14348 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14349 and function_used_regs_valid fields.
14350 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14351 find_all_hard_reg_sets.
14352 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14353 (get_call_reg_set_usage): New function.
14354 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14355 * regs.h (get_call_reg_set_usage): Declare.
14356
14357 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14358
14359 PR libgcc/61152
14360 * config/dbx.h (License): Add Runtime Library Exception.
14361 * config/newlib-stdint.h (License): Same.
14362 * config/rtems.h (License): Same
14363 * config/initfini-array.h (License): Same
14364 * config/v850/v850.h (License): Same.
14365 * config/v850/v850-opts.h (License): Same
14366 * config/v850/rtems.h (License): Same.
14367
14368 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14369
14370 PR target/61044
14371 * doc/extend.texi (Local Labels): Note that label differences are
14372 not supported for AVR.
14373
14374 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14375 Olivier Hainque <hainque@adacore.com>
14376
14377 * rtl.h (set_for_reg_notes): Declare.
14378 * emit-rtl.c (set_for_reg_notes): New function.
14379 (set_unique_reg_note): Use it.
14380 * optabs.c (add_equal_note): Likewise
14381
14382 2014-05-27 Andrew Pinski <apinski@cavium.com>
14383
14384 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14385 Use <w> for the register in assembly template.
14386 (stack_protect_test): Use the mode of operands[0] for the result.
14387 (stack_protect_test_<mode>): Use <w> for the register
14388 in assembly template.
14389
14390 2014-05-27 DJ Delorie <dj@redhat.com>
14391
14392 * config/rx/rx.c (add_vector_labels): New.
14393 (rx_output_function_prologue): Call it.
14394 (rx_handle_func_attribute): Don't require empty arguments.
14395 (rx_handle_vector_attribute): New.
14396 (rx_attribute_table): Add "vector" attribute.
14397 * doc/extend.texi (interrupt, vector): Document new/changed
14398 RX-specific attributes.
14399
14400 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14401
14402 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14403
14404 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14405 predicate to detect a negative quotient.
14406
14407 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14408
14409 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14410 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14411 Add X - Y CMP 0 to X CMP Y transformation.
14412 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14413
14414 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14415
14416 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14417 before printing.
14418
14419 2014-05-27 Steve Ellcey <sellcey@mips.com>
14420
14421 * config/mips/mips.c: Add include of cgraph.h.
14422
14423 2014-05-27 Richard Biener <rguenther@suse.de>
14424
14425 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14426
14427 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14428
14429 PR libgcc/61152
14430 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14431 * config/arm/arm-cores.def (License): Same.
14432 * config/arm/arm-opts.h (License): Same.
14433 * config/arm/aout.h (License): Same.
14434 * config/arm/bpabi.h (License): Same.
14435 * config/arm/elf.h (License): Same.
14436 * config/arm/linux-elf.h (License): Same.
14437 * config/arm/linux-gas.h (License): Same.
14438 * config/arm/netbsd-elf.h (License): Same.
14439 * config/arm/uclinux-eabi.h (License): Same.
14440 * config/arm/uclinux-elf.h (License): Same.
14441 * config/arm/vxworks.h (License): Same.
14442
14443 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14444
14445 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14446 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14447 (arm_init_neon_builtins): Handle NEON_BSWAP.
14448 Define required type nodes.
14449 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14450 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14451 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14452 * config/arm/iterators.md (VDQHSD): New mode iterator.
14453
14454 2014-05-27 Richard Biener <rguenther@suse.de>
14455
14456 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14457 Try using literal operands when comparing value-ranges failed.
14458
14459 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14460
14461 * ira.c (commutative_operand): Adjust for change to recog_data.
14462 [Missing from previous commit.]
14463
14464 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14465
14466 * system.h (TEST_BIT): New macro.
14467 * recog.h (alternative_mask): New type.
14468 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14469 (recog_data_d): Replace alternative_enabled_p array with
14470 enabled_alternatives.
14471 (target_recog): New structure.
14472 (default_target_recog, this_target_recog): Declare.
14473 (get_enabled_alternatives, recog_init): Likewise.
14474 * recog.c (default_target_recog, this_target_recog): New variables.
14475 (get_enabled_alternatives): New function.
14476 (extract_insn): Use it.
14477 (recog_init): New function.
14478 (preprocess_constraints, constrain_operands): Adjust for change to
14479 recog_data.
14480 * postreload.c (reload_cse_simplify_operands): Likewise.
14481 * reload.c (find_reloads): Likewise.
14482 * ira-costs.c (record_reg_classes): Likewise.
14483 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14484 all alternatives after a disabled one would be skipped.
14485 (ira_implicitly_set_insn_hard_regs): Likewise.
14486 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14487 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14488 with enabled_alternatives.
14489 * lra.c (free_insn_recog_data): Update accordingly.
14490 (lra_update_insn_recog_data): Likewise.
14491 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14492 * lra-constraints.c (process_alt_operands): Likewise. Handle
14493 only_alternative as part of the enabled mask.
14494 * target-globals.h (this_target_recog): Declare.
14495 (target_globals): Add a recog field.
14496 (restore_target_globals): Restore this_target_recog.
14497 * target-globals.c: Include recog.h.
14498 (default_target_globals): Initialize recog field.
14499 (save_target_globals): Likewise.
14500 * reginfo.c (reinit_regs): Call recog_init.
14501 * toplev.c (backend_init_target): Likewise.
14502
14503 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14504
14505 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14506 rather than any named insn's code.
14507
14508 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14509
14510 PR libgcc/61152
14511 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14512 * config/arm/arm-cores.def (License): Same.
14513
14514 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14515
14516 * tree.h (decl_comdat_group): Declare.
14517 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14518 * tree.c (decl_comdat_group): Here.
14519
14520 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14521
14522 PR rtl-optimization/61222
14523 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14524 the shift, truncate the PLUS operand to the result mode.
14525
14526 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14527
14528 PR target/61271
14529 * config/i386/i386.c (ix86_rtx_costs)
14530 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14531 Fix condition.
14532
14533 2014-05-26 Martin Jambor <mjambor@suse.cz>
14534
14535 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14536 subreg uses.
14537
14538 2014-05-26 Richard Biener <rguenther@suse.de>
14539
14540 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14541 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14542 Provide specializations.
14543 (wi::int_traits <HOST_WIDE_INT>,
14544 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14545
14546 2014-05-26 Alan Modra <amodra@gmail.com>
14547
14548 PR target/61098
14549 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14550 params and return a bool. Remove dead code. Update comment.
14551 Assert we have a const_int source. Remove bogus code from
14552 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14553 handling of constants > 2G and reg_equal note, from..
14554 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14555 return value. Update comment. If we can, use a new pseudo
14556 for intermediate calculations.
14557 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14558 prototype.
14559 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14560 call to rs6000_emit_set_const in splitter.
14561 (movdi_internal64+2, +3): Likewise.
14562
14563 2014-05-26 Richard Biener <rguenther@suse.de>
14564
14565 * system.h: Define __STDC_FORMAT_MACROS before
14566 including inttypes.h.
14567 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14568 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14569 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14570 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14571 HOST_WIDEST_INT_C): Remove.
14572 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14573 if C99 inttypes.h is not available.
14574 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14575 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14576 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14577 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14578 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14579 (struct output_info): Likewise.
14580 (print_statistics): Adjust.
14581 (dump_bitmap_statistics): Likewise.
14582 * bt-load.c (migrate_btr_defs): Print with PRId64.
14583 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14584 (MAX_SAFE_MULTIPLIER): Adjust.
14585 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14586 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14587 dump_cgraph_node): Likewise.
14588 * final.c (dump_basic_block_info): Likewise.
14589 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14590 * gcov.c (format_gcov): Likewise.
14591 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14592 for calculation.
14593 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14594 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14595 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14596 Use PRId64 for dumping.
14597 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14598 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14599 (add_allocno_hard_regs): Adjust.
14600 * loop-doloop.c (doloop_modify): Print using PRId64.
14601 * loop-iv.c (inverse): Compute in uint64_t.
14602 (determine_max_iter, iv_number_of_iterations): Likewise.
14603 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14604 Print using PRId64.
14605 * lto-streamer-out.c (write_symbol): Use uint64_t.
14606 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14607 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14608 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14609 * modulo-sched.c (const_iteration_count): Use int64_t.
14610 (sms_schedule): Dump using PRId64.
14611 * predict.c (dump_prediction): Likewise.
14612 * pretty-print.h (pp_widest_integer): Remove.
14613 * profile.c (get_working_sets, is_edge_inconsistent,
14614 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14615 * tree-pretty-print.c (pp_double_int): Remove case handling
14616 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14617 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14618 and adjust users.
14619 (pass_optimize_bswap::execute): Remove restriction on hosts.
14620 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14621 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14622 * tree.c (widest_int_cst_value): Remove.
14623 * tree.h (widest_int_cst_value): Likewise.
14624 * value-prof.c (dump_histogram_value): Print using PRId64.
14625 * gengtype.c (main): Also inject int64_t.
14626 * ggc-page.c (struct max_alignment): Use int64_t.
14627 * alloc-pool.c (struct allocation_object_def): Likewise.
14628 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14629 for computation.
14630 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14631 * doc/tm.texi: Regenerated.
14632 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14633 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14634 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14635 mmix_output_register_setting): Use [u]int64_t in prototypes.
14636 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14637 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14638 mmix_output_octa, mmix_output_shifted_value): Adjust.
14639 (mmix_intval): Adjust. Remove unreachable case.
14640 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14641
14642 2014-05-26 Richard Biener <rguenther@suse.de>
14643
14644 * configure.ac: Drop __int64 type check. Insist that we
14645 found uint64_t and int64_t.
14646 * hwint.h (HOST_BITS_PER___INT64): Remove.
14647 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14648 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14649 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14650 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14651 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14652 for dst_q_src_df_rms_cdt.
14653 * configure: Regenerate.
14654 * config.in: Likewise.
14655
14656 2014-05-26 Michael Tautschnig <mt@debian.org>
14657
14658 PR target/61249
14659 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14660 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14661
14662 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14663
14664 PR rtl-optimization/61278
14665 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14666
14667 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14668
14669 PR rtl-optimization/61220
14670 Part of PR rtl-optimization/61225
14671 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14672 insn; skip split_edge for a block with only one successor.
14673
14674 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14675
14676 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14677 for variables.
14678
14679 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14680
14681 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14682 (update_vtable_references): New function.
14683 (function_and_variable_visibility): Rewrite also vtable initializers.
14684 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14685
14686 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14687
14688 * ggc.h (ggc_grow): New function.
14689 * ggc-none.c (ggc_grow): New function.
14690 * ggc-page.c (ggc_grow): Likewise.
14691
14692 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14693
14694 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14695 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14696 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14697 varpool_externally_visible_p, can_replace_by_local_alias,
14698 update_visibility_by_resolution_info, function_and_variable_visibility,
14699 pass_data_ipa_function_and_variable_visibility,
14700 make_pass_ipa_function_and_variable_visibility,
14701 whole_program_function_and_variable_visibility,
14702 pass_data_ipa_whole_program_visibility,
14703 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14704 * cgraph.h (cgraph_local_node_p): Declare.
14705 * ipa-visibility.c: New file.
14706 * Makefile.in (OBJS): Add ipa-visiblity.o
14707
14708 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14709
14710 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14711 that var decl is available.
14712
14713 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14714
14715 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14716 symtab_node pointer.
14717 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14718 (find_decls_types_r): Do not walk COMDAT_GROUP.
14719 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14720 * varasm.c (make_decl_one_only): Use set_comdat_group;
14721 create node if needed.
14722 * ipa-inline-transform.c (save_inline_function_body): Update
14723 way we decl->symtab mapping.
14724 * symtab.c (symtab_hash, hash_node, eq_node
14725 symtab_insert_node_to_hashtable): Remove.
14726 (symtab_register_node): Update.
14727 (symtab_unregister_node): Update.
14728 (symtab_get_node): Reimplement as inline function.
14729 (symtab_add_to_same_comdat_group): Update.
14730 (symtab_dissolve_same_comdat_group_list): Update.
14731 (dump_symtab_base): Update.
14732 (verify_symtab_base): Update.
14733 (symtab_make_decl_local): Update.
14734 (fixup_same_cpp_alias_visibility): Update.
14735 (symtab_nonoverwritable_alias): Update.
14736 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14737 * ipa.c (update_visibility_by_resolution_info): UPdate.
14738 * bb-reorder.c: Include cgraph.h
14739 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14740 with comdat groups.
14741 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14742 * cgraph.c (cgraph_get_create_node): Update.
14743 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14744 and comdat_group_.
14745 (symtab_get_node): Make inline.
14746 (symtab_insert_node_to_hashtable): Remove.
14747 (symtab_can_be_discarded): Update.
14748 (decl_comdat_group): New function.
14749 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14750 Update.
14751 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14752 comdat group name.
14753 (read_comdat_group): New function.
14754 (input_node, input_varpool_node): Use it.
14755 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14756 comdat groups.
14757 * mips.c (mips_start_unique_function): Likewise.
14758 (ix86_code_end): Likewise.
14759 (rs6000_code_end): Likweise.
14760 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14761
14762 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14763
14764 * gengtype-state.c (fatal_reading_state): Bring offline.
14765 * optabs.c (widening_optab_handler): Bring offline.
14766 * optabs.h (widening_optab_handler): Likewise.
14767 * final.c (get_attr_length_1): Likewise.
14768
14769 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14770
14771 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14772
14773 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14774
14775 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14776 (ppc440-compare): Include shift with dot.
14777 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14778 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14779 without dot.
14780 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14781 without dot.
14782 (e6500_sfx2): Include it.
14783 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14784 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14785 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14786 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14787 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14788 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14789 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14790 *lshiftrt_internal1le, *lshiftrt_internal1be,
14791 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14792 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14793 *rotldi3_internal10le, *rotldi3_internal10be,
14794 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14795 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14796 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14797 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14798 define_insns): Use type "shift" in the appropriate alternatives.
14799
14800 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14801
14802 * config/rs6000/rs6000.md (type): Add "logical". Delete
14803 "fast_compare".
14804 (dot): Adjust comment.
14805 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14806 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14807 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14808 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14809 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14810 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14811 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14812 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14813
14814 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14815 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14816 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14817 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14818 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14819 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14820 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14821 * config/rs6000/8540.md (ppc8540_su): Adjust.
14822 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14823 cell-cmp-microcoded): Adjust.
14824 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14825 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14826 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14827 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14828 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14829 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14830 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14831 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14832 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14833 Adjust.
14834 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14835 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14836 Adjust. Adjust comment.
14837 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14838 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14839
14840 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14841
14842 * config/rs6000/rs6000.md (type): Add "add".
14843 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14844 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14845 define_insns): Use it.
14846 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14847
14848 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14849 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14850 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14851 * config/rs6000/601.md (ppc601-integer): Adjust.
14852 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14853 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14854 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14855 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14856 * config/rs6000/8540.md (ppc8540_su): Adjust.
14857 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14858 cell-cmp-microcoded): Adjust.
14859 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14860 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14861 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14862 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14863 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14864 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14865 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14866 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14867 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14868 Adjust.
14869 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14870 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14871 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14872 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14873
14874 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14875
14876 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14877 "delayed_compare", "var_delayed_compare".
14878 (var_shift): New attribute.
14879 (cell_micro): Adjust.
14880 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14881 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14882 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14883 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14884 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14885 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14886 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14887 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14888 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14889 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14890 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14891 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14892 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14893 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14894 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14895 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14896 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14897 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14898 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14899 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14900 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14901 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14902 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14903 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14904 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14905
14906 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14907 * config/rs6000/440.md (ppc440-integer): Adjust.
14908 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14909 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14910 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14911 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14912 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14913 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14914 * config/rs6000/8540.md (ppc8540_su): Adjust.
14915 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14916 cell-cmp-microcoded): Adjust.
14917 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14918 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14919 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14920 e500mc64_delayed): Adjust.
14921 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14922 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14923 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14924 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14925 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14926 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14927 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14928 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14929 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14930 Adjust comment.
14931 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14932 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14933
14934 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14935
14936 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14937 (bits): New mode_attr.
14938 (idiv_ldiv): Delete mode_attr.
14939 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14940 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14941 rs6000_adjust_priority, is_nonpipeline_insn,
14942 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14943
14944 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14945 * config/rs6000/440.md (ppc440-idiv): Adjust.
14946 * config/rs6000/476.md (ppc476-idiv): Adjust.
14947 * config/rs6000/601.md (ppc601-idiv): Adjust.
14948 * config/rs6000/603.md (ppc603-idiv): Adjust.
14949 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14950 ppc620-ldiv): Adjust.
14951 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14952 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14953 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14954 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14955 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14956 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14957 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14958 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14959 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14960 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14961 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14962 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14963 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14964 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14965 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14966 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14967 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14968 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14969
14970 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14971
14972 * config/rs6000/rs6000.md (type): Delete "insert_word",
14973 "insert_dword". Add "insert".
14974 (size): Update comment.
14975 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14976 insn_must_be_first_in_group): Adjust.
14977 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14978 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14979 *insvsi_internal6, insvdi_internal): Adjust.
14980
14981 * config/rs6000/40x.md (ppc403-integer): Adjust.
14982 * config/rs6000/440.md (ppc440-integer): Adjust.
14983 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14984 * config/rs6000/601.md (ppc601-integer): Adjust.
14985 * config/rs6000/603.md (ppc603-integer): Adjust.
14986 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14987 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14988 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14989 * config/rs6000/8540.md (ppc8540_su): Adjust.
14990 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14991 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14992 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14993 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14994 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14995 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14996 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14997 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14998 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14999 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
15000 * config/rs6000/power7.md (power7-integer): Adjust.
15001 * config/rs6000/power8.md (power8-1cyc): Adjust.
15002 * config/rs6000/rs64.md (rs64a-integer): Adjust.
15003 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15004
15005 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15006
15007 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
15008 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
15009 (size): New attribute.
15010 (dot): New attribute.
15011 (cell_micro): Adjust.
15012 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
15013 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
15014 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
15015 umuldi3_highpart): Adjust.
15016 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15017 rs6000_adjust_priority, is_nonpipeline_insn,
15018 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15019
15020 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
15021 ppc405-imul3): Adjust.
15022 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
15023 * config/rs6000/476.md (ppc476-imul): Adjust.
15024 * config/rs6000/601.md (ppc601-imul): Adjust.
15025 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
15026 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
15027 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
15028 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
15029 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
15030 Adjust.
15031 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
15032 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
15033 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
15034 cell-imul): Adjust.
15035 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
15036 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
15037 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
15038 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
15039 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
15040 * config/rs6000/mpc.md (mpccore-imul): Adjust.
15041 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
15042 power4-lmul, power4-imul, power4-imul3): Adjust.
15043 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
15044 power5-lmul, power5-imul, power5-imul3): Adjust.
15045 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
15046 power6-lmul, power6-imul, power6-imul3): Adjust.
15047 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
15048 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
15049
15050 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
15051 rs64a-lmul): Adjust.
15052 * config/rs6000/titan.md (titan_imul): Adjust.
15053
15054 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15055
15056 * config/rs6000/rs6000.md (type): Add new value "halfmul".
15057 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
15058 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
15059 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
15060 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
15061 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
15062 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
15063 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
15064 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
15065 * config/rs6000/titan.md: Delete nonsensical comment.
15066 (titan_imul): Add type imul3.
15067 (titan_mulhw): Remove type imul3; add type halfmul.
15068
15069 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15070
15071 * config/rs6000/rs6000.md (type): Reorder, reformat.
15072
15073 2014-05-23 Martin Jambor <mjambor@suse.cz>
15074
15075 PR tree-optimization/53787
15076 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
15077 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
15078 analysis_done, update all uses.
15079 * ipa-prop.c: Include domwalk.h
15080 (param_analysis_info): Removed.
15081 (param_aa_status): New type.
15082 (ipa_bb_info): Likewise.
15083 (func_body_info): Likewise.
15084 (ipa_get_bb_info): New function.
15085 (aa_overwalked): Likewise.
15086 (find_dominating_aa_status): Likewise.
15087 (parm_bb_aa_status_for_bb): Likewise.
15088 (parm_preserved_before_stmt_p): Changed to use new param AA info.
15089 (load_from_unmodified_param): Accept func_body_info as a parameter
15090 instead of parms_ainfo.
15091 (parm_ref_data_preserved_p): Changed to use new param AA info.
15092 (parm_ref_data_pass_through_p): Likewise.
15093 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15094 (compute_complex_assign_jump_func): Changed to use new param AA info.
15095 (compute_complex_ancestor_jump_func): Likewise.
15096 (ipa_compute_jump_functions_for_edge): Likewise.
15097 (ipa_compute_jump_functions): Removed.
15098 (ipa_compute_jump_functions_for_bb): New function.
15099 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15100 declarations down.
15101 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15102 and info, moved variable declarations down.
15103 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15104 node and info.
15105 (ipa_analyze_stmt_uses): Likewise.
15106 (ipa_analyze_params_uses): Removed.
15107 (ipa_analyze_params_uses_in_bb): New function.
15108 (ipa_analyze_controlled_uses): Likewise.
15109 (free_ipa_bb_info): Likewise.
15110 (analysis_dom_walker): New class.
15111 (ipa_analyze_node): Handle node-specific forbidden analysis,
15112 initialize and free func_body_info, use dominator walker.
15113 (ipcp_modif_dom_walker): New class.
15114 (ipcp_transform_function): Create and free func_body_info, use
15115 ipcp_modif_dom_walker, moved a lot of functionality there.
15116
15117 2014-05-23 Marek Polacek <polacek@redhat.com>
15118 Jakub Jelinek <jakub@redhat.com>
15119
15120 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15121 * gcc.c (sanitize_spec_function): Likewise.
15122 * convert.c (convert_to_integer): Include "ubsan.h". Add
15123 floating-point to integer instrumentation.
15124 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15125 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15126 SANITIZE_NONDEFAULT.
15127 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15128 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15129 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15130 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15131 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15132 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15133 float/double/long double.
15134 (ubsan_instrument_float_cast): New function.
15135 * ubsan.h (ubsan_instrument_float_cast): Declare.
15136
15137 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15138
15139 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15140 predicate.
15141 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15142 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15143 Adjust for tailcalling through registers.
15144 * config/aarch64/aarch64.h (enum reg_class): New caller save
15145 register class.
15146 (REG_CLASS_NAMES): Likewise.
15147 (REG_CLASS_CONTENTS): Likewise.
15148 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15149 Allow tailcalling without decls.
15150
15151 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15152
15153 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15154 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15155
15156 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15157 gsi, and variables v_* to v*.
15158
15159 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15160
15161 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15162
15163 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15164
15165 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15166 * omp-low.c: Update accordingly.
15167
15168 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15169 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15170 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15171 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15172 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15173 GF_OMP_TARGET_KIND_UPDATE.
15174
15175 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15176 Explicitly enumerate the expected region types.
15177
15178 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15179
15180 PR other/56955
15181 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15182 documentation; the old documentation didn't clearly state the
15183 constraints on the contents of the pointed-to storage.
15184
15185 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15186
15187 Fix bootstrap error on ia64
15188 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15189 Return default value.
15190
15191 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15192
15193 PR tree-optimization/54733
15194 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15195 (CMPNOP): Define.
15196 (find_bswap_or_nop_load): New.
15197 (find_bswap_1): Renamed to ...
15198 (find_bswap_or_nop_1): This. Also add support for memory source.
15199 (find_bswap): Renamed to ...
15200 (find_bswap_or_nop): This. Also add support for memory source and
15201 detection of bitwise operations equivalent to load in target
15202 endianness.
15203 (execute_optimize_bswap): Likewise. Also move its leading comment back
15204 in place and split statement transformation into ...
15205 (bswap_replace): This.
15206
15207 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15208
15209 PR rtl-optimization/61215
15210 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15211 simplify_gen_subreg until final substitution.
15212
15213 2014-05-23 Alan Modra <amodra@gmail.com>
15214
15215 PR target/61231
15216 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15217 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15218 Use "Y" constraint rather than "m".
15219
15220 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15221
15222 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15223 define.
15224 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15225 New function declaration.
15226 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15227 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15228 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15229 (aarch64_init_builtins) : Initialize builtins
15230 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15231 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15232 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15233 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15234 and __builtins_aarch64_set_fpsr.
15235 (aarch64_atomic_assign_expand_fenv): New function.
15236 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15237 (get_fpcr) : Likewise.
15238 (set_fpsr) : Likewise.
15239 (get_fpsr) : Likewise.
15240 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15241 and UNSPECV_SET_FPSR.
15242 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15243 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15244 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15245
15246 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15247
15248 PR rtl-optimization/60969
15249 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15250 constraints. Set up mem cost for NO_REGS case.
15251
15252 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15253
15254 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15255
15256 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15257
15258 * config/darwin.c: Include "lto-section-names.h".
15259 (LTO_SEGMENT_NAME): Don't define.
15260 * config/i386/winnt.c: Include "lto-section-names.h".
15261 * lto-streamer.c: Include "lto-section-names.h".
15262 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15263 * lto-wrapper.c: Include "lto-section-names.h".
15264 (LTO_SECTION_NAME_PREFIX): Don't define.
15265 * lto-section-names.h: New file.
15266 * cgraphunit.c: Include "lto-section-names.h".
15267
15268 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15269
15270 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15271
15272 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15273
15274 PR target/61208
15275 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15276
15277 2014-05-22 Nick Clifton <nickc@redhat.com>
15278
15279 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15280
15281 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15282
15283 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15284 -> (T)A transformation to integer types.
15285
15286 2014-05-22 Teresa Johnson <tejohnson@google.com>
15287
15288 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15289 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15290 (gcov_rewrite): Use gcov_nonruntime_assert.
15291 (gcov_open): Ditto.
15292 (gcov_write_words): Ditto.
15293 (gcov_write_length): Ditto.
15294 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15295 gcc_assert from IN_LIBGCOV code.
15296 (gcov_read_summary): Use gcov_error to flag profile corruption.
15297 (gcov_sync): Use gcov_nonruntime_assert.
15298 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15299 (gcov_histo_index): Use gcov_nonruntime_assert.
15300 (static void gcov_histogram_merge): Ditto.
15301 (compute_working_sets): Ditto.
15302 * gcov-io.h (gcov_nonruntime_assert): Define.
15303 (gcov_error): Define for !IN_LIBGCOV
15304
15305 2014-05-22 Richard Biener <rguenther@suse.de>
15306
15307 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15308 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15309 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15310 and deallocation site.
15311 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15312 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15313 passing through the incoming points-to set.
15314 (handle_lhs_call): Use flags argument instead of recomputing it.
15315 (find_func_aliases_for_call): Call handle_lhs_call with proper
15316 call return flags.
15317
15318 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15319
15320 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15321 all padding bits in REAL_VALUE_TYPE are cleared.
15322
15323 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15324
15325 Cleanup and improve multipass_dfa_lookahead_guard
15326 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15327 (core2i7_first_cycle_multipass_begin,)
15328 (core2i7_first_cycle_multipass_issue,)
15329 (core2i7_first_cycle_multipass_backtrack): Update signature.
15330 * config/ia64/ia64.c
15331 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15332 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15333 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15334 hook definition.
15335 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15336 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15337 values.
15338 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15339 return values.
15340 * doc/tm.texi: Regenerate.
15341 * doc/tm.texi.in
15342 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15343 * haifa-sched.c (ready_try): Make signed to allow negative values.
15344 (rebug_ready_list_1): Update.
15345 (choose_ready): Simplify.
15346 (sched_extend_ready_list): Update.
15347
15348 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15349
15350 Remove IA64 speculation tweaking flags
15351 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15352 speculation tuning flags.
15353 (msched-prefer-non-data-spec-insns,)
15354 (msched-prefer-non-control-spec-insns): Obsolete options.
15355 * haifa-sched.c (choose_ready): Remove handling of
15356 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15357 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15358 and PREFER_NON_DATA_SPEC.
15359 * sel-sched.c (process_spec_exprs): Remove handling of
15360 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15361
15362 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15363
15364 Improve scheduling debug output
15365 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15366 (advance_one_cycle): Update.
15367 (schedule_insn, queue_to_ready): Add debug printouts.
15368 (debug_ready_list_1): New static function.
15369 (debug_ready_list): Update.
15370 (max_issue): Add debug printouts.
15371 (dump_insn_stream): New static function.
15372 (schedule_block): Use it. Also better indent printouts.
15373
15374 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15375
15376 Fix sched_insn debug counter
15377 * haifa-sched.c (schedule_insn): Update.
15378 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15379 (save_backtrack_point, restore_backtrack_point): Update.
15380 (first_nonscheduled_insn): New static function.
15381 (queue_to_ready, choose_ready): Use it.
15382 (schedule_block): Init nonscheduled_insns_begin.
15383 (sched_emit_insn): Update.
15384
15385
15386 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15387
15388 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15389 to GENERAL_REGS.
15390 (aarch64_secondary_reload) : LikeWise.
15391 (aarch64_class_max_nregs) : Remove CORE_REGS.
15392 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15393 (REG_CLASS_NAMES) : Likewise.
15394 (REG_CLASS_CONTENTS) : LikeWise.
15395 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15396
15397 2014-05-21 Guozhi Wei <carrot@google.com>
15398
15399 PR target/61202
15400 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15401 constraint.
15402 (vqdmulhq_n_s16): Likewise.
15403
15404 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15405
15406 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15407
15408 2014-05-21 Marek Polacek <polacek@redhat.com>
15409
15410 PR sanitizer/61272
15411 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15412
15413 2014-05-21 Martin Jambor <mjambor@suse.cz>
15414
15415 * doc/invoke.texi (Optimize Options): Document parameters
15416 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15417 ipa-cp-array-index-hint-bonus.
15418
15419 2014-05-21 Mark Wielaard <mjw@redhat.com>
15420
15421 PR debug/16063
15422 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15423 version >= 3 or not strict DWARF.
15424 * langhooks.h (struct lang_hooks_for_types): Add
15425 enum_underlying_base_type.
15426 * langhooks.c (lhd_enum_underlying_base_type): New function.
15427 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15428 enum_underlying_base_type.
15429 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15430 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15431 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15432
15433 2014-05-21 Richard Biener <rguenther@suse.de>
15434
15435 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15436
15437 2014-05-21 John Marino <gnugcc@marino.st>
15438
15439 * config.gcc (*-*-dragonfly*): New target.
15440 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15441 * configure: Regenerate.
15442 * config/dragonfly-stdint.h: New.
15443 * config/dragonfly.h: New.
15444 * config/dragonfly.opt: New.
15445 * config/i386/dragonfly.h: New.
15446 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15447
15448 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15449
15450 * tree.def (VOID_CST): New.
15451 * tree-core.h (TI_VOID): New.
15452 * tree.h (void_node): New.
15453 * tree.c (tree_node_structure_for_code, tree_code_size)
15454 (iterative_hash_expr): Handle VOID_CST.
15455 (build_common_tree_nodes): Initialize void_node.
15456
15457 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15458
15459 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15460 functions.
15461 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15462
15463 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15464 more places.
15465
15466 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15467 flag_reorder_blocks_and_partition.
15468 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15469
15470 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15471
15472 PR target/54236
15473 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15474 constraints.
15475 (*addc_r_t): Add new insn_and_split.
15476
15477 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15478
15479 PR middle-end/61252
15480 * omp-low.c (handle_simd_reference): New function.
15481 (lower_rec_input_clauses): Use it. Defer adding reference
15482 initialization even for reduction without placeholder if in simd,
15483 handle it properly later on.
15484
15485 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15486
15487 PR tree-optimization/60899
15488 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15489 assume all static symbols will have definition wile parsing and
15490 check the do have definition later in compilation; check that
15491 variable referring symbol will be output before concluding that
15492 reference is safe; be conservative for referring local statics;
15493 be more precise about when comdat is output in other partition.
15494
15495 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15496
15497 PR bootstrap/60984
15498 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15499 parameter.
15500 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15501 (ipa_inline): Loop inline_to_all_callers until no more aliases
15502 are removed.
15503
15504 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15505
15506 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15507 set writeonly flag only for vars actually written to.
15508
15509 2014-05-20 Dehao Chen <dehao@google.com>
15510
15511 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15512 and callee count to get clone count.
15513 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15514 count in copy_body.
15515
15516 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15517
15518 PR rtl-optimization/61243
15519 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15520
15521 2014-05-20 Xinliang David Li <davidxl@google.com>
15522
15523 * cgraphunit.c (walk_polymorphic_call_targets): Add
15524 dbgcnt and fopt-info support.
15525 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15526 * ipa-devirt.c (ipa_devirt): Ditto.
15527 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15528 * ipa.c (walk_polymorphic_call_targets): Ditto.
15529 * gimple-fold.c (fold_gimple_assign): Ditto.
15530 (gimple_fold_call): Ditto.
15531 * dbgcnt.def: New counter.
15532
15533 2014-05-20 DJ Delorie <dj@redhat.com>
15534
15535 * config/msp430/msp430.md (split): Don't allow subregs when
15536 splitting SImode adds.
15537 (andneghi): Fix subtraction logic.
15538 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15539
15540 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15541
15542 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15543 symbols.
15544 * except.c (switch_to_exception_section, resolve_unique_section,
15545 get_named_text_section, default_function_rodata_section,
15546 align_variable, get_block_for_decl, default_section_type_flags):
15547 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15548 * symtab.c (symtab_add_to_same_comdat_group,
15549 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15550 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15551 Likewise.
15552 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15553 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15554 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15555 (c6x_function_in_section_p): Likewise.
15556 * config/darwin.c (machopic_select_section): Likewise.
15557 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15558 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15559 * config/mep/mep.c (mep_select_section): LIkewise.
15560 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15561
15562 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15563
15564 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15565 EH region of calls to pure functions that can throw an exception.
15566 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15567 (copy_reference_ops_from_call): Also copy the EH region of the call if
15568 it can throw an exception.
15569
15570 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15571
15572 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15573 nested VEC_SELECTs that are inverses of each other.
15574
15575 2014-05-20 Richard Biener <rguenther@suse.de>
15576
15577 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15578 (extract_and_process_scc_for_name): not here.
15579 (cond_dom_walker::before_dom_children): Only process
15580 stmts that end the BB in interesting ways.
15581 (run_scc_vn): Mark param uses as visited.
15582
15583 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15584
15585 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15586 arm_restrict_it.
15587
15588 2014-05-20 Nick Clifton <nickc@redhat.com>
15589
15590 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15591 (msp430_gimplify_va_arg_expr): New function.
15592 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15593
15594 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15595 operand 0 in order to prevent confusion about the number of
15596 registers involved.
15597
15598 2014-05-20 Richard Biener <rguenther@suse.de>
15599
15600 PR tree-optimization/61221
15601 * tree-ssa-pre.c (el_to_update): Remove.
15602 (eliminate_dom_walker::before_dom_children): Handle released
15603 VDEFs by value-numbering them to the associated VUSE. Update
15604 stmt immediately for substituted call address.
15605 (eliminate): Remove delayed stmt updating code.
15606 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15607 possibly late re-numbered vuses.
15608 (vn_reference_lookup_2): Adjust.
15609 (vn_reference_lookup_pieces): Likewise.
15610 (vn_reference_lookup): Likewise.
15611
15612 2014-05-20 Richard Biener <rguenther@suse.de>
15613
15614 * config.gcc: Remove need_64bit_hwint.
15615 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15616 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15617 it to be true.
15618 * config.in: Regenerate.
15619 * configure: Likewise.
15620
15621 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15622
15623 * doc/extend.texi: Create Label Attributes section,
15624 move all label attributes into it and reference it.
15625
15626 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15627
15628 * arm.c (thumb1_reorg): When scanning backwards skip anything
15629 that's not a proper insn.
15630
15631 2014-05-19 Richard Biener <rguenther@suse.de>
15632
15633 PR tree-optimization/61221
15634 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15635 Do nothing for unreachable blocks.
15636 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15637 Improve unreachability detection.
15638
15639 2014-05-19 Richard Biener <rguenther@suse.de>
15640
15641 PR tree-optimization/61209
15642 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15643
15644 2014-05-19 Nick Clifton <nickc@redhat.com>
15645
15646 * except.c (init_eh): Fix computation of builtin setjmp buffer
15647 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15648
15649 2014-05-19 Richard Biener <rguenther@suse.de>
15650
15651 PR tree-optimization/61184
15652 * tree-vrp.c (is_negative_overflow_infinity): Use
15653 TREE_OVERFLOW_P and do that check first.
15654 (is_positive_overflow_infinity): Likewise.
15655 (is_overflow_infinity): Likewise.
15656 (vrp_operand_equal_p): Properly treat operands with
15657 differing overflow as not equal.
15658
15659 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15660
15661 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15662 shift simplification where it was intended.
15663
15664 2014-05-19 Christian Bruel <christian.bruel@st.com>
15665
15666 PR target/61195
15667 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15668
15669 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15670
15671 PR target/61084
15672 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15673 than wide_int.
15674
15675 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15676
15677 * reg-notes.def (CROSSING_JUMP): Likewise.
15678 * rtl.h (rtx_def): Update comment for jump flag.
15679 (CROSSING_JUMP_P): Define.
15680 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15681 of a REG_CROSSING_JUMP note.
15682 * cfghooks.c (tidy_fallthru_edges): Likewise.
15683 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15684 * emit-rtl.c (try_split): Likewise.
15685 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15686 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15687 * jump.c (redirect_jump_2): Likewise.
15688 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15689 (relax_delay_slots): Likewise.
15690 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15691 (bbit_di): Likewise.
15692 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15693 * config/sh/sh.md (jump_compact): Likewise.
15694 * bb-reorder.c (rotate_loop): Likewise.
15695 (pass_duplicate_computed_gotos::execute): Likewise.
15696 (add_reg_crossing_jump_notes): Rename to...
15697 (update_crossing_jump_flags): ...this.
15698 (pass_partition_blocks::execute): Update accordingly.
15699
15700 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15701
15702 * tree.h: Remove extraneous template <>.
15703
15704 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15705
15706 * ipa.c (symtab_remove_unreachable_nodes): Remove
15707 symbol from comdat group if its body was eliminated.
15708 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15709 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15710 (symtab_unregister_node): ... this one.
15711 (verify_symtab_base): More strict checking of comdats.
15712 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15713
15714 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15715
15716 * tree-pass.h (make_pass_ipa_comdats): New pass.
15717 * timevar.def (TV_IPA_COMDATS): New timevar.
15718 * passes.def (pass_ipa_comdats): Add.
15719 * Makefile.in (OBJS): Add ipa-comdats.o
15720 * ipa-comdats.c: New file.
15721
15722 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15723
15724 * ipa.c (update_visibility_by_resolution_info): New function.
15725 (function_and_variable_visibility): Use it.
15726
15727 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15728
15729 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15730 New functions.
15731 (FOR_EACH_DEFINED_SYMBOL): New macro.
15732 (varpool_first_static_initializer, varpool_next_static_initializer,
15733 varpool_first_defined_variable, varpool_next_defined_variable):
15734 Fix comments.
15735 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15736
15737 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15738
15739 * ggc-page.c (ggc_handle_finalizers): Add comment.
15740
15741 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15742
15743 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15744 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15745 (ggc_internal_cleared_alloc): Likewise.
15746 * ggc-page.c (finalizer): New class.
15747 (vec_finalizer): Likewise.
15748 (globals::finalizers): New member.
15749 (globals::vec_finalizers): Likewise.
15750 (ggc_internal_alloc): Record the finalizer if any for the block being
15751 allocated.
15752 (ggc_handle_finalizers): New function.
15753 (ggc_collect): Call ggc_handle_finalizers.
15754 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15755 finalizer.
15756 (ggc_internal_cleared_alloc): Likewise.
15757 (finalize): New function.
15758 (need_finalization_p): Likewise.
15759 (ggc_alloc): Install the type's destructor as the finalizer if it
15760 might do something.
15761 (ggc_cleared_alloc): Likewise.
15762 (ggc_vec_alloc): Likewise.
15763 (ggc_cleared_vec_alloc): Likewise.
15764
15765 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15766
15767 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15768
15769 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15770
15771 * alias.c (record_alias_subset): Adjust.
15772 * bitmap.c (bitmap_element_allocate): Likewise.
15773 (bitmap_gc_alloc_stat): Likewise.
15774 * cfg.c (init_flow): Likewise.
15775 (alloc_block): Likewise.
15776 (unchecked_make_edge): Likewise.
15777 * cfgloop.c (alloc_loop): Likewise.
15778 (flow_loops_find): Likewise.
15779 (rescan_loop_exit): Likewise.
15780 * cfgrtl.c (init_rtl_bb_info): Likewise.
15781 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15782 (cgraph_allocate_node): Likewise.
15783 (cgraph_create_edge_1): Likewise.
15784 (cgraph_allocate_init_indirect_info): Likewise.
15785 * cgraphclones.c (cgraph_clone_edge): Likewise.
15786 * cgraphunit.c (add_asm_node): Likewise.
15787 (init_lowered_empty_function): Likewise.
15788 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15789 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15790 (alpha_use_linkage): Likewise.
15791 * config/arc/arc.c (arc_init_machine_status): Likewise.
15792 * config/arm/arm.c (arm_init_machine_status): Likewise.
15793 * config/avr/avr.c (avr_init_machine_status): Likewise.
15794 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15795 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15796 * config/cris/cris.c (cris_init_machine_status): Likewise.
15797 * config/darwin.c (machopic_indirection_name): Likewise.
15798 (darwin_build_constant_cfstring): Likewise.
15799 (darwin_enter_string_into_cfstring_table): Likewise.
15800 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15801 * config/frv/frv.c (frv_init_machine_status): Likewise.
15802 * config/i386/i386.c (get_dllimport_decl): Likewise.
15803 (ix86_init_machine_status): Likewise.
15804 (assign_386_stack_local): Likewise.
15805 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15806 (i386_pe_maybe_record_exported_symbol): Likewise.
15807 (i386_pe_record_stub): Likewise.
15808 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15809 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15810 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15811 (m32c_note_pragma_address): Likewise.
15812 * config/mep/mep.c (mep_init_machine_status): Likewise.
15813 (mep_note_pragma_flag): Likewise.
15814 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15815 (mips16_local_alias): Likewise.
15816 (mips_init_machine_status): Likewise.
15817 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15818 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15819 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15820 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15821 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15822 * config/pa/pa.c (pa_init_machine_status): Likewise.
15823 (pa_get_deferred_plabel): Likewise.
15824 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15825 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15826 (rs6000_init_machine_status): Likewise.
15827 (output_toc): Likewise.
15828 * config/s390/s390.c (s390_init_machine_status): Likewise.
15829 * config/score/score.c (score_output_external): Likewise.
15830 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15831 * config/spu/spu.c (spu_init_machine_status): Likewise.
15832 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15833 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15834 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15835 * coverage.c (coverage_end_function): Likewise.
15836 * dbxout.c (dbxout_init): Likewise.
15837 * doc/gty.texi: Don't mention variable_size attribute.
15838 * dwarf2cfi.c (new_cfi): Adjust.
15839 (new_cfi_row): Likewise.
15840 (copy_cfi_row): Likewise.
15841 (create_cie_data): Likewise.
15842 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15843 (new_loc_descr): Likewise.
15844 (find_AT_string_in_table): Likewise.
15845 (add_addr_table_entry): Likewise.
15846 (new_die): Likewise.
15847 (add_var_loc_to_decl): Likewise.
15848 (clone_die): Likewise.
15849 (clone_as_declaration): Likewise.
15850 (break_out_comdat_types): Likewise.
15851 (new_loc_list): Likewise.
15852 (add_loc_descr_to_each): Likewise.
15853 (add_location_or_const_value_attribute): Likewise.
15854 (add_linkage_name): Likewise.
15855 (lookup_filename): Likewise.
15856 (dwarf2out_var_location): Likewise.
15857 (new_line_info_table): Likewise.
15858 (dwarf2out_init): Likewise.
15859 (mem_loc_descriptor): Likewise.
15860 (loc_descriptor): Likewise.
15861 (add_const_value_attribute): Likewise.
15862 (tree_add_const_value_attribute): Likewise.
15863 (comp_dir_string): Likewise.
15864 (dwarf2out_vms_debug_main_pointer): Likewise.
15865 (string_cst_pool_decl): Likewise.
15866 * emit-rtl.c (set_mem_attrs): Likewise.
15867 (get_reg_attrs): Likewise.
15868 (start_sequence): Likewise.
15869 (init_emit): Likewise.
15870 (init_emit_regs): Likewise.
15871 * except.c (init_eh_for_function): Likewise.
15872 (gen_eh_region): Likewise.
15873 (gen_eh_region_catch): Likewise.
15874 (gen_eh_landing_pad): Likewise.
15875 (add_call_site): Likewise.
15876 * function.c (add_frame_space): Likewise.
15877 (insert_temp_slot_address): Likewise.
15878 (assign_stack_temp_for_type): Likewise.
15879 (get_hard_reg_initial_val): Likewise.
15880 (allocate_struct_function): Likewise.
15881 (prepare_function_start): Likewise.
15882 (types_used_by_var_decl_insert): Likewise.
15883 * gengtype.c (variable_size_p): Remove function.
15884 (enum alloc_quantity): Remove enum.
15885 (write_typed_alloc_def): Remove function.
15886 (write_typed_struct_alloc_def): Likewise.
15887 (write_typed_typedef_alloc_def): Likewise.
15888 (write_typed_alloc_defns): Likewise.
15889 (main): Adjust.
15890 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15891 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15892 * ggc.h (ggc_alloc): new function.
15893 (ggc_cleared_alloc): Likewise.
15894 (ggc_vec_alloc): Template on type of vector element, and remove
15895 element size argument.
15896 (ggc_cleared_vec_alloc): Likewise.
15897 * gimple.c (gimple_build_omp_for): Adjust.
15898 (gimple_copy): Likewise.
15899 * ipa-cp.c (get_replacement_map): Likewise.
15900 (find_aggregate_values_for_callers_subset): Likewise.
15901 (known_aggs_to_agg_replacement_list): Likewise.
15902 * ipa-devirt.c (get_odr_type): Likewise.
15903 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15904 (read_agg_replacement_chain): Likewise.
15905 * loop-iv.c (get_simple_loop_desc): Likewise.
15906 * lto-cgraph.c (input_node_opt_summary): Likewise.
15907 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15908 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15909 (input_eh_region): Likewise.
15910 (input_eh_lp): Likewise.
15911 (input_cfg): Likewise.
15912 * optabs.c (set_optab_libfunc): Likewise.
15913 (init_tree_optimization_optabs): Likewise.
15914 (set_conv_libfunc): Likewise.
15915 * passes.c (do_per_function_toporder): Likewise.
15916 * rtl.h: Don't use variable_size gty attribute.
15917 * sese.c (if_region_set_false_region): Adjust.
15918 * stringpool.c (gt_pch_save_stringpool): Likewise.
15919 * target-globals.c (save_target_globals): Likewise.
15920 * toplev.c (general_init): Likewise.
15921 * trans-mem.c (record_tm_replacement): Likewise.
15922 (split_bb_make_tm_edge): Likewise.
15923 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15924 * tree-data-ref.h (lambda_vector_new): Likewise.
15925 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15926 * tree-iterator.c (tsi_link_before): Likewise.
15927 (tsi_link_after): Likewise.
15928 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15929 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15930 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15931 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15932 * tree-ssa.c (init_tree_ssa): Adjust.
15933 * tree-ssanames.c (set_range_info): Likewise.
15934 (get_ptr_info): Likewise.
15935 (duplicate_ssa_name_ptr_info): Likewise.
15936 (duplicate_ssa_name_range_info): Likewise.
15937 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15938 (unpack_ts_fixed_cst_value_fields): Likewise.
15939 * tree.c (build_fixed): Likewise.
15940 (build_real): Likewise.
15941 (build_string): Likewise.
15942 (decl_priority_info): Likewise.
15943 (decl_debug_expr_insert): Likewise.
15944 (decl_value_expr_insert): Likewise.
15945 (decl_debug_args_insert): Likewise.
15946 (type_hash_add): Likewise.
15947 (build_omp_clause): Likewise.
15948 * ubsan.c (decl_for_type_insert): Likewise.
15949 * varasm.c (get_unnamed_section): Likewise.
15950 (get_noswitch_section): Likewise.
15951 (get_section): Likewise.
15952 (get_block_for_section): Likewise.
15953 (create_block_symbol): Likewise.
15954 (build_constant_desc): Likewise.
15955 (create_constant_pool): Likewise.
15956 (force_const_mem): Likewise.
15957 (record_tm_clone_pair): Likewise.
15958 * varpool.c (varpool_create_empty_node): Likewise.
15959
15960 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15961
15962 * dwarf2out.c (tree_add_const_value_attribute): Call
15963 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15964 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15965 instead of ggc_internal_<x>alloc_stat.
15966 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15967 (ggc_realloc): Likewise.
15968 * ggc-none.c (ggc_internal_alloc): Likewise.
15969 (ggc_internal_cleared_alloc): Likewise.
15970 * ggc-page.c: Likewise.
15971 * ggc.h (ggc_internal_alloc_stat): Likewise.
15972 (ggc_internal_alloc): Remove macro.
15973 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15974 (ggc_internal_cleared_alloc): Remove macro.
15975 (GGC_RESIZEVEC): Adjust.
15976 (ggc_resizevar): Remove macro.
15977 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15978 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15979 (ggc_internal_vec_cleared_alloc): Remove macro.
15980 (ggc_alloc_atomic_stat): Drop _stat suffix.
15981 (ggc_alloc_atomic): Remove macro.
15982 (ggc_alloc_cleared_atomic): Remove macro.
15983 (ggc_alloc_string_stat): Drop _stat suffix.
15984 (ggc_alloc_string): Remove macro.
15985 (ggc_alloc_rtx_def_stat): Adjust.
15986 (ggc_alloc_tree_node_stat): Likewise.
15987 (ggc_alloc_cleared_tree_node_stat): Likewise.
15988 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15989 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15990 * gimple.c (gimple_build_omp_for): Likewise.
15991 (gimple_copy): Likewise.
15992 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15993 * toplev.c (realloc_for_line_map): Adjust.
15994 * tree-data-ref.h (lambda_vector_new): Likewise.
15995 * tree-phinodes.c (allocate_phi_node): Likewise.
15996 * tree.c (grow_tree_vec_stat): Likewise.
15997 * vec.h (va_gc::reserve): Adjust.
15998
15999 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
16000
16001 * config/microblaze/microblaze.c (break_handler): New Declaration.
16002 (microblaze_break_function_p,microblaze_is_break_handler): New.
16003 (compute_frame_size): Use microblaze_break_function_p.
16004 Add the test of break_handler.
16005 (microblaze_function_prologue) : Add the test of variable
16006 break_handler. Check the fnname by BREAK_HANDLER_NAME.
16007 (microblaze_function_epilogue) : Add the test of break_handler.
16008 (microblaze_globalize_label) : Add the test of break_handler.
16009 Check the name by BREAK_HANDLER_NAME.
16010
16011 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
16012
16013 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
16014 microblaze_is_break_handler test.
16015 (call_internal1,call_value_intern): Use microblaze_break_function_p.
16016 Use SYMBOL_REF_DECL.
16017
16018 * config/microblaze/microblaze-protos.h
16019 (microblaze_break_function_p,microblaze_is_break_handler):
16020 New Declaration.
16021
16022 * doc/extend.texi (MicroBlaze break_handler Functions): Document
16023 new MicroBlaze break_handler functions.
16024
16025 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16026
16027 * doc/extend.texi (Size of an asm): Move node text according
16028 to its @menu entry position.
16029
16030 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
16031
16032 PR tree-optimization/61140
16033 PR tree-optimization/61150
16034 PR tree-optimization/61197
16035 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
16036
16037 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16038
16039 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
16040
16041 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
16042
16043 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
16044 __SIZEOF_INT128__ is defined.
16045
16046 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16047
16048 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
16049 (rs6000_delegitimize_address): Use it.
16050
16051 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16052
16053 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
16054 inplace argument. Store the new address in the original MEM when true.
16055 * emit-rtl.c (change_address_1): Likewise.
16056 (adjust_address_1, adjust_automodify_address_1, offset_address):
16057 Update accordingly.
16058 * rtl.h (plus_constant): Add an inplace argument.
16059 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
16060 when true. Avoid generating (plus X (const_int 0)).
16061 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
16062 in-place. Pass true to plus_constant.
16063 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
16064
16065 2014-05-16 Dehao Chen <dehao@google.com>
16066
16067 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
16068
16069 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16070
16071 PR target/54089
16072 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
16073 patterns.
16074 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
16075
16076 2014-05-16 Dehao Chen <dehao@google.com>
16077
16078 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
16079 optimize_function_for_size_p.
16080 * regs.h (REG_FREQ_FROM_BB): Likewise.
16081
16082 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16083
16084 PR target/51244
16085 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
16086 negt_reg_operand cases.
16087 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
16088 predicate.
16089 * config/sh/predicates.md (cbranch_treg_value): Simplify.
16090
16091 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16092
16093 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16094 target variants.
16095
16096 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16097
16098 Revert:
16099 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16100
16101 * tree-cfg.c (dump_function_to_file): Dump the return type of
16102 functions, in a line to itself before the function body, mimicking
16103 the layout of a C function.
16104
16105 2014-05-16 Dehao Chen <dehao@google.com>
16106
16107 * cfghooks.c (make_forwarder_block): Use direct computation to
16108 get fall-through edge's count and frequency.
16109
16110 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16111
16112 * config/arc/arc.c (arc_init): Fix typo in error message.
16113 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16114 (split_stack_prologue_scratch_regno): Likewise.
16115 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16116 word from error message.
16117
16118 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16119
16120 * ira-costs.c: Fix typo in comment.
16121
16122 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16123
16124 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16125
16126 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16127
16128 * varpool.c (dump_varpool_node): Dump write-only flag.
16129 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16130 write-only flag.
16131 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16132 write-only variables.
16133 * ipa.c (process_references): New function.
16134 (set_readonly_bit): New function.
16135 (set_writeonly_bit): New function.
16136 (clear_addressable_bit): New function.
16137 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16138 fix handling of aliases.
16139 * cgraph.h (struct varpool_node): Add writeonly flag.
16140
16141 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16142
16143 PR rtl-optimization/60969
16144 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16145 Calculate costs for this case.
16146
16147 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16148
16149 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16150 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16151
16152 2014-05-16 Richard Biener <rguenther@suse.de>
16153
16154 PR tree-optimization/61194
16155 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16156 bool patterns ending in a COND_EXPR.
16157
16158 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16159
16160 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16161
16162 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16163
16164 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16165 where we were unable to cost an RTX.
16166
16167 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16168
16169 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16170 HIGH, LO_SUM.
16171
16172 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16173 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16174
16175 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16176
16177 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16178 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16179
16180 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16181 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16182
16183 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16184 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16185
16186 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16187 operators.
16188
16189 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16190 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16191
16192 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16193 DIV/MOD.
16194
16195 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16196 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16197
16198 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16199 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16200
16201 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16202 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16203
16204 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16205 rotates and shifts.
16206
16207 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16208 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16209
16210 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16211 ZERO_EXTEND and SIGN_EXTEND better.
16212
16213 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16214 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16215
16216 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16217 logical operations.
16218
16219 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16220 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16221
16222 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16223 costs when costing loads and stores to memory.
16224
16225 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16226 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16227
16228 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16229 for SET RTX.
16230
16231 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16232
16233 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16234
16235 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16236 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16237
16238 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16239 to...
16240 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16241 well formed.
16242 (aarch64_rtx_mult_cost): New.
16243 (aarch64_rtx_costs): Use it, refactor as appropriate.
16244
16245 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16246 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16247
16248 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16249 emit instructions, return number of instructions which would
16250 be emitted.
16251 (aarch64_add_constant): Update call to aarch64_build_constant.
16252 (aarch64_output_mi_thunk): Likewise.
16253 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16254 a CONST_DOUBLE.
16255
16256 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16257
16258 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16259 (TARGET_RTX_COSTS): Call it.
16260
16261 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16262
16263 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16264 (cortexa57_vector_cost): Likewise.
16265 (cortexa57_tunings): Use them.
16266
16267 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16268
16269 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16270 (cpu_addrcost_table): Use it.
16271 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16272 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16273 move it.
16274
16275 2014-05-16 Richard Biener <rguenther@suse.de>
16276
16277 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16278 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16279 (visit_phi): Ignore edges marked as not executable.
16280 (class cond_dom_walker): New.
16281 (cond_dom_walker::before_dom_children): Value-number
16282 control statements and mark successor edges as not
16283 executable if possible.
16284 (run_scc_vn): First walk all control statements in
16285 dominator order, marking edges as not executable.
16286 * tree-inline.c (copy_edges_for_bb): Be not confused
16287 about random edge flags.
16288
16289 2014-05-16 Richard Biener <rguenther@suse.de>
16290
16291 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16292
16293 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16294
16295 PR target/61193
16296 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16297 (__TM_simple_begin): Use it.
16298 (__TM_begin): Likewise.
16299
16300 2014-05-15 Martin Jambor <mjambor@suse.cz>
16301
16302 PR ipa/61085
16303 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16304 type_preserved flag when the indirect edge is polymorphic.
16305
16306 2014-05-15 Martin Jambor <mjambor@suse.cz>
16307
16308 PR tree-optimization/61090
16309 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16310 build_ref_for_model.
16311
16312 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16313
16314 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16315 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16316
16317 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16318
16319 PR tree-optimization/61158
16320 * fold-const.c (fold_binary_loc): If X is zero-extended and
16321 shiftc >= prec, make sure zerobits is all ones instead of
16322 invoking undefined behavior.
16323
16324 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16325
16326 * regcprop.h: New file.
16327 * regcprop.c (skip_debug_insn_p): New decl.
16328 (replace_oldest_value_reg): Check skip_debug_insn_p.
16329 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16330 * shrink-wrap.c: Include regcprop.h.
16331 (prepare_shrink_wrap): Call
16332 copyprop_hardreg_forward_bb_without_debug_insn.
16333
16334 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16335
16336 * shrink-wrap.h: Update comment.
16337 * shrink-wrap.c: Update comment.
16338 (next_block_for_reg): Rename to live_edge_for_reg.
16339 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16340 (move_insn_for_shrink_wrap): Split live_edge.
16341 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16342
16343 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16344
16345 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16346 Delete.
16347 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16348 * config/sparc/sparc.md (fptype_ut699): New attribute.
16349 (in_branch_delay): Return false if -mfix-ut699 is specified and
16350 fptype_ut699 is set to single.
16351 (truncdfsf2): Add fptype_ut699 attribute.
16352 (fix_truncdfsi2): Likewise.
16353 (floatsisf2): Change fptype attribute.
16354 (fix_truncsfsi2): Likewise.
16355 (negtf2_notv9): Delete.
16356 (negtf2_v9): Likewise.
16357 (negtf2_hq): New instruction.
16358 (negtf2): New instruction and splitter.
16359 (negdf2_notv9): Rewrite.
16360 (abstf2_notv9): Delete.
16361 (abstf2_hq_v9): Likewise.
16362 (abstf2_v9): Likewise.
16363 (abstf2_hq): New instruction.
16364 (abstf2): New instruction and splitter.
16365 (absdf2_notv9): Rewrite.
16366
16367 2014-05-14 Cary Coutant <ccoutant@google.com>
16368
16369 PR debug/61013
16370 * opts.c (common_handle_option): Don't special-case "-g".
16371 (set_debug_level): Default to at least level 2 with "-g".
16372
16373 2014-05-14 DJ Delorie <dj@redhat.com>
16374
16375 * config/msp430/msp430.c (msp430_builtin): Add
16376 MSP430_BUILTIN_DELAY_CYCLES.
16377 (msp430_init_builtins): Register void __delay_cycles(long long).
16378 (msp430_builtin_decl): Add it.
16379 (cg_magic_constant): New.
16380 (msp430_expand_delay_cycles): New.
16381 (msp430_expand_builtin): Call it.
16382 (msp430_print_operand_raw): Change integer printing from "int" to
16383 HOST_WIDE_INT.
16384 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16385 (delay_cycles_start): New.
16386 (delay_cycles_end): New.
16387 (delay_cycles_32): New.
16388 (delay_cycles_32x): New.
16389 (delay_cycles_16): New.
16390 (delay_cycles_16x): New.
16391 (delay_cycles_2): New.
16392 (delay_cycles_1): New.
16393 * doc/extend.texi: Document __delay_cycles().
16394
16395 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16396
16397 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16398 length attribute computation.
16399
16400 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16401
16402 PR debug/61188
16403 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16404
16405 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16406
16407 PR target/61084
16408 * config/sparc/sparc.md: Fix types of low and high in DI constant
16409 splitter. Use gen_int_mode in some other splitters.
16410
16411 2014-05-14 Martin Jambor <mjambor@suse.cz>
16412
16413 PR ipa/60897
16414 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16415
16416 2014-05-14 James Norris <jnorris@codesourcery.com>
16417
16418 * omp-low.c (expand_parallel_call): Remove shadow variable.
16419 (expand_omp_taskreg): Likewise.
16420
16421 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16422
16423 * common/config/i386/i386-common.c
16424 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16425 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16426 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16427 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16428 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16429 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16430 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16431 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16432 xsavecintrin.h, xsavesintrin.h.
16433 (x86_64-*-*): Ditto.
16434 * config/i386/clflushoptintrin.h: New.
16435 * config/i386/xsavecintrin.h: Ditto.
16436 * config/i386/xsavesintrin.h: Ditto.
16437 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16438 (bit_XSAVES): Ditto.
16439 (bit_XSAVES): Ditto.
16440 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16441 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16442 -mno-clflushopt.
16443 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16444 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16445 OPTION_MASK_ISA_XSAVES.
16446 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16447 -mxsavec, -mxsaves.
16448 (PTA_CLFLUSHOPT) Define.
16449 (PTA_XSAVEC): Ditto.
16450 (PTA_XSAVES): Ditto.
16451 (ix86_option_override_internal): Handle new options.
16452 (ix86_valid_target_attribute_inner_p): Ditto.
16453 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16454 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16455 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16456 (bdesc_special_args): Add __builtin_ia32_xsaves,
16457 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16458 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16459 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16460 (ix86_expand_builtin): Handle new builtins.
16461 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16462 (TARGET_CLFLUSHOPT_P): Ditto.
16463 (TARGET_XSAVEC): Ditto.
16464 (TARGET_XSAVEC_P): Ditto.
16465 (TARGET_XSAVES): Ditto.
16466 (TARGET_XSAVES_P): Ditto.
16467 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16468 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16469 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16470 (ANY_XRSTOR): New.
16471 (ANY_XRSTOR64): Ditto.
16472 (xrstor): Ditto.
16473 (xrstor): Change into <xrstor>.
16474 (xrstor_rex64): Change into <xrstor>_rex64.
16475 (xrstor64): Change into <xrstor>64
16476 (clflushopt): New.
16477 * config/i386/i386.opt (mclflushopt): New.
16478 (mxsavec): Ditto.
16479 (mxsaves): Ditto.
16480 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16481 xsavecintrin.h.
16482 * doc/invoke.texi: Document new options.
16483
16484 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16485
16486 PR rtl-optimization/60866
16487 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16488 Default it to -1. Pass it down to init_simplejump_data.
16489 (init_simplejump_data): New parameter old_seqno. Pass it down
16490 to get_seqno_for_a_jump.
16491 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16492 initializing new jump seqno as a last resort. Add comment.
16493 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16494 jump and pass it down to sel_init_new_insn.
16495 (sel_redirect_edge_and_branch_force): Likewise.
16496
16497 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16498
16499 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16500 shifted values to avoid build warning.
16501
16502 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16503
16504 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16505 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16506 (cfg_layout_merge_blocks): Likewise.
16507 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16508
16509 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16510
16511 PR rtl-optimization/60901
16512 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16513 bb predecessor belongs to the same scheduling region. Adjust comment.
16514
16515 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16516
16517 * doc/sourcebuild.texi: (dfp_hw): Document.
16518 (p8vector_hw): Likewise.
16519 (powerpc_eabi_ok): Likewise.
16520 (powerpc_elfv2): Likewise.
16521 (powerpc_htm_ok): Likewise.
16522 (ppc_recip_hw): Likewise.
16523 (vsx_hw): Likewise.
16524
16525 2014-05-13 Cary Coutant <ccoutant@google.com>
16526
16527 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16528
16529 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16530
16531 * gengtype-parse.c (require3): Eliminate in favor of...
16532 (require4): New.
16533 (require_template_declaration): Update to support optional single *
16534 on a type.
16535
16536 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16537 (create_user_defined_type): Handle a single level of explicit
16538 pointerness within template arguments.
16539 (struct write_types_data): Add field "kind".
16540 (filter_type_name): Handle "*" character.
16541 (write_user_func_for_structure_ptr): Require a write_types_data
16542 rather than just a prefix string, so that we can look up the kind
16543 of the wtd and use it as an index into wrote_user_func_for_ptr,
16544 ensuring that such functions are written at most once. Support
16545 subclasses by invoking the marking function of the ultimate base class.
16546 (write_user_func_for_structure_body): Require a write_types_data
16547 rather than just a prefix string, so that we can pass this to
16548 write_user_func_for_structure_ptr.
16549 (write_func_for_structure): Likewise.
16550 (ggc_wtd): Add initializer of new "kind" field.
16551 (pch_wtd): Likewise.
16552
16553 * gengtype.h (enum write_types_kinds): New.
16554 (struct type): Add field wrote_user_func_for_ptr to the "s"
16555 union member.
16556
16557 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16558
16559 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16560 instead of const_binop.
16561 (fold_binary_loc): Likewise.
16562
16563 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16564
16565 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16566 calculation to match get_ref_base_and_extent.
16567
16568 2014-05-13 Catherine Moore <clm@codesourcery.com>
16569 Sandra Loosemore <sandra@codesourcery.com>
16570
16571 * configure.ac: Fix assembly for explicit JALR relocation check.
16572 * configure: Regenerate.
16573
16574 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16575
16576 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16577 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16578 Remove associated type declarations and initialisations.
16579 (arm_expand_neon_builtin): Likewise.
16580 (neon_emit_pair_result_insn): Delete.
16581 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16582 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16583 (neon_vzip<mode>): Likewise.
16584 (neon_vuzp<mode>): Likewise.
16585
16586 2014-05-13 Richard Biener <rguenther@suse.de>
16587
16588 PR ipa/60973
16589 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16590 it needs revisiting whether the call still may be tail-called.
16591
16592 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16593
16594 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16595 * rtl.h (block_symbol): Reduce number of fields to 2.
16596 (rtx_def): Add u2.symbol_ref_flags.
16597 (SYMBOL_REF_FLAGS): Use it.
16598 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16599 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16600 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16601 Lower index of SYMBOL_REF_DATA.
16602 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16603 Print SYMBOL_REF_FLAGS at the same time.
16604 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16605
16606 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16607
16608 * rtl.def (VAR_LOCATION): Remove "i" field.
16609 * rtl.h (rtx_def): Add u2.var_location_status.
16610 (PAT_VAR_LOCATION_STATUS): Use it.
16611 (gen_rtx_VAR_LOCATION): Declare.
16612 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16613 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16614 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16615
16616 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16617
16618 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16619 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16620
16621 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16622
16623 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16624 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16625 * rtl.h (rtx_def): Add insn_uid to u2 field.
16626 (RTX_FLAG_CHECK8): Delete in favor of...
16627 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16628 (INSN_DELETED_P): Update accordingly.
16629 (INSN_UID): Use u2.insn_uid.
16630 (INSN_CHAIN_CODE_P): Define.
16631 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16632 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16633 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16634 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16635 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16636 indices accordingly.
16637 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16638 Update indices for insn-chain rtxes.
16639 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16640 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16641 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16642 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16643 * combine.c (try_combine): Likewise.
16644 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16645
16646 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16647
16648 * rtl.def (REG): Remove middle field.
16649 * rtl.h (rtx_def): Add orignal_regno to u2.
16650 (ORIGINAL_REGNO): Use it instead of field 1.
16651 (REG_ATTRS): Lower field index accordingly.
16652 * gengtype.c (adjust_field_rtx_def): Remove handling of
16653 ORIGINAL_REGNO. Move REG_ATTRS index down.
16654 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16655 code that prints the REGNO.
16656
16657 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16658
16659 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16660 GENERATOR_FILE.
16661
16662 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16663
16664 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16665
16666 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16667
16668 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16669 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16670
16671 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16672
16673 * config/aarch64/aarch64-protos.h
16674 (aarch64_hard_regno_caller_save_mode): New prototype.
16675 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16676 New function.
16677 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16678
16679 2014-05-13 Christian Bruel <christian.bruel@st.com>
16680
16681 * target.def (mode_switching): New hook vector.
16682 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16683 (mode_exit, modepriority_to_mode): Likewise.
16684 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16685 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16686 * target.h: Include tm.h and hard-reg-set.h.
16687 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16688 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16689 * doc/tm.texi Regenerate.
16690 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16691 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16692 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16693 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16694 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16695 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16696 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16697 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16698 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16699 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16700 (ix86_emit_mode_set): Hookify.
16701 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16702 Delete.
16703 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16704 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16705 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16706 (epiphany_mode_priority_to_mode): Remove declaration.
16707 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16708 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16709 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16710 Likewise.
16711 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16712 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16713 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16714
16715 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16716
16717 PR target/61060
16718 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16719 is const0_rtx, return immediately. Don't test count == 0 when
16720 it is always true.
16721
16722 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16723
16724 * Makefile.in: add shrink-wrap.o.
16725 * config/i386/i386.c: include "shrink-wrap.h"
16726 * function.c: Likewise.
16727 (requires_stack_frame_p, next_block_for_reg,
16728 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16729 dup_block_and_redirect): Move to shrink-wrap.c
16730 (thread_prologue_and_epilogue_insns): Extract three code segments
16731 as functions in shrink-wrap.c
16732 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16733 shrink-wrap.h
16734 * shrink-wrap.c: New file.
16735 * shrink-wrap.h: New file.
16736
16737 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16738
16739 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16740 reference to Solaris.
16741
16742 2014-05-12 Mike Stump <mikestump@comcast.net>
16743
16744 PR other/31778
16745 * genattrtab.c (filename): Add.
16746 (convert_set_attr_alternative): Improve error message.
16747 (check_defs): Restore read_md_filename for error messages.
16748 (gen_insn): Save filename.
16749
16750 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16751
16752 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16753 -fno-local-ivars and -fivar-visibility.
16754 * c-family/c.opt: Make -Wshadow also implicitly enable
16755 -Wshadow-ivar.
16756
16757 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16758
16759 * doc/tm.texi: Remove reference to deleted macro.
16760 * doc/tm.texi.in: Likewise.
16761
16762 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16763
16764 PR target/60991
16765 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16766 to restore Y.
16767
16768 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16769
16770 PR libgcc/61152
16771 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16772 * config/arm/aout.h (License): Same.
16773 * config/arm/bpabi.h (License): Same.
16774 * config/arm/elf.h (License): Same.
16775 * config/arm/linux-elf.h (License): Same.
16776 * config/arm/linux-gas.h (License): Same.
16777 * config/arm/netbsd-elf.h (License): Same.
16778 * config/arm/uclinux-eabi.h (License): Same.
16779 * config/arm/uclinux-elf.h (License): Same.
16780 * config/arm/vxworks.h (License): Same.
16781
16782 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16783
16784 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16785 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16786 number of operands to 3.
16787 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16788 * tree-nested.c (convert_nonlocal_omp_clauses,
16789 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16790 * gimplify.c (gimplify_scan_omp_clauses): Handle
16791 OMP_CLAUSE_LINEAR_STMT.
16792 * omp-low.c (lower_rec_input_clauses): Fix typo.
16793 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16794 cast between Fortran boolean_type_node and C _Bool if
16795 needed.
16796
16797 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16798
16799 PR tree-optimization/61136
16800 * wide-int.h (multiple_of_p): Define a version that doesn't return
16801 the quotient.
16802 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16803 integer_zerop/const_binop pair.
16804 (multiple_of_p): Likewise, converting both operands to widest_int
16805 precision.
16806
16807 2014-05-09 Teresa Johnson <tejohnson@google.com>
16808
16809 * cgraphunit.c (analyze_functions): Use correct dump file.
16810
16811 2014-05-09 Florian Weimer <fweimer@redhat.com>
16812
16813 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16814 expand_used_vars.
16815 (stack_protect_return_slot_p): New function.
16816 (expand_used_vars): Call stack_protect_decl_p and
16817 stack_protect_return_slot_p for -fstack-protector-strong.
16818
16819 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16820 Andrew Haley <aph@redhat.com>
16821 Richard Sandiford <rdsandiford@googlemail.com>
16822
16823 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16824 pages.
16825
16826 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16827
16828 PR middle-end/61111
16829 * fold-const.c (fold_binary_loc): Changed width of mask.
16830
16831 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16832
16833 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16834 unsigned int initializers for regno_in, regno_out.
16835
16836 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16837
16838 PR target/61055
16839 * config/avr/avr.md (cc): Add new attribute set_vzn.
16840 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16841 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16842 with INC, DEC or NEG.
16843 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16844 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16845 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16846
16847 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16848
16849 Revert:
16850 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16851
16852 * wide-int.cc (UTItype): Define.
16853 (UDWtype): Define for appropriate W_TYPE_SIZE.
16854
16855 2014-05-09 Richard Biener <rguenther@suse.de>
16856
16857 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16858 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16859 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16860 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16861 ssa_propagate): Adjust.
16862
16863 2014-05-08 Jeff Law <law@redhat.com>
16864
16865 PR tree-optimization/61009
16866 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16867 tri-state rather than a boolean. When a block is too big to
16868 thread through, inform caller via negative return value.
16869 (thread_across_edge): If a block was too big for normal threading,
16870 then it's too big for a joiner too, so remove temporary equivalences
16871 and return immediately.
16872
16873 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16874 Matthias Klose <doko@ubuntu.com>
16875
16876 PR driver/61106
16877 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16878
16879 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16880
16881 PR target/59952
16882 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16883
16884 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16885
16886 PR target/61092
16887 * config/alpha/alpha.c: Include gimple-iterator.h.
16888 (alpha_gimple_fold_builtin): New function. Move
16889 ALPHA_BUILTIN_UMULH folding from ...
16890 (alpha_fold_builtin): ... here.
16891 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16892
16893 2014-05-08 Wei Mi <wmi@google.com>
16894
16895 PR target/58066
16896 * config/i386/i386.c (ix86_compute_frame_layout): Update
16897 preferred_stack_boundary for call, expanded from tls descriptor.
16898 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16899 to depend on SP register.
16900 (*tls_local_dynamic_base_32_gnu): Ditto.
16901 (*tls_local_dynamic_32_once): Ditto.
16902 (tls_global_dynamic_64_<mode>): Set
16903 ix86_tls_descriptor_calls_expanded_in_cfun.
16904 (tls_local_dynamic_base_64_<mode>): Ditto.
16905 (tls_global_dynamic_32): Set
16906 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16907 to depend on SP register.
16908 (tls_local_dynamic_base_32): Ditto.
16909
16910 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16911
16912 * config/arm/arm_neon.h: Update comment.
16913 * config/arm/neon-docgen.ml: Delete.
16914 * config/arm/neon-gen.ml: Delete.
16915 * doc/arm-neon-intrinsics.texi: Update comment.
16916
16917 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16918
16919 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16920 and v4sf versions.
16921 (vand, vorr, veor, vorn, vbic): Remove.
16922 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16923 iterator.
16924 (neon_vsub_unspec): Likewise.
16925 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16926
16927 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16928
16929 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16930 (vadd_s16): Likewise.
16931 (vadd_s32): Likewise.
16932 (vadd_f32): Likewise.
16933 (vadd_u8): Likewise.
16934 (vadd_u16): Likewise.
16935 (vadd_u32): Likewise.
16936 (vadd_s64): Likewise.
16937 (vadd_u64): Likewise.
16938 (vaddq_s8): Likewise.
16939 (vaddq_s16): Likewise.
16940 (vaddq_s32): Likewise.
16941 (vaddq_s64): Likewise.
16942 (vaddq_f32): Likewise.
16943 (vaddq_u8): Likewise.
16944 (vaddq_u16): Likewise.
16945 (vaddq_u32): Likewise.
16946 (vaddq_u64): Likewise.
16947 (vmul_s8): Likewise.
16948 (vmul_s16): Likewise.
16949 (vmul_s32): Likewise.
16950 (vmul_f32): Likewise.
16951 (vmul_u8): Likewise.
16952 (vmul_u16): Likewise.
16953 (vmul_u32): Likewise.
16954 (vmul_p8): Likewise.
16955 (vmulq_s8): Likewise.
16956 (vmulq_s16): Likewise.
16957 (vmulq_s32): Likewise.
16958 (vmulq_f32): Likewise.
16959 (vmulq_u8): Likewise.
16960 (vmulq_u16): Likewise.
16961 (vmulq_u32): Likewise.
16962 (vsub_s8): Likewise.
16963 (vsub_s16): Likewise.
16964 (vsub_s32): Likewise.
16965 (vsub_f32): Likewise.
16966 (vsub_u8): Likewise.
16967 (vsub_u16): Likewise.
16968 (vsub_u32): Likewise.
16969 (vsub_s64): Likewise.
16970 (vsub_u64): Likewise.
16971 (vsubq_s8): Likewise.
16972 (vsubq_s16): Likewise.
16973 (vsubq_s32): Likewise.
16974 (vsubq_s64): Likewise.
16975 (vsubq_f32): Likewise.
16976 (vsubq_u8): Likewise.
16977 (vsubq_u16): Likewise.
16978 (vsubq_u32): Likewise.
16979 (vsubq_u64): Likewise.
16980 (vand_s8): Likewise.
16981 (vand_s16): Likewise.
16982 (vand_s32): Likewise.
16983 (vand_u8): Likewise.
16984 (vand_u16): Likewise.
16985 (vand_u32): Likewise.
16986 (vand_s64): Likewise.
16987 (vand_u64): Likewise.
16988 (vandq_s8): Likewise.
16989 (vandq_s16): Likewise.
16990 (vandq_s32): Likewise.
16991 (vandq_s64): Likewise.
16992 (vandq_u8): Likewise.
16993 (vandq_u16): Likewise.
16994 (vandq_u32): Likewise.
16995 (vandq_u64): Likewise.
16996 (vorr_s8): Likewise.
16997 (vorr_s16): Likewise.
16998 (vorr_s32): Likewise.
16999 (vorr_u8): Likewise.
17000 (vorr_u16): Likewise.
17001 (vorr_u32): Likewise.
17002 (vorr_s64): Likewise.
17003 (vorr_u64): Likewise.
17004 (vorrq_s8): Likewise.
17005 (vorrq_s16): Likewise.
17006 (vorrq_s32): Likewise.
17007 (vorrq_s64): Likewise.
17008 (vorrq_u8): Likewise.
17009 (vorrq_u16): Likewise.
17010 (vorrq_u32): Likewise.
17011 (vorrq_u64): Likewise.
17012 (veor_s8): Likewise.
17013 (veor_s16): Likewise.
17014 (veor_s32): Likewise.
17015 (veor_u8): Likewise.
17016 (veor_u16): Likewise.
17017 (veor_u32): Likewise.
17018 (veor_s64): Likewise.
17019 (veor_u64): Likewise.
17020 (veorq_s8): Likewise.
17021 (veorq_s16): Likewise.
17022 (veorq_s32): Likewise.
17023 (veorq_s64): Likewise.
17024 (veorq_u8): Likewise.
17025 (veorq_u16): Likewise.
17026 (veorq_u32): Likewise.
17027 (veorq_u64): Likewise.
17028 (vbic_s8): Likewise.
17029 (vbic_s16): Likewise.
17030 (vbic_s32): Likewise.
17031 (vbic_u8): Likewise.
17032 (vbic_u16): Likewise.
17033 (vbic_u32): Likewise.
17034 (vbic_s64): Likewise.
17035 (vbic_u64): Likewise.
17036 (vbicq_s8): Likewise.
17037 (vbicq_s16): Likewise.
17038 (vbicq_s32): Likewise.
17039 (vbicq_s64): Likewise.
17040 (vbicq_u8): Likewise.
17041 (vbicq_u16): Likewise.
17042 (vbicq_u32): Likewise.
17043 (vbicq_u64): Likewise.
17044 (vorn_s8): Likewise.
17045 (vorn_s16): Likewise.
17046 (vorn_s32): Likewise.
17047 (vorn_u8): Likewise.
17048 (vorn_u16): Likewise.
17049 (vorn_u32): Likewise.
17050 (vorn_s64): Likewise.
17051 (vorn_u64): Likewise.
17052 (vornq_s8): Likewise.
17053 (vornq_s16): Likewise.
17054 (vornq_s32): Likewise.
17055 (vornq_s64): Likewise.
17056 (vornq_u8): Likewise.
17057 (vornq_u16): Likewise.
17058 (vornq_u32): Likewise.
17059 (vornq_u64): Likewise.
17060
17061 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17062
17063 * wide-int.cc (UTItype): Define.
17064 (UDWtype): Define for appropriate W_TYPE_SIZE.
17065
17066 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
17067
17068 PR tree-optimization/59100
17069 * tree-ssa-phiopt.c: Include tree-inline.h.
17070 (neutral_element_p, absorbing_element_p): New functions.
17071 (value_replacement): Handle conditional binary operations with a
17072 neutral or absorbing element.
17073
17074 2014-05-08 Richard Biener <rguenther@suse.de>
17075
17076 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
17077 folding the expression.
17078 (valueize_expr): Remove.
17079 (visit_reference_op_load): Do not valueize the result of
17080 vn_get_expr_for.
17081 (simplify_binary_expression): Likewise.
17082 (simplify_unary_expression): Likewise.
17083
17084 2014-05-08 Richard Biener <rguenther@suse.de>
17085
17086 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
17087 looking at TYPE_ARG_TYPES.
17088
17089 2014-05-08 Richard Biener <rguenther@suse.de>
17090
17091 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17092 pointer propagation special-case.
17093
17094 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17095
17096 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17097 core part of address expressions.
17098
17099 2014-05-08 Alan Modra <amodra@gmail.com>
17100
17101 PR target/60737
17102 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17103 loads and stores when -mno-strict-align at any alignment.
17104 (expand_block_clear): Similarly. Also correct calculation of
17105 instruction count.
17106
17107 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17108
17109 PR middle-end/39246
17110 * tree-complex.c (expand_complex_move): Keep line info when expanding
17111 complex move.
17112 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17113 of complex expression. Use new argument to display correct location
17114 for values coming from phi statement.
17115 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17116 (warn_uninitialized_phi): Pass location of phi argument to
17117 warn_uninit.
17118 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17119 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17120
17121 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17122
17123 * config/rs6000/predicates.md (indexed_address_mem): New.
17124 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17125 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17126 fpstore_ux, fpstore_u.
17127 (sign_extend, indexed, update): New.
17128 (cell_micro): Adjust.
17129 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17130 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17131 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17132 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17133 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17134 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17135 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17136 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17137 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17138 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17139 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17140 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17141 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17142 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17143 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17144
17145 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17146 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17147 *vsx_extract_<mode>_store): Adjust.
17148 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17149 is_cracked_insn, insn_must_be_first_in_group,
17150 insn_must_be_last_in_group): Adjust.
17151
17152 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17153 Adjust.
17154 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17155 ppc440-fpstore): Adjust.
17156 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17157 ppc476-fpstore): Adjust.
17158 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17159 ppc601-fpstore): Adjust.
17160 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17161 Adjust.
17162 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17163 Adjust.
17164 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17165 ppc7450-fpstore): Adjust.
17166 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17167 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17168 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17169 Adjust.
17170 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17171 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17172 cell-fpstore, cell-fpstore-update): Adjust.
17173 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17174 ppce300c3_store, ppce300c3_fpstore): Adjust.
17175 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17176 e500mc_fpstore): Adjust.
17177 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17178 e500mc64_store, e500mc64_fpstore): Adjust.
17179 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17180 e5500_fpstore): Adjust.
17181 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17182 e6500_fpstore): Adjust.
17183 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17184 Adjust.
17185 * config/rs6000/power4.md (power4-load, power4-load-ext,
17186 power4-load-ext-update, power4-load-ext-update-indexed,
17187 power4-load-update-indexed, power4-load-update, power4-fpload,
17188 power4-fpload-update, power4-store, power4-store-update,
17189 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17190 Adjust.
17191 * config/rs6000/power5.md (power5-load, power5-load-ext,
17192 power5-load-ext-update, power5-load-ext-update-indexed,
17193 power5-load-update-indexed, power5-load-update, power5-fpload,
17194 power5-fpload-update, power5-store, power5-store-update,
17195 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17196 Adjust.
17197 * config/rs6000/power6.md (power6-load, power6-load-ext,
17198 power6-load-update, power6-load-update-indexed,
17199 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17200 power6-fpload-update, power6-store, power6-store-update,
17201 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17202 Adjust.
17203 * config/rs6000/power7.md (power7-load, power7-load-ext,
17204 power7-load-update, power7-load-update-indexed,
17205 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17206 power7-fpload-update, power7-store, power7-store-update,
17207 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17208 Adjust.
17209 * config/rs6000/power8.md (power8-load, power8-load-update,
17210 power8-load-ext, power8-load-ext-update, power8-fpload,
17211 power8-fpload-update, power8-store, power8-store-update-indexed,
17212 power8-fpstore, power8-fpstore-update): Adjust.
17213 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17214 Adjust.
17215 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17216 titan_lsu_store, titan_lsu_fpstore): Adjust.
17217 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17218
17219 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17220
17221 PR target/60884
17222 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17223 unrolled byte insns. Emit address increments after move insns.
17224
17225 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17226
17227 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17228 const_gimple, rather than a gimple.
17229 (gimple_call_builtin_p): Likewise, for the three variants.
17230
17231 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17232 (gimple_call_builtin_p): Likewise, for the three variants.
17233
17234 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17235
17236 PR tree-optimization/61095
17237 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17238
17239 2014-05-07 Richard Biener <rguenther@suse.de>
17240
17241 PR tree-optimization/61034
17242 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17243 (maybe_skip_until): Use translate to take into account
17244 lattices when trying to do disambiguations.
17245 (get_continuation_for_phi_1): Likewise.
17246 (get_continuation_for_phi): Adjust for added translate arguments.
17247 (walk_non_aliased_vuses): Likewise.
17248 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17249 (walk_non_aliased_vuses): Likewise.
17250 (call_may_clobber_ref_p_1): Declare.
17251 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17252 calls. Stop early if we are only supposed to disambiguate.
17253 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17254
17255 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17256
17257 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17258 Emit an error when the function has arguments.
17259
17260 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17261
17262 * cfgloop.h (unswitch_loops): Remove.
17263 * doc/passes.texi: Remove references to loop-unswitch.c
17264 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17265
17266 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17267
17268 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17269 check for loads group of length 3.
17270 (vect_permute_load_chain): New permutations for loads group of
17271 length 3.
17272 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17273 of vec_perm_shuffle for the new permutations.
17274
17275 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17276
17277 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17278 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17279 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17280 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17281 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17282 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17283 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17284 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17285
17286 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17287
17288 * loop-unswitch.c: Delete.
17289
17290 2014-05-07 Richard Biener <rguenther@suse.de>
17291
17292 * config.gcc: Always set need_64bit_hwint to yes.
17293
17294 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17295
17296 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17297 of using optimize_size.
17298
17299 2014-05-06 Mike Stump <mikestump@comcast.net>
17300
17301 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17302
17303 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17304
17305 * config/i386/sse.md (*mov<mode>_internal)
17306 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17307 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17308 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17309 (*<code><mode>3, *andnot<mode>3<mask_name>)
17310 (<mask_codefor><code><mode>3<mask_name>): Only consider
17311 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17312
17313 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17314
17315 Revert:
17316 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17317
17318 * lra-constraints.c (valid_address_p): Move earlier in file.
17319 Add a constraint argument to the address_info version.
17320 (satisfies_memory_constraint_p): New function.
17321 (satisfies_address_constraint_p): Likewise.
17322 (process_alt_operands, curr_insn_transform): Use them.
17323 (process_address): Pass the constraint to valid_address_p when
17324 checking address operands.
17325
17326 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17327
17328 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17329 to their respective blocks. Fix inadvertent use of "node".
17330
17331 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17332
17333 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17334 out from...
17335 (init_emit_once): ...here.
17336 * rtl.h (init_derived_machine_modes): Declare.
17337 * toplev.c (do_compile): Call it even if no_backend.
17338
17339 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17340 Mike Stump <mikestump@comcast.net>
17341 Richard Sandiford <rdsandiford@googlemail.com>
17342 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17343
17344 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17345 (rtx_equal_for_memref_p): Update comment.
17346 (adjust_offset_for_component_ref): Use wide-int interfaces.
17347 * builtins.c (get_object_alignment_2): Likewise.
17348 (c_readstr): Likewise.
17349 (target_char_cast): Add comment.
17350 (determine_block_size): Use wide-int interfaces.
17351 (expand_builtin_signbit): Likewise.
17352 (fold_builtin_int_roundingfn): Likewise.
17353 (fold_builtin_bitop): Likewise.
17354 (fold_builtin_bswap): Likewise.
17355 (fold_builtin_logarithm): Use signop.
17356 (fold_builtin_pow): Likewise.
17357 (fold_builtin_memory_op): Use wide-int interfaces.
17358 (fold_builtin_object_size): Likewise.
17359 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17360 nb_iterations_estimate.
17361 (record_niter_bound): Use wide-int interfaces.
17362 (get_estimated_loop_iterations_int): Likewise.
17363 (get_estimated_loop_iterations): Likewise.
17364 (get_max_loop_iterations): Likewise.
17365 * cfgloop.h: Include wide-int.h.
17366 (struct nb_iter_bound): Change bound to widest_int.
17367 (struct loop): Change nb_iterations_upper_bound and
17368 nb_iterations_estimate to widest_int.
17369 (record_niter_bound): Switch to use widest_int.
17370 (get_estimated_loop_iterations): Likewise.
17371 (get_max_loop_iterations): Likewise.
17372 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17373 update for wide-int.
17374 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17375 * combine.c (try_combine): Likewise.
17376 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17377 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17378 interfaces.
17379 (aarch64_float_const_representable_p): Likewise.
17380 * config/arc/arc.c: Include wide-int.h.
17381 (arc_can_use_doloop_p): Use wide-int interfaces.
17382 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17383 (vfp3_const_double_index): Likewise.
17384 * config/avr/avr.c (avr_out_round): Likewise.
17385 (avr_fold_builtin): Likewise.
17386 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17387 (bfin_can_use_doloop_p): Likewise.
17388 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17389 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17390 * config/i386/i386.c: Include wide-int.h.
17391 (ix86_data_alignment): Use wide-int interfaces.
17392 (ix86_local_alignment): Likewise.
17393 (ix86_emit_swsqrtsf): Update real_from_integer.
17394 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17395 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17396 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17397 (zero_constant): Likewise.
17398 (input_operand): Likewise.
17399 (splat_input_operand): Likewise.
17400 (non_logical_cint_operand): Change const_double to const_wide_int.
17401 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17402 (easy_altivec_constant): Remove comment.
17403 (paired_expand_vector_init): Use CONSTANT_P.
17404 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17405 (rs6000_emit_move): Update checks.
17406 (rs6000_aggregate_candidate): Use wide-int interfaces.
17407 (rs6000_expand_ternop_builtin): Likewise.
17408 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17409 (rs6000_assemble_integer): Likewise.
17410 (rs6000_hash_constant): Likewise.
17411 (output_toc): Likewise.
17412 (rs6000_rtx_costs): Likewise.
17413 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17414 * config/rs6000/rs6000-c.c: Include wide-int.h.
17415 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17416 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17417 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17418 Handle CONST_WIDE_INT.
17419 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17420 Use tree_fits_uhwi_p.
17421 * config/sparc/sparc.c: Include wide-int.h.
17422 (sparc_fold_builtin): Use wide-int interfaces.
17423 * config/vax/vax.c: Include wide-int.h.
17424 (vax_float_literal): Use real_from_integer.
17425 * coretypes.h (struct hwivec_def): New.
17426 (hwivec): New.
17427 (const_hwivec): New.
17428 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17429 (equiv_constant): Handle CONST_WIDE_INT.
17430 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17431 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17432 * dbxout.c (stabstr_U): Use wide-int interfaces.
17433 (dbxout_type): Update to use cst_fits_shwi_p.
17434 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17435 (TARGET_SUPPORTS_WIDE_INT): Add default.
17436 * dfp.c: Include wide-int.h.
17437 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17438 decimal_real_to_integer.
17439 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17440 decimal_real_to_integer.
17441 * doc/generic.texi (Constant expressions): Update for wide_int.
17442 * doc/rtl.texi (const_double): Likewise.
17443 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17444 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17445 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17446 (REAL_VALUE_FROM_INT): Remove.
17447 (TARGET_SUPPORTS_WIDE_INT): New.
17448 * doc/tm.texi: Regenerate.
17449 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17450 * double-int.h: Include wide-int.h.
17451 (struct wi::int_traits): New.
17452 * dwarf2out.c (get_full_len): New.
17453 (dw_val_equal_p): Add case dw_val_class_wide_int.
17454 (size_of_loc_descr): Likewise.
17455 (output_loc_operands): Likewise.
17456 (insert_double): Remove.
17457 (insert_wide_int): New.
17458 (add_AT_wide): New.
17459 (print_die): Add case dw_val_class_wide_int.
17460 (attr_checksum): Likewise.
17461 (attr_checksum_ordered): Likewise.
17462 (same_dw_val_p): Likewise.
17463 (size_of_die): Likewise.
17464 (value_format): Likewise.
17465 (output_die): Likewise.
17466 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17467 Use wide-int.
17468 (clz_loc_descriptor): Use wide-int interfaces.
17469 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17470 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17471 (round_up_to_align): Use wide-int interfaces.
17472 (field_byte_offset): Likewise.
17473 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17474 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17475 CONST_DOUBLE handling. Use wide-int interfaces.
17476 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17477 (gen_enumeration_type_die): Use add_AT_wide.
17478 (hash_loc_operands): Add case dw_val_class_wide_int.
17479 (compare_loc_operands): Likewise.
17480 * dwarf2out.h: Include wide-int.h.
17481 (wide_int_ptr): New.
17482 (enum dw_val_class): Add dw_val_class_wide_int.
17483 (struct dw_val_struct): Add val_wide.
17484 * emit-rtl.c (const_wide_int_htab): New.
17485 (const_wide_int_htab_hash): New.
17486 (const_wide_int_htab_eq): New.
17487 (lookup_const_wide_int): New.
17488 (const_double_htab_hash): Use wide-int interfaces.
17489 (const_double_htab_eq): Likewise.
17490 (rtx_to_double_int): Conditionally compile for wide-int.
17491 (immed_double_int_const): Rename to immed_wide_int_const and
17492 update for wide-int.
17493 (immed_double_const): Conditionally compile for wide-int.
17494 (init_emit_once): Use wide-int interfaces.
17495 * explow.c (plus_constant): Likewise.
17496 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17497 (lshift_value): Use wide-int interfaces.
17498 (expand_mult): Likewise.
17499 (choose_multiplier): Likewise.
17500 (expand_smod_pow2): Likewise.
17501 (make_tree): Likewise.
17502 * expr.c (convert_modes): Consolidate handling of constants.
17503 Use wide-int interfaces.
17504 (emit_group_load_1): Add note.
17505 (store_expr): Update comment.
17506 (get_inner_reference): Use wide-int interfaces.
17507 (expand_constructor): Update comment.
17508 (expand_expr_real_2): Use wide-int interfaces.
17509 (expand_expr_real_1): Likewise.
17510 (reduce_to_bit_field_precision): Likewise.
17511 (const_vector_from_tree): Likewise.
17512 * final.c: Include wide-int-print.h.
17513 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17514 * fixed-value.c: Include wide-int.h.
17515 (fixed_from_string): Use wide-int interfaces.
17516 (fixed_to_decimal): Likewise.
17517 (fixed_convert_from_real): Likewise.
17518 (real_convert_from_fixed): Likewise.
17519 * fold-const.h (mem_ref_offset): Return an offset_int.
17520 (div_if_zero_remainder): Remove code parameter.
17521 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17522 Use wide-int interfaces.
17523 (may_negate_without_overflow_p): Use wide-int interfaces.
17524 (negate_expr_p): Likewise.
17525 (fold_negate_expr): Likewise.
17526 (int_const_binop_1): Likewise.
17527 (const_binop): Likewise.
17528 (fold_convert_const_int_from_int): Likewise.
17529 (fold_convert_const_int_from_real): Likewise.
17530 (fold_convert_const_int_from_fixed): Likewise.
17531 (fold_convert_const_fixed_from_int): Likewise.
17532 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17533 (sign_bit_p): Use wide-int interfaces.
17534 (make_range_step): Likewise.
17535 (build_range_check): Likewise. Pass an integer of the correct type
17536 instead of using integer_one_node.
17537 (range_predecessor): Pass an integer of the correct type instead
17538 of using integer_one_node.
17539 (range_successor): Likewise.
17540 (merge_ranges): Likewise.
17541 (unextend): Use wide-int interfaces.
17542 (extract_muldiv_1): Likewise.
17543 (fold_div_compare): Likewise.
17544 (fold_single_bit_test): Likewise.
17545 (fold_sign_changed_comparison): Likewise.
17546 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17547 (fold_plusminus_mult_expr): Use wide-int interfaces.
17548 (native_encode_int): Likewise.
17549 (native_interpret_int): Likewise.
17550 (fold_unary_loc): Likewise.
17551 (pointer_may_wrap_p): Likewise.
17552 (size_low_cst): Likewise.
17553 (mask_with_tz): Likewise.
17554 (fold_binary_loc): Likewise.
17555 (fold_ternary_loc): Likewise.
17556 (multiple_of_p): Likewise.
17557 (tree_call_nonnegative_warnv_p): Update calls to
17558 tree_int_cst_min_precision and real_from_integer.
17559 (fold_negate_const): Use wide-int interfaces.
17560 (fold_abs_const): Likewise.
17561 (fold_relational_const): Use tree_int_cst_lt.
17562 (round_up_loc): Use wide-int interfaces.
17563 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17564 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17565 * gengtype.c: Remove include of double-int.h.
17566 (do_typedef): Use wide-int interfaces.
17567 (open_base_files): Add wide-int.h.
17568 (main): Add offset_int and widest_int typedefs.
17569 * gengtype-lex.l: Handle "^".
17570 (CXX_KEYWORD): Add "static".
17571 * gengtype-parse.c (require3): New.
17572 (require_template_declaration): Handle constant template arguments
17573 and nested templates.
17574 * gengtype-state.c: Don't include "double-int.h".
17575 * genpreds.c (write_one_predicate_function): Update comment.
17576 (write_tm_constrs_h): Add check for hval and lval use in
17577 CONST_WIDE_INT.
17578 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17579 (add_to_sequence): Likewise.
17580 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17581 and const_double_operand.
17582 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17583 interfaces.
17584 * gimple-fold.c (get_base_constructor): Likewise.
17585 (fold_array_ctor_reference): Likewise.
17586 (fold_nonarray_ctor_reference): Likewise.
17587 (fold_const_aggregate_ref_1): Likewise.
17588 (gimple_val_nonnegative_real_p): Likewise.
17589 (gimple_fold_indirect_ref): Likewise.
17590 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17591 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17592 (struct slsr_cand_d): Change index to be widest_int.
17593 (struct incr_info_d): Change incr to be widest_int.
17594 (alloc_cand_and_find_basis): Use wide-int interfaces.
17595 (slsr_process_phi): Likewise.
17596 (backtrace_base_for_ref): Likewise. Return a widest_int.
17597 (restructure_reference): Take a widest_int instead of a double_int.
17598 (slsr_process_ref): Use wide-int interfaces.
17599 (create_mul_ssa_cand): Likewise.
17600 (create_mul_imm_cand): Likewise.
17601 (create_add_ssa_cand): Likewise.
17602 (create_add_imm_cand): Take a widest_int instead of a double_int.
17603 (slsr_process_add): Use wide-int interfaces.
17604 (slsr_process_cast): Likewise.
17605 (slsr_process_copy): Likewise.
17606 (dump_candidate): Likewise.
17607 (dump_incr_vec): Likewise.
17608 (replace_ref): Likewise.
17609 (cand_increment): Likewise. Return a widest_int.
17610 (cand_abs_increment): Likewise.
17611 (replace_mult_candidate): Take a widest_int instead of a double_int.
17612 (replace_unconditional_candidate): Use wide-int interfaces.
17613 (incr_vec_index): Take a widest_int instead of a double_int.
17614 (create_add_on_incoming_edge): Likewise.
17615 (create_phi_basis): Use wide-int interfaces.
17616 (replace_conditional_candidate): Likewise.
17617 (record_increment): Take a widest_int instead of a double_int.
17618 (record_phi_increments): Use wide-int interfaces.
17619 (phi_incr_cost): Take a widest_int instead of a double_int.
17620 (lowest_cost_path): Likewise.
17621 (total_savings): Likewise.
17622 (analyze_increments): Use wide-int interfaces.
17623 (ncd_with_phi): Take a widest_int instead of a double_int.
17624 (ncd_of_cand_and_phis): Likewise.
17625 (nearest_common_dominator_for_cands): Likewise.
17626 (insert_initializers): Use wide-int interfaces.
17627 (all_phi_incrs_profitable): Likewise.
17628 (replace_one_candidate): Likewise.
17629 (replace_profitable_candidates): Likewise.
17630 * godump.c: Include wide-int-print.h.
17631 (go_output_typedef): Use wide-int interfaces.
17632 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17633 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17634 (build_loop_iteration_domains): Likewise.
17635 * hooks.h: Include wide-int.h rather than double-int.h.
17636 (hook_bool_dint_dint_uint_bool_true): Delete.
17637 (hook_bool_wint_wint_uint_bool_true): Declare.
17638 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17639 (hook_bool_wint_wint_uint_bool_true): New.
17640 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17641 interfaces.
17642 (ubsan_expand_si_overflow_mul_check): Likewise.
17643 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17644 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17645 (get_ancestor_addr_info): Likewise.
17646 (ipa_modify_call_arguments): Likewise.
17647 * loop-doloop.c (doloop_modify): Likewise.
17648 (doloop_optimize): Likewise.
17649 * loop-iv.c (iv_number_of_iterations): Likewise.
17650 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17651 (unroll_loop_constant_iterations): Likewise.
17652 (decide_unroll_runtime_iterations): Likewise.
17653 (unroll_loop_runtime_iterations): Likewise.
17654 (decide_peel_simple): Likewise.
17655 (decide_unroll_stupid): Likewise.
17656 * lto-streamer-in.c (streamer_read_wi): Add.
17657 (input_cfg): Use wide-int interfaces.
17658 (lto_input_tree_1): Likewise.
17659 * lto-streamer-out.c (streamer_write_wi): Add.
17660 (hash_tree): Use wide-int interfaces.
17661 (output_cfg): Likewise.
17662 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17663 (GTFILES): Add wide-int.h and signop.h.
17664 (TAGS): Look for .cc files too.
17665 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17666 * optabs.c (expand_subword_shift): Likewise.
17667 (expand_doubleword_shift): Likewise.
17668 (expand_absneg_bit): Likewise.
17669 (expand_copysign_absneg): Likewise.
17670 (expand_copysign_bit): Likewise.
17671 * postreload.c (reload_cse_simplify_set): Likewise.
17672 * predict.c (predict_iv_comparison): Likewise.
17673 * pretty-print.h: Include wide-int-print.h.
17674 (pp_wide_int) New.
17675 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17676 * print-tree.c: Include wide-int-print.h.
17677 (print_node_brief): Use wide-int interfaces.
17678 (print_node): Likewise.
17679 * read-rtl.c (validate_const_wide_int): New.
17680 (read_rtx_code): Add CONST_WIDE_INT case.
17681 * real.c: Include wide-int.h.
17682 (real_to_integer2): Delete.
17683 (real_to_integer): New function, returning a wide_int.
17684 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17685 (ten_to_ptwo): Update call to real_from_integer.
17686 (real_digit): Likewise.
17687 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17688 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17689 (REAL_VALUE_TO_INT): Delete.
17690 (real_to_integer): Declare a wide-int form.
17691 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17692 * recog.c (const_int_operand): Improve comment.
17693 (const_scalar_int_operand): New.
17694 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17695 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17696 (split_double): Likewise.
17697 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17698 (rtx_size): Likewise.
17699 (rtx_alloc_stat_v): New.
17700 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17701 (cwi_output_hex): New.
17702 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17703 (cwi_check_failed_bounds): New.
17704 * rtl.def (CONST_WIDE_INT): New.
17705 * rtl.h: Include <utility> and wide-int.h.
17706 (struct hwivec_def): New.
17707 (CWI_GET_NUM_ELEM): New.
17708 (CWI_PUT_NUM_ELEM): New.
17709 (struct rtx_def): Add num_elem and hwiv.
17710 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17711 (CASE_CONST_UNIQUE): Likewise.
17712 (CASE_CONST_ANY): Likewise.
17713 (CONST_SCALAR_INT_P): Likewise.
17714 (CONST_WIDE_INT_P): New.
17715 (CWI_ELT): New.
17716 (HWIVEC_CHECK): New.
17717 (cwi_check_failed_bounds): New.
17718 (CWI_ELT): New.
17719 (HWIVEC_CHECK): New.
17720 (CONST_WIDE_INT_VEC) New.
17721 (CONST_WIDE_INT_NUNITS) New.
17722 (CONST_WIDE_INT_ELT) New.
17723 (rtx_mode_t): New type.
17724 (wi::int_traits <rtx_mode_t>): New.
17725 (wi::shwi): New.
17726 (wi::min_value): New.
17727 (wi::max_value): New.
17728 (rtx_alloc_v) New.
17729 (const_wide_int_alloc): New.
17730 (immed_wide_int_const): New.
17731 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17732 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17733 * signop.h: New file.
17734 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17735 (simplify_const_unary_operation): Use wide-int interfaces.
17736 (simplify_binary_operation_1): Likewise.
17737 (simplify_const_binary_operation): Likewise.
17738 (simplify_const_relational_operation): Likewise.
17739 (simplify_immed_subreg): Likewise.
17740 * stmt.c (expand_case): Likewise.
17741 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17742 signop rather than a bool.
17743 * stor-layout.c (layout_type): Use wide-int interfaces.
17744 (initialize_sizetypes): Update calls to
17745 set_min_and_max_values_for_integral_type.
17746 (set_min_and_max_values_for_integral_type): Take a signop rather
17747 than a bool. Use wide-int interfaces.
17748 (fixup_signed_type): Update accordingly. Remove
17749 HOST_BITS_PER_DOUBLE_INT limit.
17750 (fixup_unsigned_type): Likewise.
17751 * system.h (STATIC_CONSTANT_P): New.
17752 (STATIC_ASSERT): New.
17753 * target.def (can_use_doloop_p): Take widest_ints rather than
17754 double_ints.
17755 * target.h: Include wide-int.h rather than double-int.h.
17756 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17757 than double_ints.
17758 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17759 rather than INT_CST_LT_UNSIGNED.
17760 (can_use_doloop_if_innermost): Take widest_ints rather than
17761 double_ints.
17762 * tree-affine.c: Include wide-int-print.h.
17763 (double_int_ext_for_comb): Delete.
17764 (wide_int_ext_for_comb): New.
17765 (aff_combination_zero): Use wide-int interfaces.
17766 (aff_combination_const): Take a widest_int instead of a double_int.
17767 (aff_combination_elt): Use wide-int interfaces.
17768 (aff_combination_scale): Take a widest_int instead of a double_int.
17769 (aff_combination_add_elt): Likewise.
17770 (aff_combination_add_cst): Likewise.
17771 (aff_combination_add): Use wide-int interfaces.
17772 (aff_combination_convert): Likewise.
17773 (tree_to_aff_combination): Likewise.
17774 (add_elt_to_tree): Take a widest_int instead of a double_int.
17775 (aff_combination_to_tree): Use wide-int interfaces.
17776 (aff_combination_remove_elt): Likewise.
17777 (aff_combination_add_product): Take a widest_int instead of
17778 a double_int.
17779 (aff_combination_mult): Use wide-int interfaces.
17780 (aff_combination_expand): Likewise.
17781 (double_int_constant_multiple_p): Delete.
17782 (wide_int_constant_multiple_p): New.
17783 (aff_combination_constant_multiple_p): Take a widest_int pointer
17784 instead of a double_int pointer.
17785 (print_aff): Use wide-int interfaces.
17786 (get_inner_reference_aff): Take a widest_int pointer
17787 instead of a double_int pointer.
17788 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17789 * tree-affine.h: Include wide-int.h.
17790 (struct aff_comb_elt): Change type of coef to widest_int.
17791 (struct affine_tree_combination): Change type of offset to widest_int.
17792 (double_int_ext_for_comb): Delete.
17793 (wide_int_ext_for_comb): New.
17794 (aff_combination_const): Use widest_int instead of double_int.
17795 (aff_combination_scale): Likewise.
17796 (aff_combination_add_elt): Likewise.
17797 (aff_combination_constant_multiple_p): Likewise.
17798 (get_inner_reference_aff): Likewise.
17799 (aff_comb_cannot_overlap_p): Likewise.
17800 (aff_combination_zero_p): Use wide-int interfaces.
17801 * tree.c: Include tree.h.
17802 (init_ttree): Use make_int_cst.
17803 (tree_code_size): Removed code for INTEGER_CST case.
17804 (tree_size): Add INTEGER_CST case.
17805 (make_node_stat): Update comment.
17806 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17807 (build_int_cst_type): Use wide-int interfaces.
17808 (double_int_to_tree): Likewise.
17809 (double_int_fits_to_tree_p): Delete.
17810 (force_fit_type_double): Delete.
17811 (force_fit_type): New.
17812 (int_cst_hash_hash): Use wide-int interfaces.
17813 (int_cst_hash_eq): Likewise.
17814 (build_int_cst_wide): Delete.
17815 (wide_int_to_tree): New.
17816 (cache_integer_cst): Use wide-int interfaces.
17817 (build_low_bits_mask): Likewise.
17818 (cst_and_fits_in_hwi): Likewise.
17819 (real_value_from_int_cst): Likewise.
17820 (make_int_cst_stat): New.
17821 (integer_zerop): Use wide_int interfaces.
17822 (integer_onep): Likewise.
17823 (integer_all_onesp): Likewise.
17824 (integer_pow2p): Likewise.
17825 (integer_nonzerop): Likewise.
17826 (tree_log2): Likewise.
17827 (tree_floor_log2): Likewise.
17828 (tree_ctz): Likewise.
17829 (int_size_in_bytes): Likewise.
17830 (mem_ref_offset): Return an offset_int rather than a double_int.
17831 (build_type_attribute_qual_variant): Use wide_int interfaces.
17832 (type_hash_eq): Likewise
17833 (tree_int_cst_equal): Likewise.
17834 (tree_int_cst_lt): Delete.
17835 (tree_int_cst_compare): Likewise.
17836 (tree_fits_shwi_p): Use wide_int interfaces.
17837 (tree_fits_uhwi_p): Likewise.
17838 (tree_int_cst_sign_bit): Likewise.
17839 (tree_int_cst_sgn): Likewise.
17840 (tree_int_cst_min_precision): Take a signop rather than a bool.
17841 (simple_cst_equal): Use wide_int interfaces.
17842 (compare_tree_int): Likewise.
17843 (iterative_hash_expr): Likewise.
17844 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17845 INT_CST_LT.
17846 (get_type_static_bounds): Use wide_int interfaces.
17847 (tree_int_cst_elt_check_failed): New.
17848 (build_common_tree_nodes): Reordered to set prec before filling in
17849 value.
17850 (int_cst_value): Check cst_and_fits_in_hwi.
17851 (widest_int_cst_value): Use wide_int interfaces.
17852 (upper_bound_in_type): Likewise.
17853 (lower_bound_in_type): Likewise.
17854 (num_ending_zeros): Likewise.
17855 (drop_tree_overflow): Likewise.
17856 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17857 (gen_conditions_for_pow_cst_base): Likewise.
17858 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17859 (group_case_labels_stmt): Use wide-int interfaces.
17860 (verify_gimple_assign_binary): Likewise.
17861 (print_loop): Likewise.
17862 * tree-chrec.c (tree_fold_binomial): Likewise.
17863 * tree-core.h (struct tree_base): Add int_length.
17864 (struct tree_int_cst): Change rep of value.
17865 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17866 (dr_may_alias_p): Likewise.
17867 (max_stmt_executions_tree): Likewise.
17868 * tree.def (INTEGER_CST): Update comment.
17869 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17870 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17871 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17872 (dequeue_and_dump): Use wide-int interfaces.
17873 * tree.h: Include wide-int.h.
17874 (NULL_TREE): Moved to earlier loc in file.
17875 (TREE_INT_CST_ELT_CHECK): New.
17876 (tree_int_cst_elt_check_failed): New.
17877 (TYPE_SIGN): New.
17878 (TREE_INT_CST): Delete.
17879 (TREE_INT_CST_LOW): Use wide-int interfaces.
17880 (TREE_INT_CST_HIGH): Delete.
17881 (TREE_INT_CST_NUNITS): New.
17882 (TREE_INT_CST_EXT_NUNITS): Likewise.
17883 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17884 (TREE_INT_CST_ELT): Likewise.
17885 (INT_CST_LT): Delete.
17886 (tree_int_cst_elt_check): New (two forms).
17887 (type_code_size): Update comment.
17888 (make_int_cst_stat, make_int_cst): New.
17889 (tree_to_double_int): Delete.
17890 (double_int_fits_to_tree_p): Delete.
17891 (force_fit_type_double): Delete.
17892 (build_int_cstu): Replace with out-of-line function.
17893 (build_int_cst_wide): Delete.
17894 (tree_int_cst_lt): Define inline.
17895 (tree_int_cst_le): New.
17896 (tree_int_cst_compare): Define inline.
17897 (tree_int_cst_min_precision): Take a signop rather than a bool.
17898 (wi::int_traits <const_tree>): New.
17899 (wi::int_traits <tree>): New.
17900 (wi::extended_tree): New.
17901 (wi::int_traits <wi::extended_tree>): New.
17902 (wi::to_widest): New.
17903 (wi::to_offset): New.
17904 (wi::fits_to_tree_p): New.
17905 (wi::min_value): New.
17906 (wi::max_value): New.
17907 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17908 (copy_tree_body_r): Likewise.
17909 * tree-object-size.c (compute_object_offset): Likewise.
17910 (addr_object_size): Likewise.
17911 * tree-predcom.c: Include wide-int-print.h.
17912 (struct dref_d): Change type of offset to widest_int.
17913 (dump_dref): Call wide-int printer.
17914 (aff_combination_dr_offset): Use wide-int interfaces.
17915 (determine_offset): Take a widest_int pointer rather than a
17916 double_int pointer.
17917 (split_data_refs_to_components): Use wide-int interfaces.
17918 (suitable_component_p): Likewise.
17919 (order_drefs): Likewise.
17920 (add_ref_to_chain): Likewise.
17921 (valid_initializer_p): Likewise.
17922 (determine_roots_comp): Likewise.
17923 * tree-pretty-print.c: Include wide-int-print.h.
17924 (dump_generic_node): Use wide-int interfaces.
17925 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17926 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17927 (move_fixed_address_to_symbol): Likewise.
17928 (move_hint_to_base): Likewise.
17929 (move_pointer_to_base): Likewise.
17930 (move_variant_to_index): Likewise.
17931 (most_expensive_mult_to_index): Likewise.
17932 (addr_to_parts): Likewise.
17933 (copy_ref_info): Likewise.
17934 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17935 (indirect_refs_may_alias_p): Likewise.
17936 (stmt_kills_ref_p_1): Likewise.
17937 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17938 * tree-ssa-ccp.c: Update comment at top of file. Include
17939 wide-int-print.h.
17940 (struct prop_value_d): Change type of mask to widest_int.
17941 (extend_mask): New function.
17942 (dump_lattice_value): Use wide-int interfaces.
17943 (get_default_value): Likewise.
17944 (set_constant_value): Likewise.
17945 (set_value_varying): Likewise.
17946 (valid_lattice_transition): Likewise.
17947 (set_lattice_value): Likewise.
17948 (value_to_double_int): Delete.
17949 (value_to_wide_int): New.
17950 (get_value_from_alignment): Use wide-int interfaces.
17951 (get_value_for_expr): Likewise.
17952 (do_dbg_cnt): Likewise.
17953 (ccp_finalize): Likewise.
17954 (ccp_lattice_meet): Likewise.
17955 (bit_value_unop_1): Use widest_ints rather than double_ints.
17956 (bit_value_binop_1): Likewise.
17957 (bit_value_unop): Use wide-int interfaces.
17958 (bit_value_binop): Likewise.
17959 (bit_value_assume_aligned): Likewise.
17960 (evaluate_stmt): Likewise.
17961 (ccp_fold_stmt): Likewise.
17962 (visit_cond_stmt): Likewise.
17963 (ccp_visit_stmt): Likewise.
17964 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17965 (constant_pointer_difference): Likewise.
17966 (associate_pointerplus): Likewise.
17967 (combine_conversions): Likewise.
17968 * tree-ssa-loop.h: Include wide-int.h.
17969 (struct tree_niter_desc): Change type of max to widest_int.
17970 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17971 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17972 (remove_redundant_iv_tests): Likewise.
17973 (canonicalize_loop_induction_variables): Likewise.
17974 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17975 (constant_multiple_of): Take a widest_int pointer instead of
17976 a double_int pointer.
17977 (get_computation_aff): Use wide-int interfaces.
17978 (ptr_difference_cost): Likewise.
17979 (difference_cost): Likewise.
17980 (get_loop_invariant_expr_id): Likewise.
17981 (get_computation_cost_at): Likewise.
17982 (iv_elimination_compare_lt): Likewise.
17983 (may_eliminate_iv): Likewise.
17984 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17985 instead of double_int.
17986 (max_loop_iterations): Likewise.
17987 (max_stmt_executions): Likewise.
17988 (estimated_stmt_executions): Likewise.
17989 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17990 (split_to_var_and_offset): Use wide-int interfaces.
17991 (determine_value_range): Likewise.
17992 (bound_difference_of_offsetted_base): Likewise.
17993 (bounds_add): Take a widest_int instead of a double_int.
17994 (number_of_iterations_ne_max): Use wide-int interfaces.
17995 (number_of_iterations_ne): Likewise.
17996 (number_of_iterations_lt_to_ne): Likewise.
17997 (assert_loop_rolls_lt): Likewise.
17998 (number_of_iterations_lt): Likewise.
17999 (number_of_iterations_le): Likewise.
18000 (number_of_iterations_cond): Likewise.
18001 (number_of_iterations_exit): Likewise.
18002 (finite_loop_p): Likewise.
18003 (derive_constant_upper_bound_assign): Likewise.
18004 (derive_constant_upper_bound): Return a widest_int.
18005 (derive_constant_upper_bound_ops): Likewise.
18006 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
18007 (record_estimate): Take a widest_int rather than a double_int.
18008 (record_nonwrapping_iv): Use wide-int interfaces.
18009 (double_int_cmp): Delete.
18010 (wide_int_cmp): New.
18011 (bound_index): Take a widest_int rather than a double_int.
18012 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
18013 (maybe_lower_iteration_bound): Likewise.
18014 (estimate_numbers_of_iterations_loop): Likewise.
18015 (estimated_loop_iterations): Take a widest_int pointer than than
18016 a double_int pointer.
18017 (estimated_loop_iterations_int): Use wide-int interfaces.
18018 (max_loop_iterations): Take a widest_int pointer than than
18019 a double_int pointer.
18020 (max_loop_iterations_int): Use wide-int interfaces.
18021 (max_stmt_executions): Take a widest_int pointer than than
18022 a double_int pointer.
18023 (estimated_stmt_executions): Likewise.
18024 (n_of_executions_at_most): Use wide-int interfaces.
18025 (scev_probably_wraps_p): Likewise.
18026 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
18027 to real_to_integer.
18028 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
18029 interfaces.
18030 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
18031 double_ints. Adjust for trailing_wide_ints <3> representation.
18032 (set_nonzero_bits): Likewise.
18033 (get_range_info): Return wide_ints rather than double_ints.
18034 Adjust for trailing_wide_ints <3> representation.
18035 (get_nonzero_bits): Likewise.
18036 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
18037 representation.
18038 * tree-ssanames.h (struct range_info_def): Replace min, max and
18039 nonzero_bits with a trailing_wide_ints <3>.
18040 (set_range_info): Use wide_int_refs rather than double_ints.
18041 (set_nonzero_bits): Likewise.
18042 (get_range_info): Return wide_ints rather than double_ints.
18043 (get_nonzero_bits): Likewise.
18044 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
18045 * tree-ssa-pre.c (phi_translate_1): Likewise.
18046 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
18047 (acceptable_pow_call): Likewise.
18048 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
18049 interfaces.
18050 (vn_reference_fold_indirect): Likewise.
18051 (vn_reference_maybe_forwprop_address): Likewise.
18052 (valueize_refs_1): Likewise.
18053 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
18054 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
18055 tree_int_cst_lt and tree_int_cst_le.
18056 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
18057 interfaces.
18058 (streamer_alloc_tree): Likewise.
18059 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
18060 (streamer_write_tree_header): Likewise.
18061 (streamer_write_integer_cst): Likewise.
18062 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18063 (build_constructors): Likewise.
18064 (array_value_type): Likewise.
18065 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
18066 (vect_check_gather): Likewise.
18067 * tree-vect-generic.c (build_replicated_const): Likewise.
18068 (expand_vector_divmod): Likewise.
18069 * tree-vect-loop.c (vect_transform_loop): Likewise.
18070 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
18071 (vect_do_peeling_for_alignment): Likewise.
18072 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
18073 * tree-vrp.c: Include wide-int.h.
18074 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
18075 (extract_range_from_assert): Use wide-int interfaces.
18076 (vrp_int_const_binop): Likewise.
18077 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
18078 double_int pointers.
18079 (ranges_from_anti_range): Use wide-int interfaces.
18080 (quad_int_cmp): Delete.
18081 (quad_int_pair_sort): Likewise.
18082 (extract_range_from_binary_expr_1): Use wide-int interfaces.
18083 (extract_range_from_unary_expr_1): Likewise.
18084 (adjust_range_with_scev): Likewise.
18085 (masked_increment): Take and return wide_ints rather than double_ints.
18086 (register_edge_assert_for_2): Use wide-int interfaces.
18087 (check_array_ref): Likewise.
18088 (search_for_addr_array): Likewise.
18089 (maybe_set_nonzero_bits): Likewise.
18090 (union_ranges): Pass an integer of the correct type instead of
18091 using integer_one_node.
18092 (intersect_ranges): Likewise.
18093 (simplify_truth_ops_using_ranges): Likewise.
18094 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18095 (range_fits_type_p): Likewise.
18096 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18097 a bool.
18098 (simplify_conversion_using_ranges): Use wide-int interfaces.
18099 (simplify_float_conversion_using_ranges): Likewise.
18100 (vrp_finalize): Likewise.
18101 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18102 (gimple_stringops_transform): Likewise.
18103 * varasm.c (decode_addr_const): Likewise.
18104 (const_hash_1): Likewise.
18105 (const_rtx_hash_1): Likewise
18106 (output_constant): Likewise.
18107 (array_size_for_constructor): Likewise.
18108 (output_constructor_regular_field): Likewise.
18109 (output_constructor_bitfield): Likewise.
18110 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18111 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18112 GENERATOR_FILEs.
18113 * gencheck.c: Define BITS_PER_UNIT.
18114 * wide-int.cc: New.
18115 * wide-int.h: New.
18116 * wide-int-print.cc: New.
18117 * wide-int-print.h: New.
18118
18119 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18120
18121 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18122
18123 2014-05-06 Richard Biener <rguenther@suse.de>
18124
18125 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18126 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18127 (TODO_verify_all): Adjust.
18128 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18129 TODO_verify_stmts and TODO_verify_rtl_sharing.
18130 * bb-reorder.c: Likewise.
18131 * cfgexpand.c: Likewise.
18132 * cprop.c: Likewise.
18133 * cse.c: Likewise.
18134 * function.c: Likewise.
18135 * fwprop.c: Likewise.
18136 * gcse.c: Likewise.
18137 * gimple-ssa-isolate-paths.c: Likewise.
18138 * gimple-ssa-strength-reduction.c: Likewise.
18139 * ipa-split.c: Likewise.
18140 * loop-init.c: Likewise.
18141 * loop-unroll.c: Likewise.
18142 * lower-subreg.c: Likewise.
18143 * modulo-sched.c: Likewise.
18144 * postreload-gcse.c: Likewise.
18145 * predict.c: Likewise.
18146 * recog.c: Likewise.
18147 * sched-rgn.c: Likewise.
18148 * store-motion.c: Likewise.
18149 * tracer.c: Likewise.
18150 * trans-mem.c: Likewise.
18151 * tree-call-cdce.c: Likewise.
18152 * tree-cfg.c: Likewise.
18153 * tree-cfgcleanup.c: Likewise.
18154 * tree-complex.c: Likewise.
18155 * tree-eh.c: Likewise.
18156 * tree-emutls.c: Likewise.
18157 * tree-if-conv.c: Likewise.
18158 * tree-into-ssa.c: Likewise.
18159 * tree-loop-distribution.c: Likewise.
18160 * tree-object-size.c: Likewise.
18161 * tree-parloops.c: Likewise.
18162 * tree-pass.h: Likewise.
18163 * tree-sra.c: Likewise.
18164 * tree-ssa-ccp.c: Likewise.
18165 * tree-ssa-copy.c: Likewise.
18166 * tree-ssa-copyrename.c: Likewise.
18167 * tree-ssa-dce.c: Likewise.
18168 * tree-ssa-dom.c: Likewise.
18169 * tree-ssa-dse.c: Likewise.
18170 * tree-ssa-forwprop.c: Likewise.
18171 * tree-ssa-ifcombine.c: Likewise.
18172 * tree-ssa-loop-ch.c: Likewise.
18173 * tree-ssa-loop-ivcanon.c: Likewise.
18174 * tree-ssa-loop.c: Likewise.
18175 * tree-ssa-math-opts.c: Likewise.
18176 * tree-ssa-phiopt.c: Likewise.
18177 * tree-ssa-phiprop.c: Likewise.
18178 * tree-ssa-pre.c: Likewise.
18179 * tree-ssa-reassoc.c: Likewise.
18180 * tree-ssa-sink.c: Likewise.
18181 * tree-ssa-strlen.c: Likewise.
18182 * tree-ssa-tail-merge.c: Likewise.
18183 * tree-ssa-uncprop.c: Likewise.
18184 * tree-switch-conversion.c: Likewise.
18185 * tree-tailcall.c: Likewise.
18186 * tree-vect-generic.c: Likewise.
18187 * tree-vectorizer.c: Likewise.
18188 * tree-vrp.c: Likewise.
18189 * tsan.c: Likewise.
18190 * var-tracking.c: Likewise.
18191 * bt-load.c: Likewise.
18192 * cfgcleanup.c: Likewise.
18193 * combine-stack-adj.c: Likewise.
18194 * combine.c: Likewise.
18195 * compare-elim.c: Likewise.
18196 * config/epiphany/resolve-sw-modes.c: Likewise.
18197 * config/i386/i386.c: Likewise.
18198 * config/mips/mips.c: Likewise.
18199 * config/s390/s390.c: Likewise.
18200 * config/sh/sh_treg_combine.cc: Likewise.
18201 * config/sparc/sparc.c: Likewise.
18202 * dce.c: Likewise.
18203 * dse.c: Likewise.
18204 * final.c: Likewise.
18205 * ifcvt.c: Likewise.
18206 * mode-switching.c: Likewise.
18207 * passes.c: Likewise.
18208 * postreload.c: Likewise.
18209 * ree.c: Likewise.
18210 * reg-stack.c: Likewise.
18211 * regcprop.c: Likewise.
18212 * regrename.c: Likewise.
18213 * web.c: Likewise.
18214
18215 2014-05-06 Richard Biener <rguenther@suse.de>
18216
18217 PR middle-end/61070
18218 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18219 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18220
18221 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18222
18223 PR ipa/60965
18224 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18225
18226 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18227 Tom de Vries <tom@codesourcery.com>
18228
18229 * target.def (call_fusage_contains_non_callee_clobbers): New
18230 DEFHOOKPOD.
18231 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18232 Hooks to @menu.
18233 (@node Miscellaneous Register Hooks): New node.
18234 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18235 * doc/tm.texi: Regenerate.
18236
18237 2014-05-05 Marek Polacek <polacek@redhat.com>
18238
18239 PR driver/61065
18240 * opts.c (common_handle_option): Call error_at instead of warning_at.
18241
18242 2014-05-05 Richard Biener <rguenther@suse.de>
18243
18244 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18245 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18246 under the TODO_verify_il umbrella.
18247
18248 2014-05-05 Richard Biener <rguenther@suse.de>
18249
18250 * passes.c (execute_function_todo): Move TODO_verify_flow under
18251 the TODO_verify_ul umbrella.
18252
18253 2014-05-05 Richard Biener <rguenther@suse.de>
18254
18255 PR middle-end/61010
18256 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18257 X & CST away from a CST that is the mask of a mode.
18258
18259 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18260
18261 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18262 int argument to enum machine_mode.
18263 (picochip_class_max_nregs): Ditto.
18264 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18265 (picochip_class_max_nregs): Ditto.
18266
18267 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18268
18269 * target.def: Add new target hook.
18270 * doc/tm.texi: Regenerate.
18271 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18272 * targhooks.c (default_keep_leaf_when_profiled): New function.
18273
18274 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18275 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18276
18277 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18278
18279 PR tree-optimization/60363
18280 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18281 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18282 (update_destination_phis): New parameter.
18283 (create_edge_and_update_destination_phis): Ditto.
18284 (ssa_fix_duplicate_block_edges): Pass new arguments.
18285 (thread_single_edge): Ditto.
18286
18287 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18288
18289 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18290 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18291 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18292 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18293 Use RS6000_BTM_HARD_FLOAT.
18294 (BU_MISC_2): Likewise.
18295 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18296 RS6000_BTM_HARD_FLOAT.
18297 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18298 is explicitly used.
18299 (rs6000_invalid_builtin): Add hard floating builtin support.
18300 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18301 hard float builtins.
18302 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18303
18304 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18305
18306 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18307 Add missing function* argument.
18308
18309 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18310
18311 * lra-constraints.c (valid_address_p): Move earlier in file.
18312 Add a constraint argument to the address_info version.
18313 (satisfies_memory_constraint_p): New function.
18314 (satisfies_address_constraint_p): Likewise.
18315 (process_alt_operands, curr_insn_transform): Use them.
18316 (process_address): Pass the constraint to valid_address_p when
18317 checking address operands.
18318
18319 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18320
18321 * config/mips/mips.c (mips_isa_rev): New variable.
18322 (mips_set_architecture): Set it.
18323 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18324 from mips_isa_rev.
18325 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18326 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18327 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18328 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18329 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18330 conditions in terms of mips_isa_rev.
18331 (mips_isa_rev): Declare.
18332
18333 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18334
18335 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18336 (prob_unlikely, prob_likely): Make variables const.
18337
18338 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18339
18340 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18341
18342 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18343
18344 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18345
18346 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18347
18348 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18349 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18350 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18351 functions.
18352 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18353 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18354 sh_pass_in_reg_p.
18355 Replace usage of ROUND_REG with sh_round_reg.
18356 Use CEIL instead of ROUND_ADVANCE.
18357
18358 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18359
18360 PR target/61026
18361 * config/sh/sh.c: Include stdlib headers before everything else.
18362
18363 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18364
18365 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18366 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18367 (gimplify_adjust_omp_clauses): Simd region is never
18368 directly nested in combined parallel. Instead, for linear
18369 with copyin/copyout, if in combined for simd loop, make decl
18370 firstprivate/lastprivate on OMP_FOR.
18371 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18372 expand_omp_for_static_chunk): When setting endvar, also set
18373 fd->loop.v to the same value.
18374
18375 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18376
18377 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18378
18379 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18380
18381 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18382 expression.
18383
18384 2014-05-02 Marek Polacek <polacek@redhat.com>
18385
18386 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18387
18388 2014-05-02 Kito Cheng <kito@0xlab.org>
18389
18390 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18391 to a C expression marco.
18392 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18393 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18394 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18395 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18396 HONOR_REG_ALLOC_ORDER.
18397 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18398
18399 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18400
18401 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18402
18403 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18404
18405 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18406
18407 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18408
18409 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18410 (convert_scalar_cond_reduction): Likewise.
18411 (predicate_scalar_phi): Add recognition and transformation
18412 of simple conditioanl reduction to be vectorizable.
18413
18414 2014-05-01 Marek Polacek <polacek@redhat.com>
18415
18416 PR c/43245
18417 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18418
18419 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18420
18421 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18422 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18423 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18424 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18425 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18426 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18427 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18428 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18429
18430 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18431
18432 * config/arc/arc.opt (mlra): Move comment above option name
18433 to avoid mis-parsing as language options.
18434
18435 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18436
18437 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18438 * config/sol2.h: ... here.
18439 * config/sol2-10.h: Remove.
18440
18441 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18442 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18443 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18444 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18445 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18446 * config/sol2.h: ... here.
18447 (SECTION_NAME_FORMAT): Don't redefine.
18448 (STARTFILE_ARCH32_SPEC): Rename to ...
18449 (STARTFILE_ARCH_SPEC): ... this.
18450 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18451 * config/sparc/sol2.h: ... here.
18452 (SECTION_NAME_FORMAT): Don't undef.
18453 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18454 (SUBTARGET_EXTRA_SPECS): Remove.
18455 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18456
18457 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18458 (MD_STARTFILE_PREFIX): Remove.
18459 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18460 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18461 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18462 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18463 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18464 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18465 * config/i386/sol2.h: ... here.
18466 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18467 * config/i386/sol2-bi.h: Remove.
18468 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18469 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18470
18471 * config/i386/t-sol2-64: Rename to ...
18472 * config/i386/t-sol2: ... this.
18473 * config/sparc/t-sol2-64: Rename to ...
18474 * config/sparc/t-sol2: ... this.
18475
18476 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18477 sol2_tm_file_head, sol2_tm_file_tail.
18478 Include ${cpu_type}/sol2.h before sol2.h.
18479 Remove sol2-10.h.
18480 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18481 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18482 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18483 Reflect i386/t-sol2-64 renaming.
18484 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18485 Reflect sparc/t-sol2-64 renaming.
18486
18487 2014-04-30 Richard Biener <rguenther@suse.de>
18488
18489 * passes.c (execute_function_todo): Move TODO_verify_stmts
18490 and TODO_verify_ssa under the TODO_verify_il umbrella.
18491 * tree-ssa.h (verify_ssa): Adjust prototype.
18492 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18493 we should verify SSA operands.
18494 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18495 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18496 whether we should verify whether not throwing stmts have EH info.
18497 * graphite-scop-detection.c (create_sese_edges): Adjust.
18498 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18499 * tree-eh.c (lower_try_finally_switch): Do not add the
18500 default case label twice.
18501
18502 2014-04-30 Marek Polacek <polacek@redhat.com>
18503
18504 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18505 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18506 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18507 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18508
18509 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18510
18511 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18512 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18513 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18514 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18515 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18516 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18517 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18518 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18519
18520 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18521
18522 * tree-cfg.c (dump_function_to_file): Dump the return type of
18523 functions, in a line to itself before the function body, mimicking
18524 the layout of a C function.
18525
18526 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18527
18528 PR tree-optimization/60971
18529 * tree-tailcall.c (process_assignment): Reject conversions which
18530 reduce precision.
18531
18532 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18533
18534 * calls.c (initialize_argument_information): Always treat
18535 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18536 (expand_call): Likewise.
18537 (emit_library_call_calue_1): Likewise.
18538 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18539 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18540 code accordingly.
18541
18542 2014-04-29 Nick Clifton <nickc@redhat.com>
18543
18544 * config/msp430/msp430.md (umulsidi): Fix typo.
18545 (mulhisi3): Enable even inside interrupt handlers.
18546 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18547 bigger return address pushed in large mode.
18548
18549 2014-04-29 Nick Clifton <nickc@redhat.com>
18550
18551 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18552 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18553 available modes.
18554 * config/m32r/m32r.c (init_reg_tables): Likewise.
18555 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18556 enum to hold the modes.
18557
18558 2014-04-29 Richard Biener <rguenther@suse.de>
18559
18560 * dominance.c (free_dominance_info): Add overload with
18561 function parameter.
18562 (dom_info_state): Likewise.
18563 (dom_info_available_p): Likewise.
18564 * basic-block.h (free_dominance_info, dom_info_state,
18565 dom_info_available_p): Declare overloads.
18566 * passes.c (execute_function_todo): Verify that verifiers
18567 don't change dominator info state. Drop dominator info
18568 for IPA pass invocations.
18569 * cgraph.c (release_function_body): Restore asserts that
18570 dominator information is released.
18571
18572 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18573
18574 * doc/invoke.texi: Fix typo.
18575 * tree-vrp.c: Fix typos.
18576 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18577
18578 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18579
18580 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18581
18582 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18583
18584 * config/aarch64/aarch64-builtins.c
18585 (aarch64_types_storestruct_lane_qualifiers): New.
18586 (TYPES_STORESTRUCT_LANE): Likewise.
18587 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18588 (st3_lane): Likewise.
18589 (st4_lane): Likewise.
18590 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18591 (vec_store_lanesci_lane<mode>): Likewise.
18592 (vec_store_lanesxi_lane<mode>): Likewise.
18593 (aarch64_st2_lane<VQ:mode>): Likewise.
18594 (aarch64_st3_lane<VQ:mode>): Likewise.
18595 (aarch64_st4_lane<VQ:mode>): Likewise.
18596 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18597 * config/aarch64/arm_neon.h
18598 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18599 use new macro arguments.
18600 (__ST3_LANE_FUNC): Likewise.
18601 (__ST4_LANE_FUNC): Likewise.
18602 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18603 (V_THREE_ELEM): Likewise.
18604 (V_FOUR_ELEM): Likewise.
18605
18606 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18607
18608 * doc/gimple.texi: Replace the description of the now-defunct
18609 union gimple_statement_d with a diagram showing the
18610 gimple_statement_base class hierarchy and its relationships to
18611 the GSS_ and GIMPLE_ enums.
18612
18613 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18614
18615 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18616 * config/aarch64/aarch64.c
18617 (aarch64_cannot_change_mode_class): Weaken conditions.
18618 (aarch64_modes_tieable_p): New.
18619 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18620
18621 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18622
18623 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18624 (loadsync_<mode>): Change mode.
18625 (load_quadpti, store_quadpti): New.
18626 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18627 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18628
18629 2014-04-28 Martin Jambor <mjambor@suse.cz>
18630
18631 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18632 same alias type as the original statement.
18633 (subreplacement_assignment_data): New type.
18634 (handle_unscalarized_data_in_subtree): New type of parameter,
18635 generate new memory accesses with same alias type as the original
18636 statement.
18637 (load_assign_lhs_subreplacements): Likewise.
18638 (sra_modify_constructor_assign): Generate new memory accesses with
18639 same alias type as the original statement.
18640
18641 2014-04-28 Richard Biener <rguenther@suse.de>
18642
18643 * tree-pass.h (TODO_verify_il): Define.
18644 (TODO_verify_all): Complete properly.
18645 * passes.c (execute_function_todo): Move existing loop-closed
18646 SSA verification under TODO_verify_il.
18647 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18648 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18649 Fix tree sharing issue.
18650
18651 2014-04-28 Richard Biener <rguenther@suse.de>
18652
18653 PR middle-end/60092
18654 * builtins.def (DEF_C11_BUILTIN): Add.
18655 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18656 * coretypes.h (enum function_class): Add function_c11_misc.
18657 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18658 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18659 (call_may_clobber_ref_p_1): Likewise.
18660 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18661 (mark_all_reaching_defs_necessary_1): Likewise.
18662 (propagate_necessity): Likewise.
18663 (eliminate_unnecessary_stmts): Likewise.
18664 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18665
18666 2014-04-28 Richard Biener <rguenther@suse.de>
18667
18668 * tree-vrp.c (vrp_var_may_overflow): Remove.
18669 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18670 with overflow immediately bump to one before that value and
18671 let iteration figure out overflow status.
18672
18673 2014-04-28 Richard Biener <rguenther@suse.de>
18674
18675 * configure.ac: Do valgrind header checks unconditionally.
18676 Add --enable-valgrind-annotations.
18677 * system.h: Guard valgrind header inclusion with
18678 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18679 * alloc-pool.c (pool_alloc, pool_free): Use
18680 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18681 to guard possibly dead code.
18682 * config.in: Regenerated.
18683 * configure: Likewise.
18684
18685 2014-04-28 Jeff Law <law@redhat.com>
18686
18687 PR tree-optimization/60902
18688 * tree-ssa-threadedge.c
18689 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18690 over real defs when invalidating outputs from statements that do not
18691 produce useful outputs for threading.
18692
18693 2014-04-28 Richard Biener <rguenther@suse.de>
18694
18695 PR tree-optimization/60979
18696 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18697 SCOPs that end in a block with a successor with abnormal
18698 predecessors.
18699
18700 2014-04-28 Richard Biener <rguenther@suse.de>
18701
18702 * tree-pass.h (execute_pass_list): Adjust prototype.
18703 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18704 (do_per_function): Change callback signature, push all actual
18705 work to the callbals.
18706 (do_per_function_toporder): Likewise.
18707 (execute_function_dump): Adjust.
18708 (execute_function_todo): Likewise.
18709 (clear_last_verified): Likewise.
18710 (verify_curr_properties): Likewise.
18711 (update_properties_after_pass): Likewise.
18712 (execute_pass_list_1): Split out from ...
18713 (execute_pass_list): ... here. Adjust.
18714 (execute_ipa_pass_list): Likewise.
18715 * cgraphunit.c (cgraph_add_new_function): Adjust.
18716 (analyze_function): Likewise.
18717 (expand_function): Likewise.
18718 * cgraph.c (release_function_body): Free dominance info
18719 here instead of asserting it was magically freed elsewhere.
18720
18721 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18722
18723 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18724 * configure: Regenerate.
18725 * config/sparc/sparc.opt (muser-mode): New option.
18726 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18727 for LEON3.
18728 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18729 * doc/invoke.texi (SPARC options): Document -muser-mode.
18730
18731 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18732
18733 * cselib.c (find_slot_memmode): Delete.
18734 (cselib_hasher): Change compare_type to a struct.
18735 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18736 constants.
18737 (preserve_constants_and_equivs): Adjust for new compare_type.
18738 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18739 (wrap_constant): Delete.
18740 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18741
18742 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18743
18744 * doc/install.texi (Building with profile feedback): Remove
18745 outdated sentence.
18746
18747 2014-04-26 Tom de Vries <tom@codesourcery.com>
18748
18749 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18750 array accesses.
18751
18752 2014-04-25 Cary Coutant <ccoutant@google.com>
18753
18754 PR debug/60929
18755 * dwarf2out.c (should_move_die_to_comdat): A type definition
18756 can contain a subprogram definition, but don't move it to a
18757 comdat unit.
18758 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18759 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18760 from original DIE.
18761 (clone_tree_hash): Rename to...
18762 (clone_tree_partial): ...this; change callers. Copy
18763 DW_TAG_subprogram DIEs as declarations.
18764 (copy_decls_walk): Don't copy children of a declaration into a
18765 type unit.
18766
18767 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18768
18769 PR target/60969
18770 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18771 alternative 12.
18772
18773 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18774
18775 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18776 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18777 reg for long_call.
18778 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18779 restriction.
18780
18781 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18782
18783 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18784
18785 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18786
18787 PR tree-optimization/60930
18788 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18789 creating a multiply candidate by folding two constant
18790 multiplicands when the result overflows.
18791
18792 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18793
18794 PR tree-optimization/60960
18795 * tree-vect-generic.c (expand_vector_operation): Only call
18796 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18797
18798 2014-04-25 Tom de Vries <tom@codesourcery.com>
18799
18800 * expr.c (clobber_reg_mode): New function.
18801 * expr.h (clobber_reg): New function.
18802
18803 2014-04-25 Tom de Vries <tom@codesourcery.com>
18804
18805 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18806 clobbers.
18807
18808 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18809 Tom de Vries <tom@codesourcery.com>
18810
18811 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18812 handle.
18813 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18814 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18815 new argument to find_all_hard_reg_sets call.
18816
18817 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18818
18819 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18820 Use HOST_WIDE_INT_C for mask literal.
18821 (aarch_rev16_shleft_mask_imm_p): Likewise.
18822
18823 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18824
18825 PR target/60941
18826 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18827
18828 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18829
18830 PR preprocessor/56540
18831 * config/i386/i386-c.c (ix86_target_macros): Define
18832 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18833
18834 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18835
18836 * configure.ac (tga_func): Remove.
18837 (LIB_TLS_SPEC): Remove.
18838 * configure: Regenerate.
18839 * config.in: Regenerate.
18840 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18841
18842 2014-04-25 Richard Biener <rguenther@suse.de>
18843
18844 PR ipa/60912
18845 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18846 call stmt use/clobber sets during stmt walk instead of
18847 walking the possibly incomplete set of caller edges.
18848
18849 2014-04-25 Richard Biener <rguenther@suse.de>
18850
18851 PR ipa/60911
18852 * passes.c (apply_ipa_transforms): Inline into only caller ...
18853 (execute_one_pass): ... here. Properly bring in function
18854 bodies for nodes we want to apply IPA transforms to.
18855
18856 2014-04-24 Cong Hou <congh@google.com>
18857
18858 PR tree-optimization/60896
18859 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18860 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18861 (vect_mark_pattern_stmts): Set the def type of all statements in
18862 PATTERN_DEF_SEQ as vect_internal_def.
18863
18864 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18865
18866 * doc/extend.texi (PowerPC Built-in Functions): Document new
18867 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18868 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18869
18870 * config/rs6000/predicates.md (const_0_to_3_operand): New
18871 predicate to match 0..3 integer constants.
18872
18873 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18874 to support adding miscellaneous builtin functions.
18875 (BU_DFP_MISC_2): Likewise.
18876 (BU_P7_MISC_1): Likewise.
18877 (BU_P7_MISC_2): Likewise.
18878 (BU_P8V_MISC_3): Likewise.
18879 (BU_MISC_1): Likewise.
18880 (BU_MISC_2): Likewise.
18881 (DIVWE): Add extended divide builtin functions.
18882 (DIVWEO): Likewise.
18883 (DIVWEU): Likewise.
18884 (DIVWEUO): Likewise.
18885 (DIVDE): Likewise.
18886 (DIVDEO): Likewise.
18887 (DIVDEU): Likewise.
18888 (DIVDEUO): Likewise.
18889 (DXEX): Add decimal floating-point builtin functions.
18890 (DXEXQ): Likewise.
18891 (DDEDPD): Likewise.
18892 (DDEDPDQ): Likewise.
18893 (DENBCD): Likewise.
18894 (DENBCDQ): Likewise.
18895 (DIEX): Likewise.
18896 (DIEXQ): Likewise.
18897 (DSCLI): Likewise.
18898 (DSCLIQ): Likewise.
18899 (DSCRI): Likewise.
18900 (DSCRIQ): Likewise.
18901 (CDTBCD): Add new BCD builtin functions.
18902 (CBCDTD): Likewise.
18903 (ADDG6S): Likewise.
18904 (BCDADD): Likewise.
18905 (BCDADD_LT): Likewise.
18906 (BCDADD_EQ): Likewise.
18907 (BCDADD_GT): Likewise.
18908 (BCDADD_OV): Likewise.
18909 (BCDSUB): Likewise.
18910 (BCDSUB_LT): Likewise.
18911 (BCDSUB_EQ): Likewise.
18912 (BCDSUB_GT): Likewise.
18913 (BCDSUB_OV): Likewise.
18914 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18915 (UNPACK_TD): Likewise.
18916 (PACK_TF): Likewise.
18917 (UNPACK_TF): Likewise.
18918 (UNPACK_TF_0): Likewise.
18919 (UNPACK_TF_1): Likewise.
18920 (PACK_V1TI): Likewise.
18921 (UNPACK_V1TI): Likewise.
18922
18923 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18924 support for decimal floating point builtin functions.
18925 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18926 functions that take constant arguments.
18927 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18928 (rs6000_init_builtins): Setup long double, _Decimal64, and
18929 _Decimal128 types for new builtin functions.
18930 (builtin_function_type): Set the unsigned flags appropriately for
18931 the new builtin functions.
18932 (rs6000_opt_masks): Add support for decimal floating point builtin
18933 functions.
18934
18935 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18936 floating point builtin functions.
18937 (RS6000_BTM_COMMON): Likewise.
18938 (RS6000_BTI_long_double): Likewise.
18939 (RS6000_BTI_dfloat64): Likewise.
18940 (RS6000_BTI_dfloat128): Likewise.
18941 (long_double_type_internal_node): Likewise.
18942 (dfloat64_type_internal_node): Likewise.
18943 (dfloat128_type_internal_node): Likewise.
18944
18945 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18946 2.07 bcd arithmetic instructions.
18947 (UNSPEC_BCDSUB): Likewise.
18948 (UNSPEC_BCD_OVERFLOW): Likewise.
18949 (UNSPEC_BCD_ADD_SUB): Likewise.
18950 (bcd_add_sub): Likewise.
18951 (BCD_TEST): Likewise.
18952 (bcd<bcd_add_sub>): Likewise.
18953 (bcd<bcd_add_sub>_test): Likewise.
18954 (bcd<bcd_add_sub>_test2): Likewise.
18955 (bcd<bcd_add_sub>_<code>): Likewise.
18956 (peephole2 for combined bcd ops): Likewise.
18957
18958 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18959 decimal floating point builtin functions.
18960 (UNSPEC_DENBCD): Likewise.
18961 (UNSPEC_DXEX): Likewise.
18962 (UNSPEC_DIEX): Likewise.
18963 (UNSPEC_DSCLI): Likewise.
18964 (UNSPEC_DSCRI): Likewise.
18965 (D64_D128): Likewise.
18966 (dfp_suffix): Likewise.
18967 (dfp_ddedpd_<mode>): Likewise.
18968 (dfp_denbcd_<mode>): Likewise.
18969 (dfp_dxex_<mode>): Likewise.
18970 (dfp_diex_<mode>): Likewise.
18971 (dfp_dscli_<mode>): Likewise.
18972 (dfp_dscri_<mode>): Likewise.
18973
18974 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18975 builtin functions.
18976 (UNSPEC_CDTBCD): Likewise.
18977 (UNSPEC_CBCDTD): Likewise.
18978 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18979 (UNSPEC_DIVEO): Likewise.
18980 (UNSPEC_DIVEU): Likewise.
18981 (UNSPEC_DIVEUO): Likewise.
18982 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18983 pack/unpack 128-bit types.
18984 (UNSPEC_PACK_128BIT): Likewise.
18985 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18986 (udiv<mode>3): Use idiv_ldiv mode attribute.
18987 (div<mode>3): Likewise.
18988 (addg6s): Add new BCD builtin functions.
18989 (cdtbcd): Likewise.
18990 (cbcdtd): Likewise.
18991 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18992 (div_extend): Likewise.
18993 (div<div_extend>_<mode>"): Likewise.
18994 (FP128_64): Add support for new builtin functions to pack/unpack
18995 128-bit types.
18996 (unpack<mode>): Likewise.
18997 (unpacktf_0): Likewise.
18998 (unpacktf_1): Likewise.
18999 (unpack<mode>_dm): Likewise.
19000 (unpack<mode>_nodm): Likewise.
19001 (pack<mode>): Likewise.
19002 (unpackv1ti): Likewise.
19003 (packv1ti): Likewise.
19004
19005 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
19006
19007 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
19008 is disabled.
19009
19010 2014-04-24 Jakub Jelinek <jakub@redhat.com>
19011
19012 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
19013 * gimplify.c (omp_is_private): Change last argument's type to int.
19014 Only diagnose lastprivate if the simd argument is 1, only diagnose
19015 linear if the simd argument is 2.
19016 (gimplify_omp_for): Adjust omp_is_private callers. When adding
19017 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
19018 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
19019 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
19020 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
19021 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19022 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
19023 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19024 * tree-nested.c (convert_nonlocal_omp_clauses,
19025 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
19026
19027 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
19028
19029 PR target/60822
19030 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
19031 operand 1.
19032
19033 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
19034
19035 * flag-types.h (enum ivar_visibility): Add.
19036
19037 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
19038
19039 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
19040 function * argument.
19041
19042 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
19043
19044 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
19045
19046 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19047 Tom de Vries <tom@codesourcery.com>
19048
19049 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
19050 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
19051 reg-note.
19052 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
19053 * emit-rtl.c (try_split): Same.
19054
19055 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19056 Tom de Vries <tom@codesourcery.com>
19057
19058 * common.opt (fuse-caller-save): New option.
19059
19060 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
19061
19062 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
19063 elements for big-endian.
19064
19065 2014-04-24 Richard Biener <rguenther@suse.de>
19066
19067 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
19068 during TER and instead use the sepops interface for expanding
19069 non-GIMPLE_SINGLE_RHS.
19070
19071 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19072
19073 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
19074 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
19075
19076 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19077
19078 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
19079 assembler 64-bit option.
19080 * configure: Regenerate.
19081
19082 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19083
19084 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
19085 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
19086 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
19087 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
19088 (TARGET_CRYPTO): Take TARGET_SIMD into account.
19089
19090 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19091
19092 * config/aarch64/aarch64-builtins.c
19093 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19094 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19095 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19096 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19097 builtins.
19098 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19099 (Vrevsuff): New mode attribute.
19100
19101 2014-04-24 Terry Guo <terry.guo@arm.com>
19102
19103 * config/arm/arm.h (machine_function): Define variable
19104 after_arm_reorg here.
19105 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19106 (arm_split_constant): Update the way to access variable
19107 after_arm_reorg.
19108 (arm_reorg): Ditto.
19109 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19110
19111 2014-04-23 Tom de Vries <tom@codesourcery.com>
19112
19113 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19114
19115 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19116
19117 * is-a.h: Update comments to reflect the following changes to the
19118 "pointerness" of the API, making the template parameter match the
19119 return type, allowing use of is-a.h with typedefs of pointers.
19120 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19121 that the return type matches the parameter to the is_a_helper.
19122 (as_a): Likewise.
19123 (dyn_cast): Likewise.
19124
19125 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19126 pointer from the is-a.h API.
19127
19128 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19129 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19130 is-a.h API.
19131 (is_a_helper <varpool_node>::test): Likewise, convert to...
19132 (is_a_helper <varpool_node *>::test): ...this.
19133
19134 (varpool_first_variable): Update for removal of implicit pointer
19135 from the is-a.h API.
19136 (varpool_next_variable): Likewise.
19137 (varpool_first_static_initializer): Likewise.
19138 (varpool_next_static_initializer): Likewise.
19139 (varpool_first_defined_variable): Likewise.
19140 (varpool_next_defined_variable): Likewise.
19141 (cgraph_first_defined_function): Likewise.
19142 (cgraph_next_defined_function): Likewise.
19143 (cgraph_first_function): Likewise.
19144 (cgraph_next_function): Likewise.
19145 (cgraph_first_function_with_gimple_body): Likewise.
19146 (cgraph_next_function_with_gimple_body): Likewise.
19147 (cgraph_alias_target): Likewise.
19148 (varpool_alias_target): Likewise.
19149 (cgraph_function_or_thunk_node): Likewise.
19150 (varpool_variable_node): Likewise.
19151 (symtab_real_symbol_p): Likewise.
19152 * cgraphunit.c (referred_to_p): Likewise.
19153 (analyze_functions): Likewise.
19154 (handle_alias_pairs): Likewise.
19155 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19156 * gimple-ssa.h (gimple_vuse_op): Likewise.
19157 (gimple_vdef_op): Likewise.
19158 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19159 * gimple.c (gimple_build_asm_1): Likewise.
19160 (gimple_build_try): Likewise.
19161 (gimple_build_resx): Likewise.
19162 (gimple_build_eh_dispatch): Likewise.
19163 (gimple_build_omp_for): Likewise.
19164 (gimple_omp_for_set_clauses): Likewise.
19165
19166 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19167 (is_a_helper <gimple_statement_asm *>::test): ...this.
19168 (is_a_helper <gimple_statement_bind>::test): Convert to...
19169 (is_a_helper <gimple_statement_bind *>::test): ...this.
19170 (is_a_helper <gimple_statement_call>::test): Convert to...
19171 (is_a_helper <gimple_statement_call *>::test): ...this.
19172 (is_a_helper <gimple_statement_catch>::test): Convert to...
19173 (is_a_helper <gimple_statement_catch *>::test): ...this.
19174 (is_a_helper <gimple_statement_resx>::test): Convert to...
19175 (is_a_helper <gimple_statement_resx *>::test): ...this.
19176 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19177 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19178 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19179 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19180 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19181 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19182 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19183 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19184 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19185 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19186 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19187 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19188 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19189 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19190 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19191 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19192 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19193 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19194 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19195 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19196 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19197 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19198 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19199 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19200 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19201 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19202 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19203 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19204 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19205 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19206 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19207 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19208 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19209 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19210 (is_a_helper <gimple_statement_phi>::test): Convert to...
19211 (is_a_helper <gimple_statement_phi *>::test): ...this.
19212 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19213 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19214 (is_a_helper <gimple_statement_try>::test): Convert to...
19215 (is_a_helper <gimple_statement_try *>::test): ...this.
19216 (is_a_helper <gimple_statement_wce>::test): Convert to...
19217 (is_a_helper <gimple_statement_wce *>::test): ...this.
19218 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19219 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19220 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19221 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19222 (is_a_helper <const gimple_statement_call>::test): Convert to...
19223 (is_a_helper <const gimple_statement_call *>::test): ...this.
19224 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19225 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19226 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19227 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19228 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19229 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19230 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19231 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19232 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19233 Convert to...
19234 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19235 ...this.
19236 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19237 Convert to...
19238 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19239 ...this.
19240 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19241 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19242 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19243 to...
19244 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19245 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19246 to...
19247 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19248 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19249 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19250 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19251 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19252 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19253 to...
19254 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19255 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19256 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19257 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19258 to...
19259 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19260 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19261 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19262 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19263 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19264 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19265 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19266 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19267 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19268 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19269 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19270 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19271 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19272 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19273 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19274 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19275 to...
19276 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19277 ...this.
19278 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19279 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19280
19281 (gimple_use_ops): Update for removal of implicit pointer from the
19282 is-a.h API.
19283 (gimple_set_use_ops): Likewise.
19284 (gimple_vuse): Likewise.
19285 (gimple_vdef): Likewise.
19286 (gimple_vuse_ptr): Likewise.
19287 (gimple_vdef_ptr): Likewise.
19288 (gimple_set_vuse): Likewise.
19289 (gimple_set_vdef): Likewise.
19290 (gimple_omp_return_set_lhs): Likewise.
19291 (gimple_omp_return_lhs): Likewise.
19292 (gimple_omp_return_lhs_ptr): Likewise.
19293 (gimple_call_fntype): Likewise.
19294 (gimple_call_set_fntype): Likewise.
19295 (gimple_call_set_internal_fn): Likewise.
19296 (gimple_call_use_set): Likewise.
19297 (gimple_call_clobber_set): Likewise.
19298 (gimple_bind_vars): Likewise.
19299 (gimple_bind_set_vars): Likewise.
19300 (gimple_bind_body_ptr): Likewise.
19301 (gimple_bind_set_body): Likewise.
19302 (gimple_bind_add_stmt): Likewise.
19303 (gimple_bind_block): Likewise.
19304 (gimple_bind_set_block): Likewise.
19305 (gimple_asm_ninputs): Likewise.
19306 (gimple_asm_noutputs): Likewise.
19307 (gimple_asm_nclobbers): Likewise.
19308 (gimple_asm_nlabels): Likewise.
19309 (gimple_asm_input_op): Likewise.
19310 (gimple_asm_input_op_ptr): Likewise.
19311 (gimple_asm_output_op): Likewise.
19312 (gimple_asm_output_op_ptr): Likewise.
19313 (gimple_asm_set_output_op): Likewise.
19314 (gimple_asm_clobber_op): Likewise.
19315 (gimple_asm_set_clobber_op): Likewise.
19316 (gimple_asm_label_op): Likewise.
19317 (gimple_asm_set_label_op): Likewise.
19318 (gimple_asm_string): Likewise.
19319 (gimple_catch_types): Likewise.
19320 (gimple_catch_types_ptr): Likewise.
19321 (gimple_catch_handler_ptr): Likewise.
19322 (gimple_catch_set_types): Likewise.
19323 (gimple_catch_set_handler): Likewise.
19324 (gimple_eh_filter_types): Likewise.
19325 (gimple_eh_filter_types_ptr): Likewise.
19326 (gimple_eh_filter_failure_ptr): Likewise.
19327 (gimple_eh_filter_set_types): Likewise.
19328 (gimple_eh_filter_set_failure): Likewise.
19329 (gimple_eh_must_not_throw_fndecl): Likewise.
19330 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19331 (gimple_eh_else_n_body_ptr): Likewise.
19332 (gimple_eh_else_e_body_ptr): Likewise.
19333 (gimple_eh_else_set_n_body): Likewise.
19334 (gimple_eh_else_set_e_body): Likewise.
19335 (gimple_try_eval_ptr): Likewise.
19336 (gimple_try_cleanup_ptr): Likewise.
19337 (gimple_try_set_eval): Likewise.
19338 (gimple_try_set_cleanup): Likewise.
19339 (gimple_wce_cleanup_ptr): Likewise.
19340 (gimple_wce_set_cleanup): Likewise.
19341 (gimple_phi_capacity): Likewise.
19342 (gimple_phi_num_args): Likewise.
19343 (gimple_phi_result): Likewise.
19344 (gimple_phi_result_ptr): Likewise.
19345 (gimple_phi_set_result): Likewise.
19346 (gimple_phi_arg): Likewise.
19347 (gimple_phi_set_arg): Likewise.
19348 (gimple_resx_region): Likewise.
19349 (gimple_resx_set_region): Likewise.
19350 (gimple_eh_dispatch_region): Likewise.
19351 (gimple_eh_dispatch_set_region): Likewise.
19352 (gimple_omp_critical_name): Likewise.
19353 (gimple_omp_critical_name_ptr): Likewise.
19354 (gimple_omp_critical_set_name): Likewise.
19355 (gimple_omp_for_clauses): Likewise.
19356 (gimple_omp_for_clauses_ptr): Likewise.
19357 (gimple_omp_for_set_clauses): Likewise.
19358 (gimple_omp_for_collapse): Likewise.
19359 (gimple_omp_for_index): Likewise.
19360 (gimple_omp_for_index_ptr): Likewise.
19361 (gimple_omp_for_set_index): Likewise.
19362 (gimple_omp_for_initial): Likewise.
19363 (gimple_omp_for_initial_ptr): Likewise.
19364 (gimple_omp_for_set_initial): Likewise.
19365 (gimple_omp_for_final): Likewise.
19366 (gimple_omp_for_final_ptr): Likewise.
19367 (gimple_omp_for_set_final): Likewise.
19368 (gimple_omp_for_incr): Likewise.
19369 (gimple_omp_for_incr_ptr): Likewise.
19370 (gimple_omp_for_set_incr): Likewise.
19371 (gimple_omp_for_pre_body_ptr): Likewise.
19372 (gimple_omp_for_set_pre_body): Likewise.
19373 (gimple_omp_parallel_clauses): Likewise.
19374 (gimple_omp_parallel_clauses_ptr): Likewise.
19375 (gimple_omp_parallel_set_clauses): Likewise.
19376 (gimple_omp_parallel_child_fn): Likewise.
19377 (gimple_omp_parallel_child_fn_ptr): Likewise.
19378 (gimple_omp_parallel_set_child_fn): Likewise.
19379 (gimple_omp_parallel_data_arg): Likewise.
19380 (gimple_omp_parallel_data_arg_ptr): Likewise.
19381 (gimple_omp_parallel_set_data_arg): Likewise.
19382 (gimple_omp_task_clauses): Likewise.
19383 (gimple_omp_task_clauses_ptr): Likewise.
19384 (gimple_omp_task_set_clauses): Likewise.
19385 (gimple_omp_task_child_fn): Likewise.
19386 (gimple_omp_task_child_fn_ptr): Likewise.
19387 (gimple_omp_task_set_child_fn): Likewise.
19388 (gimple_omp_task_data_arg): Likewise.
19389 (gimple_omp_task_data_arg_ptr): Likewise.
19390 (gimple_omp_task_set_data_arg): Likewise.
19391 (gimple_omp_taskreg_clauses): Likewise.
19392 (gimple_omp_taskreg_clauses_ptr): Likewise.
19393 (gimple_omp_taskreg_set_clauses): Likewise.
19394 (gimple_omp_taskreg_child_fn): Likewise.
19395 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19396 (gimple_omp_taskreg_set_child_fn): Likewise.
19397 (gimple_omp_taskreg_data_arg): Likewise.
19398 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19399 (gimple_omp_taskreg_set_data_arg): Likewise.
19400 (gimple_omp_task_copy_fn): Likewise.
19401 (gimple_omp_task_copy_fn_ptr): Likewise.
19402 (gimple_omp_task_set_copy_fn): Likewise.
19403 (gimple_omp_task_arg_size): Likewise.
19404 (gimple_omp_task_arg_size_ptr): Likewise.
19405 (gimple_omp_task_set_arg_size): Likewise.
19406 (gimple_omp_task_arg_align): Likewise.
19407 (gimple_omp_task_arg_align_ptr): Likewise.
19408 (gimple_omp_task_set_arg_align): Likewise.
19409 (gimple_omp_single_clauses): Likewise.
19410 (gimple_omp_single_clauses_ptr): Likewise.
19411 (gimple_omp_single_set_clauses): Likewise.
19412 (gimple_omp_target_clauses): Likewise.
19413 (gimple_omp_target_clauses_ptr): Likewise.
19414 (gimple_omp_target_set_clauses): Likewise.
19415 (gimple_omp_target_child_fn): Likewise.
19416 (gimple_omp_target_child_fn_ptr): Likewise.
19417 (gimple_omp_target_set_child_fn): Likewise.
19418 (gimple_omp_target_data_arg): Likewise.
19419 (gimple_omp_target_data_arg_ptr): Likewise.
19420 (gimple_omp_target_set_data_arg): Likewise.
19421 (gimple_omp_teams_clauses): Likewise.
19422 (gimple_omp_teams_clauses_ptr): Likewise.
19423 (gimple_omp_teams_set_clauses): Likewise.
19424 (gimple_omp_sections_clauses): Likewise.
19425 (gimple_omp_sections_clauses_ptr): Likewise.
19426 (gimple_omp_sections_set_clauses): Likewise.
19427 (gimple_omp_sections_control): Likewise.
19428 (gimple_omp_sections_control_ptr): Likewise.
19429 (gimple_omp_sections_set_control): Likewise.
19430 (gimple_omp_for_set_cond): Likewise.
19431 (gimple_omp_for_cond): Likewise.
19432 (gimple_omp_atomic_store_set_val): Likewise.
19433 (gimple_omp_atomic_store_val): Likewise.
19434 (gimple_omp_atomic_store_val_ptr): Likewise.
19435 (gimple_omp_atomic_load_set_lhs): Likewise.
19436 (gimple_omp_atomic_load_lhs): Likewise.
19437 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19438 (gimple_omp_atomic_load_set_rhs): Likewise.
19439 (gimple_omp_atomic_load_rhs): Likewise.
19440 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19441 (gimple_omp_continue_control_def): Likewise.
19442 (gimple_omp_continue_control_def_ptr): Likewise.
19443 (gimple_omp_continue_set_control_def): Likewise.
19444 (gimple_omp_continue_control_use): Likewise.
19445 (gimple_omp_continue_control_use_ptr): Likewise.
19446 (gimple_omp_continue_set_control_use): Likewise.
19447 (gimple_transaction_body_ptr): Likewise.
19448 (gimple_transaction_label): Likewise.
19449 (gimple_transaction_label_ptr): Likewise.
19450 (gimple_transaction_set_body): Likewise.
19451 (gimple_transaction_set_label): Likewise.
19452
19453 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19454 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19455 * ipa-ref.c (ipa_record_reference): Likewise.
19456 * ipa-reference.c (analyze_function): Likewise.
19457 (ipa_reference_write_optimization_summary): Likewise.
19458 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19459 (address_taken_from_non_vtable_p): Likewise.
19460 (comdat_can_be_unshared_p_1): Likewise.
19461 * lto-cgraph.c (lto_output_ref): Likewise.
19462 (add_references): Likewise.
19463 (compute_ltrans_boundary): Likewise.
19464 (output_symtab): Likewise.
19465 (input_ref): Likewise.
19466 (input_cgraph_1): Likewise.
19467 (output_cgraph_opt_summary): Likewise.
19468 * lto-streamer-out.c (lto_output): Likewise.
19469 (output_symbol_p): Likewise.
19470 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19471 (lsei_start_function_in_partition): Likewise.
19472 (lsei_next_variable_in_partition): Likewise.
19473 (lsei_start_variable_in_partition): Likewise.
19474 * symtab.c (insert_to_assembler_name_hash): Likewise.
19475 (unlink_from_assembler_name_hash): Likewise.
19476 (symtab_unregister_node): Likewise.
19477 (symtab_remove_node): Likewise.
19478 (dump_symtab_node): Likewise.
19479 (verify_symtab_base): Likewise.
19480 (verify_symtab_node): Likewise.
19481 (symtab_make_decl_local): Likewise.
19482 (symtab_alias_ultimate_target): Likewise.
19483 (symtab_resolve_alias): Likewise.
19484 (symtab_get_symbol_partitioning_class): Likewise.
19485 * tree-phinodes.c (allocate_phi_node): Likewise.
19486 (reserve_phi_args_for_new_edge): Likewise.
19487 (remove_phi_args): Likewise.
19488 * varpool.c (varpool_node_for_asm): Likewise.
19489 (varpool_remove_unreferenced_decls): Likewise.
19490
19491 2014-04-23 Jeff Law <law@redhat.com>
19492
19493 PR tree-optimization/60902
19494 * tree-ssa-threadedge.c
19495 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19496 invalidate outputs from statements that do not produce useful
19497 outputs for threading.
19498
19499 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19500
19501 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19502 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19503 machine descriptions for Stack Smashing Protector.
19504
19505 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19506
19507 * aarch64.md (<optab>_rol<mode>3): New pattern.
19508 (<optab>_rolsi3_uxtw): Likewise.
19509 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19510
19511 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19512
19513 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19514 (arm_cortex_a12_tune): Likewise.
19515
19516 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19517
19518 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19519
19520 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19521
19522 * config/arm/arm.md (arm_rev16si2): New pattern.
19523 (arm_rev16si2_alt): Likewise.
19524 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19525
19526 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19527
19528 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19529 (rev16<mode>2_alt): Likewise.
19530 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19531 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19532 (aarch_rev16_shleft_mask_imm_p): Likewise.
19533 (aarch_rev16_p_1): Likewise.
19534 (aarch_rev16_p): Likewise.
19535 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19536 (aarch_rev16_shright_mask_imm_p): Likewise.
19537 (aarch_rev16_shleft_mask_imm_p): Likewise.
19538
19539 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19540
19541 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19542 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19543 rev cost.
19544 (cortex_a53_extra_costs): Likewise.
19545 (cortex_a57_extra_costs): Likewise.
19546 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19547 (cortexa7_extra_costs): Likewise.
19548 (cortexa8_extra_costs): Likewise.
19549 (cortexa12_extra_costs): Likewise.
19550 (cortexa15_extra_costs): Likewise.
19551 (v7m_extra_costs): Likewise.
19552 (arm_new_rtx_costs): Handle BSWAP.
19553
19554 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19555
19556 * config/arm/arm.c (cortexa8_extra_costs): New table.
19557 (arm_cortex_a8_tune): New tuning struct.
19558 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19559
19560 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19561
19562 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19563
19564 2014-04-23 Richard Biener <rguenther@suse.de>
19565
19566 * Makefile.in (OBJS): Remove loop-unswitch.o.
19567 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19568 * passes.def (pass_rtl_unswitch): Likewise.
19569 * loop-init.c (gate_rtl_unswitch): Likewise.
19570 (rtl_unswitch): Likewise.
19571 (pass_data_rtl_unswitch): Likewise.
19572 (pass_rtl_unswitch): Likewise.
19573 (make_pass_rtl_unswitch): Likewise.
19574 * rtl.h (reversed_condition): Likewise.
19575 (compare_and_jump_seq): Likewise.
19576 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19577 and make static.
19578 * loop-unroll.c (compare_and_jump_seq): Likewise.
19579
19580 2014-04-23 Richard Biener <rguenther@suse.de>
19581
19582 PR tree-optimization/60903
19583 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19584 commented code block.
19585 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19586 loop flags to newly created BBs and edges.
19587
19588 2014-04-23 Nick Clifton <nickc@redhat.com>
19589
19590 * config/msp430/msp430.c (msp430_handle_option): Move function
19591 to msp430-common.c
19592 (msp430_option_override): Simplify mcu and mcpu option handling.
19593 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19594 support for -mhwmult command line option.
19595 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19596 -mhwmult command line option.
19597 (msp430_hwmult_enabled): Delete.
19598 (msp43o_output_labelref): Add support for -mhwmult command line option.
19599 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19600 (umulsidi3): Likewise.
19601 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19602 (mcpu, mlarge, msmall): Likewise.
19603 (mhwmult): New option.
19604 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19605 prototype.
19606 (msp430_is_f5_mcu): Remove prototype.
19607 (msp430_use_f5_series_hwmult): Add prototype.
19608 * config/msp430/msp430-opts.h: New file.
19609 * common/config/msp430: New directory.
19610 * common/config/msp430/msp430-common.c: New file.
19611 * config.gcc (msp430): Remove target_has_targetm_common.
19612 * doc/invoke.texi: Document -mhwmult command line option.
19613
19614 2014-04-23 Nick Clifton <nickc@redhat.com>
19615
19616 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19617 default-manifest.o if it can be found in the search path.
19618 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19619
19620 2014-04-23 Terry Guo <terry.guo@arm.com>
19621
19622 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19623
19624 2014-04-23 Richard Biener <rguenther@suse.de>
19625
19626 PR middle-end/60895
19627 * tree-inline.c (declare_return_variable): Use mark_addressable.
19628
19629 2014-04-23 Richard Biener <rguenther@suse.de>
19630
19631 PR middle-end/60891
19632 * loop-init.c (loop_optimizer_init): Make sure to apply
19633 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19634
19635 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19636
19637 PR sanitizer/60275
19638 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19639 New options.
19640 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19641 if flag_sanitize_undefined_trap_on_error.
19642 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19643 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19644 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19645 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19646 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19647 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19648 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19649 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19650 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19651 * ubsan.c (ubsan_instrument_unreachable): Return
19652 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19653 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19654 if flag_sanitize_undefined_trap_on_error and
19655 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19656 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19657 instrument_bool_enum_load): Emit __builtin_trap () if
19658 flag_sanitize_undefined_trap_on_error and
19659 __builtin_handle_*_abort () if !flag_sanitize_recover.
19660 * doc/invoke.texi (-fsanitize-recover,
19661 -fsanitize-undefined-trap-on-error): Document.
19662
19663 2014-04-22 Christian Bruel <christian.bruel@st.com>
19664
19665 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19666 Force immediates to SImode.
19667
19668 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19669
19670 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19671 (lroundsfsi2): New.
19672 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19673 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19674 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19675 (nios2_fpu_insn): Add entry for round.
19676 (N2FPU_NO_ERRNO_P): Define.
19677 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19678 flag_errno_math.
19679 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19680
19681 2014-04-22 Richard Henderson <rth@redhat.com>
19682
19683 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19684 (add<GPI>3_compare0): Remove leading * from name.
19685 (add<GPI>3_carryin): Likewise.
19686 (sub<GPI>3_compare0): Likewise.
19687 (sub<GPI>3_carryin): Likewise.
19688 (<su_optab>mulditi3): New expander.
19689 (multi3): New expander.
19690 (madd<GPI>): Remove leading * from name.
19691
19692 2014-04-22 Martin Jambor <mjambor@suse.cz>
19693
19694 * cgraphclones.c (cgraph_function_versioning): Copy
19695 ipa_transforms_to_apply instead of asserting it is empty.
19696
19697 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19698
19699 PR target/60868
19700 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19701 on count_exp to get mode.
19702
19703 2014-04-22 Andrew Pinski <apinski@cavium.com>
19704
19705 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19706 Handle TLS for ILP32.
19707 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19708 (tlsie_small_<mode>): this and handle PTR.
19709 (tlsie_small_sidi): New pattern.
19710 (tlsle_small): Change to an expand to handle ILP32.
19711 (tlsle_small_<mode>): New pattern.
19712 (tlsdesc_small): Rename to ...
19713 (tlsdesc_small_<mode>): this and handle PTR.
19714
19715 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19716
19717 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19718
19719 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19720
19721 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19722 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19723 (aarch64_types_signed_poly_qualifiers): Likewise.
19724 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19725 (aarch64_types_poly_signed_qualifiers): Likewise.
19726 (TYPES_REINTERP_SS): Type macro added.
19727 (TYPES_REINTERP_SU): Likewise.
19728 (TYPES_REINTERP_SP): Likewise.
19729 (TYPES_REINTERP_US): Likewise.
19730 (TYPES_REINTERP_PS): Likewise.
19731 (aarch64_fold_builtin): New expression folding added.
19732 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19733 Declarations removed.
19734 (REINTERP_SS): Declarations added.
19735 (REINTERP_US): Likewise.
19736 (REINTERP_PS): Likewise.
19737 (REINTERP_SU): Likewise.
19738 (REINTERP_SP): Likewise.
19739 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19740 (vreinterpretq_p8_f64): Likewise.
19741 (vreinterpret_p16_f64): Likewise.
19742 (vreinterpretq_p16_f64): Likewise.
19743 (vreinterpret_f32_f64): Likewise.
19744 (vreinterpretq_f32_f64): Likewise.
19745 (vreinterpret_f64_f32): Likewise.
19746 (vreinterpret_f64_p8): Likewise.
19747 (vreinterpret_f64_p16): Likewise.
19748 (vreinterpret_f64_s8): Likewise.
19749 (vreinterpret_f64_s16): Likewise.
19750 (vreinterpret_f64_s32): Likewise.
19751 (vreinterpret_f64_s64): Likewise.
19752 (vreinterpret_f64_u8): Likewise.
19753 (vreinterpret_f64_u16): Likewise.
19754 (vreinterpret_f64_u32): Likewise.
19755 (vreinterpret_f64_u64): Likewise.
19756 (vreinterpretq_f64_f32): Likewise.
19757 (vreinterpretq_f64_p8): Likewise.
19758 (vreinterpretq_f64_p16): Likewise.
19759 (vreinterpretq_f64_s8): Likewise.
19760 (vreinterpretq_f64_s16): Likewise.
19761 (vreinterpretq_f64_s32): Likewise.
19762 (vreinterpretq_f64_s64): Likewise.
19763 (vreinterpretq_f64_u8): Likewise.
19764 (vreinterpretq_f64_u16): Likewise.
19765 (vreinterpretq_f64_u32): Likewise.
19766 (vreinterpretq_f64_u64): Likewise.
19767 (vreinterpret_s64_f64): Likewise.
19768 (vreinterpretq_s64_f64): Likewise.
19769 (vreinterpret_u64_f64): Likewise.
19770 (vreinterpretq_u64_f64): Likewise.
19771 (vreinterpret_s8_f64): Likewise.
19772 (vreinterpretq_s8_f64): Likewise.
19773 (vreinterpret_s16_f64): Likewise.
19774 (vreinterpretq_s16_f64): Likewise.
19775 (vreinterpret_s32_f64): Likewise.
19776 (vreinterpretq_s32_f64): Likewise.
19777 (vreinterpret_u8_f64): Likewise.
19778 (vreinterpretq_u8_f64): Likewise.
19779 (vreinterpret_u16_f64): Likewise.
19780 (vreinterpretq_u16_f64): Likewise.
19781 (vreinterpret_u32_f64): Likewise.
19782 (vreinterpretq_u32_f64): Likewise.
19783
19784 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19785
19786 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19787 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19788 (vreinterpret_p8_s8): Likewise.
19789 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19790 (vreinterpret_p8_s16): Likewise.
19791 (vreinterpret_p8_s32): Likewise.
19792 (vreinterpret_p8_s64): Likewise.
19793 (vreinterpret_p8_f32): Likewise.
19794 (vreinterpret_p8_u8): Likewise.
19795 (vreinterpret_p8_u16): Likewise.
19796 (vreinterpret_p8_u32): Likewise.
19797 (vreinterpret_p8_u64): Likewise.
19798 (vreinterpret_p8_p16): Likewise.
19799 (vreinterpretq_p8_s8): Likewise.
19800 (vreinterpretq_p8_s16): Likewise.
19801 (vreinterpretq_p8_s32): Likewise.
19802 (vreinterpretq_p8_s64): Likewise.
19803 (vreinterpretq_p8_f32): Likewise.
19804 (vreinterpretq_p8_u8): Likewise.
19805 (vreinterpretq_p8_u16): Likewise.
19806 (vreinterpretq_p8_u32): Likewise.
19807 (vreinterpretq_p8_u64): Likewise.
19808 (vreinterpretq_p8_p16): Likewise.
19809 (vreinterpret_p16_s8): Likewise.
19810 (vreinterpret_p16_s16): Likewise.
19811 (vreinterpret_p16_s32): Likewise.
19812 (vreinterpret_p16_s64): Likewise.
19813 (vreinterpret_p16_f32): Likewise.
19814 (vreinterpret_p16_u8): Likewise.
19815 (vreinterpret_p16_u16): Likewise.
19816 (vreinterpret_p16_u32): Likewise.
19817 (vreinterpret_p16_u64): Likewise.
19818 (vreinterpret_p16_p8): Likewise.
19819 (vreinterpretq_p16_s8): Likewise.
19820 (vreinterpretq_p16_s16): Likewise.
19821 (vreinterpretq_p16_s32): Likewise.
19822 (vreinterpretq_p16_s64): Likewise.
19823 (vreinterpretq_p16_f32): Likewise.
19824 (vreinterpretq_p16_u8): Likewise.
19825 (vreinterpretq_p16_u16): Likewise.
19826 (vreinterpretq_p16_u32): Likewise.
19827 (vreinterpretq_p16_u64): Likewise.
19828 (vreinterpretq_p16_p8): Likewise.
19829 (vreinterpret_f32_s8): Likewise.
19830 (vreinterpret_f32_s16): Likewise.
19831 (vreinterpret_f32_s32): Likewise.
19832 (vreinterpret_f32_s64): Likewise.
19833 (vreinterpret_f32_u8): Likewise.
19834 (vreinterpret_f32_u16): Likewise.
19835 (vreinterpret_f32_u32): Likewise.
19836 (vreinterpret_f32_u64): Likewise.
19837 (vreinterpret_f32_p8): Likewise.
19838 (vreinterpret_f32_p16): Likewise.
19839 (vreinterpretq_f32_s8): Likewise.
19840 (vreinterpretq_f32_s16): Likewise.
19841 (vreinterpretq_f32_s32): Likewise.
19842 (vreinterpretq_f32_s64): Likewise.
19843 (vreinterpretq_f32_u8): Likewise.
19844 (vreinterpretq_f32_u16): Likewise.
19845 (vreinterpretq_f32_u32): Likewise.
19846 (vreinterpretq_f32_u64): Likewise.
19847 (vreinterpretq_f32_p8): Likewise.
19848 (vreinterpretq_f32_p16): Likewise.
19849 (vreinterpret_s64_s8): Likewise.
19850 (vreinterpret_s64_s16): Likewise.
19851 (vreinterpret_s64_s32): Likewise.
19852 (vreinterpret_s64_f32): Likewise.
19853 (vreinterpret_s64_u8): Likewise.
19854 (vreinterpret_s64_u16): Likewise.
19855 (vreinterpret_s64_u32): Likewise.
19856 (vreinterpret_s64_u64): Likewise.
19857 (vreinterpret_s64_p8): Likewise.
19858 (vreinterpret_s64_p16): Likewise.
19859 (vreinterpretq_s64_s8): Likewise.
19860 (vreinterpretq_s64_s16): Likewise.
19861 (vreinterpretq_s64_s32): Likewise.
19862 (vreinterpretq_s64_f32): Likewise.
19863 (vreinterpretq_s64_u8): Likewise.
19864 (vreinterpretq_s64_u16): Likewise.
19865 (vreinterpretq_s64_u32): Likewise.
19866 (vreinterpretq_s64_u64): Likewise.
19867 (vreinterpretq_s64_p8): Likewise.
19868 (vreinterpretq_s64_p16): Likewise.
19869 (vreinterpret_u64_s8): Likewise.
19870 (vreinterpret_u64_s16): Likewise.
19871 (vreinterpret_u64_s32): Likewise.
19872 (vreinterpret_u64_s64): Likewise.
19873 (vreinterpret_u64_f32): Likewise.
19874 (vreinterpret_u64_u8): Likewise.
19875 (vreinterpret_u64_u16): Likewise.
19876 (vreinterpret_u64_u32): Likewise.
19877 (vreinterpret_u64_p8): Likewise.
19878 (vreinterpret_u64_p16): Likewise.
19879 (vreinterpretq_u64_s8): Likewise.
19880 (vreinterpretq_u64_s16): Likewise.
19881 (vreinterpretq_u64_s32): Likewise.
19882 (vreinterpretq_u64_s64): Likewise.
19883 (vreinterpretq_u64_f32): Likewise.
19884 (vreinterpretq_u64_u8): Likewise.
19885 (vreinterpretq_u64_u16): Likewise.
19886 (vreinterpretq_u64_u32): Likewise.
19887 (vreinterpretq_u64_p8): Likewise.
19888 (vreinterpretq_u64_p16): Likewise.
19889 (vreinterpret_s8_s16): Likewise.
19890 (vreinterpret_s8_s32): Likewise.
19891 (vreinterpret_s8_s64): Likewise.
19892 (vreinterpret_s8_f32): Likewise.
19893 (vreinterpret_s8_u8): Likewise.
19894 (vreinterpret_s8_u16): Likewise.
19895 (vreinterpret_s8_u32): Likewise.
19896 (vreinterpret_s8_u64): Likewise.
19897 (vreinterpret_s8_p8): Likewise.
19898 (vreinterpret_s8_p16): Likewise.
19899 (vreinterpretq_s8_s16): Likewise.
19900 (vreinterpretq_s8_s32): Likewise.
19901 (vreinterpretq_s8_s64): Likewise.
19902 (vreinterpretq_s8_f32): Likewise.
19903 (vreinterpretq_s8_u8): Likewise.
19904 (vreinterpretq_s8_u16): Likewise.
19905 (vreinterpretq_s8_u32): Likewise.
19906 (vreinterpretq_s8_u64): Likewise.
19907 (vreinterpretq_s8_p8): Likewise.
19908 (vreinterpretq_s8_p16): Likewise.
19909 (vreinterpret_s16_s8): Likewise.
19910 (vreinterpret_s16_s32): Likewise.
19911 (vreinterpret_s16_s64): Likewise.
19912 (vreinterpret_s16_f32): Likewise.
19913 (vreinterpret_s16_u8): Likewise.
19914 (vreinterpret_s16_u16): Likewise.
19915 (vreinterpret_s16_u32): Likewise.
19916 (vreinterpret_s16_u64): Likewise.
19917 (vreinterpret_s16_p8): Likewise.
19918 (vreinterpret_s16_p16): Likewise.
19919 (vreinterpretq_s16_s8): Likewise.
19920 (vreinterpretq_s16_s32): Likewise.
19921 (vreinterpretq_s16_s64): Likewise.
19922 (vreinterpretq_s16_f32): Likewise.
19923 (vreinterpretq_s16_u8): Likewise.
19924 (vreinterpretq_s16_u16): Likewise.
19925 (vreinterpretq_s16_u32): Likewise.
19926 (vreinterpretq_s16_u64): Likewise.
19927 (vreinterpretq_s16_p8): Likewise.
19928 (vreinterpretq_s16_p16): Likewise.
19929 (vreinterpret_s32_s8): Likewise.
19930 (vreinterpret_s32_s16): Likewise.
19931 (vreinterpret_s32_s64): Likewise.
19932 (vreinterpret_s32_f32): Likewise.
19933 (vreinterpret_s32_u8): Likewise.
19934 (vreinterpret_s32_u16): Likewise.
19935 (vreinterpret_s32_u32): Likewise.
19936 (vreinterpret_s32_u64): Likewise.
19937 (vreinterpret_s32_p8): Likewise.
19938 (vreinterpret_s32_p16): Likewise.
19939 (vreinterpretq_s32_s8): Likewise.
19940 (vreinterpretq_s32_s16): Likewise.
19941 (vreinterpretq_s32_s64): Likewise.
19942 (vreinterpretq_s32_f32): Likewise.
19943 (vreinterpretq_s32_u8): Likewise.
19944 (vreinterpretq_s32_u16): Likewise.
19945 (vreinterpretq_s32_u32): Likewise.
19946 (vreinterpretq_s32_u64): Likewise.
19947 (vreinterpretq_s32_p8): Likewise.
19948 (vreinterpretq_s32_p16): Likewise.
19949 (vreinterpret_u8_s8): Likewise.
19950 (vreinterpret_u8_s16): Likewise.
19951 (vreinterpret_u8_s32): Likewise.
19952 (vreinterpret_u8_s64): Likewise.
19953 (vreinterpret_u8_f32): Likewise.
19954 (vreinterpret_u8_u16): Likewise.
19955 (vreinterpret_u8_u32): Likewise.
19956 (vreinterpret_u8_u64): Likewise.
19957 (vreinterpret_u8_p8): Likewise.
19958 (vreinterpret_u8_p16): Likewise.
19959 (vreinterpretq_u8_s8): Likewise.
19960 (vreinterpretq_u8_s16): Likewise.
19961 (vreinterpretq_u8_s32): Likewise.
19962 (vreinterpretq_u8_s64): Likewise.
19963 (vreinterpretq_u8_f32): Likewise.
19964 (vreinterpretq_u8_u16): Likewise.
19965 (vreinterpretq_u8_u32): Likewise.
19966 (vreinterpretq_u8_u64): Likewise.
19967 (vreinterpretq_u8_p8): Likewise.
19968 (vreinterpretq_u8_p16): Likewise.
19969 (vreinterpret_u16_s8): Likewise.
19970 (vreinterpret_u16_s16): Likewise.
19971 (vreinterpret_u16_s32): Likewise.
19972 (vreinterpret_u16_s64): Likewise.
19973 (vreinterpret_u16_f32): Likewise.
19974 (vreinterpret_u16_u8): Likewise.
19975 (vreinterpret_u16_u32): Likewise.
19976 (vreinterpret_u16_u64): Likewise.
19977 (vreinterpret_u16_p8): Likewise.
19978 (vreinterpret_u16_p16): Likewise.
19979 (vreinterpretq_u16_s8): Likewise.
19980 (vreinterpretq_u16_s16): Likewise.
19981 (vreinterpretq_u16_s32): Likewise.
19982 (vreinterpretq_u16_s64): Likewise.
19983 (vreinterpretq_u16_f32): Likewise.
19984 (vreinterpretq_u16_u8): Likewise.
19985 (vreinterpretq_u16_u32): Likewise.
19986 (vreinterpretq_u16_u64): Likewise.
19987 (vreinterpretq_u16_p8): Likewise.
19988 (vreinterpretq_u16_p16): Likewise.
19989 (vreinterpret_u32_s8): Likewise.
19990 (vreinterpret_u32_s16): Likewise.
19991 (vreinterpret_u32_s32): Likewise.
19992 (vreinterpret_u32_s64): Likewise.
19993 (vreinterpret_u32_f32): Likewise.
19994 (vreinterpret_u32_u8): Likewise.
19995 (vreinterpret_u32_u16): Likewise.
19996 (vreinterpret_u32_u64): Likewise.
19997 (vreinterpret_u32_p8): Likewise.
19998 (vreinterpret_u32_p16): Likewise.
19999 (vreinterpretq_u32_s8): Likewise.
20000 (vreinterpretq_u32_s16): Likewise.
20001 (vreinterpretq_u32_s32): Likewise.
20002 (vreinterpretq_u32_s64): Likewise.
20003 (vreinterpretq_u32_f32): Likewise.
20004 (vreinterpretq_u32_u8): Likewise.
20005 (vreinterpretq_u32_u16): Likewise.
20006 (vreinterpretq_u32_u64): Likewise.
20007 (vreinterpretq_u32_p8): Likewise.
20008 (vreinterpretq_u32_p16): Likewise.
20009
20010 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20011
20012 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
20013 Pattern extended.
20014 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
20015 (sqabs): Likewise.
20016 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
20017 (vqnegd_s64): Likewise.
20018 (vqabs_s64): Likewise.
20019 (vqabsd_s64): Likewise.
20020
20021 2014-04-22 Richard Henderson <rth@redhat.com>
20022
20023 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
20024 computation to the top of the loop.
20025
20026 2014-04-22 Renlin <renlin.li@arm.com>
20027 Jiong Wang <jiong.wang@arm.com>
20028
20029 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
20030 * config/aarch64/aarch64.c (aarch64_layout_frame)
20031 (aarch64_initial_elimination_offset): Likewise.
20032
20033 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
20034
20035 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
20036 Fix indentation.
20037
20038 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
20039
20040 * machmode.h (bitwise_mode_for_mode): Declare.
20041 * stor-layout.h (bitwise_type_for_mode): Likewise.
20042 * stor-layout.c (bitwise_mode_for_mode): New function.
20043 (bitwise_type_for_mode): Likewise.
20044 * builtins.c (fold_builtin_memory_op): Use it instead of
20045 int_mode_for_mode and build_nonstandard_integer_type.
20046
20047 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20048
20049 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
20050 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
20051 (*-*-solaris2*): Simplify.
20052 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
20053 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
20054 *-*-solaris2.9* handling.
20055
20056 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
20057 as bug.
20058 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
20059 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
20060 handling, simplify.
20061 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
20062 * configure: Regenerate.
20063
20064 * config/i386/sol2-9.h: Remove.
20065
20066 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
20067 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
20068 Remove Solaris 9 references.
20069
20070 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
20071
20072 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
20073 (floatuns<GPI:mode><GPF:mode>2): Remove.
20074 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
20075 and floatuns conversions.
20076 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
20077 and floatuns conversions.
20078 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
20079 (w1,w2): New mode attributes for inequal width conversions.
20080
20081 2014-04-22 Renlin Li <Renlin.Li@arm.com>
20082
20083 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
20084 the output asm format.
20085
20086 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
20087
20088 * config/aarch64/aarch64-simd.md
20089 (aarch64_cm<optab>di): Always split.
20090 (*aarch64_cm<optab>di): New.
20091 (aarch64_cmtstdi): Always split.
20092 (*aarch64_cmtstdi): New.
20093
20094 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20095
20096 PR tree-optimization/60823
20097 * omp-low.c (ipa_simd_modify_function_body): Go through
20098 all SSA_NAMEs and for those refering to vector arguments
20099 which are going to be replaced adjust SSA_NAME_VAR and,
20100 if it is a default definition, change it into a non-default
20101 definition assigned at the beginning of function from new_decl.
20102 (ipa_simd_modify_stmt_ops): Rewritten.
20103 * tree-dfa.c (set_ssa_default_def): When removing default def,
20104 check for NULL loc instead of NULL *loc.
20105
20106 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20107
20108 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20109 restrictions on core registers for DImode values in Thumb2.
20110
20111 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20112
20113 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20114 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20115
20116 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20117
20118 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20119 (*iordi_notzesidi_di): Likewise.
20120 (*iordi_notsesidi_di): Likewise.
20121
20122 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20123
20124 * config/arm/arm-protos.h (tune_params): New struct members.
20125 * config/arm/arm.c: Initialise tune_params per processor.
20126 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20127 for speed, based on new tune_params.
20128
20129 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20130
20131 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20132 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20133 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20134 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20135 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20136 (vrnda_f64): Likewise.
20137 (vrndi_f64): Likewise.
20138 (vrndm_f64): Likewise.
20139 (vrndn_f64): Likewise.
20140 (vrndp_f64): Likewise.
20141 (vrndx_f64): Likewise.
20142
20143 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20144
20145 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20146 GET_MODE_SIZE argument is enum machine_mode.
20147
20148 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20149
20150 PR target/60910
20151 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20152 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20153
20154 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20155
20156 PR middle-end/60281
20157 * asan.c (asan_emit_stack_protection): Force the base to align to
20158 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20159 appropriate bits if STRICT_ALIGNMENT.
20160 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20161 when asan is on.
20162 (expand_used_vars): Leave a space in the stack frame for alignment
20163 if STRICT_ALIGNMENT.
20164
20165 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20166
20167 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20168 than a gimple.
20169 (gimple_store_p): Likewise.
20170 (gimple_assign_load_p): Likewise.
20171 (gimple_assign_cast_p): Likewise.
20172 (gimple_clobber_p): Likewise.
20173
20174 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20175 rather than a gimple.
20176 (gimple_assign_cast_p): Likewise.
20177
20178 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20179
20180 PR target/60735
20181 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20182 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20183
20184 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20185 more debug information for E500 if -mdebug=reg.
20186
20187 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20188
20189 PR target/60909
20190 * config/i386/i386.c (ix86_expand_builtin)
20191 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20192 register for target RTX.
20193 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20194
20195 2014-04-18 Cong Hou <congh@google.com>
20196
20197 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20198 the widen-mult pattern by handling two operands with different sizes,
20199 and operands whose size is smaller than half of the result type.
20200
20201 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20202
20203 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20204 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20205 (do_estimate_edge_time): Compute it.
20206 * ipa-inline.c (want_inline_small_function_p): Bypass
20207 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20208
20209 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20210
20211 * ipa-inline.c (spec_rem): New static variable.
20212 (dump_overall_stats): New function.
20213 (dump_inline_stats): New function.
20214
20215 2014-04-18 Richard Henderson <rth@redhat.com>
20216
20217 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20218 to GET_MODE_SIZE, not a reg_class_t.
20219
20220 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20221
20222 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20223 (vsx_xxmrglw_<mode>): Likewise.
20224
20225 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20226
20227 PR target/60876
20228 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20229 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20230 (rs6000_init_hard_regno_mode_ok): Likewise.
20231
20232 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20233
20234 * ipa-inline.c (inline_small_functions): Account only non-cold
20235 functions.
20236 * doc/invoke.texi (inline-unit-growth): Update documentation.
20237
20238 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20239
20240 * config/rs6000/rs6000.md (addti3, subti3): New.
20241
20242 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20243
20244 PR target/60863
20245 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20246 comment. Check optimize_insn_for_size_p instead of
20247 optimize_insn_for_speed_p.
20248
20249 2014-04-17 Martin Jambor <mjambor@suse.cz>
20250
20251 * gimple-iterator.c (gsi_start_edge): New function.
20252 * gimple-iterator.h (gsi_start_edge): Declare.
20253 * tree-sra.c (single_non_eh_succ): New function.
20254 (disqualify_ops_if_throwing_stmt): Renamed to
20255 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20256 having one non-EH successor BB.
20257 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20258 generate loads into replacements.
20259 (sra_modify_assign): Likewise and and also use the simple path for
20260 such statements.
20261 (sra_modify_function_body): Commit statements on edges.
20262
20263 2014-04-17 Richard Biener <rguenther@suse.de>
20264
20265 PR middle-end/60849
20266 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20267 comparison results and add clarifying comment.
20268
20269 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20270
20271 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20272 (blank_mode): Initialize it.
20273 (emit_mode_size_inline, emit_mode_nunits_inline,
20274 emit_mode_inner_inline): New functions.
20275 (emit_insn_modes_h): Call them and surround their output with
20276 #if GCC_VERSION >= 4001 ... #endif.
20277 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20278 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20279 mode_* arrays if the argument is __builtin_constant_p.
20280 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20281 is enum machine_mode.
20282
20283 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20284
20285 * passes.c (opt_pass::execute): Adjust.
20286 (pass_manager::execute_pass_mode_switching): Likewise.
20287 (early_local_passes::execute): Likewise.
20288 (execute_one_pass): Pass cfun to the pass's execute method.
20289 * tree-pass.h (opt_pass::execute): Add function * argument.
20290 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20291 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20292 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20293 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20294 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20295 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20296 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20297 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20298 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20299 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20300 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20301 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20302 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20303 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20304 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20305 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20306 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20307 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20308 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20309 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20310 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20311 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20312 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20313 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20314 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20315 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20316 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20317 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20318 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20319 Adjust.
20320
20321 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20322
20323 * passes.c (opt_pass::gate): Take function * argument.
20324 (gate_all_early_local_passes): Merge into
20325 (early_local_passes::gate): this.
20326 (gate_all_early_optimizations): Merge into
20327 (all_early_optimizations::gate): this.
20328 (gate_all_optimizations): Mege into
20329 (all_optimizations::gate): this.
20330 (gate_all_optimizations_g): Merge into
20331 (all_optimizations_g::gate): this.
20332 (gate_rest_of_compilation): Mege into
20333 (rest_of_compilation::gate): this.
20334 (gate_postreload): Merge into
20335 (postreload::gate): this.
20336 (dump_one_pass): Pass cfun to the pass's gate method.
20337 (execute_ipa_summary_passes): Likewise.
20338 (execute_one_pass): Likewise.
20339 (ipa_write_summaries_2): Likewise.
20340 (ipa_write_optimization_summaries_1): Likewise.
20341 (ipa_read_summaries_1): Likewise.
20342 (ipa_read_optimization_summaries_1): Likewise.
20343 (execute_ipa_stmt_fixups): Likewise.
20344 * tree-pass.h (opt_pass::gate): Add function * argument.
20345 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20346 combine-stack-adj.c, combine.c, compare-elim.c,
20347 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20348 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20349 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20350 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20351 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20352 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20353 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20354 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20355 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20356 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20357 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20358 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20359 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20360 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20361 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20362 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20363 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20364 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20365 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20366 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20367 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20368 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20369 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20370 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20371 var-tracking.c, vtable-verify.c, web.c: Adjust.
20372
20373 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20374
20375 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20376 * configure: Regenerate.
20377
20378 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20379
20380 * passes.c (dump_one_pass): don't check pass->has_gate.
20381 (execute_ipa_summary_passes): Likewise.
20382 (execute_one_pass): Likewise.
20383 (ipa_write_summaries_2): Likewise.
20384 (ipa_write_optimization_summaries_1): Likewise.
20385 (ipa_read_optimization_summaries_1): Likewise.
20386 (execute_ipa_stmt_fixups): Likewise.
20387 * tree-pass.h (pass_data::has_gate): Remove.
20388 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20389 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20390 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20391 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20392 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20393 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20394 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20395 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20396 gimple-low.c, gimple-ssa-isolate-paths.c,
20397 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20398 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20399 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20400 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20401 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20402 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20403 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20404 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20405 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20406 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20407 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20408 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20409 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20410 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20411 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20412 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20413 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20414 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20415 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20416 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20417 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20418 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20419 Adjust.
20420
20421 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20422
20423 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20424 declaration.
20425 * passes.c (pass_manager::register_dump_files_1): Merge into
20426 (pass_manager::register_dump_files): this, and remove its handling of
20427 properties since the pass always has the properties anyway.
20428 (pass_manager::pass_manager): Adjust.
20429
20430 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20431
20432 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20433 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20434 dealing with properties.
20435 (pass_manager::register_dump_files): Adjust.
20436
20437 2014-03-20 Mark Wielaard <mjw@redhat.com>
20438
20439 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20440 then represent the bound as normal constant value.
20441
20442 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20443
20444 PR target/60847
20445 Forward port from 4.8 branch
20446 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20447
20448 * config/i386/bmiintrin.h (_blsi_u32): New.
20449 (_blsi_u64): Ditto.
20450 (_blsr_u32): Ditto.
20451 (_blsr_u64): Ditto.
20452 (_blsmsk_u32): Ditto.
20453 (_blsmsk_u64): Ditto.
20454 (_tzcnt_u32): Ditto.
20455 (_tzcnt_u64): Ditto.
20456
20457 2014-04-17 Kito Cheng <kito@0xlab.org>
20458
20459 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20460
20461 2014-04-17 Richard Biener <rguenther@suse.de>
20462
20463 PR middle-end/60849
20464 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20465 boolean results for comparisons.
20466
20467 2014-04-17 Richard Biener <rguenther@suse.de>
20468
20469 PR tree-optimization/60836
20470 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20471 initial PHI args to be gimple values.
20472
20473 2014-04-17 Richard Biener <rguenther@suse.de>
20474
20475 PR tree-optimization/60841
20476 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20477 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20478 of stmts to SLP build.
20479 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20480 (vect_analyze_slp): Likewise.
20481 (vect_analyze_slp_instance): Likewise.
20482 (vect_build_slp_tree): Limit overall SLP tree growth.
20483 * tree-vectorizer.h (vect_analyze_data_refs,
20484 vect_analyze_slp): Adjust prototypes.
20485
20486 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20487
20488 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20489 Silvermont.
20490
20491 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20492
20493 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20494 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20495 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20496 for TARGET_SLOW_PSHUFB
20497
20498 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20499
20500 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20501 * config/i386/i386.c (intel_cost): Ditto.
20502
20503 2014-04-17 Joey Ye <joey.ye@arm.com>
20504
20505 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20506
20507 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20508
20509 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20510 with -fuse-profile.
20511
20512 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20513
20514 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20515 (type_all_derivations_known_p): New predicate.
20516 (type_all_ctors_visible_p): New predicate.
20517 (type_possibly_instantiated_p): New predicate.
20518 (get_odr_type): Compute all_derivations_known.
20519 (dump_odr_type): Dump the flag.
20520 (maybe_record_type): Cleanup.
20521 (record_target_from_binfo): Add bases_to_consider array;
20522 record bases for types w/o instances and skip CXX destructor.
20523 (possible_polymorphic_call_targets_1): Add bases_to_consider
20524 and consider_construction parameters; check if type may have instance.
20525 (get_polymorphic_call_info): Set maybe_in_construction to true
20526 when we know nothing.
20527 (record_targets_from_bases): Skip CXX destructors; they are
20528 never called for types in construction.
20529 (possible_polymorphic_call_targets): Do not record target when
20530 type may not have instance.
20531
20532 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20533
20534 PR ipa/60854
20535 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20536 external aliases alive, too.
20537
20538 2014-04-16 Andrew Pinski <apinski@cavium.com>
20539
20540 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20541 definition.
20542
20543 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20544
20545 * final.c (compute_alignments): Do not apply loop alignment to a block
20546 falling through to the exit.
20547
20548 2014-04-16 Catherine Moore <clm@codesourcery.com>
20549
20550 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20551 Adjust constraints for microMIPS store patterns.
20552
20553 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20554
20555 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20556
20557 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20558
20559 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20560 (append_use): Run at -O0.
20561 (append_vdef): Likewise.
20562 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20563 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20564
20565 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20566
20567 PR tree-optimization/60844
20568 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20569 (propagate_op_to_single_use, remove_visited_stmt_chain,
20570 linearize_expr, repropagate_negates, reassociate_bb): Use it
20571 instead of gsi_remove.
20572
20573 2014-04-16 Martin Jambor <mjambor@suse.cz>
20574
20575 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20576 ipa_transforms_to_apply.
20577 (cgraph_function_versioning): Assert that old_node has empty
20578 ipa_transforms_to_apply.
20579 * trans-mem.c (ipa_tm_create_version): Likewise.
20580 * tree-inline.c (tree_function_versioning): Do not duplicate
20581 ipa_transforms_to_apply.
20582
20583 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20584
20585 PR target/60817
20586 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20587 x86_64-*-* cases.
20588 Pass necessary as flags on 64-bit Solaris/x86.
20589 Use lowercase relocs for x86_64-*-*.
20590 * configure: Regenerate.
20591
20592 2014-04-15 Jan Hubicka <jh@suse.cz>
20593
20594 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20595 (maybe_record_node, likely_target_p): Use it.
20596
20597 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20598
20599 PR target/60839
20600 Revert following patch
20601
20602 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20603
20604 PR target/60735
20605 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20606 software floating point or no floating point registers, do not
20607 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20608 in GPRs that occurs after we tested for GPRs that would never be
20609 true.
20610
20611 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20612 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20613 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20614 specifically allow DDmode, since that does not use the SPE SIMD
20615 instructions.
20616
20617 2014-03-21 Mark Wielaard <mjw@redhat.com>
20618
20619 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20620 as unsigned or int depending on type and value used.
20621
20622 2014-04-15 Richard Biener <rguenther@suse.de>
20623
20624 PR rtl-optimization/56965
20625 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20626 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20627 ... here.
20628 * alias.c (true_dependence_1): Do not call
20629 nonoverlapping_component_refs_p.
20630 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20631 nonoverlapping_component_refs_p.
20632 (indirect_refs_may_alias_p): Likewise.
20633
20634 2014-04-15 Teresa Johnson <tejohnson@google.com>
20635
20636 * cfg.c (dump_bb_info): Fix flags check.
20637 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20638
20639 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20640
20641 PR rtl-optimization/60663
20642 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20643 avoid 0 cost.
20644
20645 2014-04-15 Richard Biener <rguenther@suse.de>
20646
20647 * lto-streamer.h (LTO_major_version): Bump to 4.
20648
20649 2014-04-15 Richard Biener <rguenther@suse.de>
20650
20651 * common.opt (lto_partition_model): New enum.
20652 (flto-partition=): Merge separate options with a single with argument,
20653 add -flto-partition=one support.
20654 * flag-types.h (enum lto_partition_model): Declare.
20655 * opts.c (finish_options): Remove duplicate -flto-partition=
20656 option check.
20657 * lto-wrapper.c (run_gcc): Adjust.
20658
20659 2014-04-15 Richard Biener <rguenther@suse.de>
20660
20661 * alias.c (ncr_compar): New function.
20662 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20663
20664 2014-04-15 Richard Biener <rguenther@suse.de>
20665
20666 * alias.c (record_component_aliases): Do not walk BINFOs.
20667
20668 2014-04-15 Richard Biener <rguenther@suse.de>
20669
20670 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20671 Add struct function argument and adjust.
20672 (find_func_aliases_for_call): Likewise.
20673 (find_func_aliases): Likewise.
20674 (find_func_clobbers): Likewise.
20675 (intra_create_variable_infos): Likewise.
20676 (compute_points_to_sets): Likewise.
20677 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20678
20679 2014-04-15 Richard Biener <rguenther@suse.de>
20680
20681 * tree.c (iterative_hash_expr): Use enum tree_code_class
20682 to store TREE_CODE_CLASS.
20683 (tree_block): Likewise.
20684 (tree_set_block): Likewise.
20685 * tree.h (fold_build_pointer_plus_loc): Use
20686 convert_to_ptrofftype_loc.
20687
20688 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20689
20690 PR plugins/59335
20691 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20692 added in 4.9.
20693
20694 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20695
20696 * cfgloop.h (struct loop): Move force_vectorize down.
20697 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20698 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20699 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20700 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20701 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20702 * tree-core.h (enum annot_expr_kind): Add new kind values.
20703 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20704 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20705 kinds.
20706 * tree.def (ANNOTATE_EXPR): Tweak comment.
20707
20708 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20709
20710 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20711 cxa_pure_virtual).
20712
20713 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20714
20715 * tree.h (TYPE_IDENTIFIER): Declare.
20716 * tree.c (subrange_type_for_debug_p): Use it.
20717 * godump.c (go_format_type): Likewise.
20718 * dwarf2out.c (is_cxx_auto, modified_type_die,
20719 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20720 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20721
20722 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20723
20724 PR lto/60820
20725 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20726
20727 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20728
20729 * config/i386/i386.c (examine_argument): Return bool. Return true if
20730 parameter should be passed in memory.
20731 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20732 (construct_container): Update calls to examine_argument.
20733 (function_arg_advance_64): Ditto.
20734 (return_in_memory_32): Merge with ix86_return_in_memory.
20735 (return_in_memory_64): Ditto.
20736 (return_in_memory_ms_64): Ditto.
20737
20738 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20739
20740 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20741 * coverage.c (coverage_compute_profile_id): Handle externally visible
20742 symbols.
20743
20744 2014-04-14 Martin Jambor <mjambor@suse.cz>
20745
20746 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20747 DECL_DISREGARD_INLINE_LIMITS functions.
20748
20749 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20750
20751 PR target/60827
20752 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20753
20754 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20755
20756 PR target/60827
20757 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20758 optimize_insn_for_speed_p instead of
20759 optimize_function_for_speed_p.
20760
20761 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20762
20763 * doc/invoke.texi (free): Document AArch64.
20764
20765 2014-04-14 Richard Biener <rguenther@suse.de>
20766
20767 PR tree-optimization/60042
20768 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20769 (insert_into_preds_of_block): Do not prevent PHI insertion
20770 for REFERENCE exprs here ...
20771 (eliminate_dom_walker::before_dom_children): ... but prevent
20772 their use here under similar conditions when applied to the
20773 IL after PRE optimizations.
20774
20775 2014-04-14 Richard Biener <rguenther@suse.de>
20776
20777 * passes.def: Move early points-to after early SRA.
20778
20779 2014-04-14 Richard Biener <rguenther@suse.de>
20780
20781 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20782 check for which sign-changes we allow when forwarding
20783 a converted value into a switch.
20784
20785 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20786
20787 * stor-layout.c (place_field): Finalize non-constant offset for the
20788 field, if any.
20789
20790 2014-04-14 Richard Biener <rguenther@suse.de>
20791
20792 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20793 as argument.
20794 (expand_switch_using_bit_tests_p): Likewise.
20795 (process_switch): Compute and pass on speed_p based on the
20796 switch stmt.
20797 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20798 optimize_bb_for_speed_p.
20799
20800 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20801
20802 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20803 * function.h (struct function): Rename has_force_vect_loops into
20804 has_force_vectorize_loops.
20805 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20806 (input_struct_function_base): Likewise.
20807 * lto-streamer-out.c (output_cfg): Likewise.
20808 (output_struct_function_base): Likewise.
20809 * omp-low.c (expand_omp_simd): Likewise.
20810 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20811 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20812 (version_loop_for_if_conversion): Likewise.
20813 (tree_if_conversion): Likewise.
20814 (main_tree_if_conversion): Likewise.
20815 (gate_tree_if_conversion): Likewise.
20816 * tree-inline.c (copy_loops): Likewise.
20817 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20818 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20819 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20820 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20821 * tree-vectorizer.c (vectorize_loops): Likewise.
20822 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20823
20824 2014-04-14 Richard Biener <rguenther@suse.de>
20825
20826 PR lto/60720
20827 * lto-streamer-out.c (wrap_refs): New function.
20828 (lto_output): Wrap symbol references in global initializes in
20829 type-preserving MEM_REFs.
20830
20831 2014-04-14 Christian Bruel <christian.bruel@st.com>
20832
20833 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20834
20835 2014-04-14 Christian Bruel <christian.bruel@st.com>
20836
20837 * config/sh/sh.md (setmemqi): New expand pattern.
20838 * config/sh/sh.h (CLEAR_RATIO): Define.
20839 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20840 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20841
20842 2014-04-14 Richard Biener <rguenther@suse.de>
20843
20844 PR middle-end/55022
20845 * fold-const.c (negate_expr_p): Don't negate directional rounding
20846 division.
20847 (fold_negate_expr): Likewise.
20848
20849 2014-04-14 Richard Biener <rguenther@suse.de>
20850
20851 PR tree-optimization/59817
20852 PR tree-optimization/60453
20853 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20854 recursion to catch all CHRECs in the scalar evolution and restrict
20855 the predicate for the remains appropriately.
20856
20857 2014-04-12 Catherine Moore <clm@codesourcery.com>
20858
20859 * config/mips/constraints.md: Add new register constraint "kb".
20860 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20861 (*movhi_internal): Likewise.
20862 (*movqi_internal): Likewise.
20863 * config/mips/mips.h (M16_STORE_REGS): New register class.
20864 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20865 (REG_CLASS_CONTENTS): Likewise.
20866 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20867
20868 2014-04-11 Tobias Burnus <burnus@net-b.de>
20869
20870 PR c/60194
20871 * doc/invoke.texi (-Wformat-signedness): Document it.
20872 (Wformat=2): Mention that this enables -Wformat-signedness.
20873
20874 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20875
20876 * common/config/epiphany/epiphany-common.c
20877 (epiphany_option_optimization_table): Enable section anchors by
20878 default at -O1 or higher.
20879 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20880 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20881 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20882 carries no extra cost.
20883 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20884 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20885 * config/epiphany/predicates.md (memclob_operand): New predicate.
20886 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20887 Use memclob_operand predicate and X constraint for operand 3.
20888
20889 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20890
20891 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20892 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20893 its operands.
20894
20895 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20896
20897 PR rtl-optimization/60651
20898 * mode-switching.c (optimize_mode_switching): Make sure to emit
20899 sets of a lower numbered entity before sets of a higher numbered
20900 entity to a mode of the same or lower priority.
20901 When creating a seginfo for a basic block that starts with a code
20902 label, move the insertion point past the code label.
20903 (new_seginfo): Document and enforce requirement that
20904 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20905 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20906 * doc/tm.texi: Regenerate.
20907
20908 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20909
20910 PR target/60811
20911 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20912
20913 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20914
20915 * BASE-VER: Set to 4.10.0.
20916
20917 2014-04-11 Tobias Burnus <burnus@net-b.de>
20918
20919 PR other/59055
20920 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20921 * doc/gcc.texi (Service): Update description in the @menu
20922 * doc/invoke.texi (Option Summary): Remove misplaced and
20923 duplicated @menu.
20924
20925 2014-04-11 Steve Ellcey <sellcey@mips.com>
20926 Jakub Jelinek <jakub@redhat.com>
20927
20928 PR middle-end/60556
20929 * expr.c (convert_move): Use emit_store_flag_force instead of
20930 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20931 argument to it.
20932
20933 2014-04-11 Richard Biener <rguenther@suse.de>
20934
20935 PR middle-end/60797
20936 * varasm.c (assemble_alias): Avoid endless error reporting
20937 recursion by setting TREE_ASM_WRITTEN.
20938
20939 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20940
20941 * config/s390/s390.md: Add a splitter for NOT rtx.
20942
20943 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20944
20945 PR rtl-optimization/60663
20946 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20947
20948 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20949 Jakub Jelinek <jakub@redhat.com>
20950
20951 PR lto/60567
20952 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20953 flag from decl_node to node.
20954
20955 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20956
20957 PR debug/60655
20958 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20959 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20960 ameliorating the cases where it can be.
20961
20962 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20963
20964 Revert
20965 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20966
20967 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20968 (loadsync_<mode>): Change mode.
20969 (load_quadpti, store_quadpti): New.
20970 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20971 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20972 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20973
20974 2014-04-09 Cong Hou <congh@google.com>
20975
20976 PR testsuite/60773
20977 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20978 documentation.
20979
20980 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20981
20982 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20983 instead of vnor to exploit possible fusion opportunity in the
20984 future.
20985 (altivec_expand_vec_perm_const_le): Likewise.
20986
20987 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20988
20989 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20990 (loadsync_<mode>): Change mode.
20991 (load_quadpti, store_quadpti): New.
20992 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20993 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20994
20995 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20996
20997 PR target/60763
20998 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20999 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
21000 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
21001
21002 2014-04-08 Richard Biener <rguenther@suse.de>
21003
21004 PR middle-end/60706
21005 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
21006 a 64bit widest int print double-int similar to on HWI64 hosts.
21007
21008 2014-04-08 Richard Biener <rguenther@suse.de>
21009
21010 PR tree-optimization/60785
21011 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
21012 default defs properly.
21013
21014 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
21015
21016 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
21017 (Weffc++): Likewise.
21018
21019 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
21020
21021 * ipa-devirt.c (maybe_record_node): When node is not recorded,
21022 set completep to false rather than true.
21023
21024 2014-04-07 Douglas B Rupp <rupp@adacore.com>
21025
21026 PR target/60504
21027 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
21028 ARM_TARGET2_DWARF_FORMAT.
21029
21030 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
21031
21032 PR target/60609
21033 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
21034 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
21035 ADDR_DIFF_VEC.
21036
21037 2014-04-07 Richard Biener <rguenther@suse.de>
21038
21039 PR tree-optimization/60766
21040 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
21041 (may_eliminate_iv): Convert cand_value_at result to desired type.
21042
21043 2014-04-07 Jason Merrill <jason@redhat.com>
21044
21045 PR c++/60731
21046 * common.opt (-fno-gnu-unique): Add.
21047 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
21048
21049 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21050
21051 * haifa-sched.c: Fix outdated function reference and minor
21052 grammar errors in introductory comment.
21053
21054 2014-04-07 Richard Biener <rguenther@suse.de>
21055
21056 PR middle-end/60750
21057 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
21058 for noreturn calls.
21059 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
21060
21061 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
21062
21063 PR debug/55794
21064 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
21065 size accounting for thunks.
21066 (pa_asm_output_mi_thunk): Use final_start_function() and
21067 final_end_function() to output function start and end directives.
21068
21069 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21070
21071 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
21072 device specific ISA/ feature information. Remove short_sp and
21073 errata_skip ds. Add avr_device_specific_features enum to have device
21074 specific info.
21075 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
21076 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
21077 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
21078 updated device specific info.
21079 * config/avr/avr-mcus.def: Merge device specific details to
21080 dev_attribute field.
21081 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
21082 errata_skip.
21083 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
21084 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
21085 assembler if RMW isa supported by current device.
21086 * config/avr/genmultilib.awk: Update as device info structure changed.
21087 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
21088
21089 2014-04-04 Cong Hou <congh@google.com>
21090
21091 PR tree-optimization/60656
21092 * tree-vect-stmts.c (supportable_widening_operation):
21093 Fix a bug that elements in a vector with vect_used_by_reduction
21094 property are incorrectly reordered when the operation on it is not
21095 consistant with the one in reduction operation.
21096
21097 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21098
21099 PR rtl-optimization/60155
21100 * gcse.c (record_set_data): New function.
21101 (single_set_gcse): New function.
21102 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21103 (hoist_code): Likewise.
21104 (get_pressure_class_and_nregs): Likewise.
21105
21106 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21107
21108 * explow.c (probe_stack_range): Emit a final optimization blockage.
21109
21110 2014-04-04 Anthony Green <green@moxielogic.com>
21111
21112 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21113 typos.
21114
21115 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21116
21117 PR ipa/59626
21118 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21119 flags are set only during streaming.
21120 * ipa.c (process_references, walk_polymorphic_call_targets,
21121 symtab_remove_unreachable_nodes): Drop bodies of always inline
21122 after early inlining.
21123 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21124
21125 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21126 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21127
21128 PR debug/60655
21129 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21130 containing a NOT.
21131
21132 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21133
21134 PR bootstrap/60743
21135 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21136 duration.
21137 (cortex_a53_fdivd): Likewise.
21138
21139 2014-04-04 Martin Jambor <mjambor@suse.cz>
21140
21141 PR ipa/60640
21142 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21143 Adjust all callers.
21144 * cgraph.c (clone_of_p): Also return true if thunks match.
21145 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21146 cgraph_function_or_thunk_node and an obsolete comment.
21147 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21148 file.
21149 (build_function_decl_skip_args): Likewise.
21150 (set_new_clone_decl_and_node_flags): New function.
21151 (duplicate_thunk_for_node): Likewise.
21152 (redirect_edge_duplicating_thunks): Likewise.
21153 (cgraph_clone_node): New parameter args_to_skip, pass it to
21154 redirect_edge_duplicating_thunks which is called instead of
21155 cgraph_redirect_edge_callee.
21156 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21157 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21158
21159 2014-04-04 Jeff Law <law@redhat.com>
21160
21161 PR target/60657
21162 * config/arm/predicates.md (const_int_I_operand): New predicate.
21163 (const_int_M_operand): Similarly.
21164 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21165 const_int_operand.
21166 (insv_t2, extv_reg, extzv_t2): Likewise.
21167 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21168 (pop_multiple_with_writeback_and_return): Likewise.
21169 (vfp_pop_multiple_with_writeback): Likewise
21170
21171 2014-04-04 Richard Biener <rguenther@suse.de>
21172
21173 PR ipa/60746
21174 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21175 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21176 non-GIMPLE_LABELs.
21177 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21178 * gimplify.c (gimple_add_tmp_var_fn): New function.
21179 * gimple-expr.h (create_tmp_reg_fn): Declare.
21180 * gimple-expr.c (create_tmp_reg_fn): New function.
21181 * gimple-low.c (record_vars_into): Don't change cfun.
21182 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21183 code generation without cfun.
21184
21185 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21186
21187 PR bootstrap/60719
21188 * Makefile.in (install-driver): Fix shell scripting.
21189
21190 2014-04-03 Cong Hou <congh@google.com>
21191
21192 PR tree-optimization/60505
21193 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21194 threshold of number of iterations below which no vectorization
21195 will be done.
21196 * tree-vect-loop.c (new_loop_vec_info):
21197 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21198 * tree-vect-loop.c (vect_analyze_loop_operations):
21199 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21200 * tree-vect-loop.c (vect_transform_loop):
21201 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21202 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21203 of iterations of the loop and see if we should build the epilogue.
21204
21205 2014-04-03 Richard Biener <rguenther@suse.de>
21206
21207 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21208 (streamer_tree_cache_create): Adjust.
21209 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21210 to allow optional nodes array.
21211 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21212 (streamer_tree_cache_append): Likewise.
21213 (streamer_tree_cache_create): Create nodes array optionally
21214 as specified by parameter.
21215 * lto-streamer-out.c (create_output_block): Avoid maintaining
21216 the node array in the writer cache.
21217 (DFS_write_tree): Remove assertion.
21218 (produce_asm_for_decls): Free the out decl state hash table early.
21219 * lto-streamer-in.c (lto_data_in_create): Adjust for
21220 streamer_tree_cache_create prototype change.
21221
21222 2014-04-03 Richard Biener <rguenther@suse.de>
21223
21224 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21225 set TREE_CHAIN to NULL_TREE.
21226
21227 2014-04-03 Richard Biener <rguenther@suse.de>
21228
21229 PR tree-optimization/60740
21230 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21231 over all GIMPLE_COND operands.
21232
21233 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21234
21235 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21236 (Weffc++): Remove Scott's numbering, merge lists and reference
21237 Wnon-virtual-dtor.
21238
21239 2014-04-03 Nick Clifton <nickc@redhat.com>
21240
21241 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21242 properly.
21243
21244 2014-04-03 Martin Jambor <mjambor@suse.cz>
21245
21246 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21247 mention gcc_unreachable before failing.
21248 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21249 removed symbols.
21250
21251 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21252
21253 PR ipa/60659
21254 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21255 inconsistent code and instead mark the context inconsistent.
21256 (possible_polymorphic_call_targets): For inconsistent contexts
21257 return empty complete list.
21258
21259 2014-04-02 Anthony Green <green@moxielogic.com>
21260
21261 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21262 (extendqisi2, extendhisi2): Define.
21263 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21264 (WCHAR_TYPE): Change to unsigned int.
21265
21266 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21267
21268 PR tree-optimization/60733
21269 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21270 insertion point for PHI candidates to be the end of the feeding
21271 block for the PHI argument.
21272
21273 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21274
21275 PR rtl-optimization/60650
21276 * lra-constraints.c (process_alt_operands): Decrease reject for
21277 earlyclobber matching.
21278
21279 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21280
21281 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21282
21283 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21284
21285 * config/spu/spu.c (pad_bb): Do not crash when the last
21286 insn is CODE_FOR_blockage.
21287
21288 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21289
21290 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21291 lies outside the target mode.
21292
21293 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21294
21295 PR target/60735
21296 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21297 software floating point or no floating point registers, do not
21298 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21299 in GPRs that occurs after we tested for GPRs that would never be
21300 true.
21301
21302 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21303 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21304 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21305 specifically allow DDmode, since that does not use the SPE SIMD
21306 instructions.
21307
21308 2014-04-02 Richard Biener <rguenther@suse.de>
21309
21310 PR middle-end/60729
21311 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21312 MODE_INTs. Properly use negv_optab.
21313 (expand_abs): Likewise.
21314
21315 2014-04-02 Richard Biener <rguenther@suse.de>
21316
21317 PR bootstrap/60719
21318 * Makefile.in (install-driver): Guard extra installs with special
21319 names properly.
21320
21321 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21322
21323 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21324 Document vec_vgbbd.
21325
21326 2014-04-01 Richard Henderson <rth@redhat.com>
21327
21328 PR target/60704
21329 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21330 alternative enabled before register allocation.
21331
21332 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21333
21334 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21335 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21336 typo.
21337 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21338 (nios2_got_address): Update nios2_large_got_address call site.
21339 (nios2_delegitimize_address): New function.
21340 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21341 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21342 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21343
21344 2014-04-01 Martin Husemann <martin@duskware.de>
21345
21346 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21347 for -mabi=32.
21348
21349 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21350
21351 PR rtl-optimization/60604
21352 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21353 check from register_operand.
21354 (register_operand): Redefine in terms of general_operand.
21355 (nonmemory_operand): Use register_operand for the non-constant cases.
21356
21357 2014-04-01 Richard Biener <rguenther@suse.de>
21358
21359 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21360
21361 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21362
21363 * doc/invoke.texi (mapp-regs): Clarify.
21364
21365 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21366
21367 * config/i386/avx512fintrin.h (__v32hi): Define type.
21368 (__v64qi): Likewise.
21369 (_mm512_set1_epi8): Define.
21370 (_mm512_set1_epi16): Define.
21371 (_mm512_set4_epi32): Define.
21372 (_mm512_set4_epi64): Define.
21373 (_mm512_set4_pd): Define.
21374 (_mm512_set4_ps): Define.
21375 (_mm512_setr4_epi64): Define.
21376 (_mm512_setr4_epi32): Define.
21377 (_mm512_setr4_pd): Define.
21378 (_mm512_setr4_ps): Define.
21379 (_mm512_setzero_epi32): Define.
21380
21381 2014-03-31 Martin Jambor <mjambor@suse.cz>
21382
21383 PR middle-end/60647
21384 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21385 callsite_arguments_match_p. Updated all callers. Also check types of
21386 corresponding formal parameters and actual arguments.
21387 (not_all_callers_have_enough_arguments_p) Renamed to
21388 some_callers_have_mismatched_arguments_p.
21389
21390 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21391
21392 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21393
21394 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21395
21396 PR target/60034
21397 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21398 section anchor.
21399
21400 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21401
21402 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21403 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21404 Split out
21405 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21406 Use FMAMODE_NOVF512 mode iterator.
21407 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21408 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21409 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21410 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21411 Split out
21412 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21413 Use VF_128_256 mode iterator.
21414 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21415 Ditto.
21416
21417 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21418
21419 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21420 static chain if needed.
21421
21422 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21423
21424 PR target/60697
21425 * lra-constraints.c (index_part_to_reg): New.
21426 (process_address): Use it.
21427
21428 2014-03-27 Jeff Law <law@redhat.com>
21429 Jakub Jelinek <jakub@redhat.com>
21430
21431 PR target/60648
21432 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21433 gen_rtx_{PLUS,MULT} to build up the address expression.
21434
21435 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21436 creating non-canonical RTL.
21437
21438 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21439
21440 PR ipa/60243
21441 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21442 functions; reorganize to make cheap checks first.
21443 (inline_small_functions): Do not estimate growth when dumping;
21444 it is expensive.
21445 * ipa-inline.h (inline_summary): Add min_size.
21446 (growth_likely_positive): New function.
21447 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21448 (set_cond_stmt_execution_predicate): Cleanup.
21449 (estimate_edge_size_and_time): Compute min_size.
21450 (estimate_calls_size_and_time): Likewise.
21451 (estimate_node_size_and_time): Likewise.
21452 (inline_update_overall_summary): Update min_size.
21453 (do_estimate_edge_time): Likewise.
21454 (do_estimate_edge_size): Update.
21455 (do_estimate_edge_hints): Update.
21456 (growth_likely_positive): New function.
21457
21458 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21459
21460 PR target/60693
21461 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21462 also if addr has VOIDmode.
21463
21464 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21465
21466 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21467 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21468 Declare extern.
21469 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21470 instructions as well as AdvancedSIMD loads.
21471
21472 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21473
21474 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21475 Use crypto_aese type.
21476 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21477 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21478 crypto_aese, crypto_aesmc. Move to types.md.
21479 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21480 crypto_aesmc.
21481 * config/arm/iterators.md (crypto_type): Likewise.
21482
21483 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21484
21485 * cgraph.c: Include expr.h and tree-dfa.h.
21486 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21487 remove LHS.
21488
21489 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21490
21491 PR target/60675
21492 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21493 regs from checking multi-reg pseudos.
21494
21495 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21496
21497 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21498
21499 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21500
21501 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21502 if it would clobber the stack pointer, even temporarily.
21503
21504 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21505
21506 * mode-switching.c: Make small adjustments to the top comment.
21507
21508 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21509
21510 * config/rs6000/constraints.md (wD constraint): New constraint to
21511 match the constant integer to get the top DImode/DFmode out of a
21512 vector in a VSX register.
21513
21514 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21515 match the constant integer to get the top DImode/DFmode out of a
21516 vector in a VSX register.
21517
21518 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21519 for ISA 2.07.
21520
21521 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21522 vbpermq builtins.
21523
21524 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21525 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21526
21527 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21528 Optimize vec_extract of 64-bit values, where the value being
21529 extracted is in the top word, where we can use scalar
21530 instructions. Add direct move and store support. Combine the big
21531 endian/little endian vector select load support into a single insn.
21532 (vsx_extract_<mode>_internal1): Likewise.
21533 (vsx_extract_<mode>_internal2): Likewise.
21534 (vsx_extract_<mode>_load): Likewise.
21535 (vsx_extract_<mode>_store): Likewise.
21536 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21537 combined into vsx_extract_<mode>_load.
21538 (vsx_extract_<mode>_one_le): Likewise.
21539
21540 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21541 define the top 64-bit vector element.
21542
21543 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21544 constraint.
21545
21546 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21547 Document vec_vbpermq builtin.
21548
21549 PR target/60672
21550 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21551 enable use of xxsldwi and xxpermdi builtin functions.
21552 (vec_xxpermdi): Likewise.
21553
21554 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21555 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21556
21557 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21558
21559 PR rtl-optimization/60650
21560 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21561 first_p. Use it.
21562 (find_spills_for): New.
21563 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21564 Spill all pseudos on the second iteration.
21565
21566 2014-03-27 Marek Polacek <polacek@redhat.com>
21567
21568 PR c/50347
21569 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21570 types.
21571
21572 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21573
21574 * config/s390/s390.c (s390_can_use_return_insn): Check for
21575 call-saved FPRs on 31 bit.
21576
21577 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21578
21579 PR middle-end/60682
21580 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21581 if they need regimplification, just drop them instead of
21582 calling gimple_regimplify_operands on them.
21583
21584 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21585
21586 PR target/60580
21587 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21588 (aarch64_frame_pointer_required): Adjust logic.
21589 (aarch64_can_eliminate): Adjust logic.
21590 (aarch64_override_options_after_change): Adjust logic.
21591
21592 2014-03-27 Dehao Chen <dehao@google.com>
21593
21594 * ipa-inline.c (early_inliner): Update node's inline info.
21595
21596 2014-03-26 Dehao Chen <dehao@google.com>
21597
21598 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21599 compiler inserted conditional jumps for NAN float check.
21600
21601 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21602
21603 * ubsan.h (ubsan_create_data): Change second argument's type
21604 to const location_t *.
21605 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21606 _("<unknown>").
21607 (ubsan_create_data): Change second argument to const location_t *PLOC.
21608 Create Loc field whenever PLOC is non-NULL.
21609 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21610 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21611 callers.
21612
21613 PR other/59545
21614 * real.c (real_to_integer2): Change type of low to UHWI.
21615
21616 2014-03-26 Tobias Burnus <burnus@net-b.de>
21617
21618 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21619 (CILK_SELF_SPECS): New define.
21620 (driver_self_specs): Use it.
21621
21622 2014-03-26 Richard Biener <rguenther@suse.de>
21623
21624 * tree-pretty-print.c (percent_K_format): Implement special
21625 case for LTO and its stripped down BLOCK tree.
21626
21627 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21628
21629 PR sanitizer/60636
21630 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21631
21632 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21633 one range is range_int_cst_p, but not both, at least optimize
21634 addition/subtraction of 0 and multiplication by 0 or 1.
21635 * gimple-fold.c (gimple_fold_call): Fold
21636 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21637 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21638 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21639
21640 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21641
21642 PR rtl-optimization/60452
21643 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21644 <case REG>: Return 1 for invalid offsets from the frame pointer.
21645
21646 2014-03-26 Marek Polacek <polacek@redhat.com>
21647
21648 PR c/37428
21649 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21650 a structure/union.
21651
21652 2014-03-26 Marek Polacek <polacek@redhat.com>
21653
21654 PR c/39525
21655 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21656 field members.
21657
21658 2014-03-26 Marek Polacek <polacek@redhat.com>
21659
21660 PR other/59545
21661 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21662 multiplication in unsigned type.
21663
21664 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21665
21666 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21667
21668 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21669
21670 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21671
21672 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21673
21674 PR ipa/60315
21675 * cif-code.def (UNREACHABLE) New code.
21676 * ipa-inline.c (inline_small_functions): Skip edges to
21677 __builtlin_unreachable.
21678 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21679 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21680 predicate to __bulitin_unreachable.
21681 (set_cond_stmt_execution_predicate): Fix issue when
21682 invert_tree_comparison returns ERROR_MARK.
21683 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21684 propagate to inline clones.
21685 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21686 to unreachable.
21687 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21688 * cgraphclones.c (cgraph_clone_node): If call destination is already
21689 ureachable, do not redirect it back.
21690 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21691 unreachable.
21692
21693 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21694
21695 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21696 Do not modify inline clones.
21697
21698 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21699
21700 * config/i386/i386.md (general_sext_operand): New mode attr.
21701 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21702 don't generate (sign_extend (const_int)).
21703 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21704 operands[2]. Use We constraint instead of <i> and
21705 <general_sext_operand> predicate instead of <general_operand>.
21706 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21707 * config/i386/constraints.md (We): New constraint.
21708 * config/i386/predicates.md (x86_64_sext_operand,
21709 sext_operand): New predicates.
21710
21711 2014-03-25 Martin Jambor <mjambor@suse.cz>
21712
21713 PR ipa/60600
21714 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21715 inconsistent devirtualizations to __builtin_unreachable.
21716
21717 2014-03-25 Marek Polacek <polacek@redhat.com>
21718
21719 PR c/35449
21720 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21721
21722 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21723
21724 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21725 order of elements for big-endian.
21726
21727 2014-03-25 Richard Biener <rguenther@suse.de>
21728
21729 PR middle-end/60635
21730 * gimplify-me.c (gimple_regimplify_operands): Update the
21731 re-gimplifed stmt.
21732
21733 2014-03-25 Martin Jambor <mjambor@suse.cz>
21734
21735 PR ipa/59176
21736 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21737 (lto_output_varpool_node): Likewise.
21738 (input_overwrite_node): Likewise.
21739 (input_varpool_node): Likewise.
21740
21741 2014-03-25 Richard Biener <rguenther@suse.de>
21742
21743 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21744 (run_gcc): Likewise.
21745
21746 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21747
21748 * combine.c (simplify_compare_const): Add MODE argument.
21749 Handle mode_width 0 as very large mode_width.
21750 (try_combine, simplify_comparison): Adjust callers.
21751
21752 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21753 type to avoid signed integer overflow.
21754 * explow.c (plus_constant): Likewise.
21755
21756 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21757
21758 * doc/generic.texi: Correct typos.
21759
21760 2014-03-24 Tobias Burnus <burnus@net-b.de>
21761
21762 * doc/invoke.texi (-flto): Expand section about
21763 using static libraries with LTO.
21764
21765 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21766
21767 PR rtl-optimization/60501
21768 * optabs.def (addptr3_optab): New optab.
21769 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21770 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21771 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21772
21773 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21774
21775 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21776
21777 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21778
21779 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21780 _mm512_set1_pd.
21781
21782 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21783 (_mm256_undefined_ps): Define.
21784 (_mm256_undefined_pd): Define.
21785 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21786 (_mm_undefined_pd): Define.
21787 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21788 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21789 (_mm512_undefined_ps): Define.
21790 (_mm512_undefined_pd): Define.
21791 Use _mm*_undefined_*.
21792 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21793
21794 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21795
21796 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21797 (lshr_simd): DI mode added.
21798 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21799 (aarch64_ushr_simddi): Likewise.
21800 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21801 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21802 (vshrd_n_u64): Likewise.
21803
21804 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21805
21806 * Makefile.in (s-macro_list): Depend on cc1.
21807
21808 2014-03-23 Teresa Johnson <tejohnson@google.com>
21809
21810 * ipa-utils.c (ipa_print_order): Use specified dump file.
21811
21812 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21813
21814 PR rtl-optimization/60601
21815 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21816
21817 * gcc.c (eval_spec_function): Initialize save_growing_value.
21818
21819 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21820
21821 PR sanitizer/60613
21822 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21823 code == MINUS_EXPR, never swap op0 with op1.
21824
21825 * toplev.c (init_local_tick): Avoid signed integer multiplication
21826 overflow.
21827 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21828 shift by first operand's bitsize.
21829
21830 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21831
21832 PR target/60610
21833 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21834 redefine to 1 or 0.
21835 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21836 TARGET_ISA_64BIT_P(x).
21837
21838 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21839
21840 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21841 pattern for vector nor instead of subtract from splat(-1).
21842 (altivec_expand_vec_perm_const_le): Likewise.
21843
21844 2014-03-21 Richard Henderson <rth@twiddle.net>
21845
21846 PR target/60598
21847 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21848 related insns after epilogue_completed.
21849
21850 2014-03-21 Martin Jambor <mjambor@suse.cz>
21851
21852 PR ipa/59176
21853 * cgraph.h (symtab_node): New flag body_removed.
21854 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21855 when removing bodies.
21856 * symtab.c (dump_symtab_base): Dump body_removed flag.
21857 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21858 had their bodies removed.
21859
21860 2014-03-21 Martin Jambor <mjambor@suse.cz>
21861
21862 PR ipa/60419
21863 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21864 in the border.
21865
21866 2014-03-21 Richard Biener <rguenther@suse.de>
21867
21868 PR tree-optimization/60577
21869 * tree-core.h (struct tree_base): Document nothrow_flag use
21870 in DECL_NONALIASED.
21871 * tree.h (DECL_NONALIASED): New.
21872 (may_be_aliased): Adjust.
21873 * coverage.c (build_var): Set DECL_NONALIASED.
21874
21875 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21876
21877 * expr.c (expand_expr_real_1): Remove outdated comment.
21878
21879 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21880
21881 PR middle-end/60597
21882 * ira.c (adjust_cleared_regs): Call copy_rtx on
21883 *reg_equiv[REGNO (loc)].src_p before passing it to
21884 simplify_replace_fn_rtx.
21885
21886 PR target/60568
21887 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21888 into CONST, put pic register as first operand of PLUS. Use
21889 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21890
21891 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21892
21893 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21894
21895 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21896
21897 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21898 around for store forwarding issue in the FPU on the UT699.
21899 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21900 loads and operations if -mfix-ut699 is specified.
21901 (divtf3_hq): Tweak attribute.
21902 (sqrttf2_hq): Likewise.
21903
21904 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21905
21906 * calls.c (store_one_arg): Remove incorrect const qualification on the
21907 type of the temporary.
21908 * cfgexpand.c (expand_return): Likewise.
21909 * expr.c (expand_constructor): Likewise.
21910 (expand_expr_real_1): Likewise.
21911
21912 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21913
21914 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21915 of parts.
21916
21917 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21918
21919 PR target/60039
21920 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21921
21922 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21923
21924 * config/arm/aarch-common-protos.h
21925 (alu_cost_table): Fix spelling of "extend".
21926 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21927
21928 2014-03-19 Richard Biener <rguenther@suse.de>
21929
21930 PR middle-end/60553
21931 * tree-core.h (tree_type_common): Re-order pointer members
21932 to reduce recursion depth during GC walks.
21933
21934 2014-03-19 Marek Polacek <polacek@redhat.com>
21935
21936 PR sanitizer/60569
21937 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21938 before accessing it.
21939
21940 2014-03-19 Richard Biener <rguenther@suse.de>
21941
21942 PR lto/59543
21943 * lto-streamer-in.c (input_function): In WPA stage do not drop
21944 debug stmts.
21945
21946 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21947
21948 PR tree-optimization/60559
21949 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21950 with build_zero_cst assignment.
21951
21952 2014-03-18 Kai Tietz <ktietz@redhat.com>
21953
21954 PR rtl-optimization/56356
21955 * sdbout.c (sdbout_parms): Verify that parms'
21956 incoming argument is valid.
21957 (sdbout_reg_parms): Likewise.
21958
21959 2014-03-18 Richard Henderson <rth@redhat.com>
21960
21961 PR target/60562
21962 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21963 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21964 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21965
21966 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21967
21968 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21969 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21970 Italicize plugin event names in description. Explain that
21971 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21972 Remind that no GCC functions should be called after PLUGIN_FINISH.
21973 Explain what pragmas with expansion are.
21974
21975 2014-03-18 Martin Liska <mliska@suse.cz>
21976
21977 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21978 gimple call statement is update.
21979 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21980 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21981
21982 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21983
21984 PR sanitizer/60557
21985 * ubsan.c (ubsan_instrument_unreachable): Call
21986 initialize_sanitizer_builtins.
21987 (ubsan_pass): Likewise.
21988
21989 PR sanitizer/60535
21990 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21991 varpool_finalize_decl instead of rest_of_decl_compilation.
21992
21993 2014-03-18 Richard Biener <rguenther@suse.de>
21994
21995 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21996 by using bitmap_and_compl instead of bitmap_and_compl_into.
21997 (df_rd_transfer_function): Likewise.
21998
21999 2014-03-18 Richard Biener <rguenther@suse.de>
22000
22001 * doc/lto.texi (fresolution): Fix typo.
22002
22003 2014-03-18 Richard Biener <rguenther@suse.de>
22004
22005 * doc/invoke.texi (flto): Update for changes in 4.9.
22006
22007 2014-03-18 Richard Biener <rguenther@suse.de>
22008
22009 * doc/loop.texi: Remove section on the removed lambda framework.
22010 Update loop docs with recent changes in preserving loop structure.
22011
22012 2014-03-18 Richard Biener <rguenther@suse.de>
22013
22014 * doc/lto.texi (-fresolution): Document.
22015
22016 2014-03-18 Richard Biener <rguenther@suse.de>
22017
22018 * doc/contrib.texi: Adjust my name.
22019
22020 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22021
22022 PR ipa/58721
22023 * internal-fn.c: Include diagnostic-core.h.
22024 (expand_BUILTIN_EXPECT): New function.
22025 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
22026 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
22027 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
22028 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
22029 IFN_BUILTIN_EXPECT.
22030 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
22031 Revert 3 argument __builtin_expect code.
22032 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
22033 * gimple-fold.c (gimple_fold_call): Likewise.
22034 * tree.h (fold_builtin_expect): New prototype.
22035 * builtins.c (build_builtin_expect_predicate): Add predictor
22036 argument, if non-NULL, create 3 argument __builtin_expect.
22037 (fold_builtin_expect): No longer static. Add ARG2 argument,
22038 pass it through to build_builtin_expect_predicate.
22039 (fold_builtin_2): Adjust caller.
22040 (fold_builtin_3): Handle BUILT_IN_EXPECT.
22041 * internal-fn.def (BUILTIN_EXPECT): New.
22042
22043 2014-03-18 Tobias Burnus <burnus@net-b.de>
22044
22045 PR ipa/58721
22046 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
22047 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
22048 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
22049
22050 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
22051
22052 PR ipa/58721
22053 * predict.c (combine_predictions_for_bb): Fix up formatting.
22054 (expr_expected_value_1, expr_expected_value): Add predictor argument,
22055 fill what it points to if non-NULL.
22056 (tree_predict_by_opcode): Adjust caller, use the predictor.
22057 * predict.def (PRED_COMPARE_AND_SWAP): Add.
22058
22059 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
22060
22061 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
22062 proper constant for the store mode.
22063
22064 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
22065
22066 * symtab.c (change_decl_assembler_name): Fix transparent alias
22067 chain construction.
22068
22069 2014-03-16 Renlin Li <Renlin.Li@arm.com>
22070
22071 * config/aarch64/aarch64.c: Correct the comments about the
22072 aarch64 stack layout.
22073
22074 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
22075
22076 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
22077 check for GF_OMP_FOR_KIND_FOR.
22078
22079 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22080
22081 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
22082 ymm and zmm register names.
22083
22084 2014-03-17 Jakub Jelinek <jakub@redhat.com>
22085
22086 PR target/60516
22087 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
22088 note creation for the 2010-08-31 changes.
22089
22090 2014-03-17 Marek Polacek <polacek@redhat.com>
22091
22092 PR middle-end/60534
22093 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22094 as -fno-tree-loop-vectorize.
22095 (expand_omp_simd): Likewise.
22096
22097 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22098
22099 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22100 (eligible_for_call_delay): New prototype.
22101 * config/sparc/sparc.c (tls_call_delay): Rename into...
22102 (eligible_for_call_delay): ...this. Return false if the instruction
22103 cannot be put in the delay slot of a branch.
22104 (eligible_for_restore_insn): Simplify.
22105 (eligible_for_return_delay): Return false if the instruction cannot be
22106 put in the delay slot of a branch and simplify.
22107 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22108 put in the delay slot of a branch.
22109 * config/sparc/sparc.md (fix_ut699): New attribute.
22110 (tls_call_delay): Delete.
22111 (in_call_delay): Reimplement.
22112 (eligible_for_sibcall_delay): Rename into...
22113 (in_sibcall_delay): ...this.
22114 (eligible_for_return_delay): Rename into...
22115 (in_return_delay): ...this.
22116 (in_branch_delay): Reimplement.
22117 (in_uncond_branch_delay): Delete.
22118 (in_annul_branch_delay): Delete.
22119
22120 2014-03-14 Richard Henderson <rth@redhat.com>
22121
22122 PR target/60525
22123 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22124 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22125 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22126 (floathi splitters): Remove.
22127 (float<SWI48x>xf2): New pattern.
22128 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22129 code that tried to handle DImode for 32-bit, but which was excluded
22130 by the pattern's condition. Drop allocation of stack temporary.
22131 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22132 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22133 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22134 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22135 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22136 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22137 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22138 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22139 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22140 (*float<SWI48x><X87MODEF>2_i387): Remove.
22141 (all float _with_temp splitters): Remove.
22142 (*float<SWI48x><MODEF>2_i387): New pattern.
22143 (*float<SWI48><MODEF>2_sse): New pattern.
22144 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22145 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22146
22147 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22148 Marek Polacek <polacek@redhat.com>
22149
22150 PR middle-end/60484
22151 * common.opt (dump_base_name_prefixed): New Variable.
22152 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22153 if x_dump_base_name_prefixed is already set, set it at the end.
22154
22155 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22156
22157 PR rtl-optimization/60508
22158 * lra-constraints.c (get_reload_reg): Add new parameter
22159 in_subreg_p.
22160 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22161 Pass the new parameter values.
22162
22163 2014-03-14 Richard Biener <rguenther@suse.de>
22164
22165 * common.opt: Revert unintented changes from r205065.
22166 * opts.c: Likewise.
22167
22168 2014-03-14 Richard Biener <rguenther@suse.de>
22169
22170 PR middle-end/60518
22171 * cfghooks.c (split_block): Properly adjust all loops the
22172 block was a latch of.
22173
22174 2014-03-14 Martin Jambor <mjambor@suse.cz>
22175
22176 PR lto/60461
22177 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22178 and simplify it.
22179
22180 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22181
22182 PR target/59396
22183 * config/avr/avr.c (avr_set_current_function): Pass function name
22184 through default_strip_name_encoding before sanity checking instead
22185 of skipping the first char of the assembler name.
22186
22187 2014-03-13 Richard Henderson <rth@redhat.com>
22188
22189 PR debug/60438
22190 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22191 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22192 * config/i386/i386-protos.h: Likewise.
22193 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22194 in the expander instead of a splitter.
22195 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22196 any possibility of requiring a memory.
22197 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22198 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22199 (fp branch splitters): Update for ix86_split_fp_branch.
22200 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22201 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22202 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22203 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22204 (*fop_<MODEF>_3_i387): Likewise.
22205 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22206 (splitters for the fop_* register patterns): Remove.
22207 (fscalexf4_i387): Rename from *fscalexf4_i387.
22208 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22209
22210 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22211
22212 PR tree-optimization/59779
22213 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22214 type for bitsize and maxsize instead of HOST_WIDE_INT.
22215
22216 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22217
22218 PR rtl-optimization/57320
22219 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22220 the CFG after thread_prologue_and_epilogue_insns.
22221
22222 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22223
22224 PR rtl-optimization/57189
22225 * lra-constraints.c (process_alt_operands): Disfavor spilling
22226 vector pseudos.
22227
22228 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22229
22230 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22231
22232 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22233
22234 PR tree-optimization/59025
22235 PR middle-end/60418
22236 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22237 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22238
22239 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22240
22241 PR target/60486
22242 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22243 calls of avr_out_plus_1.
22244
22245 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22246
22247 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22248 BB's single pred and update the father loop's latch info later.
22249
22250 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22251
22252 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22253 (VEC_M): Likewise.
22254 (VEC_N): Likewise.
22255 (VEC_R): Likewise.
22256 (VEC_base): Likewise.
22257 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22258 registers, we need to swap double words in little endian mode.
22259
22260 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22261 to be a container mode for 128-bit integer operations added in ISA
22262 2.07. Unlike TImode and PTImode, the preferred register set is
22263 the Altivec/VMX registers for the 128-bit operations.
22264
22265 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22266 declarations.
22267 (rs6000_split_128bit_ok_p): Likewise.
22268
22269 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22270 macros for creating ISA 2.07 normal and overloaded builtin
22271 functions with 3 arguments.
22272 (BU_P8V_OVERLOAD_3): Likewise.
22273 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22274 for use as overloaded functions.
22275 (VPERM_1TI_UNS): Likewise.
22276 (VSEL_1TI): Likewise.
22277 (VSEL_1TI_UNS): Likewise.
22278 (ST_INTERNAL_1ti): Likewise.
22279 (LD_INTERNAL_1ti): Likewise.
22280 (XXSEL_1TI): Likewise.
22281 (XXSEL_1TI_UNS): Likewise.
22282 (VPERM_1TI): Likewise.
22283 (VPERM_1TI_UNS): Likewise.
22284 (XXPERMDI_1TI): Likewise.
22285 (SET_1TI): Likewise.
22286 (LXVD2X_V1TI): Likewise.
22287 (STXVD2X_V1TI): Likewise.
22288 (VEC_INIT_V1TI): Likewise.
22289 (VEC_SET_V1TI): Likewise.
22290 (VEC_EXT_V1TI): Likewise.
22291 (EQV_V1TI): Likewise.
22292 (NAND_V1TI): Likewise.
22293 (ORC_V1TI): Likewise.
22294 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22295 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22296 overloaded builtin.
22297 (VADDUQM): Likewise.
22298 (VSUBCUQ): Likewise.
22299 (VADDEUQM): Likewise.
22300 (VADDECUQ): Likewise.
22301 (VSUBEUQM): Likewise.
22302 (VSUBECUQ): Likewise.
22303
22304 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22305 __int128_t and __uint128_t types.
22306 (__uint128_type): Likewise.
22307 (altivec_categorize_keyword): Add support for vector __int128_t,
22308 vector __uint128_t, vector __int128, and vector unsigned __int128
22309 as a container type for TImode operations that need to be done in
22310 VSX/Altivec registers.
22311 (rs6000_macro_to_expand): Likewise.
22312 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22313 to support 128-bit integer instructions vaddcuq, vadduqm,
22314 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22315 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22316
22317 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22318 for V1TImode, and set up preferences to use VSX/Altivec registers.
22319 Setup VSX reload handlers.
22320 (rs6000_debug_reg_global): Likewise.
22321 (rs6000_init_hard_regno_mode_ok): Likewise.
22322 (rs6000_preferred_simd_mode): Likewise.
22323 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22324 (easy_altivec_constant): Likewise.
22325 (output_vec_const_move): Likewise.
22326 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22327 simple move.
22328 (rs6000_expand_vector_extract): Likewise.
22329 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22330 addressing.
22331 (rs6000_const_vec): Add support for V1TImode.
22332 (rs6000_emit_le_vsx_load): Swap double words when loading or
22333 storing TImode/V1TImode.
22334 (rs6000_emit_le_vsx_store): Likewise.
22335 (rs6000_emit_le_vsx_move): Likewise.
22336 (rs6000_emit_move): Add support for V1TImode.
22337 (altivec_expand_ld_builtin): Likewise.
22338 (altivec_expand_st_builtin): Likewise.
22339 (altivec_expand_vec_init_builtin): Likewise.
22340 (altivec_expand_builtin): Likewise.
22341 (rs6000_init_builtins): Add support for V1TImode type. Add
22342 support for ISA 2.07 128-bit integer builtins. Define type names
22343 for the VSX/Altivec vector types.
22344 (altivec_init_builtins): Add support for overloaded vector
22345 functions with V1TImode type.
22346 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22347 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22348 external function.
22349 (rs6000_split_128bit_ok_p): Likewise.
22350 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22351 __int128_t and vector __uint128_t.
22352
22353 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22354 and mode attributes.
22355 (VSX_M): Likewise.
22356 (VSX_M2): Likewise.
22357 (VSm): Likewise.
22358 (VSs): Likewise.
22359 (VSr): Likewise.
22360 (VSv): Likewise.
22361 (VS_scalar): Likewise.
22362 (VS_double): Likewise.
22363 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22364
22365 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22366 we support the ISA 2.07 128-bit integer arithmetic instructions.
22367 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22368 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22369 and TImode types for use with the builtin functions.
22370 (V1TI_type_node): Likewise.
22371 (unsigned_V1TI_type_node): Likewise.
22372 (intTI_type_internal_node): Likewise.
22373 (uintTI_type_internal_node): Likewise.
22374
22375 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22376 128-bit builtin functions.
22377 (UNSPEC_VADDEUQM): Likewise.
22378 (UNSPEC_VADDECUQ): Likewise.
22379 (UNSPEC_VSUBCUQ): Likewise.
22380 (UNSPEC_VSUBEUQM): Likewise.
22381 (UNSPEC_VSUBECUQ): Likewise.
22382 (VM): Add V1TImode to vector mode iterators.
22383 (VM2): Likewise.
22384 (VI_unit): Likewise.
22385 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22386 (altivec_vaddcuq): Likewise.
22387 (altivec_vsubuqm): Likewise.
22388 (altivec_vsubcuq): Likewise.
22389 (altivec_vaddeuqm): Likewise.
22390 (altivec_vaddecuq): Likewise.
22391 (altivec_vsubeuqm): Likewise.
22392 (altivec_vsubecuq): Likewise.
22393
22394 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22395 mode iterators.
22396 (BOOL_128): Likewise.
22397 (BOOL_REGS_OUTPUT): Likewise.
22398 (BOOL_REGS_OP1): Likewise.
22399 (BOOL_REGS_OP2): Likewise.
22400 (BOOL_REGS_UNARY): Likewise.
22401 (BOOL_REGS_AND_CR0): Likewise.
22402
22403 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22404 128-bit integer builtin support.
22405 (vec_vadduqm): Likewise.
22406 (vec_vaddecuq): Likewise.
22407 (vec_vaddeuqm): Likewise.
22408 (vec_vsubecuq): Likewise.
22409 (vec_vsubeuqm): Likewise.
22410 (vec_vsubcuq): Likewise.
22411 (vec_vsubuqm): Likewise.
22412
22413 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22414 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22415 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22416 128-bit integer add/subtract to ISA 2.07.
22417
22418 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22419
22420 * config/arc/arc.c (arc_predicate_delay_insns):
22421 Fix third argument passed to conditionalize_nonjump.
22422
22423 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22424
22425 * config/aarch64/aarch64-builtins.c
22426 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22427 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22428 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22429 instead of __builtin_lfloor.
22430 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22431
22432 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22433
22434 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22435 (tree_ssa_ifcombine_bb_1): New function.
22436 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22437 is an empty forwarder block to then_bb or vice versa and then_bb
22438 and else_bb are effectively swapped.
22439
22440 2014-03-12 Christian Bruel <christian.bruel@st.com>
22441
22442 PR target/60264
22443 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22444 REG_CFA_DEF_CFA note.
22445 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22446 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22447
22448 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22449
22450 PR tree-optimization/60454
22451 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22452
22453 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22454
22455 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22456 Do not define target_cpu_default2 to generic.
22457 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22458 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22459 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22460
22461 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22462 Marc Glisse <marc.glisse@inria.fr>
22463
22464 PR tree-optimization/60502
22465 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22466 instead of build_low_bits_mask.
22467
22468 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22469
22470 PR middle-end/60482
22471 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22472 if there are multiple uses, but op doesn't live on E edge.
22473 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22474 clobber stmts before __builtin_unreachable.
22475
22476 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22477
22478 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22479 hard_frame_pointer_rtx.
22480 * cse.c (cse_insn): Remove volatile check.
22481 * cselib.c (cselib_process_insn): Likewise.
22482 * dse.c (scan_insn): Likewise.
22483
22484 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22485
22486 * config/arc/arc.c (conditionalize_nonjump): New function,
22487 broken out of ...
22488 (arc_ifcvt): ... this.
22489 (arc_predicate_delay_insns): Use it.
22490
22491 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22492
22493 * config/arc/predicates.md (extend_operand): During/after reload,
22494 allow const_int_operand.
22495 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22496 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22497 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22498 to "i".
22499 (umulsi3_highpart_i): Likewise.
22500
22501 2014-03-11 Richard Biener <rguenther@suse.de>
22502
22503 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22504 Add asserts to guard possible wrong-code bugs.
22505
22506 2014-03-11 Richard Biener <rguenther@suse.de>
22507
22508 PR tree-optimization/60429
22509 PR tree-optimization/60485
22510 * tree-ssa-structalias.c (set_union_with_increment): Properly
22511 take into account all fields that overlap the shifted vars.
22512 (do_sd_constraint): Likewise.
22513 (do_ds_constraint): Likewise.
22514 (get_constraint_for_ptr_offset): Likewise.
22515
22516 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22517
22518 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22519 (nios2_compute_frame_layout):
22520 Add calculation of cfun->machine->fp_save_offset.
22521 (nios2_expand_prologue): Correct setting of frame pointer register
22522 in prologue.
22523 (nios2_expand_epilogue): Update recovery of stack pointer from
22524 frame pointer accordingly.
22525 (nios2_initial_elimination_offset): Update calculation of offset
22526 for eliminating to HARD_FRAME_POINTER_REGNUM.
22527
22528 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22529
22530 PR ipa/60457
22531 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22532 cgraph_get_create_node on VAR_DECLs.
22533
22534 2014-03-10 Richard Biener <rguenther@suse.de>
22535
22536 PR middle-end/60474
22537 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22538
22539 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22540
22541 * config/vms/vms.opt (vms_float_format): New variable.
22542
22543 2014-03-08 Tobias Burnus <burnus@net-b.de>
22544
22545 * doc/invoke.texi (-fcilkplus): Update implementation status.
22546
22547 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22548 Richard Biener <rguenther@suse.de>
22549
22550 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22551 consistently accross all TUs.
22552 (run_gcc): Enable -fshort-double automatically at link at link-time
22553 and disallow override.
22554
22555 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22556
22557 PR target/58271
22558 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22559 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22560 if they can't be used.
22561
22562 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22563
22564 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22565 for Solaris 11/x86 ld.
22566 * configure: Regenerate.
22567
22568 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22569
22570 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22571 (LIB_TLS_SPEC): Save as ld_tls_libs.
22572 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22573 (HAVE_AS_IX86_TLSLDM): New test.
22574 * configure, config.in: Regenerate.
22575 * config/i386/i386.c (legitimize_tls_address): Fall back to
22576 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22577 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22578 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22579 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22580
22581 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22582
22583 * common.opt (fira-loop-pressure): Mark as optimization.
22584
22585 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22586
22587 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22588 an OpenMP mappable type.
22589
22590 2014-03-06 Matthias Klose <doko@ubuntu.com>
22591
22592 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22593 MULTILIB_OSDIRNAMES is not defined.
22594
22595 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22596 Meador Inge <meadori@codesourcery.com>
22597
22598 PR target/58595
22599 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22600 (arm_legitimize_address): Call legitimize_tls_address for any
22601 arm_tls_referenced_p expression, handle constant addend. Call it
22602 before testing for !TARGET_ARM.
22603 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22604
22605 2014-03-06 Richard Biener <rguenther@suse.de>
22606
22607 PR middle-end/60445
22608 PR lto/60424
22609 PR lto/60427
22610 Revert
22611 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22612
22613 * tree-streamer.c (record_common_node): Assert we don't record
22614 nodes with type double.
22615 (preload_common_node): Skip type double, complex double and double
22616 pointer since it is now frontend dependent due to fshort-double option.
22617
22618 2014-03-06 Richard Biener <rguenther@suse.de>
22619
22620 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22621 or -fno-lto is specified and the linker has full plugin support.
22622 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22623 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22624 * lto-wrapper.c (merge_and_complain): Merge compile-time
22625 optimization levels.
22626 (run_gcc): And pass it through to the link options.
22627
22628 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22629
22630 PR debug/60381
22631 Revert:
22632 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22633 PR debug/59992
22634 * cselib.c (remove_useless_values): Skip to avoid quadratic
22635 behavior if the condition moved from...
22636 (cselib_process_insn): ... here holds.
22637
22638 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22639
22640 PR plugins/59335
22641 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22642 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22643
22644 PR plugins/59335
22645 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22646 (TM_H): Add x86-tune.def.
22647
22648 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22649
22650 * config/aarch64/aarch64.c (generic_tunings):
22651 Use cortexa57_extra_costs.
22652
22653 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22654
22655 PR lto/60404
22656 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22657 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22658 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22659 cost for in_lto_p.
22660
22661 2014-03-04 Heiher <r@hev.cc>
22662
22663 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22664 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22665
22666 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22667
22668 * config/i386/predicates.md (const2356_operand): Change to ...
22669 (const2367_operand): ... this.
22670 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22671 const2367_operand.
22672 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22673 (*avx512pf_scatterpf<mode>sf): Ditto.
22674 (avx512pf_scatterpf<mode>df): Ditto.
22675 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22676 (*avx512pf_scatterpf<mode>df): Ditto.
22677 * config/i386/i386.c (ix86_expand_builtin): Update
22678 incorrect hint operand error message.
22679
22680 2014-03-04 Richard Biener <rguenther@suse.de>
22681
22682 * lto-section-in.c (lto_get_section_data): Fix const cast.
22683
22684 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22685
22686 * tree-streamer.c (record_common_node): Assert we don't record
22687 nodes with type double.
22688 (preload_common_node): Skip type double, complex double and double
22689 pointer since it is now frontend dependent due to fshort-double option.
22690
22691 2014-03-04 Richard Biener <rguenther@suse.de>
22692
22693 PR lto/60405
22694 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22695 (lto_input_toplevel_asms): Likewise.
22696 * lto-section-in.c (lto_get_section_data): Instead do it here
22697 for every section.
22698
22699 2014-03-04 Richard Biener <rguenther@suse.de>
22700
22701 PR tree-optimization/60382
22702 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22703 dead PHIs a reduction.
22704
22705 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22706
22707 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22708 hint value.
22709 (_mm_prefetch): Move out of GCC target("sse") pragma.
22710 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22711 GCC target("prfchw") pragma.
22712 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22713 for locality <= 2.
22714 * config/i386/i386.c (ix86_option_override_internal): Enable
22715 -mprfchw with -mprefetchwt1.
22716
22717 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22718
22719 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22720 Mark as varying.
22721
22722 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22723
22724 * opts.h (CL_PCH_IGNORE): Define.
22725 * targhooks.c (option_affects_pch_p):
22726 Return false for options that have CL_PCH_IGNORE set.
22727 * opt-functions.awk: Process PchIgnore.
22728 * doc/options.texi: Document PchIgnore.
22729
22730 * config/arc/arc.opt (misize): Add PchIgnore property.
22731
22732 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22733
22734 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22735 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22736 constraint on constants to permit them being loaded into
22737 GENERAL_REGS or BASE_REGS.
22738
22739 2014-03-03 Nick Clifton <nickc@redhat.com>
22740
22741 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22742 anti-cacnonical alternatives.
22743 (negandhi3_real): New pattern.
22744 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22745
22746 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22747
22748 * config/avr/avr-mcus.def: Remove atxmega16x1.
22749 * config/avr/avr-tables.opt: Regenerate.
22750 * config/avr/t-multilib: Regenerate.
22751 * doc/avr-mmcu.texi: Regenerate.
22752
22753 2014-03-03 Tobias Grosser <tobias@grosser.es>
22754 Mircea Namolaru <mircea.namolaru@inria.fr>
22755
22756 PR tree-optimization/58028
22757 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22758 scalar dimensions.
22759
22760 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22761
22762 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22763 not handled by recognizers.
22764
22765 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22766
22767 PR middle-end/60175
22768 * function.c (expand_function_end): Don't emit
22769 clobber_return_register sequence if clobber_after is a BARRIER.
22770 * cfgexpand.c (construct_exit_block): Append instructions before
22771 return_label to prev_bb.
22772
22773 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22774
22775 * config/rs6000/constraints.md: Document reserved use of "wc".
22776
22777 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22778
22779 PR ipa/60150
22780 * ipa.c (function_and_variable_visibility): When dissolving comdat
22781 group, also set all symbols to local.
22782
22783 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22784
22785 PR ipa/60306
22786
22787 Revert:
22788 2013-12-14 Jan Hubicka <jh@suse.cz>
22789 PR middle-end/58477
22790 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22791
22792 2014-03-02 Jon Beniston <jon@beniston.com>
22793
22794 PR bootstrap/48230
22795 PR bootstrap/50927
22796 PR bootstrap/52466
22797 PR target/46898
22798 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22799 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22800 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22801 (simple_return, *simple_return): New patterns
22802 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22803 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22804
22805 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22806
22807 * dwarf2out.c (gen_subprogram_die): Tidy.
22808
22809 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22810
22811 PR target/60071
22812 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22813 (*mov_t_msb_neg_negc): ... this new insn.
22814
22815 2014-02-28 Jason Merrill <jason@redhat.com>
22816
22817 PR c++/58678
22818 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22819 function.
22820
22821 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22822
22823 PR c++/60314
22824 * dwarf2out.c (decltype_auto_die): New static.
22825 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22826 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22827 (is_cxx_auto): Likewise.
22828
22829 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22830
22831 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22832 we are not using general regs only.
22833
22834 2014-02-28 Richard Biener <rguenther@suse.de>
22835
22836 PR target/60280
22837 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22838 previous fix and only allow to remove trivial pre-headers
22839 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22840 (remove_forwarder_block): Properly update the latch of a loop.
22841
22842 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22843
22844 PR debug/59992
22845 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22846 (cselib_preserved_hash_table): New.
22847 (preserve_constants_and_equivs): Move preserved vals to it.
22848 (cselib_find_slot): Look it up first.
22849 (cselib_init): Initialize it.
22850 (cselib_finish): Release it.
22851 (dump_cselib_table): Dump it.
22852
22853 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22854
22855 PR debug/59992
22856 * cselib.c (remove_useless_values): Skip to avoid quadratic
22857 behavior if the condition moved from...
22858 (cselib_process_insn): ... here holds.
22859
22860 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22861
22862 PR debug/57232
22863 * var-tracking.c (vt_initialize): Apply the same condition to
22864 preserve the CFA base value.
22865
22866 2014-02-28 Joey Ye <joey.ye@arm.com>
22867
22868 PR target/PR60169
22869 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22870 if reload in progress or completed.
22871
22872 2014-02-28 Tobias Burnus <burnus@net-b.de>
22873
22874 PR middle-end/60147
22875 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22876 NAMELIST_DECL.
22877
22878 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22879
22880 * doc/tm.texi.in (Condition Code Status): Update documention for
22881 relative locations of cc0-setter and cc0-user.
22882
22883 2014-02-27 Jeff Law <law@redhat.com>
22884
22885 PR rtl-optimization/52714
22886 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22887 into two independent simple sets, if I3 is a jump, ensure the
22888 pattern we place into I3 is a (set (pc) ...).
22889
22890 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22891 Jeff Law <law@redhat.com>
22892
22893 PR rtl-optimization/49847
22894 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22895 are in different blocks.
22896 * doc/tm.texi (Condition Code Status): Update documention for
22897 relative locations of cc0-setter and cc0-user.
22898
22899 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22900
22901 PR target/59222
22902 * lra.c (lra_emit_add): Check SUBREG too.
22903
22904 2014-02-27 Andreas Schwab <schwab@suse.de>
22905
22906 * config/m68k/m68k.c (m68k_option_override): Disable
22907 -flive-range-shrinkage for classic m68k.
22908 (m68k_override_options_after_change): Likewise.
22909
22910 2014-02-27 Marek Polacek <polacek@redhat.com>
22911
22912 PR middle-end/59223
22913 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22914 -Wmaybe-uninitialized.
22915
22916 2014-02-27 Alan Modra <amodra@gmail.com>
22917
22918 PR target/57936
22919 * reload1.c (emit_input_reload_insns): When reload_override_in,
22920 set old to rl->in_reg when rl->in_reg is a subreg.
22921
22922 2014-02-26 Richard Biener <rguenther@suse.de>
22923
22924 PR bootstrap/60343
22925 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22926
22927 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22928
22929 * common/config/i386/predicates.md (const1256_operand): Remove.
22930 (const2356_operand): New.
22931 (const_1_to_2_operand): Remove.
22932 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22933 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22934 (*avx512pf_gatherpf<mode>sf): Ditto.
22935 (avx512pf_gatherpf<mode>df): Ditto.
22936 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22937 (*avx512pf_gatherpf<mode>df): Ditto.
22938 (avx512pf_scatterpf<mode>sf): Ditto.
22939 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22940 (*avx512pf_scatterpf<mode>sf): Ditto.
22941 (avx512pf_scatterpf<mode>df): Ditto.
22942 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22943 (*avx512pf_scatterpf<mode>df): Ditto.
22944 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22945
22946 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22947
22948 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22949 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22950 (_mm512_mask_testn_epi64_mask): Move to ...
22951 * config/i386/avx512cdintrin.h: Here.
22952 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22953 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22954 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22955 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22956 TARGET_AVX512F from TARGET_AVX512CD.
22957
22958 2014-02-26 Richard Biener <rguenther@suse.de>
22959
22960 PR ipa/60327
22961 * ipa.c (walk_polymorphic_call_targets): Properly guard
22962 call to inline_update_overall_summary.
22963
22964 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22965
22966 PR target/60280
22967 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22968 and latches only if requested. Fix latch if it is removed.
22969 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22970 LOOPS_HAVE_PREHEADERS.
22971
22972 2014-02-25 Andrew Pinski <apinski@cavium.com>
22973
22974 * builtins.c (expand_builtin_thread_pointer): Create a new target
22975 when the target is NULL.
22976
22977 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22978
22979 PR rtl-optimization/60317
22980 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22981 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22982 * lra-assigns.c: Include params.h.
22983 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22984 other reload pseudos considerations.
22985
22986 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22987
22988 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22989 to use canonical form for nor<mode>3.
22990
22991 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22992
22993 PR target/55426
22994 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22995 conversions.
22996
22997 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22998
22999 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
23000 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
23001 (ix86_handle_option): Handle OPT_mprefetchwt1.
23002 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
23003 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23004 PREFETCHWT1 CPUID.
23005 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23006 OPTION_MASK_ISA_PREFETCHWT1.
23007 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
23008 (PTA_PREFETCHWT1): New.
23009 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
23010 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
23011 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
23012 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
23013 (*prefetch_avx512pf_<mode>_: Change into ...
23014 (*prefetch_prefetchwt1_<mode>: This.
23015 * config/i386/i386.opt (mprefetchwt1): New.
23016 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
23017 (_mm_prefetch): Handle intent to write.
23018 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
23019
23020 2014-02-25 Richard Biener <rguenther@suse.de>
23021
23022 PR middle-end/60291
23023 * emit-rtl.c (mem_attrs_htab): Remove.
23024 (mem_attrs_htab_hash): Likewise.
23025 (mem_attrs_htab_eq): Likewise.
23026 (set_mem_attrs): Always allocate new mem-attrs when something changed.
23027 (init_emit_once): Do not allocate mem_attrs_htab.
23028
23029 2014-02-25 Richard Biener <rguenther@suse.de>
23030
23031 PR lto/60319
23032 * lto-opts.c (lto_write_options): Output non-explicit conservative
23033 -fwrapv, -fno-trapv and -fno-strict-overflow.
23034 * lto-wrapper.c (merge_and_complain): Handle merging those options.
23035 (run_gcc): And pass them through.
23036
23037 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23038
23039 * sel-sched.c (calculate_new_fences): New parameter ptime.
23040 Calculate it as a maximum over all fence cycles.
23041 (sel_sched_region_2): Adjust the call to calculate_new_fences.
23042 Print the final schedule timing when sched_verbose.
23043
23044 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23045
23046 PR rtl-optimization/60292
23047 * sel-sched.c (fill_vec_av_set): Do not reset target availability
23048 bit fot the fence instruction.
23049
23050 2014-02-24 Alangi Derick <alangiderick@gmail.com>
23051
23052 * calls.h: Fix typo in comment.
23053
23054 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
23055
23056 * config/pa/pa.c (pa_output_move_double): Don't valididate when
23057 adjusting offsetable addresses.
23058
23059 2014-02-24 Guozhi Wei <carrot@google.com>
23060
23061 * sparseset.h (sparseset_pop): Fix the wrong index.
23062
23063 2014-02-24 Walter Lee <walt@tilera.com>
23064
23065 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
23066 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
23067 triplet.
23068 * common/config/tilegx/tilegx-common.c
23069 (TARGET_DEFAULT_TARGET_FLAGS): Define.
23070 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
23071 (LINK_SPEC): Ditto.
23072 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
23073 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
23074 (tilegx_gimplify_va_arg_expr): Handle big endian.
23075 (tilegx_expand_unaligned_load): Ditto.
23076 (tilegx_expand_unaligned_store): Ditto.
23077 (TARGET_RETURN_IN_MSB): New.
23078 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
23079 (TARGET_ENDIAN_DEFAULT): New.
23080 (TARGET_BIG_ENDIAN): Handle big endian.
23081 (BYTES_BIG_ENDIAN): Ditto.
23082 (WORDS_BIG_ENDIAN): Ditto.
23083 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
23084 (ENDIAN_SPEC): New.
23085 (EXTRA_SPECS): New.
23086 * config/tilegx/tilegx.md (extv): Handle big endian.
23087 (extzv): Ditto.
23088 (insn_st<n>): Ditto.
23089 (insn_st<n>_add<bitsuffix>): Ditto.
23090 (insn_stnt<n>): Ditto.
23091 (insn_stnt<n>_add<bitsuffix>):Ditto.
23092 (vec_interleave_highv8qi): Handle big endian.
23093 (vec_interleave_highv8qi_be): New.
23094 (vec_interleave_highv8qi_le): New.
23095 (insn_v1int_h): Handle big endian.
23096 (vec_interleave_lowv8qi): Handle big endian.
23097 (vec_interleave_lowv8qi_be): New.
23098 (vec_interleave_lowv8qi_le): New.
23099 (insn_v1int_l): Handle big endian.
23100 (vec_interleave_highv4hi): Handle big endian.
23101 (vec_interleave_highv4hi_be): New.
23102 (vec_interleave_highv4hi_le): New.
23103 (insn_v2int_h): Handle big endian.
23104 (vec_interleave_lowv4hi): Handle big endian.
23105 (vec_interleave_lowv4hi_be): New.
23106 (vec_interleave_lowv4hi_le): New.
23107 (insn_v2int_l): Handle big endian.
23108 (vec_interleave_highv2si): Handle big endian.
23109 (vec_interleave_highv2si_be): New.
23110 (vec_interleave_highv2si_le): New.
23111 (insn_v4int_h): Handle big endian.
23112 (vec_interleave_lowv2si): Handle big endian.
23113 (vec_interleave_lowv2si_be): New.
23114 (vec_interleave_lowv2si_le): New.
23115 (insn_v4int_l): Handle big endian.
23116 * config/tilegx/tilegx.opt (mbig-endian): New option.
23117 (mlittle-endian): New option.
23118 * doc/install.texi: Document tilegxbe-linux.
23119 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23120
23121 2014-02-24 Martin Jambor <mjambor@suse.cz>
23122
23123 PR ipa/60266
23124 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23125 there are no parameter descriptors.
23126
23127 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23128
23129 PR rtl-optimization/60268
23130 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23131 initialization to ...
23132 (sched_rgn_init): ... here.
23133 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23134
23135 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23136
23137 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23138 names.
23139
23140 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23141
23142 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23143 definition.
23144
23145 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23146
23147 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23148 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23149
23150 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23151
23152 * config/microblaze/predicates.md: Add cmp_op predicate.
23153 * config/microblaze/microblaze.md: Add branch_compare instruction
23154 which uses cmp_op predicate and emits cmp insn before branch.
23155 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23156 to microblaze_expand_conditional_branch and consolidate logic.
23157 (microblaze_expand_conditional_branch): emit branch_compare
23158 insn instead of handling cmp op separate from branch insn.
23159
23160 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23161
23162 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23163 to permit subregs.
23164
23165 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23166
23167 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23168 define_insn with define_expand and new define_insn
23169 *altivec_lve<VI_char>x_internal.
23170 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23171 and new define_insn *altivec_stve<VI_char>x_internal.
23172 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23173 prototype.
23174 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23175 lve*x built-ins.
23176 (altivec_expand_stvex_be): New function.
23177
23178 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23179
23180 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23181 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23182 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23183 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23184
23185 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23186
23187 PR target/60298
23188 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23189 instead of emit_move_insn.
23190
23191 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23192
23193 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23194 vspltw with vsldoi.
23195 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23196 gen_altivec_vsumsws.
23197
23198 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23199
23200 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23201 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23202 (altivec_lvxl_<mode>): New define_expand incorporating
23203 -maltivec=be semantics where needed.
23204 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23205 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23206 semantics where needed.
23207 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23208 (altivec_stvx_<mode>): New define_expand incorporating
23209 -maltivec=be semantics where needed.
23210 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23211 VM2 iterator instead of V4SI.
23212 (altivec_stvxl_<mode>): New define_expand incorporating
23213 -maltivec=be semantics where needed.
23214 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23215 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23216 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23217 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23218 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23219 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23220 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23221 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23222 ALTIVEC_BUILTIN_STVXL.
23223 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23224 (altivec_expand_stvx_be): Likewise.
23225 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23226 (altivec_expand_lvx_be): Likewise.
23227 (altivec_expand_stvx_be): Likewise.
23228 (altivec_expand_builtin): Add cases for
23229 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23230 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23231 (altivec_init_builtins): Add definitions for
23232 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23233 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23234
23235 2014-02-21 Catherine Moore <clm@codesourcery.com>
23236
23237 * doc/invoke.texi (mvirt, mno-virt): Document.
23238 * config/mips/mips.opt (mvirt): New option.
23239 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23240
23241 2014-02-21 Richard Biener <rguenther@suse.de>
23242
23243 PR tree-optimization/60276
23244 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23245 (STMT_VINFO_MIN_NEG_DIST): New macro.
23246 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23247 STMT_VINFO_MIN_NEG_DIST.
23248 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23249 made for negative dependence distances still hold.
23250
23251 2014-02-21 Richard Biener <rguenther@suse.de>
23252
23253 PR middle-end/60291
23254 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23255 DECL_INITIAL for globals not in the current function context.
23256
23257 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23258
23259 PR tree-optimization/56490
23260 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23261 * tree-ssa-uninit.c: Include params.h.
23262 (compute_control_dep_chain): Add num_calls argument, return false
23263 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23264 num_calls to recursive call.
23265 (find_predicates): Change dep_chain into normal array,
23266 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23267 variable and adjust compute_control_dep_chain caller.
23268 (find_def_preds): Likewise.
23269
23270 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23271
23272 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23273 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23274
23275 2014-02-21 Nick Clifton <nickc@redhat.com>
23276
23277 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23278 (pushhi1): Likewise.
23279 (popqi1): Add mode to pre_dec.
23280 (pophi1): Likewise.
23281
23282 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23283
23284 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23285 mode for mask of V8SFmode permutation.
23286
23287 2014-02-20 Richard Henderson <rth@redhat.com>
23288
23289 PR c++/60272
23290 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23291 a new pseudo for OLDVAL.
23292
23293 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23294
23295 PR target/57896
23296 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23297 gen_reg_rtx if d->testing_p.
23298 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23299 if d->testing_p and we will certainly return true.
23300 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23301 if d->testing_p.
23302
23303 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23304
23305 * emit-rtl.c (gen_reg_rtx): Assert that
23306 crtl->emit.regno_pointer_align_length is non-zero.
23307
23308 2014-02-20 Richard Henderson <rth@redhat.com>
23309
23310 PR c++/60272
23311 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23312 on failure the store back into EXPECT.
23313
23314 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23315 Sandra Loosemore <sandra@codesourcery.com>
23316
23317 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23318 * config/nios2/nios2.c (nios2_function_profiler): Add
23319 -fPIC (flag_pic == 2) support.
23320 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23321 (nios2_large_offset_p): New function.
23322 (nios2_unspec_reloc_p): Move up position, update to use
23323 nios2_large_offset_p.
23324 (nios2_unspec_address): Remove function.
23325 (nios2_unspec_offset): New function.
23326 (nios2_large_got_address): New function.
23327 (nios2_got_address): Add large offset support.
23328 (nios2_legitimize_tls_address): Update usage of removed and new
23329 functions.
23330 (nios2_symbol_binds_local_p): New function.
23331 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23332 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23333 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23334 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23335 processing for (const (unspec ...)).
23336 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23337
23338 2014-02-20 Richard Biener <rguenther@suse.de>
23339
23340 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23341 doing the substitution.
23342 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23343
23344 2014-02-20 Martin Jambor <mjambor@suse.cz>
23345
23346 PR ipa/55260
23347 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23348 info when checking whether lattices are bottom.
23349
23350 2014-02-20 Richard Biener <rguenther@suse.de>
23351
23352 PR middle-end/60221
23353 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23354 regions at -O0.
23355
23356 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23357
23358 PR ipa/58555
23359 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23360 parameter specifying the scaling.
23361 (inline_call): Update.
23362 (want_inline_recursively): Guard division by zero.
23363 (recursive_inlining): Update.
23364 * ipa-inline.h (clone_inlined_nodes): Update.
23365
23366 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23367
23368 PR target/60204
23369 * config/i386/i386.c (classify_argument): Pass structures of size
23370 64 bytes or less in register.
23371
23372 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23373 Kirill Yukhin <kirill.yukhin@intel.com>
23374
23375 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23376 (_mm_rcp28_round_ss): Ditto.
23377 (_mm_rsqrt28_round_sd): Ditto.
23378 (_mm_rsqrt28_round_ss): Ditto.
23379 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23380 (_mm_rcp14_round_ss): Ditto.
23381 (_mm_rsqrt14_round_sd): Ditto.
23382 (_mm_rsqrt14_round_ss): Ditto.
23383 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23384 the first input operand, get rid of match_dup.
23385 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23386 attribute to sse.
23387 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23388 Ditto.
23389 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23390 operand as the first input operand, set type attribute.
23391 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23392 Set type attribute.
23393 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23394 operand as the first input operand, set type attribute.
23395
23396 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23397
23398 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23399 bit of zero.
23400
23401 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23402
23403 PR target/60207
23404 * config/i386/i386.c (construct_container): Remove TFmode check
23405 for X86_64_INTEGER_CLASS.
23406
23407 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23408
23409 PR target/59794
23410 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23411 only when -Wpsabi is enabled.
23412
23413 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23414
23415 PR target/59799
23416 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23417 passing arrays in registers are the same as for structs, so remove the
23418 special case for them.
23419
23420 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23421
23422 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23423 destination type, extract only the valid bits if the source type is not
23424 integral and has a different mode.
23425
23426 2014-02-19 Richard Biener <rguenther@suse.de>
23427
23428 PR ipa/60243
23429 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23430 for all calls.
23431
23432 2014-02-19 Richard Biener <rguenther@suse.de>
23433
23434 PR ipa/60243
23435 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23436 (ipa_modify_call_arguments): Emit an argument load explicitely and
23437 preserve virtual SSA form there and for the replacement call.
23438 Do not update SSA form nor free dominance info.
23439
23440 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23441
23442 * ipa.c (function_and_variable_visibility): Also clear WEAK
23443 flag when disolving COMDAT_GROUP.
23444
23445 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23446
23447 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23448 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23449 not devirtualizing.
23450 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23451 do more sanity checks.
23452 (detect_type_change): Return true when giving up early.
23453 (compute_complex_assign_jump_func): Fix type parameter of
23454 ipa_set_ancestor_jf.
23455 (compute_complex_ancestor_jump_func): Likewise.
23456 (update_jump_functions_after_inlining): Fix updating of
23457 ancestor function.
23458 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23459
23460 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23461
23462 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23463 inline clones when edge disappears.
23464
23465 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23466
23467 PR target/60203
23468 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23469 Split 64-bit moves into 2 patterns. Do not allow the use of
23470 direct move for TDmode in little endian, since the decimal value
23471 has little endian bytes within a word, but the 64-bit pieces are
23472 ordered in a big endian fashion, and normal subreg's of TDmode are
23473 not allowed.
23474 (mov<mode>_64bit_dm): Likewise.
23475 (movtd_64bit_nodm): Likewise.
23476
23477 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23478
23479 PR tree-optimization/60174
23480 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23481 statement of an SSA_NAME that occurs in an abnormal PHI node.
23482
23483 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23484
23485 PR sanitizer/60142
23486 * final.c (SEEN_BB): Remove.
23487 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23488 (final_scan_insn): Don't force_source_line on second
23489 NOTE_INSN_BASIC_BLOCK.
23490
23491 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23492
23493 PR target/60205
23494 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23495 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23496 (type_natural_mode): Warn ABI change when %zmm register is not
23497 available for AVX512F vector value passing.
23498
23499 2014-02-18 Kai Tietz <ktietz@redhat.com>
23500
23501 PR target/60193
23502 * config/i386/i386.c (ix86_expand_prologue): Use value in
23503 rax register as displacement when restoring %r10 or %rax.
23504 Fix wrong offset when restoring both registers.
23505
23506 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23507
23508 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23509 assertion with conditional return.
23510
23511 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23512 Uros Bizjak <ubizjak@gmail.com>
23513
23514 PR driver/60233
23515 * config/i386/driver-i386.c (host_detect_local_cpu): If
23516 YMM state is not saved by the OS, also clear has_f16c. Move
23517 CPUID 0x80000001 handling before YMM state saving checking.
23518
23519 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23520
23521 PR rtl-optimization/58960
23522 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23523 factored out from ...
23524 (sched_init): ... here.
23525 (free_global_sched_pressure_data): New, factored out from ...
23526 (sched_finish): ... here.
23527 * sched-int.h (free_global_sched_pressure_data): Declare.
23528 * sched-rgn.c (nr_regions_initial): New static global.
23529 (haifa_find_rgns): Initialize it.
23530 (schedule_region): Disable sched-pressure for the newly
23531 generated regions.
23532
23533 2014-02-17 Richard Biener <rguenther@suse.de>
23534
23535 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23536 release SSA defs of pattern stmts.
23537
23538 2014-02-17 Richard Biener <rguenther@suse.de>
23539
23540 * tree-inline.c (expand_call_inline): Release the virtual
23541 operand defined by the call we are about to inline.
23542
23543 2014-02-17 Richard Biener <rguenther@suse.de>
23544
23545 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23546
23547 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23548 Ilya Tocar <ilya.tocar@intel.com>
23549
23550 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23551 arguments order in builtin.
23552 (_mm512_permutexvar_epi64): Ditto.
23553 (_mm512_mask_permutexvar_epi64): Ditto
23554 (_mm512_maskz_permutexvar_epi32): Ditto
23555 (_mm512_permutexvar_epi32): Ditto
23556 (_mm512_mask_permutexvar_epi32): Ditto
23557
23558 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23559
23560 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23561 (p8_vmrgow): Likewise.
23562
23563 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23564
23565 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23566 endian targets.
23567
23568 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23569
23570 PR target/60203
23571 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23572 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23573 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23574 using direct move instructions on ISA 2.07. Also adjust
23575 instruction length for 64-bit.
23576 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23577 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23578
23579 2014-02-15 Alan Modra <amodra@gmail.com>
23580
23581 PR target/58675
23582 PR target/57935
23583 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23584 find_replacement on parts of insn rtl that might be reloaded.
23585
23586 2014-02-15 Richard Biener <rguenther@suse.de>
23587
23588 PR tree-optimization/60183
23589 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23590 (tree_ssa_phiprop): Calculate and free post-dominators.
23591
23592 2014-02-14 Jeff Law <law@redhat.com>
23593
23594 PR rtl-optimization/60131
23595 * ree.c (get_extended_src_reg): New function.
23596 (combine_reaching_defs): Use it rather than assuming location of REG.
23597 (find_and_remove_re): Verify first operand of extension is
23598 a REG before adding the insns to the copy list.
23599
23600 2014-02-14 Roland McGrath <mcgrathr@google.com>
23601
23602 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23603 * configure: Regenerated.
23604 * config.in: Regenerated.
23605 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23606 instead of ASM_SHORT.
23607
23608 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23609 Richard Earnshaw <rearnsha@arm.com>
23610
23611 PR rtl-optimization/59535
23612 * lra-constraints.c (process_alt_operands): Encourage alternative
23613 when unassigned pseudo class is superset of the alternative class.
23614 (inherit_reload_reg): Don't inherit when optimizing for code size.
23615 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23616 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23617 modes not less than 4 for Thumb1.
23618
23619 2014-02-14 Kyle McMartin <kyle@redhat.com>
23620
23621 PR pch/60010
23622 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23623
23624 2014-02-14 Richard Biener <rguenther@suse.de>
23625
23626 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23627 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23628 Do not strip INDIRECT_REFs.
23629
23630 2014-02-14 Richard Biener <rguenther@suse.de>
23631
23632 PR lto/60179
23633 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23634 DECL_FUNCTION_SPECIFIC_TARGET.
23635 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23636 * tree-streamer-out.c (pack_ts_target_option): Remove.
23637 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23638 (write_ts_function_decl_tree_pointers): Do not stream
23639 DECL_FUNCTION_SPECIFIC_TARGET.
23640 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23641 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23642 (lto_input_ts_function_decl_tree_pointers): Do not stream
23643 DECL_FUNCTION_SPECIFIC_TARGET.
23644
23645 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23646
23647 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23648 (get_initial_def_for_induction, vectorizable_induction): Ignore
23649 debug stmts when looking for exit_phi.
23650 (vectorizable_live_operation): Fix up condition.
23651
23652 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23653
23654 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23655 nreverse() because it changes the content of original tree list.
23656
23657 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23658
23659 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23660 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23661
23662 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23663
23664 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23665 GNU coding standards.
23666
23667 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23668
23669 PR debug/60152
23670 * dwarf2out.c (gen_subprogram_die): Don't call
23671 add_calling_convention_attribute if subr_die is old_die.
23672
23673 2014-02-13 Sharad Singhai <singhai@google.com>
23674
23675 * doc/optinfo.texi: Fix order of nodes.
23676
23677 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23678
23679 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23680 operands[2], not operands[3].
23681
23682 2014-02-13 Richard Biener <rguenther@suse.de>
23683
23684 PR bootstrap/59878
23685 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23686 mention the possibility of an in-tree build.
23687 (CLooG): Update recommended version to 0.18.1, mention the
23688 possibility of an in-tree build and clarify that the ISL
23689 bundled with CLooG does not work.
23690
23691 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23692
23693 PR target/43546
23694 * expr.c (compress_float_constant): If x is a hard register,
23695 extend into a pseudo and then move to x.
23696
23697 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23698
23699 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23700 caused by bad second argument to warning_at() with -mhotpatch and
23701 nested functions (e.g. with gfortran).
23702
23703 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23704
23705 * opts.c (option_name): Remove "enabled by default" rider.
23706
23707 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23708
23709 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23710
23711 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23712 Uros Bizjak <ubizjak@gmail.com>
23713
23714 PR target/60151
23715 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23716 * configure: Regenerated.
23717
23718 2014-02-12 Richard Biener <rguenther@suse.de>
23719
23720 * vec.c (vec_prefix::calculate_allocation): Move as
23721 inline variant to vec.h.
23722 (vec_prefix::calculate_allocation_1): New out-of-line version.
23723 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23724 (vec_prefix::m_has_auto_buf): Rename to ...
23725 (vec_prefix::m_using_auto_storage): ... this.
23726 (vec_prefix::calculate_allocation): Inline the easy cases
23727 and dispatch to calculate_allocation_1 which doesn't need the
23728 prefix address.
23729 (va_heap::reserve): Use gcc_checking_assert.
23730 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23731 m_using_auto_storage.
23732 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23733 member and adjust.
23734 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23735 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23736 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23737
23738 2014-02-12 Richard Biener <rguenther@suse.de>
23739
23740 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23741 when we found a dependence.
23742
23743 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23744
23745 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23746 common code...
23747 (maybe_fold_stmt): ... into this new function.
23748 * omp-low.c (lower_omp): Update comment.
23749
23750 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23751 last use.
23752
23753 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23754 dereference.
23755
23756 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23757
23758 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23759 identifiers in comments.
23760 (cortexa53_extra_costs): Likewise.
23761 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23762 (cortexa7_extra_costs): Likewise.
23763 (cortexa12_extra_costs): Likewise.
23764 (cortexa15_extra_costs): Likewise.
23765 (v7m_extra_costs): Likewise.
23766
23767 2014-02-12 Richard Biener <rguenther@suse.de>
23768
23769 PR middle-end/60092
23770 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23771 of posix_memalign being successful.
23772 (lower_stmt): Restrict lowering of posix_memalign to when
23773 -ftree-bit-ccp is enabled.
23774
23775 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23776
23777 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23778 arg_loc.
23779 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23780
23781 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23782
23783 PR rtl-optimization/60116
23784 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23785 other_insn once the combination has been validated.
23786
23787 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23788
23789 PR lto/59468
23790 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23791 and wrapper.
23792 * ipa-devirt.c: Include demangle.h
23793 (odr_violation_reported): New static variable.
23794 (add_type_duplicate): Update odr_violations.
23795 (maybe_record_node): Add completep parameter; update it.
23796 (record_target_from_binfo): Add COMPLETEP parameter;
23797 update it as needed.
23798 (possible_polymorphic_call_targets_1): Likewise.
23799 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23800 rename FINAL to COMPLETE.
23801 (record_targets_from_bases): Sanity check we found the binfo;
23802 fix COMPLETEP updating.
23803 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23804 parameter, fix computing of COMPLETEP.
23805 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23806 at LTO time do demangling.
23807 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23808 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23809 parameter.
23810 (gimple_get_virt_method_for_binfo): Likewise.
23811 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23812 gimple_get_virt_method_for_vtable): Update prototypes.
23813
23814 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23815
23816 PR target/49008
23817 * genautomata.c (add_presence_absence): Fix typo with
23818 {final_}presence_list.
23819
23820 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23821
23822 PR target/60137
23823 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23824 for VSX/Altivec vectors that land in GPR registers.
23825
23826 2014-02-11 Richard Henderson <rth@redhat.com>
23827 Jakub Jelinek <jakub@redhat.com>
23828
23829 PR debug/59776
23830 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23831 around drhs if type conversion to lacc->type is not useless.
23832
23833 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23834
23835 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23836 tuning struct.
23837 (cortex-a57.cortex-a53): Likewise.
23838 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23839
23840 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23841
23842 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23843 arm_restrict_it.
23844
23845 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23846
23847 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23848 add_options_for_arm_vfp3.
23849
23850 2014-02-11 Jeff Law <law@redhat.com>
23851
23852 PR middle-end/54041
23853 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23854 object with an undesirable mode.
23855
23856 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23857
23858 PR libgomp/60107
23859 * config/i386/sol2-9.h: New file.
23860 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23861 *-*-solaris2.9*): Use it.
23862
23863 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23864
23865 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23866 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23867
23868 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23869
23870 * config/microblaze/microblaze.c: Extend mcpu version format
23871
23872 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23873
23874 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23875
23876 2014-02-10 Richard Henderson <rth@redhat.com>
23877
23878 PR target/59927
23879 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23880 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23881 ms-abi vs -mno-accumulate-outgoing-args.
23882 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23883 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23884 respect to ms-abi.
23885
23886 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23887
23888 PR middle-end/60080
23889 * cfgexpand.c (expand_asm_operands): Attach source location to
23890 ASM_INPUT rtx objects.
23891 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23892
23893 2014-02-10 Nick Clifton <nickc@redhat.com>
23894
23895 * config/mn10300/mn10300.c (popcount): New function.
23896 (mn10300_expand_prologue): Include saved registers in stack usage
23897 count.
23898
23899 2014-02-10 Jeff Law <law@redhat.com>
23900
23901 PR middle-end/52306
23902 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23903 when changing the SET_DEST of a prior insn to avoid an input reload.
23904
23905 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23906
23907 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23908 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23909 -mcall-openbsd, or -mcall-linux.
23910 (CC1_ENDIAN_BIG_SPEC): Remove.
23911 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23912 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23913 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23914 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23915 and %cc1_endian_default.
23916 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23917
23918 2014-02-10 Richard Biener <rguenther@suse.de>
23919
23920 PR tree-optimization/60115
23921 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23922 MEM_REF handling. Properly verify that the accesses are not
23923 out of the objects bound.
23924
23925 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23926
23927 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23928 coretex to cortex.
23929
23930 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23931
23932 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23933 proper constants and fix formatting.
23934 (possible_polymorphic_call_targets): Fix formatting.
23935
23936 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23937 Ilya Tocar <ilya.tocar@intel.com>
23938
23939 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23940 (_mm512_loadu_epi32): Renamed into...
23941 (_mm512_loadu_si512): This.
23942 (_mm512_storeu_epi32): Renamed into...
23943 (_mm512_storeu_si512): This.
23944 (_mm512_maskz_ceil_ps): Removed.
23945 (_mm512_maskz_ceil_pd): Ditto.
23946 (_mm512_maskz_floor_ps): Ditto.
23947 (_mm512_maskz_floor_pd): Ditto.
23948 (_mm512_floor_round_ps): Ditto.
23949 (_mm512_floor_round_pd): Ditto.
23950 (_mm512_ceil_round_ps): Ditto.
23951 (_mm512_ceil_round_pd): Ditto.
23952 (_mm512_mask_floor_round_ps): Ditto.
23953 (_mm512_mask_floor_round_pd): Ditto.
23954 (_mm512_mask_ceil_round_ps): Ditto.
23955 (_mm512_mask_ceil_round_pd): Ditto.
23956 (_mm512_maskz_floor_round_ps): Ditto.
23957 (_mm512_maskz_floor_round_pd): Ditto.
23958 (_mm512_maskz_ceil_round_ps): Ditto.
23959 (_mm512_maskz_ceil_round_pd): Ditto.
23960 (_mm512_expand_pd): Ditto.
23961 (_mm512_expand_ps): Ditto.
23962 * config/i386/i386.c (ix86_builtins): Remove
23963 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23964 (bdesc_args): Ditto.
23965 * config/i386/predicates.md (const1256_operand): New.
23966 (const_1_to_2_operand): Ditto.
23967 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23968 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23969 (*avx512pf_gatherpf<mode>sf): Ditto.
23970 (avx512pf_gatherpf<mode>df): Ditto.
23971 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23972 (*avx512pf_gatherpf<mode>df): Ditto.
23973 (avx512pf_scatterpf<mode>sf): Ditto.
23974 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23975 (*avx512pf_scatterpf<mode>sf): Ditto.
23976 (avx512pf_scatterpf<mode>df): Ditto.
23977 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23978 (*avx512pf_scatterpf<mode>df): Ditto.
23979 (avx512f_expand<mode>): Removed.
23980 (<shift_insn><mode>3<mask_name>): Change predicate type.
23981
23982 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23983
23984 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23985 not at the end of datarefs vector use ordered_remove to avoid
23986 reordering datarefs vector.
23987
23988 PR c/59984
23989 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23990 mark local addressable non-static vars as GOVD_PRIVATE
23991 instead of GOVD_LOCAL.
23992 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23993 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23994 than copying them.
23995
23996 PR middle-end/60092
23997 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23998 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23999 assume_aligned or alloc_align attributes.
24000 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
24001 arguments. Handle also assume_aligned and alloc_align attributes.
24002 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
24003 calls to functions with assume_aligned or alloc_align attributes.
24004 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
24005
24006 2014-02-08 Terry Guo <terry.guo@arm.com>
24007
24008 * doc/invoke.texi: Document ARM -march=armv7e-m.
24009
24010 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24011
24012 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
24013 flag on __cilkrts_rethrow builtin.
24014
24015 PR ipa/60026
24016 * ipa-cp.c (determine_versionability): Fail at -O0
24017 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
24018 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
24019
24020 Revert:
24021 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24022
24023 PR ipa/60026
24024 * tree-inline.c (copy_forbidden): Fail for
24025 __attribute__((optimize (0))) functions.
24026
24027 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24028
24029 * varpool.c: Include pointer-set.h.
24030 (varpool_remove_unreferenced_decls): Variables in other partitions
24031 will not be output; be however careful to not lose information
24032 about partitioning.
24033
24034 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24035
24036 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
24037 lookup in the vtable constructor.
24038
24039 2014-02-07 Jeff Law <law@redhat.com>
24040
24041 PR target/40977
24042 * config/m68k/m68k.md (ashldi_extsi): Turn into a
24043 define_insn_and_split.
24044
24045 * ipa-inline.c (inline_small_functions): Fix typos.
24046
24047 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24048
24049 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
24050 (s390_can_use_return_insn): Declare.
24051 * config/s390/s390.h (EPILOGUE_USES): Define.
24052 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
24053 instructions.
24054 (s390_chunkify_start): Handle return JUMP_LABELs.
24055 (s390_early_mach): Emit a main_pool instruction on the entry edge.
24056 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
24057 (s390_can_use_return_insn): New functions.
24058 (s390_fix_long_loop_prediction): Handle conditional returns.
24059 (TARGET_SET_UP_BY_PROLOGUE): Define.
24060 * config/s390/s390.md (ANY_RETURN): New code iterator.
24061 (*creturn, *csimple_return, return, simple_return): New patterns.
24062
24063 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24064
24065 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
24066 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
24067 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
24068 REG_CFA_RESTORE list when deciding not to restore a register.
24069
24070 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24071
24072 * config/s390/s390.c: Include tree-pass.h and context.h.
24073 (s390_early_mach): New function, split out from...
24074 (s390_emit_prologue): ...here.
24075 (pass_data_s390_early_mach): New pass structure.
24076 (pass_s390_early_mach): New class.
24077 (s390_option_override): Create and register early_mach pass.
24078 Move to end of file.
24079
24080 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24081
24082 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
24083 to match for the exit block.
24084
24085 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24086
24087 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
24088 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
24089 Reject misaligned operands.
24090
24091 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24092
24093 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24094
24095 2014-02-07 Richard Biener <rguenther@suse.de>
24096
24097 PR middle-end/60092
24098 * gimple-low.c (lower_builtin_posix_memalign): New function.
24099 (lower_stmt): Call it to lower posix_memalign in a way
24100 to make alignment info accessible.
24101
24102 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24103
24104 PR c++/60082
24105 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24106 __builtin_setjmp_receiver.
24107
24108 2014-02-07 Richard Biener <rguenther@suse.de>
24109
24110 PR middle-end/60092
24111 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24112 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24113 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24114 Handle BUILT_IN_POSIX_MEMALIGN.
24115 (find_func_clobbers): Likewise.
24116 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24117 (call_may_clobber_ref_p_1): Likewise.
24118
24119 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24120
24121 PR ipa/59918
24122 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24123 sanity check.
24124
24125 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24126
24127 PR ipa/59469
24128 * lto-cgraph.c (lto_output_node): Use
24129 symtab_get_symbol_partitioning_class.
24130 (lto_output_varpool_node): likewise.
24131 (symtab_get_symbol_partitioning_class): Move here from
24132 lto/lto-partition.c
24133 * cgraph.h (symbol_partitioning_class): Likewise.
24134 (symtab_get_symbol_partitioning_class): Declare.
24135
24136 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24137
24138 * ggc.h (ggc_internal_cleared_alloc): New macro.
24139 * vec.h (vec_safe_copy): Handle memory stats.
24140 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24141 * target-globals.c (save_target_globals): Likewise.
24142
24143 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24144
24145 PR target/60077
24146 * expr.c (emit_move_resolve_push): Export; be bit more selective
24147 on when to clear alias set.
24148 * expr.h (emit_move_resolve_push): Declare.
24149 * function.h (struct function): Add tail_call_marked.
24150 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24151 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24152 * config/i386/i386.md (TImode move expander): De not call
24153 ix86_expand_push.
24154 (FP push expanders): Preserve memory attributes.
24155 * config/i386/sse.md (push<mode>1): Remove.
24156 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24157 (ix86_expand_push): Remove.
24158 * config/i386/mmx.md (push<mode>1): Remove.
24159
24160 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24161
24162 PR rtl-optimization/60030
24163 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24164 lopart with paradoxical subreg before shifting it up by hprec.
24165
24166 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24167
24168 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24169 Remove extra newline at end of file.
24170 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24171 (arm_issue_rate): Handle cortexa57.
24172 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24173 (cortex-a57.cortex-a53): Likewise.
24174
24175 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24176
24177 PR target/59575
24178 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24179 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24180 bitmask.
24181 (arm_expand_prologue): Adjust all callers.
24182 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24183 info, registers also at the lowest numbered registers side. Use
24184 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24185 XEXP.
24186
24187 PR debug/59992
24188 * var-tracking.c (adjust_mems): Before adding a SET to
24189 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24190
24191 2014-02-06 Alan Modra <amodra@gmail.com>
24192
24193 PR target/60032
24194 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24195 change SDmode to DDmode when lra_in_progress.
24196
24197 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24198
24199 PR middle-end/59150
24200 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24201 free_data_ref on the dr first, and before goto again also set dr
24202 to the next dr. For simd_lane_access, free old datarefs[i] before
24203 overwriting it. For get_vectype_for_scalar_type failure, don't
24204 free_data_ref if simd_lane_access.
24205
24206 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24207
24208 PR target/60062
24209 * tree.h (opts_for_fn): New inline function.
24210 (opt_for_fn): Define.
24211 * config/i386/i386.c (ix86_function_regparm): Use
24212 opt_for_fn (decl, optimize) instead of optimize.
24213
24214 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24215
24216 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24217 for SYMBOL_REF in large memory model.
24218
24219 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24220
24221 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24222 and crypto support.
24223 (cortex-a57): Likewise.
24224 (cortex-a57.cortex-a53): Likewise.
24225
24226 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24227 Kugan Vivekanandarajah <kuganv@linaro.org>
24228
24229 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24230 unaligned_access.
24231 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24232
24233 2014-02-06 Richard Biener <rguenther@suse.de>
24234
24235 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24236 set_loop_copy and initialize_original_copy_tables.
24237
24238 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24239
24240 * config/aarch64/aarch64-simd.md
24241 (aarch64_ashr_simddi): Change QI to SI.
24242
24243 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24244 Jakub Jelinek <jakub@redhat.com>
24245
24246 PR middle-end/60013
24247 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24248 of the dataflow.
24249
24250 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24251
24252 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24253 CODE_FOR_altivec_vpku[hw]um to
24254 CODE_FOR_altivec_vpku[hw]um_direct.
24255 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24256 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24257 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24258 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24259
24260 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24261
24262 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24263 generation for -maltivec=be.
24264 (altivec_vsumsws): Simplify redundant test.
24265
24266 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24267
24268 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24269 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24270 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24271 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24272 gen_altivec_vpkuwum.
24273 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24274 BYTES_BIG_ENDIAN.
24275 (altivec_vpks<VI_char>ss): Likewise.
24276 (altivec_vpks<VI_char>us): Likewise.
24277 (altivec_vpku<VI_char>us): Likewise.
24278 (altivec_vpku<VI_char>um): Likewise.
24279 (altivec_vpku<VI_char>um_direct): New (copy of
24280 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24281 internal use).
24282 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24283 target is little endian and -maltivec=be is not specified.
24284 (*altivec_vupkhs<VU_char>_direct): New (copy of
24285 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24286 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24287 target is little endian and -maltivec=be is not specified.
24288 (*altivec_vupkls<VU_char>_direct): New (copy of
24289 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24290 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24291 little endian and -maltivec=be is not specified.
24292 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24293 little endian and -maltivec=be is not specified.
24294
24295 2014-02-05 Richard Henderson <rth@redhat.com>
24296
24297 PR debug/52727
24298 * combine-stack-adj.c: Revert r206943.
24299 * sched-int.h (struct deps_desc): Add last_args_size.
24300 * sched-deps.c (init_deps): Initialize it.
24301 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24302 contain REG_ARGS_SIZE notes.
24303
24304 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24305
24306 * lto-cgraph.c (asm_nodes_output): Make global.
24307 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24308 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24309 (driver_handle_option): Handle OPT_fwpa.
24310
24311 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24312
24313 PR ipa/59947
24314 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24315 a comment typo and formatting issue. If odr_hash hasn't been
24316 created, return vNULL and set *completep to false.
24317
24318 PR middle-end/57499
24319 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24320 bb with no successors.
24321
24322 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24323
24324 PR target/59718
24325 * doc/invoke.texi (-march): Clarify documentation for ARM.
24326 (-mtune): Likewise.
24327 (-mcpu): Likewise.
24328
24329 2014-02-05 Richard Biener <rguenther@suse.de>
24330
24331 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24332 when not vectorizing because of too many alias checks.
24333 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24334 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24335
24336 2014-02-05 Nick Clifton <nickc@redhat.com>
24337
24338 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24339 accept extended registers in any mode when compiling for the MN10300.
24340
24341 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24342
24343 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24344 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24345 sanitization attributes.
24346 (can_inline_edge_p): Likewise.
24347 (sanitize_attrs_match_for_inline_p): New function.
24348
24349 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24350
24351 * ipa-prop.c (detect_type_change): Shor circuit testing of
24352 type changes on THIS pointer.
24353
24354 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24355
24356 PR target/59777
24357 * config/pa/pa.c (legitimize_tls_address): Return original address
24358 if not passed a SYMBOL_REF rtx.
24359 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24360 addresses.
24361 (pa_emit_move_sequence): Simplify TLS source operands.
24362 (pa_legitimate_constant_p): Reject all TLS constants.
24363 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24364 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24365
24366 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24367
24368 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24369 groups when we know they are controlled by LTO.
24370 * varasm.c (default_binds_local_p_1): If object is in other partition,
24371 it will be resolved locally.
24372
24373 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24374
24375 * config/host-linux.c (linux_gt_pch_use_address): Don't
24376 use SSIZE_MAX because it is not always defined.
24377
24378 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24379
24380 PR bootstrap/59913
24381 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24382 threshold for pseudo splitting.
24383 (update_ebb_live_info): Process call argument hard registers and
24384 hard registers from insn definition too.
24385 (max_small_class_regs_num): New constant.
24386 (inherit_in_ebb): Update live hard regs through EBBs. Update
24387 reloads_num only for small register classes. Don't split for
24388 outputs of jumps.
24389
24390 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24391
24392 PR ipa/60058
24393 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24394 is non-null.
24395
24396 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24397
24398 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24399 visibility is safe.
24400
24401 2014-02-04 Marek Polacek <polacek@redhat.com>
24402
24403 * gdbinit.in (pel): Define.
24404
24405 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24406
24407 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24408 behavior.
24409
24410 2014-02-04 Richard Biener <rguenther@suse.de>
24411
24412 PR lto/59723
24413 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24414 in function context local.
24415 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24416 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24417 similar to LTO_imported_decl_ref.
24418
24419 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24420
24421 PR tree-optimization/60002
24422 * cgraphclones.c (build_function_decl_skip_args): Clear
24423 DECL_LANG_SPECIFIC.
24424
24425 PR tree-optimization/60023
24426 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24427 false to gsi_replace.
24428 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24429 has been in some EH region and vec_stmt could throw, add
24430 vec_stmt into the same EH region.
24431 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24432 has no lhs, ignore it.
24433 * internal-fn.c (expand_MASK_LOAD): Likewise.
24434
24435 PR ipa/60026
24436 * tree-inline.c (copy_forbidden): Fail for
24437 __attribute__((optimize (0))) functions.
24438
24439 PR other/58712
24440 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24441 is set, copy one less argument.
24442 (expand_simd_clones): Don't subtract clone_info->inbranch
24443 from simd_clone_struct_alloc argument.
24444
24445 PR rtl-optimization/57915
24446 * recog.c (simplify_while_replacing): If all unary/binary/relational
24447 operation arguments are constant, attempt to simplify those.
24448
24449 PR middle-end/59261
24450 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24451 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24452
24453 2014-02-04 Richard Biener <rguenther@suse.de>
24454
24455 PR tree-optimization/60012
24456 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24457 TBAA disambiguation to all DDRs.
24458
24459 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24460
24461 PR target/59788
24462 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24463 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24464
24465 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24466
24467 PR ipa/59882
24468 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24469
24470 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24471
24472 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24473 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24474
24475 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24476
24477 PR ipa/59831
24478 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24479 to figure out targets of polymorphic calls with known decl.
24480 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24481 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24482 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24483 (get_polymorphic_call_info): ... here.
24484 (get_polymorphic_call_info_from_invariant): New function.
24485
24486 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24487
24488 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24489 lookup via vtable pointer; check for type consistency
24490 and turn inconsitent facts into UNREACHABLE.
24491 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24492 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24493 type inconsistent querries; return UNREACHABLE instead.
24494
24495 2014-02-03 Richard Henderson <rth@twiddle.net>
24496
24497 PR tree-opt/59924
24498 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24499 already processed this node.
24500 (normalize_one_pred_1): Pass along mark_set.
24501 (normalize_one_pred): Create and destroy a pointer_set_t.
24502 (normalize_one_pred_chain): Likewise.
24503
24504 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24505
24506 PR gcov-profile/58602
24507 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24508
24509 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24510
24511 PR ipa/59831
24512 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24513 -fno-devirtualize; try to devirtualize by the knowledge of
24514 virtual table pointer given by aggregate propagation.
24515 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24516 (ipa_print_node_jump_functions): Dump also offset that
24517 is relevant for polymorphic calls.
24518 (determine_known_aggregate_parts): Add arg_type parameter; use it
24519 instead of determining the type from pointer type.
24520 (ipa_compute_jump_functions_for_edge): Update call of
24521 determine_known_aggregate_parts.
24522 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24523 (gimple_get_virt_method_for_binfo): ... here; simplify using
24524 vtable_pointer_value_to_vtable.
24525 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24526 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24527 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24528 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24529 POINTER_PLUS_EXPR.
24530 (vtable_pointer_value_to_binfo): ... here.
24531 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24532
24533 2014-02-03 Teresa Johnson <tejohnson@google.com>
24534
24535 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24536 redef of outer loop index variable.
24537
24538 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24539
24540 PR c++/53017
24541 PR c++/59211
24542 * doc/extend.texi (Function Attributes): Typo.
24543
24544 2014-02-03 Cong Hou <congh@google.com>
24545
24546 PR tree-optimization/60000
24547 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24548 if the vectorized statement is a store. A store statement can only
24549 appear at the end of pattern statements.
24550
24551 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24552
24553 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24554 (ix86_option_override_internal): Default long double to 64-bit for
24555 32-bit Bionic and to 128-bit for 64-bit Bionic.
24556
24557 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24558 TARGET_LONG_DOUBLE_128 is true.
24559 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24560
24561 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24562 (mlong-double-64): Negate -mlong-double-128.
24563 (mlong-double-128): New option.
24564
24565 * config/i386/i386-c.c (ix86_target_macros): Define
24566 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24567
24568 * doc/invoke.texi: Document -mlong-double-128.
24569
24570 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24571
24572 PR rtl-optimization/60024
24573 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24574
24575 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24576
24577 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24578
24579 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24580
24581 PR rtl-optimization/57662
24582 * sel-sched.c (code_motion_path_driver): Do not mark already not
24583 existing blocks in the visiting bitmap.
24584
24585 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24586
24587 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24588 on the insn being emitted.
24589
24590 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24591 Will Deacon <will.deacon@arm.com>
24592
24593 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24594
24595 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24596
24597 * config/arm/arm-tables.opt: Regenerate.
24598
24599 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24600
24601 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24602 for vector types other than V16QImode.
24603 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24604 define_expand, and call altivec_expand_vec_perm_le when producing
24605 code with little endian element order.
24606 (*altivec_vperm_<mode>_internal): New insn having previous
24607 behavior of altivec_vperm_<mode>.
24608 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24609 altivec_expand_vec_perm_le when producing code with little endian
24610 element order.
24611 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24612 behavior of altivec_vperm_<mode>_uns.
24613
24614 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24615
24616 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24617 (altivec_vsumsws): Add handling for -maltivec=be with a little
24618 endian target.
24619 (altivec_vsumsws_direct): New.
24620 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24621 gen_altivec_vsumsws.
24622
24623 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24624
24625 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24626 vtable_pointer_value_to_binfo): New functions.
24627 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24628 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24629
24630 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24631
24632 * config/nios2/nios2.md (load_got_register): Initialize GOT
24633 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24634 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24635
24636 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24637
24638 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24639 preserverd by passthrough, do not propagate the type.
24640
24641 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24642
24643 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24644 (mips_atomic_assign_expand_fenv): New function.
24645 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24646
24647 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24648
24649 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24650 (__builtin_mips_set_fcsr): Likewise.
24651 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24652 MIPS_USI_FTYPE_VOID.
24653 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24654 (mips16_expand_set_fcsr): Likewise.
24655 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24656 (mips16_set_fcsr_stub): Likewise.
24657 (mips16_get_fcsr_one_only_stub): New class.
24658 (mips16_set_fcsr_one_only_stub): Likewise.
24659 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24660 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24661 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24662 (hard_float): New availability predicate.
24663 (mips_builtins): Add get_fcsr and set_fcsr.
24664 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24665 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24666 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24667 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24668 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24669 patterns.
24670
24671 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24672
24673 * config/mips/mips.c (mips_one_only_stub): New class.
24674 (mips_need_mips16_rdhwr_p): Replace with...
24675 (mips16_rdhwr_stub): ...this new variable.
24676 (mips16_stub_call_address): New function.
24677 (mips16_rdhwr_one_only_stub): New class.
24678 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24679 (mips_output_mips16_rdhwr): Delete.
24680 (mips_finish_stub): New function.
24681 (mips_code_end): Use it to handle rdhwr stubs.
24682
24683 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24684
24685 PR target/60017
24686 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24687 when calculating size of integer atomic types.
24688
24689 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24690
24691 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24692
24693 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24694
24695 PR tree-optimization/60003
24696 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24697 * profile.c (branch_prob): Use gimple_call_builtin_p
24698 to check for BUILT_IN_SETJMP_RECEIVER.
24699 * tree-inline.c (copy_bb): Call notice_special_calls.
24700
24701 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24702
24703 PR bootstrap/59985
24704 * lra-constraints.c (process_alt_operands): Update reload_sum only
24705 on the first pass.
24706
24707 2014-01-31 Richard Henderson <rth@redhat.com>
24708
24709 PR middle-end/60004
24710 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24711 until after else_eh is processed.
24712
24713 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24714
24715 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24716 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24717 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24718 in smmintrin.h, remove them.
24719 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24720 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24721 * config/i386/i386.md (ROUND_SAE): Fix value.
24722 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24723 (const48_operand): New.
24724 * config/i386/subst.md (round), (round_expand): Use
24725 const_4_or_8_to_11_operand.
24726 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24727
24728 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24729
24730 * config/i386/constraints.md (Yk): Swap meaning with k.
24731 * config/i386/i386.md (movhi_internal): Change Yk to k.
24732 (movqi_internal): Ditto.
24733 (*k<logic><mode>): Ditto.
24734 (*andhi_1): Ditto.
24735 (*andqi_1): Ditto.
24736 (kandn<mode>): Ditto.
24737 (*<code>hi_1): Ditto.
24738 (*<code>qi_1): Ditto.
24739 (kxnor<mode>): Ditto.
24740 (kortestzhi): Ditto.
24741 (kortestchi): Ditto.
24742 (kunpckhi): Ditto.
24743 (*one_cmplhi2_1): Ditto.
24744 (*one_cmplqi2_1): Ditto.
24745 * config/i386/sse.md (): Change k to Yk.
24746 (avx512f_load<mode>_mask): Ditto.
24747 (avx512f_blendm<mode>): Ditto.
24748 (avx512f_store<mode>_mask): Ditto.
24749 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24750 (avx512f_storedqu<mode>_mask): Ditto.
24751 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24752 Ditto.
24753 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24754 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24755 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24756 (avx512f_maskcmp<mode>3): Ditto.
24757 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24758 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24759 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24760 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24761 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24762 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24763 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24764 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24765 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24766 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24767 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24768 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24769 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24770 (vec_extract_lo_<mode>_maskm): Ditto.
24771 (vec_extract_hi_<mode>_maskm): Ditto.
24772 (avx512f_vternlog<mode>_mask): Ditto.
24773 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24774 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24775 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24776 (avx512f_<code>v8div16qi2_mask): Ditto.
24777 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24778 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24779 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24780 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24781 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24782 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24783 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24784 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24785 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24786 (avx512cd_maskb_vec_dupv8di): Ditto.
24787 (avx512cd_maskw_vec_dupv16si): Ditto.
24788 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24789 (avx512f_vpermi2var<mode>3_mask): Ditto.
24790 (avx512f_vpermi2var<mode>3_mask): Ditto.
24791 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24792 (*avx512f_gathersi<mode>): Ditto.
24793 (*avx512f_gathersi<mode>_2): Ditto.
24794 (*avx512f_gatherdi<mode>): Ditto.
24795 (*avx512f_gatherdi<mode>_2): Ditto.
24796 (*avx512f_scattersi<mode>): Ditto.
24797 (*avx512f_scatterdi<mode>): Ditto.
24798 (avx512f_compress<mode>_mask): Ditto.
24799 (avx512f_compressstore<mode>_mask): Ditto.
24800 (avx512f_expand<mode>_mask): Ditto.
24801 * config/i386/subst.md (mask): Change k to Yk.
24802 (mask_scalar_merge): Ditto.
24803 (sd): Ditto.
24804
24805 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24806
24807 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24808
24809 2014-01-31 Richard Biener <rguenther@suse.de>
24810
24811 PR middle-end/59990
24812 * builtins.c (fold_builtin_memory_op): Make sure to not
24813 use a floating-point mode or a boolean or enumeral type for
24814 the copy operation.
24815
24816 2014-01-30 DJ Delorie <dj@redhat.com>
24817
24818 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24819 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24820 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24821 whenever main() has an epilogue.
24822
24823 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24824
24825 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24826 unused variable "field".
24827 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24828 (vsx_mergeh_<mode>): Likewise.
24829 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24830 (altivec_vmrghh): Likewise.
24831 (altivec_vmrghw): Likewise.
24832 (altivec_vmrglb): Likewise.
24833 (altivec_vmrglh): Likewise.
24834 (altivec_vmrglw): Likewise.
24835 (altivec_vspltb): Add missing uses.
24836 (altivec_vsplth): Likewise.
24837 (altivec_vspltw): Likewise.
24838 (altivec_vspltsf): Likewise.
24839
24840 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24841
24842 PR target/59923
24843 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24844 frame related instructions.
24845
24846 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24847
24848 PR rtl-optimization/59959
24849 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24850 any reload of register whose subreg is invalid.
24851
24852 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24853
24854 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24855 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24856 Add missing return type - void.
24857
24858 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24859
24860 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24861 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24862 remove element index adjustment for endian (now handled in vsx.md
24863 and altivec.md).
24864 (altivec_expand_vec_perm_const): Use
24865 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24866 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24867 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24868 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24869 define_expand and a new define_insn *altivec_vspltb_internal;
24870 adjust for -maltivec=be on a little endian target.
24871 (altivec_vspltb_direct): New.
24872 (altivec_vsplth): Divide into a define_expand and a new
24873 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24874 little endian target.
24875 (altivec_vsplth_direct): New.
24876 (altivec_vspltw): Divide into a define_expand and a new
24877 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24878 little endian target.
24879 (altivec_vspltw_direct): New.
24880 (altivec_vspltsf): Divide into a define_expand and a new
24881 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24882 a little endian target.
24883
24884 2014-01-30 Richard Biener <rguenther@suse.de>
24885
24886 PR tree-optimization/59993
24887 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24888 can propagate form the earlier stmt and avoid the transform
24889 when the intermediate result is needed.
24890
24891 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24892
24893 * README.Portability: Fix typo.
24894
24895 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24896
24897 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24898 comparison_operator with ordered_comparison_operator.
24899
24900 2014-01-30 Nick Clifton <nickc@redhat.com>
24901
24902 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24903 Rename to mn10300_store_multiple_regs.
24904 * config/mn10300/mn10300.c: Likewise.
24905 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24906 store_multiple_regs.
24907 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24908 Call mn10300_store_multiple_regs.
24909
24910 2014-01-30 Nick Clifton <nickc@redhat.com>
24911 DJ Delorie <dj@redhat.com>
24912
24913 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24914 %fp 2 to keep registers after it properly word-aligned.
24915 (rl78_alloc_physical_registers_umul): Handle the case where both
24916 input operands are the same.
24917
24918 2014-01-30 Richard Biener <rguenther@suse.de>
24919
24920 PR tree-optimization/59903
24921 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24922 check properly.
24923
24924 2014-01-30 Jason Merrill <jason@redhat.com>
24925
24926 PR c++/59633
24927 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24928
24929 PR c++/59645
24930 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24931
24932 2014-01-30 Richard Biener <rguenther@suse.de>
24933
24934 PR tree-optimization/59951
24935 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24936
24937 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24938
24939 PR target/59784
24940 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24941 SFmode to DFmode case.
24942
24943 2014-01-29 DJ Delorie <dj@redhat.com>
24944
24945 * config/msp430/msp430.opt (-minrt): New.
24946 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24947 if -minrt given.
24948 (ENDFILE_SPEC): Likewise.
24949
24950 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24951
24952 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24953 (estimate_function_body_sizes): Use it.
24954
24955 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24956
24957 PR c++/58561
24958 * dwarf2out.c (is_cxx_auto): New.
24959 (is_base_type): Use it.
24960 (gen_type_die_with_usage): Likewise.
24961
24962 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24963
24964 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24965 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24966 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24967 -maltivec=be with LE targets.
24968 (vsx_mergeh_<mode>): Likewise.
24969 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24970 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24971 (altivec_vmrghb): Replace with define_expand and new
24972 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24973 (altivec_vmrghb_direct): New define_insn.
24974 (altivec_vmrghh): Replace with define_expand and new
24975 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24976 (altivec_vmrghh_direct): New define_insn.
24977 (altivec_vmrghw): Replace with define_expand and new
24978 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24979 (altivec_vmrghw_direct): New define_insn.
24980 (*altivec_vmrghsf): Adjust for endianness.
24981 (altivec_vmrglb): Replace with define_expand and new
24982 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24983 (altivec_vmrglb_direct): New define_insn.
24984 (altivec_vmrglh): Replace with define_expand and new
24985 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24986 (altivec_vmrglh_direct): New define_insn.
24987 (altivec_vmrglw): Replace with define_expand and new
24988 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24989 (altivec_vmrglw_direct): New define_insn.
24990 (*altivec_vmrglsf): Adjust for endianness.
24991 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24992 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24993 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24994 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24995 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24996 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24997 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24998 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24999
25000 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
25001
25002 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
25003 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
25004 whitespace.
25005
25006 2014-01-29 Richard Biener <rguenther@suse.de>
25007
25008 PR tree-optimization/58742
25009 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
25010 associate_pointerplus_align.
25011 (associate_pointerplus_diff): New function.
25012 (associate_pointerplus): Likewise. Call associate_pointerplus_align
25013 and associate_pointerplus_diff.
25014
25015 2014-01-29 Richard Biener <rguenther@suse.de>
25016
25017 * lto-streamer.h (LTO_major_version): Bump to 3.
25018 (LTO_minor_version): Reset to 0.
25019
25020 2014-01-29 Renlin Li <Renlin.Li@arm.com>
25021
25022 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
25023 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
25024 (arm_file_start): Generate correct asm header for armv7ve.
25025 * config/arm/bpabi.h: Add multilib support for armv7ve.
25026 * config/arm/driver-arm.c: Change the architectures of cortex-a7
25027 and cortex-a15 to armv7ve.
25028 * config/arm/t-aprofile: Add multilib support for armv7ve.
25029 * doc/invoke.texi: Document -march=armv7ve.
25030
25031 2014-01-29 Richard Biener <rguenther@suse.de>
25032
25033 PR tree-optimization/58742
25034 * tree-ssa-forwprop.c (associate_plusminus): Return true
25035 if we changed sth, defer EH cleanup to ...
25036 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
25037 (simplify_mult): New function.
25038
25039 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25040
25041 PR middle-end/59917
25042 PR tree-optimization/59920
25043 * tree.c (build_common_builtin_nodes): Remove
25044 __builtin_setjmp_dispatcher initialization.
25045 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
25046 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
25047 instead of gsi_after_labels + manually skipping debug stmts.
25048 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
25049 ignore bbs with IFN_ABNORMAL_DISPATCHER.
25050 * tree-inline.c (copy_edges_for_bb): Remove
25051 can_make_abnormal_goto argument, instead add abnormal_goto_dest
25052 argument. Ignore computed_goto_p stmts. Don't call
25053 make_abnormal_goto_edges. If a call might need abnormal edges
25054 for non-local gotos, see if it already has an edge to
25055 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
25056 with true argument, don't do anything then, otherwise add
25057 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
25058 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
25059 caller.
25060 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
25061 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
25062 (lower_stmt): Don't set data->calls_builtin_setjmp.
25063 (lower_builtin_setjmp): Adjust comment.
25064 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
25065 * tree-cfg.c (found_computed_goto): Remove.
25066 (factor_computed_gotos): Remove.
25067 (make_goto_expr_edges): Return bool, true for computed gotos.
25068 Don't call make_abnormal_goto_edges.
25069 (build_gimple_cfg): Don't set found_computed_goto, don't call
25070 factor_computed_gotos.
25071 (computed_goto_p): No longer static.
25072 (make_blocks): Don't set found_computed_goto.
25073 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
25074 (make_edges): If make_goto_expr_edges returns true, push bb
25075 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
25076 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
25077 vector. Record mapping between bbs and OpenMP regions if there
25078 are any, adjust make_gimple_omp_edges caller. Call
25079 handle_abnormal_edges.
25080 (make_abnormal_goto_edges): Remove.
25081 * tree-cfg.h (make_abnormal_goto_edges): Remove.
25082 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
25083 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
25084 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
25085 * internal-fn.def (ABNORMAL_DISPATCHER): New.
25086 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
25087 filling *region also set *region_idx to (*region)->entry->index.
25088
25089 PR other/58712
25090 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
25091 For REGs set ORIGINAL_REGNO.
25092
25093 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25094
25095 * doc/md.texi: Mention that a target shouldn't implement
25096 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25097 than hi/lo pair.
25098
25099 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25100
25101 PR tree-optimization/59594
25102 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25103 a copy of the datarefs vector rather than the vector itself.
25104
25105 2014-01-28 Jason Merrill <jason@redhat.com>
25106
25107 PR c++/53756
25108 * dwarf2out.c (auto_die): New static.
25109 (gen_type_die_with_usage): Handle C++1y 'auto'.
25110 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25111 on definition.
25112
25113 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25114
25115 PR target/59672
25116 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25117 (SPEC_X32): Likewise.
25118 (SPEC_64): Likewise.
25119 * config/i386/i386.c (ix86_option_override_internal): Turn off
25120 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25121 for TARGET_16BIT.
25122 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25123 * config/i386/i386.h (TARGET_16BIT): New macro.
25124 (TARGET_16BIT_P): Likewise.
25125 * config/i386/i386.opt: Add m16.
25126 * doc/invoke.texi: Document -m16.
25127
25128 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25129
25130 PR preprocessor/59935
25131 * input.c (location_get_source_line): Bail out on when line number
25132 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25133
25134 2014-01-28 Richard Biener <rguenther@suse.de>
25135
25136 PR tree-optimization/58742
25137 * tree-ssa-forwprop.c (associate_plusminus): Handle
25138 pointer subtraction of the form (T)(P + A) - (T)P.
25139
25140 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25141
25142 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25143 at const_int_cost.
25144
25145 2014-01-28 Richard Biener <rguenther@suse.de>
25146
25147 Revert
25148 2014-01-28 Richard Biener <rguenther@suse.de>
25149
25150 PR rtl-optimization/45364
25151 PR rtl-optimization/59890
25152 * var-tracking.c (local_get_addr_clear_given_value): Handle
25153 already cleared slot.
25154 (val_reset): Handle not allocated local_get_addr_cache.
25155 (vt_find_locations): Use post-order on the inverted CFG.
25156
25157 2014-01-28 Richard Biener <rguenther@suse.de>
25158
25159 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25160
25161 2014-01-28 Richard Biener <rguenther@suse.de>
25162
25163 PR rtl-optimization/45364
25164 PR rtl-optimization/59890
25165 * var-tracking.c (local_get_addr_clear_given_value): Handle
25166 already cleared slot.
25167 (val_reset): Handle not allocated local_get_addr_cache.
25168 (vt_find_locations): Use post-order on the inverted CFG.
25169
25170 2014-01-28 Alan Modra <amodra@gmail.com>
25171
25172 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25173 * configure.ac <recursive call for build != host>: Define
25174 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25175 and LD_FOR_BUILD too.
25176 * configure: Regenerate.
25177
25178 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25179
25180 * config/i386/i386.c (get_builtin_code_for_version): Separate
25181 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25182 Broadwell from Haswell.
25183
25184 2014-01-27 Steve Ellcey <sellcey@mips.com>
25185
25186 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25187 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25188 * config/mips/mips.c (mips_option_override): Change setting
25189 of TARGET_DSP.
25190 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25191 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25192 Change from Mask to Var.
25193
25194 2014-01-27 Jeff Law <law@redhat.com>
25195
25196 * ipa-inline.c (inline_small_functions): Fix typo.
25197
25198 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25199
25200 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25201 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25202 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25203 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25204 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25205 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25206 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25207 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25208 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25209 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25210 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25211 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25212 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25213 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25214 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25215 (_mm512_storeu_epi64): Ditto.
25216 (_mm512_cmpge_epi32_mask): Ditto.
25217 (_mm512_cmpge_epu32_mask): Ditto.
25218 (_mm512_cmpge_epi64_mask): Ditto.
25219 (_mm512_cmpge_epu64_mask): Ditto.
25220 (_mm512_cmple_epi32_mask): Ditto.
25221 (_mm512_cmple_epu32_mask): Ditto.
25222 (_mm512_cmple_epi64_mask): Ditto.
25223 (_mm512_cmple_epu64_mask): Ditto.
25224 (_mm512_cmplt_epi32_mask): Ditto.
25225 (_mm512_cmplt_epu32_mask): Ditto.
25226 (_mm512_cmplt_epi64_mask): Ditto.
25227 (_mm512_cmplt_epu64_mask): Ditto.
25228 (_mm512_cmpneq_epi32_mask): Ditto.
25229 (_mm512_cmpneq_epu32_mask): Ditto.
25230 (_mm512_cmpneq_epi64_mask): Ditto.
25231 (_mm512_cmpneq_epu64_mask): Ditto.
25232 (_mm512_expand_pd): Ditto.
25233 (_mm512_expand_ps): Ditto.
25234 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25235 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25236 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25237 * config/i386/i386.c (ix86_builtins): Add
25238 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25239 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25240 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25241 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25242 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25243 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25244 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25245 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25246 IX86_BUILTIN_PMOVUSQW512_MEM.
25247 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25248 __builtin_ia32_pmovsqd512mem_mask,
25249 __builtin_ia32_pmovqd512mem_mask,
25250 __builtin_ia32_pmovusqw512mem_mask,
25251 __builtin_ia32_pmovsqw512mem_mask,
25252 __builtin_ia32_pmovqw512mem_mask,
25253 __builtin_ia32_pmovusdw512mem_mask,
25254 __builtin_ia32_pmovsdw512mem_mask,
25255 __builtin_ia32_pmovdw512mem_mask,
25256 __builtin_ia32_pmovqb512mem_mask,
25257 __builtin_ia32_pmovusqb512mem_mask,
25258 __builtin_ia32_pmovsqb512mem_mask,
25259 __builtin_ia32_pmovusdb512mem_mask,
25260 __builtin_ia32_pmovsdb512mem_mask,
25261 __builtin_ia32_pmovdb512mem_mask.
25262 (bdesc_args): Add __builtin_ia32_expanddf512,
25263 __builtin_ia32_expandsf512.
25264 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25265 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25266 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25267 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25268 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25269 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25270 (avx512f_<code>v8div16qi2_mask_store): This.
25271 (avx512f_expand<mode>): New.
25272
25273 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25274
25275 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25276 New.
25277 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25278 (_mm512_prefetch_i32scatter_pd): Ditto.
25279 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25280 (_mm512_prefetch_i64scatter_pd): Ditto.
25281 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25282 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25283 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25284 (_mm512_prefetch_i32scatter_ps): Ditto.
25285 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25286 (_mm512_prefetch_i64scatter_ps): Ditto.
25287 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25288 * config/i386/i386-builtin-types.def: Define
25289 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25290 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25291 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25292 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25293 IX86_BUILTIN_SCATTERPFQPD.
25294 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25295 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25296 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25297 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25298 __builtin_ia32_scatterpfqps.
25299 (ix86_expand_builtin): Expand new built-ins.
25300 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25301 fix memory access data type.
25302 (*avx512pf_gatherpf<mode>_mask): Ditto.
25303 (*avx512pf_gatherpf<mode>): Ditto.
25304 (avx512pf_scatterpf<mode>): Ditto.
25305 (*avx512pf_scatterpf<mode>_mask): Ditto.
25306 (*avx512pf_scatterpf<mode>): Ditto.
25307 (GATHER_SCATTER_SF_MEM_MODE): New.
25308 (avx512pf_gatherpf<mode>df): Ditto.
25309 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25310 (*avx512pf_scatterpf<mode>df): Ditto.
25311
25312 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25313
25314 PR bootstrap/59934
25315 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25316 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25317 reached.
25318
25319 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25320
25321 * common/config/arm/arm-common.c
25322 (arm_rewrite_mcpu): Handle multiple names.
25323 * config/arm/arm.h
25324 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25325
25326 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25327
25328 * gimple-builder.h (create_gimple_tmp): Delete.
25329
25330 2014-01-27 Christian Bruel <christian.bruel@st.com>
25331
25332 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25333 words comparisons.
25334
25335 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25336
25337 * config/pa/pa.md (call): Generate indirect long calls to non-local
25338 functions when outputing 32-bit code.
25339 (call_value): Likewise except for special call to buggy powf function.
25340
25341 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25342 portable runtime and PIC indirect calls.
25343 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25344 and PIC call sequences. Use ldo instead of blr to set return register
25345 in PIC call sequence.
25346
25347 2014-01-25 Walter Lee <walt@tilera.com>
25348
25349 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25350 avoid clobbering a live register.
25351
25352 2014-01-25 Walter Lee <walt@tilera.com>
25353
25354 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25355 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25356 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25357 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25358
25359 2014-01-25 Walter Lee <walt@tilera.com>
25360
25361 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25362 arguments on even registers.
25363 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25364 STACK_BOUNDARY.
25365 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25366 (BIGGEST_ALIGNMENT): Ditto.
25367 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25368
25369 2014-01-25 Walter Lee <walt@tilera.com>
25370
25371 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25372 insns before bundling.
25373 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25374
25375 2014-01-25 Walter Lee <walt@tilera.com>
25376
25377 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25378 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25379 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25380
25381 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25382
25383 * config/mips/constraints.md (kl): Delete.
25384 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25385 define expands, using...
25386 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25387 instructions for MIPS16.
25388 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25389 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25390
25391 2014-01-25 Walter Lee <walt@tilera.com>
25392
25393 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25394 (clzdi2): Ditto.
25395 (ffsdi2): Ditto.
25396
25397 2014-01-25 Walter Lee <walt@tilera.com>
25398
25399 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25400 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25401
25402 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25403
25404 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25405 Handle XOR.
25406
25407 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25408
25409 * print-rtl.c (in_call_function_usage): New var.
25410 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25411 EXPR_LIST mode as mode and not as reg note name.
25412
25413 PR middle-end/59561
25414 * cfgloopmanip.c (copy_loop_info): If
25415 loop->warned_aggressive_loop_optimizations, make sure
25416 the flag is set in target loop too.
25417
25418 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25419
25420 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25421 flag_cilkplus.
25422 * builtins.def: Likewise.
25423 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25424 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25425 * ira.c (ira_setup_eliminable_regset): Likewise.
25426 * omp-low.c (gate_expand_omp): Likewise.
25427 (execute_lower_omp): Likewise.
25428 (diagnose_sb_0): Likewise.
25429 (gate_diagnose_omp_blocks): Likewise.
25430 (simd_clone_clauses_extract): Likewise.
25431 (gate): Likewise.
25432
25433 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25434
25435 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25436 correction for little endian...
25437 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25438 here.
25439
25440 2014-01-24 Jeff Law <law@redhat.com>
25441
25442 PR tree-optimization/59919
25443 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25444 for non-returning calls.
25445
25446 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25447
25448 * common/config/aarch64/aarch64-common.c
25449 (aarch64_rewrite_mcpu): Handle multiple names.
25450 * config/aarch64/aarch64.h
25451 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25452
25453 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25454
25455 * input.c (add_file_to_cache_tab): Handle the case where fopen
25456 returns NULL.
25457
25458 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25459
25460 PR target/59929
25461 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25462 from push operand if code of push isn't PRE_DEC.
25463
25464 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25465
25466 PR target/59909
25467 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25468 -mquad-memory-atomic. Update -mquad-memory documentation to say
25469 it is only used for non-atomic loads/stores.
25470
25471 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25472 -mquad-memory or -mquad-memory-atomic switches.
25473
25474 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25475 -mquad-memory-atomic to ISA 2.07 support.
25476
25477 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25478 to separate support of normal quad word memory operations (ldq, stq)
25479 from the atomic quad word memory operations.
25480
25481 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25482 support to separate non-atomic quad word operations from atomic
25483 quad word operations. Disable non-atomic quad word operations in
25484 little endian mode so that we don't have to swap words after the
25485 load and before the store.
25486 (quad_load_store_p): Add comment about atomic quad word support.
25487 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25488 options printed with -mdebug=reg.
25489
25490 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25491 -mquad-memory-atomic as the test for whether we have quad word
25492 atomic instructions.
25493 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25494 or -mp8-vector are used, allow byte/half-word atomic operations.
25495
25496 * config/rs6000/sync.md (load_lockedti): Insure that the address
25497 is a proper indexed or indirect address for the lqarx instruction.
25498 On little endian systems, swap the hi/lo registers after the lqarx
25499 instruction.
25500 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25501 insure the address is valid for the lqarx instruction.
25502 (store_conditionalti): Insure that the address is a proper indexed
25503 or indirect address for the stqcrx. instruction. On little endian
25504 systems, swap the hi/lo registers before doing the stqcrx.
25505 instruction.
25506 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25507 insure the address is valid for the stqcrx. instruction.
25508
25509 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25510 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25511 type of quad memory support is available.
25512
25513 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25514
25515 PR regression/59915
25516 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25517 there is a danger of looping.
25518
25519 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25520
25521 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25522 force flag_ira_loop_pressure if set via command line.
25523
25524 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25525
25526 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25527 (ashr_simd): New builtin handling DI mode.
25528 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25529 (aarch64_sshr_simddi): New match pattern.
25530 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25531 (vshrd_n_s64): Likewise.
25532 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25533
25534 2014-01-23 Nick Clifton <nickc@redhat.com>
25535
25536 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25537 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25538 favour of mcu specific scripts.
25539 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25540 430x multilibs.
25541
25542 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25543 Alex Velenko <Alex.Velenko@arm.com>
25544
25545 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25546 (vaddv_s16): Likewise.
25547 (vaddv_s32): Likewise.
25548 (vaddv_u8): Likewise.
25549 (vaddv_u16): Likewise.
25550 (vaddv_u32): Likewise.
25551 (vaddvq_s8): Likewise.
25552 (vaddvq_s16): Likewise.
25553 (vaddvq_s32): Likewise.
25554 (vaddvq_s64): Likewise.
25555 (vaddvq_u8): Likewise.
25556 (vaddvq_u16): Likewise.
25557 (vaddvq_u32): Likewise.
25558 (vaddvq_u64): Likewise.
25559 (vaddv_f32): Likewise.
25560 (vaddvq_f32): Likewise.
25561 (vaddvq_f64): Likewise.
25562 (vmaxv_f32): Likewise.
25563 (vmaxv_s8): Likewise.
25564 (vmaxv_s16): Likewise.
25565 (vmaxv_s32): Likewise.
25566 (vmaxv_u8): Likewise.
25567 (vmaxv_u16): Likewise.
25568 (vmaxv_u32): Likewise.
25569 (vmaxvq_f32): Likewise.
25570 (vmaxvq_f64): Likewise.
25571 (vmaxvq_s8): Likewise.
25572 (vmaxvq_s16): Likewise.
25573 (vmaxvq_s32): Likewise.
25574 (vmaxvq_u8): Likewise.
25575 (vmaxvq_u16): Likewise.
25576 (vmaxvq_u32): Likewise.
25577 (vmaxnmv_f32): Likewise.
25578 (vmaxnmvq_f32): Likewise.
25579 (vmaxnmvq_f64): Likewise.
25580 (vminv_f32): Likewise.
25581 (vminv_s8): Likewise.
25582 (vminv_s16): Likewise.
25583 (vminv_s32): Likewise.
25584 (vminv_u8): Likewise.
25585 (vminv_u16): Likewise.
25586 (vminv_u32): Likewise.
25587 (vminvq_f32): Likewise.
25588 (vminvq_f64): Likewise.
25589 (vminvq_s8): Likewise.
25590 (vminvq_s16): Likewise.
25591 (vminvq_s32): Likewise.
25592 (vminvq_u8): Likewise.
25593 (vminvq_u16): Likewise.
25594 (vminvq_u32): Likewise.
25595 (vminnmv_f32): Likewise.
25596 (vminnmvq_f32): Likewise.
25597 (vminnmvq_f64): Likewise.
25598
25599 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25600
25601 * config/aarch64/aarch64-simd.md
25602 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25603 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25604 (*aarch64_mul3_elt<mode>): Likewise.
25605 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25606 (*aarch64_mul3_elt_to_64v2df): Likewise.
25607 (*aarch64_mla_elt<mode>): Likewise.
25608 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25609 (*aarch64_mls_elt<mode>): Likewise.
25610 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25611 (*aarch64_fma4_elt<mode>): Likewise.
25612 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25613 (*aarch64_fma4_elt_to_64v2df): Likewise.
25614 (*aarch64_fnma4_elt<mode>): Likewise.
25615 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25616 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25617 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25618 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25619 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25620 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25621 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25622 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25623 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25624
25625 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25626
25627 * config/aarch64/aarch64-simd.md
25628 (aarch64_be_checked_get_lane<mode>): New define_expand.
25629 * config/aarch64/aarch64-simd-builtins.def
25630 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25631 New builtin definition.
25632 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25633 Use new safe be builtin.
25634
25635 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25636
25637 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25638 New define_insn.
25639 (aarch64_be_st1<mode>): Likewise.
25640 (aarch_ld1<VALL:mode>): Define_expand modified.
25641 (aarch_st1<VALL:mode>): Likewise.
25642 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25643 (UNSPEC_ST1): Likewise.
25644
25645 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25646
25647 * config/microblaze/microblaze.md: Add trap insn and attribute
25648
25649 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25650
25651 PR preprocessor/58580
25652 * input.h (location_get_source_line): Take an additional line_size
25653 parameter.
25654 (void diagnostics_file_cache_fini): Declare new function.
25655 * input.c (struct fcache): New type.
25656 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25657 New static constants.
25658 (diagnostic_file_cache_init, total_lines_num)
25659 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25660 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25661 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25662 (get_next_line, read_next_line, goto_next_line, read_line_num):
25663 New static function definitions.
25664 (diagnostic_file_cache_fini): New function.
25665 (location_get_source_line): Take an additional output line_len
25666 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25667 read_line_num.
25668 * diagnostic.c (diagnostic_finish): Call
25669 diagnostic_file_cache_fini.
25670 (adjust_line): Take an additional input parameter for the length
25671 of the line, rather than calculating it with strlen.
25672 (diagnostic_show_locus): Adjust the use of
25673 location_get_source_line and adjust_line with respect to their new
25674 signature. While displaying a line now, do not stop at the first
25675 null byte. Rather, display the zero byte as a space and keep
25676 going until we reach the size of the line.
25677 * Makefile.in: Add vec.o to OBJS-libcommon
25678
25679 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25680 Ilya Tocar <ilya.tocar@intel.com>
25681
25682 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25683 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25684 (__builtin_ia32_kmov16): Ditto.
25685 * config/i386/i386.md (UNSPEC_KMOV): New.
25686 (kmovw): Ditto.
25687
25688 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25689
25690 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25691 (_mm512_storeu_si512): Ditto.
25692
25693 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25694
25695 PR target/52125
25696 * rtl.h (get_referenced_operands): Declare.
25697 * recog.c (get_referenced_operands): New function.
25698 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25699 operands have been referenced when recording LO_SUM references.
25700
25701 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25702
25703 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25704
25705 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25706
25707 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25708 Enable for generic and recent AMD targets.
25709
25710 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25711
25712 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25713 ARG_SIZE note when adjustment was eliminated.
25714
25715 2014-01-22 Jeff Law <law@redhat.com>
25716
25717 PR tree-optimization/59597
25718 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25719 in file. Accept new argument REGISTERING and use it to modify
25720 dump output appropriately.
25721 (register_jump_thread): Corresponding changes.
25722 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25723 thread paths involving joiner blocks. Add code to dump cancelled
25724 jump threading paths.
25725
25726 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25727
25728 PR rtl-optimization/59477
25729 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25730 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25731
25732 2014-01-22 Tom Tromey <tromey@redhat.com>
25733
25734 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25735 PARAMS.
25736 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25737
25738 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25739
25740 PR rtl-optimization/59896
25741 * lra-constraints.c (process_alt_operands): Check unused note for
25742 matched operands of insn with no output reloads.
25743
25744 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25745
25746 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25747 (mips_move_from_gpr_cost): Likewise.
25748
25749 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25750
25751 PR rtl-optimization/59858
25752 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25753 ira_class_hard_regs_num.
25754 (process_alt_operands): Increase reject for dying matched operand.
25755
25756 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25757
25758 PR target/59003
25759 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25760 smaller than size, perform several stores or loads and stores
25761 at dst + count - size to store or copy all of size bytes, rather
25762 than just last modesize bytes.
25763
25764 2014-01-20 DJ Delorie <dj@redhat.com>
25765
25766 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25767 that CLOBBERs are REGs before propogating their values.
25768
25769 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25770
25771 PR middle-end/59789
25772 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25773 (cgraph_inline_failed_type): New function.
25774 * cgraph.h (DEFCIFCODE): Add type.
25775 (cgraph_inline_failed_type_t): New enum.
25776 (cgraph_inline_failed_type): New prototype.
25777 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25778 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25779 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25780 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25781 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25782 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25783 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25784 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25785 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25786 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25787 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25788 OPTIMIZATION_MISMATCH.
25789 * tree-inline.c (expand_call_inline): Emit errors during
25790 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25791
25792 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25793
25794 PR target/59685
25795 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25796 mode attribute in insn output.
25797
25798 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25799
25800 * output.h (output_constant): Delete.
25801 * varasm.c (output_constant): Make private.
25802
25803 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25804
25805 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25806
25807 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25808
25809 PR middle-end/59860
25810 * tree.h (fold_builtin_strcat): New prototype.
25811 * builtins.c (fold_builtin_strcat): No longer static. Add len
25812 argument, if non-NULL, don't call c_strlen. Optimize
25813 directly into __builtin_memcpy instead of __builtin_strcpy.
25814 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25815 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25816
25817 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25818
25819 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25820 for SImode_address_operand operands, having only a REG argument.
25821
25822 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25823
25824 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25825 loader name using mbig-endian.
25826 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25827
25828 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25829
25830 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25831 (-mtune): Likewise.
25832 (-mcpu): Likewise.
25833
25834 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25835
25836 * config/aarch64/aarch64-protos.h
25837 (aarch64_cannot_change_mode_class_ptr): Declare.
25838 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25839 aarch64_cannot_change_mode_class_ptr): New.
25840 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25841 backend hook aarch64_cannot_change_mode_class.
25842
25843 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25844
25845 * common/config/aarch64/aarch64-common.c
25846 (aarch64_handle_option): Don't handle any option order logic here.
25847 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25848 selected_cpu, warn on architecture version mismatch.
25849 (aarch64_override_options): Fix parsing order for option strings.
25850
25851 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25852 Iain Sandoe <iain@codesourcery.com>
25853
25854 PR bootstrap/59496
25855 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25856 warning. Amend comment to reflect current functionality.
25857
25858 2014-01-20 Richard Biener <rguenther@suse.de>
25859
25860 PR middle-end/59860
25861 * builtins.c (fold_builtin_strcat): Remove case better handled
25862 by tree-ssa-strlen.c.
25863
25864 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25865
25866 * config/aarch64/aarch64.opt
25867 (mcpu, march, mtune): Make case-insensitive.
25868
25869 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25870
25871 PR target/59880
25872 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25873 if operands[1] is a REG or ZERO_EXTEND of a REG.
25874
25875 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25876
25877 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25878
25879 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25880
25881 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25882 long non-pic millicode calls.
25883
25884 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25885
25886 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25887
25888 2014-01-19 Kito Cheng <kito@0xlab.org>
25889
25890 * builtins.c (expand_movstr): Check movstr expand done or fail.
25891
25892 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25893 H.J. Lu <hongjiu.lu@intel.com>
25894
25895 PR target/59379
25896 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25897 to DImode for zero-extended addresses.
25898
25899 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25900
25901 PR rtl-optimization/57763
25902 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25903 on the new indirect jump_insn and increment LABEL_NUSES (label).
25904
25905 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25906
25907 PR bootstrap/59580
25908 PR bootstrap/59583
25909 * config.gcc (x86_archs): New variable.
25910 (x86_64_archs): Likewise.
25911 (x86_cpus): Likewise.
25912 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25913 --with-arch/--with-cpu= options.
25914 Support --with-arch=/--with-cpu={nehalem,westmere,
25915 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25916
25917 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25918
25919 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25920 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25921
25922 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25923
25924 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25925
25926 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25927
25928 PR target/58944
25929 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25930 clear cpp_get_options (parse_in)->warn_unused_macros for
25931 ix86_target_macros_internal with cpp_define.
25932
25933 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25934
25935 * jump.c (delete_related_insns): Keep (use (insn))s.
25936 * reorg.c (redundant_insn): Check for barriers too.
25937
25938 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25939
25940 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25941
25942 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25943
25944 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25945 call to $$dyncall when TARGET_LONG_CALLS is true.
25946
25947 2014-01-17 Jeff Law <law@redhat.com>
25948
25949 * ree.c (combine_set_extension): Temporarily disable test for
25950 changing number of hard registers.
25951
25952 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25953
25954 PR middle-end/58125
25955 * ipa-inline-analysis.c (inline_free_summary):
25956 Do not free summary of aliases.
25957
25958 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25959
25960 PR middle-end/59706
25961 * gimplify.c (gimplify_expr): Use create_tmp_var
25962 instead of create_tmp_var_raw. If cond doesn't have
25963 integral type, don't add the IFN_ANNOTATE builtin at all.
25964
25965 2014-01-17 Martin Jambor <mjambor@suse.cz>
25966
25967 PR ipa/59736
25968 * ipa-cp.c (prev_edge_clone): New variable.
25969 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25970 Also resize prev_edge_clone vector.
25971 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25972 (ipcp_edge_removal_hook): New function.
25973 (ipcp_driver): Register ipcp_edge_removal_hook.
25974
25975 2014-01-17 Andrew Pinski <apinski@cavium.com>
25976 Steve Ellcey <sellcey@mips.com>
25977
25978 PR target/59462
25979 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25980 of operator mode.
25981
25982 2014-01-17 Jeff Law <law@redhat.com>
25983
25984 PR middle-end/57904
25985 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25986 so that pass_ccp runs first.
25987
25988 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25989
25990 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25991 (ix86_adjust_cost): Use !TARGET_XXX.
25992 (do_reorder_for_imul): Likewise.
25993 (swap_top_of_ready_list): Likewise.
25994 (ix86_sched_reorder): Likewise.
25995
25996 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25997
25998 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25999 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
26000 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
26001 (intel_memset): New. Duplicate slm_memset.
26002 (intel_cost): New. Duplicate slm_cost.
26003 (m_INTEL): New macro.
26004 (processor_target_table): Add "intel".
26005 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
26006 with PROCESSOR_INTEL for "intel".
26007 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
26008 PROCESSOR_SILVERMONT.
26009 (ix86_issue_rate): Likewise.
26010 (ix86_adjust_cost): Likewise.
26011 (ia32_multipass_dfa_lookahead): Likewise.
26012 (swap_top_of_ready_list): Likewise.
26013 (ix86_sched_reorder): Likewise.
26014 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
26015 instead of TARGET_OPT_AGU.
26016 * config/i386/i386.h (TARGET_INTEL): New.
26017 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
26018 (processor_type): Add PROCESSOR_INTEL.
26019 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
26020 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
26021
26022 2014-01-17 Marek Polacek <polacek@redhat.com>
26023
26024 PR c/58346
26025 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
26026 size is zero.
26027
26028 2014-01-17 Richard Biener <rguenther@suse.de>
26029
26030 PR tree-optimization/46590
26031 * opts.c (default_options_table): Add entries for
26032 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
26033 all enabled at -O1 but not for -Og.
26034 * common.opt (fbranch-count-reg): Remove Init(1).
26035 (fmove-loop-invariants): Likewise.
26036 (ftree-pta): Likewise.
26037
26038 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26039
26040 * config/i386/i386.c (ix86_data_alignment): For compatibility with
26041 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
26042 decls to at least the GCC 4.8 used alignments.
26043
26044 PR fortran/59440
26045 * tree-nested.c (convert_nonlocal_reference_stmt,
26046 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
26047 of GIMPLE_BIND stmts, adjust associated decls.
26048
26049 2014-01-17 Richard Biener <rguenther@suse.de>
26050
26051 PR tree-optimization/46590
26052 * vec.h (vec<>::bseach): New member function implementing
26053 binary search according to C89 bsearch.
26054 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
26055 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
26056 bitmap pointer again. Make accesses_in_loop a flat array.
26057 (mem_ref_obstack): New global.
26058 (outermost_indep_loop): Adjust for mem_ref->stored changes.
26059 (mark_ref_stored): Likewise.
26060 (ref_indep_loop_p_2): Likewise.
26061 (set_ref_stored_in_loop): New helper function.
26062 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
26063 (memref_free): Adjust.
26064 (record_mem_ref_loc): Simplify.
26065 (gather_mem_refs_stmt): Adjust.
26066 (sort_locs_in_loop_postorder_cmp): New function.
26067 (analyze_memory_references): Sort accesses_in_loop after
26068 loop postorder number.
26069 (find_ref_loc_in_loop_cmp): New function.
26070 (for_all_locs_in_loop): Find relevant cluster of locs in
26071 accesses_in_loop and iterate without recursion.
26072 (execute_sm): Avoid uninit warning.
26073 (struct ref_always_accessed): Simplify.
26074 (ref_always_accessed::operator ()): Likewise.
26075 (ref_always_accessed_p): Likewise.
26076 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
26077 loop postorder numbers here.
26078 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
26079 numbers.
26080
26081 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26082
26083 PR c++/57945
26084 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
26085 on decls for which assemble_alias has been called.
26086
26087 2014-01-17 Nick Clifton <nickc@redhat.com>
26088
26089 * config/msp430/msp430.opt: (mcpu): New option.
26090 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
26091 (msp430_option_override): Parse target_cpu. If the MCU name
26092 matches a generic string, clear target_mcu.
26093 (msp430_attr): Allow numeric interrupt values up to 63.
26094 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26095 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26096 option.
26097 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26098 Add mcpu matches.
26099 * config/msp430/msp430.md (popm): Use %J rather than %I.
26100 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26101 (addhi_cy_i): Use immediate_operand for operand 2.
26102 * doc/invoke.texi: Document -mcpu option.
26103
26104 2014-01-17 Richard Biener <rguenther@suse.de>
26105
26106 PR rtl-optimization/38518
26107 * df.h (df_analyze_loop): Declare.
26108 * df-core.c: Include cfgloop.h.
26109 (df_analyze_1): Split out main part of df_analyze.
26110 (df_analyze): Adjust.
26111 (loop_inverted_post_order_compute): New function.
26112 (loop_post_order_compute): Likewise.
26113 (df_analyze_loop): New function avoiding whole-function
26114 postorder computes.
26115 * loop-invariant.c (find_defs): Use df_analyze_loop.
26116 (find_invariants): Adjust.
26117 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26118
26119 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26120
26121 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26122 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26123
26124 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26125
26126 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26127 traversal when removing references.
26128
26129 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26130
26131 PR ipa/59775
26132 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26133
26134 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26135
26136 PR middle-end/56791
26137 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26138 pushing a reload for an autoinc when we had previously reloaded an
26139 inner part of the address.
26140
26141 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26142
26143 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26144 field.
26145 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26146 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26147 when not giving up or versioning for alias only because of
26148 loop->safelen.
26149 (vect_analyze_data_ref_dependences): Set to true.
26150 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26151 is a GIMPLE_PHI.
26152 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26153 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26154 to the condition.
26155
26156 PR middle-end/58344
26157 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26158
26159 PR target/59839
26160 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26161 operand 0 predicate for gathers, use a new pseudo as subtarget.
26162
26163 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26164
26165 PR middle-end/59609
26166 * lra-constraints.c (process_alt_operands): Add printing debug info.
26167 Check absence of input/output reloads for matched operands too.
26168
26169 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26170
26171 PR rtl-optimization/59835
26172 * ira.c (ira_init_register_move_cost): Increase cost for
26173 impossible modes.
26174
26175 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26176
26177 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26178
26179 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26180
26181 PR target/59780
26182 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26183 non-register objects. Use gen_(high/low)part more consistently.
26184 Fix assertions.
26185
26186 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26187
26188 PR target/59844
26189 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26190 endian support, remove tests for WORDS_BIG_ENDIAN.
26191 (p8_mfvsrd_3_<mode>): Likewise.
26192 (reload_gpr_from_vsx<mode>): Likewise.
26193 (reload_gpr_from_vsxsf): Likewise.
26194 (p8_mfvsrd_4_disf): Likewise.
26195
26196 2014-01-16 Richard Biener <rguenther@suse.de>
26197
26198 PR rtl-optimization/46590
26199 * lcm.c (compute_antinout_edge): Use postorder iteration.
26200 (compute_laterin): Use inverted postorder iteration.
26201
26202 2014-01-16 Nick Clifton <nickc@redhat.com>
26203
26204 PR middle-end/28865
26205 * varasm.c (output_constant): Return the number of bytes actually
26206 emitted.
26207 (output_constructor_array_range): Update the field size with the
26208 number of bytes emitted by output_constant.
26209 (output_constructor_regular_field): Likewise. Also do not
26210 complain if the total number of bytes emitted is now greater
26211 than the expected fieldpos.
26212 * output.h (output_constant): Update prototype and descriptive comment.
26213
26214 2014-01-16 Marek Polacek <polacek@redhat.com>
26215
26216 PR middle-end/59827
26217 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26218 it is error_mark_node.
26219
26220 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26221
26222 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26223 VALID_AVX256_REG_OR_OI_MODE.
26224
26225 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26226
26227 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26228 current procedure should be profiled.
26229
26230 2014-01-15 Andrew Pinski <apinski@cavium.com>
26231
26232 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26233 of moving from/to the STACK_REG register class.
26234
26235 2014-01-15 Richard Henderson <rth@redhat.com>
26236
26237 PR debug/54694
26238 * reginfo.c (global_regs_decl): Globalize.
26239 * rtl.h (global_regs_decl): Declare.
26240 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26241 reserved via global_regs.
26242
26243 2014-01-15 Teresa Johnson <tejohnson@google.com>
26244
26245 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26246
26247 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26248
26249 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26250 and vmulosh rather than call gen_vec_widen_smult_*.
26251 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26252 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26253 (vec_widen_smult_even_v16qi): Likewise.
26254 (vec_widen_umult_even_v8hi): Likewise.
26255 (vec_widen_smult_even_v8hi): Likewise.
26256 (vec_widen_umult_odd_v16qi): Likewise.
26257 (vec_widen_smult_odd_v16qi): Likewise.
26258 (vec_widen_umult_odd_v8hi): Likewise.
26259 (vec_widen_smult_odd_v8hi): Likewise.
26260 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26261 vmuloub rather than call gen_vec_widen_umult_*.
26262 (vec_widen_umult_lo_v16qi): Likewise.
26263 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26264 vmulosb rather than call gen_vec_widen_smult_*.
26265 (vec_widen_smult_lo_v16qi): Likewise.
26266 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26267 rather than call gen_vec_widen_umult_*.
26268 (vec_widen_umult_lo_v8hi): Likewise.
26269 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26270 rather than call gen_vec_widen_smult_*.
26271 (vec_widen_smult_lo_v8hi): Likewise.
26272
26273 2014-01-15 Jeff Law <law@redhat.com>
26274
26275 PR tree-optimization/59747
26276 * ree.c (find_and_remove_re): Properly handle case where a second
26277 eliminated extension requires widening a copy created for elimination
26278 of a prior extension.
26279 (combine_set_extension): Ensure that the number of hard regs needed
26280 for a destination register does not change when we widen it.
26281
26282 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26283
26284 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26285 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26286 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26287 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26288 (avr-*-rtems*): Likewise.
26289 (bfin*-rtems*): Likewise.
26290 (moxie-*-rtems*): Likewise.
26291 (h8300-*-rtems*): Likewise.
26292 (i[34567]86-*-rtems*): Likewise.
26293 (lm32-*-rtems*): Likewise.
26294 (m32r-*-rtems*): Likewise.
26295 (m68k-*-rtems*): Likewise.
26296 (microblaze*-*-rtems*): Likewise.
26297 (mips*-*-rtems*): Likewise.
26298 (powerpc-*-rtems*): Likewise.
26299 (sh-*-rtems*): Likewise.
26300 (sparc-*-rtems*): Likewise.
26301 (sparc64-*-rtems*): Likewise.
26302 (v850-*-rtems*): Likewise.
26303 (m32c-*-rtems*): Likewise.
26304
26305 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26306
26307 PR rtl-optimization/59511
26308 * ira.c (ira_init_register_move_cost): Use memory costs for some
26309 cases of register move cost calculations.
26310 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26311 instead of BB frequency.
26312 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26313 * lra-assigns.c (find_hard_regno_for): Ditto.
26314
26315 2014-01-15 Richard Biener <rguenther@suse.de>
26316
26317 PR tree-optimization/59822
26318 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26319 (vectorizable_load): Use it to hoist defs of uses of invariant
26320 loads out of the loop.
26321
26322 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26323 Kugan Vivekanandarajah <kuganv@linaro.org>
26324
26325 PR target/59695
26326 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26327 truncation.
26328
26329 2014-01-15 Richard Biener <rguenther@suse.de>
26330
26331 PR rtl-optimization/59802
26332 * lcm.c (compute_available): Use inverted postorder to seed
26333 the initial worklist.
26334
26335 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26336
26337 PR target/59803
26338 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26339 ADDR_REGS for invalid symrefs in non-PIC code.
26340
26341 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26342
26343 PR other/58712
26344 * builtins.c (determine_block_size): Initialize *probable_max_size
26345 even if len_rtx is CONST_INT.
26346
26347 2014-01-14 Andrew Pinski <apinski@cavium.com>
26348
26349 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26350 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26351 (cortexa53_tunings): Likewise.
26352 (aarch64_sched_issue_rate): New function.
26353 (TARGET_SCHED_ISSUE_RATE): Define.
26354
26355 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26356
26357 * ira-costs.c (find_costs_and_classes): Add missed
26358 ira_init_register_move_cost_if_necessary.
26359
26360 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26361
26362 PR target/59787
26363 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26364
26365 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26366
26367 PR target/59794
26368 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26369 to indicate if type is used for function return value. Warn ABI
26370 change if the vector mode isn't available for function return value.
26371 (ix86_function_arg_advance): Pass false to type_natural_mode.
26372 (ix86_function_arg): Likewise.
26373 (ix86_gimplify_va_arg): Likewise.
26374 (function_arg_32): Don't warn ABI change.
26375 (ix86_function_value): Pass true to type_natural_mode.
26376 (ix86_return_in_memory): Likewise.
26377 (ix86_struct_value_rtx): Removed.
26378 (TARGET_STRUCT_VALUE_RTX): Likewise.
26379
26380 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26381
26382 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26383 converting a conditional jump into a conditional return.
26384
26385 2014-01-14 Richard Biener <rguenther@suse.de>
26386
26387 PR tree-optimization/58921
26388 PR tree-optimization/59006
26389 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26390 hoisting invariant stmts.
26391 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26392 invariant loads on the preheader edge if possible.
26393
26394 2014-01-14 Joey Ye <joey.ye@arm.com>
26395
26396 * doc/plugin.texi (Building GCC plugins): Update to C++.
26397
26398 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26399
26400 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26401 (_mm_rcp28_round_ss): Ditto.
26402 (_mm_rsqrt28_round_sd): Ditto.
26403 (_mm_rsqrt28_round_ss): Ditto.
26404 (_mm_rcp28_sd): Ditto.
26405 (_mm_rcp28_ss): Ditto.
26406 (_mm_rsqrt28_sd): Ditto.
26407 (_mm_rsqrt28_ss): Ditto.
26408 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26409 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26410 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26411 (IX86_BUILTIN_RCP28SD): Ditto.
26412 (IX86_BUILTIN_RCP28SS): Ditto.
26413 (IX86_BUILTIN_RSQRT28SD): Ditto.
26414 (IX86_BUILTIN_RSQRT28SS): Ditto.
26415 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26416 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26417 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26418 (ix86_expand_special_args_builtin): Expand new FTYPE.
26419 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26420 (srcp14<mode>): Make insn unary.
26421 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26422 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26423 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26424 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26425 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26426 Fix rounding: make it SAE only.
26427 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26428 Ditto.
26429 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26430 Ditto.
26431 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26432 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26433 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26434 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26435 (round_saeonly_mask_scalar_operand4): Ditto.
26436 (round_saeonly_mask_scalar_op3): Ditto.
26437 (round_saeonly_mask_scalar_op4): Ditto.
26438
26439 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26440
26441 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26442 Implement -maltivec=be for vec_insert and vec_extract.
26443
26444 2014-01-10 DJ Delorie <dj@redhat.com>
26445
26446 * config/msp430/msp430.md (call_internal): Don't allow memory
26447 references with SP as the base register.
26448 (call_value_internal): Likewise.
26449 * config/msp430/constraints.md (Yc): New. For memory references
26450 that don't use SP as a base register.
26451
26452 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26453 "an integer without a # prefix"
26454 * config/msp430/msp430.md (epilogue_helper): Use it.
26455
26456 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26457
26458 PR target/59617
26459 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26460 AVX512F gather builtins.
26461 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26462 on gather decls with INTEGER_TYPE masktype.
26463 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26464 directly into the builtin rather than hoisting it before loop.
26465
26466 PR tree-optimization/59387
26467 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26468 (scev_const_prop): If folded_casts and type has undefined overflow,
26469 use force_gimple_operand instead of force_gimple_operand_gsi and
26470 for each added stmt if it is assign with
26471 arith_code_with_undefined_signed_overflow, call
26472 rewrite_to_defined_overflow.
26473 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26474 gimple-fold.h instead.
26475 (arith_code_with_undefined_signed_overflow,
26476 rewrite_to_defined_overflow): Moved to ...
26477 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26478 rewrite_to_defined_overflow): ... here. No longer static.
26479 Include gimplify-me.h.
26480 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26481 rewrite_to_defined_overflow): New prototypes.
26482
26483 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26484
26485 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26486
26487 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26488
26489 * builtins.c (get_object_alignment_2): Minor tweak.
26490 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26491
26492 2014-01-13 Christian Bruel <christian.bruel@st.com>
26493
26494 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26495 optimized non constant lengths.
26496
26497 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26498
26499 PR libgomp/59194
26500 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26501 load as __atomic_load_N if possible.
26502
26503 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26504
26505 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26506 target parameter.
26507 (rs6000_expand_builtin): Adjust call.
26508
26509 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26510
26511 PR target/58115
26512 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26513 * config/rs6000/rs6000.c: Include target-globals.h.
26514 (rs6000_set_current_function): Instead of doing target_reinit
26515 unconditionally, use save_target_globals_default_opts and
26516 restore_target_globals.
26517
26518 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26519 FPSCR.
26520 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26521 (rs6000_expand_builtin): Handle mffs and mtfsf.
26522 (rs6000_init_builtins): Define mffs and mtfsf.
26523 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26524 (rs6000_mffs): New pattern.
26525 (rs6000_mtfsf): New pattern.
26526
26527 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26528
26529 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26530 Start narrowing with START. Apply candidate-use pair
26531 and check overall cost in narrowing.
26532 (iv_ca_prune): Pass new argument.
26533
26534 2014-01-10 Jeff Law <law@redhat.com>
26535
26536 PR middle-end/59743
26537 * ree.c (combine_reaching_defs): Ensure the defining statement
26538 occurs before the extension when optimizing extensions with
26539 different source and destination hard registers.
26540
26541 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26542
26543 PR ipa/58585
26544 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26545 vtables into the type inheritance graph.
26546
26547 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26548
26549 PR rtl-optimization/59754
26550 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26551 modes in the REGNO != REGNO case.
26552
26553 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26554
26555 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26556
26557 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26558
26559 PR tree-optimization/59745
26560 * tree-predcom.c (tree_predictive_commoning_loop): Call
26561 free_affine_expand_cache if giving up because components is NULL.
26562
26563 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26564 GC in payload of target_globals struct instead of allocating them on
26565 the heap and the larger structs separately using GC.
26566 * target-globals.h (struct target_globals): Make regs, hard_regs,
26567 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26568 of GTY((skip)) and change type to void *.
26569 (reset_target_globals): Cast loads from those fields to corresponding
26570 types.
26571
26572 2014-01-10 Steve Ellcey <sellcey@mips.com>
26573
26574 PR plugins/59335
26575 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26576 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26577 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26578
26579 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26580
26581 PR target/59744
26582 * aarch64-modes.def (CC_Zmode): New flags mode.
26583 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26584 represents an equality.
26585 (aarch64_get_condition_code): Handle CC_Zmode.
26586 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26587
26588 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26589
26590 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26591 extraction in good case.
26592
26593 2014-01-10 Richard Biener <rguenther@suse.de>
26594
26595 PR tree-optimization/59374
26596 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26597 checking after SLP discovery. Mark stmts not participating
26598 in any SLP instance properly.
26599
26600 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26601
26602 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26603 when handling a SET rtx.
26604
26605 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26606
26607 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26608 (cortex-a57): Likewise.
26609 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26610
26611 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26612
26613 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26614 non-iwmmxt builtins.
26615
26616 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26617
26618 PR ipa/58252
26619 PR ipa/59226
26620 * ipa-devirt.c record_target_from_binfo): Take as argument
26621 stack of binfos and lookup matching one for virtual inheritance.
26622 (possible_polymorphic_call_targets_1): Update.
26623
26624 2014-01-10 Huacai Chen <chenhc@lemote.com>
26625
26626 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26627 kernel strings for Loongson-2E/2F/3A.
26628
26629 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26630
26631 PR middle-end/59670
26632 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26633 is_gimple_call before calling gimple_call_internal_p.
26634
26635 2014-01-09 Steve Ellcey <sellcey@mips.com>
26636
26637 * Makefile.in (TREE_FLOW_H): Remove.
26638 (TREE_SSA_H): Add file names from tree-flow.h.
26639 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26640 * tree.h: Remove tree-flow.h reference.
26641 * hash-table.h: Remove tree-flow.h reference.
26642 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26643 reference with tree-ssa-loop.h.
26644
26645 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26646
26647 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26648 default element-order behavior for -maltivec.
26649 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26650 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26651 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26652 when targeting big endian, at least for now.
26653 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26654
26655 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26656
26657 PR middle-end/47735
26658 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26659 var satisfies use_register_for_decl, just take into account type
26660 alignment, rather than decl alignment.
26661
26662 PR tree-optimization/59622
26663 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26664 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26665 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26666 Don't devirtualize for inplace at all. For targets.length () == 1,
26667 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26668
26669 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26670
26671 * config/i386/i386.md (cpu): Remove the unused btver1.
26672
26673 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26674
26675 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26676
26677 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26678
26679 PR target/58115
26680 * tree-core.h (struct target_globals): New forward declaration.
26681 (struct tree_target_option): Add globals field.
26682 * tree.h (TREE_TARGET_GLOBALS): Define.
26683 (prepare_target_option_nodes_for_pch): New prototype.
26684 * target-globals.h (struct target_globals): Define even if
26685 !SWITCHABLE_TARGET.
26686 * tree.c (prepare_target_option_node_for_pch,
26687 prepare_target_option_nodes_for_pch): New functions.
26688 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26689 * config/i386/i386.c: Include target-globals.h.
26690 (ix86_set_current_function): Instead of doing target_reinit
26691 unconditionally, use save_target_globals_default_opts and
26692 restore_target_globals.
26693
26694 2014-01-09 Richard Biener <rguenther@suse.de>
26695
26696 PR tree-optimization/59715
26697 * tree-cfg.h (split_critical_edges): Declare.
26698 * tree-cfg.c (split_critical_edges): Export.
26699 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26700
26701 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26702
26703 * cfgexpand.c (expand_stack_vars): Optionally disable
26704 asan stack protection.
26705 (expand_used_vars): Likewise.
26706 (partition_stack_vars): Likewise.
26707 * asan.c (asan_emit_stack_protection): Optionally disable
26708 after return stack usage.
26709 (instrument_derefs): Optionally disable memory access instrumentation.
26710 (instrument_builtin_call): Likewise.
26711 (instrument_strlen_call): Likewise.
26712 (asan_protect_global): Optionally disable global variables protection.
26713 * doc/invoke.texi: Added doc for new options.
26714 * params.def: Added new options.
26715 * params.h: Likewise.
26716
26717 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26718
26719 PR rtl-optimization/59724
26720 * ifcvt.c (cond_exec_process_if_block): Don't call
26721 flow_find_head_matching_sequence with 0 longest_match.
26722 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26723 non-active insns if !stop_after.
26724 (try_head_merge_bb): Revert 2014-01-07 changes.
26725
26726 2014-01-08 Jeff Law <law@redhat.com>
26727
26728 * ree.c (get_sub_rtx): New function, extracted from...
26729 (merge_def_and_ext): Here.
26730 (combine_reaching_defs): Use get_sub_rtx.
26731
26732 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26733
26734 * cgraph.h (varpool_variable_node): Do not choke on null node.
26735
26736 2014-01-08 Catherine Moore <clm@codesourcery.com>
26737
26738 * config/mips/mips.md (simple_return): Attempt to use JRC
26739 for microMIPS.
26740 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26741
26742 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26743
26744 PR rtl-optimization/59137
26745 * reorg.c (steal_delay_list_from_target): Call update_block for
26746 elided insns.
26747 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26748
26749 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26750
26751 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26752 two duplicate entries.
26753
26754 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26755
26756 Revert:
26757 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26758
26759 * config/mips/mips.c (mips_truncated_op_cost): New function.
26760 (mips_rtx_costs): Adjust test for BADDU.
26761 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26762
26763 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26764
26765 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26766 (*baddu_si): ...this new pattern.
26767
26768 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26769
26770 PR ipa/59722
26771 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26772
26773 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26774
26775 PR middle-end/57748
26776 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26777 inner_reference_p.
26778 (expand_expr, expand_normal): Adjust.
26779 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26780 inner_reference_p. Use inner_reference_p to expand inner references.
26781 (store_expr): Adjust.
26782 * cfgexpand.c (expand_call_stmt): Adjust.
26783
26784 2014-01-08 Rong Xu <xur@google.com>
26785
26786 * gcov-io.c (gcov_var): Move from gcov-io.h.
26787 (gcov_position): Ditto.
26788 (gcov_is_error): Ditto.
26789 (gcov_rewrite): Ditto.
26790 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26791 only part to libgcc/libgcov.h.
26792
26793 2014-01-08 Marek Polacek <polacek@redhat.com>
26794
26795 PR middle-end/59669
26796 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26797
26798 2014-01-08 Marek Polacek <polacek@redhat.com>
26799
26800 PR sanitizer/59667
26801 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26802
26803 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26804
26805 PR rtl-optimization/59649
26806 * stor-layout.c (get_mode_bounds): For BImode return
26807 0 and STORE_FLAG_VALUE.
26808
26809 2014-01-08 Richard Biener <rguenther@suse.de>
26810
26811 PR middle-end/59630
26812 * gimple.h (is_gimple_builtin_call): Remove.
26813 (gimple_builtin_call_types_compatible_p): New.
26814 (gimple_call_builtin_p): New overload.
26815 * gimple.c (is_gimple_builtin_call): Remove.
26816 (validate_call): Rename to ...
26817 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26818 check return types.
26819 (validate_type): New static function.
26820 (gimple_call_builtin_p): New overload and adjust.
26821 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26822 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26823 (gimple_fold_stmt_to_constant_1): Likewise.
26824 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26825
26826 2014-01-08 Richard Biener <rguenther@suse.de>
26827
26828 PR middle-end/59471
26829 * gimplify.c (gimplify_expr): Gimplify register-register type
26830 VIEW_CONVERT_EXPRs to separate stmts.
26831
26832 2014-01-07 Jeff Law <law@redhat.com>
26833
26834 PR middle-end/53623
26835 * ree.c (combine_set_extension): Handle case where source
26836 and destination registers in an extension insn are different.
26837 (combine_reaching_defs): Allow source and destination registers
26838 in extension to be different under limited circumstances.
26839 (add_removable_extension): Remove restriction that the
26840 source and destination registers in the extension are the same.
26841 (find_and_remove_re): Emit a copy from the extension's
26842 destination to its source after the defining insn if
26843 the source and destination registers are different.
26844
26845 PR middle-end/59285
26846 * ifcvt.c (merge_if_block): If we are merging a block with more than
26847 one successor with a block with no successors, remove any BARRIER
26848 after the second block.
26849
26850 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26851
26852 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26853
26854 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26855
26856 PR target/59652
26857 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26858 for 14-bit register offsets when INT14_OK_STRICT is false.
26859
26860 2014-01-07 Roland Stigge <stigge@antcom.de>
26861 Michael Meissner <meissner@linux.vnet.ibm.com>
26862
26863 PR 57386/target
26864 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26865 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26866
26867 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26868
26869 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26870 -mcpu.
26871
26872 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26873
26874 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26875 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26876 rtx is const0_rtx or not.
26877
26878 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26879
26880 PR target/58115
26881 * target-globals.c (save_target_globals): Remove this_fn_optab
26882 handling.
26883 * toplev.c: Include optabs.h.
26884 (target_reinit): Temporarily restore the global options if another
26885 set of options are in force.
26886
26887 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26888
26889 PR rtl-optimization/58668
26890 * cfgcleanup.c (flow_find_cross_jump): Don't count
26891 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26892 to determine what is counted.
26893 (flow_find_head_matching_sequence): Use active_insn_p to determine
26894 what is counted.
26895 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26896 counting change.
26897 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26898 determine what is counted.
26899
26900 PR tree-optimization/59643
26901 * tree-predcom.c (split_data_refs_to_components): If one dr is
26902 read and one write, determine_offset fails and the write isn't
26903 in the bad component, just put the read into the bad component.
26904
26905 2014-01-07 Mike Stump <mikestump@comcast.net>
26906 Jakub Jelinek <jakub@redhat.com>
26907
26908 PR pch/59436
26909 * tree-core.h (struct tree_optimization_option): Change optabs
26910 type from unsigned char * to void *.
26911 * optabs.c (init_tree_optimization_optabs): Adjust
26912 TREE_OPTIMIZATION_OPTABS initialization.
26913
26914 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26915
26916 PR target/59644
26917 * config/i386/i386.h (struct machine_function): Add
26918 no_drap_save_restore field.
26919 * config/i386/i386.c (ix86_save_reg): Use
26920 !cfun->machine->no_drap_save_restore instead of
26921 crtl->stack_realign_needed.
26922 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26923 this function clears frame_pointer_needed. Set
26924 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26925 and DRAP reg is needed.
26926
26927 2014-01-06 Marek Polacek <polacek@redhat.com>
26928
26929 PR c/57773
26930 * doc/implement-c.texi: Mention that other integer types are
26931 permitted as bit-field types in strictly conforming mode.
26932
26933 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26934
26935 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26936 is newly allocated.
26937
26938 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26939
26940 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26941
26942 2014-01-06 Martin Jambor <mjambor@suse.cz>
26943
26944 PR ipa/59008
26945 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26946 to int.
26947 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26948
26949 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26950
26951 PR debug/59350
26952 PR debug/59510
26953 * var-tracking.c (add_stores): Preserve the value of the source even if
26954 we don't record the store.
26955
26956 2014-01-06 Terry Guo <terry.guo@arm.com>
26957
26958 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26959
26960 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26961
26962 PR bootstrap/59541
26963 * config/darwin.c (darwin_function_section): Adjust return values to
26964 correspond to optimisation changes made in r206070.
26965
26966 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26967
26968 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26969 from prefetch_block tune setting.
26970 (nocona_cost): Correct size of prefetch block to 64.
26971
26972 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26973
26974 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26975 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26976 used to save the static chain register in the computation of the offset
26977 from which the FP registers need to be restored.
26978
26979 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26980
26981 PR tree-optimization/59519
26982 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26983 ICE if get_current_def (current_new_name) is already non-NULL, as long
26984 as it is a phi result of some other phi in *new_exit_bb that has
26985 the same argument.
26986
26987 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26988 or vmovdqu* for misaligned_operand.
26989 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26990 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26991 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26992 aligned_mem for AVX512F masked aligned load and store builtins and for
26993 non-temporal moves.
26994
26995 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26996
26997 PR tree-optimization/59651
26998 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26999 Address range for negative step should be added by TYPE_SIZE_UNIT.
27000
27001 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
27002
27003 * config/m68k/m68k.c (handle_move_double): Handle pushes with
27004 overlapping registers also for registers other than the stack pointer.
27005
27006 2014-01-03 Marek Polacek <polacek@redhat.com>
27007
27008 PR other/59661
27009 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
27010 __builtin_FILE.
27011
27012 2014-01-03 Jakub Jelinek <jakub@redhat.com>
27013
27014 PR target/59625
27015 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
27016 asm goto as jump.
27017
27018 * config/i386/i386.md (MODE_SIZE): New mode attribute.
27019 (push splitter): Use <P:MODE_SIZE> instead of
27020 GET_MODE_SIZE (<P:MODE>mode).
27021 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
27022 (mov -1, reg peephole2): Likewise.
27023 * config/i386/sse.md (*mov<mode>_internal,
27024 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
27025 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
27026 *<code><mode>3, *andnot<mode>3<mask_name>,
27027 <mask_codefor><code><mode>3<mask_name>): Likewise.
27028 * config/i386/subst.md (mask_mode512bit_condition,
27029 sd_mask_mode512bit_condition): Likewise.
27030
27031 2014-01-02 Xinliang David Li <davidxl@google.com>
27032
27033 PR tree-optimization/59303
27034 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
27035 (dump_predicates): Better output format.
27036 (pred_equal_p): New function.
27037 (is_neq_relop_p): Ditto.
27038 (is_neq_zero_form_p): Ditto.
27039 (pred_expr_equal_p): Ditto.
27040 (pred_neg_p): Ditto.
27041 (simplify_pred): Ditto.
27042 (simplify_preds_2): Ditto.
27043 (simplify_preds_3): Ditto.
27044 (simplify_preds_4): Ditto.
27045 (simplify_preds): Ditto.
27046 (push_pred): Ditto.
27047 (push_to_worklist): Ditto.
27048 (get_pred_info_from_cmp): Ditto.
27049 (is_degenerated_phi): Ditto.
27050 (normalize_one_pred_1): Ditto.
27051 (normalize_one_pred): Ditto.
27052 (normalize_one_pred_chain): Ditto.
27053 (normalize_preds): Ditto.
27054 (normalize_cond_1): Remove function.
27055 (normalize_cond): Ditto.
27056 (is_gcond_subset_of): Ditto.
27057 (is_subset_of_any): Ditto.
27058 (is_or_set_subset_of): Ditto.
27059 (is_and_set_subset_of): Ditto.
27060 (is_norm_cond_subset_of): Ditto.
27061 (pred_chain_length_cmp): Ditto.
27062 (convert_control_dep_chain_into_preds): Type change.
27063 (find_predicates): Ditto.
27064 (find_def_preds): Ditto.
27065 (destroy_predicates_vecs): Ditto.
27066 (find_matching_predicates_in_rest_chains): Ditto.
27067 (use_pred_not_overlap_with_undef_path_pred): Ditto.
27068 (is_pred_expr_subset): Ditto.
27069 (is_pred_chain_subset_of): Ditto.
27070 (is_included_in): Ditto.
27071 (is_superset_of): Ditto.
27072
27073 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27074
27075 Update copyright years.
27076
27077 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27078
27079 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
27080 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
27081 config/arc/arc.md, config/arc/arc.opt,
27082 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
27083 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
27084 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
27085 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
27086 config/linux-protos.h, config/linux.c, config/winnt-c.c,
27087 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
27088 vtable-verify.c, vtable-verify.h: Use the standard form for the
27089 copyright notice.
27090
27091 2014-01-02 Tobias Burnus <burnus@net-b.de>
27092
27093 * gcc.c (process_command): Update copyright notice dates.
27094 * gcov-dump.c: Ditto.
27095 * gcov.c: Ditto.
27096 * doc/cpp.texi: Bump @copying's copyright year.
27097 * doc/cppinternals.texi: Ditto.
27098 * doc/gcc.texi: Ditto.
27099 * doc/gccint.texi: Ditto.
27100 * doc/gcov.texi: Ditto.
27101 * doc/install.texi: Ditto.
27102 * doc/invoke.texi: Ditto.
27103
27104 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27105
27106 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27107
27108 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27109
27110 * config/i386/sse.md (*mov<mode>_internal): Guard
27111 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27112
27113 PR rtl-optimization/59647
27114 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27115 new_rtx into UNSIGNED_FLOAT rtxes.
27116 \f
27117 Copyright (C) 2014 Free Software Foundation, Inc.
27118
27119 Copying and distribution of this file, with or without modification,
27120 are permitted in any medium without royalty provided the copyright
27121 notice and this notice are preserved.